/* =========================================================================
   Зборувај.мк — visual system
   -------------------------------------------------------------------------
   A reading page first: picture, category, headline, time, and nothing else
   on the grid. The
   accent colour is spent on one thing only, so it still means something when
   it appears.

   The palette comes from the brand mark: the logo is gold on transparency,
   which needs a dark ground to carry, hence the ink masthead over paper.
   ========================================================================= */

:root {
  --paper: #f7f6f2;
  --paper-raised: #fffefb;
  --ink: #15171c;
  /* Running body copy — slightly lifted off pure ink so long paragraphs sit easier. */
  --ink-body: #2f3441;
  --ink-soft: #5c6270;
  /* 4.72:1 on --paper. The previous #868c99 measured 3.12:1 and drives timestamps, ledger
     states, wire markers, section counts and every empty state — one token, failing everywhere. */
  --ink-faint: #686e7d;
  /* Mid-tone, never a near-white: in-app browsers (Instagram/Facebook) force-darken
     pages and invert pale borders into invisibility. */
  --rule: #d2cfc5;
  --rule-strong: #b4b0a4;
  /* Boundaries of actual controls, which WCAG 1.4.11 holds to 3:1 — this is 3.28:1.
     --rule-strong is 2.00:1 and stays for decorative dividers, which have no minimum. */
  --rule-ui: #8d8877;
  /* Brand gold, straight from the logo SVG. Legible on ink only — it is 1.9:1 on paper. */
  --gold: #d2a51f;
  /* The gold for type on paper: 5.01:1. Never use --gold for text on a light background. */
  --gold-ink: #8a6314;
  --verified: #0e5c3f;
  --verified-bg: #e6f0ea;

  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shell: 1280px;

  /* Tells compliant engines this page is light by design, so they skip the forced-dark
     guesswork rather than inverting the palette heuristically. */
  color-scheme: light;
}

/* Macedonian compounds are long — "млекопроизводителите", "западнонилска". Without this a
   single word can exceed the column and, under 200% text zoom on a phone, push the tail of a
   headline physically off-screen where it cannot be scrolled to. */
.lead__title,
.card__title,
.side-item__title,
.latest__title,
.livecard__title,
.fc-list__claim,
.fc-article__claim {
  overflow-wrap: anywhere;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  /* Rapid taps on the filter rail read as double-taps to WebKit and trigger smart-zoom;
     this keeps scroll and pinch but kills that. */
  touch-action: manipulation;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 2px;
}
/* The ink bands need the bright brand gold instead — --gold-ink is dark-on-dark there. */
.site-header :focus-visible,
.footer :focus-visible {
  outline-color: var(--gold);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* ---------------------------------------------------------------- topbar  */

.topbar {
  background: var(--ink);
  color: #cfd3dc;
  font-family: var(--mono);
  font-size: 0.688rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 38px;
  flex-wrap: wrap;
}

.topbar__link {
  text-decoration: none;
  color: #cfd3dc;
  border-bottom: 1px solid rgba(207, 211, 220, 0.4);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.topbar__date + .topbar__link {
  margin-left: auto;
}
.topbar__link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* -------------------------------------------------------------- masthead  */

/* Every pixel here is spent before the reader sees a single story, so the nameplate stack is
   kept tight. */
.masthead {
  background: var(--ink);
  color: var(--paper);
  padding: 0.35rem 0;
}

.masthead__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* assets/logo.svg is the real vector lockup (from the brand SVG, viewBox tightened to the
   measured path bounds). Do NOT point this at assets/logo.png — that file is 100% opaque,
   its "transparency" is a checkerboard baked into the pixels, so it renders a grey slab. */
/* This is the page's <h1> — the site name, set as the brand mark. */
.masthead__brand {
  margin: 0;
  font-size: inherit;
  line-height: 0;
}
.masthead__brand img {
  width: 176px;
  height: auto;
  margin: 0.4rem 0;
}

/* ------------------------------------------------------------------ rail  */

.rail {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-strong);
}

.rail__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 46px;
  flex-wrap: wrap;
}

.rail__nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-right: auto;
}

/* Reads as a nav bar rather than a filter control: no pill, no box. The current section is
   marked the way print marks one — a rule under the word. */
.navlink {
  background: none;
  border: 0;
  padding: 0.45rem 0;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.navlink:hover {
  color: var(--ink);
}
.navlink.is-active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

.search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid var(--rule-ui);
  padding: 0.2rem 0.1rem;
}

.search__icon {
  width: 14px;
  height: 14px;
  color: var(--ink-faint);
  flex: none;
}

.search__input {
  border: 0;
  background: none;
  /* 16px floor: anything smaller makes iOS Safari zoom the page on focus. */
  font-size: 16px;
  width: 150px;
  padding: 0;
  color: var(--ink);
}
/* Was a blanket `outline: none`, which beat the global :focus-visible rule on source order and
   left the search box as the one control with no visible focus at all. */
.search__input:not(:focus-visible) {
  outline: none;
}
.search:focus-within {
  border-bottom-color: var(--ink);
}
.search__input::placeholder {
  color: var(--ink-faint);
}

/* ---------------------------------------------------------------- layout  */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 3rem;
  padding-top: 1.75rem;
  padding-bottom: 4rem;
  align-items: start;
}

/* ------------------------------------------------------------------ lead  */

/* Lead plus a column of the next-best-corroborated stories — the device NYT and WaPo use
   to say "this one matters most, and these are next" without a second full-width block. */
.leadblock {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.75rem;
  padding-bottom: 2.25rem;
  border-bottom: 3px double var(--rule-strong);
  margin-bottom: 2.5rem;
  align-items: start;
}
.leadblock--solo {
  grid-template-columns: minmax(0, 1fr);
}

.leadblock__side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-left: 1px solid var(--rule);
  padding-left: 2.25rem;
}

.side-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: none;
  border: 0;
  padding: 0 0 1.35rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.side-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.side-item__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.031rem;
  line-height: 1.27;
  letter-spacing: -0.008em;
}
.side-item:hover .side-item__title {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lead {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

/* Without a photograph the lead has nothing to sit beside, so it runs as one measure. */
.lead--text {
  grid-template-columns: minmax(0, 1fr);
}

.lead__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lead__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -0.017em;
  margin: 0;
}

.lead__link {
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.lead__link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.lead__lead {
  margin: 0;
  font-size: 1.031rem;
  line-height: 1.6;
  color: var(--ink-body);
  max-width: 54ch;
}

.lead__media {
  margin: 0;
}

/* Inside the lead block the picture sits above the headline, as in BBC's centre column: sharing a
   row with the photo squeezed a 2.65rem headline into ~240px and broke words mid-syllable. */
.leadblock .lead {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
}
.leadblock .lead__media {
  order: -1;
}

/* Nothing below the lead block: no closing rule over empty space. */
.leadblock--last {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.side-item__media {
  margin: 0 0 0.35rem;
  background: #e6e4dd;
}
.side-item__media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.lead__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #e6e4dd;
}

/* ----------------------------------------------------- live blog card  */
/* BBC's pattern: a running live blog is a story card whose headline starts with the live badge,
   not a separate bar. Dark so it cannot be mistaken for an ordinary story, with every tone on it
   mixed from tokens. */

.livecard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  margin-bottom: 2.25rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.livecard--text {
  grid-template-columns: minmax(0, 1fr);
}
.livecard:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.livecard__media {
  margin: 0;
}
.livecard__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: color-mix(in srgb, var(--paper) 10%, var(--ink));
}

.livecard__title {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  text-wrap: balance;
}
.livecard:hover .livecard__title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.livecard__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0.3rem;
  vertical-align: 0.18em;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.livecard__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: livepulse 1.8s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.28; }
}

.livecard__lead {
  margin: 0 0 0.75rem;
  font-size: 0.969rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--paper) 80%, var(--ink));
}

.livecard__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.688rem;
  letter-spacing: 0.05em;
  color: color-mix(in srgb, var(--paper) 70%, var(--ink));
}

/* ------------------------------------------------- our own article cards  */

/* These are real links, unlike the feed's <button> cards, so they need the anchor reset. */
.card--link {
  text-decoration: none;
  color: inherit;
}

.card__lead {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------- sections  */

.section {
  margin-bottom: 2.75rem;
}
.section:last-child {
  margin-bottom: 0;
}

.section__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.4rem;
  margin-bottom: 1.35rem;
}

.section__more {
  margin-left: auto;
  padding: 0.35rem 0;
  font-family: var(--mono);
  font-size: 0.688rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
}
.section__more:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.fcstrip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem 2rem;
}
.fcstrip .fc-card {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section__name {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* auto-fit, not auto-fill: a section with two stories should fill the row rather than
   leave a phantom empty track beside them. */
.grid {
  display: grid;
  gap: 1.75rem 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
}

/* ------------------------------------------------------------------ card  */

.card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.card__media {
  margin: 0;
  overflow: hidden;
  background: #e6e4dd;
}
.card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.card:hover .card__media img {
  transform: scale(1.035);
}

.card__kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.656rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Deliberately not gold. The category kicker renders 16+ times per screen, and at that
   frequency the accent stops reading as an accent and becomes a default text colour. */
.tag {
  color: var(--ink);
  font-weight: 600;
}

.card__time {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.656rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.188rem;
  line-height: 1.3;
  letter-spacing: -0.008em;
}
.card:hover .card__title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Attribution for reused material. Quiet on purpose: it is an obligation under Art. 52 of the
   copyright law and an editorial courtesy, not a selling point, so it must never compete with
   the headline above it. */
.credit {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.656rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.credit__outlet {
  color: var(--ink-soft);
  font-weight: 600;
}
a.credit__outlet {
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.empty {
  border: 1px dashed var(--rule-strong);
  padding: 1.75rem;
  color: var(--ink-soft);
  font-size: 0.938rem;
  line-height: 1.55;
}

.empty__text {
  margin: 0;
}

.empty__reset {
  margin-top: 1rem;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.719rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
}
.empty__reset:hover {
  background: var(--gold-ink);
}

/* --------------------------------------------------------------- sidebar  */

.layout__aside {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  position: sticky;
  top: 76px;
}
/* Beats every display rule on .layout__aside, including the responsive ones, by specificity. */
.layout__aside[hidden] {
  display: none;
}
/* No recent items: the main column takes the full width instead of leaving a blank track. */
.layout--solo {
  grid-template-columns: minmax(0, 1fr);
}

.module {
  border-top: 3px solid var(--ink);
  padding-top: 0.65rem;
}

.module__title {
  margin: 0 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.module__hint {
  margin: -0.5rem 0 0.9rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
  line-height: 1.4;
}

.module__more {
  display: inline-block;
  margin-top: 0.9rem;
  /* Was 18px tall — below even the 24px WCAG 2.5.8 minimum, since it had no vertical padding. */
  padding: 0.35rem 0;
  font-family: var(--mono);
  font-size: 0.688rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
}
.module__more:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.module__empty {
  margin: 0;
  font-size: 0.813rem;
  color: var(--ink-faint);
  line-height: 1.45;
}

.fc-card {
  display: block;
  text-decoration: none;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
}
.fc-card:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
/* Same reasoning as .fc-verdict — neutral, never the corroboration green. */
.fc-card__verdict {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.656rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.1rem 0.4rem;
  margin-bottom: 0.4rem;
}
.fc-card__claim {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.938rem;
  font-weight: 600;
  line-height: 1.3;
}
.fc-card:hover .fc-card__claim {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.latest {
  list-style: none;
  margin: 0;
  padding: 0;
}

.latest__row {
  border-bottom: 1px solid var(--rule);
}
.latest__row:last-child {
  border-bottom: 0;
}

/* A link when the item has a page to open, a plain block when it is a short news item that is
   complete as it stands. */
.latest__item {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.65rem 0;
  color: inherit;
  text-decoration: none;
}

.latest__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.latest__kind {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.latest__text {
  font-size: 0.813rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.latest__time {
  font-family: var(--mono);
  font-size: 0.688rem;
  color: var(--gold-ink);
  padding-top: 0.15rem;
}

.latest__title {
  font-size: 0.844rem;
  line-height: 1.35;
  font-weight: 500;
}
a.latest__item:hover .latest__title,
a.latest__item:focus-visible .latest__title {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------------------------------------------------------------- footer  */

.footer {
  background: var(--ink);
  color: #9aa0ad;
  padding: 2.5rem 0;
}

.footer__brand {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gold);
}

.footer__note {
  margin: 0;
  max-width: 68ch;
  font-size: 0.781rem;
  line-height: 1.55;
  /* #767d8a measured 4.33:1 on --ink; this tone is 6.84:1. */
  color: #9aa0ad;
}

/* --------------------------------------- fact-check pages (server-rendered) */

/* Explicitly resets the two-column grid rather than relying on source order —
   these pages carry both `layout` and `fc-main`, and order-dependent overrides
   are exactly how CSS quietly cancels itself out. */
.fc-main {
  display: block;
  grid-template-columns: none;
  max-width: 800px;
  /* These pages do not carry .shell, so the gutters and centring live here. */
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.fc-title {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.813rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 0.55rem;
}

.fc-intro {
  margin: 0 0 2.25rem;
  font-size: 0.938rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
}

.fc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fc-list__item {
  border-bottom: 1px solid var(--rule);
}

.fc-list__link {
  display: block;
  padding: 1.35rem 0;
  text-decoration: none;
}

.fc-list__meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.656rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

/* Deliberately NOT the verification green. That colour means "independently corroborated",
   and a verdict is free text the journalist writes — most often "Неточно". Painting the word
   "false" in the site's truth colour inverts the meaning, and colour-coding verdicts at all
   would reintroduce the rating scale the PRD explicitly rejected. Neutral, and readable. */
.fc-verdict {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 2px solid var(--ink);
  padding: 0.3rem 0.7rem;
}

.fc-list__claim {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}
.fc-list__link:hover .fc-list__claim {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fc-empty {
  padding: 1.35rem 0;
  color: var(--ink-faint);
  font-size: 0.938rem;
}

.fc-article__meta {
  margin: 0 0 1.5rem;
  font-family: var(--mono);
  font-size: 0.688rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.fc-article__meta a {
  color: var(--gold-ink);
  text-decoration: none;
}
.fc-article__meta a:hover {
  text-decoration: underline;
}

.fc-article .label {
  margin: 2rem 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.688rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 0.3rem;
}
.fc-article .label-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--gold-ink);
  margin-right: 0.4rem;
  vertical-align: middle;
}

.fc-article__claim {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.fc-article__verdict {
  margin: 0;
}

/* Long-form prose gets the looser measure; everything shorter runs at 1.6. */
.fc-article__body p {
  margin: 0 0 1.1rem;
  font-size: 1.031rem;
  line-height: 1.7;
  color: var(--ink-body);
}

.fc-article__sources {
  margin: 0;
  padding: 0;
  list-style: none;
}
.fc-article__sources li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.906rem;
  word-break: break-word;
}
.fc-article__sources a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-ink);
}
.fc-article__sources a:hover {
  color: var(--gold-ink);
}

.fc-article__author {
  margin: 2rem 0 0;
  font-family: var(--mono);
  font-size: 0.719rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* The server-rendered pages reuse this masthead markup. */
.hero {
  background: var(--ink);
  padding: 0.75rem 0 1.25rem;
}
.hero__inner,
.hero__top,
.brand-block {
  display: flex;
  justify-content: center;
}
.brand-logo {
  width: 182px;
  height: auto;
  margin: 0.6rem 0;
}

/* ------------------------------------------------------------ responsive  */

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  /* CSS columns, not grid: a grid row is always as tall as its tallest cell, so a short
     module beside a tall one left ~650px of dead space at 768–833px. Columns don't couple
     row heights, so each module takes only the space it needs. */
  .layout__aside {
    position: static;
    display: block;
    columns: 2;
    column-gap: 2.5rem;
  }
  .module {
    break-inside: avoid;
    margin-bottom: 2rem;
  }
  /* The filter rail needs ~1065px to fit one line, so between 721px and 1080px it silently
     wrapped to two rows and added ~35px to a sticky header. Scroll it instead — and the row
     itself must be nowrap, or the tools simply drop to a second line and nothing is gained. */
  .rail__inner {
    flex-wrap: nowrap;
  }
  .rail__nav {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
    /* Without this the last category is simply sliced off and reads as a rendering fault
       rather than as "there is more, scroll". */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
  .search {
    flex: none;
  }
  .rail__nav::-webkit-scrollbar {
    display: none;
  }
  .navlink {
    white-space: nowrap;
  }
  .lead,
  .leadblock {
    grid-template-columns: minmax(0, 1fr);
  }
  .leadblock__side {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--rule-strong);
    padding-top: 1.5rem;
  }
  .lead__media {
    order: -1;
  }
}

@media (max-width: 720px) {
  .shell {
    padding: 0 1.1rem;
  }
  .topbar__inner {
    min-height: 34px;
    font-size: 0.625rem;
    gap: 0.75rem;
  }
  .topbar__date {
    display: none;
  }
  .masthead__brand img {
    width: 186px;
  }
  .layout__aside {
    columns: 1;
  }
  /* Back to wrapping below 720px: the tablet-band `nowrap` rule would otherwise squeeze the
     category filters to zero width against the full-width tools row. */
  .rail__inner {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .rail__nav {
    gap: 0.9rem;
    width: 100%;
    flex: 1 1 100%;
  }
  .search {
    flex: 1;
  }
  .search__input {
    width: 100%;
  }
  .lead__title {
    font-size: 1.75rem;
  }
  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .livecard {
    grid-template-columns: minmax(0, 1fr);
    padding: 1rem;
  }
}

/* Touch devices get 44px targets; pointer devices keep the compact rail. Gating on the input
   type rather than the viewport means neither has to lose. */
@media (pointer: coarse) {
  .navlink {
    padding: 0.72rem 0;
  }
  .module__more {
    padding: 0.85rem 0;
  }
  .latest__item {
    padding: 0.75rem 0;
  }
  .topbar__link {
    display: inline-block;
    padding: 0.65rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Printing the front page keeps the stories and drops the navigation. */
@media print {
  .topbar,
  .rail,
  .layout__aside,
  .empty__reset {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .masthead {
    background: none;
    padding: 0 0 1rem;
  }
  .layout {
    display: block;
    padding: 0;
  }
  .leadblock,
  .lead {
    display: block;
  }
  .grid {
    display: block;
  }
  .card,
  .side-item {
    break-inside: avoid;
    margin-bottom: 1.25rem;
  }
  .footer {
    background: none;
    color: #000;
    border-top: 1pt solid #000;
  }
  .footer__brand,
  .footer__note {
    color: #000;
  }
}
