/* =====================================================================
   ILAHIA TRUST — DESIGN SYSTEM  ·  layout.css
   Page-composition patterns: hero, bento, news layout, search overlay,
   page headers. Depends on tokens/base/components.
   ===================================================================== */

/* ---------------------------- Hero -------------------------------- */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3.5rem, 2rem + 6vw, 7rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.hero-lede {
  margin-top: 1.5rem; font-size: var(--text-xl); line-height: var(--leading-relaxed);
  color: var(--slate-500); max-width: 34rem;
}
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin-top: 2.25rem;
  padding-top: 1.75rem; border-top: 1px solid var(--line-200);
}
.hero-trust li { display: flex; align-items: center; gap: 0.5rem; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--slate-600); }
.hero-trust svg { width: 1.15rem; height: 1.15rem; color: var(--brand-accent); flex-shrink: 0; }

.hero-visual { position: relative; }
.hero-media { border-radius: var(--radius-2xl); box-shadow: var(--shadow-xl); }
.hero-chip {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border: 1px solid var(--line-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 0.9rem 1.15rem;
  display: flex; flex-direction: column; gap: 0.1rem;
}
.hero-chip--tl { top: 1.4rem; left: -1.4rem; }
.hero-chip--br { bottom: 1.6rem; right: -1.4rem; }
.chip-k { font-size: var(--text-xs); color: var(--slate-400); font-weight: var(--weight-medium); }
.chip-v { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-2xl); color: var(--ink-900); line-height: 1; }
.chip-avatars { display: flex; margin-bottom: 0.4rem; }
.chip-avatars .ca {
  width: 1.9rem; height: 1.9rem; border-radius: 50%; margin-left: -0.5rem;
  display: grid; place-items: center; color: #fff; font-family: var(--font-display);
  font-weight: var(--weight-bold); font-size: 0.75rem; border: 2px solid #fff;
  background: linear-gradient(140deg, var(--m1), var(--m2));
}
.chip-avatars .ca:first-child { margin-left: 0; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-lede { max-width: none; }
  .hero-visual { max-width: 30rem; margin-inline: auto; width: 100%; }
  .hero-chip--tl { left: 0; }
  .hero-chip--br { right: 0; }
}
@media (max-width: 520px) {
  .hero-chip { padding: 0.7rem 0.9rem; }
  .hero-chip--tl { left: -0.5rem; top: 0.8rem; }
  .hero-chip--br { right: -0.5rem; bottom: 0.8rem; }
  .chip-v { font-size: var(--text-xl); }
}

/* ---------------------- Logo strip title -------------------------- */
.strip-title {
  text-align: center; font-family: var(--font-display);
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--slate-400); margin-bottom: 2rem;
}

/* --------------------------- Bento -------------------------------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: var(--space-5); }
.bento-card {
  background: var(--surface); border: 1px solid var(--line-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: var(--space-7); min-height: 13rem;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.bento-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.bento-card h3 { font-size: var(--text-lg); margin: 0.9rem 0 0.4rem; }
.bento-card p { font-size: var(--text-sm); color: var(--slate-500); line-height: var(--leading-relaxed); }
.bento-lg { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
/* Restore the media gradient: .bento-card (white) would otherwise win over
   .media because layout.css loads after media.css at equal specificity. */
.bento-card.media { background: linear-gradient(140deg, var(--m1, #178a6c), var(--m2, #0a3d31)); color: #fff; display: flex; align-items: flex-end; padding: 0; min-height: 13rem; }
.bento-lg.media { min-height: 26rem; }
.bento-content { position: relative; z-index: 2; padding: var(--space-7); }
.bento-card.media h3 { color: #fff; font-size: var(--text-2xl); }
.bento-lg.media h3 { font-size: var(--text-3xl); }
.bento-card.media p { color: rgba(255,255,255,0.85); font-size: var(--text-base); }
.bento-card.media .badge { margin-bottom: 0.9rem; }
@media (max-width: 940px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-lg { grid-column: span 2; grid-row: span 1; }
  .bento-lg.media { min-height: 16rem; }
  .bento-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  /* grid-auto-rows:1fr equalises every row to the tallest card — harmless in a
     4-up grid, but in one column it stretched every card to 360px and padded
     the section with dead space. Let cards size to their content instead. */
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-lg, .bento-wide { grid-column: span 1; }
  .bento-card { min-height: 0; padding: var(--space-6); }
  .bento-card.media { min-height: 11rem; }
  .bento-lg.media { min-height: 13rem; }
}

/* ------------------------ Stat footnote --------------------------- */
.stat-footnote { text-align: center; margin-top: 2.5rem; font-size: var(--text-xs); color: rgba(255,255,255,0.5); }

/* --------------------------- News --------------------------------- */
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.news-head .eyebrow { margin-bottom: 0.75rem; }
.news-layout { display: grid; grid-template-columns: 2.1fr 1fr; gap: clamp(2rem, 3vw, 3.5rem); align-items: start; }
.events-panel { background: var(--surface); border: 1px solid var(--line-200); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.events-title { font-size: var(--text-lg); margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-200); }
@media (max-width: 940px) { .news-layout { grid-template-columns: 1fr; } }

/* --------------------------- FAQ ---------------------------------- */
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: 7rem; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .section-head { position: static; } }

/* --------------------------- CTA ---------------------------------- */
.cta-inner { position: relative; z-index: 2; max-width: 42rem; }

/* --------------------- Page header (interior) --------------------- */
.page-header { position: relative; overflow: hidden; background: var(--ink-900); color: #fff; padding-block: clamp(3rem, 2rem + 5vw, 5.5rem) clamp(2.5rem, 2rem + 3vw, 4rem); isolation: isolate; }
.page-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.16; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.5'%3E%3Ccircle cx='0' cy='0' r='24'/%3E%3Ccircle cx='48' cy='0' r='24'/%3E%3Ccircle cx='0' cy='48' r='24'/%3E%3Ccircle cx='48' cy='48' r='24'/%3E%3Ccircle cx='24' cy='24' r='24'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 48px 48px;
}
.page-header .hero-glow { opacity: 0.5; }
.page-header h1 { color: #fff; margin-top: 0.75rem; max-width: 22ch; }
.page-header .lede { color: rgba(255,255,255,0.78); font-size: var(--text-lg); margin-top: 1rem; max-width: 48ch; line-height: var(--leading-relaxed); }
.page-header .breadcrumb a { color: rgba(255,255,255,0.66); }
.page-header .breadcrumb a:hover { color: #fff; }
.page-header .breadcrumb .sep { color: rgba(255,255,255,0.3); }
.page-header .breadcrumb [aria-current="page"] { color: rgba(255,255,255,0.92); }
.page-header .eyebrow { color: var(--gold-400); }

/* ------------------------- Prose ---------------------------------- */
.prose { max-width: 42rem; }
.prose > * + * { margin-top: 1.35rem; }
.prose p { color: var(--slate-600); line-height: var(--leading-relaxed); }
.prose h2 { font-size: var(--text-3xl); margin-top: 2.75rem; }
.prose h3 { font-size: var(--text-xl); margin-top: 2rem; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 0.75rem; }
.prose ul li { position: relative; padding-left: 1.9rem; color: var(--slate-600); }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.15rem; width: 1.25rem; height: 1.25rem;
  background: var(--green-50); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230e7458' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* --------------------- Split / two-column ------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.split.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 860px) { .split, .split.split--wide-left { grid-template-columns: 1fr; } }

/* --------------------------- Timeline ----------------------------- */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 0.6rem; top: 0.4rem; bottom: 0.4rem; width: 2px; background: linear-gradient(var(--brand-accent), var(--line-200)); }
.tl-item { position: relative; padding: 0 0 2.25rem 2.5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 0.15rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand-accent); box-shadow: 0 0 0 4px var(--brand-accent-soft); }
.tl-year { font-family: var(--font-display); font-weight: var(--weight-extra); color: var(--brand-accent); font-size: var(--text-lg); line-height: 1; }
.tl-item h3 { font-size: var(--text-lg); margin: 0.35rem 0 0.4rem; }
.tl-item p { color: var(--slate-500); font-size: var(--text-sm); line-height: var(--leading-relaxed); max-width: 44ch; }

/* -------------------- Institution profile row --------------------- */
.inst-profile { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; padding-block: clamp(2rem, 3vw, 3rem); }
.inst-profile:nth-child(even) .inst-profile-media { order: 2; }
.inst-profile + .inst-profile { border-top: 1px solid var(--line-200); }
.inst-profile-media { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.inst-profile .meta-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1rem 0 1.25rem; }
.inst-profile .meta-row span { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--text-sm); color: var(--slate-500); font-weight: var(--weight-medium); }
.inst-profile .meta-row svg { width: 1.05rem; height: 1.05rem; color: var(--brand-accent); }
@media (max-width: 820px) {
  .inst-profile { grid-template-columns: 1fr; }
  .inst-profile:nth-child(even) .inst-profile-media { order: 0; }
}

/* --------------------------- Steps -------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: var(--space-6); background: var(--surface); border: 1px solid var(--line-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.step-num { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--brand-accent-soft); color: var(--brand-accent-ink); font-family: var(--font-display); font-weight: var(--weight-extra); margin-bottom: var(--space-4); }
.step h3 { font-size: var(--text-lg); margin-bottom: 0.4rem; }
.step p { font-size: var(--text-sm); color: var(--slate-500); line-height: var(--leading-relaxed); }

/* =====================================================================
   Ecosystem Explorer — the interactive centrepiece.
   A radial "family hub": the trust mark at centre, six institutions
   around it. Selecting one instantly re-themes the detail panel to that
   institution's colour + content. Reuses tokens, .media, .btn and the
   accent theming — no new primitives. Reduced-motion aware.
   ===================================================================== */
.ecosystem { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }

/* --- Hub (the selectors) --- */
.eco-hub { position: relative; aspect-ratio: 1; width: 100%; max-width: 30rem; margin-inline: auto; }
.eco-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; }
.eco-lines line { stroke: var(--line-300); stroke-width: 0.4; stroke-linecap: round; transition: stroke var(--dur-base) var(--ease-out), stroke-width var(--dur-base) var(--ease-out); }
.eco-lines line.active { stroke: var(--brand-accent); stroke-width: 1; }

.eco-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-200); box-shadow: var(--shadow-md);
  display: grid; place-items: center; align-content: center; gap: 0.25rem; text-align: center; z-index: 2;
}
.eco-center img { width: 44%; height: auto; }
.eco-center span { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 0.64rem; color: var(--ink-900); letter-spacing: -0.01em; line-height: 1; }

.eco-node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.45rem; width: 5.4rem;
}
.eco-node-chip {
  width: 3.4rem; height: 3.4rem; border-radius: var(--radius-md);
  background: var(--surface); border: 1.5px solid var(--line-200); box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.eco-node-chip img { width: 62%; height: auto; }
.eco-node-label { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: 0.72rem; color: var(--slate-500); white-space: nowrap; transition: color var(--dur-base) var(--ease-out); }
.eco-node:hover .eco-node-chip { transform: scale(1.08); box-shadow: var(--shadow-md); border-color: var(--line-300); }
.eco-node[aria-selected="true"] .eco-node-chip { transform: scale(1.1); border-color: var(--brand-accent); box-shadow: 0 0 0 4px var(--brand-accent-soft), var(--shadow-md); }
.eco-node[aria-selected="true"] .eco-node-label { color: var(--brand-accent-ink); }

/* one-time invite pulse on the default node (mouse users, motion allowed) */
.eco-node.invite .eco-node-chip::after {
  content: ""; position: absolute; inset: -4px; border-radius: inherit;
  border: 2px solid var(--brand-accent); opacity: 0; animation: ecoPulse 2.4s var(--ease-out) 3;
}
@keyframes ecoPulse { 0% { opacity: 0.7; transform: scale(1); } 70%,100% { opacity: 0; transform: scale(1.35); } }

/* --- Panel (the detail) --- */
.eco-panel-wrap { position: relative; }
.eco-panel { background: var(--surface); border: 1px solid var(--line-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.eco-panel[hidden] { display: none; }
.eco-panel.enter { animation: ecoIn var(--dur-base) var(--ease-out); }
@keyframes ecoIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.eco-head {
  position: relative; min-height: 10.5rem; padding: var(--space-6);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.5rem;
  overflow: hidden; isolation: isolate;
  /* layered gradient mesh — light top-left, glow top-right, depth bottom-right */
  background:
    radial-gradient(120% 120% at 12% 6%, color-mix(in srgb, var(--m1, #178a6c) 52%, #fff) 0%, transparent 46%),
    radial-gradient(110% 150% at 94% -12%, color-mix(in srgb, var(--m1, #178a6c) 72%, #fff 24%) 0%, transparent 48%),
    radial-gradient(120% 130% at 88% 118%, color-mix(in srgb, var(--m2, #0a3d31) 82%, #000 12%) 0%, transparent 54%),
    linear-gradient(145deg, var(--m1, #178a6c), var(--m2, #0a3d31));
}
/* rebuild the layered look ourselves instead of .media's flat pattern/vignette */
.eco-head.media::before, .eco-head.media::after { content: none; }
.eco-head > *:not(.eco-scene) { position: relative; z-index: 3; }
.eco-head h3 { color: #fff; font-size: var(--text-2xl); text-shadow: 0 1px 12px rgba(4,18,14,0.28); }
.eco-head p { color: rgba(255,255,255,0.9); font-size: var(--text-sm); font-weight: var(--weight-medium); }

/* --- decorative scene: floating glass panels + glow + geometry --- */
.eco-scene { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.eco-scene::before {
  content: ""; position: absolute; inset: 0; opacity: 0.16; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.5'%3E%3Ccircle cx='0' cy='0' r='24'/%3E%3Ccircle cx='48' cy='0' r='24'/%3E%3Ccircle cx='0' cy='48' r='24'/%3E%3Ccircle cx='48' cy='48' r='24'/%3E%3Ccircle cx='24' cy='24' r='24'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 46px 46px;
}
.eco-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 48%, rgba(4,18,14,0.32)); }
.eco-scene .orb { position: absolute; width: 13rem; height: 13rem; border-radius: 50%; top: -5.5rem; right: -3.5rem; background: radial-gradient(circle, rgba(255,255,255,0.5), transparent 66%); filter: blur(3px); }
.eco-scene .glass { position: absolute; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.34); box-shadow: 0 14px 34px -14px rgba(0,0,0,0.45); }
.eco-scene .g1 { width: 7.5rem; height: 4.6rem; border-radius: 16px; top: 1.1rem; right: 2.6rem; transform: rotate(-13deg); }
.eco-scene .g2 { width: 3.6rem; height: 3.6rem; border-radius: 14px; bottom: -1.1rem; right: 1.4rem; transform: rotate(12deg); }

/* subject icon in a frosted glass tile */
.eco-head .media-glyph {
  position: absolute; top: var(--space-5); right: var(--space-5); z-index: 4; opacity: 1;
  width: 3.4rem; height: 3.4rem; display: grid; place-items: center; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 10px 26px -10px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.35);
}
.eco-head .media-glyph svg { width: 1.7rem; height: 1.7rem; color: #fff; }
@supports (backdrop-filter: blur(4px)) {
  .eco-scene .glass { backdrop-filter: blur(3px); }
  .eco-head .media-glyph { backdrop-filter: blur(6px); background: rgba(255,255,255,0.16); }
}
@media (prefers-reduced-motion: reduce) { .eco-scene .orb { filter: none; } }
.eco-body { padding: var(--space-6); }
.eco-body > p { color: var(--slate-600); line-height: var(--leading-relaxed); }
.eco-facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: var(--space-5) 0; }
.eco-fact { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--brand-accent-ink); background: var(--brand-accent-soft); padding: 0.4rem 0.7rem; border-radius: var(--radius-full); }
.eco-hint { text-align: center; margin-top: 1.5rem; font-size: var(--text-sm); color: var(--slate-400); }
/* Show the keyboard/hover tip only where those inputs exist; touch devices get
   a tap hint instead (arrow keys and hover mean nothing on a phone). */
.eco-hint--pointer { display: none; }
.eco-hint--touch { display: inline; }
@media (hover: hover) and (pointer: fine) {
  .eco-hint--pointer { display: inline; }
  .eco-hint--touch { display: none; }
}
.eco-hint kbd { font-family: var(--font-mono); font-size: 0.7rem; background: var(--surface); border: 1px solid var(--line-300); border-bottom-width: 2px; border-radius: 5px; padding: 0.1rem 0.4rem; color: var(--slate-600); }

@media (max-width: 820px) {
  .ecosystem { grid-template-columns: 1fr; gap: 2rem; }
  .eco-hub { aspect-ratio: auto; max-width: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
  .eco-lines, .eco-center { display: none; }
  .eco-node { position: static; transform: none; width: auto; flex-direction: row; gap: 0.5rem; padding: 0.45rem 0.85rem 0.45rem 0.5rem; border: 1.5px solid var(--line-200); border-radius: var(--radius-full); background: var(--surface); box-shadow: var(--shadow-xs); }
  .eco-node-chip { width: 2rem; height: 2rem; border: none; box-shadow: none; background: transparent; }
  .eco-node:hover .eco-node-chip, .eco-node[aria-selected="true"] .eco-node-chip { transform: none; box-shadow: none; }
  .eco-node[aria-selected="true"] { border-color: var(--brand-accent); background: var(--brand-accent-soft); }
  .eco-node.invite .eco-node-chip::after { display: none; }
}

/* =====================================================================
   Mobile refinement — centre content that reads as non-uniform when it
   collapses to a single column, and make horizontal groups swipeable.
   ===================================================================== */
@media (max-width: 640px) {
  .section-head { text-align: center; margin-inline: auto; }
  .section-head .lede { margin-inline: auto; }
  .eyebrow { justify-content: center; }
  .eyebrow::before { display: none; }

  .hero-copy { text-align: center; }
  .hero-copy .cluster, .hero-trust { justify-content: center; }
  .hero-lede { margin-inline: auto; }

  .page-header { text-align: center; }
  .page-header .breadcrumb { justify-content: center; }
  .page-header .lede { margin-inline: auto; }

  .news-head { flex-direction: column; align-items: center; text-align: center; }
  .cta-inner { text-align: center; margin-inline: auto; }
  .cta-inner .cluster { justify-content: center; }
  .leader { text-align: center; }
  .leader .cluster, .leader .link-arrow { justify-content: center; }
  .leader-sign { }
  .strip-title { text-align: center; }

}
/* Swipeable row: a normal 3-up grid on desktop, a snap-scroll carousel with a
   peek (so it's obviously swipeable) on mobile. */
.swipe-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 760px) {
  .swipe-row {
    grid-template-columns: none; display: flex; gap: var(--space-4);
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * var(--gutter)); padding: 0.25rem var(--gutter) 1rem; scrollbar-width: none;
  }
  .swipe-row::-webkit-scrollbar { display: none; }
  .swipe-row > * { scroll-snap-align: center; flex: 0 0 84%; }
}
.swipe-cue { display: none; }
@media (max-width: 760px) {
  .swipe-cue { display: flex; align-items: center; justify-content: center; gap: 0.45rem; margin-top: 0.25rem; font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--slate-400); }
  .swipe-cue svg { width: 1.05rem; height: 1.05rem; animation: swipeHint 1.8s var(--ease-in-out) infinite; }
}
@keyframes swipeHint { 0%,100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .swipe-cue svg { animation: none; } }

/* --------------------------- Policies ----------------------------- */
.policy-layout { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.policy-nav { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 7rem; }
.policy-nav .link-arrow { justify-content: flex-start; }
@media (max-width: 820px) {
  .policy-layout { grid-template-columns: 1fr; }
  .policy-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 0.75rem 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-200); }
}

/* --------------------------- Search overlay ----------------------- */
.search-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(10, 21, 18, 0.55); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(3rem, 12vh, 9rem) 1.25rem 2rem;
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
}
.search-overlay.open { opacity: 1; }
.search-overlay[hidden] { display: none; }
.search-panel {
  width: min(40rem, 100%); background: var(--surface);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  overflow: hidden; transform: translateY(-10px); transition: transform var(--dur-base) var(--ease-out);
}
.search-overlay.open .search-panel { transform: none; }
.search-field { display: flex; align-items: center; gap: 0.75rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line-200); }
.search-field > svg { width: 1.3rem; height: 1.3rem; color: var(--slate-400); flex-shrink: 0; }
.search-input { flex: 1; border: none; outline: none; font-size: var(--text-lg); background: transparent; color: var(--ink-900); }
.search-close { display: inline-flex; align-items: center; min-height: 1.75rem; min-width: 2.25rem; justify-content: center; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--slate-500); border: 1px solid var(--field-border); border-radius: var(--radius-xs); padding: 0.3rem 0.55rem; }
.search-close:hover { color: var(--ink-900); border-color: var(--slate-400); }
.search-results { max-height: 24rem; overflow-y: auto; padding: 0.5rem; }
.search-group-label { padding: 0.75rem 0.9rem 0.35rem; font-family: var(--font-display); font-size: var(--text-xs); font-weight: var(--weight-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--slate-400); }
.search-result { display: flex; align-items: center; gap: 0.85rem; padding: 0.75rem 0.9rem; border-radius: var(--radius-sm); }
.search-result .sr-meta { display: flex; flex-direction: column; min-width: 0; gap: 0.1rem; }
.search-hl { background: var(--gold-300); color: var(--gold-700); border-radius: 3px; padding: 0 1px; }
/* empty-state suggestions */
.search-suggest { padding: 1rem 0.9rem 1.25rem; }
.search-suggest-label { display: block; font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--slate-400); margin-bottom: 0.75rem; }
.search-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search-chip { font-family: var(--font-display); font-weight: var(--weight-medium); font-size: var(--text-sm); color: var(--slate-600); background: var(--surface-2); border: 1px solid var(--field-border); border-radius: var(--radius-full); padding: 0.45rem 0.9rem; transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.search-chip:hover { background: var(--green-50); border-color: var(--green-200); color: var(--green-700); }
/* no-results */
.search-noresult { padding: 1.5rem 1rem; text-align: center; color: var(--slate-500); font-size: var(--text-sm); }
.search-noresult strong { color: var(--ink-900); }
.search-dym { margin-top: 0.4rem; }
.search-noresult a { font-weight: var(--weight-semibold); }
.search-result:hover, .search-result.active { background: var(--surface-2); }
.search-result .sr-ic { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: var(--radius-sm); background: var(--green-50); color: var(--green-600); flex-shrink: 0; }
.search-result .sr-ic svg { width: 1.15rem; height: 1.15rem; }
.search-result .sr-t { font-family: var(--font-display); font-weight: var(--weight-semibold); color: var(--ink-900); font-size: var(--text-sm); }
.search-result .sr-d { font-size: var(--text-xs); color: var(--slate-400); }
.search-result .sr-cat { margin-left: auto; font-size: var(--text-xs); color: var(--slate-400); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
