/* =========================================================================
   PowerLeaks — public news site. Brand design system (self-hosted fonts).
   Power Blue #1E3A8A · Power Red #D71920 · Ink #111111 · Off-White #F8FAFC.
   Display = Archivo Black (ALL CAPS) · Body = Inter · Metadata = JetBrains Mono.
   Flat, high-contrast, hard-edged — newsroom, not lifestyle. No gradients/pastels.
   ========================================================================= */

/* Self-hosted OFL brand fonts (relative URLs → resolve against /news/ on the public site AND against
   API_BASE/news/ inside the dashboard ArticlePreviewFrame iframe). */
@font-face { font-family: "Archivo Black"; src: url("fonts/Archivo-Black.ttf") format("truetype");
  font-weight: 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-Regular.ttf") format("truetype");
  font-weight: 400; font-display: swap; }

:root {
  /* Brand palette (--pl-* is the canonical token set). */
  --pl-power-blue: #1E3A8A;
  --pl-power-red: #D71920;
  --pl-ink-black: #111111;
  --pl-off-white: #F8FAFC;
  --pl-white: #FFFFFF;
  --pl-steel-gray: #C0C2C4;
  --pl-press-blue: #0F1D45;
  --pl-press-red: #8F0F14;
  --pl-ink-muted: rgba(17, 17, 17, 0.62);   /* muted metadata/dek text — steel-gray fails contrast on off-white */

  /* Legacy aliases so the 60+ existing var() references keep working. */
  --blue: var(--pl-power-blue);
  --red: var(--pl-power-red);
  --red-dark: var(--pl-press-red);
  --ink: var(--pl-ink-black);
  --gray-700: var(--pl-ink-black);   /* body copy → true ink */
  --gray-500: var(--pl-ink-muted);   /* metadata / dek */
  --gray-200: var(--pl-steel-gray);  /* hairline borders */
  --off-white: var(--pl-off-white);
  --white: var(--pl-white);

  --maxw: 1120px;
  --radius: 0;          /* hard-edged "news-sharp" — no rounded cards */
  --radius-sm: 0;
  --shadow: none;
  --shadow-hover: none;
  --font-display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --font: var(--font-body);   /* legacy alias */
}

* { box-sizing: border-box; }

/* The [hidden] attribute must win over any explicit display: (grid/flex) on these components,
   otherwise show()/hide() in app.js can't actually hide the hero, grid, pager, etc. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img, video { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--pl-power-blue); outline-offset: 2px; }

/* Shared display-headline treatment: Archivo Black, ALL CAPS, tight tracking. Titles are injected via
   textContent from the DB (sentence case) — CSS does the casing so the stored title stays editable. */
.hero__headline, .card__headline, .article__headline {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; letter-spacing: -0.01em;
}

/* Uppercase mono metadata (bylines, meta lines, captions, section/source labels). */
.meta, .article__byline, .figure figcaption, .sources__title {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .03em;
}

/* Editorial eyebrow / kicker — the small uppercase mono line above a headline. */
.kicker, .article__kicker, .hero__kicker, .card__kicker {
  font-family: var(--font-mono); font-size: 12px; font-weight: 400;
  text-transform: uppercase; letter-spacing: .14em; color: var(--pl-power-red);
  margin: 0 0 8px;
}
.card__kicker { font-size: 11px; margin: 0 0 4px; }

/* Signature accent underline on a headline run. */
.accent-underline {
  text-decoration: underline; text-decoration-color: var(--pl-power-red);
  text-decoration-thickness: .12em; text-underline-offset: .08em;
}

/* LiveIndicator — a pulsing red dot (replaces the old bolt emoji). */
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--pl-power-red); flex: none; animation: pl-pulse 1.6s ease-in-out infinite;
}
@keyframes pl-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* Verified badge — the brand trust mark (blue), distinct from the red fact-check verdict badge. */
.verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--pl-power-blue); color: var(--pl-white);
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 7px;
}
/* Fact-check credibility badge — colored BY the verdict so a fact-checked TRUE story never wears an
   alarm-red stamp. Green = confirmed true, amber = mixed/unverified (a leak with no coverage yet),
   red = false/disputed. Default (unknown) is a neutral slate. */
.verdict-badge {
  /* align-self keeps it a compact pill inside .card__body (a column flexbox stretches children by
     default); in the article header's inline-flex row it's a no-op. */
  display: inline-block; align-self: flex-start;
  background: #64748b; color: var(--pl-white);
  font-family: var(--font-mono); font-size: 11px; font-weight: 400;
  text-transform: uppercase; letter-spacing: .04em; padding: 4px 9px;
}
.verdict-badge--true { background: #15803d; }              /* confirmed true */
.verdict-badge--false { background: var(--pl-power-red); } /* false / disputed */
.verdict-badge--caution { background: #b45309; }           /* mixed / unverified / questionable */

/* ============================== NAV ============================== */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 20px;
}
.logo { display: inline-flex; align-items: center; }
.logo__img { height: 30px; width: auto; }
.logo__fallback { display: none; align-items: center; gap: 9px; }
.logo__bolt {
  width: 22px; height: 26px; flex: none;
  background: linear-gradient(135deg, var(--red) 0 50%, var(--blue) 50% 100%);
  clip-path: polygon(55% 0, 0 58%, 42% 58%, 30% 100%, 100% 40%, 55% 40%);
}
.logo__word { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.01em; color: var(--ink); text-transform: uppercase; }
.logo__word--leaks { font-weight: 400; }

.nav__links { display: none; gap: 26px; margin-left: 18px; }
.nav__link { font-family: var(--font-mono); font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); padding: 6px 0; position: relative; }
.nav__link:hover { color: var(--ink); }
.nav__link--active { color: var(--ink); }
.nav__link--active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red);
}

.nav__actions { display: flex; align-items: center; gap: 10px; }
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--gray-200); background: var(--white); color: var(--ink);
  cursor: pointer; transition: background .15s, border-color .15s;
}
.iconbtn:hover { background: var(--off-white); border-color: var(--pl-steel-gray); }

.nav__search {
  display: flex; align-items: center; gap: 10px; overflow: hidden;
  flex: 0 1 0; max-width: 0; min-width: 0; opacity: 0; visibility: hidden;
  margin-left: auto;
  background: var(--off-white); border: 1px solid var(--gray-200);
  padding: 9px 0;
  transition: max-width .85s cubic-bezier(.22,.61,.36,1), opacity .55s ease, padding .85s ease, visibility .85s;
}
.nav--searching .nav__search {
  flex: 0 1 360px; max-width: 360px; opacity: 1; visibility: visible; padding: 9px 16px;
}
.nav__search-icon { color: var(--gray-500); flex: none; }
.nav__search-input {
  flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 15px;
  background: transparent; color: var(--ink);
}
.nav__search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.nav__search-input { -webkit-appearance: none; appearance: none; }
.nav__search-input::placeholder { color: var(--gray-500); }
.nav__search-clear {
  border: 0; background: transparent; color: var(--gray-500);
  width: 24px; height: 24px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; flex: none;
}
.nav__search-clear:hover { background: var(--gray-200); color: var(--ink); }
.nav--searching #search-toggle { display: none; }

/* ============================== LAYOUT ============================== */
.home { max-width: var(--maxw); margin: 0 auto; padding: 22px 20px 60px; }

.state { text-align: center; padding: 60px 16px; color: var(--gray-500); }
.state h2 { color: var(--ink); font-size: 22px; margin: 0 0 8px; }
.btn {
  margin-top: 14px; border: 0; cursor: pointer;
  background: var(--red); color: var(--white); font-family: var(--font-mono); font-weight: 400;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 11px 20px; font-size: 14px;
}
.btn:hover { background: var(--red-dark); }

/* ============================== HERO ============================== */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 22px;
  background: var(--white); border: 1px solid var(--gray-200);
  padding: 22px; margin-bottom: 34px;
}
.hero__body { display: flex; flex-direction: column; }
.hero__media {
  position: relative; overflow: hidden;
  background: var(--pl-steel-gray); aspect-ratio: 16 / 10;
}
.hero__media img, .hero__media video, .hero__media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .06em;
  text-transform: uppercase; color: var(--white); background: var(--red);
  padding: 5px 10px; align-self: flex-start;
}
.tag--blue { background: var(--blue); }
.tag--ink { background: var(--ink); }
.tag--outline { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); }
.hero__tag { margin-bottom: 16px; }
.hero__headline {
  font-size: clamp(26px, 5vw, 40px); line-height: 1.05;
  margin: 0 0 14px; color: var(--ink);
}
.hero__headline a:hover { text-decoration: underline; text-decoration-color: var(--pl-power-red); text-decoration-thickness: .1em; text-underline-offset: .08em; }
.hero__dek { font-size: 17px; color: var(--gray-500); margin: 0 0 18px; max-width: 46ch; }
.meta { font-size: 12px; color: var(--gray-500); margin: 0; }
.meta__dot { margin: 0 7px; }
.hero__meta { margin-bottom: 20px; }
.hero__cta { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white); font-family: var(--font-mono); font-weight: 400; font-size: 14px;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 12px 22px; transition: background .15s, transform .15s;
}
.cta-btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.cta-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--gray-200); color: var(--blue);
}

/* ============================== SECTION HEADING ============================== */
.section-heading { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.section-heading__title {
  font-family: var(--font-mono); font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em;
  margin: 0; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.section-heading__bolt { color: var(--red); }
.section-heading__line { flex: 1; height: 1px; background: var(--gray-200); }

/* ============================== GRID + CARDS ============================== */
.grid { display: grid; grid-template-columns: 1fr; gap: 22px; }

.card {
  background: var(--white); border: 1px solid var(--gray-200);
  overflow: hidden;
  display: flex; flex-direction: column; transition: transform .18s, border-color .18s;
  position: relative;
}
.card:hover { transform: translateY(-2px); border-color: var(--pl-ink-black); }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--pl-steel-gray); }
.card__media img, .card__media video, .card__media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
/* Scrim so an overlaid chip stays legible over a photo. */
.card__media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 64px; pointer-events: none;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.55), transparent);
}
.card__tag { position: absolute; left: 10px; bottom: 10px; z-index: 1; }
.card__body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 8px; }
.card__headline {
  font-size: 16px; line-height: 1.12; margin: 0; color: var(--ink);
  /* Clamp very long titles so a card's height stays sane (the .card__hit overlay is absolute, unaffected). */
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .card__headline { color: var(--red); }
.card__hit { position: absolute; inset: 0; }
.card__dek {
  font-size: 14px; color: var(--gray-500); margin: 0; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { margin-top: 2px; }

.card__media--placeholder, .hero__media--placeholder {
  display: grid; place-items: center; background: var(--pl-press-blue);
}
.card__media--placeholder::after, .hero__media--placeholder::after { content: none; }
.card__media--placeholder span, .hero__media--placeholder span {
  font-family: var(--font-display); letter-spacing: .12em; font-size: 13px; color: var(--pl-steel-gray);
  text-transform: uppercase;
}

/* ============================== PAGINATION ============================== */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pager__btn {
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--gray-200); background: var(--white); color: var(--gray-500);
  font: inherit; font-family: var(--font-mono); font-weight: 400; font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s;
}
.pager__btn:hover:not(:disabled) { background: var(--off-white); border-color: var(--pl-ink-black); }
.pager__btn--active { background: var(--red); border-color: var(--red); color: var(--white); }
.pager__btn:disabled { opacity: .4; cursor: default; }
.pager__gap { color: var(--gray-500); padding: 0 4px; }

/* ============================== FOOTER ============================== */
.site-footer { background: var(--ink); color: var(--pl-steel-gray); margin-top: 50px; }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 46px 20px 30px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer-brand { max-width: 42ch; }
.site-footer__mark { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; margin: 0 0 6px; color: var(--white); text-transform: uppercase; }
.site-footer__mark span { font-weight: 400; }
.site-footer__tagline { color: var(--pl-steel-gray); font-family: var(--font-mono); font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 10px; }
.site-footer__note { color: var(--pl-steel-gray); font-size: 14px; line-height: 1.6; margin: 0 0 18px; }

.footer-social { display: flex; gap: 10px; }
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255, 255, 255, 0.08); color: var(--white); transition: background .15s, transform .15s;
}
.social:hover { background: var(--red); transform: translateY(-2px); }

.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col__title {
  font-family: var(--font-mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .1em;
  color: var(--white); margin: 0 0 4px;
}
.footer-col a { color: var(--pl-steel-gray); font-size: 14px; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--pl-steel-gray);
}
.footer-bottom__tag { font-weight: 400; color: var(--pl-steel-gray); }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
}

/* ============================== ARTICLE ============================== */
.article { max-width: 720px; margin: 0 auto; padding: 30px 20px 70px; }
.article__header { margin-bottom: 22px; }
.article__label { margin-bottom: 12px; display: inline-flex; align-items: center; gap: 10px; }
.article__headline { font-size: clamp(24px, 5vw, 38px); line-height: 1.06; margin: 0 0 14px; }
.article__dek { font-size: 19px; color: var(--gray-500); margin: 0 0 16px; }
.article__byline { font-size: 12px; color: var(--gray-500); margin: 0; padding-bottom: 18px; border-bottom: 2px solid var(--ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.article__hero { margin: 24px auto; overflow: hidden; background: transparent; width: -moz-fit-content; width: fit-content; max-width: 100%; }
.article__hero img, .article__hero video, .article__hero iframe { display: block; margin: 0 auto; max-width: 100%; height: auto; border: 0; }
/* An iframe (youtube embed) has no intrinsic aspect, so pin 16:9 or it collapses to a sliver. */
.article__hero iframe { width: 100%; aspect-ratio: 16 / 9; }
.article__hero--fill { width: 100%; }
.article__hero--fill img, .article__hero--fill video, .article__hero--fill iframe { width: 100%; max-height: 78vh; object-fit: cover; }
.article__body { font-size: 18px; line-height: 1.75; color: var(--gray-700); }
.article__body p { margin: 0 0 1.2em; }
.article__body h2, .article__body h3 { color: var(--ink); font-family: var(--font-display); text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.15; margin: 1.6em 0 .5em; }
.article__body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.article__body mark { background: none; color: inherit; border-bottom: 3px solid var(--pl-power-red); padding: 0; }
.article__body u { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.article__body s { color: var(--gray-500); }
/* Two red-barred quote treatments that share the brand's red left-bar but NOT the voice:
   - .article__pullquote (the :::pullquote fence) is the SIGNATURE — the one sharpest line the newsroom
     amplifies, set loud in Archivo ALL-CAPS. Spend the boldness here, once.
   - a plain body <blockquote> is a PERSON SPEAKING — kept quiet (Inter, sentence case, a notch above body)
     so a spoken quote doesn't read as shouting and the pull stays singular.
   The :not() keeps the pullquote out of the quiet rule: a pullquote IS a <blockquote class="article__pullquote">,
   and `.article__body blockquote` (0,1,1) would otherwise out-specify `.article__pullquote` (0,1,0). */
.article__pullquote {
  border-left: 4px solid var(--pl-power-red); padding: .2em 0 .2em 22px; margin: 1.8em 0;
  font-family: var(--font-display); font-size: 25px; line-height: 1.24; text-transform: uppercase;
  color: var(--ink);
}
.article__body blockquote:not(.article__pullquote) {
  border-left: 4px solid var(--pl-power-red); padding: .1em 0 .1em 20px; margin: 1.5em 0;
  font-family: var(--font-body); font-weight: 500; font-size: 20px; line-height: 1.5;
  color: var(--ink);
}
.article__media { display: grid; gap: 20px; margin: 28px 0; }
.figure { margin: 0; }
.figure img, .figure video, .figure iframe {
  display: block; width: 100%; height: auto; max-height: 620px; object-fit: cover;
  background: var(--pl-steel-gray);
}
.figure iframe { aspect-ratio: 16 / 9; max-height: none; border: 0; }
.article__inline-media { margin: 30px 0; }
.figure figcaption { font-size: 12px; color: var(--gray-500); margin-top: 6px; }
.people { font-size: 14px; color: var(--gray-500); margin: 26px 0 0; }
.people__label { font-weight: 700; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.tags .tag {
  background: var(--off-white); color: var(--gray-500); border: 1px solid var(--gray-200);
  font-family: var(--font-mono); text-transform: none; letter-spacing: 0; font-weight: 400;
}
.sources { margin: 34px 0 0; padding-top: 20px; border-top: 1px solid var(--gray-200); }
.sources__title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); margin: 0 0 12px; }
.sources__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sources__link { color: var(--blue); }
.sources__link:hover { text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gray-500); font-family: var(--font-mono); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; margin-bottom: 18px; }
.back-link:hover { color: var(--red); }

/* states reused on the article page */
.article .state { max-width: 720px; }

/* ============================== READING PROGRESS (article) ============================== */
.reading-progress {
  position: absolute; left: 0; bottom: -3px; height: 3px; width: 0;
  background: var(--pl-power-red);
  z-index: 60; transition: width .08s linear; will-change: width;
}

/* ============================== SHIMMER SKELETONS ============================== */
.skeleton { position: relative; overflow: hidden; background: #eceef2; }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }

.skel-hero { margin-bottom: 34px; }
.skel-tag { display: block; width: 84px; height: 22px; margin-bottom: 16px; }
.skel-line { display: block; height: 16px; margin-bottom: 12px; }
.skel-line--xl { height: 30px; }
.skel-btn { display: block; width: 150px; height: 44px; margin-top: 8px; }
.skel-media { width: 100%; aspect-ratio: 16 / 10; }
.skel-card .skel-media { border-radius: 0; }
.skel-card { border: 1px solid var(--gray-200); overflow: hidden; background: var(--white); }
.skel-card__body { padding: 14px 15px 16px; }

/* ============================== RESPONSIVE ============================== */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .nav__links { display: flex; }
  .hero { grid-template-columns: 1fr 1.05fr; align-items: center; padding: 28px; gap: 30px; }
  .hero__body { order: 0; }
  .hero__media { order: 1; aspect-ratio: 4 / 3; }
}
@media (min-width: 1040px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .home { padding-top: 30px; }
}

/* ============================== PORTRAIT MEDIA (ALL WIDTHS) ==============================
   Images arrive as bare URLs with NO dimensions, and the generated 16:9 website hero is only best-effort —
   a 4:5 cover or a scraped portrait legitimately reaches the hero + inline body. The fixed 16:10 crop
   (feed/hero) and 620px clip (inline) slice a portrait. app.js::tagMediaRatio flags a <0.9-aspect image
   `.media--portrait` on load, at every width; the rules below let ONLY those render uncropped, wherever
   they appear (1-column phone feed, 2/3-column tablet/desktop grid, or the article body). Two-class
   selectors (e.g. `.hero__media.media--portrait`) already out-specificity the single-class desktop rules
   above, so no reordering is needed. Landscape/video/iframe media is never tagged, so the common 16:9
   hero is unchanged at every width.
   NOTE: this same stylesheet also styles the dashboard's article Preview iframe (390px mobile frame), so
   it inherits these fixes by design. */
/* Feed/hero: show a tagged portrait in full instead of a 16:10 center-crop. */
.hero__media.media--portrait,
.card__media.media--portrait { aspect-ratio: auto; }
.hero__media.media--portrait img,
.card__media.media--portrait img { height: auto; object-fit: contain; }
/* The bottom scrim + overlaid chip are designed for a wide crop; on a natural portrait they float over
   dead space — drop the scrim and set the tag inline beneath the image. */
.card__media.media--portrait::after { content: none; }
.card__media.media--portrait .card__tag { position: static; margin: 8px 0 0 10px; }
/* Inline article portraits: lift the 620px clip so a tall photo isn't sliced. */
.figure.media--portrait img { max-height: none; object-fit: contain; height: auto; }

/* ============================== MOBILE REFINEMENTS ============================== */
@media (max-width: 719.98px) {
  /* 44px minimum touch targets (were 38px). .iconbtn is a fixed-size circle; .pager__btn holds
     variable-width text ("< Prev" / "Next >"), so it must grow past 44px rather than be pinned to it. */
  .iconbtn { width: 44px; height: 44px; }
  .pager__btn { min-width: 44px; min-height: 44px; }
  /* Long ALL-CAPS pull-quotes can overflow a ~350px column — clamp the size and allow breaking. */
  .article__pullquote { font-size: clamp(20px, 5.5vw, 25px); overflow-wrap: break-word; }
  /* Lead story: image-first like the cards below, instead of a long text block before any visual.
     Bleed the media edge-to-edge (drop the hero's own padding) and pad only the text body under it. */
  .hero { padding: 0; }
  .hero__media { order: -1; }
  .hero__body { padding: 22px; }
  /* Open search becomes a full-bleed row under the sticky header so it never squeezes the logo.
     .nav__search is a child of the unpositioned .nav__inner, so absolute anchors to the sticky .nav. */
  .nav--searching .nav__search {
    position: absolute; top: 100%; left: 0; right: 0; max-width: none; margin: 0;
    border-left: 0; border-right: 0;
  }
}
