/* ==========================================================================
   Global Pulse Daily — front end
   Ported from the approved design canvas. Colours, fonts and the container
   width come from CSS custom properties written by Settings → Appearance,
   so the admin can retheme the site without touching this file.
   ========================================================================== */

:root {
  --accent: #D7263D;
  --ink: #0F0F10;
  --body: #5B5B63;
  --faint: #8A8A92;
  --rule: #E4E4E7;
  --rule-strong: #D4D4D8;
  --rule-soft: #EEEEF0;
  --surface: #ffffff;
  --surface-muted: #F4F4F5;
  --surface-dark: #0F0F10;
  --numeral: #C4C4CA;
  --footer-text: #C9C9CF;
  --footer-faint: #A1A1AA;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1320px;
  --gutter: 24px;
  --shadow-card: 0 10px 30px rgba(15, 15, 16, 0.06);
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: #7A7A82; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; }

.wrap {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  transition: top .15s ease;
}
.skip-link:focus { top: 16px; color: #fff; }

/* ============================ shared bits ============================ */

.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 4px 8px;
  vertical-align: 2px;
}
.badge--inline { margin-right: 6px; font-family: var(--font-body); padding: 3px 6px; }
.badge--lg { font-size: 11px; padding: 5px 9px; }

.meta {
  font-size: 12px;
  color: var(--body);
}

.dateline {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { color: #fff; filter: brightness(0.93); }
.btn--ink { background: var(--ink); }
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { color: var(--ink); background: var(--surface-muted); }

.icon { flex: 0 0 auto; }

/* ============================== header =============================== */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 18px;

  /* The type-ahead list hangs from the bottom of the masthead. */
  position: relative;
}

.site-header__left,
.site-header__right {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.site-header__right { justify-content: flex-end; gap: 22px; }

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.header-btn--menu {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  /* Two words, one line: the label is a name, not a sentence to wrap. */
  white-space: nowrap;
}

.logo {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--accent);
}
.logo__mark { margin-top: 10px; }
.logo__word {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.logo__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  background: var(--ink);
  color: #fff;
  padding: 5px 7px 4px;
  border-radius: 3px;
  margin-top: 2px;
}
.logo__image { max-height: 56px; width: auto; }
.logo:hover { color: var(--accent); }

/* --- the mark beats ---
   A drawing animation reads as a broken line at 40px, so the mark instead
   keeps its full shape and beats: a quick double thump, then a rest, the
   rhythm of an actual heartbeat. */

.logo__mark {
  transform-origin: center;
  animation: pulse-beat 2.8s cubic-bezier(.4, 0, .25, 1) infinite;
  will-change: transform;
}

@keyframes pulse-beat {
  0%   { transform: scale(1); }
  7%   { transform: scale(1.11); }
  14%  { transform: scale(1); }
  21%  { transform: scale(1.07); }
  30%  { transform: scale(1); }
  100% { transform: scale(1); }
}

.site-footer__brand .logo__mark { animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .logo__mark { animation: none; }
}

/* section nav */

.section-nav {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
/* One row for both: the sections take the width their labels need and the
   live strip takes what is left. What stops fitting is moved under "More"
   by the script, rather than wrapping the bar onto a second line. */
.section-nav__row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 48px;
}
.section-nav__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 0 1 auto;
  min-width: 0;
  /* Clipped rather than allowed to push the strip off the row in the moment
     before the script has sorted the overflow out. */
  overflow: hidden;
}
.section-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.section-nav__link[aria-current="page"] {
  box-shadow: inset 0 -3px 0 0 var(--accent);
}

/* --- the sections that did not fit --- */

.section-nav__overflow {
  position: relative;
  flex: 0 0 auto;
}
.section-nav__more {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
  gap: 5px;
}
.section-nav__more:hover { color: var(--ink); }
.section-nav__more svg { transition: transform .15s ease; }
.section-nav__overflow[data-open="true"] .section-nav__more { color: var(--ink); }
.section-nav__overflow[data-open="true"] .section-nav__more svg { transform: rotate(180deg); }

.section-nav__drop {
  position: absolute;
  top: calc(100% - 5px);
  right: 0;
  z-index: 40;
  display: none;
  min-width: 210px;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 20px 44px rgba(15, 15, 16, .16);
}
.section-nav__overflow[data-open="true"] .section-nav__drop { display: block; }
.section-nav__drop .section-nav__link {
  min-height: 42px;
  width: 100%;
  padding: 0 12px;
  border-radius: 4px;
}
.section-nav__drop .section-nav__link:hover { background: var(--surface-muted); }
/* The underline marks the section you are in on a bar; in a list it just
   draws a line under one row. */
.section-nav__drop .section-nav__link[aria-current="page"] {
  box-shadow: none;
  color: var(--accent);
}
.section-nav__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* mobile drawer */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}
.drawer[data-open="true"] { display: block; }
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.55);
  border: 0;
  width: 100%;
  cursor: pointer;
}
.drawer__panel {
  position: absolute;
  /* On the right, under the thumb and under the MENU button that opened
     it. A panel that flies in from the far side makes the eye travel the
     width of the screen to find what it just asked for. */
  inset: 0 0 0 auto;
  width: min(360px, 88vw);
  background: var(--surface);
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: -20px 0 44px rgba(15, 15, 16, .14);
  animation: drawer-in .22s cubic-bezier(.22, .61, .36, 1);
}

@keyframes drawer-in {
  from { transform: translateX(26px); opacity: .5; }
  to   { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .drawer__panel { animation: none; }
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 8px;
}
.drawer__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.drawer__close {
  width: 44px; height: 44px;
  border: 0; background: transparent;
  cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.drawer__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--rule-soft);
}

/* ---- the search bar in the masthead ----
   A field rather than a button, so the space between it and the clock is
   the search itself instead of nothing. It submits without JavaScript;
   the type-ahead below is the enhancement. */

.masthead-search {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 460px;
  height: 42px;
  padding-right: 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--surface-muted);
  transition: border-color .15s ease, background-color .15s ease;
}
.masthead-search:focus-within {
  border-color: var(--accent);
  background: var(--surface);
}

.masthead-search__go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--body);
  cursor: pointer;
}
.masthead-search__go:hover { color: var(--accent); }

.masthead-search__input {
  /* Basis zero, so the field takes the room that is left rather than
     asking for the twenty characters a text input wants by default. */
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  /* 16px keeps iOS from zooming the page when the field is tapped. */
  font-size: 16px;
  color: var(--ink);
}
.masthead-search__input:focus { outline: none; }

/* Between a phone and a wide desktop the logo and the clock need the room
   more than the field does, so the bar gives way rather than pushing them
   onto a second line. The phone rules further down take over below 760px. */
@media (max-width: 1000px) {
  .masthead-search { max-width: 220px; }
}
.masthead-search__input::placeholder { color: var(--body); opacity: .8; }

/* The browser's own clear button, which Safari and Chrome draw differently. */
.masthead-search__input::-webkit-search-cancel-button { cursor: pointer; }

/* ---- type-ahead suggestions ---- */

.search-suggest {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: calc(100% - 4px);
  z-index: 50;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  box-shadow: 0 18px 44px rgba(15, 15, 16, 0.16);
  overflow: hidden;
  display: none;
}
.search-suggest[data-open="true"] { display: block; }

.search-suggest__item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule-soft);
}
.search-suggest__item:last-child { border-bottom: 0; }
.search-suggest__item:hover,
.search-suggest__item.is-active {
  background: var(--surface-muted);
  color: inherit;
}
.search-suggest__item.is-active { box-shadow: inset 3px 0 0 var(--accent); }

.search-suggest__thumb {
  flex: 0 0 56px;
  width: 56px; height: 42px;
  overflow: hidden;
  background: var(--surface-muted);
  border-radius: 3px;
}
.search-suggest__thumb img { width: 100%; height: 100%; object-fit: cover; }

.search-suggest__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.search-suggest__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.search-suggest__title mark {
  background: transparent;
  color: var(--accent);
  font-weight: 800;
}
.search-suggest__meta { font-size: 11.5px; color: var(--body); }

.search-suggest__all {
  display: block;
  padding: 11px 16px;
  background: var(--surface-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.search-suggest__all.is-active { box-shadow: inset 3px 0 0 var(--accent); }

.search-suggest__empty {
  padding: 16px;
  font-size: 14px;
  color: var(--body);
}

/* =============================== ticker =============================== */

.ticker { background: var(--surface-muted); }
.ticker__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.ticker__nav {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.ticker__nav:disabled { opacity: .35; cursor: default; }
.ticker__track {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px;
  overflow: hidden;
}
.ticker__item { display: flex; flex-direction: column; gap: 6px; }
.ticker__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

/* =============================== cards =============================== */

.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card__media {
  display: block;
  overflow: hidden;
  background: var(--surface-muted);
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }

/* An article with no picture still occupies its slot, so a row of cards keeps
   one baseline instead of one card riding up where an image is missing. */
.card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, var(--surface-muted) 0%, var(--surface-muted) 50%, #EDEDF0 50%, #EDEDF0 100%);
  background-size: 14px 14px;
  color: var(--accent);
}
.card__media--empty svg { opacity: .2; }

.card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}
.card__excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}

/* hero */

.hero {
  position: relative;
  overflow: hidden;
  background: #16213A;
  min-height: 500px;
  display: block;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,12,0.92) 0%, rgba(10,10,12,0.45) 50%, rgba(10,10,12,0) 100%);
}
.hero__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  color: #fff;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero__title a { color: #fff; }
.hero__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero__dek {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #E6E6EA;
  max-width: 56ch;
}
.hero__meta { font-size: 12px; color: #C9C9CF; }

/* tall overlay tile (Breaking grid, category lead) */

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #123F45;
  color: #fff;
  aspect-ratio: 4 / 5;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,12,0.9) 0%, rgba(10,10,12,0.35) 55%, rgba(10,10,12,0) 100%);
}
.tile__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.tile__title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}
.tile--short { aspect-ratio: auto; min-height: 218px; }
.tile--short .tile__title { font-size: 19px; line-height: 1.25; }
.tile:hover { color: #fff; }

/* text + thumb row */

.row-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.row-card__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.row-card__thumb {
  flex: 0 0 96px;
  width: 96px; height: 80px;
  overflow: hidden;
  background: var(--surface-muted);
}
.row-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* small horizontal item (section columns) */

.mini {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.mini__thumb {
  flex: 0 0 80px;
  width: 80px; height: 80px;
  overflow: hidden;
  background: var(--surface-muted);
}
.mini__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

/* list card (archive / category list) */

.list-card {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.list-card__media {
  flex: 1 1 200px;
  max-width: 260px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-muted);
}
.list-card__media img { width: 100%; height: 100%; object-fit: cover; }
.list-card__body {
  flex: 3 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.list-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.card__byline { font-size: 12.5px; color: var(--body); }

.kicker--sponsored {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
}

/* ============================ banners ============================ */

.ad { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.ad__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.ad__body { width: 100%; display: flex; justify-content: center; }
.ad__body img { max-width: 100%; height: auto; }
.ad__link { display: block; max-width: 100%; }

.ad--header, .ad--home_mid, .ad--footer { padding: 26px var(--gutter); }
.ad--home_mid { background: var(--surface-muted); margin-top: 8px; }
.ad--article_top, .ad--article_inline, .ad--article_bottom { margin: 26px 0; }
.ad--sidebar { margin-top: 4px; }

/* ============================ editor's picks ============================ */

.picks { padding: 52px 0 10px; }
.picks__inner { display: flex; flex-direction: column; gap: 26px; }
.picks__head { display: flex; flex-direction: column; gap: 6px; }
.picks__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.picks__sub { margin: 0; font-size: 15px; color: var(--body); }

.picks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 28px;
  align-items: start;
}
.picks__grid .card__media { aspect-ratio: 16 / 10; }
.picks__grid .card__title {
  font-size: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================ section showcase ============================ */

.showcase { padding: 52px 0 16px; }
.showcase__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.showcase__grid {
  display: grid;
  grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.showcase__rail {
  --rail: var(--surface-muted);
  background: var(--rail);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.showcase__blurb { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
.showcase__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  align-self: stretch;
}
.showcase__all:hover { background: var(--ink); color: #fff; }

.showcase__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.showcase__list li { padding: 12px 0; border-top: 1px dotted var(--rule-strong); }
.showcase__list li:first-child { border-top: 0; padding-top: 4px; }
.showcase__list a { font-size: 14.5px; font-weight: 700; line-height: 1.4; }

.showcase__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.showcase__lead { min-height: 330px; border-radius: 10px; }
.showcase__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 16px;
  align-items: start;
}
.showcase__cards .card__media { border-radius: 6px; }
.showcase__cards .card__title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .showcase__grid { grid-template-columns: 1fr; }
  .showcase__rail { flex-direction: column; }
  .picks__title, .showcase__title { font-size: 30px; }
  .showcase__lead { min-height: 240px; }
}

/* ============================ section heads ============================ */

.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
}
.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-head__bar { width: 36px; height: 4px; background: var(--accent); flex: 0 0 auto; }
.section-head__more {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  white-space: nowrap;
}
.section-head__note { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--body); }

.display-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* =============================== home =============================== */

.home-main {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding-top: 40px;
  padding-bottom: 48px;
}
.home-main__fresh { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
/* The lead stretches to the row so the three columns end on one line, but
   only so far: anything booked into the sidebar slot makes that column much
   taller, and the hero picture would follow it into a narrow strip. */
.home-main__lead { flex: 3 1 560px; min-width: 0; display: flex; flex-wrap: wrap; gap: 20px; max-height: 680px; }
.home-main__popular { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; }

.home-main__lead .hero { flex: 2 1 380px; min-width: 0; }
.home-main__lead-side { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

/* The two side cards divide the hero's height between them, so the lead block
   ends on one line instead of leaving a ragged gap under the shorter column. */
.home-main__lead-side .card { flex: 1 1 0; min-height: 0; }
/* When the cards are short it is the picture that gives way; a clamped
   headline would otherwise shrink too and lose the bottom of its last line. */
.home-main__lead-side .card > :not(.card__media) { flex-shrink: 0; }
.home-main__lead-side .card__media {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 120px;
}
.home-main__lead-side .card__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fresh-note {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ink);
}
.fresh-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fresh-item:first-of-type { border-top: 1px solid var(--rule); }
.fresh-item__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.popular-box {
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 6px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.popular-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.popular-item:last-child { border-bottom: 0; }
.popular-item__num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--numeral);
  flex: 0 0 34px;
}
.popular-item__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.popular-item__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

/* newsletter strip */

.newsletter-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.newsletter-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.newsletter-strip__label {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.newsletter-strip__pitch {
  flex: 1 1 280px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.subscribe-form { display: flex; gap: 8px; min-width: 0; flex: 1 1 320px; }
.subscribe-form input[type="email"] {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
}
.subscribe-form button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.social-row { flex: 0 0 auto; display: flex; gap: 4px; color: var(--accent); }
.social-row a {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* breaking band */

.breaking {
  background: var(--surface-muted);
  margin-top: 32px;
  padding-bottom: 44px;
}
.breaking__inner { padding-top: 44px; position: relative; }
.breaking__label {
  position: absolute;
  top: -20px; left: 40px;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  background: var(--accent);
  color: #fff;
  padding: 11px 22px 10px;
  box-shadow: 0 8px 20px rgba(15, 15, 16, 0.22);
}
.breaking__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 20px;
}
.breaking__rows {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px 32px;
}

/* two section columns */

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 24px;
}
.column { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.column__lead { display: flex; flex-direction: column; gap: 12px; }
.column__lead .card__media { aspect-ratio: 16 / 9; }
.column__lead-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ============================== article ============================== */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--body);
  list-style: none;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

/* ---- split masthead: picture on one side, headline on the other ---- */

.article-crumbs { padding: 18px 0 14px; }

/* Boxed, like the rest of the page, rather than bleeding to the window edge. */
.masthead-shell { padding-bottom: 8px; }

.masthead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(15, 15, 16, .10);
}
.masthead--no-image { grid-template-columns: 1fr; }

.masthead__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--surface-muted);
}
.masthead__media img { width: 100%; height: 100%; object-fit: cover; }

.masthead__credit {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 16px;
  background: linear-gradient(to top, rgba(10,10,12,.78), rgba(10,10,12,0));
  color: #E8E8ED;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.masthead__panel {
  --panel: var(--surface-dark);
  background: var(--panel);
  color: #fff;
  padding: 44px 56px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.masthead__top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.masthead__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.masthead__kicker:hover { color: #fff; opacity: .78; }
.masthead__kicker--sponsored {
  background: #fff;
  color: var(--ink);
  padding: 5px 9px;
  border-radius: 3px;
  letter-spacing: .1em;
}

.masthead__share { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.masthead__share a,
.masthead__share button {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  cursor: pointer;
  border-radius: 50%;
}
.masthead__share a:hover,
.masthead__share button:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.masthead__title {
  margin: auto 0 0;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #fff;
  max-width: 20ch;
}

.masthead__dek {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
  max-width: 48ch;
}

.masthead__sponsor { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .8); }
.masthead__sponsor a { color: #fff; text-decoration: underline; }

.masthead__byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}
.masthead__avatar {
  flex: 0 0 34px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
}
.masthead__avatar img { width: 100%; height: 100%; object-fit: cover; }
.masthead__meta {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.masthead__meta a { color: #fff; font-weight: 700; }
.masthead__meta a:hover { color: #fff; text-decoration: underline; }
.masthead__dot { opacity: .55; }

@media (max-width: 1000px) {
  .masthead { grid-template-columns: 1fr; min-height: 0; }
  .masthead__media { aspect-ratio: 16 / 9; }
  .masthead__panel { padding: 30px 28px 28px; gap: 16px; }
  .masthead__title { font-size: 34px; max-width: none; }
  .masthead__dek { font-size: 16px; }
}

@media (max-width: 560px) {
  /* Edge to edge on a phone: a rounded box wastes the little width there is. */
  .masthead-shell { padding-left: 0; padding-right: 0; }
  .masthead { border-radius: 0; box-shadow: none; }
  .masthead__panel { padding: 24px 16px 22px; }
  .masthead__title { font-size: 28px; }
  .masthead__share { gap: 0; }
  .masthead__share a, .masthead__share button { width: 34px; height: 34px; }
}

.article-head { padding-top: 28px; }
.article-head__inner {
  max-width: 920px;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.article-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.article-dek {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--body);
  max-width: 60ch;
}

.byline-bar {
  margin-top: 26px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.byline { display: flex; align-items: center; gap: 14px; }
.byline__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  overflow: hidden;
  font-weight: 700;
  font-size: 15px;
}
.byline__avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline__text { display: flex; flex-direction: column; gap: 3px; }
.byline__name { font-size: 14px; font-weight: 700; }
.byline__meta { font-size: 12px; color: var(--body); }

.share { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.share__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body);
  margin-right: 6px;
}
.share__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.share__btn:hover { border-color: var(--accent); color: var(--accent); }

.article-figure { margin: 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.article-figure__frame { aspect-ratio: 21 / 9; overflow: hidden; background: var(--surface-muted); }
.article-figure__frame img { width: 100%; height: 100%; object-fit: cover; }
.article-figure figcaption,
.caption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
}
.caption__credit { color: var(--faint); }

.article-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  padding-top: 40px;
  padding-bottom: 56px;
  align-items: flex-start;
  /* The prose is capped for readability, so the leftover width goes into the
     gap and the sidebar finishes flush with the masthead above it. */
  justify-content: space-between;
}

/* ---- reading progress ---- */

.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 55;
  background: transparent;
  pointer-events: none;
}
.read-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transform-origin: left center;
  transition: width .08s linear;
}

.read-time {
  position: fixed;
  top: 14px; right: 18px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(15, 15, 16, .9);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(15, 15, 16, .22);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.read-time[data-visible="true"] { opacity: 1; transform: translateY(0); }
.read-time svg { opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  .read-progress__fill, .read-time { transition: none; }
}

/* The article column: the piece itself, then the author, the comments and
   the neighbours. They used to sit inside the prose, whose rules style
   every list in there and would have indented the comment thread. */
.article-main {
  flex: 1 1 560px;
  min-width: 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.article-main > .prose { flex: 0 1 auto; max-width: none; }

.prose {
  flex: 1 1 560px;
  min-width: 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 18px;
  line-height: 1.7;
}
.prose > p { margin: 0; }
.prose > h2 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.prose > h3 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
}
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 10px; }
.prose li { line-height: 1.65; }
.prose img { width: 100%; height: auto; }
.prose figure { margin: 8px 0; display: flex; flex-direction: column; gap: 10px; }

/* ---- in-article image size and alignment ----
   Set from the editor as classes rather than inline styles, so the stored
   HTML stays clean and the published page controls the final rendering. */

.prose figure.w-25  { width: 25%; }
.prose figure.w-33  { width: 33.333%; }
.prose figure.w-50  { width: 50%; }
.prose figure.w-75  { width: 75%; }
.prose figure.w-100 { width: 100%; }

.prose figure.align-center { margin-left: auto; margin-right: auto; }

.prose figure.align-left {
  float: left;
  margin: .3em 1.8em .9em 0;
  max-width: 50%;
}
.prose figure.align-right {
  float: right;
  margin: .3em 0 .9em 1.8em;
  max-width: 50%;
}

/* A floated image must not bleed past the end of the article. */
.prose::after { content: ""; display: block; clear: both; }
.prose > h2, .prose > h3 { clear: both; }
.prose blockquote {
  margin: 16px 0;
  padding: 28px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prose blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.prose blockquote::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.6;
  font-weight: 900;
  color: var(--accent);
}
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; }
.prose th { font-weight: 700; background: var(--surface-muted); }
.prose pre {
  margin: 0;
  padding: 18px;
  background: var(--surface-muted);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
}
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 8px 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }

.prose--dropcap > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 78px;
  line-height: 0.8;
  font-weight: 800;
  padding: 10px 12px 0 0;
  color: var(--accent);
}

/* AEO blocks */

.aeo-answer {
  padding: 22px 24px;
  background: var(--surface-muted);
  border-left: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 17px;
  line-height: 1.6;
}
.aeo-answer__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.aeo-answer p { margin: 0; }

/* ---- table of contents ---- */

.toc {
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
}
.toc[open] { border-color: var(--accent); }

.toc__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  min-height: 54px;
}
.toc__summary::-webkit-details-marker { display: none; }
.toc__summary:hover { background: var(--surface-muted); }
.toc__icon { display: inline-flex; flex: 0 0 auto; }
.toc__label { flex: 0 1 auto; }
.toc__count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
  text-transform: none;
  letter-spacing: 0;
}
.toc__chevron {
  flex: 0 0 auto;
  display: inline-flex;
  transition: transform .18s ease;
  color: var(--accent);
}
.toc[open] .toc__chevron { transform: rotate(90deg); }

.toc__list {
  list-style: none;
  margin: 0;
  padding: 4px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--rule);
}
.toc__list a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 9px 4px;
  font-size: 15.5px;
  line-height: 1.45;
  border-radius: 4px;
}
.toc__list a:hover { background: var(--surface-muted); color: var(--accent); }
.toc__n {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--numeral);
}

@media (prefers-reduced-motion: reduce) {
  .toc__chevron { transition: none; }
}

/* Jumping to a heading must not tuck it under the progress bar. */
.prose > h2[id], .prose > h3[id] { scroll-margin-top: 24px; }

.takeaways {
  padding: 24px;
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.takeaways__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body);
}
.takeaways ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }

.faq { display: flex; flex-direction: column; gap: 0; }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item:first-child { border-top: 1px solid var(--rule); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.faq__icon { flex: 0 0 auto; transition: transform .18s ease; }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 0 18px; font-size: 16px; line-height: 1.65; color: var(--body); }
.faq__a[hidden] { display: none; }

.citations { display: flex; flex-direction: column; gap: 10px; }
.citations ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.citations a { word-break: break-word; }

.topics { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.topics__label {
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--body);
  margin-right: 6px;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill--active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill--active:hover { color: #fff; }

.author-box {
  margin-top: 24px;
  padding: 24px;
  background: var(--surface-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.author-box__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
  overflow: hidden;
  font-weight: 700;
}
.author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box__body {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 1.6;
}
.author-box__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body);
}
.author-box__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}
.author-box p { margin: 0; color: var(--body); }

.neighbours {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.neighbours__item { display: flex; flex-direction: column; gap: 6px; }
.neighbours__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.neighbours__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

/* sidebar */

.sidebar {
  flex: 0 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* The column itself does not travel any more — one block inside it does.
   
   Pinning the whole sidebar meant capping its height to the window and
   giving it its own scrollbar, so reaching the end of it was a second
   scroll inside the first. Instead the column is left as tall as the
   article beside it, everything in it is reached by scrolling the page
   normally, and the last block holds at the top once the reader passes it.
   The height is what gives that block somewhere to travel: a column only as
   tall as its contents has no room below the last thing in it. */
@media (min-width: 1101px) {
  .article-layout .sidebar,
  .archive-layout .sidebar {
    align-self: stretch;
  }

  .article-layout .sidebar > :last-child,
  .archive-layout .sidebar > :last-child {
    position: sticky;
    top: 24px;
  }
}
.sidebar__block { display: flex; flex-direction: column; }
.sidebar__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.sidebar__bar { width: 36px; height: 4px; background: var(--accent); margin-bottom: 8px; }

.promo {
  padding: 24px;
  background: var(--surface-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.promo__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.promo__pitch {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
.promo form { display: flex; flex-direction: column; gap: 8px; }
.promo input[type="email"] {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #3A3A40;
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  width: 100%;
}
.promo button {
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.ad-slot { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ad-slot__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.ad-slot__box {
  width: 100%;
  max-width: 300px;
  min-height: 250px;
  border: 1px dashed var(--numeral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--faint);
}

/* ============================== comments ============================== */

.comments { border-top: 1px solid var(--rule); padding: 44px 0 10px; }
.comments__inner { max-width: 820px; display: flex; flex-direction: column; gap: 26px; }
.comments__empty, .comments__closed { margin: 0; color: var(--body); font-size: 15px; }

.comment-form { display: flex; flex-direction: column; gap: 14px; }
.comment-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px;
}
.comment-form .field { display: flex; flex-direction: column; gap: 6px; }
.comment-form label { font-size: 13px; font-weight: 600; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  background: var(--surface);
  color: var(--ink);
}
.comment-form textarea { min-height: 112px; resize: vertical; line-height: 1.6; }
.comment-form input:focus, .comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(215, 38, 61, .12);
}
.field-note { font-size: 12px; color: var(--faint); }

.comment-form__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.comment-form__rule { font-size: 12.5px; color: var(--faint); max-width: 44ch; }

.comment-form__replying {
  margin: 0;
  padding: 10px 14px;
  background: var(--surface-muted);
  border-left: 3px solid var(--accent);
  font-size: 13.5px;
}
.comment-form__replying button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 8px;
}

/* The trap must be unreachable by people but present for bots. */
.comment-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.comment-list, .comment__replies { list-style: none; margin: 0; padding: 0; }
.comment-list { display: flex; flex-direction: column; }

.comment { padding: 20px 0; border-top: 1px solid var(--rule); }
.comment--reply { padding-bottom: 0; border-top: 1px solid var(--rule-soft); }
.comment__replies { margin-top: 14px; padding-left: 26px; border-left: 2px solid var(--rule); }

.comment__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment__avatar {
  flex: 0 0 38px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.comment__who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.comment__name { font-size: 14px; font-weight: 700; }
.comment__time { font-size: 12px; color: var(--faint); }
.comment__reply {
  margin-left: auto;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  min-height: 44px;
  padding: 0 4px;
}
.comment__body { font-size: 15.5px; line-height: 1.65; color: var(--ink); overflow-wrap: break-word; }

/* related */

.related { background: var(--surface-muted); padding: 44px 0 52px; }
.related__inner { display: flex; flex-direction: column; gap: 24px; }
.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 28px;
  align-items: start;
}
.related__grid .card__title { font-size: 20px; }

/* Cards sitting side by side clamp their headline so the dates below them
   line up across the row. */
.related__grid .card__title,
.breaking__rows .row-card__title,
.columns .mini__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.breaking__rows .row-card { align-items: stretch; }
.breaking__rows .row-card__text { justify-content: space-between; }

/* ====================== category / archive headers ====================== */

.archive-head { background: var(--surface-muted); }
.archive-head__inner {
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.archive-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.archive-head__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.archive-head__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.archive-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.archive-head__dek {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  max-width: 62ch;
}
.archive-head__pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 24px; }
.archive-head__pills .pill { min-height: 40px; background: var(--surface); }
.archive-head__pills .pill--active { background: var(--ink); }

.category-lead {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 36px;
}
.category-lead__hero { flex: 2 1 480px; min-width: 0; min-height: 460px; }
.category-lead__side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.category-lead__side .tile { flex: 1 1 0; }

.archive-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 56px;
}
.archive-layout__main { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; }

/* pagination */

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 32px;
}
.pagination a,
.pagination span {
  min-width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  padding: 0 10px;
}
.pagination [aria-current="page"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  font-weight: 700;
}
.pagination .is-gap { border: 0; color: var(--faint); min-width: 32px; }
.pagination .is-disabled { color: var(--faint); opacity: .5; pointer-events: none; }

/* ============================== misc pages ============================== */

.static-page { padding-top: 40px; padding-bottom: 64px; max-width: 820px; }
.static-page__title {
  margin: 24px 0 24px;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.empty-state {
  padding: 56px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.empty-state__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
}
.empty-state p { margin: 0; color: var(--body); max-width: 56ch; }

.error-page {
  padding: 80px 0 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.error-page__code {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
}
.error-page__title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
}

.preview-bar {
  background: #8A4B00;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.preview-bar__inner { padding: 12px 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.preview-bar a { color: #fff; text-decoration: underline; }

.flash-stack {
  position: fixed;
  bottom: 20px; left: 20px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(420px, calc(100vw - 40px));
}
.flash {
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 15, 16, 0.22);
  background: var(--ink);
}
.flash--success { background: #0F6B45; }
.flash--error { background: #A81B2C; }
.flash--warning { background: #8A4B00; }

/* search */

.search-hero { padding-top: 32px; }
.search-hero__form { display: flex; gap: 8px; max-width: 640px; margin-top: 20px; }
.search-hero__form input {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  font: inherit;
  font-size: 16px;
}

/* =============================== footer =============================== */

.site-footer {
  margin-top: auto;
  background: var(--surface-dark);
  color: var(--footer-text);
}
.site-footer__inner {
  padding-top: 52px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.site-footer__brand {
  flex: 2 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-footer__brand .logo { color: #fff; }
.site-footer__brand .logo__word { font-size: 38px; color: #fff; font-style: italic; }
.site-footer__brand .logo__mark { margin-top: 6px; color: var(--accent); }
.site-footer__brand .logo__badge { background: #fff; color: var(--ink); font-size: 9px; padding: 4px 6px 3px; }
.site-footer__about { margin: 0; font-size: 14px; line-height: 1.6; max-width: 42ch; }
.site-footer__domain { font-size: 13px; font-weight: 600; color: #fff; }
.site-footer nav { flex: 1 1 150px; display: flex; flex-direction: column; gap: 10px; }
.site-footer nav h3 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer nav a { font-size: 14px; }
.site-footer nav a:hover { color: #fff; }
.site-footer__bar { border-top: 1px solid #2A2A2E; }
.site-footer__bar-inner {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--footer-faint);
}

/* ============================== responsive ============================== */

@media (max-width: 1100px) {
  .home-main { gap: 28px; }
  .home-main__fresh,
  .home-main__popular { flex: 1 1 300px; }
  .article-layout, .archive-layout { gap: 40px; }
}

@media (max-width: 900px) {
  .logo__word { font-size: 42px; }
  .logo__mark { width: 32px; height: 32px; margin-top: 7px; }
  .article-title { font-size: 38px; }
  .archive-title { font-size: 42px; }
  .hero__title { font-size: 32px; }
  .hero { min-height: 420px; }
  .category-lead__hero { min-height: 380px; }
  .prose { font-size: 17px; }
  .prose > h2 { font-size: 26px; }
  .prose blockquote p { font-size: 24px; }
  .ticker__track { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }

  .site-header { padding-top: 16px; padding-bottom: 14px; }
  /* The bar takes the space between itself and the clock, which is what
     was empty before. While it has focus the clock and MENU step aside so
     there is a whole row to type in; without :has() it simply stays put. */
  .site-header__left { flex: 1 1 0; min-width: 0; gap: 10px; }
  .site-header__right { flex: 0 0 auto; gap: 8px; }
  .site-header__right .header-link { display: none; }

  /* Below about 360px the clock and MENU no longer leave room for a
     usable field, so the bar holds its ground and they take the next
     line rather than the bar shrinking to an icon. */
  .masthead-search { max-width: none; min-width: 118px; height: 40px; }

  .site-header:has(.masthead-search:focus-within) .site-header__right { display: none; }

  .logo { order: -1; flex: 1 1 100%; justify-content: center; }
  .logo__word { font-size: 38px; }

  /* Two lines on a phone: the sections scroll sideways on the first, the
     headline has the second to itself. */
  .section-nav__row { flex-wrap: wrap; gap: 0; min-height: 0; }
  .section-nav__list { flex: 1 1 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .section-nav__list::-webkit-scrollbar { display: none; }
  .section-nav__link { min-height: 44px; padding: 0 12px; white-space: nowrap; }
  /* A swipe along the row beats a dropdown at this width, so the script
     leaves the bar whole and nothing is hidden behind a button. */
  .section-nav__overflow { display: none; }

  .ticker__nav { display: none; }
  .ticker__track { grid-template-columns: 1fr; gap: 16px; }

  .article-title { font-size: 30px; }
  .archive-title { font-size: 32px; }
  .static-page__title { font-size: 32px; }
  .display-title { font-size: 26px; }
  .section-head__title { font-size: 23px; }

  .hero { min-height: 340px; }
  .hero__body { padding: 20px 18px 22px; }
  .hero__title { font-size: 26px; }

  .prose--dropcap > p:first-of-type::first-letter { font-size: 58px; }

  .breaking__label { left: var(--gutter); font-size: 18px; padding: 9px 16px 8px; }
  .breaking__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile__title { font-size: 16px; }

  .columns { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
  .newsletter-strip__inner { gap: 14px; }
  .newsletter-strip__pitch { font-size: 18px; flex-basis: 100%; }
  .subscribe-form { flex-basis: 100%; }
  .social-row { width: 100%; justify-content: flex-start; }

  .list-card { gap: 16px; padding: 20px 0; }
  .list-card__media { flex: 0 0 120px; max-width: 120px; }
  .list-card__title { font-size: 19px; }

  .row-card__thumb { flex: 0 0 72px; width: 72px; height: 64px; }

  .error-page__code { font-size: 68px; }
  .article-figure__frame { aspect-ratio: 16 / 9; }

  /* On a phone there is no room to wrap text around a picture. */
  .prose figure[class*="w-"],
  .prose figure.align-left,
  .prose figure.align-right {
    width: 100%;
    max-width: 100%;
    float: none;
    margin-left: 0;
    margin-right: 0;
  }

  .home-main__lead-side .card__media { aspect-ratio: 16 / 10; min-height: 0; }

  .flash-stack { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (max-width: 420px) {
  .breaking__grid { grid-template-columns: 1fr; }
  .logo__word { font-size: 32px; }
  .logo__badge { font-size: 9px; letter-spacing: 0.18em; }
}

@media print {
  .site-header, .section-nav, .ticker, .sidebar, .related,
  .newsletter-strip, .site-footer, .share, .drawer, .masthead-search { display: none !important; }
  .prose { max-width: none; font-size: 12pt; }
  body { background: #fff; }
}

/* ============================ cookie consent ============================ */

.consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  padding: 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.consent[hidden] { display: none; }

.consent__panel {
  pointer-events: auto;
  width: 100%;
  max-width: 760px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 15, 16, .18);
  padding: 22px 24px;
  animation: consent-rise .28s cubic-bezier(.2, .7, .3, 1) both;
}

@keyframes consent-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.consent__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
}

.consent__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}
.consent__text a { color: var(--ink); font-weight: 600; }

.consent__choices {
  margin-top: 16px;
  border-top: 1px solid var(--rule-soft);
  padding-top: 6px;
}
.consent__choices[hidden] { display: none; }

.consent__choice {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule-soft);
  cursor: pointer;
}
.consent__choice:last-child { border-bottom: 0; }
.consent__choice input {
  width: 18px; height: 18px; margin: 2px 0 0;
  flex: 0 0 18px; accent-color: var(--accent); cursor: pointer;
}
.consent__choice--locked { cursor: default; }
.consent__choice--locked input { cursor: not-allowed; }
.consent__choice > span { display: flex; flex-direction: column; gap: 3px; }
.consent__choice strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.consent__choice span span { font-size: 12.5px; line-height: 1.5; color: var(--faint); }

.consent__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* Accepting and refusing are the same size and weight on purpose. */
.btn--consent { min-height: 42px; padding: 0 22px; font-size: 14px; }
.btn--consent-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}
.btn--consent-ghost:hover { border-color: var(--ink); background: var(--surface); }

.consent__link {
  border: 0; background: none; padding: 0;
  font: inherit; font-size: 13px; color: var(--body);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.consent__link:hover { color: var(--accent); }
.consent__link--end { margin-left: auto; }

@media (max-width: 560px) {
  .consent { padding: 0; }
  .consent__panel { border-radius: 10px 10px 0 0; border-bottom: 0; padding: 20px 18px; }
  .consent__actions > .btn--consent { flex: 1 1 140px; }
  .consent__link--end { margin-left: 0; }
}

/* -------------------- embeds held back until accepted -------------------- */

.embed-hold {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin: 28px 0;
  padding: 26px 22px;
  border: 1px dashed var(--rule-strong);
  border-radius: 8px;
  background: var(--surface-muted);
  text-align: center;
}

.embed-hold__inner { max-width: 440px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.embed-hold__title { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.embed-hold__note { margin: 0 0 6px; font-size: 13px; line-height: 1.55; color: var(--faint); }

.btn-embed {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.btn-embed:hover { filter: brightness(.94); }
.btn-embed--quiet {
  background: none;
  color: var(--body);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 28px;
  padding: 0;
  font-weight: 500;
}
.btn-embed--quiet:hover { color: var(--accent); filter: none; }

@media (prefers-reduced-motion: reduce) {
  .consent__panel { animation: none; }
}

/* [hidden] is a display:none that any later display rule beats, and .btn
   sets inline-flex — so the attribute has to win back explicitly. */
.consent [hidden],
.embed-hold [hidden] { display: none !important; }

/* The arithmetic check on the comment form. */
.comment-form__sum { max-width: 320px; }
.comment-form__sum label { font-weight: 600; }

/* ======================= mobile top-stories slider ======================= */

/* Desktop keeps the three-column front page; this is a phone affordance. */
.hslider { display: none; }

@media (max-width: 900px) {
  .hslider {
    display: block;
    margin: 0 0 8px;
    padding: 14px 0 4px;
  }

  .hslider__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 16px 4px;
  }
  .hslider__track::-webkit-scrollbar { display: none; }
  .hslider__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

  .hslide {
    position: relative;
    flex: 0 0 88%;
    scroll-snap-align: center;
    aspect-ratio: 4 / 5;
    max-height: 520px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-dark);
    display: flex;
    align-items: flex-end;
  }
  /* The last slide needs something to stop against. */
  .hslide:last-child { margin-right: 4px; }

  .hslide__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
  }

  .hslide__scrim {
    position: absolute; inset: 0;
    background: linear-gradient(to top,
      rgba(15, 15, 16, .92) 0%,
      rgba(15, 15, 16, .72) 32%,
      rgba(15, 15, 16, .18) 62%,
      rgba(15, 15, 16, .04) 100%);
  }
  /* Without a photograph the gradient has nothing to sit on. */
  .hslide--plain .hslide__scrim {
    background: linear-gradient(145deg, #1A1A1D 0%, #0F0F10 70%);
  }

  .hslide__body {
    position: relative;
    padding: 20px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
  }
  .hslide__body .badge { align-self: flex-start; }

  .hslide__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 25px;
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -.01em;
  }
  .hslide__title a { color: #fff; text-decoration: none; }

  .hslide__meta {
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .72);
  }

  .hslider__dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 12px 16px 2px;
  }
  .hslider__dots:empty { display: none; }
  /* The dot stays small; the thing a thumb has to hit does not. The button
     is 24px square with the dot drawn inside it, which meets the minimum
     target size without making the indicator look heavy. */
  .hslider__dot {
    width: 24px; height: 24px;
    border: 0; padding: 0;
    background: none;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .hslider__dot::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--rule-strong);
    transition: width .22s ease, background-color .22s ease;
  }
  .hslider__dot[aria-current="true"]::before {
    width: 22px;
    border-radius: 4px;
    background: var(--accent);
  }

  /* The slider replaces the lead block up here, so it is not shown twice. */
  .home-main__lead { display: none; }

  /* With the lead gone, the two remaining lists read better side by side. */
  .home-main { padding-top: 20px; gap: 30px; }
}

@media (max-width: 560px) {
  .hslide { flex-basis: 90%; aspect-ratio: 3 / 4; }
  .hslide__title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hslider__track { scroll-behavior: auto; }
  .hslider__dot { transition: none; }
}

/* ===================== phone: entry point cleanup ===================== */

@media (max-width: 900px) {
  /* The headline strip is a desktop device: a row of four that pages
     sideways. Stacked on a phone it becomes one orphaned headline above the
     slider, repeating a story the slider is already showing. */
  .ticker { display: none; }

  /* Section labels are links, and at 11px with no padding they are a hard
     target for a thumb. The text stays the same size; the hit area grows
     around it, and the negative margin keeps the layout where it was. */
  a.kicker {
    display: inline-block;
    padding: 7px 2px;
    margin: -7px -2px;
  }

  /* Inside running prose a link is part of the sentence and must not be
     padded, or the line spacing breaks. */
  .prose a.kicker { padding: 0; margin: 0; }
}

/* ==================== masthead: time, place, weather ==================== */

/* Rendered empty and filled by the script, so one cached page can show
   every reader their own city without showing them each other's. */
.nowbar {
  /* Stacked rather than strung out: the weather over the clock keeps the
     right-hand group narrow enough for "My account" to stay on one line
     beside it, which is what was breaking it over two. */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
}
.nowbar[hidden] { display: none; }

.nowbar__weather { display: inline-flex; align-items: center; gap: 7px; }
.nowbar__weather[hidden] { display: none; }

.nowbar__icon { display: inline-flex; color: var(--accent); }
.nowbar__icon svg { display: block; }

.nowbar__temp { font-variant-numeric: tabular-nums; }
.nowbar__city { color: var(--body); font-weight: 500; }

/* The rule between the two is gone with the row that needed it. */
.nowbar__clock {
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  font-weight: 500;
  color: var(--body);
}

/* MENU now sits on the right, and is the biggest control in the masthead
   because it is the one people reach for. */
.header-btn--menu {
  font-size: 15px;
  letter-spacing: .1em;
  padding: 10px 14px;
  margin-right: -14px;
  border-radius: 4px;
}
.header-btn--menu:hover { background: var(--surface-muted); }

@media (max-width: 900px) {
  /* The account label goes first — the icon alone still says what it is.
     The city can stay now that it is on a line of its own. */
  .header-link--account span { display: none; }
}

@media (max-width: 560px) {
  .nowbar { font-size: 12px; }
  .nowbar__city { display: none; }
  .header-link--account { display: none; }
  .header-btn--menu { font-size: 14px; padding: 9px 11px; margin-right: -11px; }
}

/* ==================== masthead: the live headline strip ====================
   Fills the space a phone leaves between the search button and the clock.
   Every headline is an ordinary link, so the strip still carries the newest
   story with the rotation stopped, with JavaScript off, or under a reduced
   motion preference.
   ========================================================================= */

/* On the section bar, in the room the section labels leave. In the masthead
   it had 29px of headline to show on a phone, or else a row of its own that
   made the header taller than the first story. */
.livebar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 240px;
  min-width: 0;
}

.livebar__label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.livebar__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: livebar-pulse 1.8s ease-in-out infinite;
}

@keyframes livebar-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .3; transform: scale(.6); }
}

/* Exactly one line high, so headlines can only be swapped, never stacked. */
.livebar__window {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 20px;
  overflow: hidden;
}

.livebar__item {
  position: absolute;
  inset: 0;
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 20px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease, visibility .4s;
}
.livebar__item:hover { color: var(--accent); }

.livebar__item[data-current] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .livebar__pulse { animation: none; }
  .livebar__item { transition: none; }
}

@media (max-width: 760px) {
  .livebar {
    flex: 1 0 100%;
    gap: 8px;
    padding: 9px 0;
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 560px) {
  .livebar { gap: 7px; }
  .livebar__label { font-size: 9px; padding: 4px 6px; letter-spacing: .08em; }
  .livebar__pulse { width: 5px; height: 5px; }
  .livebar__item { font-size: 12.5px; }
}

@media print {
  .livebar { display: none; }
}

/* ======================= phone: quieter furniture ======================= */

@media (max-width: 900px) {
  /* A trail of two links above a headline the reader just tapped through to
     is navigation they do not need and vertical space they do. */
  .breadcrumbs { display: none; }

  /* Attribution has to stay readable and complete — a CC licence requires
     the credit — so it is made smaller and given something to sit on rather
     than trimmed. */
  .masthead__credit {
    font-size: 10.5px;
    line-height: 1.4;
    letter-spacing: .04em;
    padding: 10px 14px;
    background: linear-gradient(to top, rgba(15,15,16,.86), rgba(15,15,16,.55) 70%, transparent);
  }
}

/* Paging controls for the Popular list. Hidden until the script runs, so a
   reader without JavaScript gets the full list rather than a dead button. */
.popular-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--rule-soft);
  margin-top: 4px;
}
.popular-pager[hidden] { display: none; }
/* .popular-item sets display:flex, which beats the browser's own [hidden]
   rule, so a story the pager had put away stayed on the page. */
.popular-item[hidden] { display: none; }

.popular-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.popular-pager__btn:hover:not(:disabled) { border-color: var(--ink); }
.popular-pager__btn:disabled { opacity: .3; cursor: default; }

.popular-pager__count {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}


/* =================== teasers: the whole card is the link ===================
   A reader who taps a photograph means the story. Where the headline and
   the card share a positioning context the headline's own link is simply
   stretched over the card, so the page still holds exactly one link to the
   article; where the body sits in a layer of its own — the hero, the phone
   slider — a bare overlay anchor does it instead, hidden from assistive
   technology so the story is not announced twice.
   ========================================================================= */

.card,
.list-card,
.row-card,
.mini,
.popular-item {
  position: relative;
}

.card__title > a::after,
.list-card__title > a::after,
.row-card__title > a::after,
.mini__title > a::after,
.popular-item__title > a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* A section label goes to its section, so it stays above the overlay. */
.card > .kicker,
.list-card .kicker,
.row-card .kicker,
.popular-item .kicker,
.hero .badge[href],
.hslide .badge[href] {
  position: relative;
  z-index: 4;
}

/* The headline is underneath the overlay now, so the hover that told the
   reader the card was live has to come from the card. */
.hero:hover .hero__title a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}


/* ============ the sidebar banner on a stacked layout ============
   Below about a thousand pixels the sidebar stops being a column beside the
   article and becomes everything after it. A banner at the end of eleven
   thousand pixels of page is a banner nobody sees, so on those widths it is
   shown straight after the article instead, and the one in the column is
   hidden. Only one of the two is ever displayed, and the hidden one costs
   nothing: a display:none image never enters the viewport, so a lazy image
   never fetches it.
   ================================================================ */

.ad--stacked { display: none; }

@media (max-width: 1000px) {
  .ad--stacked {
    display: flex;
    margin: 30px 0 6px;
    padding-top: 26px;
    border-top: 1px solid var(--rule);
  }
  .sidebar .ad--sidebar { display: none; }
}


/* ===================== the partner block =====================
   The publisher's own promotion, so it is page furniture rather than a
   booked banner: no slot, no sponsored redirect, no class that a content
   blocker recognises. The label still says what it is, because a reader is
   entitled to know a promotion is a promotion.
   ============================================================= */

.promo-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.promo-partner__label {
  align-self: stretch;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.promo-partner__link { display: block; max-width: 100%; }
.promo-partner img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Below about a thousand pixels the sidebar stops being a column beside the
   article and becomes everything after it, ten screens down. On those
   widths the copy printed straight after the article is the one shown. */
.promo-partner--stacked { display: none; }

@media (max-width: 1000px) {
  .promo-partner--stacked {
    display: flex;
    margin: 30px 0 6px;
    padding-top: 26px;
    border-top: 1px solid var(--rule);
  }
  .sidebar .promo-partner { display: none; }
}
