/* =========================================================================
   College Students — education news magazine.
   Three colours carry the design: a deep green masthead and footer, a blue
   hero and closing band, and orange for flags, pills and rules, over a white
   page with green panel washes. Every pair below clears WCAG AA.
   Every colour lives in the block that follows.
   ========================================================================= */

:root {
  /* ---- brand ---- */
  --brand: #06700a;              /* blue: hero, closing band, links */
  --brand-deep: #022508;
  --brand-soft: #068b20;
  --brand-wash: #e9f1fc;
  --accent: #b35000;             /* orange: flags, pills, buttons, rules */
  --accent-deep: #8f3f00;
  --rose: #e8f4ec;               /* panel wash, green (the class names keep the old name) */
  --rose-line: #cde7d8;
  --ink: #0d1b2a;                /* gallery band, footer wordmark */
  --nav: #532402;                /* deep green masthead + footer */
  --nav-deep: #0d3a1f;  



  /* "Students" in the wordmark. Two values because the mark sits on deep
     green in the masthead and on white elsewhere, and one orange cannot clear
     AA on both: the light one is 4.8:1 on the nav, the deep one 5.9:1 on white. */
  --rose-on-dark: #ffa94d;
  --rose-on-light: #a34a00;

  /* ---- section tones, hashed per category ---- */
  --tone-0: #b35000;
  --tone-1: #155fbb;
  --tone-2: #127a55;
  --tone-3: #8f3f00;
  --tone-4: #0e6f8f;
  --tone-5: #3f7a12;

  /* ---- surfaces ---- */
  --page: #ffffff;
  --sunken: #f4f7fa;
  --card: #ffffff;
  --line: #e3e9ef;
  --line-strong: #cbd6e0;

  /* ---- text ---- */
  --text: #12202e;
  --text-muted: #5c6b7a;
  --text-faint: #7d8a98;
  --on-dark: #ffffff;
  /* 0.86 rather than the usual 0.72: on the blue hero a lighter muted tone is
     what keeps the standfirst and byline at 4.5:1. */
  --on-dark-muted: rgba(255, 255, 255, 0.86);

  /* ---- type ---- */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Poppins", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---- shape / space ---- */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;
  --container: 1298px;           /* 1180 + 10% */
  --narrow: 770px;               /* 700 + 10%, for the prose-only pages */
  --nav-h: 78px;                 /* fixed masthead bar; holds two rows of nav. Offsets below track it,
                                    and site.js keeps it on the bar's real height as the rows change */
  --margin: 22px;
  --gutter: 22px;
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 28px;
  --s-4: 48px;
  --shadow: 0 2px 12px rgba(13, 27, 42, 0.07);
  --shadow-lift: 0 12px 30px rgba(13, 27, 42, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 18px); }

body {
  margin: 0; background: var(--page); color: var(--text);
  font-family: var(--font); font-size: 15.5px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 2px; }
/* a:hover { color: var(--brand-deep); } */
a:hover { color: #ddd; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-sm); }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: #fff; padding: 0.65rem 1rem; border-radius: 0 0 var(--r) 0; }
.skip-link:focus { left: 0; }

.shell { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--margin); }
.shell-narrow { max-width: calc(var(--narrow) + var(--margin) * 2); }
main { display: block; }

.thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
a[class$="-media"], span[class$="-media"] { display: block; overflow: hidden; border-radius: var(--r); background: var(--sunken); }
a[class$="-media"] .thumb-img { transition: transform .5s ease; }
a[class$="-media"]:hover .thumb-img { transform: scale(1.06); }

[data-tone="0"] { --tone: var(--tone-0); }
[data-tone="1"] { --tone: var(--tone-1); }
[data-tone="2"] { --tone: var(--tone-2); }
[data-tone="3"] { --tone: var(--tone-3); }
[data-tone="4"] { --tone: var(--tone-4); }
[data-tone="5"] { --tone: var(--tone-5); }

/* ------------------------------------------------------------- masthead */
.site-header { padding-top: var(--nav-h); }
.navbar { background: var(--nav); position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.navbar-inner { display: flex; align-items: center; gap: var(--s-2); min-height: var(--nav-h); }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; color: #fff; flex: none; }
.masthead-logo { height: 55px; width: auto; }
.wordmark-text { font-family: var(--font-head); font-size: 27px; font-weight: 700; letter-spacing: -0.03em; }
.wordmark-tail, .wordmark-dot { color: var(--rose-on-dark); }
/* The footer is dark too now, so the mark keeps the lighter rose. */
.footer-wordmark .wordmark-tail, .footer-wordmark .wordmark-dot { color: var(--rose-on-dark); }

/* Every category rides the bar, so the links wrap onto as many rows as they
   need and the masthead grows with them: site.js keeps --nav-h on the bar's
   real height, so the page below is never covered. The type is a step smaller
   than the rest of the theme to keep that to two rows on a desktop. Below
   1220px the bar collapses into the menu button instead. */
.primary-nav { margin-right: auto; min-width: 0; }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  display: inline-block; font-family: var(--font-head); font-size: 12.5px; font-weight: 500;
  color: var(--on-dark-muted); text-decoration: none; padding: 9px 8px; white-space: nowrap;
}
.primary-nav a:hover { color: #fff; }
.primary-nav a[aria-current="page"] { color: #fff; font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
/* Both masthead buttons are flat: the glyph alone, brightening on hover. The
   34px box stays so the tap target does not shrink with the background. */
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0;
  border-radius: 0; background: transparent; color: var(--on-dark-muted); cursor: pointer; transition: color .15s;
}
.icon-btn:hover { color: #fff; }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* This switches .icon-btn from grid to flex, so `place-items: center` no longer
   centres the bars vertically — on a column flex that is justify-content's job.
   Without it the bars pack to the top and sit 9px above the search glyph. */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 4px; }
.nav-toggle span { display: block; width: 17px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------- ticker */
.ticker { background: #fff; border-bottom: 1px solid var(--line); }
.ticker-inner { display: flex; align-items: stretch; min-height: 44px; }
.ticker-flag {
  display: inline-flex; align-items: center; gap: 7px; flex: none; color: var(--brand);
  font-family: var(--font-head); font-size: 12.5px; font-weight: 600; padding-right: 18px;
}
.ticker-dot { width: 7px; height: 7px; border-radius: var(--r-full); background: var(--accent); flex: none; }
.ticker-window { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.ticker-track { display: flex; align-items: center; gap: 40px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
/* The scroll only wraps cleanly once site.js has duplicated the headlines. */
.ticker-track[data-ticker-ready] { animation: ticker-scroll 46s linear infinite; will-change: transform; }
.ticker-window:hover .ticker-track, .ticker-track:focus-within { animation-play-state: paused; }
.ticker-track li { display: flex; align-items: center; gap: 40px; }
.ticker-track li::after { content: ""; width: 5px; height: 5px; border-radius: var(--r-full); background: var(--rose-line); flex: none; }
.ticker-track a { font-size: 13.5px; font-weight: 500; color: var(--text); text-decoration: none; }
.ticker-track a:hover { color: var(--accent); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ----------------------------------------------------------- chips etc. */
.kicker-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; font-family: var(--font-head); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; line-height: 1; text-decoration: none;
  padding: 6px 10px; border-radius: var(--r-sm); background: var(--tone, var(--accent)); color: #fff;
}
.chip:hover { filter: brightness(1.12); color: #fff; }
.chip-quiet { background: #fff; color: var(--tone, var(--text-muted)); border: 1px solid var(--line); }
.chip-quiet:hover { background: var(--tone, var(--accent)); color: #fff; filter: none; }
.chip-alert { background: var(--accent); color: #fff; }

.kicker { margin: 0 0 7px; font-family: var(--font-head); font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.kicker a { color: var(--tone, var(--accent)); text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

.byline { margin: 9px 0 0; font-size: 12px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 6px; }
.byline-name { font-weight: 600; color: var(--text); }
.byline-sep { color: var(--line-strong); }
.byline-light { color: var(--on-dark-muted); }
.byline-light .byline-name { color: #fff; }
.byline-light .byline-sep { color: rgba(255, 255, 255, 0.4); }

/* ----------------------------------------------------------- band heads */
.band { margin-top: var(--s-4); }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-3); }
.band-title { font-family: var(--font-head); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.band-dots { color: var(--accent); margin-left: 4px; }
.band-head-light .band-title { color: #fff; }
.see-all { font-size: 12.5px; font-weight: 600; color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.see-all:hover { color: var(--accent); }
.band-head-light .see-all { color: var(--on-dark-muted); }
.band-head-light .see-all:hover { color: #fff; }

/* ------------------------------------------------------------ home: hero */
.hero { background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 55%, var(--brand-soft) 100%); color: #fff; padding-block: var(--s-4) var(--s-3); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: var(--s-4); align-items: center; }
.hero-eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.hero-eyebrow a { color: var(--on-dark-muted); text-decoration: none; }
.hero-eyebrow a:hover { color: #fff; }
.hero-term { font-family: var(--font-head); font-size: clamp(30px, 2.6vw + 18px, 46px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 6px; }
.hero-count { margin: 0 0 22px; font-size: 13.5px; color: var(--on-dark-muted); }
.hero-term + .hero-count + .hero-title { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.hero-title { font-family: var(--font-head); font-size: clamp(28px, 2.6vw + 16px, 44px); font-weight: 700; line-height: 1.16; letter-spacing: -0.025em; margin: 0 0 14px; }
.hero-term ~ .hero-title { font-size: clamp(21px, 1.2vw + 14px, 28px); }
.hero-title a { color: #fff; text-decoration: none; }
.hero-title a:hover { text-decoration: underline; }
.hero-dek { font-size: 15.5px; line-height: 1.65; color: var(--on-dark-muted); margin: 0; max-width: 56ch; }
.hero-media { border-radius: var(--r-lg); box-shadow: var(--shadow-lift); }
.hero-media .thumb-img { aspect-ratio: 4 / 3; }
.hero .chip { background: rgba(255, 255, 255, 0.22); }

.hero-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin-top: var(--s-4); }
.hero-card {
  display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: center;
  background: rgba(255, 255, 255, 0.12); border-radius: var(--r); padding: 11px; text-decoration: none; color: #fff;
  transition: background .18s;
}
.hero-card:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.hero-card-media { border-radius: var(--r-sm); background: rgba(255,255,255,0.15); }
.hero-card-media .thumb-img { aspect-ratio: 1 / 1; }
.hero-card-title {
  font-size: 12.5px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ------------------------------------------------------ editor's picks */
.picks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.pick-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--rose); border-radius: var(--r-lg); padding: 14px; }
.pick-card-media { border-radius: var(--r); }
.pick-card-media .thumb-img { aspect-ratio: 4 / 3; }
.pick-card-title { font-family: var(--font-head); font-size: 17px; font-weight: 600; line-height: 1.32; margin: 6px 0 0; }
.pick-card-title a { color: inherit; text-decoration: none; }
.pick-card-title a:hover { color: var(--accent); }
.pick-card .byline { margin: 0; }

/* ---------------------------------------------------------- rose panel */
.rose-panel { background: var(--rose); border-radius: var(--r-xl); padding: var(--s-3); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: start; }
.rose-panel-wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr); }
/* The side cards fill the two right-hand columns, two per row, so the lead
   spans those rows instead of letting a third card wrap in beneath it. */
.rose-panel:not(.rose-panel-wide) .panel-lead { grid-row: span 2; }
.panel-lead { display: grid; gap: 14px; }
.panel-lead-media { border-radius: var(--r); }
.panel-lead-media .thumb-img { aspect-ratio: 4 / 3; }
.panel-lead-title { font-family: var(--font-head); font-size: 20px; font-weight: 600; line-height: 1.28; margin: 0 0 8px; }
.panel-lead-title a { color: inherit; text-decoration: none; }
.panel-lead-title a:hover { color: var(--accent); }
.panel-lead-dek {
  font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.panel-card { min-width: 0; }
.panel-card-media { margin-bottom: 11px; border-radius: var(--r); }
.panel-card-media .thumb-img { aspect-ratio: 16 / 9; }
.panel-card-title { font-family: var(--font-head); font-size: 15px; font-weight: 600; line-height: 1.35; margin: 0; }
.panel-card-title a { color: inherit; text-decoration: none; }
.panel-card-title a:hover { color: var(--accent); }
.panel-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }

/* --------------------------------------------------- main column + rail */
.main-layout { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: var(--s-4); align-items: start; }
/* Nothing left for the main column: the rail spreads instead of leaving a gap. */
.main-layout-rail-only { grid-template-columns: 1fr; }
.main-layout-rail-only .rail { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.main-col { min-width: 0; }

.block { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.block-lead { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.block-lead-media { border-radius: var(--r-lg); }
.block-lead-media .thumb-img { aspect-ratio: 4 / 3; }
.block-lead-body { position: absolute; inset: auto 0 0 0; padding: 18px; background: linear-gradient(to top, rgba(20, 11, 46, 0.92), rgba(20, 11, 46, 0)); }
.block-lead-title { font-family: var(--font-head); font-size: 19px; font-weight: 600; line-height: 1.28; margin: 0; }
.block-lead-title a { color: #fff; text-decoration: none; }
.block-lead-title a:hover { text-decoration: underline; }

.block-list { list-style: none; margin: 0; padding: 0; }
.block-list li { display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.block-list li:first-child { padding-top: 0; }
.block-list li:last-child { border-bottom: 0; }
.block-list-media { border-radius: var(--r-sm); }
.block-list-media .thumb-img { aspect-ratio: 1 / 1; }
.block-list-title { font-family: var(--font-head); font-size: 14.5px; font-weight: 600; line-height: 1.35; margin: 0; }
.block-list-title a { color: inherit; text-decoration: none; }
.block-list-title a:hover { color: var(--accent); }

.recent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--gutter); }

/* ---------------------------------------------------------------- rail */
.rail { display: grid; gap: var(--s-3); }
.panel { min-width: 0; }
.panel-title { font-family: var(--font-head); font-size: 16px; font-weight: 600; margin: 0 0 16px; }
.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-list li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rail-list li:first-child { padding-top: 0; }
.rail-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.rail-media { border-radius: var(--r-sm); }
.rail-media .thumb-img { aspect-ratio: 1 / 1; }
.rail-title { font-family: var(--font-head); font-size: 13.5px; font-weight: 600; line-height: 1.38; margin: 0; }
.rail-title a { color: inherit; text-decoration: none; }
.rail-title a:hover { color: var(--accent); }
.rail-feature { margin-bottom: 14px; }
.rail-feature-media { border-radius: var(--r); margin-bottom: 10px; }
.rail-feature-media .thumb-img { aspect-ratio: 16 / 9; }
.rail-feature-title { font-family: var(--font-head); font-size: 15px; font-weight: 600; line-height: 1.35; margin: 0; }
.rail-feature-title a { color: inherit; text-decoration: none; }
.rail-feature-title a:hover { color: var(--accent); }

/* follow grid: a tile per network, brand-coloured on hover */
.follow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; margin: 0; padding: 0; }
.follow-grid .soc { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--text); font-size: 12.5px; font-weight: 600; }
.follow-grid .soc:hover { background: var(--brand-wash); border-color: var(--brand); color: var(--brand); }
.follow-grid .soc-mark { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: var(--r-sm); background: var(--sunken); }
.follow-grid .soc-mark svg { width: 14px; height: 14px; fill: currentColor; }
.follow-grid .soc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.cat-pills { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cat-pills a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: var(--r-sm); background: var(--sunken); text-decoration: none; color: var(--text); font-family: var(--font-head); font-size: 14px; font-weight: 500; }
.cat-pills a:hover { background: var(--tone, var(--brand)); color: #fff; }
.cat-pill-count { display: grid; place-items: center; min-width: 26px; height: 24px; padding-inline: 7px; border-radius: var(--r-sm); background: #fff; color: var(--tone, var(--brand)); font-size: 12px; font-weight: 600; }

/* -------------------------------------------------------------- gallery */
.gallery { background: var(--ink); color: #fff; padding-block: var(--s-4); margin-top: var(--s-4); }
.gallery-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.gallery-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.gallery-frame-media { border-radius: var(--r-lg); }
.gallery-frame-media .thumb-img { aspect-ratio: 16 / 10; }
.gallery-frame-body { position: absolute; inset: auto 0 0 0; padding: 24px; background: linear-gradient(to top, rgba(10, 5, 24, 0.94), rgba(10, 5, 24, 0)); }
.gallery-frame-title { font-family: var(--font-head); font-size: clamp(20px, 1.6vw + 12px, 28px); font-weight: 600; line-height: 1.22; margin: 0; }
.gallery-frame-title a { color: #fff; text-decoration: none; }
.gallery-frame-title a:hover { text-decoration: underline; }
.gallery-list { list-style: none; margin: 0; padding: 14px; border: 1px solid var(--accent); border-radius: var(--r-lg); }
.gallery-list li { display: grid; grid-template-columns: minmax(0, 1fr) 74px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.gallery-list li:first-child { padding-top: 0; }
.gallery-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.gallery-list-media { border-radius: var(--r-sm); background: rgba(255,255,255,0.1); }
.gallery-list-media .thumb-img { aspect-ratio: 1 / 1; }
.gallery-list-title { font-family: var(--font-head); font-size: 13.5px; font-weight: 600; line-height: 1.38; margin: 0; }
.gallery-list-title a { color: #fff; text-decoration: none; }
.gallery-list-title a:hover { color: var(--accent); }

/* ------------------------------------------------------- three columns */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); align-items: start; }
.trio-lead-media { border-radius: var(--r); margin-bottom: 11px; }
.trio-lead-media .thumb-img { aspect-ratio: 16 / 9; }
.trio-lead { margin-bottom: 16px; }
.trio-lead-title { font-family: var(--font-head); font-size: 16px; font-weight: 600; line-height: 1.32; margin: 6px 0 0; }
.trio-lead-title a { color: inherit; text-decoration: none; }
.trio-lead-title a:hover { color: var(--accent); }
.trio-lead .byline { margin: 0; }

.promo { background: var(--rose); border-radius: var(--r-lg); padding: var(--s-3); text-align: center; align-self: start; }
.promo-eyebrow { margin: 0 0 10px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.promo-title { font-family: var(--font-head); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--brand); }
.promo-blurb { margin: 0 0 18px; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }

/* ------------------------------------------------------------ don't miss */
.dont-miss { background: linear-gradient(135deg, var(--brand-deep), var(--brand-soft)); color: #fff; padding-block: var(--s-4); margin-top: var(--s-4); border-radius: var(--r-xl); }
.miss-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.miss-card-media { border-radius: var(--r); margin-bottom: 12px; }
.miss-card-media .thumb-img { aspect-ratio: 4 / 3; }
.miss-card .chip { background: rgba(255, 255, 255, 0.22); }
.miss-card-title { font-family: var(--font-head); font-size: 15px; font-weight: 600; line-height: 1.35; margin: 0; }
.miss-card-title a { color: #fff; text-decoration: none; }
.miss-card-title a:hover { text-decoration: underline; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-size: 13.5px; font-weight: 600; line-height: 1;
  padding: 0.85rem 1.5rem; border-radius: var(--r-full); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-pill { display: flex; width: max-content; margin: var(--s-3) auto 0; background: var(--accent); color: #fff; }
.btn-pill:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-4); }
.pagination-status { font-size: 13px; color: var(--text-muted); }
.empty-state { padding: var(--s-3); border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--text-muted); }
.empty-state code { font-family: var(--font-mono); font-size: 13px; background: var(--sunken); padding: 0.1rem 0.35rem; border-radius: var(--r-sm); }

/* --------------------------------------------------------------- cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s-3) var(--gutter); }
.card { display: flex; flex-direction: column; }
.card-media { margin-bottom: 12px; border-radius: var(--r); }
.card-media .thumb-img { aspect-ratio: 16 / 9; }
.card-body { display: flex; flex-direction: column; flex: 1; }
.card-title { font-family: var(--font-head); font-size: 16.5px; font-weight: 600; line-height: 1.33; margin: 0 0 7px; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-dek { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .byline { margin-top: auto; padding-top: 10px; }

/* ---------------------------------------------------------- story rows */
.story-list { display: grid; gap: 0; }
.story { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--gutter); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.story:first-child { padding-top: 0; }
.story:last-child { border-bottom: 0; }
.story-media { border-radius: var(--r); align-self: start; }
.story-media .thumb-img { aspect-ratio: 4 / 3; }
.story-title { font-family: var(--font-head); font-size: 19px; font-weight: 600; line-height: 1.3; margin: 0 0 8px; }
.story-title a { color: inherit; text-decoration: none; }
.story-title a:hover { color: var(--accent); }
.story-dek { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* -------------------------------------------------------------- article */
.article { padding-top: var(--s-3); }
.page-article { padding-block: var(--s-4); }

.crumbs { margin-bottom: var(--s-2); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--text-faint); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs li[aria-current] { color: var(--text-faint); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.article-head { margin-bottom: var(--s-3); }
.article-title { font-family: var(--font-head); font-size: clamp(27px, 2.2vw + 17px, 40px); font-weight: 700; line-height: 1.18; letter-spacing: -0.025em; margin: 0 0 12px; }
.article-dek { font-size: 16px; line-height: 1.65; color: var(--text-muted); margin: 0 0 18px; }
.article-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 13px; color: var(--text-muted); }
.byline-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-full); background: var(--brand); color: #fff; font-family: var(--font-head); font-size: 13px; font-weight: 600; }
.article-byline .p-author { font-weight: 600; color: var(--text); }
.read-time { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.read-time svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.article-hero { margin: 0 0 var(--s-3); }
.article-hero .thumb-img { aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
.article-hero figcaption { font-size: 12.5px; color: var(--text-muted); padding-top: 9px; text-align: center; }

/* body sits beside a sticky share column */
.article-body { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.article-content { min-width: 0; }

.share ul { list-style: none; margin: 0; padding: 0; }
.share-label { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-faint); }
.share-label svg { width: 15px; height: 15px; fill: currentColor; }
.share-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-full); background: var(--sunken); color: var(--text-muted); text-decoration: none; transition: background .15s, color .15s; }
.share-btn svg { width: 16px; height: 16px; fill: currentColor; }
.share-btn:hover { background: var(--brand-name, var(--brand)); color: #fff; }
.share-facebook  { --brand-name: #1877f2; }
.share-x         { --brand-name: #14171a; }
.share-whatsapp  { --brand-name: #25d366; }
.share-linkedin  { --brand-name: #0a66c2; }
.share-pinterest { --brand-name: #e60023; }
.share-email     { --brand-name: #6b6580; }

.share-rail { position: sticky; top: calc(var(--nav-h) + 22px); display: grid; gap: 10px; justify-items: center; }
.share-rail .share-label { flex-direction: column; gap: 4px; font-size: 9px; letter-spacing: 0.08em; }
.share-rail ul { display: grid; gap: 8px; }

.share-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); }
.share-bar .share-label { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); }
.share-bar ul { display: flex; gap: 8px; }
.share-bar .share-btn { background: var(--brand-name, var(--brand)); color: #fff; border-radius: var(--r-sm); }
.share-bar .share-btn:hover { filter: brightness(1.12); }

.accent-rule { border: 0; border-top: 3px solid var(--accent); width: 46px; margin: var(--s-3) 0 var(--s-2); }

.summary { background: var(--rose); border-left: 4px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; padding: 15px 18px; margin: 0 0 var(--s-3); }
.summary-label { margin: 0 0 5px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); }
.summary-text { margin: 0; font-size: 15px; line-height: 1.6; }
.toc { border: 1px solid var(--line); border-radius: var(--r); padding: 15px 18px; margin: 0 0 var(--s-3); }
.toc-title { margin: 0 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.toc ol { margin: 0; padding-left: 1.1rem; display: grid; gap: 5px; font-size: 14px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.article-nav-item { text-decoration: none; color: inherit; }
.article-nav-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.article-nav-title { display: block; margin-top: 5px; font-family: var(--font-head); font-size: 15px; font-weight: 600; line-height: 1.35; }
.article-nav-item:hover .article-nav-title { color: var(--accent); }
.article-nav-next { text-align: right; }

/* auto-fit so a post with only one or two related stories still fills the row */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--gutter); }
.related-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mini-card-media { border-radius: var(--r); margin-bottom: 11px; }
.mini-card-media .thumb-img { aspect-ratio: 16 / 9; }
.mini-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 7px; font-size: 12px; color: var(--text-muted); }
.mini-card-meta .kicker-row { margin: 0; }
.mini-card-title { font-family: var(--font-head); font-size: 15px; font-weight: 600; line-height: 1.35; margin: 0; }
.mini-card-title a { color: inherit; text-decoration: none; }
.mini-card-title a:hover { color: var(--accent); }

.most-read { background: var(--rose); border-radius: var(--r-xl); padding: var(--s-3); margin-top: var(--s-4); }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 45; width: 42px; height: 42px;
  display: grid; place-items: center; border: 0; border-radius: var(--r-full);
  background: var(--brand); color: #fff; cursor: pointer; box-shadow: var(--shadow-lift);
}
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--brand-deep); }
.to-top svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------- prose */
.prose { font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-family: var(--font-head); font-size: 24px; font-weight: 600; line-height: 1.28; margin-top: 1.8em; }
.prose h3 { font-family: var(--font-head); font-size: 19px; font-weight: 600; line-height: 1.32; margin-top: 1.6em; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; }
.prose img { border-radius: var(--r); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote {
  position: relative; margin: 0; padding: 22px 24px 22px 62px; border: 0; border-radius: var(--r);
  background: var(--sunken); color: var(--text); font-family: var(--font-head); font-size: 16px; font-weight: 600; line-height: 1.6;
}
.prose blockquote::before {
  content: "\201C"; position: absolute; left: 20px; top: 10px;
  font-family: Georgia, serif; font-size: 54px; line-height: 1; color: var(--line-strong);
}
.prose blockquote > :first-child { margin-top: 0; }
.prose mark { background: var(--accent); color: #fff; padding: 0.1em 0.25em; border-radius: 3px; }
.prose figure { margin: 0; }
.prose figure img { border-radius: var(--r); }
.prose figcaption { margin-top: 8px; font-size: 12.5px; color: var(--text-faint); text-align: center; }
.prose figcaption a { color: var(--text-muted); }
.prose code { font-family: var(--font-mono); font-size: 0.86em; background: var(--sunken); padding: 0.12em 0.4em; border-radius: var(--r-sm); }
.prose pre { background: var(--ink); color: #e9e4f5; padding: 16px; border-radius: var(--r); overflow-x: auto; font-size: 14px; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font-weight: 600; background: var(--sunken); }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.heading-anchor { opacity: 0; margin-left: 8px; color: var(--text-faint); text-decoration: none; font-weight: 400; }
:is(h2, h3, h4):hover .heading-anchor, .heading-anchor:focus-visible { opacity: 1; }
.table-wrap { overflow-x: auto; }

/* ------------------------------------------------------- listing pages */
.listing-head { padding-block: var(--s-3) var(--s-2); margin-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.listing-eyebrow { margin: 0 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tone, var(--accent)); }
.listing-eyebrow a { color: inherit; text-decoration: none; }
.listing-title { font-family: var(--font-head); font-size: clamp(28px, 2.2vw + 18px, 42px); font-weight: 700; letter-spacing: -0.025em; margin: 0 0 6px; }
.listing-sub { color: var(--text-muted); margin: 0; }

.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--gutter); list-style: none; margin: 0; padding: 0; }
.term-card { display: flex; flex-direction: column; gap: 4px; background: var(--sunken); border-radius: var(--r); border-left: 4px solid var(--tone, var(--brand)); padding: 15px; text-decoration: none; color: inherit; }
.term-card:hover { background: var(--brand-wash); }
.term-name { font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.term-count { font-size: 12.5px; color: var(--text-muted); }


.notfound { text-align: center; padding-block: var(--s-4); }
.notfound-title { font-family: var(--font-head); font-size: clamp(28px, 3vw + 18px, 44px); font-weight: 700; letter-spacing: -0.025em; margin: 10px 0 12px; }
.notfound-sub { max-width: 54ch; margin: 0 auto var(--s-3); color: var(--text-muted); }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0; }

/* -------------------------------------------------------------- footer */
.site-footer { margin-top: var(--s-4); background: var(--nav); color: var(--on-dark-muted); }
.newsletter { background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); padding-block: var(--s-3); }
.newsletter-heading { font-family: var(--font-head); margin: 0 0 5px; font-size: 20px; font-weight: 600; color: #fff; }
.newsletter-blurb { margin: 0; color: var(--on-dark-muted); font-size: 14px; max-width: 52ch; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 9px; }
.newsletter-input { flex: 1 1 230px; min-width: 0; font-family: var(--font); font-size: 14px; color: var(--text); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-full); padding: 0.8rem 1.2rem; }
.newsletter-input:focus { outline: none; border-color: var(--brand); }
.newsletter-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin: 0; }
.newsletter-note { font-size: 12.5px; color: rgba(255, 255, 255, 0.58); }
.newsletter-note code { font-family: var(--font-mono); font-size: 12px; color: #fff; background: rgba(255, 255, 255, 0.14); padding: 0.1rem 0.35rem; border-radius: var(--r-sm); }

.footer-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-4); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer-social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.footer-social .soc { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-full); background: rgba(255, 255, 255, 0.1); color: var(--on-dark-muted); text-decoration: none; font-size: 13px; font-weight: 600; transition: background .15s, color .15s; }
.footer-social .soc:hover { background: var(--brand); color: #fff; }
.footer-social .soc-mark { display: contents; }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-wordmark { display: inline-flex; font-family: var(--font-head); font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: #fff; text-decoration: none; }
.footer-wordmark .masthead-logo { height: 58px; }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { font-family: var(--font-head); font-size: 12.5px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--on-dark-muted); text-decoration: none; }
.footer-links a:hover { color: var(--rose-on-dark); }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.09); }
.footer-base p { margin: 0; padding-block: 18px; font-size: 12.5px; color: rgba(255, 255, 255, 0.52); text-align: center; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1220px) {
  /* Every category rides the bar, so it folds into the menu well above phone
     widths: below this the links no longer fit on a single row. */
  .navbar-inner { position: relative; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; z-index: 50; overflow: visible;
    background: var(--nav-deep); box-shadow: var(--shadow-lift); padding: 6px var(--margin) 12px; margin-right: 0;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 1040px) {
  .main-layout { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr 1fr; }
  .trio { grid-template-columns: 1fr 1fr; }
  .rose-panel { grid-template-columns: 1fr 1fr; }
  .rose-panel .panel-lead { grid-column: 1 / -1; grid-row: auto; }
  .rose-panel-wide { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-3); }
  .hero-media { order: -1; }
  .hero-cards { grid-template-columns: 1fr 1fr; }
  .miss-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .block { grid-template-columns: 1fr; }
  .panel-row { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-next { text-align: left; }
  .related-grid, .related-grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  /* the sticky share column becomes a row above the body */
  .article-body { grid-template-columns: 1fr; }
  .share-rail { position: static; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; justify-items: start; }
  .share-rail .share-label { flex-direction: row; font-size: 10.5px; }
  .share-rail ul { display: flex; flex-wrap: wrap; gap: 8px; }
  :root { --margin: 16px; }
  :root { --nav-h: 70px; }
  .rail { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
  .picks-grid { grid-template-columns: 1fr; }
  .recent-grid { grid-template-columns: 1fr; }
  .rose-panel { grid-template-columns: 1fr; }
  .story { grid-template-columns: 130px minmax(0, 1fr); gap: var(--s-2); }
  .story-title { font-size: 17px; }
  .story-dek { display: none; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: var(--s-3); text-align: left; }
}

@media (max-width: 520px) {
  .hero-cards { grid-template-columns: 1fr; }
  .miss-grid { grid-template-columns: 1fr; }
  .pick-card { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .block-list li { grid-template-columns: minmax(0, 1fr) 68px; }
  .gallery-list li { grid-template-columns: minmax(0, 1fr) 62px; }
  .follow-grid { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .search.is-open .search-field { width: 150px; }
  .related-grid, .related-grid-4 { grid-template-columns: 1fr; }
  .crumbs li[aria-current] { display: none; }
  .read-time { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-footer, .rail, .article-nav, .related, .skip-link, .gallery, .dont-miss { display: none !important; }
  body { background: #fff; }
}

/* -------------------------------------------------------------- search */
.search { position: relative; display: flex; align-items: center; }
.search-field {
  /* Collapsed, the input's own padding keeps it ~45px wide however far the
     field shrinks, so it always pokes out of this zero-width box. Clipping and
     opacity hide it on desktop, but mobile Safari paints form controls through
     both — which showed up as a white pill beside the search button. Only
     `visibility` reliably takes it out of painting, so that carries the hiding
     and the rest just handle the animation. */
  position: relative; width: 0; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none;
  transition: width .2s ease, opacity .2s ease, visibility .2s;
}
.search.is-open .search-field { width: 210px; overflow: visible; opacity: 1; visibility: visible; pointer-events: auto; margin-left: 6px; }
/* iOS draws its own rounded control and clear button on type="search", over
   the top of ours; both are turned off here. */
.search-field input { appearance: none; -webkit-appearance: none; width: 100%; font-family: var(--font); font-size: 13.5px; color: var(--text); background: #fff; border: 1px solid transparent; border-radius: var(--r-full); padding: 0.45rem 1.8rem 0.45rem 0.9rem; }
.search-field input:focus { outline: none; border-color: #fff; }
.search-field input::-webkit-search-decoration,
.search-field input::-webkit-search-cancel-button,
.search-field input::-webkit-search-results-button { -webkit-appearance: none; display: none; }
.search-field kbd { position: absolute; right: 0.7rem; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); pointer-events: none; }
.search-field input:focus ~ kbd { opacity: 0; }
.search-panel { position: absolute; top: calc(100% + 0.5rem); right: 0; width: min(380px, 84vw); max-height: 60vh; overflow-y: auto; padding: 5px; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lift); }
.search-panel[hidden] { display: none; }
.search-result { display: block; padding: 0.5rem 0.6rem; border-radius: var(--r-sm); text-decoration: none; color: var(--text); }
.search-result:hover, .search-result.is-active { background: var(--brand-wash); }
.search-result strong { display: block; font-family: var(--font-head); font-size: 14px; font-weight: 600; }
.search-result span { display: block; font-size: 12px; color: var(--text-muted); }
.search-empty { padding: 0.7rem; font-size: 13px; color: var(--text-muted); margin: 0; }
