@layer skin;

/* @skin:start */
/* Skin: CF Design System
 * The canonical tokens live in TheCookieLab/CF design/tokens.json (copied to packages/design-system/tokens.json).
 * The design tokens (--ground, --ink, --dough, ...) are declared per theme; the --color-* names the stylesheets use
 * are mapped onto them once. Values with no design token (warning text, tints, the row hover fill, chart range bands) are derived from
 * the tokens and listed per theme. Tokens are declared on both :root and body because mobile WebKit can drop :root
 * custom properties under <select>.
 */
@layer skin {
  :root,
  body {
    color-scheme: light dark;
    --ground: #fbf4e8;
    --surface: #fffdf8;
    --selected: #f6e3c8;
    --line: #d9cdb8;
    --ink: #12393d;
    --muted: #4e6463;
    --link: #2f6b71;
    --dough: #e0994a;
    --on-dough: #12393d;
    --dough-deep: #c27f36;
    --teal: #5a9597;
    --positive: #2f6b71;
    --negative: #b4472e;
    --focus: #6b4fb3;
    --chip: #3d2715;
    --color-inset: #f9ecda;
    --color-hover: #faeddb;
    --color-grid: #ece2d2;
    --color-line-strong: #7b8d8a;
    --color-warn: #7d4d0f;
    --color-ok-tint: #f0f3ef;
    --color-warn-tint: #f9e9d5;
    --color-bad-tint: #fbf2ec;
    --color-range-outer: #689192;
    --color-range-median: #7d4d0f;
    --color-on-strong: #fffdf8;
    --color-callout-code: rgba(18, 57, 61, 0.06);
    --color-edge-shadow: rgba(18, 57, 61, 0.24);
    --color-ok-glow: rgba(47, 107, 113, 0.42);
    --color-ok-glow-end: rgba(47, 107, 113, 0);
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-9: 36px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-sans: Figtree, system-ui, sans-serif;
    --font-mono: 'DM Mono', ui-monospace, monospace;
    --color-page: var(--ground);
    --color-sheet: var(--surface);
    --color-text: var(--ink);
    --color-muted: var(--muted);
    --color-line: var(--line);
    --color-accent: var(--link);
    --color-secondary: var(--link);
    --color-secondary-tint: var(--color-hover);
    --color-ok: var(--positive);
    --color-good: var(--positive);
    --color-bad: var(--negative);
    --color-chart-profit: var(--positive);
    --color-chart-loss: var(--negative);
    --color-range-inner: var(--link);
    --color-info: var(--link);
    --color-field: var(--surface);
    --color-raised: var(--surface);
    --color-placeholder: var(--muted);
    --color-accent-tint: var(--color-hover);
    --color-selection: var(--selected);
    --color-callout: var(--selected);
    --color-callout-line: var(--line);
    --color-surface-hover: var(--color-hover);
    --color-mark-backdrop: transparent;
    --color-dough: var(--dough);
    --color-on-dough: var(--on-dough);
    --color-focus: var(--focus);
    --font-body: var(--font-sans);
    --font-display: var(--font-sans);
    --radius-control: var(--radius-md);
    --radius-card: var(--radius-lg);
    --radius-pill: var(--radius-sm);
    --masthead-rule: 1px solid var(--line);
    --surface-shadow: none;
  }

  :root[data-theme='light'],
  :root[data-theme='light'] body {
    color-scheme: light;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']),
    :root:not([data-theme='light']) body {
      color-scheme: dark;
      --ground: #282a36;
      --surface: #343746;
      --selected: #44475a;
      --line: #6272a4;
      --ink: #f8f8f2;
      --muted: #b9bdd4;
      --link: #8be9fd;
      --dough: #ffb86c;
      --on-dough: #282a36;
      --dough-deep: #c27f36;
      --teal: #5a9597;
      --positive: #50fa7b;
      --negative: #ff8585;
      --focus: #bd93f9;
      --chip: #282a36;
      --color-inset: #353746;
      --color-hover: #3a3d4d;
      --color-grid: #424a68;
      --color-line-strong: #b9bdd4;
      --color-warn: #ffb86c;
      --color-ok-tint: #36454a;
      --color-warn-tint: #48444a;
      --color-bad-tint: #403c4a;
      --color-range-outer: #6272a4;
      --color-range-median: #ffb86c;
      --color-on-strong: #282a36;
      --color-callout-code: rgba(248, 248, 242, 0.08);
      --color-edge-shadow: rgba(248, 248, 242, 0.2);
      --color-ok-glow: rgba(80, 250, 123, 0.45);
      --color-ok-glow-end: rgba(80, 250, 123, 0);
    }
  }

  :root[data-theme='dark'],
  :root[data-theme='dark'] body {
    color-scheme: dark;
    --ground: #282a36;
    --surface: #343746;
    --selected: #44475a;
    --line: #6272a4;
    --ink: #f8f8f2;
    --muted: #b9bdd4;
    --link: #8be9fd;
    --dough: #ffb86c;
    --on-dough: #282a36;
    --dough-deep: #c27f36;
    --teal: #5a9597;
    --positive: #50fa7b;
    --negative: #ff8585;
    --focus: #bd93f9;
    --chip: #282a36;
    --color-inset: #353746;
    --color-hover: #3a3d4d;
    --color-grid: #424a68;
    --color-line-strong: #b9bdd4;
    --color-warn: #ffb86c;
    --color-ok-tint: #36454a;
    --color-warn-tint: #48444a;
    --color-bad-tint: #403c4a;
    --color-range-outer: #6272a4;
    --color-range-median: #ffb86c;
    --color-on-strong: #282a36;
    --color-callout-code: rgba(248, 248, 242, 0.08);
    --color-edge-shadow: rgba(248, 248, 242, 0.2);
    --color-ok-glow: rgba(80, 250, 123, 0.45);
    --color-ok-glow-end: rgba(80, 250, 123, 0);
  }
}
/* @skin:end */

/* Figtree and DM Mono are served from this origin: the site's CSP allows no font CDN. */
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/figtree-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-mono-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.5rem, 1.25rem + 1vw, 2.05rem);
  --text-3xl: clamp(1.875rem, 1.45rem + 1.8vw, 2.85rem);
  --text-display: clamp(2.125rem, 1.55rem + 2.25vw, 3.35rem);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
  /* Phones keep the set type sizes when turned to landscape instead of enlarging the text. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--color-selection);
  color: var(--color-text);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

a:hover {
  color: var(--color-accent);
}

a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 12px 20px;
  transform: translateY(-160%);
  background: var(--color-text);
  color: var(--color-page);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(73.75rem, calc(100% - clamp(2.5rem, 5vw, 6rem)));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 6.5rem;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-line);
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 0.9375rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.5vw, 1.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.site-title-text {
  text-box: trim-both cap alphabetic;
}

.site-monogram,
.site-monogram-dark {
  display: block;
  width: 4rem;
  height: 4rem;
  flex: none;
  object-fit: contain;
}

/* Each mark carries its own disc; show the one drawn for the active theme. */
.site-monogram-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .site-monogram {
    display: none;
  }

  :root:not([data-theme='light']) .site-monogram-dark {
    display: block;
  }
}

:root[data-theme='dark'] .site-monogram {
  display: none;
}

:root[data-theme='dark'] .site-monogram-dark {
  display: block;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.nav-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-row a[aria-current='page'],
.nav-row a[aria-current='true'] {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 8px;
}

.content-grid {
  min-width: 0;
  min-height: 60vh;
}

.eyebrow,
.publication-note {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--color-muted);
}

.feed-intro {
  padding: clamp(2rem, 3.5vw, 3rem) 0 var(--space-7);
  border-bottom: var(--masthead-rule);
}

.feed-intro > .eyebrow {
  margin: 0 0 var(--space-4);
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
}

.feed-intro h1 {
  margin: 0 0 var(--space-5);
  font-size: var(--text-display);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.intro-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-6);
}

.feed-summary {
  max-width: 38rem;
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-base);
  line-height: 1.65;
  text-wrap: pretty;
}

.publication-note {
  flex-shrink: 0;
  color: var(--color-muted);
  letter-spacing: 0.06em;
}

.post-card {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: var(--space-10);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-line);
}

.edition-meta .eyebrow {
  margin: 0.25rem 0 0.625rem;
}

.edition-meta time {
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.edition-copy {
  max-width: 47.5rem;
}

.edition-copy h2 {
  margin: 0;
  font-size: clamp(1.4375rem, 1.25rem + 0.6vw, 1.8125rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.edition-copy h2 a {
  text-decoration: none;
}

.edition-copy h2 a:hover {
  text-decoration: underline;
}

.edition-copy > p {
  margin: var(--space-4) 0;
  color: var(--color-muted);
  font-size: 0.96875rem;
  line-height: 1.72;
  text-wrap: pretty;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.read-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.featured {
  padding: var(--space-10) 0 var(--space-8);
  border-bottom: 1px solid var(--color-line);
}

.featured .edition-meta {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-5);
  align-self: start;
}

.featured h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  line-height: 1.16;
  text-wrap: balance;
}

.featured .edition-copy > p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-text);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-8) 0 var(--space-2);
}

.section-heading h2 {
  margin: 0;
  font-size: var(--text-xl);
  font-style: italic;
}

.archive-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-10) 0;
}

.archive-cta p {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.375rem;
  font-style: italic;
}

.archive-cta > a {
  padding: 0.625rem 0;
  font-size: var(--text-sm);
}

.archive-end {
  justify-content: flex-end;
}

.page-heading {
  padding: clamp(2rem, 3.5vw, 3rem) 0 var(--space-7);
  border-bottom: var(--masthead-rule);
}

.page-heading h1 {
  margin: 0.625rem 0;
  font-size: var(--text-3xl);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.page-heading > h1 + p,
.empty-state {
  color: var(--color-muted);
}

.empty-state {
  padding: var(--space-10) 0;
}

.post-hero {
  padding: var(--space-7) 0 var(--space-8);
  border-bottom: 1px solid var(--color-line);
}

.back-link {
  display: inline-block;
  padding: 0.625rem 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
  text-decoration: none;
}

.post-hero > .eyebrow {
  margin: var(--space-5) 0 var(--space-3);
}

.title-date {
  white-space: nowrap;
}

.post-hero h1 {
  max-width: 60rem;
  margin: 0;
  text-wrap: balance;
  font-size: clamp(1.875rem, 1.4rem + 1.8vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.archive-jump {
  margin-top: 22px;
}

.archive-jump ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-jump > ul > li {
  display: flex;
  align-items: baseline;
  gap: 4px 18px;
}

.archive-year {
  flex-shrink: 0;
  color: var(--color-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.archive-jump > ul > li > ul {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
}

.archive-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
  text-decoration: none;
}

.archive-jump a:hover {
  text-decoration: underline;
}

.archive-month {
  padding-top: 40px;
}

.archive-month h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-line);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.archive-month h2 span {
  flex-shrink: 0;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

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

.archive-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: 40px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--color-line);
  text-decoration: none;
}

.archive-row time {
  color: var(--color-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.archive-row-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  max-width: 760px;
}

.archive-row-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.35;
}

.archive-row-teaser {
  overflow: hidden;
  color: var(--color-muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-row:hover .archive-row-title {
  text-decoration: underline;
}

.archive-row:hover .archive-row-teaser {
  color: var(--color-muted);
}

.archive-tickers {
  margin-top: 6px;
}

.ticker-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin: 0;
  padding: 30px 0 40px;
  list-style: none;
  column-gap: 32px;
}

.ticker-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
  text-decoration: none;
}

.ticker-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.ticker-latest {
  color: var(--color-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.ticker-label {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
}

.ticker-count {
  flex-shrink: 0;
  color: var(--color-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.ticker-letters ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 24px 0 0;
  list-style: none;
}

.ticker-letters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--color-line);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.ticker-letters a:hover {
  text-decoration: underline;
}

.ticker-group {
  scroll-margin-top: 16px;
}

.ticker-letter {
  margin: 32px 0 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.ticker-group .ticker-list {
  padding: 0 0 8px;
}

/* On a wide screen the letter sits in its own gutter, as in a dictionary, so a letter with one or two tickers takes a
   single row instead of a heading row and a mostly empty one. */
@media (min-width: 761px) {
  .ticker-group {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 32px;
    align-items: start;
    border-top: 1px solid var(--color-line);
  }

  .ticker-group:first-of-type {
    margin-top: 24px;
  }

  /* The group's own rule divides the letters; within one, the tickers read as a run without rules of their own. */
  .ticker-group .ticker-list {
    padding: 0 0 12px;
  }

  .ticker-group .ticker-list a {
    border-bottom: 0;
  }

  .ticker-letter {
    margin: 0;
    padding: 12px 0 0;
    border-bottom: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0;
    line-height: 1.3;
  }
}

.ticker-list a:hover .ticker-label {
  text-decoration: underline;
}

.ticker-rows {
  padding-top: 10px;
}

.post-tickers {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
}

.post-tickers .eyebrow {
  margin: 0;
  color: var(--color-muted);
}

.post-tickers ul {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 auto;
  margin: 0 0 0 -10px;
  padding: 0;
  list-style: none;
}

.post-tickers ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.post-tickers ul a:hover {
  text-decoration: underline;
}

.instrument-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
  font-size: 13px;
}

.instrument-summary a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-accent);
}

.archive-rows > li > .instrument-summary {
  margin: -8px 0 8px;
}

.reader-brief {
  margin: 20px 0;
}

.reader-brief h3,
.reader-regime {
  margin: 0 0 12px;
}

.reader-regime {
  color: var(--color-accent);
  font-weight: 600;
}

.reader-brief ul {
  display: grid;
  gap: 12px;
  padding-left: 22px;
  line-height: 1.65;
}

.change-strip {
  margin: 18px 0;
  padding: 12px 0 12px 16px;
  border-left: 2px solid var(--color-line);
  font-size: 14px;
  line-height: 1.6;
}

.change-strip p {
  margin: 0;
}

.evidence-summary {
  color: var(--color-muted);
  font-size: 14px;
}

.keyboard-help {
  margin: 16px 0;
  color: var(--color-muted);
  font-size: 13px;
}

.keyboard-help summary {
  width: fit-content;
  min-height: 44px;
  align-content: center;
  cursor: pointer;
}

.keyboard-help dl {
  margin: 0;
}

.keyboard-help dl > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}

.keyboard-help dd {
  margin: 0;
}

.methodology {
  max-width: 760px;
  line-height: 1.75;
}

.methodology h2 {
  margin-top: 32px;
  font-family: var(--font-display);
  font-weight: 800;
}

.report-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 760px);
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--color-line);
}

.report-contents nav {
  position: sticky;
  top: 28px;
  max-height: calc(100vh - 56px);
  /* The current entry's accent bar sits 12px left of the column; the scroll box would clip it ("04" read ")4"). */
  margin-left: -12px;
  padding-left: 12px;
  overflow-y: auto;
}

.report-contents .eyebrow {
  margin: 0 0 16px;
}

.report-contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: section;
}

.report-contents li {
  counter-increment: section;
}

.report-contents li a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 6px;
  padding: 9px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.report-contents li a::before {
  content: counter(section, decimal-leading-zero);
  color: var(--color-accent);
  font-size: 10px;
  line-height: 1.95;
}

.report-contents a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.back-top {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 0;
  font-size: 12px;
  color: var(--color-muted);
}

.report-contents-compact {
  display: none;
}

/* The archive's end row holds only that link, so it goes with it rather than leaving an empty band. */
.short-page .back-top,
.short-page .back-top-end,
.short-page .archive-end {
  display: none;
}

/* Without that row the last edition would sit right on the footer's rule; keep a smaller gap. It stays under the
   row's height, so hiding the row still shortens the page and the short state cannot flip back. */
.short-page section:has(> .archive-end) {
  padding-bottom: 56px;
}

.edition-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--color-line);
}

.edition-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 30px 32px 30px 0;
  text-decoration: none;
}

.edition-link .eyebrow {
  margin: 0;
}

.edition-next {
  grid-column: 2;
  align-items: flex-end;
  padding: 30px 0 30px 32px;
  border-left: 1px solid var(--color-line);
  text-align: right;
}

/* The rule divides two links; the oldest edition has only the newer one, so no line beside an empty half. */
.edition-next:first-child {
  border-left: 0;
}

.edition-link-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  line-height: 1.3;
}

.edition-link time {
  color: var(--color-muted);
  font-size: 13px;
}

.edition-link:hover .edition-link-title {
  text-decoration: underline;
}

.edition-nav-top .edition-link {
  padding-top: 16px;
  padding-bottom: 16px;
}

.edition-nav-top .edition-link-title {
  font-family: var(--font-body);
  font-size: 14px;
}

.post-body {
  min-width: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.1875rem;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.without-contents .post-body {
  grid-column: 2;
}

.post-body > :first-child {
  margin-top: 0;
}

.post-body h2 {
  margin: var(--space-12) 0 var(--space-5);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-line);
  font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.post-body h2:first-child {
  padding-top: 0;
  border-top: 0;
}

.post-body h3,
.post-body h4 {
  margin: var(--space-8) 0 var(--space-4);
  font-size: 1.375rem;
  line-height: 1.32;
  text-wrap: balance;
}

.post-body h4 {
  font-size: 1.1875rem;
  font-style: italic;
}

/* Report prose avoids a lone word on its last line, where the browser supports it. */
.post-body p,
.post-body li {
  text-wrap: pretty;
}

.post-body a {
  color: var(--color-accent);
}

.post-body ul,
.post-body ol {
  padding-left: 24px;
}

.post-body li {
  margin: 12px 0;
}

.post-body blockquote {
  margin: 28px 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--color-accent);
  font-style: italic;
}

.post-body figure {
  margin: 28px 0;
}

.post-body figcaption {
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 13px;
}

.post-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
}

/* Cells wrap only between words: the table scrolls sideways rather than splitting a figure or a range
   ("98,000 – 104,500", kept together by the renderer) across lines. */
.post-body th,
.post-body td {
  min-width: 110px;
  overflow-wrap: normal;
  padding: 12px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}

.post-body th {
  border-bottom-color: var(--color-text);
}

/* On a phone a wide report table scrolls sideways; its first column (the row label: horizon, asset, metric) stays
   in view so each scrolled-to figure keeps its row's name. */
@media (max-width: 760px) {
  .post-body tr > :first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--color-page);
    box-shadow: 1px 0 0 var(--color-line);
  }

  /* The table scrolls sideways there anyway, so a short cell keeps one line instead of stacking into a tall row. The
     sticky row label still wraps: unwrapped, a long one could cover the columns scrolled in beside it. */
  .post-body td.short:not(:first-child),
  .post-body th.short:not(:first-child) {
    white-space: nowrap;
  }

  /* A longer cell ("41 strikes (5 touch, 61 earlier expiry), Kalshi + Polymarket") wraps to a few lines in a column
     wide enough to read, instead of one 360px line that pushes the table to nearly three screens and leaves the
     column's heading under the sticky row label when scrolled to the end. */
  .post-body td:not(.short):not(:first-child),
  .post-body th:not(.short):not(:first-child) {
    min-width: 180px;
  }
}

/* Columns of figures read right-aligned on even-width digits, so signs, decimals and units line up. */
.post-body .figure {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Disclosures keep secondary detail within reach without making hover or script a prerequisite. */
.post-body details {
  min-width: 0;
  margin: 20px 0;
  border-top: 1px solid var(--color-line);
}

.post-body summary {
  min-height: 44px;
  padding: 10px 0;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  cursor: pointer;
}

.post-body summary:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body summary:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

.post-body details > :last-child {
  margin-bottom: 16px;
}

/* Original market graphics keep exact values in HTML; shape and line weight carry meaning without colour. */
.pulse-brief {
  font-size: 1.08em;
  line-height: 1.65;
}

.pulse-markets {
  margin: 24px 0 32px;
}

.pulse-ranges {
  margin: var(--space-6) 0;
  border-top: 1px solid var(--color-line);
}

.pulse-range-row {
  min-width: 0;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.pulse-range-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.pulse-range-graphic {
  display: block;
  width: 100%;
  height: 48px;
  overflow: visible;
}

.pulse-range-graphic line {
  vector-effect: non-scaling-stroke;
}

.pulse-range-axis {
  stroke: var(--color-line);
  stroke-width: 1.5;
}

.pulse-range-outer {
  stroke: var(--color-range-outer);
  stroke-width: 6;
  stroke-linecap: round;
}

.pulse-range-inner {
  stroke: var(--color-range-inner);
  stroke-width: 14;
  stroke-linecap: round;
}

.pulse-range-median-halo {
  stroke: var(--color-page);
  stroke-width: 6;
  stroke-linecap: round;
}

.pulse-range-median {
  stroke: var(--color-range-median);
  stroke-width: 2.5;
  stroke-linecap: round;
}

@media (forced-colors: active) {
  .pulse-range-axis {
    stroke: CanvasText;
  }

  .pulse-range-outer {
    stroke: GrayText;
  }

  .pulse-range-inner,
  .pulse-event-fill {
    stroke: Highlight;
    fill: Highlight;
  }

  .pulse-range-median-halo {
    stroke: Canvas;
  }

  .pulse-range-median {
    stroke: CanvasText;
  }
}

.pulse-range-meta,
.pulse-range-legend,
.pulse-range-unplotted,
.pulse-event-meta,
.pulse-event-sources,
.pulse-market-help {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.65;
}

.pulse-range-meta,
.pulse-range-legend,
.pulse-range-unplotted,
.pulse-event-meta {
  color: var(--color-muted);
}

.pulse-range-meta {
  margin: 4px 0 0;
}

.pulse-events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 20px 0;
}

.pulse-event {
  min-width: 0;
  padding: 20px 0;
  border-top: 1px solid var(--color-line);
}

.post-body .pulse-event-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-style: normal;
  line-height: 1.4;
}

.pulse-event-probability {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.pulse-event-track {
  display: block;
  width: 100%;
  height: 8px;
  margin: 12px 0;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.pulse-event-base {
  fill: var(--color-line);
}

.pulse-event-fill {
  fill: var(--color-range-inner);
}

.pulse-event-meta {
  margin: 12px 0;
}

.pulse-event-meta dt {
  margin-top: 8px;
  color: var(--color-text);
  font-weight: 600;
}

.pulse-event-meta dd {
  margin: 0;
}

.pulse-event-sources a,
.pulse-market-help {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
}

/* The guide link closes the cards on its own row rather than taking a card's column. */
.pulse-events > .pulse-market-help {
  grid-column: 1 / -1;
  justify-self: start;
}

@media (max-width: 600px) {
  .pulse-events {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Editorial sections use alignment and rules rather than dashboard chrome around every paragraph. */
.pulse-watchlist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.pulse-watch {
  min-width: 0;
  padding: 20px 0;
  border-top: 1px solid var(--color-line);
}

.post-body .pulse-watch h3 {
  margin: 0 0 12px;
}

.post-body .pulse-conditions {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
}

.post-body .pulse-conditions > li {
  margin: 14px 0;
}

.pulse-conditions > li > strong {
  display: block;
  color: var(--color-muted);
}

.pulse-coverage-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin: 24px 0;
  font-family: var(--font-body);
}

.pulse-coverage-counts dt {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
}

.pulse-coverage-counts dd {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.post-body .pulse-risk-list > li {
  margin: 20px 0;
  padding-left: 4px;
}

.pulse-retro {
  line-height: 1.65;
}

.pulse-retro p {
  margin: 12px 0;
}

.pulse-inventory {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
}

/* A source lane's heading is its disclosure's label: it sits beside the marker, not on its own line below it. */
.pulse-inventory > summary > h3 {
  display: inline;
  margin: 0;
}

@media (max-width: 600px) {
  .pulse-watchlist {
    grid-template-columns: minmax(0, 1fr);
  }
}

.post-body pre,
.post-body code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.85em;
}

/* Code sits on the raised surface of the edition outline, so a block of figures or a ticker
   reads as quoted material rather than as prose in another typeface. */
.post-body code {
  padding: 0.1em 0.35em;
  border-radius: var(--radius-control);
  background: var(--color-raised);
}

.post-body pre {
  margin: var(--space-7) 0;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-control);
  background: var(--color-raised);
  line-height: 1.6;
}

.post-body pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

.post-body hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--color-line);
}

.post-body :target {
  outline: 1px solid var(--color-accent);
  outline-offset: 8px;
}

/* A section heading already has a divider above it: light the divider rather than box it in. */
.post-body h2:not(:first-child):target {
  border-top-color: var(--color-accent);
  outline: 0;
}

/* Scoped under .post-body so it outranks the accent colour of ".post-body a". */
.post-body .section-link {
  margin-left: 0.3em;
  color: var(--color-muted);
  font-weight: 400;
  text-decoration: none;
}

.post-body .section-link:hover,
.post-body .section-link:focus-visible {
  color: var(--color-accent);
}

/* Heard, not seen: the link reads "Link to this section" while showing just "#". */
.section-link-hint {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Where a pointer can hover, the mark waits until the heading is hovered or the link is focused. */
@media (hover: hover) {
  .section-link {
    opacity: 0;
  }

  .post-body h2:hover .section-link,
  .section-link:focus-visible {
    opacity: 1;
  }
}

.site-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-6);
  margin-top: var(--space-8);
  padding: var(--space-8) 0 var(--space-12);
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.8125rem;
}

.footer-title {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  text-decoration: none;
}

.site-footer p {
  max-width: 42rem;
  margin: 8px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.site-footer nav a {
  display: inline-block;
  padding: 10px 0;
}

/* Branded not-found page. */
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding: 24px 0 8px;
}

/* Reading time and edition stats. */
.reading-time {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.edition-meta .reading-time {
  margin-top: 6px;
  white-space: normal;
}

.edition-meta .reading-part {
  display: block;
  white-space: nowrap;
}

.edition-meta .reading-sep {
  display: none;
}

.edition-weekday {
  display: block;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.3;
}

.lead-sections {
  margin: var(--space-6) 0 var(--space-2);
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-raised);
}

.lead-sections .eyebrow {
  margin: 0 0 10px;
}

.lead-sections ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: lead;
}

.lead-sections li {
  counter-increment: lead;
  color: var(--color-text);
  font-size: 14px;
}

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

.lead-sections a:hover {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lead-sections a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.lead-sections li::before {
  content: counter(lead, decimal-leading-zero);
  margin-right: 8px;
  color: var(--color-accent);
  font-size: 11px;
}

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

.edition-row {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 40px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-line);
}

.edition-row time {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.edition-row-day {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.edition-row-month {
  color: var(--color-muted);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edition-row h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.edition-row h3 a {
  text-decoration: none;
}

/* Stretch the heading link across the row without covering instrument links. */
.edition-row h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.edition-row .instrument-summary a {
  position: relative;
  z-index: 1;
}

.edition-row:hover h3 a {
  color: var(--color-accent);
}

.edition-row h3 a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.edition-row-copy p {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

.post-meta span + span::before {
  content: '·';
  margin: 0 10px;
}

.footer-updated {
  font-variant-numeric: tabular-nums;
}

/* Enhancements the site script adds; none of these elements exist without it. */
.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.share-button:hover {
  color: var(--color-accent);
}

.theme-toggle:focus-visible,
.share-button:focus-visible,
.archive-search-input:focus-visible,
.archive-search-reset:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 5px;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  align-self: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    transform 240ms ease;
}

/* The circle stays 36px, but the tap target reaches 44px. */
.theme-toggle::before {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  content: '';
}

.theme-toggle:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.theme-toggle:active {
  transform: rotate(-20deg);
}

.theme-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon[hidden] {
  display: none;
}

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

  .theme-toggle:active {
    transform: none;
  }
}

.archive-search {
  margin-top: 26px;
  max-width: 560px;
}

.archive-search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-search-field {
  position: relative;
}

.archive-search-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 44px 10px 14px;
  border: 1px solid var(--color-line);
  border-bottom-color: var(--color-text);
  border-radius: var(--radius-control);
  background: var(--color-raised);
  color: var(--color-text);
  font: inherit;
  font-size: 16px;
}

/* WebKit's own clear button is a bright system-blue circle; this redraws it as a thin muted cross in the
   site's palette, from gradients alone, so the strict CSP needs no image source. */
.archive-search-input::-webkit-search-cancel-button {
  width: 14px;
  height: 14px;
  margin-right: 2px;
  background:
    linear-gradient(
      45deg,
      transparent calc(50% - 0.75px),
      currentcolor calc(50% - 0.75px),
      currentcolor calc(50% + 0.75px),
      transparent calc(50% + 0.75px)
    ),
    linear-gradient(
      -45deg,
      transparent calc(50% - 0.75px),
      currentcolor calc(50% - 0.75px),
      currentcolor calc(50% + 0.75px),
      transparent calc(50% + 0.75px)
    );
  color: var(--color-muted);
  cursor: pointer;
  appearance: none;
}

.archive-search-input::-webkit-search-cancel-button:hover {
  color: var(--color-accent);
}

.archive-search-input::placeholder {
  color: var(--color-muted);
}

.archive-search-hint {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  border: 1px solid var(--color-line);
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
  background: var(--color-page);
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.archive-search-status {
  min-height: 1.6em;
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

.archive-search-reset {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.archive-search-reset:hover {
  text-decoration: underline;
}

.reading-progress {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  pointer-events: none;
}

.reading-progress-fill {
  height: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.report-contents li a[aria-current='location'],
.report-contents-compact li a[aria-current='location'] {
  color: var(--color-text);
  font-weight: 600;
}

.report-contents li a[aria-current='location'] {
  box-shadow: inset 2px 0 0 var(--color-accent);
  padding-left: 10px;
  margin-left: -12px;
}

/* High-contrast modes drop box shadows, so the current entry's bar is drawn as a border there. */
@media (forced-colors: active) {
  .report-contents li a[aria-current='location'] {
    border-left: 2px solid Highlight;
    padding-left: 8px;
  }
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin-top: 12px;
}

.share-button {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.share-status {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
}

.keyboard-hint {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  .site-shell {
    width: calc(100% - 48px);
  }

  .intro-bottom {
    display: block;
  }

  .publication-note {
    display: block;
    margin-top: 16px;
  }

  .post-card,
  .report-layout {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 28px;
  }

  .archive-row {
    grid-template-columns: 160px minmax(0, 1fr) auto;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: calc(100% - 2.5rem);
  }

  .site-header {
    flex-wrap: wrap;
    min-height: 0;
    gap: 0.5rem 1.25rem;
    padding: 1.125rem 0 0.75rem;
  }

  .site-title {
    gap: 0.6875rem;
    font-size: 1.1875rem;
  }

  .site-monogram,
  .site-monogram-dark {
    width: 3rem;
    height: 3rem;
  }

  .nav-row {
    width: 100%;
    /* Keeps all four header links on one line at 320px. */
    gap: 0.25rem 1.25rem;
  }

  /* The four links and the theme toggle overflow a 320px row, which left the toggle alone on
     a third line. The title row has room, so the toggle sits at its end on every phone. */
  .site-header:not(.members-header) {
    position: relative;
  }

  .site-header:not(.members-header) .theme-toggle {
    position: absolute;
    top: 24px;
    right: 0;
  }

  .feed-intro {
    padding-top: var(--space-7);
  }

  .feed-intro h1 {
    font-size: clamp(2rem, 8.5vw, 2.75rem);
    margin-bottom: var(--space-4);
  }

  .post-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 26px 0;
  }

  .edition-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .edition-meta .eyebrow {
    margin: 0;
  }

  .featured .edition-meta {
    padding-left: 12px;
  }

  .edition-meta .reading-part {
    display: inline;
  }

  .edition-meta .reading-sep {
    display: inline;
  }

  .edition-copy h2 {
    font-size: 27px;
  }

  .featured h2 {
    font-size: 33px;
  }

  .featured .edition-copy > p {
    font-size: 19px;
  }

  .post-hero {
    padding: 18px 0 28px;
  }

  .post-hero > .eyebrow {
    margin: 16px 0 12px;
  }

  .post-hero h1 {
    /* Shrinks on the smallest phones so the longest unbreakable date, "28 September 2026", still fits (WebKit sets it wider). */
    font-size: clamp(28px, 10vw, 36px);
  }

  .report-layout {
    display: block;
    padding-top: 24px;
  }

  .report-layout:not(.without-contents) {
    padding-top: 0;
  }

  .report-contents {
    display: none;
  }

  .report-contents-compact {
    display: block;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--color-line);
  }

  .report-contents-compact summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    cursor: pointer;
    list-style: none;
  }

  .report-contents-compact summary::-webkit-details-marker {
    display: none;
  }

  /* The sign is decoration: the disclosure already announces its state, so give it empty alt text. */
  .report-contents-compact summary::after {
    content: '+';
    content: '+' / '';
    margin-left: auto;
    color: var(--color-accent);
    font-size: 20px;
    line-height: 1;
  }

  .report-contents-compact[open] summary::after {
    content: '−';
    content: '−' / '';
  }

  .report-contents-count {
    color: var(--color-muted);
    font-size: 13px;
  }

  .report-contents-compact ol {
    margin: 0;
    padding: 0 0 12px;
    list-style: none;
    counter-reset: section;
  }

  .report-contents-compact li {
    counter-increment: section;
  }

  .report-contents-compact li a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: baseline;
    min-height: 44px;
    padding: 10px 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.45;
    text-decoration: none;
  }

  .report-contents-compact li a::before {
    content: counter(section, decimal-leading-zero);
    color: var(--color-accent);
    font-size: 11px;
  }

  .archive-month h2 {
    font-size: 26px;
  }

  .archive-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
  }

  /* A single-list ticker page's rows carry the full date ("28 Sep 2026"), which needs more than the archive's "Sat 08". */
  .ticker-rows .archive-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .archive-row-title {
    font-size: 18px;
  }

  .archive-row .reading-time {
    display: none;
  }

  /* Every default title is "Daily Pulse, <date>", so the teaser is what tells editions apart; wrap it to two lines. */
  .archive-row-teaser {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
  }

  .edition-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .edition-link,
  .edition-next {
    grid-column: auto;
    align-items: flex-start;
    padding: 22px 0;
    border-left: 0;
    text-align: left;
  }

  .edition-link + .edition-link {
    border-top: 1px solid var(--color-line);
  }

  .post-body {
    font-size: 18px;
  }

  .post-body h2 {
    font-size: 27px;
  }

  .site-footer {
    display: block;
  }

  .site-footer nav {
    margin-top: 20px;
  }
}

@media (max-width: 900px) {
  .edition-row {
    grid-template-columns: 160px minmax(0, 1fr) auto;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .edition-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 4px 16px;
    padding: 18px 0;
  }

  .edition-row time {
    flex-direction: column;
    gap: 6px;
    grid-row: span 2;
  }

  .edition-row-month {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .edition-row h3 {
    font-size: 19px;
  }

  /* As in the archive, the summary is what tells "Daily Pulse, <date>" rows apart, so phones keep two lines of it. */
  .edition-row-copy p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .edition-row .reading-time {
    grid-column: 2;
  }

  .lead-sections {
    padding: 14px 16px;
  }

  .lead-sections ol {
    flex-direction: column;
  }

  .edition-weekday {
    display: inline;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
  }

  /* "Saturday, 8 August 2026" on one line; a lone weekday (the headline names the date) takes no comma. */
  .edition-weekday:not(:only-child)::after {
    content: ',';
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Members' workspace: a denser working layout behind sign-in, built from the same paper palette and type. */
.members-shell {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
}

.members-header {
  min-height: 5rem;
}

.members-header .site-monogram,
.members-header .site-monogram-dark {
  width: 3.25rem;
  height: 3.25rem;
}

.members-header .site-title {
  font-size: 1.1875rem;
}

.members-crumb {
  color: var(--color-muted);
  font-weight: 400;
}

.members-crumb::before {
  content: '/';
  margin: 0 10px 0 2px;
  color: var(--color-line);
}

.members-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 28px;
}

.members-nav {
  position: sticky;
  top: 24px;
}

.members-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.members-nav-group + .members-nav-group {
  margin-top: 22px;
}

.members-nav-heading {
  display: block;
  margin: 0 12px 6px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.members-nav a,
.members-nav-soon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-decoration: none;
}

.members-nav a {
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.members-nav a:hover {
  background: var(--color-raised);
  color: var(--color-accent);
}

.members-nav a[aria-current='page'] {
  background: var(--color-raised);
  box-shadow: inset 2px 0 0 var(--color-accent);
  color: var(--color-accent);
}

.members-nav a:focus-visible,
.members-tile:focus-visible,
.board-jump a:focus-visible,
.board-table-wrap:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.members-nav-soon {
  color: var(--color-muted);
}

.members-soon-tag {
  padding: 1px 7px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.members-main {
  min-width: 0;
  padding-bottom: 96px;
}

.members-main:focus {
  outline: none;
}

.members-heading {
  display: grid;
  gap: 10px;
  padding-bottom: 24px;
}

.members-heading .eyebrow,
.members-heading h1,
.members-lede {
  margin: 0;
}

.members-heading h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.members-lede {
  max-width: 68ch;
  color: var(--color-muted);
  font-size: 15px;
}

.board-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.board-jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    color 160ms ease;
}

.board-jump a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.board-jump-count {
  color: var(--color-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.board-list {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
  scroll-margin-top: 24px;
}

.board-list h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
}

.board-group + .board-group {
  margin-top: 26px;
}

.board-group h3 {
  margin: 0 0 8px;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-table-wrap,
.post-body table {
  overflow-x: auto;
  /* Scroll shadows: a soft edge appears on whichever side still has columns to scroll to, so a phone reader
     can tell a table is wider than the screen. Report tables are their own scroll box (display: block). The page-coloured covers scroll with the table and hide each
     shadow once that edge is reached; nothing shows when the table fits. */
  background:
    linear-gradient(to right, var(--color-page) 30%, transparent) left center / 48px 100% no-repeat local,
    linear-gradient(to left, var(--color-page) 30%, transparent) right center / 48px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--color-edge-shadow), transparent) left center / 14px 100% no-repeat
      scroll,
    radial-gradient(farthest-side at 100% 50%, var(--color-edge-shadow), transparent) right center / 14px 100% no-repeat
      scroll;
}

.board-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.board-table thead th {
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.board-table td,
.board-table tbody th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-line);
  vertical-align: middle;
}

.board-table tbody th {
  font-weight: 500;
  text-align: left;
}

.board-table tbody tr {
  transition: background-color 120ms ease;
}

.board-table tbody tr:hover {
  background: var(--color-raised);
}

.board-table .board-num {
  text-align: right;
  white-space: nowrap;
}

/* On a wide screen every table of one kind shares fixed column widths, so the scores, skills and counts
   line up from one list to the next down the page instead of each table sizing itself. From 1180px the
   members' column is wide enough to leave the source names room; narrower screens keep the automatic
   layout. */
@media (min-width: 1180px) {
  .board-leaders,
  .board-accuracy,
  .board-movers {
    table-layout: fixed;
  }

  .board-leaders th:nth-child(3) {
    width: 180px;
  }

  .board-leaders th:nth-child(n + 4),
  .board-accuracy th:nth-child(n + 3),
  .board-movers th:nth-child(n + 2) {
    width: 100px;
  }

  .board-accuracy th:nth-child(2) {
    width: 130px;
  }

  .board-accuracy th:nth-child(5) {
    width: 180px;
  }
}

.board-rank {
  width: 2.5em;
  color: var(--color-muted);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
}

.board-score {
  display: inline-block;
  min-width: 2.6em;
}

.board-meter {
  display: inline-block;
  width: 88px;
  height: 6px;
  margin-left: 10px;
  vertical-align: middle;
}

.board-meter-track {
  fill: var(--color-line);
}

.board-meter-fill {
  fill: var(--color-accent);
}

.board-meter-tick {
  fill: var(--color-text);
}

.board-muted {
  color: var(--color-muted);
}

.board-skill-good,
.board-move-up {
  color: var(--color-good);
}

.board-skill-bad,
.board-move-down {
  color: var(--color-accent);
}

.board-rule {
  max-width: 82ch;
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 12.5px;
}

.board-rule span {
  display: block;
}

.board-empty {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  font-style: italic;
}

.members-panel {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
}

.members-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.members-panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
}

.members-panel-head a {
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* On phones every panel's link sits under its heading, so a short heading doesn't pull its link up beside it. */
@media (max-width: 760px) {
  .members-panel-head {
    flex-direction: column;
    gap: 6px;
  }
}

.members-tiles {
  display: grid;
  /* At most three across, so the six leaders fill two even rows instead of leaving a row of four and a row of two. */
  grid-template-columns: repeat(auto-fill, minmax(max(210px, calc((100% - 24px) / 3)), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Exactly four leaders still share one row when it fits, rather than three and an orphan. Phones keep their two columns. */
@media (min-width: 761px) {
  .members-tiles-four {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }
}

.members-tile {
  display: grid;
  gap: 4px;
  align-content: start;
  height: 100%;
  padding: 14px 16px 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.members-tile:hover {
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

/* Tiles side by side share their label, figure and name rows, so a label that wraps to two lines (Against
   consensus on a phone) lowers the whole row's figures together instead of leaving them at uneven heights. */
@supports (grid-template-rows: subgrid) {
  .members-tiles > li {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
  }

  .members-tile {
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 4px;
  }
}

.members-tile-label {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.members-tile-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.members-tile-name {
  font-size: 14px;
}

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

.members-next li {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 6px 24px;
  padding: 12px 0;
  border-top: 1px solid var(--color-line);
}

.members-next span {
  color: var(--color-muted);
}

/* Sign-in: a single narrow column, no sidebar, native form controls in the paper palette. */
.members-sign-in {
  max-width: 440px;
  margin: 0 auto;
  padding-top: 56px;
}

.members-alert {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--color-accent);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  background: var(--color-raised);
  font-size: 14px;
}

.members-form {
  display: grid;
  gap: 18px;
}

.members-field {
  display: grid;
  gap: 6px;
}

.members-field span {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.members-field input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-page);
  color: var(--color-text);
  font: inherit;
  font-size: 16px;
}

.members-field input:hover {
  border-color: var(--color-muted);
}

.members-field input[aria-invalid='true'] {
  border-color: var(--color-accent);
}

/* The password reveal sits inside the end of the field, level with the input. */
.members-password {
  position: relative;
}

.members-password input {
  width: 100%;
  padding-right: 76px;
}

.members-reveal {
  position: absolute;
  right: 1px;
  bottom: 1px;
  min-width: 64px;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 0 3px 3px 0;
  background: none;
  color: var(--color-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.members-reveal:hover {
  text-decoration: underline;
}

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

/* Heard, not seen: the button reads "Show password" while showing just "Show". */
.members-reveal-hint {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.members-submit {
  justify-self: start;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--color-text);
  border-radius: var(--radius-control);
  background: var(--color-dough);
  color: var(--color-on-dough);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.members-submit:hover {
  background: var(--color-text);
  color: var(--color-page);
}

.members-field input:focus-visible,
.members-submit:focus-visible,
.members-passkey-button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* The passkey alternative under the form, revealed by members-sign-in.js only where the browser has WebAuthn. */
.members-passkey {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.members-passkey-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.members-passkey-divider::before,
.members-passkey-divider::after {
  flex: 1;
  border-top: 1px solid var(--color-line);
  content: '';
}

.members-passkey-button {
  justify-self: start;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.members-passkey-button:hover {
  text-decoration: underline;
}

.members-passkey-button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.members-passkey-status {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.members-form-note {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .members-nav a,
  .members-tile,
  .board-jump a,
  .board-table tbody tr {
    transition: none;
  }

  .members-tile:hover {
    transform: none;
  }
}

@media (max-width: 760px) {
  .members-shell {
    width: calc(100% - 40px);
  }

  .members-layout {
    display: block;
    padding-top: 18px;
  }

  /* Keep keyboard focus and in-page jumps clear of the bottom tab bar (its links are at least 48px tall). */
  html:has(.members-nav) {
    scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  /* The sidebar becomes a bottom tab bar on phones. */
  .members-nav {
    position: fixed;
    z-index: 20;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 4px max(8px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px))
      max(8px, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--color-line);
    background: var(--color-raised);
  }

  .members-nav > ul {
    display: flex;
  }

  .members-nav-group,
  .members-nav-group > ul {
    display: contents;
  }

  .members-nav-group + .members-nav-group {
    margin-top: 0;
  }

  .members-nav-heading {
    display: none;
  }

  .members-nav li {
    flex: 1 1 0;
    min-width: 0;
  }

  .members-nav a,
  .members-nav-soon {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    padding: 6px 4px;
    font-size: 12px;
    text-align: center;
  }

  .members-nav a[aria-current='page'] {
    background: none;
    box-shadow: inset 0 2px 0 var(--color-accent);
  }

  .members-soon-tag {
    padding: 0 5px;
    font-size: 9px;
  }

  .members-main {
    padding-bottom: 120px;
  }

  .members-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .members-tile {
    padding: 12px;
  }

  .members-tile-value {
    font-size: 24px;
  }

  .board-table {
    min-width: 440px;
    font-size: 13.5px;
  }

  .board-table td,
  .board-table tbody th,
  .board-table thead th {
    padding-right: 8px;
    padding-left: 8px;
  }

  .board-meter {
    display: none;
  }

  .members-next li {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* High-contrast modes drop box shadows and backgrounds, so the current section's bar is drawn as a border there. */
@media (forced-colors: active) {
  .members-nav a[aria-current='page'] {
    border-left: 2px solid Highlight;
  }
}

@media (max-width: 760px) and (forced-colors: active) {
  .members-nav a[aria-current='page'] {
    border-top: 2px solid Highlight;
    border-left: 0;
  }
}

@media print {
  body {
    background: white;
    color: black;
  }

  .site-shell {
    width: 100%;
  }

  .site-header,
  .section-subnav,
  .skip-link,
  .report-contents,
  .report-contents-compact,
  .section-link,
  .archive-cta,
  .back-link,
  .edition-nav,
  .site-footer nav,
  .reading-progress,
  .post-actions,
  .keyboard-hint,
  .keyboard-help,
  .archive-search,
  .read-link,
  .not-found-actions,
  .members-panel-head a,
  .members-header,
  .members-nav,
  .board-jump {
    display: none;
  }

  .report-layout {
    display: block;
  }

  /* A printed pulse keeps the footer's masthead and disclaimer, so the page still says where it came from
     and that it is research only, not financial advice. Its links have no use on paper. */
  .content-grid {
    min-height: 0;
  }

  .site-footer {
    margin-top: 24px;
    padding: 16px 0 0;
    break-inside: avoid;
  }

  /* Members pages print as one full-width column: the hidden sidebar no longer leaves its grid track behind,
     and tables print whole instead of clipped to a scroll box with on-screen scroll shadows. */
  .members-shell {
    width: 100%;
  }

  .members-layout {
    display: block;
    padding-top: 0;
  }

  .board-table-wrap {
    overflow: visible;
    background: none;
  }

  .board-table {
    min-width: 0;
    font-size: 9pt;
  }

  .post-body {
    font-size: 12pt;
  }

  .post-body h2,
  .post-body h3 {
    break-after: avoid;
  }

  /* Paper keeps the code block's edge, not its tint. */
  .post-body code {
    background: none;
  }

  .post-body pre {
    border: 1px solid var(--color-line);
    background: none;
    break-inside: avoid;
  }

  .post-body table {
    display: table;
    width: 100%;
    background: none;
    table-layout: fixed;
    font-size: 9pt;
  }

  /* Browsers hide closed details in an internal content box as well as through UA display rules. */
  .post-body details::details-content {
    content-visibility: visible;
    height: auto;
  }

  .post-body details > :not(summary) {
    display: block !important;
  }

  .post-body details > table {
    display: table !important;
  }

  .post-body summary {
    color: black;
  }

  a,
  .post-body a {
    color: black;
  }
}

/* Deep Research: the weekly study reads like a pulse body inside the members' column. */
.members-panel-note {
  margin: 0;
  color: var(--color-muted);
}

.research-body {
  max-width: 46rem;
  margin-top: 32px;
}

/* Members' admin dashboard: read-only facts and the publishing history. */
.admin-facts {
  display: grid;
  /* The four site facts sit two by two, or all four across the full width on a wide screen, never a short row with a gap beside it. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

@media (min-width: 1180px) {
  .admin-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.admin-facts div {
  padding: 14px 16px 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
}

.admin-facts dt {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-facts dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

/* On phones the site facts pair up like the overview tiles instead of stacking four full-width boxes. */
@media (max-width: 760px) {
  .admin-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-facts div {
    padding: 12px;
  }

  .admin-facts dd {
    font-size: 20px;
  }
}

.admin-table tbody th {
  font-weight: 400;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .admin-table .when-sep {
    display: none;
  }

  .admin-table .when-clock {
    display: block;
    color: var(--color-muted);
    font-size: 13px;
  }
}

.admin-result {
  font-weight: 600;
  white-space: nowrap;
}

.admin-result-ok {
  color: var(--color-good);
}

.admin-result-failed {
  color: var(--color-accent);
}

.members-panel-note + .board-table-wrap {
  margin-top: 16px;
}

/* ==========================================================================
   Unified the Cookie Lab Shell: Brand Lockup, Section Sub-nav, Home & Journal
   All surfaces consume only semantic tokens from @layer skin.
   ========================================================================== */

.site-brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.site-brand-sub {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.section-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-line);
}

.section-subnav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.section-subnav a:hover,
.section-subnav a[aria-current='page'],
.section-subnav a[aria-current='true'] {
  color: var(--color-accent);
}

.section-subnav a[aria-current='page'],
.section-subnav a[aria-current='true'] {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Home landing page */
.home-hero {
  padding: clamp(2.5rem, 4.5vw, 4rem) 0 clamp(2rem, 3.5vw, 3rem);
  border-bottom: var(--masthead-rule);
}

.home-hero > .eyebrow {
  margin: 0 0 var(--space-4);
}

.home-hero h1 {
  max-width: 22ch;
  margin: 0 0 var(--space-6);
  font-size: var(--text-display);
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.home-hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
}

.home-hero-lead {
  max-width: 40rem;
  margin: 0;
  color: var(--color-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.home-hero-lead strong {
  color: var(--color-text);
  font-weight: 600;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--color-line-strong, var(--color-line));
  border-radius: var(--radius-control);
  background: var(--color-sheet, var(--color-page));
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  .action-button {
    transition:
      background-color 140ms ease,
      border-color 140ms ease,
      color 140ms ease,
      box-shadow 140ms ease,
      scale 140ms ease-out;
  }

  .action-button:active {
    scale: 0.98;
  }
}

.action-button:hover {
  border-color: var(--color-text);
  background: var(--color-raised);
  color: var(--color-text);
  box-shadow: none;
}

.action-button.action-primary {
  border-color: var(--color-text);
  background: var(--color-dough);
  color: var(--color-on-dough);
}

.action-button.action-primary:hover {
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-page);
}

.lab-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4) var(--space-6);
  margin: 0;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-line);
}

.lab-strip dt {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lab-strip dd {
  margin: 0.25rem 0 0;
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.home-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--space-7);
  padding: var(--space-10) 0 var(--space-4);
}

.home-feature-card,
.home-journal-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.375rem, 2.5vw, 2rem);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-sheet, var(--color-page));
  box-shadow: var(--surface-shadow, none);
}

.home-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: var(--space-4);
}

.home-card-date {
  padding: 0.3125rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent-tint, var(--color-inset, var(--color-raised)));
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-box: trim-both cap alphabetic;
}

.home-card-more {
  color: var(--color-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}

.home-feature-card h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-2xl);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.home-feature-card h2 a {
  text-decoration: none;
}

.home-feature-card h2 a:hover {
  text-decoration: underline;
}

.home-card-summary {
  margin: 0 0 var(--space-5);
  color: var(--color-muted);
  font-size: 0.96875rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.home-regime-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 var(--space-4);
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-control);
  background: var(--color-inset, var(--color-raised));
  font-size: var(--text-sm);
}

.home-regime-label {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-line);
}

.home-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 0.8125rem;
}

.home-card-links a {
  color: var(--color-muted);
  text-decoration: none;
}

.home-card-links a:hover {
  color: var(--color-accent);
}

.home-journal-list {
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.home-journal-list li {
  border-bottom: 1px solid var(--color-line);
}

.home-journal-list li:last-child {
  border-bottom: 0;
}

.home-journal-list a {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.875rem 0;
  text-decoration: none;
}

.home-journal-list li:first-child a {
  padding-top: 0.25rem;
}

.home-journal-meta {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
}

.home-journal-title {
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  line-height: 1.28;
}

.home-journal-list a:hover .home-journal-title {
  color: var(--color-accent);
}

.home-journal-summary {
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.58;
  text-wrap: pretty;
}

.home-pillars {
  padding: var(--space-8) 0 var(--space-4);
}

.home-pillars .section-heading {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-line);
  margin-bottom: var(--space-6);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
}

.pillar > .eyebrow {
  margin: 0 0 var(--space-2);
}

.pillar h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.375rem;
  line-height: 1.25;
  text-wrap: balance;
}

.pillar p:last-child {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.68;
  text-wrap: pretty;
}

.home-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-top: var(--space-10);
  padding: clamp(1.375rem, 2.5vw, 2rem);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-inset, var(--color-raised));
}

.home-contact .eyebrow {
  margin: 0 0 var(--space-1);
}

.home-contact-lead {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

.home-contact-sub {
  margin: 0.25rem 0 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
  text-wrap: pretty;
}

/* Journal index & reading views */
.journal-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
}

.journal-filter-label {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.journal-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journal-tags button {
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-sheet, var(--color-page));
  color: var(--color-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease;
}

.journal-tags button:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.journal-tags button[aria-pressed='true'] {
  border-color: var(--color-accent);
  background: var(--color-accent-tint, var(--color-inset, var(--color-raised)));
  color: var(--color-accent);
  font-weight: 600;
}

.journal-tags button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.journal-row-tag {
  margin: 0 0 4px;
}

.journal-lead-summary {
  max-width: 42rem;
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.6;
}

.journal-feed-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 900px) {
  .home-spread,
  .pillar-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-brand-sub {
    display: none;
  }

  .home-hero {
    padding: 32px 0 28px;
  }

  .home-feature-card,
  .home-journal-card,
  .home-contact {
    padding: 20px;
  }

  .lab-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}
