/* ==========================================================================
   Codes Daily — design system
   The morning paper of UCL Cognitive and Decision Sciences
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;0,8..60,800;1,8..60,400&family=Inter+Tight:wght@400;500;600;700&display=swap');

:root {
  /* Paper & ink */
  --paper: #ffffff;
  --paper-2: #f6f6f6;
  --paper-warm: #f4f0e8;
  --ink: #121212;
  --ink-2: #333333;
  --muted: #5c5c5c;
  --rule: #dcdcdc;
  --rule-strong: #121212;

  /* Masthead */
  --navy: #0a2a57;
  --navy-deep: #061b3a;
  --navy-ink: #e9eef7;

  /* Pillars */
  --p-today: #b5121b;
  --p-faculty: #1456a8;
  --p-students: #0a6e6e;
  --p-alumni: #9a5200;
  --p-ucl: #5f3f8f;
  --p-field: #2f6b4f;
  --p-reading: #7a2e3a;
  --p-diary: #40536b;
  --p-life: #8a2f62;

  --t-today: #fbe9ea;
  --t-faculty: #e7eef9;
  --t-students: #e3f2f2;
  --t-alumni: #f8ecdc;
  --t-ucl: #ede7f5;
  --t-field: #e4efe9;
  --t-reading: #f5e6e8;
  --t-diary: #e8ecf1;
  --t-life: #f6e7ef;

  /* Defaults, overridden by [data-pillar] */
  --pillar: var(--ink);
  --tint: var(--paper-2);

  /* Type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --fs-splash: clamp(30px, 4.2vw, 48px);
  --fs-h2: clamp(22px, 2.3vw, 28px);
  --fs-h3: 20px;
  --fs-h4: 17px;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-meta: 12px;

  /* Layout */
  --container: 1300px;
  --gutter: 20px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
}

[data-pillar="today"]    { --pillar: var(--p-today);    --tint: var(--t-today); }
[data-pillar="faculty"]  { --pillar: var(--p-faculty);  --tint: var(--t-faculty); }
[data-pillar="students"] { --pillar: var(--p-students); --tint: var(--t-students); }
[data-pillar="alumni"]   { --pillar: var(--p-alumni);   --tint: var(--t-alumni); }
[data-pillar="ucl"]      { --pillar: var(--p-ucl);      --tint: var(--t-ucl); }
[data-pillar="field"]    { --pillar: var(--p-field);    --tint: var(--t-field); }
[data-pillar="reading"]  { --pillar: var(--p-reading);  --tint: var(--t-reading); }
[data-pillar="diary"]    { --pillar: var(--p-diary);    --tint: var(--t-diary); }
[data-pillar="life"]     { --pillar: var(--p-life);     --tint: var(--t-life); }

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--p-faculty); outline-offset: 2px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 740px) { .container { padding: 0 var(--gutter); } }

.sans { font-family: var(--sans); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */
.masthead {
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid var(--navy-deep);
}
.masthead__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding-top: var(--space-3); padding-bottom: var(--space-3);
}
.masthead__brand { display: flex; flex-direction: column; gap: 2px; }
.wordmark {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
  display: inline-block;
}
.wordmark:hover { text-decoration: none; }
.wordmark em { font-style: normal; color: #ffd166; }
.masthead__tagline {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--navy-ink);
  margin-top: 6px;
  letter-spacing: 0.01em;
}
.masthead__meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--navy-ink);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.masthead__meta strong { color: #fff; font-weight: 600; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; }
.masthead__links {
  display: none;
  font-family: var(--sans);
  font-size: 13px;
  gap: 16px;
}
.masthead__links a { color: #fff; }

@media (min-width: 740px) {
  .masthead__inner {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding-top: var(--space-4); padding-bottom: var(--space-4);
  }
  .masthead__meta { flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
  .masthead__links { display: flex; justify-content: flex-end; margin-bottom: 8px; }
}

/* Mobile: sticky compact masthead */
@media (max-width: 739px) {
  .briefing__title span { display: none; }
  .masthead { position: sticky; top: 0; z-index: 50; }
  .masthead__inner { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 9px; padding-bottom: 7px; }
  .wordmark { font-size: 28px; }
  .masthead__tagline { display: none; }
  .masthead__meta { font-size: 11px; gap: 4px; justify-content: flex-end; text-align: right; }
  .masthead__meta .chip--weather { display: none; }
  .masthead__meta > span:nth-child(2) { display: none; }
}

/* Automated-content notice, under the masthead */
.notice-bar { background: var(--paper-warm); border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: 11.5px; line-height: 1.4; color: var(--ink-2); padding: 5px 0; }
@media (max-width: 739px) { .notice-bar { font-size: 11px; } }

/* Pillar nav */
.pillars {
  background: var(--paper);
  border-bottom: 1px solid var(--rule-strong);
}
.pillars__list {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pillars__list::-webkit-scrollbar { display: none; }
.pillars__item { flex: 0 0 auto; }
.pillars__link {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px 10px 0;
  margin-right: 10px;
  border-top: 4px solid transparent;
  color: var(--ink);
  white-space: nowrap;
}
.pillars__link:hover,
.pillars__link[aria-current="page"] {
  border-top-color: var(--pillar);
  color: var(--pillar);
  text-decoration: none;
}
@media (min-width: 740px) {
  .pillars__list { justify-content: flex-start; gap: 0; }
  .pillars__link { padding: 10px 22px 12px 0; font-size: 16px; }
}
@media (max-width: 739px) {
  .pillars__link { padding: 8px 12px 8px 0; font-size: 14px; }
  .illo svg.chart + .illo__caption { display: none; }
  .stat { padding: 0 10px; }
  .stat b { font-size: 22px; }
  .stat:nth-child(n+5) { display: none; }
  /* Secondary stories: thumbnail to the right of the text on phones */
  .story { display: grid; grid-template-columns: minmax(0, 1fr) 96px; column-gap: 14px; align-items: start; }
  .story > * { grid-column: 1; }
  .story > .illo { grid-column: 2; grid-row: 1 / 3; aspect-ratio: 1 / 1; margin-top: 3px; }
  .story > .trail, .story > .meta, .story > .source-link { grid-column: 1 / -1; }
  .story > .illo .illo__glyph { font-size: 52px; }
  .story > .illo .illo__caption { display: none; }
  .story > .kicker { margin-top: 0; }
  .story > .connection { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Typographic components
   -------------------------------------------------------------------------- */
.kicker {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  color: var(--pillar);
  letter-spacing: 0.005em;
  line-height: 1.2;
}
.kicker span { color: var(--muted); font-weight: 500; }
.headline {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin-top: 6px;
}
.headline a:hover { text-decoration: underline; }
.headline--splash { font-size: var(--fs-splash); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.headline--h2 { font-size: var(--fs-h2); }
.headline--h3 { font-size: var(--fs-h3); }
.headline--h4 { font-size: var(--fs-h4); line-height: 1.2; }
.standfirst {
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-2);
  margin-top: 10px;
}
.standfirst--small { font-size: 15px; margin-top: 8px; }
.trail { font-size: 15px; color: var(--ink-2); margin-top: 8px; line-height: 1.45; }
.meta {
  font-family: var(--sans);
  font-size: var(--fs-meta);
  color: var(--muted);
}
.meta strong { color: var(--ink); font-weight: 600; }

/* Signature element: the connection line */
.connection {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 10px;
  padding-left: 14px;
  position: relative;
}
.connection::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 7px;
  height: 7px;
  background: var(--pillar);
}

/* Archive items */
.kicker--archive { color: var(--muted); }
.kicker--archive span { color: var(--muted); font-weight: 500; }
.illo.illo--archive { background: var(--paper-warm); color: var(--ink-2); border-bottom-color: var(--ink-2); }
.illo.illo--archive .illo__glyph { font-size: clamp(44px, 7vw, 84px); font-weight: 400; font-style: italic; letter-spacing: -0.02em; }
.story--archive .connection::before,
.archive-note::before { background: var(--muted); }
.archive-note { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Lock marker for non-public items */
.lock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}
.lock svg { width: 10px; height: 11px; }

/* Section headings */
.section {
  border-top: 1px solid var(--rule-strong);
  padding-top: var(--space-3);
  margin-top: var(--space-6);
}
.section--tinted {
  background: var(--tint);
  border-top: 0;
  padding: var(--space-4) var(--space-4) var(--space-5);
  margin-left: calc(-1 * var(--space-4));
  margin-right: calc(-1 * var(--space-4));
}
@media (min-width: 740px) {
  .section--tinted { padding: var(--space-4) var(--gutter) var(--space-5); margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
}
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.section__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--pillar);
}
.section__title a:hover { text-decoration: none; border-bottom: 2px solid var(--pillar); }
.section__sub { font-family: var(--sans); font-size: 13px; color: var(--muted); }
/* Phones: the subheadline goes under the headline */
@media (max-width: 739px) { .section__head { flex-direction: column; align-items: flex-start; gap: 2px; } }
/* Section tabs land with the headline in view, below the sticky masthead and tabs */
main [id] { scroll-margin-top: 12px; }
@media (max-width: 739px) { main [id] { scroll-margin-top: 64px; } }   /* the masthead stays at the top on phones */
.section__more { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--pillar); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Grid with thin rules
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.grid > * { padding: 0 0 var(--space-4); border-top: 1px solid var(--rule); padding-top: var(--space-3); }
.grid > *:first-child { border-top: 0; padding-top: 0; }

@media (min-width: 740px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 0; row-gap: 0; }
  .grid > * {
    border-top: 0;
    padding: 0 var(--gutter) var(--space-4) var(--gutter);
    border-left: 1px solid var(--rule);
  }
  .grid > *:first-child,
  .grid > .first-col { border-left: 0; padding-left: 0; }
  .grid > .row-top { border-top: 1px solid var(--rule); padding-top: var(--space-3); }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .span-9 { grid-column: span 9; }
  .span-12 { grid-column: span 12; }
}
@media (min-width: 740px) and (max-width: 1023px) {
  .grid > .md-first { border-left: 0; padding-left: 0; }
  .md-span-6 { grid-column: span 6; }
  .md-span-12 { grid-column: span 12; }
}

/* Compact list of items inside a column */
.list > li { padding: 10px 0; border-top: 1px solid var(--rule); }
.list > li:first-child { border-top: 0; padding-top: 0; }
.list--rules > li:first-child { border-top: 1px solid var(--rule); padding-top: 10px; }

/* --------------------------------------------------------------------------
   Illustration placeholders
   -------------------------------------------------------------------------- */
.illo {
  background: var(--tint);
  color: var(--pillar);
  aspect-ratio: 5 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  border-bottom: 3px solid var(--pillar);
}
.illo--wide { aspect-ratio: 16 / 9; }
.illo--square { aspect-ratio: 1 / 1; }
.illo--navy { background: var(--navy); color: #fff; border-bottom-color: var(--pillar); }
.illo__glyph {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(64px, 12vw, 140px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.illo__caption {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-family: var(--sans);
  font-size: 11px;
  color: inherit;
  opacity: 0.85;
}
.illo svg.chart { width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   Today briefing strip
   -------------------------------------------------------------------------- */
.briefing {
  margin-top: var(--space-4);
  border-top: 4px solid var(--p-today);
  background: var(--paper);
}
.briefing__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 0 6px;
}
.briefing__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--p-today);
}
.briefing__title span { color: var(--ink); font-weight: 600; }
.deadlines { display: flex; flex-wrap: wrap; gap: 8px; }
.deadline {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border: 1px solid var(--ink);
  color: var(--ink);
  white-space: nowrap;
}
.deadline strong { color: var(--p-today); }
.deadline--soon { background: var(--ink); color: #fff; border-color: var(--ink); }
.deadline--soon strong { color: #ffd166; }

.timeline {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
}
.slot {
  padding: 12px 0 14px;
  border-top: 1px solid var(--rule);
  position: relative;
}
.slot:first-child { border-top: 0; }
.slot__time {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--p-today);
}
.slot__module { font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--ink); margin-top: 6px; }
.slot__title { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.2; margin-top: 4px; }
.slot__where { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 4px; }
.slot__primer { font-size: 14px; color: var(--ink-2); margin-top: 8px; line-height: 1.4; }
.slot__primer strong { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--p-today); text-transform: uppercase; letter-spacing: 0.04em; }
.readchip {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  color: var(--ink);
}
.readchip span { color: var(--muted); font-weight: 500; }
.readchip a { text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 740px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slot { border-top: 0; border-left: 1px solid var(--rule); padding: 12px var(--gutter) 14px; }
  .slot:first-child { border-left: 0; padding-left: 0; }
  .slot:last-child { padding-right: 0; }
}

/* --------------------------------------------------------------------------
   Splash
   -------------------------------------------------------------------------- */
.splash { margin-top: var(--space-4); border-top: 1px solid var(--rule-strong); padding-top: var(--space-3); }
.splash__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 740px) {
  .splash__grid { grid-template-columns: 7fr 5fr; gap: 0; }
  .splash__text { padding-right: var(--gutter); }
  .splash__figure { border-left: 1px solid var(--rule); padding-left: var(--gutter); }
}
@media (min-width: 1024px) { .splash__grid { grid-template-columns: 8fr 4fr; } }
.splash .standfirst { max-width: 62ch; }

/* --------------------------------------------------------------------------
   The Daily Experiment
   -------------------------------------------------------------------------- */
.experiment {
  margin-top: var(--space-6);
  border-top: 4px solid var(--ink);
  background: var(--paper-warm);
  padding: var(--space-4);
}
.experiment__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 740px) {
  .experiment { padding: var(--space-4) var(--gutter) var(--space-5); }
  .experiment__grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .experiment__today { padding-right: var(--gutter); }
  .experiment__yesterday { border-left: 1px solid #c9c2b4; padding-left: var(--gutter); }
}
.experiment__label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.experiment__label small { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); margin-left: 8px; }
.experiment__q {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  margin-top: 10px;
  letter-spacing: -0.01em;
}
.experiment__q small { display: block; font-weight: 400; font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.answers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.answer {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 16px;
  background: var(--paper);
  border: 1px solid var(--ink);
  color: var(--ink);
  min-width: 72px;
}
.answer:hover { background: var(--ink); color: #fff; }
.answer[aria-pressed="true"] { background: var(--ink); color: #fff; }
.answers[data-locked] .answer { cursor: default; opacity: 0.55; }
.answers[data-locked] .answer[aria-pressed="true"] { opacity: 1; }
.experiment__result {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  margin-top: 12px;
  padding: 8px 10px;
  background: var(--paper);
  border-left: 3px solid var(--ink);
}
.experiment__result[hidden] { display: none; }
.experiment__count { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 10px; }

.bars { margin-top: 14px; display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 1fr; gap: 4px; font-family: var(--sans); font-size: 13px; }
.bar__label { color: var(--ink); font-weight: 500; }
.bar__track { height: 20px; background: #e6e0d3; display: flex; align-items: center; }
.bar__fill { height: 100%; background: var(--ink); flex: 0 0 auto; }
.bar--ref .bar__fill { background: var(--p-reading); }
.bar__value { margin-left: 8px; font-weight: 700; font-size: 12px; color: var(--ink); white-space: nowrap; }
@media (min-width: 480px) { .bar { grid-template-columns: 170px 1fr; align-items: center; } }
.experiment__expl { font-size: 15px; color: var(--ink-2); margin-top: 14px; line-height: 1.45; }
.experiment__expl cite { font-style: normal; font-family: var(--sans); font-size: 12px; color: var(--muted); display: block; margin-top: 6px; }

/* --------------------------------------------------------------------------
   Reading Room
   -------------------------------------------------------------------------- */
.classic {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.classic__ref { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.2; }
.classic__ref em { font-style: italic; font-weight: 400; }
.classic__why { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.classic__where {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--pillar);
  font-weight: 600;
}
.cites > li { display: grid; grid-template-columns: 1fr; gap: 2px; }
.cites__ref { font-size: 15px; line-height: 1.35; }
.cites__ref strong { font-weight: 700; }
.cites__where { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.cites__where b { color: var(--pillar); font-weight: 600; }

/* --------------------------------------------------------------------------
   Diary
   -------------------------------------------------------------------------- */
.diary { display: grid; grid-template-columns: 1fr; }
.diary__day { border-top: 1px solid var(--rule); padding: 10px 0; display: grid; grid-template-columns: 72px 1fr; gap: 10px; }
.diary__day:first-child { border-top: 0; padding-top: 0; }
.diary__date { font-family: var(--sans); font-weight: 700; font-size: 13px; color: var(--pillar); line-height: 1.3; }
.diary__date small { display: block; font-weight: 500; color: var(--muted); }
.diary__events > li { font-size: 15px; line-height: 1.35; padding: 3px 0; }
.diary__events time { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink); margin-right: 6px; }
.diary__events .where { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.diary__tag { font-family: var(--sans); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 1px 5px; color: #fff; background: var(--pillar); margin-left: 6px; vertical-align: middle; }
@media (min-width: 740px) {
  .diary { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .diary__day { border-top: 0; border-left: 1px solid var(--rule); padding: 0 12px 12px; display: block; }
  .diary__day:first-child { border-left: 0; padding-left: 0; }
  .diary__day:last-child { padding-right: 0; }
  .diary__date { padding-bottom: 6px; border-bottom: 2px solid var(--pillar); margin-bottom: 6px; }
  .diary__events > li { font-size: 14px; }
}

/* --------------------------------------------------------------------------
   Forms: tip box & subscription
   -------------------------------------------------------------------------- */
.boxes { display: grid; grid-template-columns: 1fr; gap: var(--space-4); margin-top: var(--space-6); }
@media (min-width: 740px) { .boxes { grid-template-columns: 1fr 1fr; gap: var(--gutter); } }
.box {
  border-top: 4px solid var(--pillar);
  background: var(--tint);
  padding: var(--space-4);
}
.box--plain { background: var(--paper-2); border-top-color: var(--ink); }
.box__title { font-family: var(--serif); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1.1; }
.box__lede { font-size: 15px; color: var(--ink-2); margin-top: 8px; }
.form { margin-top: 14px; display: grid; gap: 10px; }
.field { display: grid; gap: 4px; }
.field label, .field legend { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink); }
.input, .select, .textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 9px 10px;
  border: 1px solid #8a8a8a;
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
}
.textarea { min-height: 80px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.radios { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.radios label { display: flex; gap: 8px; align-items: baseline; font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink); }
.radios input { accent-color: var(--ink); }
.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 0;
  justify-self: start;
}
.btn:hover { background: #000; }
.btn--pillar { background: var(--pillar); border-color: var(--pillar); }
.btn--pillar:hover { filter: brightness(0.9); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--small { padding: 6px 10px; font-size: 13px; }
.fineprint { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  margin-top: var(--space-7);
  background: var(--navy);
  color: var(--navy-ink);
  padding: var(--space-6) 0 var(--space-6);
  font-family: var(--sans);
  font-size: 13px;
}
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 740px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gutter); } }
.footer .wordmark { font-size: 40px; }
.footer__about { margin-top: 10px; max-width: 48ch; line-height: 1.5; }
.footer h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 8px; }
.footer li { padding: 3px 0; }
.footer__bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.25);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 12px;
}
.footer__proto { border: 1px solid rgba(255,255,255,0.4); padding: 2px 6px; }

/* --------------------------------------------------------------------------
   Article page
   -------------------------------------------------------------------------- */
.article { margin-top: var(--space-5); }
.article__head { border-top: 1px solid var(--rule-strong); padding-top: var(--space-3); }
.article__head .headline { max-width: 20ch; }
.article__head .standfirst { max-width: 60ch; font-size: 20px; }
.article__grid { display: grid; grid-template-columns: 1fr; margin-top: var(--space-4); }
@media (min-width: 740px) { .article__grid { grid-template-columns: 7fr 5fr; } }
@media (min-width: 1024px) { .article__grid { grid-template-columns: 1fr 300px 300px; } }
.article__meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.article__meta strong { color: var(--ink); font-weight: 600; }
.article__body { max-width: 640px; }
.article__body p { margin-top: 18px; font-size: 17px; line-height: 1.6; }
.article__body p:first-of-type { margin-top: 0; }
.article__body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 3.4em;
  line-height: 0.8;
  float: left;
  margin: 6px 8px 0 0;
  color: var(--pillar);
}
.article__body h3 { font-family: var(--serif); font-weight: 700; font-size: 20px; margin-top: 28px; }
.article__body blockquote { margin: 22px 0 0; padding-left: 16px; border-left: 3px solid var(--pillar); font-size: 20px; line-height: 1.4; font-weight: 600; }
.article__body blockquote cite { display: block; font-style: normal; font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 6px; }
.article__body figure { margin: 24px 0 0; }
.article__body figcaption { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 6px; }
.source {
  margin-top: 24px;
  padding: 12px 14px;
  background: var(--paper-2);
  border-left: 3px solid var(--ink);
  font-family: var(--sans);
  font-size: 13px;
}
.source strong { display: block; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; margin-bottom: 4px; }
.source a { text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.connection--big { font-size: 14px; margin-top: 24px; padding: 12px 0 12px 18px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.connection--big::before { top: 18px; width: 9px; height: 9px; }
.aside { padding-top: var(--space-4); }
@media (min-width: 740px) { .aside { border-left: 1px solid var(--rule); padding: 0 0 0 var(--gutter); margin-left: var(--gutter); } }
@media (min-width: 1024px) { .aside + .aside { margin-left: 0; } .article__main { padding-right: 0; } .aside { margin-left: var(--gutter); } }
.aside__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pillar);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--pillar);
  margin-bottom: 6px;
}
.aside .list > li { padding: 10px 0; }
.aside .headline--h4 { font-size: 16px; }

/* --------------------------------------------------------------------------
   Newsroom (back office)
   -------------------------------------------------------------------------- */
.newsroom-bar {
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  padding: 6px 0;
}
.newsroom-bar .container { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }
.newsroom-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.newsroom { margin-top: var(--space-5); font-family: var(--sans); }
.newsroom__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px; border-bottom: 1px solid var(--rule-strong); padding-bottom: 10px; }
.newsroom__title { font-family: var(--serif); font-weight: 800; font-size: 32px; letter-spacing: -0.02em; line-height: 1; }
.newsroom__title small { display: block; font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.stats { display: flex; flex-wrap: wrap; gap: 0; }
.stat { padding: 0 16px; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 800; line-height: 1; }
.stat span { font-size: 12px; color: var(--muted); }
.newsroom__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); margin-top: var(--space-4); }
.newsroom__grid > * { min-width: 0; }
@media (min-width: 1024px) { .newsroom__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); } .newsroom__uploads { border-left: 1px solid var(--rule); padding-left: var(--gutter); } }

.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.panel__title { font-family: var(--serif); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.panel__tools { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { font-family: var(--sans); font-size: 12px; font-weight: 600; padding: 4px 8px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.queue > li {
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 740px) { .queue > li { grid-template-columns: minmax(0, 1fr) 150px; gap: var(--gutter); } }
.queue__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tier {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  color: #fff;
  background: var(--muted);
  text-transform: uppercase;
}
.tier--1 { background: var(--ink); }
.tier--2 { background: #3b3b3b; }
.tier--3 { background: #6a6a6a; }
.tier--4 { background: #8e8e8e; }
.confidence { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.confidence__track { width: 60px; height: 6px; background: var(--rule); }
.confidence__fill { height: 100%; background: var(--p-field); }
.confidence--low .confidence__fill { background: var(--p-today); }
.confidence--mid .confidence__fill { background: var(--p-alumni); }
.queue__headline { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.2; margin-top: 6px; letter-spacing: -0.01em; }
.queue__standfirst { font-family: var(--serif); font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.queue__source { font-size: 12px; color: var(--muted); margin-top: 6px; }
.queue__source a { text-decoration: underline; text-underline-offset: 2px; }
.queue__source .match { color: var(--ink); font-weight: 600; }
.queue__actions { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
@media (min-width: 740px) { .queue__actions { flex-direction: column; align-items: stretch; } .queue__actions .btn { justify-self: stretch; text-align: center; } }
.btn--approve { background: var(--p-field); border-color: var(--p-field); }
.btn--approve:hover { background: #245540; }
.btn--spike { background: transparent; color: var(--p-today); border-color: var(--p-today); }
.btn--spike:hover { background: var(--p-today); color: #fff; }
.queue > li[data-state="approved"] { background: var(--t-field); margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.queue > li[data-state="spiked"] { opacity: 0.45; }
.queue > li[data-state="spiked"] .queue__headline { text-decoration: line-through; }
.state-note { font-size: 12px; font-weight: 600; color: var(--p-field); }
.queue > li[data-state="spiked"] .state-note { color: var(--p-today); }

.upload { border-top: 1px solid var(--rule); padding: 14px 0; }
.upload:first-of-type { border-top: 0; }
.upload__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.upload__title { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.upload__meta { font-size: 12px; color: var(--muted); }
.dropzone {
  margin-top: 8px;
  border: 1px dashed #8a8a8a;
  background: var(--paper-2);
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.dropzone strong { color: var(--ink); font-weight: 600; }
.dropzone:hover { border-color: var(--ink); background: #efefef; }
.upload__row { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
@media (min-width: 480px) { .upload__row { grid-template-columns: 1fr 1fr; } }
.upload__row .field label { font-size: 11px; }
.tiers { display: flex; flex-wrap: wrap; gap: 6px; }
.tiers label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 8px; border: 1px solid var(--rule); background: var(--paper); }
.tiers input { accent-color: var(--ink); }
.tiers small { color: var(--muted); }
.recent { font-size: 12px; color: var(--muted); margin-top: 8px; }
.recent b { color: var(--ink); font-weight: 600; }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--rule); margin-top: 8px; }
.tab { font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 8px 12px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabpanel[hidden] { display: none; }
.tabpanel { padding-top: 10px; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--pillar);
  background: var(--tint);
  padding: 2px 6px;
  display: inline-block;
}
.relevant { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 6px; }
.relevant b { color: var(--pillar); font-weight: 600; }
.nowrap { white-space: nowrap; }

@media print {
  .masthead, .pillars { position: static; }
  .footer { background: none; color: var(--ink); }
}

/* --------------------------------------------------------------------------
   Weekend edition
   -------------------------------------------------------------------------- */
.masthead--weekend .wordmark small {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.32em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd166;
  margin-left: 0.3em;
  vertical-align: 0.45em;
}
.masthead--weekend .masthead__tagline { font-family: var(--serif); font-style: italic; font-size: 16px; color: #fff; }
.longread { margin-top: var(--space-4); border-top: 1px solid var(--rule-strong); padding-top: var(--space-3); }
.longread__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 900px) { .longread__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 0; } .longread__aside { border-left: 1px solid var(--rule); padding-left: var(--gutter); margin-left: var(--gutter); } }
.longread .headline--splash { max-width: 22ch; }
.archive-stamp {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--ink-2);
  padding: 3px 8px;
  margin-top: 10px;
}
.qa { max-width: 680px; margin-top: var(--space-4); }
.qa dt { font-family: var(--sans); font-weight: 700; font-size: 15px; line-height: 1.4; margin-top: 22px; color: var(--pillar); }
.qa dd { margin: 6px 0 0; font-size: 17px; line-height: 1.6; }
.qa dd + dd { margin-top: 14px; }
.weekexp { display: grid; grid-template-columns: 1fr; gap: 0; }
.weekexp__item { padding: 14px 0; border-top: 1px solid var(--rule); }
.weekexp__item:first-child { border-top: 0; padding-top: 0; }
.weekexp__day { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-today); }
.weekexp__q { font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1.25; margin-top: 4px; }
.weekexp .bars { margin-top: 10px; gap: 6px; }
.weekexp .bar { grid-template-columns: 1fr; }
.weekexp .bar__label { font-size: 12px; }
.weekexp .bar__track { height: 14px; background: #ebebeb; }
.weekexp .bar__value { font-size: 11px; }
.weekexp__note { font-size: 14px; color: var(--ink-2); margin-top: 8px; line-height: 1.4; }
.weekexp__note cite { font-style: normal; font-family: var(--sans); font-size: 11px; color: var(--muted); display: block; margin-top: 2px; }
@media (min-width: 740px) {
  .weekexp { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .weekexp__item { border-top: 0; border-left: 1px solid var(--rule); padding: 0 14px 14px; }
  .weekexp__item:first-child { border-left: 0; padding-left: 0; }
  .weekexp__item:last-child { padding-right: 0; }
}
.recap { display: grid; grid-template-columns: 1fr; }
.recap__module { padding: 12px 0; border-top: 1px solid var(--rule); }
.recap__module:first-child { border-top: 0; padding-top: 0; }
.recap__name { font-family: var(--sans); font-weight: 700; font-size: 13px; color: var(--pillar); }
.recap__topic { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.2; margin-top: 4px; }
.recap__text { font-size: 15px; color: var(--ink-2); margin-top: 6px; line-height: 1.45; }
@media (min-width: 740px) {
  .recap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .recap__module { border-top: 0; border-left: 1px solid var(--rule); padding: 0 var(--gutter) 12px; }
  .recap__module:first-child { border-left: 0; padding-left: 0; }
  .recap__module:last-child { padding-right: 0; }
}
.quiz { counter-reset: q; }
.quiz__item { padding: 14px 0; border-top: 1px solid var(--rule); }
.quiz__item:first-child { border-top: 0; padding-top: 0; }
.quiz__q { font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.3; }
.quiz__q::before { counter-increment: q; content: counter(q) ". "; color: var(--pillar); }
.quiz__module { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 2px; }
.quiz__reveal { margin-top: 8px; }
.quiz__answer { margin-top: 8px; font-size: 15px; color: var(--ink-2); padding: 8px 10px; background: var(--paper-2); border-left: 3px solid var(--pillar); line-height: 1.45; }
.quiz__answer[hidden] { display: none; }
.profile { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 480px) { .profile { grid-template-columns: 140px minmax(0, 1fr); gap: var(--gutter); } }
.profile__facts { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.profile__facts b { color: var(--ink); font-weight: 600; }
.explainer { max-width: 680px; }
.explainer p { margin-top: 16px; font-size: 17px; line-height: 1.6; }
.explainer p:first-of-type { margin-top: 8px; }
.explainer h3 { font-family: var(--serif); font-size: 19px; font-weight: 700; margin-top: 24px; }

/* --------------------------------------------------------------------------
   Newsroom: exception-based
   -------------------------------------------------------------------------- */
.ready {
  margin-top: var(--space-5);
  background: var(--t-field);
  border-top: 4px solid var(--p-field);
  padding: var(--space-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  font-family: var(--sans);
}
@media (min-width: 740px) { .ready { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: var(--space-4) var(--gutter); } }
.ready__title { font-family: var(--serif); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
.ready__title b { color: var(--p-field); }
.ready__sub { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.ready__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.health {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--space-4);
  border-top: 1px solid var(--rule-strong);
  font-family: var(--sans);
}
@media (min-width: 740px) { .health { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.health__item { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 740px) { .health__item { border-bottom: 0; border-left: 1px solid var(--rule); padding-left: 14px; } .health__item:first-child { border-left: 0; padding-left: 0; } }
.health__label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.health__value { font-family: var(--serif); font-weight: 800; font-size: 26px; line-height: 1.1; margin-top: 4px; letter-spacing: -0.02em; }
.health__value small { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: 0; color: var(--muted); }
.health__note { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.ok { color: var(--p-field); font-weight: 600; }
.warn { color: var(--p-alumni); font-weight: 600; }
.panel { margin-top: var(--space-6); }
.panel--optional { background: var(--paper-warm); padding: var(--space-4); border-top: 4px solid var(--ink); }
@media (min-width: 740px) { .panel--optional { padding: var(--space-4) var(--gutter); } }
.panel--optional .panel__head { border-bottom-color: #c9c2b4; }
.panel__lede { font-family: var(--sans); font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.social { margin-top: 6px; }
.social > li { padding: 14px 0; border-bottom: 1px solid #c9c2b4; display: grid; grid-template-columns: 1fr; gap: 10px; }
.social > li:last-child { border-bottom: 0; }
@media (min-width: 740px) { .social > li { grid-template-columns: minmax(0, 1fr) 150px; gap: var(--gutter); } }
.post {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  margin-top: 8px;
  max-width: 560px;
}
.post__who { font-weight: 600; font-size: 13px; }
.post__who span { color: var(--muted); font-weight: 400; }
.post__text { margin-top: 4px; }
.social__why { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 8px; }
.social > li[data-state="approved"] { background: var(--t-field); margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.social > li[data-state="held"] { opacity: 0.55; }
.slots { margin-top: 4px; }
.slots > li { display: grid; grid-template-columns: 1fr; gap: 6px 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-family: var(--sans); }
@media (min-width: 740px) { .slots > li { grid-template-columns: 150px minmax(0, 1fr) 90px; align-items: start; } }
.slots__slot { font-size: 12px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em; }
.slots__slot small { display: block; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.slots__title { font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1.25; }
.slots__why { font-size: 12px; color: var(--muted); margin-top: 3px; }
.why {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 6px;
  margin-right: 6px;
  color: #fff;
  background: var(--muted);
  vertical-align: 1px;
}
.why--fresh { background: var(--p-field); }
.why--archive { background: var(--ink-2); }
.why--scheduled { background: var(--p-diary); }

/* Diary in a narrow column: keep the stacked layout at every width */
.diary.diary--stack { grid-template-columns: 1fr; }
.diary--stack .diary__day { border-left: 0; border-top: 1px solid var(--rule); padding: 10px 0; display: grid; grid-template-columns: 64px 1fr; gap: 10px; }
.diary--stack .diary__day:first-child { border-top: 0; padding-top: 0; }
.diary--stack .diary__date { padding-bottom: 0; border-bottom: 0; margin-bottom: 0; }
.why--auto { background: var(--p-faculty); }
.slots__action { justify-self: start; }
@media (min-width: 740px) { .slots__action { justify-self: end; } }
.slots > li[data-state="spiked"] .slots__title { text-decoration: line-through; color: var(--muted); }
.slots > li[data-state="spiked"] .slots__why { color: var(--p-today); font-weight: 600; }
.plan { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 13px; margin-top: 4px; }
.plan th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule-strong); }
.plan td { vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); line-height: 1.4; }
.plan td:first-child { font-weight: 700; white-space: nowrap; }
.plan td small { display: block; color: var(--muted); }
.plan tr.today td { background: var(--t-today); }
.plan-wrap { overflow-x: auto; }
@media (max-width: 739px) { .plan { min-width: 640px; } }

/* Quiz reveal (weekend edition) */
.answer--correct, .answers[data-locked] .answer.answer--correct { background: #2f6b4f; border-color: #2f6b4f; color: #fff; opacity: 1; }
.answer--wrong, .answers[data-locked] .answer.answer--wrong { background: #b5121b; border-color: #b5121b; color: #fff; opacity: 1; }

/* Phone widths: nothing may push the page wider than the screen. */
.masthead__inner > *, .grid > *, .timeline > *, .briefing > *, .wk > * { min-width: 0; }
@media (max-width: 739px) {
  .chip, .deadline { white-space: normal; }
  .masthead__meta { justify-content: flex-start; }
  .readchip { display: block; }
  .slot__title, .headline, .wk__line, .cites__ref { overflow-wrap: anywhere; }
}

.thread-tag { font-family: var(--sans); font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 6px; letter-spacing: .02em; }
.thread-tag::before { content: ""; display: inline-block; width: 14px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 6px; }
