:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1b3228;
  background: #fcfbfa;
  font-size: 16px;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fcfbfa 0%, #f5f2ec 100%);
}

button, input, select {
  font: inherit;
}

.password-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  place-items: center;
  padding: 1.5rem;
  background: #fcfbfa;
}

.password-gate[hidden] {
  display: none;
}

.password-gate-pending .password-gate {
  display: grid;
}

.password-gate-pending .app-shell,
.password-gate-pending .glossary-fab,
.password-gate-pending .print-fiche,
.password-gate-pending [data-password-protected] {
  visibility: hidden;
}

.password-gate-card {
  display: grid;
  width: min(100%, 25rem);
  gap: 0.75rem;
}

.password-gate-kicker {
  margin: 0 0 0.25rem;
  color: #617068;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.password-gate-card h1,
.password-gate-card p {
  margin-top: 0;
}

.password-gate-card h1 {
  margin-bottom: 0.5rem;
}

.password-gate-card input {
  width: 100%;
  border: 1px solid #b7bdb8;
  border-radius: 0.25rem;
  padding: 0.8rem 0.9rem;
}

.password-gate-card button {
  justify-self: start;
  border: 0;
  border-radius: 0.25rem;
  background: #009b54;
  color: #ffffff;
  padding: 0.8rem 1rem;
  cursor: pointer;
}

.password-gate-error {
  min-height: 1.5rem;
  margin-bottom: 0;
  color: #a52626;
}

.app-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  display: grid;
  overflow: hidden;
  border-radius: 0;
  background: #1b3228;
  color: #ffffff;
  box-shadow: 0 24px 72px rgba(27, 50, 40, 0.08);
}

.hero .eyebrow {
  color: #f1ce71;
  font-size: 1.2rem;
  transform: translateY(-1.8rem);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  padding: clamp(0.75rem, 1.5vw, 1.5rem) 2rem;
}

.hero-main {
  display: grid;
  gap: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #009b54;
  margin: 0;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.5rem, 4vw, 4.75rem);
  line-height: 1;
}

.hero-copy {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
}

.hero-study-areas {
  display: grid;
  gap: 0.85rem;
  width: 69%;
  justify-self: center;
}

.hero-areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-areas li {
  position: relative;
  display: flex;
  aspect-ratio: 1 / 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  border: 0;
  border-radius: 0;
  background: #f1ce71;
  color: #1b3228;
  cursor: help;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.hero-areas li:hover {
  z-index: 10;
  background: #d7ad3f;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  transform: translateY(-3px);
}

.hero-areas li:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.hero-area-number {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-area-name {
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  font-weight: 700;
  line-height: 1.22;
}

.hero-area-tooltip {
  position: absolute;
  bottom: calc(100% + 0.65rem);
  left: 50%;
  z-index: 30;
  width: min(16rem, calc(100vw - 3rem));
  padding: 0.85rem 0.95rem;
  visibility: hidden;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  color: #1b3228;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 0.4rem);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.hero-areas li:hover .hero-area-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.hero-areas li:nth-child(-n + 2) .hero-area-tooltip {
  top: calc(100% + 0.65rem);
  bottom: auto;
  transform: translate(-50%, -0.4rem);
}

.hero-areas li:nth-child(-n + 2):hover .hero-area-tooltip {
  transform: translate(-50%, 0);
}

.hero-notice {
  display: block;
  border-radius: 0;
  padding: 0.85rem 2rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
}

.hero-notice-meta {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 0 clamp(2rem, 4vw, 4rem);
  margin: 0;
  color: inherit;
}

.hero-notice-meta::before,
.hero-notice-meta::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.24);
  content: '';
}

.hero-notice-meta::before {
  left: 33.333%;
}

.hero-notice-meta::after {
  left: 66.666%;
}

.hero-notice-meta span {
  font-weight: 600;
}

.hero-notice-meta a {
  color: inherit;
  text-decoration: none;
}

.hero-notice-meta a:hover,
.hero-notice-meta a:focus-visible {
  color: #ffffff;
}

.hero-notice-meta span:nth-child(2) {
  justify-self: center;
  text-align: center;
}

.hero-notice-meta span:last-child {
  justify-self: end;
  text-align: right;
}

.panel {
  margin-top: 1.75rem;
  padding: 1.5rem;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(27, 50, 40, 0.06);
}

.controls {
  display: grid;
  gap: 1rem;
}

.about-study {
  position: relative;
  border-left: 0;
  background: #f1ce71;
}

.about-study::after {
  position: absolute;
  right: 0;
  bottom: var(--about-zigzag-bottom, -1.2rem);
  left: 0;
  height: var(--about-zigzag-height, 1.2rem);
  background: #f1ce71;
  clip-path: var(--about-zigzag-path, polygon(0 0));
  content: '';
  pointer-events: none;
}

.about-study-content {
  width: 100%;
}

.about-study h2 {
  margin: -1.5rem -1.5rem 1.25rem;
  padding: calc(1rem + 1.7rem) 1.5rem 1rem;
  background: #f1ce71;
}

.about-study p {
  margin: 0;
  color: #293e35;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-study p + p {
  margin-top: 0.85rem;
}

.about-study p:last-child {
  margin-top: calc(0.85rem + 1.7em);
  margin-bottom: 1.7em;
  font-weight: 700;
}

.control-group {
  display: grid;
  gap: 0.5rem;
}

.control-group label {
  font-weight: 700;
}

.control-group input,
.control-group select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid #b7bdb8;
  border-radius: 0;
  padding: 0.9rem 1rem;
  background: #fcfbfa;
}

.area-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.area-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  border: 1px solid #b7bdb8;
  border-radius: 999px;
  background: #fcfbfa;
  padding: 0.95rem 1rem;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.area-button.active {
  border-color: transparent;
  background: #f1ce71;
  color: #1b3228;
}

.country-summary {
  background: #ffffff;
}

.country-summary .detail-head {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.country-summary h2 {
  margin: 0.25rem 0 0;
}

.area-label {
  display: inline-flex;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: #f1ce71;
  color: #1b3228;
  font-weight: 700;
  white-space: nowrap;
}

.indicator-name,
.indicator-qualifier {
  display: block;
}

.indicator-name {
  color: #1b3228;
  font-weight: 750;
}

.indicator-qualifier {
  margin-top: 0.3rem;
  color: #707070;
  font-size: 0.78rem;
  line-height: 1.35;
}

.country-meta {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.country-meta p {
  min-width: 0;
  margin: 0;
  color: #293e35;
}

.country-meta code {
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.profile-print-action {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.profile-print-action p {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  color: #293e35;
  font-size: 0.9rem;
}

.dashboard-section-label {
  font-size: 1.2rem;
  font-weight: 700;
}

.profile-print-button {
  width: 16rem;
  border: 0;
  background: #009b54;
  color: #ffffff;
  transition: background 160ms ease, transform 160ms ease;
}

.profile-print-button:hover,
.profile-print-button:focus-visible {
  background: #007f45;
  transform: translateY(-2px);
}

#printProfile {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  border: 0;
  background: #009b54;
  box-shadow: none;
  color: #ffffff;
  font-weight: 700;
}

#printProfile:hover,
#printProfile:focus-visible {
  border: 0;
  background: #007f45;
  box-shadow: none;
  color: #ffffff;
  transform: translateY(-2px);
}

.summary-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-card {
  padding: 1.2rem;
  border-radius: 0;
  background: #fcfbfa;
  border: 1px solid #eee7df;
}

.stat-number {
  margin: 0.65rem 0 0;
  font-size: 2rem;
  font-weight: 700;
}

.table-panel {
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.table-header .label {
  margin: 0 0 0.25rem;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.table-action {
  width: 16rem;
  background: #ffffff;
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease;
}

.table-action:hover,
.table-action:focus-visible {
  border-color: #007f45;
  background: #ffffff;
  color: #007f45;
}

.hint {
  margin: 0;
  color: #293e35;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #009b54;
  background: #ffffff;
  color: #1b3228;
  padding: 0.85rem 1rem;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
}

.back-button {
  background: #fff8d9;
}

.glossary-fab {
  position: fixed;
  right: max(1.5rem, calc((100vw - 1500px) / 2 + 1.5rem));
  bottom: 3rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 2rem);
  padding: 0.9rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: #ffc62c;
  box-shadow: 0 12px 32px rgba(27, 50, 40, 0.2);
  color: #1b3228;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.glossary-fab:hover,
.glossary-fab:focus-visible {
  background: #ffc62c;
  box-shadow: 0 16px 36px rgba(27, 50, 40, 0.26);
  transform: translateY(-2px);
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 1.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

#dataTable {
  table-layout: fixed;
}

.data-col-area {
  width: 10%;
}

.data-col-indicator {
  width: 18%;
}

.data-col-value {
  width: 29%;
}

.data-col-confidence {
  width: 18%;
}

.data-col-sources {
  width: 25%;
}

th, td {
  text-align: left;
  padding: 1rem 1rem;
  border-bottom: 1px solid #eee7df;
}

th {
  font-weight: 700;
  background: #f5f2ec;
}

td code {
  color: #1b3228;
}

#dataTable td:nth-child(4),
#dataTable td:nth-child(5) {
  overflow-wrap: anywhere;
}

.confidence-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

#dataTable .confidence-stack {
  align-items: stretch;
}

#dataTable .confidence-chip,
#dataTable .evidence-chip,
#dataTable .derivation-chip {
  width: 100%;
  border-radius: 0;
}

.confidence-chip {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
}

.evidence-chip {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.evidence-primary {
  background: #f5f2ec;
  color: #1b3228;
}

.evidence-corroborated {
  background: #1b3228;
  color: #ffffff;
}

.evidence-secondary {
  background: #f1ce71;
  color: #1b3228;
}

.evidence-voluntary {
  background: #eee7df;
  color: #000000;
}

/* The composition behind the headline percentage. Black, smaller, no fill — a stat card that shows
   only a percentage asks to be trusted; this lets it be checked against the table below it. */
.stat-detail {
  color: #000000;
  font-size: 0.82rem;
  margin: 0.15rem 0 0;
}

/* Taxonomy v1.2. Sits under an indicator's definition where the data cannot carry a cross-country
   comparison. Black text, no fill, a rule on the leading edge only — the warning has to survive a
   black-and-white print, and colour is not available to carry it. */
.indicator-not-comparative {
  color: #000000;
  border-left: 2px solid #000000;
  padding-left: 0.7rem;
  margin: 0.6rem 0 0;
}

/* Evidence status v2.5: the same regulatory fact of absence, but affirmatively established by an
   authoritative source rather than asserted by a voluntary body. Kept in the voluntary chip family
   (same fill) and separated by a solid border, never by hue — the chip text carries the meaning and
   the distinction must survive a black-and-white print. */
.evidence-voluntary-confirmed {
  background: #eee7df;
  color: #000000;
  border: 1px solid #000000;
}

/* Gap-confirmed: researched, no primary instrument exists -> Phase 3 target.
   Distinct from evidence-neutral so a declared gap never reads as "unclassified".
   Added 2026-08-04 (verification pass, Batch 10). Palette per 07_report/style/. */
.evidence-gap-confirmed {
  background: #ffffff;
  color: #293e35;
  border: 1px dashed #92a69f;
}

.evidence-neutral {
  background: #e9e9e9;
  color: #293e35;
}

.source-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.source-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #009b54;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.source-placeholder {
  color: #707070;
  font-style: italic;
}

.badge-high {
  background: #1b3228;
  color: #ffffff;
}

.badge-medium {
  background: #f1ce71;
  color: #1b3228;
}

.badge-low {
  background: #eee7df;
  color: #1b3228;
}

.badge-gap {
  background: #e9e9e9;
  color: #293e35;
}

/* Analytical/summary rows carry no confidence grade of their own: they summarise
   rows that do. Previously these fell through to .badge-gap and read as missing
   evidence. Added 2026-08-04 (verification pass, Batch 10); renamed from
   .badge-derived at schema v2.3, when `derivation` made "derived" mean something
   else entirely. */
.badge-ungraded {
  background: #ffffff;
  color: #5c6b64;
  border: 1px solid #d8d2c9;
  font-style: italic;
}

/* Derivation (schema v2.3) — a SEPARATE axis from confidence. Deliberately quiet:
   these values are not weaker, they are ours. A dashed edge reads as "our line, not
   the instrument's" without implying doubt, and both variants stay legible in B/W
   print per the study's visual identity. `stated` gets no chip at all. */
.derivation-chip {
  display: inline-flex;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #ffffff;
  color: #4a5a52;
  border: 1px dashed #b9c4be;
}

.derivation-characterised {
  font-style: italic;
}

.data-summary-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 1rem;
  align-items: stretch;
}

.data-summary-note {
  display: flex;
  align-items: center;
  margin: 0;
  color: #293e35;
}

.data-summary-details {
  display: grid;
  gap: 0.75rem;
  padding: 1.2rem;
  background: #f5f2ec;
}

.data-dossier {
  min-width: 0;
  margin: 0;
  color: #293e35;
}

.data-dossier code {
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.75rem;
  padding: 1.5rem 2rem;
  background: #1b3228;
  color: rgba(255, 255, 255, 0.78);
}

#aboutStudy:not([hidden]) ~ .site-footer {
  /* Accommodate the tallest irregular tooth while retaining the requested visible gap. */
  margin-top: 2.8rem;
}

.site-footer p {
  margin: 0;
}

.site-footer-title {
  margin-bottom: 0.25rem !important;
  color: #ffffff;
  font-weight: 700;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-footer-links a {
  color: #ffffff;
  text-decoration: none;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: #f2d879;
}

.glossary-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.glossary-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9.25rem;
  grid-template-rows: auto auto;
  column-gap: 2rem;
  align-items: start;
  padding: 2rem;
  background: #1b3228;
  color: #ffffff;
}

.glossary-header .back-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  width: 9.25rem;
  aspect-ratio: 1;
  margin: 0;
  border-color: #009b54;
  background: #fff8d9;
  color: #1b3228;
  text-align: center;
  white-space: nowrap;
}

.glossary-header .eyebrow {
  color: #f1ce71;
}

.glossary-header h1 {
  grid-column: 1;
  grid-row: 1;
  margin: 0.4rem 0 0;
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 1;
}

.glossary-intro {
  grid-column: 1;
  grid-row: 2;
  max-width: 760px;
  margin: 1.25rem 0 0;
  color: #ffffff;
  font-size: 1.02rem;
}

.explanatory-notes-content {
  display: grid;
  gap: 2rem;
}

.explanatory-notes-content h2,
.explanatory-note h3 {
  margin: 0;
}

.explanatory-notes-intro {
  max-width: 760px;
  margin: 0;
  color: #52635b;
}

.explanatory-note {
  display: grid;
  gap: 0.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0dbd2;
}

.explanatory-note p {
  max-width: 900px;
  margin: 0;
}

.explanatory-note .confidence-chip,
.explanatory-note .evidence-chip,
.explanatory-note .derivation-chip {
  font-size: 0.82rem;
  padding: 0.18rem 0.55rem;
  border-radius: 0;
  vertical-align: middle;
}

.indicator-notes-section {
  display: grid;
  gap: 1.5rem;
}

.indicator-notes-header {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  gap: 2rem;
  align-items: end;
}

.indicator-notes-header .label,
.indicator-area-heading p {
  margin: 0 0 0.35rem;
  color: #009b54;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.indicator-notes-header h2 {
  margin: 0 0 0.65rem;
}

.explanatory-notes-header {
  grid-template-columns: 1fr;
}

.indicator-notes-tip {
  margin: 0;
  padding: 1rem;
  border-left: 4px solid #f1ce71;
  background: #f5f2ec;
  color: #293e35;
  font-size: 0.9rem;
}

.indicator-notes-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.75fr) auto;
  gap: 1rem;
  align-items: end;
  padding: 1.25rem;
  background: #f5f2ec;
  border-top: 4px solid #009b54;
}

.indicator-clear-button {
  min-height: 3rem;
  white-space: nowrap;
}

.indicator-notes-status {
  display: flex;
  justify-content: flex-end;
  min-height: 1.5rem;
}

.indicator-notes-results {
  display: grid;
  gap: 2.5rem;
}

.indicator-area-group {
  display: grid;
  gap: 1.25rem;
  scroll-margin-top: 1rem;
}

.indicator-area-group + .indicator-area-group {
  padding-top: 2.5rem;
  border-top: 1px solid #b7bdb8;
}

.indicator-area-heading {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.indicator-area-heading h3 {
  margin: 0 0 0.3rem;
  color: #1b3228;
  font-size: 1.35rem;
}

.indicator-area-heading span:not(.indicator-area-number) {
  color: #52635b;
  font-size: 0.92rem;
}

.indicator-area-number {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  background: #f1ce71;
  color: #1b3228;
  font-size: 1.25rem;
  font-weight: 800;
}

.indicator-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.indicator-note-card {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e0dbd2;
  border-left: 4px solid #009b54;
  background: #fcfbfa;
}

.indicator-note-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: start;
  justify-content: space-between;
}

.indicator-note-card h3,
.indicator-note-card p {
  margin: 0;
}

.indicator-note-card h3 {
  max-width: 70%;
  color: #1b3228;
  font-size: 1rem;
  line-height: 1.3;
}

.indicator-note-card p {
  color: #293e35;
  font-size: 0.92rem;
  line-height: 1.45;
}

.indicator-coverage {
  color: #707070;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.indicator-aliases {
  padding-top: 0.35rem;
  border-top: 1px solid #e0dbd2;
  color: #52635b;
  font-size: 0.78rem;
}

.indicator-aliases summary {
  width: fit-content;
  color: #293e35;
  cursor: pointer;
  font-weight: 700;
}

.indicator-aliases p {
  margin-top: 0.45rem;
  color: #707070;
  font-size: 0.78rem;
}

.indicator-notes-empty {
  border: 1px solid #e0dbd2;
  background: #fcfbfa;
}

@media (max-width: 840px) {
  .indicator-notes-header,
  .indicator-notes-controls {
    grid-template-columns: 1fr;
  }

  .indicator-clear-button {
    width: 100%;
  }

  .indicator-note-grid {
    grid-template-columns: 1fr;
  }

  .indicator-note-card h3 {
    max-width: none;
  }
}

.glossary-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(190px, 0.75fr));
  gap: 1rem;
}

.glossary-results-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
}

.glossary-results-head .label {
  margin: 0 0 0.25rem;
  color: #009b54;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.glossary-results-head h2,
.glossary-count {
  margin: 0;
}

.glossary-count {
  color: #293e35;
  font-weight: 700;
}

.glossary-table-wrapper {
  margin-top: 1.5rem;
}

.glossary-table {
  min-width: 980px;
}

.glossary-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.glossary-table th,
.glossary-table td {
  vertical-align: top;
}

.glossary-table th:first-child {
  width: 13%;
}

.glossary-table th:nth-child(2) {
  width: 17%;
}

.glossary-table th:nth-child(3),
.glossary-table th:nth-child(4) {
  width: 27%;
}

.glossary-table th:last-child {
  width: 16%;
}

.glossary-abbreviation {
  display: inline-flex;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #f1ce71;
  color: #1b3228;
  font-weight: 800;
  white-space: nowrap;
}

.glossary-country-code {
  display: block;
  margin-top: 0.25rem;
  color: #009b54;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.glossary-name strong,
.glossary-note,
.glossary-status {
  display: block;
}

.glossary-note {
  margin-top: 0.35rem;
  color: #707070;
  font-size: 0.85rem;
}

.glossary-status {
  width: fit-content;
  margin-top: 0.5rem;
  padding-left: 0.55rem;
  border-left: 3px solid #f35959;
  color: #293e35;
  font-size: 0.78rem;
  font-weight: 700;
}

.glossary-empty {
  padding: 2.5rem 1rem;
  color: #707070;
  text-align: center;
}

.print-fiche {
  display: none;
}

@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-areas {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-study-areas {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .hero .eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    transform: none;
  }

  .hero-content {
    gap: 2rem;
    padding: 2.5rem 1.5rem;
  }

  .hero-notice {
    padding: 1rem 1.5rem;
  }

  .glossary-fab {
    right: 2.25rem;
    bottom: 2rem;
    max-width: calc(100vw - 4.5rem);
    padding: 0.675rem 0.8625rem;
    font-size: 0.75rem;
  }

  .data-summary-panel {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    padding: 1.5rem;
  }

  .profile-print-action {
    grid-template-columns: 1fr;
  }

  .profile-print-action p,
  #printProfile {
    grid-column: 1;
  }

  .profile-print-action p {
    grid-row: 2;
  }

  #printProfile {
    grid-row: 1;
  }

  .table-actions,
  .profile-print-button,
  .table-action {
    width: 100%;
  }

  .hero-areas {
    grid-template-columns: 1fr;
  }

  .hero-areas li {
    aspect-ratio: auto;
    height: 3.75rem;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.9rem;
    min-height: 3.75rem;
    padding: 0 1rem;
  }

  .hero-area-number {
    flex: 0 0 4rem;
  }

  .hero-areas li:nth-child(3) .hero-area-name,
  .hero-areas li:nth-child(4) .hero-area-name {
    margin-block: auto;
  }

  .hero-notice-meta {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hero-notice-meta::before,
  .hero-notice-meta::after {
    display: none;
  }

  .hero-notice-meta span + span {
    width: 100%;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
  }

  .hero-notice-meta span:nth-child(2),
  .hero-notice-meta span:last-child {
    justify-self: start;
    text-align: left;
  }

  .glossary-header {
    display: block;
    padding: 1.5rem;
  }

  .glossary-header .back-button {
    width: auto;
    aspect-ratio: auto;
    margin-bottom: 2rem;
  }

  .glossary-controls {
    grid-template-columns: 1fr;
  }

  .table-wrapper {
    min-width: 100%;
  }
}

@media print {
  /* The page margin is what gives EVERY sheet its top and bottom band - element padding only applies
     once, at the start and end of the flow, which is why page 2 previously began 12pt from the paper
     edge with the area rule sitting on the trim. Left/right stay 0 so .print-fiche keeps governing the
     15mm text column. Page 1 is unchanged: 15mm margin + 10mm padding = the 25mm it started at. */
  @page {
    size: A4 portrait;
    margin: 15mm 0 12mm;
  }

  html,
  body {
    width: 210mm;
    margin: 0 !important;
    background: #ffffff !important;
  }

  body {
    color: #1b3228;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .app-shell {
    display: none !important;
  }

  .glossary-fab {
    display: none !important;
  }

  /* TWO-PAGE FICHE (K, 2026-08-11). Was `height: 297mm` + `overflow: hidden`, which held while each
     area showed 3-4 findings. When the caps rose to 8/6/6/8 at taxonomy v1.4 the 28 findings no longer
     fitted, and because the sheet was fixed and clipped, area blocks COLLIDED rather than flowing.
     `min-height` lets the fiche run to a second sheet; `1fr` resolves to minmax(auto, 1fr) so the area
     grid can never be squeezed below its content, yet still absorbs slack on a short country so the
     footer sits at the foot of page 1. `break-inside: avoid` on .fiche-area and .fiche-finding keeps
     blocks whole across the break.
     NOTE — repeating the badge/rules/footer on page 2 was attempted with position:fixed and with
     @page margins; BOTH FAILED in the actual print path (fixed elements did not repeat at all, and a
     negative margin pulled the masthead outside the page box, where print clips it). If it is wanted,
     the reliable technique is a <table> with <thead>/<tfoot>, which browsers repeat natively - that
     needs a markup change in index.html, not CSS alone. */
  .print-fiche {
    display: grid !important;
    grid-template-rows: auto auto 1fr auto;
    width: 210mm;
    /* 297mm less the 15mm and 12mm page margins: the height of ONE content box. Leaving it at 297mm
       would overflow every fiche onto a second sheet even when the content fits. */
    min-height: 270mm;
    padding: 10mm 15mm 0;
    background: #ffffff;
  }




  .fiche-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28mm;
    gap: 8mm;
    align-items: end;
    padding-bottom: 5mm;
    border-bottom: 2.2mm solid #1b3228;
  }

  .fiche-kicker {
    margin: 0 0 3mm;
    color: #009b54;
    font-size: 9.75pt;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }

  .fiche-header h1 {
    margin: 0;
    color: #1b3228;
    font-size: 30pt;
    line-height: 0.98;
    letter-spacing: -0.025em;
  }

  .fiche-country-code {
    display: grid;
    place-items: center;
    width: 28mm;
    height: 28mm;
    background: #f1ce71;
    color: #1b3228;
    font-size: 21pt;
    font-weight: 800;
    letter-spacing: 0.05em;
  }

  .fiche-summary {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 8mm;
    padding: 4mm 0 4.5mm;
  }

  .fiche-meta-label,
  .fiche-meta-value {
    margin: 0;
  }

  .fiche-meta-label {
    margin-bottom: 1.2mm;
    color: #009b54;
    font-size: 6.8pt;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .fiche-meta-value {
    color: #1b3228;
    font-size: 9pt;
    font-weight: 650;
    line-height: 1.25;
  }

  .fiche-area-grid {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 3mm 0 2mm;
  }

  /* Page 2 onwards begins below the running badge and rules; the first area on a continuation page
     would otherwise start under them. The margin is harmless on page 1 because the header and meta
     block already push the grid past this point. */
  .fiche-area {
    margin-top: 0;
  }

  .fiche-area {
    display: grid;
    grid-template-columns: 37mm minmax(0, 1fr);
    gap: 5mm;
    min-width: 0;
    min-height: 0;
    padding: 4.6mm 0 2.6mm;
    break-inside: avoid;
    border-top: 1.3mm solid #009b54;
  }

  .fiche-area:nth-child(even) {
    border-top-color: #f1ce71;
  }

  .fiche-area:last-child {
    padding-bottom: 0;
  }

  .fiche-area-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    align-content: start;
    margin: 0;
  }

  .fiche-area-number {
    display: none;
  }

  .fiche-area-header p,
  .fiche-area-header h2 {
    margin: 0;
  }

  .fiche-area-header p {
    margin-bottom: 0.8mm;
    color: #009b54;
    font-size: 6.5pt;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .fiche-area-header h2 {
    color: #1b3228;
    font-size: 10.5pt;
    line-height: 1.12;
  }

  .fiche-findings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.2mm 5mm;
    align-content: start;
    margin: 0;
  }

  /* Added with the two-page fiche (2026-08-11): a single finding must never be split by the page
     break, or a label lands at the foot of page 1 and its value at the head of page 2. */
  .fiche-finding {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .fiche-finding {
    min-width: 0;
  }

  .fiche-finding dt,
  .fiche-finding dd {
    margin: 0;
  }

  .fiche-finding dt {
    margin-bottom: 0.8mm;
    color: #1b3228;
    font-size: 7pt;
    font-weight: 750;
    letter-spacing: 0.035em;
    text-transform: uppercase;
  }

  .fiche-finding dd {
    color: #293e35;
    font-size: 7.8pt;
    line-height: 1.23;
  }

  .fiche-confidence {
    display: inline-flex;
    align-items: center;
    margin-top: 0.7mm;
    color: #293e35;
    font-size: 6.5pt;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .fiche-confidence::before {
    width: 2.2mm;
    height: 2.2mm;
    margin-right: 1.5mm;
    background: #b7bdb8;
    content: '';
  }

  .fiche-confidence-high::before {
    background: #009b54;
  }

  .fiche-confidence-medium::before {
    background: #f1ce71;
  }

  .fiche-confidence-low::before,
  .fiche-confidence-gap::before {
    box-shadow: inset 0 0 0 0.3mm #f35959;
    background: #ffffff;
  }

  .fiche-empty {
    grid-column: 1 / -1;
    margin: 0;
    color: #707070;
    font-size: 8pt;
    font-style: italic;
  }

  /* With a flowing fiche the footer follows the content rather than being pinned to the bottom of a
     fixed page; on a one-page country it still lands at the foot because of .print-fiche min-height. */
  .fiche-footer {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 8mm;
    align-items: start;
    margin-top: 4.4mm;
    padding-top: 3.5mm;
    border-top: 0.2mm solid #1b3228;
  }

  .fiche-footer p {
    margin: 0;
    font-size: 6.5pt;
    line-height: 1.3;
  }

  .fiche-data-note {
    color: #293e35;
  }

  .fiche-credit {
    color: #1b3228;
    font-weight: 700;
    text-align: right;
  }
}

/* Gap where the authoritative source IS in hand and simply omits the datum (schema v2.4).
   Distinguished from .evidence-gap-confirmed because the Phase 3 action differs: write to
   the body, rather than keep searching. Solid border, not dashed — the source is not in doubt. */
.evidence-gap-silent {
  background: #ffffff;
  color: #4a5a52;
  border: 1px solid #c9d2cc;
}
