/* =========================================================
   gov.et demo — styles for every page
   Colours sampled from "Sample UI Design GOV s.pdf"

   TYPOGRAPHY STANDARD  (see styleguide.html)
   ---------------------------------------------------------
   Families (2)   --font-display  Instrument Serif      big section titles
                  --font-heading  Instrument Serif      names, page + card headings
                  --font-text     Instrument Sans       body, UI, nav, labels
                  (pairing taken from the sample.html reference site)
                  --font-condensed Bebas / Barlow — ONLY for the COP32 logo
                  lockup and SVG map labels, which need a condensed face to fit.
                  Noto Sans Ethiopic is second in every stack: it draws all
                  Ethiopic (Amharic) characters; Latin keeps the fonts above.
                  Amharic gets its own smaller size + lighter weight scale
                  (see "Amharic type scale" below).
   Weights        --fw-light 300 · --fw-regular 400 · --fw-medium 500 · --fw-semibold 600
                  --fw-heading 400 (Instrument Serif has a single weight — never bold it)
   Sizes (9)      --fs-display … --fs-caption
   Colours        --text, --text-muted, --text-subtle, --text-link
                  --text-inverse, --text-inverse-muted  (on navy)
   Rule: components use these tokens only — no raw font names,
   weights, sizes or text colours below the token block.
   ========================================================= */
:root {
  /* ---- Brand palette ---- */
  --navy-900: #051c37;   /* footer, dark pages, bands */
  --navy-800: #122c4e;   /* map ocean behind facts */
  --ink:      #130c47;   /* primary text (design header/nav colour) */
  --logo:     #00003b;   /* flower logo + gov.et wordmark */
  --blue:     #004e84;   /* COP32, outline flags, icon circles */
  --blue-500: #1b6fb0;
  --blue-400: #1b86c2;
  --teal:     #276b88;   /* region map */
  --ice:      #b1d9e8;   /* light blue on navy */
  --panel:    #f2f2f2;   /* menu + profile background */
  --line:     #d9dbe3;
  --white:    #ffffff;
  --flag-green:  #018737;
  --flag-yellow: #ffe610;
  --flag-red:    #fc1a15;

  /* ---- Text colours ---- */
  --text:               var(--ink);   /* headings + body on light   */
  --text-muted:         #4f5570;      /* descriptions, roles, meta  (7:1 on white) */
  --text-subtle:        #7c8194;      /* inactive menu items, hints (4.0:1, large text only) */
  --text-link:          var(--ink);   /* links = text colour + underline on hover */
  --text-inverse:       var(--white); /* on navy */
  --text-inverse-muted: var(--ice);   /* secondary text on navy (11:1) */

  /* ---- Families ---- */
  --font-ethiopic: "Noto Sans Ethiopic", "Kefa", sans-serif;
  --font-display:  "Instrument Serif", "Noto Sans Ethiopic", Georgia, "Times New Roman", serif;
  --font-heading:  "Instrument Serif", "Noto Sans Ethiopic", Georgia, "Times New Roman", serif;
  --font-text:     "Instrument Sans", "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo:      "Bebas Neue", "Noto Sans Ethiopic", Impact, sans-serif;            /* COP32 lockup only */
  --font-condensed: "Barlow Semi Condensed", "Noto Sans Ethiopic", sans-serif;       /* SVG map labels only */

  /* ---- Weights ---- */
  --fw-light:    400;   /* Instrument Sans has no Light cut: kept as an alias of Regular */
  --fw-regular:  400;   /* body text */
  --fw-medium:   500;   /* nav, buttons */
  --fw-semibold: 600;   /* labels, emphasis */
  --fw-heading:  400;   /* every serif heading (Instrument Serif is single-weight) */

  /* ---- Type scale (fluid; min at phone, max at wide desktop) ---- */
  --fs-display: clamp(34px, 3.6vw, 60px);   /* serif section titles, footer heads */
  --fs-h1:      clamp(34px, 4vw, 68px);     /* page titles */
  --fs-h2:      clamp(26px, 2.4vw, 40px);   /* sub-titles, region groups */
  --fs-h3:      clamp(20px, 1.6vw, 26px);  /* card titles, names, priorities */
  --fs-lead:    clamp(18px, 1.35vw, 22px);  /* intros, bios, large links */
  --fs-body:    clamp(16px, 1.1vw, 18px);   /* default text */
  --fs-nav:     clamp(13px, .9vw, 14px);    /* header: nav links, MENU/SEARCH, wordmark */
  --fs-small:   15px;                       /* meta, roles, buttons */
  --fs-caption: 13px;                       /* eyebrows, tags, badges */

  --lh-tight: 1.1;
  --lh-snug:  1.3;
  --lh-body:  1.6;
  --ls-caps:  .04em;    /* letter-spacing for uppercase text */
  --ls-label: .1em;     /* letter-spacing for small uppercase labels */
  --ls-heading: .01em;  /* serif headings (sample: 0.5–1.2px) */

  --gutter: clamp(16px, 2.4vw, 48px);

  /* ---- Motion ---- */
  --ease-out:    cubic-bezier(.22, .61, .36, 1);   /* things arriving */
  --ease-in:     cubic-bezier(.55, 0, .75, .3);    /* things leaving */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);     /* things moving */
  --dur-fast: .2s;   /* hovers, colours */
  --dur:      .35s;  /* panels, underlines */
  --dur-slow: .8s;   /* reveals, page entrances */
  --maxw: 1680px;
  --content-w: 1320px;   /* every page body uses this width */
}

/* ---- Text style roles (reusable classes + used via the same declarations below) ---- */
.t-display { font-family: var(--font-display); font-weight: var(--fw-heading); font-size: var(--fs-display); line-height: 1; letter-spacing: var(--ls-heading); }
.t-title   { font-family: var(--font-text);    font-weight: var(--fw-regular); font-size: var(--fs-h1); line-height: var(--lh-tight); text-transform: uppercase; letter-spacing: .01em; }
.t-heading { font-family: var(--font-heading); font-weight: var(--fw-heading); line-height: var(--lh-tight); letter-spacing: var(--ls-heading); }
.t-label   { font-family: var(--font-text);    font-weight: var(--fw-semibold); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-label); }
.t-muted   { color: var(--text-muted); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-text); font-weight: var(--fw-regular); font-size: var(--fs-body); line-height: 1.5; letter-spacing: .01em; -webkit-font-smoothing: antialiased; color: var(--text); background: var(--white); }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: var(--fw-semibold); }
b, strong { font-weight: var(--fw-semibold); }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--flag-yellow); outline-offset: 3px; }
[hidden] { display: none !important; }
:lang(am), :lang(ti) { font-family: var(--font-ethiopic); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--navy-900); color: var(--text-inverse); padding: 10px 16px; }
.skip-link:focus { top: 8px; }

/* =========================================================
   HEADER
   ========================================================= */
/* Fixed header with scroll states (behaviour modelled on sample.html; logic in js/layout.js)
   .is-condensed   scrolled past 80px: smaller logo + padding, soft shadow
   .is-nav-hidden  condensed + scrolling down: nav row tucks away (back on scroll up)
   .is-immersive   overlay page at the very top: transparent over the hero    */
:root { --header-h: 190px; --header-now: var(--header-h); --header-ease: cubic-bezier(.2, .7, .2, 1); }
html { scroll-padding-top: 110px; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--white); color: var(--text); }
.site-header.is-ready { transition: background-color .3s, color .3s, box-shadow .3s; }
.header-spacer { height: var(--header-h); }
.site-header.is-condensed { box-shadow: 0 6px 24px rgba(5, 28, 55, .12); }

.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: clamp(14px, 2vw, 34px) var(--gutter) clamp(12px, 1.6vw, 26px); }
.is-ready .topbar { transition: padding .35s var(--header-ease); }
.is-condensed .topbar { padding-top: 10px; padding-bottom: 8px; }
.topbar__left, .topbar__right { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }

.icon-btn { display: inline-flex; align-items: center; gap: 12px; font-size: var(--fs-nav); letter-spacing: .08em; }
.burger { display: grid; gap: 4px; width: 24px; }
.burger span { display: block; height: 3px; background: currentColor; transition: transform var(--dur) var(--ease-in-out), opacity var(--dur-fast); }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.search-icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }

/* Brand lockup — fixed proportions, part of the logo */
.brand__gov { font-weight: var(--fw-semibold); font-size: var(--fs-nav); letter-spacing: .06em; white-space: nowrap; padding-right: clamp(8px, 1vw, 16px); }
.brand__mark img { width: clamp(52px, 4.8vw, 78px); }
.is-ready .brand__mark img { transition: width .35s var(--header-ease); }
.is-condensed .brand__mark img { width: clamp(40px, 3.2vw, 52px); }
.brand__mark-img--white { display: none; }
.site-header--dark .brand__mark-img--ink { display: none; }
.site-header--dark .brand__mark-img--white { display: block; }
.brand__site { display: flex; flex-direction: column; line-height: 1; padding-left: clamp(8px, 1vw, 16px); }
.brand__domain { font-weight: var(--fw-semibold); font-size: clamp(32px, 3.3vw, 56px); letter-spacing: -.01em; color: var(--logo); }
.brand__tagline { font-size: var(--fs-caption); margin-top: 4px; white-space: nowrap; }
.is-ready .brand__domain { transition: font-size .35s var(--header-ease), color .3s; }
.is-condensed .brand__domain { font-size: clamp(26px, 2.2vw, 36px); }
.is-condensed .brand__tagline { display: none; }

.flag-rule { display: grid; grid-template-columns: repeat(3, 1fr); height: 3px; }
.flag-rule span:nth-child(1) { background: var(--flag-green); }
.flag-rule span:nth-child(2) { background: var(--flag-yellow); }
.flag-rule span:nth-child(3) { background: var(--flag-red); }

/* nav row collapses with a grid-rows animation (0fr ↔ 1fr), so no fixed heights */
.navbar { display: grid; grid-template-rows: 1fr; }
.is-ready .navbar { transition: grid-template-rows .35s var(--header-ease); }
.is-nav-hidden .navbar { grid-template-rows: 0fr; }
.navbar__inner { position: relative; display: flex; justify-content: center; align-items: center; min-height: 0; overflow: hidden; padding: 10px var(--gutter) 12px; }
.is-nav-hidden .navbar__inner { padding-top: 0; padding-bottom: 0; visibility: hidden; transition: padding .35s var(--header-ease), visibility 0s .35s; }
.is-ready:not(.is-nav-hidden) .navbar__inner { transition: padding .35s var(--header-ease); }
.main-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px clamp(18px, 2.6vw, 44px); }
.main-nav a { display: inline-block; padding: 4px 0; font-weight: var(--fw-medium); font-size: var(--fs-nav); letter-spacing: .08em; border-bottom: 2px solid transparent; transition: border-color .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: currentColor; }


/* Dark header (design pages 7 & 8) */
.site-header--dark { background: var(--navy-900); color: var(--text-inverse); }
.site-header--dark .brand__domain { color: var(--text-inverse); }

/* Overlay header (home): transparent + white over the hero while "immersive";
   turns into the normal white header on scroll, hover, focus or an open panel */
.site-header--overlay.is-immersive:not(:hover, :focus-within, .has-open-panel) { background: transparent; color: var(--text-inverse); }
.site-header--overlay.is-immersive:not(:hover, :focus-within, .has-open-panel) .brand__domain { color: var(--text-inverse); }
.site-header--overlay.is-immersive:not(:hover, :focus-within, .has-open-panel) .brand__mark-img--ink { display: none; }
.site-header--overlay.is-immersive:not(:hover, :focus-within, .has-open-panel) .brand__mark-img--white { display: block; }

/* Search panel */
.search-panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--header-now)); overflow-y: auto; overscroll-behavior: contain; background: var(--navy-900); padding: 28px var(--gutter); box-shadow: 0 10px 30px rgba(0,0,0,.25); color: var(--text-inverse); }
.search-form, .band__search { display: flex; max-width: 760px; margin: 0 auto; background: #b3b3b3; color: var(--navy-900); }
.search-form input, .band__search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 16px 20px; font-size: var(--fs-body); color: var(--navy-900); }
.search-form input::placeholder, .band__search input::placeholder { color: var(--white); }
.search-form button { padding: 0 20px; }
.search-results { max-width: 760px; margin: 0 auto; }
.search-results a { display: flex; flex-direction: column; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.12); }
.search-results b { font-size: var(--fs-body); }
.search-results a:hover b { text-decoration: underline; }
.search-results span, .search-results__empty { color: var(--text-inverse-muted); font-size: var(--fs-small); }
.search-results__empty { padding: 14px 4px; }

/* Mega menu (design pages 2 & 10) */
.mega-menu { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--header-now)); overflow-y: auto; overscroll-behavior: contain; background: var(--panel); color: var(--text); box-shadow: 0 18px 40px rgba(5, 28, 55, .25); }
.mega-menu__inner { display: grid; grid-template-columns: minmax(180px, 18%) 1fr auto; gap: clamp(20px, 2.4vw, 40px); padding: 20px var(--gutter) 24px; }
.mega-menu__cats { display: flex; flex-direction: column; gap: 8px; padding-right: clamp(20px, 2.4vw, 40px); border-right: 1px solid #c3c5cd; }
.mega-menu__cats button { display: inline-flex; align-items: center; gap: 12px; font-weight: var(--fw-medium); font-size: var(--fs-nav); letter-spacing: .08em; padding: 4px 0; color: var(--text-subtle); text-align: left; transition: color .15s; }
.mega-menu__cats button::after { content: ""; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid currentColor; }
.mega-menu__cats button[aria-selected="true"], .mega-menu__cats button:hover { color: var(--text); }
.mega-panel { display: none; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
.mega-panel.is-active { display: grid; }
.mega-panel__links { display: grid; gap: 2px; }
.mega-panel__links a { display: inline-block; padding: 3px 0; font-size: var(--fs-small); font-weight: var(--fw-regular); }
.mega-panel__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mega-panel__links a.todo { color: var(--text-subtle); }
.mega-panel__photos { display: flex; gap: 12px; justify-content: flex-end; }
.mega-panel__photos img { width: clamp(96px, 8vw, 140px); aspect-ratio: 9 / 10; object-fit: cover; }

/* COP32 badge — logo lockup, fixed fonts/sizes by design */
.cop32 { display: inline-flex; align-items: center; gap: 12px; color: var(--blue); }
.cop32 img { width: 60px; }
.cop32__text { display: flex; flex-direction: column; line-height: .92; }
.cop32__text b { font-family: var(--font-logo); font-weight: var(--fw-regular); font-size: 40px; letter-spacing: .01em; }
.cop32__text i { font-style: normal; font-family: var(--font-condensed); font-weight: var(--fw-regular); font-size: 25px; border-top: 1px solid currentColor; padding-top: 3px; margin-top: 2px; }
.cop32--menu { align-self: end; gap: 8px; }
.cop32--menu img { width: 34px; }
.cop32--menu .cop32__text b { font-size: 22px; }
.cop32--menu .cop32__text i { font-size: 14px; }
.site-footer .cop32 { color: var(--blue-400); }

/* Social icons */
.social { display: flex; gap: 12px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-500); transition: background .2s, transform .2s; }
.social a:hover { background: #2a8fd6; transform: translateY(-2px); }
.social svg { width: 24px; height: 24px; fill: var(--navy-900); }
.social--ink { justify-content: center; gap: 10px; }
.social--ink a { width: 36px; height: 36px; background: var(--blue); }
.social--ink svg { width: 20px; height: 20px; fill: var(--white); }
.social--lg a { width: 52px; height: 52px; background: var(--navy-900); }
.social--lg svg { width: 28px; height: 28px; }

/* Buttons + shared bits */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; font-weight: var(--fw-semibold); font-size: var(--fs-small); letter-spacing: var(--ls-caps); text-transform: uppercase; border: 2px solid transparent; transition: background .2s, color .2s; }
.btn--light { background: var(--white); color: var(--navy-900); }
.btn--light:hover { background: var(--flag-yellow); }
.btn--ghost { border-color: var(--white); color: var(--text-inverse); }
.btn--ghost:hover { background: var(--white); color: var(--navy-900); }
.eyebrow { margin: 0 0 8px; font-weight: var(--fw-semibold); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--flag-yellow); }
.empty-state { text-align: center; padding: 48px 16px; color: var(--text-muted); font-size: var(--fs-body); }

/* =========================================================
   HOME — structure modelled on sample.html:
   fixed-media hero → narrow intro → leader block → full-width feature rows
   ========================================================= */
/* 1 · Hero. clip-path + position:fixed keeps the photo still while the page
   scrolls over it (the sample's "media fixed" topper). */
.home-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; clip-path: inset(0); background: var(--navy-900); color: var(--text-inverse); text-align: center; }
.home-hero__media { position: fixed; inset: 0; }
.home-hero__slide { position: absolute; inset: 0; background-size: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.4s var(--ease-in-out), transform 8s linear; }
.home-hero__slide.is-active { opacity: 1; transform: scale(1); }
.home-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(5,28,55,.6) 0, rgba(5,28,55,.25) 260px, rgba(5,28,55,.2) 50%, rgba(5,28,55,.7) 100%); }
.home-hero__panel { position: relative; z-index: 2; padding: calc(var(--header-h) * .6) var(--gutter) 0; max-width: 1200px; }
.home-hero__panel h1 { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: clamp(42px, 6.4vw, 112px); line-height: 1.02; letter-spacing: var(--ls-heading); text-wrap: balance; }
.home-hero__deck { margin: clamp(16px, 2vw, 28px) 0 0; font-size: clamp(13px, 1.25vw, 20px); text-transform: uppercase; letter-spacing: .45em; margin-right: -.45em; color: rgba(255,255,255,.9); }
.home-hero__dots { position: absolute; z-index: 2; right: var(--gutter); bottom: 32px; display: flex; gap: 10px; }
.home-hero__dots button { width: 34px; height: 4px; background: rgba(255,255,255,.45); }
.home-hero__dots button[aria-current="true"] { background: var(--white); }
.home-hero__down { position: absolute; z-index: 2; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; place-items: center; width: 48px; height: 48px; }
.chevron { width: 14px; height: 14px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: rotate(45deg) translate(5px, 5px); } }

/* 2 · Intro: narrow centred column of justified paragraphs */
.home-intro { position: relative; background: var(--white); max-width: calc(760px + 2 * var(--gutter)); margin: 0 auto; padding: clamp(56px, 7vw, 112px) var(--gutter) clamp(24px, 3vw, 40px); }
.home-intro p { margin: 0 0 1.4em; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text); }

/* 3 · Leader block */
.home-leader { position: relative; background: var(--white); text-align: center; padding: clamp(16px, 2vw, 32px) var(--gutter) clamp(56px, 6vw, 96px); }
.home-leader h2 { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: var(--ls-heading); }
.home-leader p { margin: 6px 0 20px; font-family: var(--font-heading); font-style: italic; font-size: var(--fs-lead); color: var(--text-muted); }
.home-leader img { width: clamp(220px, 28vw, 420px); height: auto; margin: 0 auto; transition: transform .3s; }
.home-leader a:hover img { transform: scale(1.05); }

/* 4 · Feature rows: full width, stacked, 8px apart */
.feature-rows { position: relative; background: var(--white); display: grid; gap: 8px; padding-bottom: 8px; }
.feature-row a { position: relative; display: block; height: clamp(260px, 34vw, 500px); overflow: hidden; background: var(--navy-900); color: var(--text-inverse); }
.feature-row__media, .feature-row__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature-row__media img { object-fit: cover; transition: transform .6s var(--header-ease); }
.feature-row__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.45)); }
.feature-row__title { position: absolute; z-index: 1; right: var(--gutter); bottom: clamp(16px, 2vw, 28px); display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h2); letter-spacing: var(--ls-heading); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.feature-row__arrow { width: .8em; height: .8em; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.feature-row a:hover .feature-row__media img, .feature-row a:focus-visible .feature-row__media img { transform: scale(1.05); }
.feature-row a:hover .feature-row__arrow, .feature-row a:focus-visible .feature-row__arrow { opacity: 1; transform: none; }
.feature-row a:focus-visible { outline-offset: -6px; }
@media (hover: none) { .feature-row__arrow { opacity: 1; transform: none; } }
/* source photo has blurred bars on its sides: crop them out */
.feature-row--crop .feature-row__media img { transform: scale(1.22); }
.feature-row--crop a:hover .feature-row__media img, .feature-row--crop a:focus-visible .feature-row__media img { transform: scale(1.28); }

/* Scroll reveal (sample's fade-in-on-scroll): hidden only once JS is running */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.home-intro .reveal:nth-child(2) { transition-delay: .1s; }
.home-intro .reveal:nth-child(3) { transition-delay: .2s; }
.home-intro .reveal:nth-child(4) { transition-delay: .3s; }

/* =========================================================
   PAGE 1 — ETHIOPIA COUNTRY PROFILE
   ========================================================= */
.country-hero { position: relative; background: var(--navy-800); color: var(--text-inverse-muted); overflow: hidden; }
.country-hero__map img { width: 100%; aspect-ratio: 2560 / 878; object-fit: cover; object-position: left center; }
.country-facts { position: absolute; top: 0; bottom: 0; right: 0; width: 35%; padding-right: var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.country-facts h1 { margin: 0 0 clamp(12px, 2vw, 32px); font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h1); line-height: 1; letter-spacing: var(--ls-heading); }
.country-facts dl { margin: 0; display: grid; gap: 2px; }
.country-facts dl > div { display: grid; grid-template-columns: minmax(150px, 38%) 1fr; column-gap: 12px; align-items: baseline; }
.country-facts dl > div.gap { margin-top: .35em; }
.country-facts dt { font-weight: var(--fw-semibold); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-label); }
.country-facts dd { margin: 0; font-size: var(--fs-small); line-height: var(--lh-snug); }

/* =========================================================
   BANDS (gallery / video title + search)
   ========================================================= */
/* ---- Page body: one width + the same spacing on every page ---- */
.media-wrap, .council, .profile, .office, .regions, .missions, .sg { box-sizing: content-box; max-width: var(--content-w); margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(56px, 6vw, 96px); }

/* ---- Page head: the same title band opens every inner page ---- */
.page-head { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--navy-900); color: var(--text-inverse); padding: clamp(40px, 5vw, 80px) var(--gutter) clamp(36px, 4.5vw, 72px); }
.page-head__icon { width: clamp(88px, 7vw, 120px); margin-bottom: clamp(16px, 2vw, 24px); }
.page-head__icon--seal { width: clamp(72px, 6vw, 96px); }
.page-head__title { max-width: 24ch; font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-heading); text-wrap: balance; }
.page-head__lead { margin: 12px 0 0; font-size: var(--fs-lead); color: var(--text-inverse-muted); }
.page-head .crumbs { justify-content: center; color: var(--text-inverse-muted); }
.page-head > form { width: 100%; margin-top: clamp(24px, 3vw, 40px); }
.band__search input { padding: 18px 20px; }
.band__search button { padding: 0 clamp(16px, 4vw, 70px) 0 20px; }
.band__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px clamp(14px, 1.8vw, 36px); margin-top: clamp(24px, 3vw, 48px); }
.band__tabs button { font-weight: var(--fw-medium); font-size: var(--fs-nav); text-transform: uppercase; letter-spacing: .08em; padding: 6px 0; border-bottom: 2px solid transparent; color: var(--text-inverse-muted); }
.band__tabs button:hover { color: var(--text-inverse); }
.band__tabs button[aria-pressed="true"] { border-bottom-color: var(--flag-yellow); color: var(--text-inverse); }


.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 40px); max-width: 1240px; margin: 0 auto; }
.photo-tile { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo-tile:hover img { transform: scale(1.05); }
.photo-tile__cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 28px 16px 12px; color: var(--text-inverse); text-align: left; background: linear-gradient(transparent, rgba(5,28,55,.85)); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.photo-tile:hover .photo-tile__cap, .photo-tile:focus-visible .photo-tile__cap { opacity: 1; transform: none; }
.photo-tile__cap b { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); letter-spacing: var(--ls-heading); }
.photo-tile__cap i { font-style: normal; font-weight: var(--fw-semibold); font-size: var(--fs-caption); color: var(--text-inverse-muted); text-transform: uppercase; letter-spacing: var(--ls-label); }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 36px) clamp(16px, 1.6vw, 36px); }
.video-tile { position: relative; display: block; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; background: #000; }
.video-tile img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.video-tile:hover img { opacity: .8; }
.video-tile__play { position: absolute; left: 50%; top: 45%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(5,28,55,.7); border: 2px solid var(--white); opacity: 0; transition: opacity .25s; }
.video-tile__play::after { content: ""; position: absolute; left: 28px; top: 21px; border-left: 22px solid var(--white); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.video-tile:hover .video-tile__play, .video-tile:focus-visible .video-tile__play { opacity: 1; }
.video-tile__len { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.6); color: var(--text-inverse); font-size: var(--fs-caption); font-weight: var(--fw-semibold); padding: 2px 8px; }
.player-bar { position: absolute; left: 4%; right: 4%; bottom: 7%; display: flex; align-items: center; gap: 12px; padding: 6px 16px; border-radius: 999px; background: rgba(60,60,60,.55); color: var(--text-inverse); font-size: 12px; }
.player-bar__track { flex: 1; height: 3px; background: rgba(255,255,255,.5); }
.player-bar__track span { display: block; width: 48%; height: 100%; background: var(--white); }
.video-tile__title { margin: 10px 0 0; font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); line-height: var(--lh-snug); letter-spacing: var(--ls-heading); }

/* Modal / lightbox */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: rgba(3, 14, 28, .94); padding: 24px 8px; color: var(--text-inverse); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.modal__media img { max-height: 80vh; width: auto; margin: 0 auto; }
.modal figcaption { font-size: var(--fs-body); text-align: center; }
.modal__close { position: absolute; top: 12px; right: 18px; font-size: 44px; line-height: 1; }
.modal__nav { font-size: 56px; height: 100%; opacity: .7; }
.modal__nav:hover { opacity: 1; }
.fake-player { position: relative; max-width: min(1100px, 100%); }
.fake-player img { max-height: 72vh; opacity: .45; }
.fake-player__msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; font-size: var(--fs-lead); }
.fake-player__msg .video-tile__play { position: relative; left: auto; top: auto; margin: 0; opacity: 1; }
.fake-player__msg p { max-width: 460px; margin: 0; }

/* =========================================================
   COUNCIL OF MINISTERS (page 4)
   ========================================================= */

.minister-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(28px, 3vw, 56px) clamp(16px, 2.4vw, 44px); }
.minister-card { text-align: center; }
.minister-card__link { display: flex; flex-direction: column; align-items: center; }
.minister-card__photo { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: #c9cfe0; }
.minister-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.minister-card__link:hover img { transform: scale(1.04); }
.minister-card__name { margin-top: 12px; font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); line-height: var(--lh-tight); letter-spacing: var(--ls-heading); }
.minister-card__link:hover .minister-card__name { text-decoration: underline; text-underline-offset: 4px; }
.minister-card__role { margin-top: 2px; font-size: var(--fs-small); color: var(--text-muted); }
.minister-card .social { margin-top: 14px; }

/* =========================================================
   MINISTER PROFILE (page 5)
   ========================================================= */
.main--grey { background: var(--panel); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-small); color: var(--text-muted); margin-bottom: 16px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.profile__body { display: grid; grid-template-columns: minmax(0, 36%) 1fr; gap: clamp(20px, 2.6vw, 40px); align-items: start; }
.profile__photo { width: 100%; aspect-ratio: 4 / 5.2; object-fit: cover; }
.profile__bio p { margin: 0 0 24px; font-size: var(--fs-body); line-height: var(--lh-body); }
.profile__pending { color: var(--text-muted); font-style: italic; }
.profile__bio .social { justify-content: flex-start; }
.profile__pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(40px, 5vw, 72px); padding-top: 24px; border-top: 1px solid #c7cad6; }
.profile__pager a { display: flex; flex-direction: column; font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); letter-spacing: var(--ls-heading); }
.profile__pager a:last-child { text-align: right; }
.profile__pager small { font-family: var(--font-text); font-weight: var(--fw-regular); color: var(--text-muted); font-size: var(--fs-small); }
.profile__pager a:hover { text-decoration: underline; }

/* =========================================================
   OFFICE OF THE PRIME MINISTER (page 6)
   ========================================================= */
.office { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 3vw, 56px); }
.office__card { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 3vw, 48px); border: 3px dotted #5b6075; padding: clamp(20px, 2vw, 32px); }
.office__text h2 { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h2); line-height: var(--lh-tight); margin-bottom: 20px; letter-spacing: var(--ls-heading); }
.office__text p, .priorities dd { font-size: var(--fs-body); line-height: var(--lh-body); }
.office__text p { margin: 0 0 20px; }
.priorities { margin: 0; display: grid; gap: 12px; }
.priorities dt { display: inline; font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); letter-spacing: var(--ls-heading); }
.priorities dd { display: inline; margin: 0 0 0 6px; }
.office__seal { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
.office__seal img { width: min(100%, 300px); }
.office__aside h2 { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h2); line-height: var(--lh-tight); border-bottom: 3px solid var(--navy-900); padding-bottom: 6px; margin-bottom: 8px; letter-spacing: var(--ls-heading); }
.related a, .related__item { display: flex; flex-direction: column; padding: 16px 0; border-bottom: 1px solid var(--line); }
.related b { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); letter-spacing: var(--ls-heading); }
.related span { color: var(--text-muted); }
.related a:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   DARK PAGES (regions + missions, pages 7, 8, 11)
   ========================================================= */

/* Regions (page 7) — desktop diagram on the design's 2419px canvas */
.region-diagram svg { display: block; width: 100%; height: auto; }
.rd-line { fill: none; stroke: var(--navy-900); stroke-width: 2.5; stroke-dasharray: 6 7; }
.rd-arrow { fill: var(--navy-900); }
.rd-region { cursor: pointer; outline: none; }
.rd-region rect { fill: var(--white); stroke: var(--navy-900); stroke-width: 5; transition: fill .2s; }
.rd-region text { font-family: var(--font-text); font-weight: var(--fw-semibold); font-size: 25px; fill: var(--text); }
.rd-region:hover rect, .rd-region:focus-visible rect, .rd-region.is-target rect { fill: var(--navy-900); }
.rd-region:focus-visible text, .rd-region.is-target text { text-decoration: underline; text-decoration-color: var(--flag-yellow); text-decoration-thickness: 3px; }
@media (min-width: 901px) { .regions .regions__layout { display: none; } }   /* stacked version is for tablet/phone */
@media (max-width: 900px) { .region-diagram { display: none; } }

/* Regions — stacked version */

.regions__intro { text-align: center; font-size: var(--fs-lead); margin: 0 0 clamp(24px, 3vw, 48px); }
.regions__layout { display: grid; grid-template-columns: 1fr minmax(0, 1.5fr) 1fr; grid-template-areas: "left map right" ". bottom ."; gap: 24px clamp(20px, 3vw, 56px); align-items: center; }
.regions__col--left { grid-area: left; }
.regions__col--right { grid-area: right; }
.regions__map { grid-area: map; }
.regions__col--bottom { grid-area: bottom; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.regions__col--left, .regions__col--right { display: grid; gap: clamp(16px, 2vw, 34px); }
.region__link { display: flex; align-items: center; gap: 16px; }
.regions__col--left .region__link { display: grid; grid-template-columns: 1fr auto; }
.regions__col--left .region__box { order: 2; }
.regions__col--left .region__text { text-align: right; }
.regions__col--bottom .region__link { flex-direction: column; text-align: center; gap: 10px; }
.region__box { flex: none; display: grid; place-items: center; width: clamp(90px, 7vw, 128px); aspect-ratio: 128 / 76; border: 4px solid var(--navy-900); font-family: var(--font-display); font-weight: var(--fw-heading); font-size: var(--fs-h2); color: var(--teal); transition: background .2s, color .2s; position: relative; letter-spacing: var(--ls-heading); }
.regions__col--left .region__box::after, .regions__col--right .region__box::before { content: ""; position: absolute; top: 50%; width: clamp(16px, 2vw, 40px); border-top: 2px dashed var(--navy-900); }
.regions__col--left .region__box::after { left: 100%; margin-left: 6px; }
.regions__col--right .region__box::before { right: 100%; margin-right: 6px; }
.region__text { display: flex; flex-direction: column; line-height: var(--lh-tight); }
.region__text b { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); letter-spacing: var(--ls-heading); }
.region__text small { color: var(--text-muted); font-size: var(--fs-small); }
.region__link:hover .region__box, .region.is-target .region__box { background: var(--navy-900); color: var(--text-inverse); }
.region.is-target .region__text b { text-decoration: underline; text-decoration-color: var(--flag-yellow); text-decoration-thickness: 3px; }

/* Missions (pages 8 & 11) */
.main--navy { background: var(--navy-900); color: var(--text-inverse); }

/* Diagram (design page 8) — SVG on the design's 2419px canvas, text sizes in canvas units */
.mission-diagram { padding-bottom: clamp(40px, 4vw, 72px); margin-top: calc(-1 * clamp(16px, 2.6vw, 44px)); }
.mission-diagram svg { display: block; width: 100%; height: auto; overflow: visible; }
.md-line { fill: none; stroke: #cfd6e0; stroke-width: 2.5; stroke-dasharray: 6 7; }
.md-arrow { fill: #cfd6e0; }
.md-region { font-family: var(--font-text); font-weight: var(--fw-semibold); font-size: 30px; letter-spacing: .06em; fill: var(--text-inverse); }
.md-flag { cursor: pointer; outline: none; }
.md-flag text { font-family: var(--font-text); font-weight: var(--fw-regular); font-size: 34px; fill: var(--text-inverse-muted); transition: fill .2s; }
.md-flag image { transition: filter .2s; }
.md-flag:hover text, .md-flag:focus-visible text { fill: var(--text-inverse); }
.md-flag:hover image, .md-flag:focus-visible image { filter: brightness(1.7); }
.md-flag:focus-visible text { text-decoration: underline; text-decoration-color: var(--flag-yellow); }

/* Stacked version for tablet/phone */
.mission-groups { display: none; }
.mission-group { text-align: center; }
.mission-group__globe { width: 120px; margin: 0 auto 8px; }
.mission-group h3 { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h2); line-height: var(--lh-tight); margin-bottom: 16px; letter-spacing: var(--ls-heading); }
.mission-group ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.flag { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; color: var(--text-inverse-muted); transition: color .2s; }
.flag img { width: min(100%, 140px); transition: transform .2s, filter .2s; }
.flag span { font-weight: var(--fw-light); font-size: var(--fs-h3); }
.flag:hover { color: var(--text-inverse); }
.flag:hover img { transform: translateY(-3px); filter: brightness(1.5); }

.directory-wrap { border-top: 1px solid rgba(255,255,255,.18); padding-top: clamp(24px, 3vw, 40px); scroll-margin-top: 16px; }
.missions__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.missions__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.missions__tabs button { padding: 8px 14px; border: 1px solid rgba(255,255,255,.35); font-weight: var(--fw-medium); font-size: var(--fs-nav); text-transform: uppercase; letter-spacing: .08em; }
.missions__tabs button:hover { border-color: var(--white); }
.missions__tabs button[aria-pressed="true"] { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.missions__search { display: flex; align-items: center; gap: 8px; border-bottom: 2px solid rgba(255,255,255,.5); flex: 1; min-width: 220px; max-width: 420px; }
.missions__search input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 10px 0; font-size: var(--fs-body); color: var(--text-inverse); }
.missions__search input::placeholder { color: var(--text-inverse-muted); letter-spacing: var(--ls-caps); }
.missions__search .search-icon { width: 24px; height: 24px; }
.missions__count { margin: 0; color: var(--text-inverse-muted); font-size: var(--fs-small); }
.directory-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 56px); align-items: start; }
.directory { columns: 2 320px; column-gap: clamp(24px, 3vw, 56px); }
.directory__group { break-inside: avoid; margin-bottom: clamp(28px, 3vw, 48px); }
.directory__group h2 { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: var(--ls-heading); margin-bottom: 12px; }
.directory__group li { font-size: var(--fs-body); line-height: 1.5; color: var(--text-inverse-muted); }
.directory__group b { color: var(--text-inverse); }
.directory__map { position: sticky; top: calc(var(--header-now) + 24px); transition: top .35s var(--header-ease); }

/* =========================================================
   FOOTER
   ========================================================= */
/* Footer — layout modelled on sample.html's footer:
   brand + newsletter → link columns with small headings → slim bottom bar */
.site-footer { position: relative; background: var(--navy-900); color: var(--text-inverse); }
.main--navy + .site-footer { border-top: 1px solid rgba(255,255,255,.12); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 5vw, 80px) var(--gutter) 0; }
.footer__heading { margin: 0 0 16px; font-family: var(--font-text); font-weight: var(--fw-semibold); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-inverse-muted); }

/* top: brand + newsletter */
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 48px; padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid rgba(255,255,255,.14); }
.footer__brand { display: inline-flex; align-items: center; gap: 16px; }
.footer__brand img { width: clamp(52px, 4.5vw, 68px); }
.footer__brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.footer__domain { font-weight: var(--fw-semibold); font-size: clamp(34px, 3vw, 46px); letter-spacing: -.01em; }
.footer__gov { margin-top: 2px; font-weight: var(--fw-medium); font-size: var(--fs-nav); letter-spacing: .08em; }
.footer__tagline { margin-top: 6px; font-family: var(--font-heading); font-style: italic; font-size: var(--fs-body); color: var(--text-inverse-muted); }
.footer__newsletter { flex: 0 1 440px; }
.footer__newsletter .footer__heading { margin-bottom: 6px; }
.footer__newsletter p { margin: 0 0 14px; font-size: var(--fs-small); color: var(--text-inverse-muted); }
.footer__field { display: flex; border-bottom: 1px solid rgba(255,255,255,.5); transition: border-color var(--dur-fast); }
.footer__field:focus-within { border-color: var(--white); }
.footer__field input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: transparent; color: var(--text-inverse); font-size: var(--fs-body); }
.footer__field input::placeholder { color: rgba(255,255,255,.55); }
.footer__field input:focus { outline: none; }
.footer__field input[aria-invalid="true"] { box-shadow: inset 0 -2px 0 var(--flag-red); }
.footer__field button { padding: 10px 0 10px 16px; font-weight: var(--fw-semibold); font-size: var(--fs-nav); text-transform: uppercase; letter-spacing: .08em; transition: color var(--dur-fast); }
.footer__field button:hover { color: var(--flag-yellow); }

/* link columns */
.footer__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); gap: 40px clamp(24px, 3vw, 56px); padding: clamp(36px, 4vw, 56px) 0; }
.footer__links li a { display: inline; font-size: var(--fs-small); line-height: 1.5; color: rgba(255,255,255,.88); }
.footer__links li a:hover { color: var(--white); }
.footer__links li + li { margin-top: 8px; }
.footer__col--ministries ul { columns: 2; column-gap: clamp(24px, 3vw, 56px); }
.footer__col--ministries li { break-inside: avoid; }

/* bottom bar */
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.14); }
.cop32--footer { gap: 8px; }
.cop32--footer img { width: 30px; }
.cop32--footer .cop32__text b { font-size: 19px; }
.cop32--footer .cop32__text i { font-size: 12px; }
.footer__copy { margin: 0 auto 0 0; font-size: var(--fs-caption); color: var(--text-inverse-muted); letter-spacing: .02em; }
.social--footer { gap: 8px; }
.social--footer a { width: 36px; height: 36px; background: rgba(255,255,255,.14); }
.social--footer a:hover { background: var(--white); }
.social--footer svg { width: 18px; height: 18px; fill: var(--white); transition: fill var(--dur-fast); }
.social--footer a:hover svg { fill: var(--navy-900); }
.footer__top-link { display: inline-flex; align-items: center; gap: 8px; font-weight: var(--fw-medium); font-size: var(--fs-nav); text-transform: uppercase; letter-spacing: .08em; }
.footer__top-link svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease-out); }
.footer__top-link:hover svg { transform: translateY(-3px); }

/* ---- Amharic type scale ----
   Ethiopic glyphs are larger and visually heavier than Latin at the same
   size/weight, so Amharic pages use smaller sizes and lighter weights.
   Components keep using the same tokens; only the token values change. */
html[data-script="ethiopic"] {
  --fw-semibold: 500;                          /* headings + names: Medium, not SemiBold */
  --fs-display: clamp(26px, 2.3vw, 38px);      /* EN 34→56 */
  --fs-h1:      clamp(24px, 2.5vw, 42px);      /* EN 30→60 */
  --fs-h2:      clamp(20px, 1.7vw, 28px);      /* EN 24→36 */
  --fs-h3:      clamp(17px, 1.25vw, 20px);     /* EN 19→24 */
  --fs-lead:    clamp(16px, 1.2vw, 19px);      /* EN 18→22 */
  --fs-body:    clamp(15.5px, 1.1vw, 17px);    /* EN 16→18 — Ethiopic needs ≥15px to stay legible */
  --fs-small:   14.5px;                        /* EN 15 */
  --fs-caption: 12.5px;                        /* EN 13 */
  --fs-nav:     14.5px;                        /* EN 13→14 — Ethiopic needs a bit more */
  --lh-tight:   1.35;
  --lh-snug:    1.5;
  --lh-body:    1.8;
}
html[data-script="ethiopic"] body { line-height: 1.6; }
html[data-script="ethiopic"] .home-hero__panel h1 { font-size: clamp(30px, 4.4vw, 72px); line-height: 1.3; }
html[data-script="ethiopic"] .home-hero__deck { letter-spacing: .2em; margin-right: -.2em; }
html[data-script="ethiopic"] .feature-row__title { letter-spacing: 0; }
html[data-script="ethiopic"] .brand__tagline { margin-top: 8px; }
html[data-script="ethiopic"] .footer__brand-text { line-height: 1.4; }
html[data-script="ethiopic"] .office__aside h2,
html[data-script="ethiopic"] .directory__group h2,
html[data-script="ethiopic"] .mission-group h3 { line-height: 1.35; font-weight: var(--fw-semibold); }
html[data-script="ethiopic"] .footer__heading { letter-spacing: 0; font-size: var(--fs-small); }
html[data-script="ethiopic"] .country-facts h1 { line-height: 1.3; }
html[data-script="ethiopic"] .country-facts dt { font-weight: var(--fw-semibold); letter-spacing: 0; }
html[data-script="ethiopic"] .mega-panel__links a,
html[data-script="ethiopic"] .footer__links li a { font-weight: var(--fw-regular); }
html[data-script="ethiopic"] .main-nav a, html[data-script="ethiopic"] .icon-btn { letter-spacing: 0; }
/* diagram labels (SVG canvas units) */
html[data-script="ethiopic"] .md-region { font-size: 27px; font-weight: var(--fw-semibold); }
html[data-script="ethiopic"] .md-flag text { font-size: 28px; font-weight: var(--fw-regular); }
html[data-script="ethiopic"] .rd-region text { font-size: 24px; }

/* ---- Paragraph alignment (all languages) ----
   Every multi-line paragraph is justified, as in the design (pages 5 & 6).
   Hyphenation keeps English word gaps even; the last line stays left-aligned. */
.profile__bio p,
.home-intro p,
.office__text p,
.priorities > div,
.country-facts dd,
.sg__intro {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
/* centred or one-line texts are not justified */
.profile__pending { text-align: left; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 400; background: var(--navy-900); color: var(--text-inverse); padding: 12px 20px; border-left: 4px solid var(--flag-yellow); font-size: var(--fs-small); box-shadow: 0 8px 24px rgba(0,0,0,.3); max-width: calc(100vw - 32px); }

/* =========================================================
   NEWS · LIVESTREAM · INVESTMENTS · CONTACT  + home priorities / news
   (no design pages yet: built from the site's tokens and components)
   ========================================================= */
.news, .live, .invest, .contact { box-sizing: content-box; max-width: var(--content-w); margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(56px, 6vw, 96px); }
.btn--ink { background: var(--navy-900); color: var(--text-inverse); }
.btn--ink:hover { background: var(--blue); }
.section-title { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: var(--ls-heading); margin-bottom: clamp(20px, 2.4vw, 36px); }
.section-lead { margin: calc(-1 * clamp(8px, 1.4vw, 20px)) 0 clamp(24px, 3vw, 40px); max-width: 720px; font-size: var(--fs-lead); color: var(--text-muted); }
.arrow-icon { width: .9em; height: .9em; transition: transform var(--dur-fast); }

/* ---- News cards ---- */
.news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 36px); }
.news-card a { display: flex; flex-direction: column; height: 100%; }
.news-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy-900); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.news-card__media--contain img { object-fit: contain; padding: 12%; }
.news-card a:hover .news-card__media img { transform: scale(1.04); }
.news-card__body { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }
.news-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
.news-card__meta b { color: var(--blue); }
.news-card__title { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); line-height: var(--lh-snug); letter-spacing: var(--ls-heading); }
.news-card a:hover .news-card__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.news-card__summary { font-size: var(--fs-small); line-height: var(--lh-body); color: var(--text-muted); }
.news-feature { margin-bottom: clamp(36px, 4vw, 64px); }
.news-feature:empty { display: none; }
.news-list--feature { grid-template-columns: 1fr; }
.news-list--feature a { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.news-list--feature .news-card__body { padding: 0; gap: 14px; }
.news-list--feature .news-card__title { font-size: var(--fs-h2); line-height: var(--lh-tight); }
.news-list--feature .news-card__summary { font-size: var(--fs-lead); }

/* ---- Article ---- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 0 clamp(32px, 4vw, 72px); }
.article > .crumbs, .article__head, .article__media { grid-column: 1 / -1; }
.article__head h1 { max-width: 28ch; font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-heading); text-wrap: balance; margin-bottom: 16px; }
.article__media { margin: clamp(24px, 3vw, 40px) 0; aspect-ratio: 21 / 9; overflow: hidden; background: var(--navy-900); }
.article__media img { width: 100%; height: 100%; object-fit: cover; }
.article__media--contain img { object-fit: contain; padding: 4%; }
.article__body p { margin: 0 0 1.3em; font-size: var(--fs-lead); line-height: var(--lh-body); text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.article__share { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: var(--fw-semibold); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-label); }
.article__more h2 { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h2); line-height: var(--lh-tight); border-bottom: 3px solid var(--navy-900); padding-bottom: 8px; margin-bottom: 24px; }
.news-list--compact { grid-template-columns: 1fr; gap: 28px; }

/* ---- Home: priorities + latest news (white panels scroll over the fixed hero) ---- */
.home-priorities, .home-news { position: relative; background: var(--white); padding: 0 var(--gutter) clamp(56px, 6vw, 96px); }
.home-priorities > *, .home-news > * { max-width: var(--content-w); margin-left: auto; margin-right: auto; }
.home-priorities .section-title { text-align: center; }
.home-priorities__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.home-priorities__list a { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--navy-900); color: var(--text-inverse); }
.home-priorities__list img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--header-ease); }
.home-priorities__list a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(5,28,55,.85)); }
.home-priorities__list span { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); line-height: var(--lh-snug); letter-spacing: var(--ls-heading); }
.home-priorities__list a:hover img, .home-priorities__list a:focus-visible img { transform: scale(1.06); }
.home-priorities__list a:focus-visible { outline-offset: -6px; }
.home-news__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 72px); }
.home-news__all { font-weight: var(--fw-semibold); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: var(--ls-caps); text-decoration: underline; text-underline-offset: 4px; }

/* ---- Livestream ---- */
.live__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(24px, 3vw, 56px); align-items: start; }
.live__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.live__screen img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.live__badge { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; background: var(--flag-red); color: var(--white); font-weight: var(--fw-semibold); font-size: var(--fs-caption); letter-spacing: var(--ls-label); }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.live__play { position: absolute; inset: 0; display: grid; place-items: center; }
.live__play .video-tile__play { position: relative; left: auto; top: auto; margin: 0; opacity: 1; width: 88px; height: 88px; transition: transform var(--dur-fast); }
.live__play .video-tile__play::after { left: 34px; top: 26px; }
.live__play:hover .video-tile__play { transform: scale(1.08); }
.live__title { margin-top: 16px; font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: var(--ls-heading); }
.live__meta { margin: 6px 0 0; color: var(--text-muted); font-size: var(--fs-small); }
.live__aside h2, .live__more h2 { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h2); line-height: var(--lh-tight); border-bottom: 3px solid var(--navy-900); padding-bottom: 8px; margin-bottom: 8px; }
.schedule__item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.schedule__item time { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; background: var(--navy-900); color: var(--text-inverse); }
.schedule__item time b { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); line-height: 1; }
.schedule__item time span { font-size: 11px; letter-spacing: var(--ls-label); color: var(--text-inverse-muted); }
.schedule__title { margin: 0; font-weight: var(--fw-medium); line-height: var(--lh-snug); }
.schedule__time { margin: 2px 0 0; font-size: var(--fs-small); color: var(--text-muted); }
.schedule__remind { grid-column: 2; justify-self: start; font-weight: var(--fw-semibold); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.schedule__remind:disabled { color: var(--flag-green); text-decoration: none; cursor: default; }
.live__more { margin-top: clamp(48px, 6vw, 96px); }
.live__more h2 { margin-bottom: 24px; }
.live__all { margin: clamp(28px, 3vw, 48px) 0 0; text-align: center; }

/* ---- Investments ---- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: clamp(56px, 6vw, 96px); }
.stat { display: flex; flex-direction: column; gap: 6px; padding: clamp(20px, 2.4vw, 36px); background: var(--navy-900); color: var(--text-inverse); border-top: 4px solid var(--blue-400); }
.stat b { font-family: var(--font-display); font-weight: var(--fw-heading); font-size: var(--fs-display); line-height: 1; }
.stat span { font-size: var(--fs-small); color: var(--text-inverse-muted); }
.projects { display: grid; gap: clamp(40px, 5vw, 80px); margin-bottom: clamp(64px, 7vw, 112px); }
.project { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; scroll-margin-top: calc(var(--header-now) + 24px); }
.project--flip .project__media { order: 1; }
.project--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.project__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy-900); }
.project__media img { width: 100%; height: 100%; object-fit: cover; }
.project__num { margin: 0 0 8px; font-weight: var(--fw-semibold); font-size: var(--fs-caption); letter-spacing: var(--ls-label); color: var(--blue); }
.project h3 { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: var(--ls-heading); margin-bottom: 14px; }
.project__text > p:not(.project__num) { margin: 0 0 20px; font-size: var(--fs-lead); line-height: var(--lh-body); color: var(--text-muted); }
.project__link { display: inline-flex; align-items: center; gap: 8px; font-weight: var(--fw-semibold); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: var(--ls-caps); border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.project__link:hover .arrow-icon { transform: translateX(4px); }
.sectors-wrap { scroll-margin-top: calc(var(--header-now) + 24px); }
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 56px); margin-bottom: clamp(48px, 6vw, 88px); }
.sector { padding: 24px 0; border-top: 1px solid var(--line); }
.sector h3 { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); line-height: var(--lh-snug); letter-spacing: var(--ls-heading); margin-bottom: 8px; }
.sector p { margin: 0; font-size: var(--fs-small); line-height: var(--lh-body); color: var(--text-muted); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: clamp(28px, 4vw, 56px); background: var(--navy-900); color: var(--text-inverse); }
.cta-band h2 { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h2); line-height: var(--lh-tight); }
.cta-band p { margin: 8px 0 0; color: var(--text-inverse-muted); max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Contact ---- */
.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 80px); align-items: start; }
.contact-form h2, .contact-card h2 { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: var(--ls-heading); }
.contact-form__note { margin: 8px 0 28px; font-size: var(--fs-small); color: var(--text-muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field label { font-weight: var(--fw-semibold); font-size: var(--fs-small); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #9ea3b5; border-radius: 0; background: var(--white); font: inherit; font-size: var(--fs-body); color: var(--text); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--flag-yellow); outline-offset: 0; border-color: var(--navy-900); }
.field [aria-invalid] { border-color: var(--flag-red); box-shadow: inset 4px 0 0 var(--flag-red); }
.contact-form__status { margin: 16px 0 0; font-size: var(--fs-small); }
.contact-form__status:empty { display: none; }
.contact-form__status.is-error { color: #b3120e; }
.contact-form__status.is-ok { padding: 14px 16px; background: var(--panel); border-left: 4px solid var(--flag-green); color: var(--text); }
.contact-aside { display: grid; gap: 8px; }
.contact-card { padding: clamp(20px, 2.4vw, 32px); background: var(--panel); }
.contact-card h2 { font-size: var(--fs-h3); margin-bottom: 8px; }
.contact-card p { margin: 0 0 8px; font-size: var(--fs-small); line-height: var(--lh-body); }
.contact-card .social { justify-content: flex-start; margin-top: 8px; }
.contact-card__link { font-weight: var(--fw-semibold); font-size: var(--fs-small); text-decoration: underline; text-underline-offset: 3px; }

html[data-script="ethiopic"] .news-card__meta, html[data-script="ethiopic"] .project__link, html[data-script="ethiopic"] .schedule__remind { letter-spacing: 0; }

@media (max-width: 1200px) {
  .home-priorities__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .live__stage, .article, .contact { grid-template-columns: minmax(0, 1fr); }
  .article__more { margin-top: 48px; }
  .news-list--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .news-list, .news-list--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-list--feature a { grid-template-columns: 1fr; }
  .project, .project--flip { grid-template-columns: 1fr; }
  .project--flip .project__media { order: 0; }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .home-priorities__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-priorities__list li:last-child { grid-column: 1 / -1; }
  .home-priorities__list li:last-child a { aspect-ratio: 16 / 9; }
  .news-list, .news-list--compact, .sectors, .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   STYLE GUIDE PAGE
   ========================================================= */

.sg__intro { font-size: var(--fs-lead); color: var(--text-muted); max-width: 760px; margin: 0 0 40px; }
.sg__section { margin-bottom: clamp(40px, 5vw, 72px); }
.sg__section > h2 { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h2); line-height: var(--lh-tight); border-bottom: 3px solid var(--navy-900); padding-bottom: 8px; margin-bottom: 24px; letter-spacing: var(--ls-heading); }
.sg__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sg__font { border: 1px solid var(--line); padding: 24px; }
.sg__font .sample { font-size: 64px; line-height: 1; margin-bottom: 16px; }
.sg__font h3 { font-size: var(--fs-h3); margin-bottom: 4px; }
.sg__font p { margin: 0; color: var(--text-muted); font-size: var(--fs-small); }
.sg__table { width: 100%; border-collapse: collapse; }
.sg__table th { text-align: left; font-weight: var(--fw-semibold); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); padding: 8px 12px; border-bottom: 2px solid var(--navy-900); }
.sg__table td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sg__table td:first-child { white-space: nowrap; }
.sg__table code { font-size: var(--fs-caption); background: var(--panel); padding: 2px 6px; }
.sg__meta { font-size: var(--fs-small); color: var(--text-muted); }
.sg__swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.sg__swatch { display: flex; flex-direction: column; justify-content: flex-end; min-height: 120px; padding: 16px; border: 1px solid var(--line); }
.sg__swatch b { font-size: var(--fs-body); }
.sg__swatch span { font-size: var(--fs-small); }

/* =========================================================
   MOTION — smooth transitions across the site
   (all switched off by prefers-reduced-motion at the end of this file)
   ========================================================= */
/* Page-to-page: cross-fade between pages (Chrome/Edge/Safari 18+; others just navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: var(--dur) var(--ease-in) both page-out; }
::view-transition-new(root) { animation: var(--dur-slow) var(--ease-out) both page-in; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } }
.site-header { view-transition-name: site-header; }   /* header stays put while the page fades */

/* Menu + search panels: unfold in, fold out (.is-closing set by js/layout.js) */
.mega-menu, .search-panel { animation: panel-in var(--dur) var(--ease-out); }
.mega-menu.is-closing, .search-panel.is-closing { animation: panel-out .22s var(--ease-in) forwards; pointer-events: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-10px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -60px 0); } }
@keyframes panel-out { to { opacity: 0; transform: translateY(-6px); } }

/* menu contents arrive in a short cascade */
@keyframes item-in { from { opacity: 0; transform: translateX(-8px); } }
.mega-menu:not(.is-closing) .mega-menu__cats li { animation: item-in .4s var(--ease-out) both; }
.mega-menu__cats li:nth-child(2) { animation-delay: 40ms; }
.mega-menu__cats li:nth-child(3) { animation-delay: 80ms; }
.mega-menu__cats li:nth-child(4) { animation-delay: 120ms; }
.mega-menu__cats li:nth-child(5) { animation-delay: 160ms; }
.mega-panel.is-active .mega-panel__links li { animation: item-in .4s var(--ease-out) both; }
.mega-panel.is-active .mega-panel__links li:nth-child(2) { animation-delay: 30ms; }
.mega-panel.is-active .mega-panel__links li:nth-child(3) { animation-delay: 60ms; }
.mega-panel.is-active .mega-panel__links li:nth-child(4) { animation-delay: 90ms; }
.mega-panel.is-active .mega-panel__links li:nth-child(5) { animation-delay: 120ms; }
.mega-panel.is-active .mega-panel__links li:nth-child(6) { animation-delay: 150ms; }
.mega-panel.is-active .mega-panel__links li:nth-child(n+7) { animation-delay: 180ms; }
.mega-panel.is-active .mega-panel__photos img { animation: photo-in .6s var(--ease-out) both; }
.mega-panel.is-active .mega-panel__photos img + img { animation-delay: 80ms; }
@keyframes photo-in { from { opacity: 0; transform: scale(.96); } }
.mega-menu__cats button { transition: color var(--dur-fast), transform var(--dur) var(--ease-out); }
.mega-menu__cats button[aria-selected="true"] { transform: translateX(4px); }
.search-results li { animation: item-in .3s var(--ease-out) both; }

/* Nav: underline grows from the centre */
.main-nav a { position: relative; border-bottom: 0; padding-bottom: 6px; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transition: transform var(--dur) var(--ease-out); }
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Text links in menu + footer: underline draws left → right */
.mega-panel__links a, .footer__links li a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--dur) var(--ease-out), color var(--dur-fast);
}
.mega-panel__links a:hover, .footer__links li a:hover { text-decoration: none; background-size: 100% 1px; }

/* Language switch, buttons, cards */
.btn { transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.minister-card__photo img, .photo-tile img { transition: transform .6s var(--ease-out); }
.feature-row__title { transition: transform var(--dur) var(--ease-out); }
.feature-row a:hover .feature-row__title { transform: translateX(-6px); }

/* Home hero text rises in on load */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.home-hero__panel h1 { animation: rise 1s var(--ease-out) .15s both; }
.home-hero__deck { animation: rise 1s var(--ease-out) .35s both; }
.home-hero__down, .home-hero__dots { animation: fade 1s var(--ease-out) .7s both; }   /* opacity only: the arrow is centred with a transform */

/* Toast slides up / down */
.toast { animation: toast-in var(--dur) var(--ease-out); }
.toast.is-closing { animation: toast-out .25s var(--ease-in) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, 16px); } }

/* Lightbox + video modal content eases in */
.modal__figure { animation: photo-in .45s var(--ease-out) both; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1600px) and (min-width: 1201px) {
}

@media (max-width: 1200px) {
  .country-facts { position: static; width: auto; padding: 32px var(--gutter) 40px; }
  .country-hero__map img { aspect-ratio: 16 / 9; object-position: 8% center; }
  .country-facts dl > div { grid-template-columns: minmax(170px, 30%) 1fr; }
  .country-facts dt, .country-facts dd { font-size: var(--fs-body); }

  .footer__links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__col--ministries { grid-column: 1 / -1; }
  .footer__col--ministries ul { columns: 3; }
  .minister-grid { grid-template-columns: repeat(3, 1fr); }
  .office { grid-template-columns: 1fr; }
  .directory-layout { grid-template-columns: minmax(0, 1fr); }
  .directory__map { position: static; width: 100%; max-width: 720px; order: -1; opacity: .9; }
  .sg__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .mission-diagram { display: none; }
  .mission-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; padding: 8px 0 48px; }
}

@media (max-width: 900px) {
  .brand__gov, .icon-btn__label { display: none; }
  .navbar__inner { flex-direction: column; gap: 10px; }
  .mega-menu__inner { grid-template-columns: 1fr; min-height: 0; }
  .mega-menu__cats { border-right: 0; border-bottom: 1px solid #c3c5cd; padding: 0 0 12px; }
  .mega-panel { grid-template-columns: 1fr; }
  .mega-panel__photos { justify-content: flex-start; }
  .cop32--menu { display: none; }

  .photo-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .office__card { grid-template-columns: 1fr; }
  .profile__body { grid-template-columns: 1fr; }
  .profile__photo { max-width: 420px; margin: 0 auto; }

  .regions__layout { grid-template-columns: 1fr 1fr; grid-template-areas: "map map" "left right" "bottom bottom"; }
  .regions__map { max-width: 560px; margin: 0 auto; }
  .regions__col--left .region__link { display: flex; }
  .regions__col--left .region__box { order: 0; }
  .regions__col--left .region__text { text-align: left; }
  .regions__col--left .region__box::after, .regions__col--right .region__box::before { display: none; }
  .regions__col--bottom { grid-template-columns: 1fr 1fr; }
  .regions__col--bottom .region__link { flex-direction: row; text-align: left; gap: 16px; }
}

@media (max-width: 600px) {
  .brand__tagline { display: none; }
  .main-nav ul { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; max-width: calc(100vw - 32px); padding-bottom: 4px; scrollbar-width: none; }
  .main-nav ul::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; }
  .country-hero__map img { aspect-ratio: 4 / 3; object-position: 4% center; }
  .country-facts dl > div { grid-template-columns: 1fr; }
  .country-facts dl > div + div { margin-top: 10px; }
  .footer__links { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__col--explore { grid-column: 1 / -1; }
  .footer__col--ministries ul { columns: 2; column-gap: 20px; }
  .footer__newsletter { flex-basis: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__copy { margin: 0; }
  .mega-panel__photos img { width: 96px; }
  .home-hero__deck { letter-spacing: .22em; margin-right: -.22em; }
  .photo-grid, .video-grid { grid-template-columns: 1fr; }
  .minister-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .minister-card .social { gap: 6px; }
  .minister-card .social a { width: 30px; height: 30px; }
  .minister-card .social svg { width: 16px; height: 16px; }
  .regions__layout { grid-template-columns: 1fr; grid-template-areas: "map" "left" "right" "bottom"; }
  .regions__col--bottom { grid-template-columns: 1fr; }
  .mission-groups { grid-template-columns: 1fr; }
  .modal { grid-template-columns: 36px 1fr 36px; }
  .modal__nav { font-size: 40px; }
  .profile__pager { grid-template-columns: 1fr; }
  .profile__pager a:last-child { text-align: left; }
  .sg__table, .sg__table tbody, .sg__table tr, .sg__table td { display: block; }
  .sg__table thead { display: none; }
  .sg__table td { border: 0; padding: 4px 0; }
  .sg__table tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   v10 — features from the GCS content proposal
   (utility bar, alert, language menu, ticker, breadcrumbs,
   home topics/services/events, new pages, charts, footer meta)
   ========================================================= */
.wrap { box-sizing: content-box; max-width: var(--content-w); margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(56px, 6vw, 96px); }
.wrap--narrow { max-width: 820px; }
.wrap > section + section, .wrap > section + .contact, .wrap > .contact + section, .about > * + * { margin-top: clamp(48px, 6vw, 88px); }
.note { margin: 16px 0 0; padding: 10px 14px; border-left: 3px solid var(--flag-yellow); background: var(--panel); font-size: var(--fs-caption); color: var(--text-muted); }
.bullets { display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 22px; line-height: var(--lh-body); }
.bullets li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--blue-400); }
.section-title--small { font-size: var(--fs-h3); margin: 24px 0 8px; }
.anchor, .wrap section[id], .media-centre [id] { scroll-margin-top: calc(var(--header-now) + 24px); }

/* ---- Alert banner ---- */
.alert-bar { display: flex; align-items: center; gap: 12px; padding: 8px var(--gutter); background: var(--flag-yellow); color: var(--navy-900); font-size: var(--fs-small); }
.alert-bar--urgent { background: var(--flag-red); color: var(--white); }
.alert-bar p { flex: 1; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.alert-bar a { font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 3px; }
.alert-bar__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; flex: none; }
.alert-bar__close { font-size: 24px; line-height: 1; width: 32px; height: 32px; flex: none; }
.is-condensed .alert-bar { display: none; }

/* ---- Utility bar + language menu ---- */
.utility-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); background: var(--navy-900); color: var(--text-inverse); font-size: var(--fs-caption); min-height: 34px; }
.site-header--overlay.is-immersive:not(:hover, :focus-within, .has-open-panel) .utility-bar { background: rgba(5, 28, 55, .45); }
.utility-bar__links ul { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.utility-bar__links a { display: inline-block; padding: 7px 0; color: var(--text-inverse-muted); transition: color var(--dur-fast); }
.utility-bar__links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.lang-menu { position: relative; flex: none; }
.lang-menu__btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 2px; font-size: var(--fs-caption); color: var(--text-inverse); }
.lang-menu__globe { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-menu__caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; transition: transform var(--dur-fast); }
.lang-menu__btn[aria-expanded="true"] .lang-menu__caret { transform: rotate(180deg); }
.lang-menu__list { position: absolute; right: 0; top: 100%; z-index: 60; min-width: 190px; padding: 6px 0; background: var(--white); color: var(--text); box-shadow: 0 12px 32px rgba(5, 28, 55, .25); }
.lang-menu__list button { display: block; width: 100%; padding: 9px 16px; text-align: left; font-size: var(--fs-small); }
.lang-menu__list button:hover, .lang-menu__list button:focus-visible { background: var(--panel); outline-offset: -3px; }
.lang-menu__list button[aria-current] { font-weight: var(--fw-semibold); box-shadow: inset 3px 0 0 var(--blue-400); }
.lang-menu [lang="am"], .lang-menu [lang="ti"] { font-family: var(--font-ethiopic); }

/* ---- News ticker ---- */
.ticker { position: relative; z-index: 1; display: flex; align-items: stretch; background: var(--white); border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.ticker__label { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 10px var(--gutter) 10px var(--gutter); background: var(--flag-red); color: var(--white); font-weight: var(--fw-semibold); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-label); }
.ticker__viewport { flex: 1; min-width: 0; display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker__track { display: flex; flex: none; gap: 40px; padding: 10px 20px; white-space: nowrap; animation: ticker 70s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track, .ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__track a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ticker__track time { margin-right: 10px; font-weight: var(--fw-semibold); color: var(--blue); }
@keyframes ticker { to { transform: translateX(-100%); } }
.ticker__toggle { flex: none; width: 44px; display: grid; place-items: center; border-left: 1px solid var(--line); }
.ticker__toggle span { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.ticker.is-paused .ticker__toggle span { width: 0; height: 0; border-right: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
@media (prefers-reduced-motion: reduce) { .ticker__viewport { overflow-x: auto; } .ticker__track[aria-hidden] { display: none; } }

/* ---- Breadcrumbs ---- */
.page-head .crumbs { margin: 0 0 clamp(16px, 2vw, 28px); font-size: var(--fs-caption); }
.page-head .crumbs a { color: var(--text-inverse-muted); }
.page-head .crumbs a:hover { color: var(--white); }
.crumbs__here { max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs-bar { position: relative; z-index: 1; background: var(--white); padding: 14px var(--gutter) 0; }
.crumbs-bar .crumbs { max-width: var(--content-w); margin: 0 auto; }
.country-more { position: relative; }

/* ---- Home: hero buttons, services, topics, events ---- */
.home-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(24px, 3vw, 40px); }
.home-block { position: relative; background: var(--white); padding: 0 var(--gutter) clamp(56px, 6vw, 96px); }
.home-block > * { max-width: var(--content-w); margin-left: auto; margin-right: auto; }
.home-services .section-title { text-align: center; }
.service-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.service-card a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: clamp(18px, 2vw, 28px); background: var(--panel); transition: background var(--dur-fast), color var(--dur-fast); }
.service-card a:hover { background: var(--navy-900); color: var(--text-inverse); }
.service-card a:hover span { color: var(--text-inverse-muted); }
.service-card__icon { width: 34px; height: 34px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 8px; }
.service-card a:hover .service-card__icon { stroke: var(--ice); }
.service-card b { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); line-height: var(--lh-snug); }
.service-card span { font-size: var(--fs-small); color: var(--text-muted); line-height: var(--lh-snug); }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 56px); }
.topic-card a { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 16px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); }
.topic-card__num { grid-row: span 2; font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1; color: var(--blue-400); }
.topic-card b { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); line-height: var(--lh-snug); }
.topic-card span:not(.topic-card__num) { grid-column: 2; font-size: var(--fs-small); color: var(--text-muted); line-height: var(--lh-body); }
.topic-card .arrow-icon { grid-row: 1; grid-column: 3; margin-top: 6px; }
.topic-card a:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.topic-card a:hover .arrow-icon { transform: translateX(4px); }
.event-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 56px); }
.event-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); }
.event-item time { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; background: var(--navy-900); color: var(--text-inverse); }
.event-item--deadline time { background: var(--flag-red); }
.event-item time b { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); line-height: 1; }
.event-item time span { font-size: 11px; letter-spacing: var(--ls-label); }
.event-item__type { margin: 0 0 4px; font-weight: var(--fw-semibold); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--blue); }
.event-item--deadline .event-item__type { color: #b3120e; }
.event-item__title { font-weight: var(--fw-medium); line-height: var(--lh-snug); }
a.event-item__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.event-item__place { margin: 4px 0 0; font-size: var(--fs-small); color: var(--text-muted); }

/* ---- About: intro, timeline, leaders, org chart ---- */
.about__intro { max-width: 820px; margin: 0; font-family: var(--font-heading); font-size: var(--fs-lead); line-height: var(--lh-snug); }
.about__mv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 80px); }
.timeline { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 0 0 32px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue-400); box-shadow: 0 0 0 4px var(--white); }
.timeline__year { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--blue); }
.timeline h3, .leader h3 { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); line-height: var(--lh-snug); margin-bottom: 6px; }
.timeline p, .leader p { margin: 0; line-height: var(--lh-body); color: var(--text-muted); }
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.leader { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: clamp(20px, 2.4vw, 32px); background: var(--panel); }
.leader--lead { grid-column: 1 / -1; grid-template-columns: 140px minmax(0, 1fr); }
.leader__photo { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--navy-900); color: var(--ice); font-family: var(--font-display); font-size: var(--fs-h2); }
.leader__role { font-weight: var(--fw-semibold); color: var(--text) !important; margin-bottom: 10px !important; }
.leader blockquote { margin: 16px 0 0; padding-left: 16px; border-left: 3px solid var(--flag-yellow); font-family: var(--font-heading); font-style: italic; font-size: var(--fs-lead); }
.leader__contact { margin-top: 12px !important; font-size: var(--fs-small); }
.org { display: grid; justify-items: center; gap: 28px; padding: clamp(24px, 3vw, 40px); background: var(--panel); }
.org__head, .org__node { padding: 12px 20px; background: var(--navy-900); color: var(--text-inverse); font-weight: var(--fw-semibold); text-align: center; }
.org__head { min-width: 220px; font-size: var(--fs-lead); }
.org__divs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; padding-top: 28px; }
.org__divs::before { content: ""; position: absolute; top: -28px; left: 25%; right: 25%; height: 28px; border: 2px solid var(--blue-400); border-bottom: 0; }
.org__div { display: grid; gap: 8px; align-content: start; }
.org__node { background: var(--blue); font-size: var(--fs-small); }
.org__div ul { display: grid; gap: 6px; padding-left: 16px; border-left: 2px solid var(--blue-400); }
.org__div li, .org__support li { padding: 8px 12px; background: var(--white); font-size: var(--fs-small); }
.org__support { width: 100%; }
.org__support ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---- FAQ ---- */
.faq__group + .faq__group { margin-top: clamp(36px, 4vw, 64px); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: var(--fw-medium); font-size: var(--fs-lead); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: 1.4em; line-height: 1; color: var(--blue); transition: transform var(--dur-fast); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 20px; max-width: 820px; line-height: var(--lh-body); color: var(--text-muted); }

/* ---- Forms: radio/checkbox groups ---- */
.choice { margin: 0 0 20px; padding: 0; border: 0; display: grid; gap: 8px; }
.choice legend { margin-bottom: 8px; font-weight: var(--fw-semibold); font-size: var(--fs-small); }
.choice--row { grid-auto-flow: column; justify-content: start; gap: 24px; }
.choice label, .check-line { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); cursor: pointer; }
.choice input, .check-line input { width: 18px; height: 18px; accent-color: var(--navy-900); flex: none; }
.choice[aria-invalid] legend { color: #b3120e; }
.check-line { margin: 0 0 20px; }
.steps { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: var(--fs-small); line-height: var(--lh-body); }
.survey-form .choice + .choice { margin-top: 12px; }
.survey__results { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.survey__results h3 { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); margin-bottom: 12px; }
.checks { display: grid; gap: 8px; }
.check { padding: 18px 20px; border-left: 4px solid var(--text-subtle); background: var(--panel); }
.check--false { border-color: var(--flag-red); }
.check--misleading { border-color: #d08a00; }
.check--true { border-color: var(--flag-green); }
.check__meta { display: flex; gap: 12px; align-items: center; margin: 0 0 8px; font-size: var(--fs-caption); color: var(--text-muted); }
.check__verdict { padding: 2px 8px; background: var(--navy-900); color: var(--white); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-label); }
.check--false .check__verdict { background: #b3120e; }
.check--misleading .check__verdict { background: #8a5a00; }
.check--true .check__verdict { background: #016b2c; }
.check__claim { margin: 0 0 6px; font-weight: var(--fw-medium); }
.check__finding { margin: 0; font-size: var(--fs-small); color: var(--text-muted); line-height: var(--lh-body); }

/* ---- Filters row (news, local media) ---- */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 16px; margin-bottom: clamp(28px, 3vw, 48px); padding: 20px 20px 0; background: var(--panel); }
.filters .field { flex: 1 1 140px; }
.filters .field select, .filters .field input { padding: 10px 12px; font-size: var(--fs-small); }
.news-filters__clear { margin-bottom: 20px; padding: 10px 4px; font-weight: var(--fw-semibold); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-label); text-decoration: underline; text-underline-offset: 3px; }
.filters__count { flex-basis: 100%; margin: 0 0 16px; font-size: var(--fs-small); color: var(--text-muted); }
.news-cta { margin-top: clamp(48px, 6vw, 88px); }
.news-card .doc-link { display: inline-flex; flex-direction: row; height: auto; margin-top: 10px; }
.doc-link { align-items: center; gap: 6px; font-weight: var(--fw-semibold); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.doc-link::before { content: "↓"; text-decoration: none; }
.modal__download { display: inline-block; margin-top: 12px; padding: 8px 16px; border: 1px solid rgba(255,255,255,.6); font-size: var(--fs-small); }
.modal__download:hover { background: var(--white); color: var(--navy-900); }
.modal__media { text-align: center; }

/* ---- News wire ---- */
.newswire__live { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 4px 12px; background: var(--flag-red); color: var(--white); font-weight: var(--fw-semibold); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-label); }
.wire { margin: 0; padding: 0; list-style: none; max-width: 900px; }
.wire__item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.wire__item time { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--blue); line-height: 1.1; }
.wire__item time small { display: block; font-family: var(--font-text); font-size: var(--fs-caption); color: var(--text-muted); }
.wire__item p { margin: 0; font-size: var(--fs-lead); line-height: var(--lh-snug); }
.wire__item.is-new { animation: wire-in .8s var(--ease-out); background: linear-gradient(90deg, rgba(255,230,16,.25), transparent 70%); }
@keyframes wire-in { from { opacity: 0; transform: translateY(-8px); } }
.wire__new { display: inline-block; margin-right: 10px; padding: 1px 8px; background: var(--flag-yellow); font-family: var(--font-text); font-weight: var(--fw-semibold); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-label); vertical-align: middle; }

/* ---- Local media list ---- */
.outlets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.outlet { background: var(--panel); }
.outlet summary { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 18px 20px; cursor: pointer; list-style: none; }
.outlet summary::-webkit-details-marker { display: none; }
.outlet summary b { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); line-height: var(--lh-snug); }
.outlet summary:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.outlet__meta { grid-column: 2; font-size: var(--fs-small); color: var(--text-muted); }
.outlet__badge { grid-row: span 2; align-self: start; margin-top: 4px; padding: 2px 8px; font-weight: var(--fw-semibold); font-size: 11px; text-transform: uppercase; letter-spacing: var(--ls-label); background: var(--navy-900); color: var(--white); }
.outlet__badge--private { background: var(--blue-500); }
.outlet__info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 0; padding: 0 20px 16px; font-size: var(--fs-small); }
.outlet__info dt { font-weight: var(--fw-semibold); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
.outlet__info dd { margin: 2px 0 0; }
.outlet__rss { margin: 0 20px 20px; padding: 14px 16px; background: var(--white); font-size: var(--fs-small); color: var(--text-muted); }
.outlet__rss ul { margin-top: 6px; display: grid; gap: 4px; }

/* ---- Media centre ---- */
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(40px, 5vw, 72px); }
.quick-links a { display: inline-block; padding: 10px 18px; border: 1px solid var(--navy-900); font-weight: var(--fw-medium); font-size: var(--fs-small); transition: background var(--dur-fast), color var(--dur-fast); }
.quick-links a:hover { background: var(--navy-900); color: var(--text-inverse); }
.resources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: clamp(48px, 6vw, 88px); }
.resource { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 2.4vw, 28px); background: var(--panel); }
.resource h3 { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); line-height: var(--lh-snug); }
.resource p { margin: 0 0 auto; font-size: var(--fs-small); color: var(--text-muted); }
.resource .doc-link { display: inline-flex; padding-top: 8px; }
.resource__kind { align-self: flex-start; padding: 2px 8px; background: var(--navy-900); color: var(--white); font-weight: var(--fw-semibold); font-size: 11px; letter-spacing: var(--ls-label); }
.docs { display: grid; gap: 8px; }
.docs a { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--panel); font-weight: var(--fw-medium); }
.docs a:hover { background: var(--navy-900); color: var(--text-inverse); }

/* ---- Sector + region templates ---- */
.sector-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-now) + 24px); }
.toc ul { display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: var(--fs-small); color: var(--text-muted); }
.toc a:hover { color: var(--text); border-left-color: var(--navy-900); }
.sector-page__body > section + section, .region-page > * + * { margin-top: clamp(48px, 5vw, 80px); }
.sector-page__media { margin: 0 0 clamp(24px, 3vw, 40px); aspect-ratio: 21 / 8; overflow: hidden; background: var(--navy-900); }
.sector-page__media img { width: 100%; height: 100%; object-fit: cover; }
.stats--facts { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: clamp(24px, 3vw, 40px) 0 0; }
.stats--facts .stat b { font-size: var(--fs-h2); }
.sectors--two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }
.photo-grid--small { max-width: none; }
.pillar-nav { margin-top: clamp(48px, 5vw, 80px); padding-top: 24px; border-top: 3px solid var(--navy-900); }
.pillar-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pillar-nav a { display: inline-block; padding: 8px 14px; background: var(--panel); font-size: var(--fs-small); }
.pillar-nav a:hover, .pillar-nav a[aria-current] { background: var(--navy-900); color: var(--text-inverse); }

/* ---- Charts: single-series horizontal bars ---- */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 8px; }
.chart { margin: 0; padding: clamp(20px, 2.4vw, 32px); background: var(--panel); }
.chart figcaption { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.chart figcaption b { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); line-height: var(--lh-snug); }
.chart figcaption span { font-size: var(--fs-caption); color: var(--text-muted); }
.bars { display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: minmax(90px, 34%) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: var(--fs-small); }
.bars__label { color: var(--text); line-height: var(--lh-snug); }
.bars__track { height: 14px; }
.bars__fill { display: block; height: 100%; background: var(--blue); border-radius: 0 4px 4px 0; transition: background var(--dur-fast); }
.bars li:hover .bars__fill { background: var(--navy-900); }
.bars li:hover .bars__label, .bars li:hover .bars__value { font-weight: var(--fw-semibold); }
.bars__value { min-width: 3.5em; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.chart__table { margin-top: 16px; font-size: var(--fs-small); }
.chart__table summary { cursor: pointer; color: var(--blue); font-weight: var(--fw-semibold); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-label); }
.chart__table table { width: 100%; margin-top: 10px; border-collapse: collapse; }
.chart__table th, .chart__table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; font-weight: var(--fw-regular); }
.chart__table td { text-align: right; font-variant-numeric: tabular-nums; }
.chart__table thead th { font-weight: var(--fw-semibold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips li { padding: 6px 14px; background: var(--panel); font-size: var(--fs-small); }
.chips--links li { padding: 0; }
.chips--links a { display: block; padding: 6px 14px; }
.chips--links a:hover { background: var(--navy-900); color: var(--text-inverse); }

/* ---- Investments: pillars ---- */
.pillars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: clamp(56px, 6vw, 96px); }
.pillar a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding-bottom: 8px; }
.pillar__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-900); margin-bottom: 8px; }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.pillar a:hover img { transform: scale(1.05); }
.pillar b { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); }
.pillar span:not(.pillar__media):not(.project__link) { font-size: var(--fs-small); color: var(--text-muted); line-height: var(--lh-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.issues { margin-bottom: clamp(56px, 6vw, 96px); grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---- Legal + sitemap ---- */
.legal h2 { margin: 36px 0 10px; font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); }
.legal p { margin: 0 0 14px; line-height: var(--lh-body); }
.sitemap { columns: 4 220px; column-gap: clamp(24px, 3vw, 56px); }
.sitemap section { break-inside: avoid; margin-bottom: 36px; }
.sitemap .footer__heading { color: var(--text-muted); }
.sitemap li + li { margin-top: 6px; }
.sitemap a { font-size: var(--fs-small); }
.sitemap a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sitemap a.todo { color: var(--text-subtle); }

/* ---- Footer: contact, legal, help ---- */
.footer__meta { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(24px, 3vw, 56px); padding: clamp(28px, 3vw, 44px) 0; border-top: 1px solid rgba(255,255,255,.14); }
.footer__meta address { display: flex; flex-direction: column; gap: 6px; font-style: normal; font-size: var(--fs-small); color: rgba(255,255,255,.88); }
.footer__meta address a:hover, .footer__meta li a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer__meta li a { font-size: var(--fs-small); color: rgba(255,255,255,.88); }
.footer__meta li + li { margin-top: 8px; }
.footer__version { color: rgba(177, 217, 232, .75); }

/* Ethiopic type tweaks for new components */
html[data-script="ethiopic"] .ticker__label, html[data-script="ethiopic"] .event-item__type, html[data-script="ethiopic"] .doc-link,
html[data-script="ethiopic"] .chart__table summary, html[data-script="ethiopic"] .t-label { letter-spacing: 0; }

/* ---- Responsive (v10 components) ---- */
@media (max-width: 1200px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .issues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid, .event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector-page { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
  .toc a { margin: 0; padding: 6px 12px; border: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .about__mv, .leaders, .outlets, .sectors--two, .org__divs { grid-template-columns: 1fr; }
  .org__divs::before { display: none; }
  .resources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__meta { grid-template-columns: 1fr 1fr; }
  .footer__col--contact { grid-column: 1 / -1; }
  .utility-bar__links ul { gap: 2px 14px; }
}
@media (max-width: 600px) {
  .service-grid, .pillars, .resources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid, .event-list, .issues { grid-template-columns: 1fr; }
  .leader, .leader--lead { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .timeline li, .wire__item { grid-template-columns: 1fr; gap: 4px; }
  .utility-bar { flex-wrap: wrap; padding-top: 2px; padding-bottom: 2px; }
  .utility-bar__links { order: 2; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .utility-bar__links ul { flex-wrap: nowrap; white-space: nowrap; }
  .lang-menu { margin-left: auto; }
  .ticker__label { padding: 10px 12px; }
  .choice--row { grid-auto-flow: row; }
  .bars li { grid-template-columns: minmax(80px, 38%) minmax(0, 1fr) auto; gap: 8px; }
  .crumbs__here { max-width: 22ch; }
  .outlet__info { grid-template-columns: 1fr; }
}
.stats--facts + .charts { margin-top: 8px; }
.stat strong { color: var(--text-inverse); font-weight: var(--fw-semibold); }
