/*
Theme Name: Content Platform
Theme URI: https://example.test/content-platform
Author: Content Platform
Description: Deliberately thin render target for the publishing pipeline. The pipeline composes the whole post body as blocks; this theme prints it.
Version: 2.1.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: content-platform
*/

/*
 * Design tokens (spec §9). The palette, the type scale and the spacing scale
 * live here so the templates read names rather than values. Every font is
 * system-provided: there is no @font-face and no web-font request anywhere in
 * this file, which is what keeps the "no trackers" copy true of the deployed
 * artefact and keeps the largest contentful paint off a font download.
 */
:root {
  /* The identity's palette (docs/design/2026-10-02-identity/). One accent, and
     it is spent on three things only: the vertical label, the exhibit surface's
     rule, and the poll's chosen state. */
  --dd-color-ground: #fcfcfb;
  --dd-color-ink: #1b1c1e;
  --dd-color-ink-soft: #5f6367;
  --dd-color-rule: #e2e1dc;
  --dd-color-accent: #2f5d50;
  --dd-color-exhibit: #f2f0e9;
  --dd-color-focus: #2f5d50;

  /* Two families, both system-provided: no @font-face, no font host, and the
     LCP stays off a font download. */
  --dd-font-text: Charter, "Bitstream Charter", "Iowan Old Style", Cambria, Georgia, serif;
  --dd-font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --dd-text-xs: 0.78rem;
  --dd-text-sm: 0.9rem;
  --dd-text-base: 1.125rem;
  --dd-text-lg: 1.25rem;
  --dd-text-xl: 1.5rem;
  --dd-text-2xl: 1.9rem;
  --dd-text-3xl: 2.4rem;
  --dd-text-4xl: 2.7rem;
  --dd-leading-tight: 1.1;
  --dd-leading-snug: 1.35;
  --dd-leading-normal: 1.63;

  --dd-space-1: 0.25rem;
  --dd-space-2: 0.5rem;
  --dd-space-3: 0.75rem;
  --dd-space-4: 1rem;
  --dd-space-5: 1.5rem;
  --dd-space-6: 2rem;
  --dd-space-7: 2.5rem;
  --dd-space-8: 3rem;
  --dd-measure: 37.5rem; /* 600px — the article column */
  --dd-rail: 21.5rem; /* 344px — the exhibit rail */
  --dd-gap: 3rem;
  --dd-page: 70rem;
  --dd-radius: 4px;

  /* The remaining names the components still read. They are kept, at their
     existing values, so no rule references an undeclared custom property.
     `--dd-color-accent` above is the identity's single accent, spent on the
     vertical label, the exhibit and the poll's chosen state; the link colours
     are not it. */
  --dd-color-paper: #fbfaf7;
  --dd-color-surface: #ffffff;
  --dd-color-link: #14478f;
  --dd-color-link-hover: #0d2f61;
  --dd-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --dd-font-serif: Georgia, "Times New Roman", Times, serif;
  --dd-radius-lg: 12px;
  --dd-shadow-card: 0 1px 2px rgba(24, 24, 38, 0.06), 0 8px 24px rgba(24, 24, 38, 0.05);
}

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

body {
  margin: 0;
  background: var(--dd-color-ground);
  color: var(--dd-color-ink);
  font-family: var(--dd-font-text);
  font-size: var(--dd-text-base);
  line-height: var(--dd-leading-normal);
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--dd-color-link);
}

a:hover {
  color: var(--dd-color-link-hover);
}

:focus-visible {
  outline: 2px solid var(--dd-color-focus);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

/*
 * The masthead. The wordmark is an image so the brand stays a drawn asset, and
 * its width and height are declared so the header does not reflow when it
 * loads.
 */
.site-header {
  border-top: 4px solid var(--dd-color-ink);
  background: var(--dd-color-surface);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dd-space-4);
  max-width: var(--dd-page);
  margin: 0 auto;
  padding: var(--dd-space-4) var(--dd-space-5);
}

.site-brand {
  display: inline-flex;
  align-items: center;
}

.site-wordmark {
  display: block;
  width: auto;
  height: 2.5rem;
}

.site-description {
  margin: 0;
  color: var(--dd-color-ink-soft);
  font-size: var(--dd-text-sm);
  text-align: right;
}

/* The verticals get their own landing pages; this is the way in. */
.site-nav {
  border-top: 1px solid var(--dd-color-rule);
  border-bottom: 1px solid var(--dd-color-rule);
  background: var(--dd-color-paper);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dd-space-5);
  max-width: var(--dd-page);
  margin: 0 auto;
  padding: var(--dd-space-3) var(--dd-space-5);
  list-style: none;
}

.site-nav__link {
  color: var(--dd-color-ink-soft);
  font-size: var(--dd-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav__link:hover {
  color: var(--dd-color-ink);
}

.site-main {
  max-width: var(--dd-measure);
  margin: 0 auto;
  padding: var(--dd-space-6) var(--dd-space-5) var(--dd-space-8);
}

/*
 * The single post widens to the identity's two-column spread: a 600px article
 * measure beside a 344px exhibit margin (D-P8-1). Archives keep the single
 * measure, so the shared main container's clamp is lifted only for a post and
 * the spread carries its own padding.
 */
.single .site-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.spread {
  max-width: var(--dd-page);
  margin: 0 auto;
  padding: var(--dd-space-6) var(--dd-space-5) var(--dd-space-8);
  display: grid;
  grid-template-columns: var(--dd-measure) var(--dd-rail);
  gap: var(--dd-gap);
  align-items: start;
}

/*
 * The margin is a placement, not a reorder: the article is first in the DOM so
 * a linearised read is commentary -> source -> attribution (D-P8-4, D-P4-1).
 * `grid-row: 1` is what lets the auto-placed article keep the first column
 * while the rail takes the second.
 */
.rail {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: var(--dd-space-5);
}

/*
 * The exhibit: the source on the identity's tinted ground, with its label, its
 * collapsed disclosure and its attribution. It is demoted from the article by
 * weight, not hidden, so a reader can always open the source's own words.
 */
.exhibit {
  padding: var(--dd-space-5);
  background: var(--dd-color-exhibit);
  border: 1px solid var(--dd-color-rule);
  border-radius: var(--dd-radius);
}

.exhibit__k {
  margin: 0 0 var(--dd-space-3);
  color: var(--dd-color-ink-soft);
  font-family: var(--dd-font-ui);
  font-size: var(--dd-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/*
 * The neighbours sit under the exhibit in the same margin. The composed block
 * keeps its heading and list; only the full-width section rule goes, because
 * it is a card in a rail now.
 */
.rail__more {
  margin-top: var(--dd-space-5);
  padding: var(--dd-space-5);
  background: var(--dd-color-surface);
  border: 1px solid var(--dd-color-rule);
  border-radius: var(--dd-radius);
}

/*
 * One column on phone: the rail follows the commentary in source order, which
 * puts the exhibit after the article without a second reorder rule.
 */
@media (max-width: 899px) {
  .spread {
    grid-template-columns: 1fr;
  }

  .rail {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
}

/* The archive layout: home, category, tag and date all render through it. */
.archive-header {
  margin-bottom: var(--dd-space-6);
  padding-bottom: var(--dd-space-3);
  border-bottom: 2px solid var(--dd-color-ink);
}

.archive-title {
  margin: 0;
  font-family: var(--dd-font-serif);
  font-size: var(--dd-text-3xl);
  line-height: var(--dd-leading-tight);
}

.archive-description {
  margin: var(--dd-space-2) 0 0;
  color: var(--dd-color-ink-soft);
}

/*
 * The front page's own copy (Task 12, D-P9-10): what the site is and how a case
 * is chosen, above the docket. It reads as an editorial standfirst rather than
 * a card headline, so it is held to the article measure and set in words. It
 * reads only the tokens this stylesheet declares, per the palette rule.
 */
.home-intro {
  max-width: var(--dd-measure);
  margin-bottom: var(--dd-space-6);
  padding-bottom: var(--dd-space-5);
  border-bottom: 2px solid var(--dd-color-ink);
}

.home-intro__title {
  margin: 0;
  font-family: var(--dd-font-serif);
  font-size: var(--dd-text-3xl);
  line-height: var(--dd-leading-tight);
}

.home-intro__lede {
  margin: var(--dd-space-3) 0 0;
  font-size: var(--dd-text-lg);
  line-height: var(--dd-leading-snug);
}

.home-intro p {
  margin: var(--dd-space-3) 0 0;
}

/*
 * The vertical's own header (Task 9): its name, one line about what it covers
 * and how many cases are on file, so a reader landing on a category route from
 * a link knows what the vertical is before the first headline.
 */
.vertical-header {
  margin-bottom: var(--dd-space-6);
  padding-bottom: var(--dd-space-3);
  border-bottom: 2px solid var(--dd-color-ink);
}

.vertical-header__title {
  margin: 0;
  font-family: var(--dd-font-text);
  font-size: var(--dd-text-3xl);
  line-height: var(--dd-leading-tight);
}

.vertical-header__description {
  margin: var(--dd-space-2) 0 0;
  color: var(--dd-color-ink-soft);
}

.vertical-header__count {
  margin: var(--dd-space-1) 0 0;
  color: var(--dd-color-ink-soft);
  font-family: var(--dd-font-ui);
  font-size: var(--dd-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/*
 * The docket (Task 9): the archive as a page of editorial cards rather than a
 * list of excerpts. The two newest run wider as leads; the rest flow into a
 * grid. One card renderer feeds both, so the plate fallback a hero-less post
 * needs (D-P8-5) is owned in one place and the grid cannot drift from the
 * leads.
 */
.docket {
  display: grid;
  gap: var(--dd-space-7);
}

.docket__leads {
  display: grid;
  gap: var(--dd-space-6);
}

.docket__grid {
  display: grid;
  gap: var(--dd-space-6);
}

@media (min-width: 700px) {
  .docket__leads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docket__grid {
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  }
}

.card {
  border-top: 2px solid var(--dd-color-ink);
  padding-top: var(--dd-space-4);
}

.card__media {
  display: block;
  margin-bottom: var(--dd-space-4);
  text-decoration: none;
}

.card__media img {
  display: block;
  width: 100%;
  border-radius: var(--dd-radius);
}

.card__media:focus-visible {
  outline-offset: 4px;
}

.card__meta {
  margin: 0 0 var(--dd-space-2);
  color: var(--dd-color-ink-soft);
  font-family: var(--dd-font-ui);
  font-size: var(--dd-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card__vertical {
  color: var(--dd-color-accent);
}

.card__title {
  margin: 0;
  font-family: var(--dd-font-text);
  font-size: var(--dd-text-xl);
  line-height: var(--dd-leading-snug);
}

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

.card__title a:hover {
  color: var(--dd-color-ink-soft);
}

.card--lead .card__title {
  font-size: var(--dd-text-2xl);
}

.entry-title {
  margin: 0 0 var(--dd-space-3);
  font-family: var(--dd-font-serif);
  font-size: var(--dd-text-2xl);
  line-height: var(--dd-leading-snug);
}

.entry-title a {
  color: inherit;
  text-decoration: none;
}

.entry-title a:hover {
  color: var(--dd-color-ink-soft);
}

/* The single post. */
.entry-hero {
  display: block;
  margin: 0 0 var(--dd-space-5);
}

.entry-hero img {
  display: block;
  width: 100%;
  border-radius: var(--dd-radius-lg);
}

/*
 * The image credit. It sits directly under the photograph it describes, not
 * beside the source attribution at the foot of the article: a reader who wants
 * to know who took the picture should not have to finish the piece to find
 * out. The pipeline writes the stored `asset.credit_text` to the post meta this
 * element prints, so this is the same sentence the body used to carry and not a
 * second one assembled here.
 */
.entry-hero__credit {
  margin-top: var(--dd-space-2);
  color: var(--dd-color-ink-soft);
  font-size: var(--dd-text-sm);
}

/*
 * The plate. A page with no featured image opens on a deliberate surface
 * rather than a gap (D-P8-5): the exhibit's tinted ground and hairline rule,
 * the vertical in the accent, and the case beneath it. It occupies the block
 * the photograph would have, so the headline below it lands where a
 * photographed page's does and a missing image reads as a decision.
 */
.entry-plate {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--dd-space-2);
  min-height: 18rem;
  margin: 0 0 var(--dd-space-5);
  padding: var(--dd-space-5);
  background: var(--dd-color-exhibit);
  border: 1px solid var(--dd-color-rule);
  border-radius: var(--dd-radius-lg);
}

.entry-plate__vertical {
  color: var(--dd-color-accent);
  font-family: var(--dd-font-ui);
  font-size: var(--dd-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-plate__case {
  color: var(--dd-color-ink-soft);
  font-size: var(--dd-text-sm);
}

/*
 * The plate inside a card: the card is narrower than a post's hero block, so
 * the plate drops its full-article height and its own bottom margin and the
 * card's `card__media` owns the spacing.
 */
.card__media .entry-plate--card {
  min-height: 10rem;
  margin: 0;
}

.single .entry-title {
  font-size: var(--dd-text-3xl);
}

/*
 * A page (Task 12). The legal pages and the "what this is" page render through
 * page.php: their own title and body in the article measure, with none of the
 * archive furniture. The container rule is scoped under `.site-main` because
 * WordPress also puts `page` on the body (`<body class="... page ...">`), and
 * a bare `.page` clamp would narrow the whole document to the measure.
 */
.site-main .page {
  max-width: var(--dd-measure);
  margin: 0 auto;
}

.page__title {
  font-family: var(--dd-font-text);
  font-size: var(--dd-text-3xl);
  line-height: var(--dd-leading-tight);
  margin: 0 0 var(--dd-space-4);
}

/*
 * The author route (Task 10, D-P9-9). Phase 8 left `/author/<user>/` to the
 * archive layout; this is its own page: the persona, the disclosure and the bio
 * the operator set as the WordPress user's description. A plain linked list,
 * not the archive card, so the profile does not read as a second docket.
 */
.author-profile {
  max-width: var(--dd-measure);
  margin: 0 auto;
}

.author-profile__header {
  padding-bottom: var(--dd-space-4);
  border-bottom: 1px solid var(--dd-color-rule);
}

.author-profile__k {
  margin: 0 0 var(--dd-space-2);
  color: var(--dd-color-ink-soft);
  font-family: var(--dd-font-ui);
  font-size: var(--dd-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author-profile__name {
  margin: 0;
  font-family: var(--dd-font-text);
  font-size: var(--dd-text-3xl);
  line-height: var(--dd-leading-tight);
}

.author-profile__disclosure {
  margin: var(--dd-space-3) 0 0;
  color: var(--dd-color-ink-soft);
  font-size: var(--dd-text-sm);
}

.author-profile__bio {
  margin: var(--dd-space-5) 0;
}

.author-profile__pieces {
  margin-top: var(--dd-space-6);
  padding-top: var(--dd-space-5);
  border-top: 1px solid var(--dd-color-rule);
}

.author-profile__pieces-title {
  margin: 0 0 var(--dd-space-3);
  font-family: var(--dd-font-ui);
  font-size: var(--dd-text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.author-profile__item {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dd-space-2) var(--dd-space-3);
  padding: var(--dd-space-2) 0;
  border-bottom: 1px solid var(--dd-color-rule);
}

.author-profile__item time {
  color: var(--dd-color-ink-soft);
  font-size: var(--dd-text-sm);
}

/*
 * The dated editorial byline. The author is the site's editorial entity, never
 * an individual (D-P4-9), so the line reads as the publication signing its own
 * work rather than as a personal credit.
 */
.entry-byline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dd-space-2) var(--dd-space-3);
  margin: 0 0 var(--dd-space-5);
  color: var(--dd-color-ink-soft);
  font-size: var(--dd-text-sm);
}

.entry-byline__author {
  color: var(--dd-color-ink);
  font-weight: 700;
}

.entry-byline__date {
  color: var(--dd-color-ink-soft);
}

.entry-byline__reading {
  color: var(--dd-color-ink-soft);
}

/*
 * The pen-name disclosure travels with the byline (D-P9-5, Review Focus 5): a
 * reader who meets the pseudonym on a post meets the fact it is one on the same
 * line, not only on a trust page they did not open. `flex-basis: 100%` wraps it
 * under the name without reordering the line.
 */
.entry-byline__disclosure {
  flex-basis: 100%;
  color: var(--dd-color-ink-soft);
}

/*
 * The source disclosure. The commentary is the product; the source's own words
 * are demoted below it behind a native <details> whose summary names them. The
 * attribution paragraph stays outside, so closing the disclosure cannot hide
 * the credit.
 */
.source-disclosure {
  margin: var(--dd-space-5) 0;
  padding: var(--dd-space-4);
  border: 1px solid var(--dd-color-rule);
  border-radius: var(--dd-radius);
  background: var(--dd-color-paper);
}

.source-disclosure__summary {
  display: flex;
  align-items: center;
  gap: var(--dd-space-2);
  padding: var(--dd-space-3) var(--dd-space-4);
  background: var(--dd-color-paper);
  border-radius: var(--dd-radius);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.source-disclosure__summary::before {
  content: "§";
  color: var(--dd-color-ink-soft);
}

.source-disclosure__summary:focus-visible {
  outline: 2px solid var(--dd-color-ink);
  outline-offset: 2px;
}

.source-disclosure__body {
  margin-top: var(--dd-space-4);
}

/*
 * The post body carries third-party-derived text. One unbroken token — a long
 * permalink, a concatenated compound — would otherwise stretch the line box
 * past the viewport and scroll the whole page sideways on a phone. `anywhere`
 * breaks it and shrinks the intrinsic minimum width; the runbook's 390px probe
 * is the browser measurement this rule exists to satisfy.
 */
.entry-content {
  overflow-wrap: anywhere;
}

.entry-content p {
  margin: 0 0 var(--dd-space-4);
}

.entry-content iframe {
  max-width: 100%;
  border: 0;
}

/*
 * The verdict band (D-P8-3): a server-rendered question above the argument.
 * Every value comes from a token, and the one accent is spent here only on the
 * chosen answer — the single state a reader's action produces. The options are
 * a two-column grid so the four labels stay scannable and the band stays short,
 * which is what keeps the first word near the fold.
 */
.verdict-band {
  margin: 0 0 var(--dd-space-6);
  padding: var(--dd-space-5);
  background: var(--dd-color-exhibit);
  border: 1px solid var(--dd-color-rule);
  border-radius: var(--dd-radius);
}

.verdict-poll__heading {
  margin: 0 0 var(--dd-space-2);
  font-size: var(--dd-text-lg);
  line-height: var(--dd-leading-snug);
}

.verdict-poll__hint {
  margin: 0 0 var(--dd-space-4);
  color: var(--dd-color-ink-soft);
  font-family: var(--dd-font-ui);
  font-size: var(--dd-text-sm);
}

.verdict-poll__form {
  margin: 0;
}

.verdict-poll__fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--dd-space-2);
  margin: 0;
  padding: 0;
  border: 0;
}

.verdict-poll__legend {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  color: var(--dd-color-ink-soft);
  font-family: var(--dd-font-ui);
  font-size: var(--dd-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.verdict-poll__option {
  display: flex;
  align-items: center;
  gap: var(--dd-space-2);
  padding: var(--dd-space-3);
  background: var(--dd-color-surface);
  border: 1px solid var(--dd-color-rule);
  border-radius: var(--dd-radius);
  font-family: var(--dd-font-ui);
  font-size: var(--dd-text-sm);
  cursor: pointer;
}

.verdict-poll__option:hover {
  border-color: var(--dd-color-ink-soft);
}

.verdict-poll__option:has(input:checked) {
  border-color: var(--dd-color-accent);
}

.verdict-poll__option input {
  flex: none;
  margin: 0;
  accent-color: var(--dd-color-accent);
}

.verdict-poll__status {
  margin: var(--dd-space-3) 0 0;
  color: var(--dd-color-ink-soft);
  font-family: var(--dd-font-ui);
  font-size: var(--dd-text-sm);
}

/*
 * The source attribution. It names where the source's words came from; the
 * photograph's own credit sits under the hero, where the photograph is.
 */
.source-attribution {
  padding-top: var(--dd-space-4);
  border-top: 1px solid var(--dd-color-rule);
  color: var(--dd-color-ink-soft);
  font-size: var(--dd-text-sm);
}

.source-attribution a {
  color: var(--dd-color-link);
}

.pagination {
  margin-top: var(--dd-space-7);
  font-size: var(--dd-text-sm);
}

.pagination .nav-links {
  display: flex;
  gap: var(--dd-space-4);
}

/* The footer. */
.site-footer {
  border-top: 1px solid var(--dd-color-rule);
  background: var(--dd-color-paper);
}

.site-footer__inner {
  max-width: var(--dd-page);
  margin: 0 auto;
  padding: var(--dd-space-5);
  color: var(--dd-color-ink-soft);
  font-size: var(--dd-text-sm);
}

.site-footer p {
  margin: 0 0 var(--dd-space-2);
}

.site-footer__brand {
  color: var(--dd-color-ink);
  font-weight: 700;
}

.site-footer__legal {
  margin-bottom: 0;
}

/*
 * The legal row. The links are in the template, not a menu, so the policies a
 * publisher review looks for are reachable from every page even on a fresh
 * install. The row reuses the palette and spacing tokens and adds no colour.
 */
.site-footer__links {
  margin: var(--dd-space-3) 0 0;
}

.site-footer__links-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dd-space-2) var(--dd-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__link {
  color: var(--dd-color-link);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/*
 * The reader's next step (R3, D-P4-6). The pipeline freezes the neighbour
 * slugs at publish time and `single.php` places the block after the in-article
 * ad; the theme styles it and never queries for it. A vertical with fewer than
 * three neighbours renders the same block carrying a "not applicable" note
 * rather than an empty container, so a finished reader always sees a next step.
 */
.related-posts {
  margin-top: var(--dd-space-7);
  padding-top: var(--dd-space-5);
  border-top: 2px solid var(--dd-color-ink);
}

.related-posts__heading {
  margin: 0 0 var(--dd-space-4);
  font-family: var(--dd-font-serif);
  font-size: var(--dd-text-xl);
  line-height: var(--dd-leading-snug);
}

.related-posts__list {
  margin: 0;
  padding-left: var(--dd-space-5);
}

.related-posts__item {
  margin-bottom: var(--dd-space-2);
}

.related-posts__link {
  color: var(--dd-color-link);
  font-weight: 700;
}

.related-posts__link:hover {
  color: var(--dd-color-link-hover);
}

.related-posts__note {
  margin: 0;
  color: var(--dd-color-ink-soft);
}

/*
 * In the rail the composed block is a card under the exhibit, not a full-width
 * section: the heading and list stay, the heavy top rule goes. This sits after
 * the base rule so the lower-specificity `.related-posts` never follows the
 * higher-specificity override (lint/style/noDescendingSpecificity).
 */
.rail__more .related-posts {
  margin: 0;
  padding: 0;
  border-top: 0;
}

/*
 * The first screen carries words (Task 17). The identity render put the first
 * body word at 754px because its article column had no verdict band; the band
 * folded into that column on a live page pushed the first sentence to 1064px on
 * a 900px screen. These rules spend the band's height down and cap the hero, so
 * the words arrive before the fold at both viewports.
 */

/* The band: 12px of padding and a 2×2 grid whose cells hold one line each, so
   the block is ~150px instead of 252 on desktop and ~200 instead of 349 on
   phone. */
.verdict-poll {
  padding: var(--dd-space-4) var(--dd-space-4) var(--dd-space-4);
}

.verdict-poll__hint {
  display: none; /* the copy is a TODO-able second line, not a cost */
}

.verdict-poll__option {
  padding: var(--dd-space-2) 0;
  font-size: var(--dd-text-sm);
}

/* The hero: 16/9 at the measure, which is 338px at 600px wide. */
.entry-hero img {
  aspect-ratio: 16 / 9;
  max-height: 20rem;
}

/* The nav is one row on a phone: three short labels fit in 342px. */
@media (max-width: 899px) {
  .site-nav__list {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .site-nav__link .full {
    display: none;
  }

  .site-nav__link .short {
    display: inline;
  }
}
