/* Approved 30 Oct 2026 header menus and footer. Drop-downs use details/summary, so
   they work without JavaScript; on small screens they expand inline in the menu. */
.nav-menu-item { position: relative; }
.nav-menu > summary { list-style: none; display: flex; align-items: center; gap: 0.3rem; min-height: 44px; padding: 0.5rem 0.75rem; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; cursor: pointer; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after { content: ""; width: 0.4rem; height: 0.4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-menu[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.nav-menu > summary:hover, .nav-menu[open] > summary { background: var(--band); color: var(--action); }
.nav-menu > summary[data-current] { color: var(--action); box-shadow: inset 0 -2px var(--action); }
.nav-menu-list { list-style: none; margin: 0; padding: 0.35rem; display: flex; flex-direction: column; gap: 0.1rem; }
.nav-menu-list a { display: flex; flex-direction: column; align-items: flex-start; text-align: left; border-top: 0; gap: 0.05rem; min-height: 0; padding: 0.5rem 0.6rem; border-radius: var(--radius); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.nav-menu-list a small { color: var(--muted); font-size: 11.5px; font-weight: 500; }
.nav-menu-list a:hover, .nav-menu-list a[aria-current="page"] { background: var(--band); color: var(--action); }
.nav-menu-heading { padding: 0.45rem 0.6rem 0.2rem; color: var(--muted); font-family: var(--heading-font); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
@media (min-width: 960px) {
  .nav-menu > summary { min-height: 40px; padding: 0.45rem 0.65rem; border-top: 0; color: #44474c; font-size: 12px; }
}
@media (min-width: 960px) {
  /* Same type as the plain header links (site.css, min-width 960px), so
     "Countries" and "Tools" match "Updates" and "How we verify". */
  .nav-menu > summary { min-height: 64px; padding: 0; border-bottom: 2px solid transparent; font-family: var(--heading-font); font-size: 14px; }
  .nav-menu > summary:hover, .nav-menu[open] > summary { background: transparent; color: var(--ink); }
  .nav-menu > summary[data-current] { color: var(--ink); box-shadow: none; border-bottom-color: var(--action); }
  .nav-menu-list { top: calc(100% - 0.35rem); }
  .nav-menu-list { position: absolute; top: calc(100% + 0.35rem); left: 0; z-index: 30; min-width: 16rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(14, 28, 47, 0.12); }
  .nav-menu-item:last-of-type .nav-menu-list { left: auto; right: 0; }
}
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--action); text-decoration: underline; }
.site-footer .footer-main { grid-template-columns: 1fr; padding: 1.4rem 0; }
@media (min-width: 800px) {
  .site-footer .footer-compact { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}
.footer-compact .footer-brand { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-compact .footer-tagline { margin: 0; }
/* W2: when there are no published updates, the sidebar spans the full width. */
.desk-core-single { grid-template-columns: 1fr !important; }
/* W3: all-countries goal pages. */
.goal-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 1.5rem; }
.goal-tabs a { padding: 0.35rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.goal-tabs a:hover { border-color: var(--action); color: var(--action); }
.goal-tabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.table-scroll { overflow-x: auto; }
.goal-compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.goal-compare th, .goal-compare td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--well); vertical-align: top; }
.goal-compare thead th { background: var(--band); color: var(--muted); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.goal-routes { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.goal-routes li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--well); }
.goal-routes li:last-child { border-bottom: 0; }
.goal-routes a { display: flex; flex-direction: column; color: var(--navy); text-decoration: none; }
.goal-routes a span { color: var(--muted); font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* W3: home page country and goal choices. */
.home-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.75rem; }
.home-country { display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; }
.home-country:hover { border-color: var(--action); }
.home-country-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-size: 16px; }
.home-country-go { color: var(--action); font-weight: 600; font-size: 14px; }
.home-goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.6rem; }
.home-goal { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; }
.home-goal:hover { border-color: var(--action); color: var(--action); }
.home-goal span { color: var(--muted); font-size: 13px; }

/* W4: programme pages, key facts beside the content. */
.programme-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .programme-layout { grid-template-columns: minmax(0, 1fr) 18rem; } .key-facts { position: sticky; top: 1rem; } }
.programme-main { min-width: 0; }
.key-facts { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.key-facts h2 { margin: 0 0 0.6rem; font-size: 16px; }
.key-facts dl { margin: 0; }
.key-facts dl div { padding: 0.5rem 0; border-bottom: 1px solid var(--well); }
.key-facts dt { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.key-facts dd { margin: 0.15rem 0 0; font-size: 14px; }
.key-facts p { margin: 0.75rem 0 0; font-size: 14px; }

/* Approved 31 Oct 2026 global home ("Page 1"). Blocks fill from live countries;
   an empty block is not rendered, so no empty states are styled here. */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; align-items: center; margin: 1.5rem 0 0.5rem; padding: 1.4rem; border-radius: var(--radius); background: var(--navy); color: #fff; }
.home-hero-main { display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; }
.home-hero h1 { margin: 0; color: #fff; font-family: var(--heading-font); font-size: clamp(1.5rem, 4.4vw, 2.1rem); font-weight: 600; line-height: 1.15; }
.home-hero p { margin: 0; color: #c7d3e1; font-size: 15px; }
.home-finder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
.home-finder[hidden], .home-finder-links[hidden] { display: none; }
.home-finder select { min-width: 0; min-height: 44px; padding: 0.6rem 0.7rem; border: 0; border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.home-finder button, .home-search button { min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: var(--radius); background: var(--action); color: #fff; font-family: var(--heading-font); font-size: 13px; font-weight: 600; cursor: pointer; }
.home-finder-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.home-finder-links a { display: inline-flex; padding: 0.35rem 0.8rem; border: 1px solid #8c98aa; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.home-search { display: flex; flex-wrap: wrap; overflow: visible; border-radius: var(--radius); background: #fff; }
.home-search input { flex: 1 1 10rem; min-width: 0; min-height: 44px; padding: 0.7rem 0.9rem; border: 0; border-radius: var(--radius) 0 0 var(--radius); background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.home-search button { border-radius: 0 var(--radius) var(--radius) 0; }
.home-search .search-results { flex: 1 1 100%; margin: 0; border-width: 1px 0 0; border-radius: 0 0 var(--radius) var(--radius); color: var(--ink); }
.home-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 0; }
.home-fact { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.7rem 0.8rem; border-radius: var(--radius); background: var(--navy-soft); }
.home-fact dt { color: #9fb1c6; font-size: 12px; }
.home-fact dd { display: flex; flex-direction: column; gap: 0.15rem; margin: 0; }
.home-fact b { color: #fff; font-family: var(--heading-font); font-size: 1.15rem; }
.home-fact small { color: #9fb1c6; font-size: 11.5px; }
#choose-country .home-countries, #choose-goal .home-goals { grid-template-columns: minmax(0, 1fr); }
#choose-goal .home-goals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#choose-goal .home-goal strong { display: flex; justify-content: space-between; gap: 0.5rem; color: var(--navy); font-family: var(--heading-font); }
#choose-goal .home-goal strong::after { content: "\2192"; color: var(--action); }
.home-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; align-items: start; padding: 1rem 0 2rem; }
.home-trust-row { padding-top: 0; }
.home-card { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.home-card h2 { margin: 0; font-size: 1.05rem; }
.home-card .section-head { margin-bottom: 0; align-items: center; }
.home-card p { margin: 0; }
.home-updates, .home-tools { list-style: none; margin: 0; padding: 0; }
.home-update { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 0.8rem; padding: 0.6rem 0; border-bottom: 1px solid var(--well); }
.home-update:last-child { border-bottom: 0; }
.home-update time { color: var(--muted); font-size: 12px; }
.home-update b { display: block; color: var(--navy); }
.home-update b a { color: inherit; }
.home-update small { color: var(--muted); font-size: 12px; }
.home-tools a { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.45rem 0; color: var(--ink); text-decoration: none; }
.home-tools b { color: var(--navy); }
.home-tools span { color: var(--muted); font-size: 13px; }
.home-tools a:hover b { color: var(--action); }
.home-trust { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--band); font-size: 13.5px; }
.home-trust b { display: block; color: var(--navy); font-family: var(--heading-font); }
@media (min-width: 800px) {
  .home-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); padding: 2rem; }
  .home-hero-single { grid-template-columns: minmax(0, 1fr); }
  .home-finder { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; }
  #choose-country .home-countries, #choose-goal .home-goals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-two { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .home-two-single { grid-template-columns: minmax(0, 1fr); }
  .home-update { grid-template-columns: 5.2rem minmax(0, 1fr); }
}
.home-two-single .home-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0 1.2rem; }
#choose-country, #choose-goal { padding: 1.6rem 0 0.4rem; }
#choose-country + #choose-goal { border-top: 0; }
#choose-country h2, #choose-goal h2 { font-size: clamp(1.25rem, 3.2vw, 1.5rem); }
#choose-country .section-head, #choose-goal .section-head { align-items: baseline; margin-bottom: 0.75rem; }

/* Approved 31 Oct 2026 Updates ("Page 4") and trust pages ("Page 13"). Cards,
   tabs and blocks render only from published records; nothing here styles a
   placeholder. Tabs filter with site.js and stay hidden without it. */
.updates-page, .trust-page { display: flex; flex-direction: column; gap: 1.2rem; max-width: 60rem; }
.updates-head { display: flex; flex-direction: column; gap: 0.5rem; }
.updates-head h1 { margin: 0; }
.updates-page .empty-line { margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tabs[hidden] { display: none; }
.tabs a { display: inline-flex; align-items: center; min-height: 32px; padding: 0.3rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.tabs a:hover { border-color: var(--action); color: var(--action); }
.tabs a.on, .tabs a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.ucards { display: flex; flex-direction: column; gap: 0.8rem; }
.ucard { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ucard[hidden] { display: none; }
.ucard h2 { margin: 0; font-family: var(--heading-font); font-size: 1.15rem; line-height: 1.3; overflow-wrap: anywhere; }
.ucard h2 a { color: var(--navy); text-decoration: none; }
.ucard h2 a:hover { color: var(--action); text-decoration: underline; }
.utags .tag { margin-bottom: 0; }
.tag.g { color: #135436; background: #edf7f1; border-color: #a8dab5; }
.tag.w { color: #874d00; background: #fff9eb; border-color: #f5d38a; }
.usummary { margin: 0; font-size: 14px; }
.ublocks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem 1rem; font-size: 13.5px; }
.ublocks div { min-width: 0; overflow-wrap: anywhere; }
.ublocks b { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }
.ublocks span { display: block; }
.ucard .table-scroll { margin: 0; }
.src { margin: 0; padding-left: 0.6rem; border-left: 3px solid var(--action); color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.cbtn { display: inline-flex; align-items: center; gap: 0.35rem; width: max-content; max-width: 100%; min-height: 40px; padding: 0.5rem 0.95rem; border: 1px solid var(--action); border-radius: var(--radius); background: var(--action); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.cbtn.ghost { background: var(--surface); color: var(--action); }
.cbtn.ghost:hover { background: var(--band); }
.unote { margin: 0; color: var(--muted); font-size: 13px; }
.trust-steps { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.7rem; margin: 0; padding: 0; }
.trust-steps li { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.trust-steps b { color: var(--navy); font-family: var(--heading-font); font-size: 1rem; }
.trust-steps span { color: var(--muted); font-size: 13.5px; }
.trust-card { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.trust-card h2 { margin: 0; font-size: 1.15rem; }
.trust-card p { margin: 0; }
.trust-card .section-head { margin-bottom: 0; align-items: baseline; }
.trust-card .empty-line { padding: 0; border: 0; background: none; }
.trust-dates { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
.trust-dates div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.15rem; padding: 0.5rem 0; border-bottom: 1px solid var(--well); }
.trust-dates div:last-child { border-bottom: 0; }
.trust-dates dt { color: var(--navy); font-weight: 600; font-size: 14px; }
.trust-dates dd { margin: 0; color: var(--muted); font-size: 13.5px; }
@media (min-width: 720px) {
  .ublocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-dates div { grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem; }
}

/* Programme page: scope note and related-programme cards (1 Nov 2026). */
.programme-main .lede { margin-bottom: 1rem; }
.scope-note { max-width: 46rem; margin: 0 0 1.5rem; padding: 0.75rem 1rem; border-left: 3px solid var(--action); border-radius: 0 var(--radius) var(--radius) 0; background: var(--well); color: var(--ink); font-size: 14px; line-height: 1.6; }
.scope-note-label { display: block; margin-bottom: 0.15rem; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.zone h2 .count { display: inline-block; min-width: 1.6rem; margin-left: 0.4rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--well); color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; vertical-align: middle; }
.programme-cards { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .programme-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.programme-card { display: flex; flex-direction: column; gap: 0.3rem; height: 100%; box-sizing: border-box; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.programme-card:hover, .programme-card:focus-visible { border-color: var(--action); box-shadow: 0 2px 10px rgba(16, 24, 40, 0.08); }
.programme-card-label { color: var(--action); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.programme-card strong { font-size: 16px; line-height: 1.35; }
.programme-card-authority { color: var(--muted); font-size: 13px; }
.programme-card-cta { margin-top: auto; padding-top: 0.4rem; color: var(--action); font-size: 13px; font-weight: 600; }
.programme-card-note { color: var(--ink); font-size: 13px; font-weight: 600; }
#program-directory .programme-cards { margin-top: 0.5rem; }
.empty-topics { margin-top: 1.5rem; }
/* Program directory on phones: each row stacks instead of scrolling sideways. */
@media (max-width: 640px) {
  .directory-ledger table, .directory-ledger tbody, .directory-ledger tr, .directory-ledger td { display: block; width: auto; min-width: 0; }
  .directory-ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .directory-ledger tr { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); }
  .directory-ledger td { padding: 0.1rem 0; border: 0; }
  .directory-ledger td.directory-stream { padding-left: 0.9rem; }
  .directory-ledger td:nth-child(2) { color: var(--muted); font-size: 13px; }
  .directory-ledger td:nth-child(3) { padding-top: 0.35rem; }
  .directory-ledger .table-scroll { overflow: visible; }
}

/* Legal pages (Privacy, Disclaimer). */
.legal-page { max-width: 46rem; }
.legal-updated { margin: 0 0 1rem; color: var(--muted); font-size: 13px; }
.legal-section { margin-top: 1.75rem; }
.legal-section h2 { margin: 0 0 0.5rem; font-size: 22px; }
.legal-section ul { margin: 0; padding-left: 1.2rem; }
.legal-section li { margin: 0.45rem 0; line-height: 1.65; }
.legal-section p { line-height: 1.65; }
.legal-contact { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* Cookie consent banner and footer "Cookie settings" (analytics opt-in). */
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 40rem; margin: 0 auto; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 6px 24px rgba(16, 24, 40, 0.16); }
.consent-banner p { margin: 0 0 0.75rem; font-size: 14px; line-height: 1.6; }
.consent-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.consent-actions button { flex: 1 1 8rem; min-height: 44px; padding: 0.55rem 1rem; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.consent-actions button:focus-visible, .footer-link-button:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.footer-link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: none; }
.footer-link-button:hover { text-decoration: underline; }

/* Site-wide consistency (owner, 1 Nov 2026): the same element looks the same on every page. */
.crumbs { font-size: 12px; }
.reference-panel .kicker { font-size: 11px; }
@media (min-width: 960px) {
  /* The current page is marked by the underline only, for links and menus alike. */
  .nav-links a[aria-current="page"] { font-weight: 400; }
}
