/* Protegee blog — shared styles. Mirrors index.html's dark theme tokens so
   articles read as one site with the landing page. Loaded by every /blog/*.html
   page and the blog index. Keep tokens in sync with index.html :root. */
:root {
  --bg: #141310;
  --bg-2: #1a1813;
  --panel: #201e18;
  --panel-2: #26241c;
  --line: #353023;
  --line-soft: #2a271f;
  --ink: #f4f1e8;
  --text: #d9d4c6;
  --muted: #a7a290;
  --faint: #7c7767;
  --accent: #d8c6a0;
  --accent-warm: #c9a35e;
  --on-accent: #141310;
  --accent-8: rgba(216,198,160,.10);
  --accent-16: rgba(216,198,160,.18);
  --accent-40: rgba(216,198,160,.42);
  --maxw: 1160px;
  --measure: 68ch;
  --r-card: 12px;
  --r-el: 10px;
  --r-mark: 8px;
  --display: "Questrial", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
/* reserve the scrollbar gutter on every page so the centered ribbon doesn't
   shift between short (no scrollbar) and long (scrollbar) pages */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 22px); }

h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 400; margin: 0;
  letter-spacing: .005em; text-wrap: balance; color: var(--ink); line-height: 1.15;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-warm); text-decoration: underline; text-underline-offset: 3px; }

/* ---- header ribbon: copied VERBATIM from index.html's <style> so the blog
   header is the same ribbon, not a second implementation. Keep in sync with
   index.html if that ever changes. ---- */
header.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft);
}
.bar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 64px; padding-inline: clamp(16px,3vw,36px); }
.bar-inner > .brand { justify-self: start; }
.bar-inner > .btn-primary { justify-self: end; }
/* header: secondary "Log in" link (app entry point) beside the primary CTA */
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-40); color: var(--accent); }
.bar-inner > .bar-cta { justify-self: end; display: flex; align-items: center; gap: 8px; }
.bar .bar-cta .btn-ghost { padding: 9px 15px; font-size: 13.5px; }
header.bar .bar-cta { transition: opacity .18s ease; }
header.bar.compact .bar-cta { opacity: 0; pointer-events: none; }
@media (max-width: 520px) { .bar .bar-cta { display: none; } }
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand .mk { height: 24px; width: auto; flex: none; display: block; }
.brand .name { font-family: var(--display); font-size: 19px; color: var(--ink); letter-spacing: .01em; }
.tabs { display: flex; gap: 4px; margin-inline: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tab {
  font-family: var(--sans); font-weight: 600; font-size: 13.5px; color: var(--muted);
  border: none; background: transparent; border-radius: 999px; padding: 7px 16px; cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.tab:not([aria-selected="true"]):hover { color: var(--ink); }
.tab .lbl-min { display: none; }
.btn {
  font-family: var(--sans); font-weight: 600; font-size: 14.5px;
  border-radius: 999px; border: 1px solid transparent; padding: 11px 20px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: transform .12s var(--ease, ease), background .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-1px); opacity: .92; }
.bar .btn-primary { padding: 9px 17px; font-size: 13.5px; }
/* blog-only: header brand/tabs/CTA are <a>, so suppress the article-link underline */
.bar a, .bar a:hover { text-decoration: none; }

/* Scroll-collapsed bar: the ribbon (logo + CTA + chrome) fades, the tab pill pins to the
   viewport top. Kept in sync with index.html; toggled by /assets/nav.js. */
header.bar .brand, header.bar .btn-primary { transition: opacity .18s ease; }
header.bar .tabs { transition: box-shadow .2s ease; }
header.bar.compact { background: transparent; backdrop-filter: none; border-bottom-color: transparent; pointer-events: none; }
header.bar.compact .brand, header.bar.compact .btn-primary { opacity: 0; pointer-events: none; }
header.bar.compact .tabs {
  position: fixed; top: 13px; left: 50%; transform: translateX(-50%);
  max-width: calc(100% - 24px); pointer-events: auto; z-index: 40;
  box-shadow: 0 8px 26px rgba(0,0,0,.38);
}
@media (max-width: 860px) {
  .brand .name { display: none; }
  .brand { flex: 0 0 auto; }
  .bar-inner { gap: 12px; }
  .tabs { margin-inline: auto; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .tabs::-webkit-scrollbar { display: none; }
}
@media (max-width: 520px) {
  .bar .btn-primary { display: none; }
  .bar-inner { gap: 8px; padding-inline: 14px; }
  .tab { padding: 7px 9px; font-size: 12px; }
  .tabs { gap: 3px; overflow: visible; }
  .tab .lbl-full { display: none; }
  .tab .lbl-min { display: inline; }
}


/* ---- legal documents (privacy, terms) ---- */
.legaldoc { max-width: 800px; }
.legaldoc .updated { font-size: 13.5px; color: var(--faint); margin-top: 12px; }
.legaldoc .toc { margin: 34px 0 8px; padding: 20px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); }
.legaldoc .toc h2 { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-warm); margin: 0 0 12px; padding: 0; }
.legaldoc .toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 36px; }
.legaldoc .toc li { margin: 0 0 7px; break-inside: avoid; }
.legaldoc .toc a { font-size: 14.5px; color: var(--text); }
.prose h2[id], .prose h3[id] { scroll-margin-top: 84px; }
.prose address { font-style: normal; color: var(--text); }
@media (max-width: 560px) { .legaldoc .toc ol { columns: 1; } }

/* ---- article ---- */
/* narrow, centered reading column (overrides .wrap's 1160px) */
.article { max-width: 760px; margin-inline: auto; padding-top: clamp(40px, 7vw, 76px); }
.eyebrow { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-warm); }
.article h1 { font-size: clamp(30px, 5.2vw, 50px); margin: 16px 0 0; max-width: 18ch; }
.article .dek { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); line-height: 1.5;
  margin: 20px 0 0; max-width: 46ch; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 26px;
  padding-bottom: 26px; border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px; color: var(--faint); font-family: var(--sans); }
.meta .dot { color: var(--line); }

.prose { max-width: none; margin-top: 40px; }
.prose > * + * { margin-top: 1.25em; }
.prose p { color: var(--text); }
.prose h2 { font-size: clamp(23px, 3.2vw, 30px); margin-top: 2em; padding-top: .4em; }
.prose h3 { font-size: clamp(19px, 2.4vw, 22px); margin-top: 1.7em; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--text); }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--accent-40); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent-40);
  color: var(--ink); font-family: var(--display); font-size: clamp(19px,2.6vw,24px); line-height: 1.4; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--panel);
  border: 1px solid var(--line-soft); border-radius: 6px; padding: 1px 6px; color: var(--ink); }
.prose figure { margin: 1.6em 0; }
.prose figure img { max-width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: var(--r-card); }
.prose figcaption { font-size: 13px; color: var(--faint); margin-top: 8px; }

/* comparison / data table */
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose thead th { color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: .02em; border-bottom: 1px solid var(--line); }
.prose tbody tr:hover { background: var(--accent-8); }
.prose td:first-child { color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* key-takeaway / callout card */
.callout { margin: 1.8em 0; padding: 20px 22px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-card); }
.callout .k { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-warm); margin-bottom: 8px; }
.callout p { margin: 0; color: var(--text); }

/* inline CTA block, reused at the foot of every article */
.cta { margin: 56px 0 8px; padding: 32px clamp(20px,4vw,36px); border-radius: var(--r-card);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); }
.cta h2 { font-size: clamp(22px, 3.2vw, 28px); margin: 0; }
.cta p { color: var(--muted); margin: 12px 0 20px; max-width: 48ch; }

/* "keep reading" related links */
.related { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line-soft); }
.related h2 { font-size: 15px; font-family: var(--sans); font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--faint); }
.related ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.related a { display: block; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--r-el); color: var(--ink); font-family: var(--display); font-size: 18px; }
.related a:hover { border-color: var(--accent-40); text-decoration: none; }

/* ---- blog index ---- */
.index-head { padding: clamp(48px,8vw,88px) 0 8px; }
.index-head h1 { font-size: clamp(32px, 6vw, 56px); }
.index-head p { color: var(--muted); font-size: 19px; max-width: 44ch; margin-top: 16px; }

/* category jump-nav: makes all sections scannable above the fold */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px;
  padding: 15px 4px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.cat-nav a { display: inline-flex; align-items: baseline; gap: 7px;
  font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .04em;
  color: var(--muted); transition: color .15s; }
.cat-nav a:hover { color: var(--accent); text-decoration: none; }
.cat-nav .cat-n { font-size: 11.5px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.cat-nav a:hover .cat-n { color: var(--accent-warm); }

.post-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 2px; }
.post-list li { border-top: 1px solid var(--line-soft); }
.post-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.post-list a { display: grid; gap: 6px; padding: 26px 4px; color: var(--ink); }
.post-list a:hover { text-decoration: none; }
.post-list a:hover .pt { color: var(--accent); }
.post-list .pt { font-family: var(--display); font-size: clamp(21px,3vw,27px); transition: color .15s; }
.post-list .pd { font-family: var(--sans); font-size: 16px; color: var(--muted); max-width: 60ch; }
.post-list .pm { font-family: var(--sans); font-size: 12.5px; color: var(--faint); letter-spacing: .02em; }

.post-group { margin-top: clamp(44px, 7vw, 72px); scroll-margin-top: 84px; }
.post-group:first-of-type { margin-top: 36px; }
.post-group > .group-head { font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-warm);
  margin: 0; padding: 0 4px; }
.post-group .post-list { margin-top: 12px; }

/* ---- Newsroom partnership hero. Used by /news/*.html. The "Protegee × Brand"
   lockup echoes the designed LunaLit announcement graphic: near-black band, a
   warm glow in the lower-right, centered marks. Brand wordmarks ship ink-on-
   transparent, so .pr-logo.inv flips them to white for the dark band (same
   trick the case-study hero uses). ---- */
.pr-hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background:
    radial-gradient(120% 140% at 88% 118%, color-mix(in srgb, var(--accent-warm) 34%, transparent) 0%, transparent 46%),
    linear-gradient(160deg, #000 0%, #0b0a07 58%, #141009 100%);
  padding: clamp(34px, 6vw, 68px) clamp(20px, 5vw, 56px);
  text-align: center;
}
.pr-figure { margin: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; line-height: 0; }
.pr-figure img { width: 100%; height: auto; display: block; }
.pr-kicker { font-family: var(--sans); font-weight: 600; font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: .34em; text-transform: uppercase; color: var(--accent-warm); margin: 0; }
.pr-lockup { display: flex; align-items: center; justify-content: center;
  gap: clamp(16px, 4vw, 42px); flex-wrap: wrap; margin-top: clamp(22px, 4vw, 40px); }
.pr-side { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.pr-mark { height: clamp(30px, 4.6vw, 42px); width: auto; display: block; }
.pr-name { font-family: var(--display); font-weight: 400; color: #fff;
  font-size: clamp(26px, 4.4vw, 42px); letter-spacing: .01em; line-height: 1; }
.pr-logo { height: clamp(26px, 4vw, 38px); width: auto; display: block; }
.pr-logo.inv { filter: invert(1) brightness(1.9); opacity: .95; }
.pr-x { font-family: var(--display); color: var(--accent); opacity: .72;
  font-size: clamp(20px, 3vw, 30px); line-height: 1; }
.pr-sub { color: var(--text); font-size: clamp(15px, 2vw, 18px); margin: clamp(22px, 4vw, 38px) 0 0; }
/* The article's hero band drops its top margin so it sits right under the dek/meta. */
.article > .pr-hero, .article > .pr-figure { margin-top: clamp(22px, 4vw, 34px); }

/* ---- Newsroom index: a featured lead story + a card grid for the rest.
   Panels, hairline borders and the warm accent match the landing's card
   vocabulary (.cs-*, .fact). Brand wordmarks ship ink-on-transparent, so
   .news-logo.inv flips them white for the dark panels. ---- */
.news-head { margin-top: 30px; max-width: var(--measure); }
.news-head .eyebrow { margin: 0 0 12px; }
.news-head h1 { font-size: clamp(34px, 6vw, 54px); }
.news-head p { color: var(--muted); font-size: clamp(16px, 2.2vw, 18px); margin: 12px 0 0; }

.news-feed { margin-top: clamp(28px, 5vw, 44px); display: grid; gap: clamp(16px, 2.4vw, 22px); }

.news-feature { display: grid; grid-template-columns: 1.04fr .96fr; align-items: stretch;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; color: inherit;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.news-feature:hover { text-decoration: none; border-color: var(--accent-40); transform: translateY(-2px);
  box-shadow: 0 16px 40px -28px rgba(0,0,0,.7); }
.news-feature-media { position: relative; min-height: 220px; border-right: 1px solid var(--line); }
.news-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-feature-body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.news-feature-body .pt { font-family: var(--display); font-size: clamp(24px, 3.4vw, 34px); color: var(--ink); line-height: 1.12; }
.news-feature-body .pd { color: var(--muted); font-size: 16px; max-width: 46ch; margin: 0; }

.news-grid { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 22px); }
.news-card { display: flex; flex-direction: column; gap: 13px; height: 100%;
  padding: clamp(22px, 2.6vw, 30px); background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-card); color: inherit;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.news-card:hover { text-decoration: none; border-color: var(--accent-40); transform: translateY(-2px);
  box-shadow: 0 14px 36px -28px rgba(0,0,0,.7); }
.news-logo-wrap { height: 34px; display: flex; align-items: center; }
.news-logo { width: auto; max-width: 180px; object-fit: contain; display: block; opacity: .9; }
.news-card .pt { font-family: var(--display); font-size: clamp(20px, 2.4vw, 24px); color: var(--ink); line-height: 1.16; }
.news-card .pd { color: var(--muted); font-size: 15.5px; margin: 0; flex: 1; }

.news-feed .pm { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-warm); margin: 0; }
.news-feed .more { font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px; }
.news-feed a:hover .more { color: var(--accent-warm); }
.news-feed .more .arr { transition: transform .18s ease; }
.news-feed a:hover .more .arr { transform: translateX(3px); }

@media (max-width: 760px) {
  .news-feature { grid-template-columns: 1fr; }
  .news-feature-media { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
  .news-grid { grid-template-columns: 1fr; }
}

/* ---- Resources: one filterable feed combining Case Studies, News and Articles
   (left category rail + a featured lead + a 2-up card grid). Filtering is
   client-side: a .res-cat button toggles [data-cat] cards. Case-study / news
   cards use the "Protegee × Brand" lockup as their cover; article cards use a
   typographic topic tile, since those pages ship no per-item photo. ---- */
.res-head { margin-top: 30px; }
.res-head .eyebrow { margin: 0 0 12px; }
.res-head h1 { font-size: clamp(36px, 6.5vw, 60px); }
.res-head .res-sub { color: var(--muted); font-size: clamp(16px, 2.2vw, 18px); margin: 12px 0 0; max-width: 60ch; }

.res-layout { display: grid; grid-template-columns: 196px 1fr; gap: clamp(22px, 4vw, 54px);
  margin-top: clamp(26px, 5vw, 46px); align-items: start; }
.res-filters { position: sticky; top: 84px; }
.res-cats { display: flex; flex-direction: column; gap: 2px; }
.res-cat { appearance: none; background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--sans); font-size: 15px; color: var(--muted); padding: 8px 11px;
  border-radius: var(--r-el); transition: color .15s, background .15s; display: flex;
  align-items: baseline; justify-content: space-between; gap: 10px; }
.res-cat:hover { color: var(--ink); background: var(--bg-2); }
.res-cat.is-active { color: var(--ink); background: var(--accent-8); font-weight: 600; }
.res-cat .ct { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.res-cat.is-active .ct { color: var(--accent-warm); }

.res-feed { min-width: 0; display: grid; gap: clamp(16px, 2.4vw, 24px); }

.res-feature { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; color: inherit;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.res-feature:hover { text-decoration: none; border-color: var(--accent-40); transform: translateY(-2px);
  box-shadow: 0 16px 40px -28px rgba(0,0,0,.7); }
.res-feature .res-media { border-right: 1px solid var(--line); border-bottom: 0; aspect-ratio: auto; min-height: 240px; }
.res-feature-body { padding: clamp(22px, 3vw, 38px); display: flex; flex-direction: column; justify-content: center; gap: 11px; }
.res-feature-body .rt { font-family: var(--display); font-size: clamp(23px, 3.2vw, 32px); color: var(--ink); line-height: 1.13; }
.res-feature-body .rd { color: var(--muted); font-size: 16px; max-width: 46ch; margin: 0; }

.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 24px); }
.res-card { display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; color: inherit;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.res-card:hover { text-decoration: none; border-color: var(--accent-40); transform: translateY(-2px);
  box-shadow: 0 14px 36px -28px rgba(0,0,0,.7); }

.res-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
/* direct child only: the photo cover fills the tile; nested lockup logos (.rl-*) keep their own size */
.res-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.res-media.lock, .res-media.topic { display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(120% 150% at 88% 120%, color-mix(in srgb, var(--accent-warm) 26%, transparent) 0%, transparent 48%),
    linear-gradient(160deg, #000 0%, #0b0a07 60%, #141009 100%); }

.rl-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 14px; }
.rl-p { height: 18px; width: auto; display: block; }
.rl-name { font-family: var(--display); color: #fff; font-size: clamp(17px, 2vw, 20px); line-height: 1; }
.rl-x { font-family: var(--display); color: var(--accent); opacity: .6; font-size: 15px; line-height: 1; }
.rl-b { width: auto; display: block; opacity: .95; }

.res-media.topic .tp { font-family: var(--sans); font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; font-size: clamp(11px, 1.4vw, 13px); color: var(--accent-warm); }
.res-media.topic .tp-sub { display: block; margin-top: 8px; font-family: var(--display); letter-spacing: 0;
  text-transform: none; font-size: clamp(15px, 1.8vw, 18px); color: var(--faint); font-weight: 400; }

.res-card-body { padding: clamp(15px, 1.9vw, 21px); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.res-tag { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--accent-warm); }
.res-card .rt { font-family: var(--display); font-size: clamp(18px, 2.1vw, 21px); color: var(--ink); line-height: 1.18; }
.res-card .rd { color: var(--muted); font-size: 14.5px; margin: 0; flex: 1; }
.res-date { color: var(--faint); font-size: 12.5px; margin-top: 2px; }

/* `.res-card{display:flex}` / `.res-feature{display:grid}` would otherwise beat
   the UA `[hidden]{display:none}`, so the filter could not hide cards. */
.res-card[hidden], .res-feature[hidden] { display: none !important; }
.res-empty { color: var(--muted); padding: 48px 4px; font-size: 16px; }

@media (max-width: 860px) {
  .res-layout { grid-template-columns: 1fr; }
  .res-filters { position: static; }
  .res-cats { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .res-cat { justify-content: flex-start; }
  .res-feature { grid-template-columns: 1fr; }
  .res-feature .res-media { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 560px) { .res-grid { grid-template-columns: 1fr; } }

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