/* InfoTrend — a bold daily AI edition (PLAN.md §18).
   Condensed grotesque, square corners, heavy rules, two tilted colour bands, duotone pictures. */

/* --- Fonts: Archivo variable (wght 100–900, wdth 62–125), SIL OFL, self-hosted --------------------- */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo"; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/archivo-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/archivo-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens ------------------------------------------------------------------------------------------ */
:root {
  color-scheme: light;
  --paper: #e6e2d7;
  --ink: #2b1f17;
  --ink-2: #6b5a4c;
  --accent: #245a5e;
  --slab: #2f6769;
  --on-slab: #ffffff;
  --on-ink: #e6e2d7;
  --tint: #7a5438;
  --line: rgba(43, 31, 23, .22);
  --wash: #dbd6c9;
  --mark: rgba(47, 103, 105, .18);
  --alert: #9a3f2c;
  --trend-grid: #cdc6b6;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
  --series-5: #e87ba4; --series-6: #008300; --series-7: #4a3aa7; --series-8: #e34948;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --small: .8125rem;
  --rule: .3rem;
  --gutter: 2rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #1f1914;
    --ink: #ece4d4;
    --ink-2: #ab9c8c;
    --accent: #7db3b0;
    --slab: #2f6769;
    --on-slab: #ffffff;
    --on-ink: #1f1914;
    --tint: #8a6446;
    --line: rgba(236, 228, 212, .2);
    --wash: #2c241d;
    --mark: rgba(125, 179, 176, .26);
    --alert: #e0896f;
    --trend-grid: #3a3029;
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
    --series-5: #d55181; --series-6: #008300; --series-7: #9085e9; --series-8: #e66767;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1f1914;
  --ink: #ece4d4;
  --ink-2: #ab9c8c;
  --accent: #7db3b0;
  --slab: #2f6769;
  --on-slab: #ffffff;
  --on-ink: #1f1914;
  --tint: #8a6446;
  --line: rgba(236, 228, 212, .2);
  --wash: #2c241d;
  --mark: rgba(125, 179, 176, .26);
  --alert: #e0896f;
  --trend-grid: #3a3029;
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
  --series-5: #d55181; --series-6: #008300; --series-7: #9085e9; --series-8: #e66767;
}

/* --- Base -------------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--paper);
  color: var(--ink);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
/* The tilted bands reach past the viewport. Clipping here (not on body, which would hand the overflow
   to the viewport) keeps the page free of horizontal scrolling. */
.page { overflow-x: clip; min-height: 100vh; }
h1, h2, h3 { font-stretch: 62%; font-weight: 900; line-height: 1; margin: 0; }
h1 { font-size: 3rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3125rem; }
p { margin: 0 0 .75rem; }
small { font-size: var(--small); }
code { font-family: var(--mono); font-size: .875em; background: var(--wash); padding: 0 .2em; }
mark { background: var(--mark); color: inherit; box-shadow: inset 0 -2px 0 var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
summary { cursor: pointer; font-stretch: 75%; font-weight: 700; margin: .75rem 0; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }

.wrap { width: min(92rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--on-ink); padding: .5rem .75rem;
  font-stretch: 75%; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* --- Masthead: the tilted slab band ------------------------------------------------------------------ */
.masthead {
  position: relative;
  isolation: isolate;
  padding: 2rem 0 .8rem;
}
.masthead::before {
  content: "";
  position: absolute;
  inset: 1rem -5vw .1rem;
  z-index: -1;
  background: var(--slab);
  transform: rotate(-.9deg);
}
.masthead .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.brand {
  color: var(--on-slab);
  text-decoration: none;
  text-transform: uppercase;
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: .78;
  letter-spacing: -.01em;
}
.brand:hover { color: var(--on-slab); }
.tagline { margin: 0 0 .2rem; color: var(--on-slab); font-stretch: 75%; font-weight: 600; font-size: 1rem; line-height: 1.15; }

/* --- Navigation -------------------------------------------------------------------------------------- */
.site-nav { margin-top: .5rem; border-bottom: var(--rule) solid var(--ink); }
.site-nav .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.25rem; padding-block: .55rem; }
.main-nav { display: flex; flex-wrap: wrap; gap: 0 1.3rem; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  display: block;
  padding: .15rem 0;
  font-size: 1.1875rem;
  font-stretch: 75%;
  font-weight: 700;
  text-decoration: none;
}
.main-nav a[aria-current="page"] { box-shadow: inset 0 -.3rem 0 var(--slab); }
.nav-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.25rem; margin-left: auto; }
.nav-search input { width: 12rem; }
.mode-btn { font-size: .875rem; padding: .15rem .6rem; }
.admin-link { font-size: .875rem; }
.admin-link[aria-current="page"] { text-decoration-thickness: .2rem; text-decoration-color: var(--slab); }
.logout { display: flex; margin: 0; }
.run-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; }
.run-status { display: flex; align-items: center; gap: .3rem .7rem; min-height: 0; font-size: var(--small); color: var(--ink-2); }
.run-status--failed { color: var(--alert); }
.run-progress {
  appearance: none; -webkit-appearance: none;
  width: 8rem; height: .55rem; border: 1px solid var(--ink); background: transparent;
}
.run-progress::-webkit-progress-bar { background: transparent; }
.run-progress::-webkit-progress-value { background: var(--slab); }
.run-progress::-moz-progress-bar { background: var(--slab); }

/* --- Controls ---------------------------------------------------------------------------------------- */
button, input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 0;
}
input:not([type="checkbox"]):not([type="radio"]), select { padding: .2rem .45rem; font-size: 1rem; line-height: 1.3; }
input::placeholder { color: var(--ink-2); opacity: 1; }
select option { background: var(--paper); color: var(--ink); }
button {
  cursor: pointer;
  padding: .2rem .9rem;
  font-stretch: 75%;
  font-weight: 700;
  line-height: 1.3;
}
button:hover:not(:disabled), input:not([type="checkbox"]):hover, select:hover { border-color: var(--accent); color: var(--accent); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); padding: .45rem 1rem; }
button.primary:hover:not(:disabled) { background: var(--slab); border-color: var(--slab); color: var(--on-slab); }
.link-btn {
  border: 0; padding: 0;
  font-size: .875rem; font-stretch: 100%; font-weight: 400; line-height: 1.45;
  text-decoration: underline; text-underline-offset: .15em;
}
.link-btn:hover:not(:disabled) { color: var(--accent); }

input[type="checkbox"] { font: inherit; color: inherit; width: 1rem; height: 1rem; margin: 0; accent-color: var(--slab); cursor: pointer; }
/* Square toggle switch: <input type="checkbox" role="switch" class="switch"> */
input.switch {
  appearance: none; -webkit-appearance: none;
  width: 2.5rem; height: 1.35rem; padding: 0 .15rem;
  border: 2px solid var(--ink); background: transparent;
  display: inline-grid; place-content: center start;
}
input.switch::before { content: ""; width: .85rem; height: .85rem; background: var(--ink-2); }
input.switch:checked { background: var(--slab); border-color: var(--slab); place-content: center end; }
input.switch:checked::before { background: var(--on-slab); }

/* --- Page head --------------------------------------------------------------------------------------- */
.page-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem;
  padding: 1.5rem 0 .5rem;
}
.page-head h1 small {
  margin-left: .75rem;
  font-size: 1.125rem; font-weight: 400; font-stretch: 85%; color: var(--ink-2);
}
main h1 { padding: 1.5rem 0 1rem; }
.page-head h1, .login h1 { padding: 0; }
.page-note { color: var(--ink-2); margin: 0 0 1rem; }
.day-nav { display: flex; gap: 1.5rem; }
.day-nav a { text-decoration: none; font-stretch: 75%; font-weight: 700; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; margin: .5rem 0 1.5rem; font-size: .875rem; }
.filter-bar label { display: flex; align-items: center; gap: .45rem; }
.filter-bar input[type="number"] { width: 5.5rem; }
.filter-bar .reset { font-size: var(--small); }
.filter-bar label:has(select[multiple]) { align-items: flex-start; }
.filter-bar select[multiple] { min-width: 14rem; }
.filter-bar > a { font-stretch: 75%; font-weight: 700; }
.filter-bar .entity-input { width: 11rem; }
.search-filters input[type="search"] { width: min(26rem, 70vw); }

/* --- Section heads ----------------------------------------------------------------------------------- */
.strip-head {
  display: inline-block;
  background: var(--ink);
  color: var(--on-ink);
  padding: .3rem .55rem .25rem;
  font-size: 1.75rem;
}
.strip-head--hot { background: var(--slab); color: var(--on-slab); }

/* --- Cards ------------------------------------------------------------------------------------------- */
.card { position: relative; min-width: 0; }
.card::after { content: ""; display: table; clear: both; }
.card-title {
  font-size: 1.3125rem;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1.05;
  margin: 0 0 .45rem;
  overflow-wrap: anywhere;
}
.card-title a { text-decoration: none; }
.rank { color: var(--accent); margin-right: .1em; }
.card-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .55rem;
  margin: 0 0 .45rem;
  font-size: var(--small); font-stretch: 90%; color: var(--ink-2);
}
.badge-multi { background: var(--ink); color: var(--on-ink); padding: 0 .35rem; font-weight: 600; }
.badge-cat { color: var(--ink); font-weight: 700; }
.card-meta .score { color: var(--accent); font-weight: 700; }
.card-meta .discussion { color: var(--ink); }
.card-meta a.badge { color: inherit; text-decoration: none; }
.card-meta a.badge:hover { color: var(--accent); text-decoration: underline; }
.badge-hidden { color: var(--alert); font-weight: 700; }
.chips { margin: 0 0 .45rem; font-size: var(--small); font-stretch: 90%; font-style: italic; }
.chip { color: var(--ink); text-decoration: none; }
.chip:hover { color: var(--accent); text-decoration: underline; }
.chip + .chip::before { content: "/"; color: var(--ink-2); font-style: normal; margin: 0 .45rem; }

.extra { margin: 0 0 .45rem; font-size: .875rem; color: var(--ink-2); overflow-wrap: anywhere; }
.articles summary { margin: .1rem 0 .45rem; font-size: .875rem; }
.articles ul { list-style: none; margin: 0 0 .6rem; padding: 0; font-size: .875rem; line-height: 1.3; }
.articles li { padding: .35rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.articles li > a { text-decoration: none; font-weight: 600; }
.articles small { display: block; margin-top: .1rem; color: var(--ink-2); font-stretch: 90%; }
.articles .score { color: var(--accent); font-weight: 700; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .3rem; }
.act { font-size: .75rem; padding: .05rem .45rem; }
.read-btn[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.read-btn[aria-pressed="true"]:hover { background: var(--slab); border-color: var(--slab); color: var(--on-slab); }
.card:has(.read-btn[aria-pressed="true"]) { opacity: .5; }
.undo-bar { font-size: var(--small); font-style: italic; color: var(--ink-2); gap: .6rem; }
.card:has(.undo-bar) .photo,
.card:has(.undo-bar) .stamp,
.card:has(.undo-bar) .kicker,
.card:has(.undo-bar) .card-body > :not(.card-actions) { display: none; }

/* Pictures: duotone from CSS only — the stored image keeps its colours. */
.photo { margin: 0; background: var(--tint); overflow: hidden; }
.photo img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.35) brightness(1.05);
  mix-blend-mode: luminosity;
}
.photo--side { float: right; width: 7.5rem; aspect-ratio: 4 / 3; margin: .2rem 0 .5rem .85rem; }
.photo--wide { aspect-ratio: 2 / 1; margin-bottom: .75rem; }
.photo--lead { aspect-ratio: 16 / 9; margin-top: 1.25rem; }

/* --- Hot: the front page ----------------------------------------------------------------------------- */
.hot { margin-bottom: 1rem; }
.cover {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: var(--rule) solid var(--ink);
}
.cover > .card { padding: 1rem 1.25rem 1.1rem; border-bottom: 3px solid var(--ink); }

.card--lead {
  grid-column: 1 / 9; grid-row: 1 / 4;
  display: flex; flex-direction: column;
  border-right: 3px solid var(--ink);
}
.cover > .card--lead { padding-left: 0; }
.card--lead .card-body { flex: 1; display: flex; flex-direction: column; }
.card--lead .card-meta { margin-top: auto; padding-top: 1.25rem; }
.card--lead .card-title {
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(3rem, 5.6vw, 6.25rem);
  line-height: .9;
  max-width: 16ch;
  margin: .25rem 0 1.25rem;
  padding-right: 7.5rem;
  box-sizing: content-box;
}
.card--lead .card-title--long { font-size: clamp(2.5rem, 4.2vw, 4.25rem); max-width: 20ch; }
.kicker { color: var(--accent); font-size: 1.125rem; font-stretch: 75%; font-weight: 700; margin: 0 0 .35rem; }
.stamp {
  position: absolute; top: 1rem; right: 1.25rem;
  width: 6.5rem; height: 6.5rem; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--slab); color: var(--on-slab);
  transform: rotate(8deg);
  font-size: .75rem; font-stretch: 75%; font-weight: 600; line-height: 1;
}
.stamp .score { font-size: 1.9rem; font-stretch: 62%; font-weight: 900; line-height: .95; }

.card--side { grid-column: 9 / 13; }
.cover > .card--side { padding-right: 0; }
.card--side .card-title { font-stretch: 62%; font-weight: 900; font-size: clamp(1.6rem, 2.1vw, 2.25rem); line-height: .95; }
.card--side .photo--side { width: 42%; }

.card--grid { grid-column: span 4; }
.card--grid:nth-child(3n + 2) { border-right: 3px solid var(--ink); padding-left: 0; }
.card--grid:nth-child(3n) { border-right: 3px solid var(--ink); }
.card--grid:nth-child(3n + 1) { padding-right: 0; }

/* --- Still trending: the dark tilted band ------------------------------------------------------------ */
.still-trending {
  margin: 2.75rem calc(50% - 50vw) 2.25rem;
  padding: 1rem 0;
  background: var(--ink);
  color: var(--on-ink);
  transform: rotate(-1.2deg);
}
.still-inner {
  width: min(92rem, 100vw - 2 * var(--gutter));
  margin-inline: auto;
  display: flex; align-items: flex-start; gap: 1.25rem;
  transform: rotate(1.2deg);
}
.still-inner h2 { flex: none; background: var(--slab); color: var(--on-slab); padding: .3rem .55rem .25rem; }
.still-trending .strip { display: flex; flex-wrap: wrap; gap: .1rem 1.4rem; margin: 0; padding: .2rem 0 0; list-style: none; }
.still-trending .strip a { font-stretch: 80%; font-weight: 700; text-decoration: none; }
.still-trending .strip a:hover { color: var(--on-ink); text-decoration: underline; }
.still-trending small { opacity: .75; margin-left: .35rem; font-stretch: 90%; }

/* --- Category sections ------------------------------------------------------------------------------- */
.section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: var(--rule) solid var(--ink);
  margin-top: 1.5rem;
}
.edition-section { padding: 1rem 1.25rem 2rem; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); min-width: 0; }
.edition-section:nth-child(4n + 1) { padding-left: 0; }
.edition-section:nth-child(4n) { border-right: 0; padding-right: 0; }
.edition-section .strip-head { margin-bottom: .9rem; }
.card-list .card { padding-bottom: .85rem; }
.card-list .card + .card { border-top: 2px solid var(--ink); padding-top: 1rem; }

/* --- Tables and status badges ------------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; border-top: var(--rule) solid var(--ink); margin-bottom: 1.25rem; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
caption { caption-side: top; text-align: left; font-style: italic; color: var(--ink-2); padding: .5rem 0; }
thead th {
  text-align: left; vertical-align: bottom;
  font-stretch: 75%; font-weight: 800;
  border-bottom: 3px solid var(--ink);
  padding: .5rem .6rem;
}
tbody th, tbody td { text-align: left; border-bottom: 1px solid var(--line); padding: .4rem .6rem; vertical-align: top; }
tbody th { font-weight: 700; }
th.num, td.num { text-align: right; }
td.error-cell { color: var(--alert); font-size: var(--small); max-width: 28rem; overflow-wrap: anywhere; }
.status {
  display: inline-block;
  border: 2px solid var(--ink);
  padding: 0 .35rem;
  font-size: .75rem; font-stretch: 80%; font-weight: 700; line-height: 1.35;
  white-space: nowrap;
}
.status--empty, .status--degraded, .status--running, .status--never { border-color: var(--accent); border-style: dashed; color: var(--accent); }
.status--failed { background: var(--alert); border-color: var(--alert); color: var(--paper); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: var(--small); color: var(--ink-2); }
.legend .status + .status { margin-left: .8rem; }

/* --- Misc blocks ------------------------------------------------------------------------------------- */
.empty { font-style: italic; color: var(--ink-2); }
td.empty { padding-block: .75rem; }
.empty-box { border: 3px solid var(--ink); padding: 1.25rem 1.5rem; margin: 1rem 0 3rem; max-width: 48rem; }
.empty-box p:last-child { margin-bottom: 0; }
.notice { font-size: .9375rem; margin: .5rem 0 0; }
.notice--alert { color: var(--alert); font-weight: 600; }
.alert-text { color: var(--alert); }
.panel { margin: 1.5rem 0 2.5rem; }
.panel > .strip-head { margin-bottom: 1rem; }
.lede { max-width: 60ch; }
.run-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.run-actions .notice { margin: 0; }

.login { max-width: 24rem; margin: 2.5rem 0 4rem; }
.login h1 { margin-bottom: 1.25rem; }
.stack { display: grid; gap: 1rem; }
.stack label { display: grid; gap: .3rem; font-stretch: 75%; font-weight: 700; }
.stack input { width: 100%; min-height: 2.5rem; font-stretch: 100%; font-weight: 400; }
.stack button { justify-self: start; }

/* --- Result lists: Browse, Search, entity pages ----------------------------------------------------- */
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); column-gap: 2.5rem; border-top: var(--rule) solid var(--ink); }
.results > .card { padding: .9rem 0 1.1rem; border-bottom: 2px solid var(--ink); }
.results > :not(.card) { grid-column: 1 / -1; }
.results .photo--side { width: 8.5rem; }
.results > .empty { margin-top: 1rem; }
.load-more { text-align: center; padding: 1.5rem 0; }
.search-count { color: var(--ink-2); margin: .75rem 0; }
.search-help { border: 3px solid var(--ink); padding: 1.25rem 1.5rem; max-width: 44rem; margin-top: 1.5rem; }
.search-help h2 { margin-bottom: .75rem; }
.search-help ul { margin: 0; padding-left: 1.2rem; }
.search-help li { margin-bottom: .35rem; }

/* Pills: Trends filters, the Stories / Individual items switch */
.filters { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin-bottom: 1.5rem; }
.filters ul, .view-switch ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.view-switch { margin: 0 0 1rem; }
.filters a, .view-switch a {
  display: inline-block; padding: .15rem .6rem; border: 2px solid var(--ink);
  text-decoration: none; font-stretch: 75%; font-weight: 700; font-size: .9375rem;
}
.filters a[aria-current="true"], .view-switch a[aria-current="true"] { background: var(--ink); color: var(--on-ink); }
.results > .view-switch { margin: 1rem 0 0; }

/* --- Archive ----------------------------------------------------------------------------------------- */
.day-jump { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1rem; }
.day-jump label { display: inline-flex; align-items: center; gap: .6rem; font-stretch: 75%; font-weight: 700; }
.archive-month { margin: 1.75rem 0; }
.archive-month .strip-head { margin-bottom: 1rem; }
.day-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.day-list a {
  display: block; min-width: 4.75rem; padding: .35rem .6rem; border: 2px solid var(--ink);
  text-align: center; text-decoration: none; font-stretch: 75%; font-weight: 700;
}
.day-list a:hover { background: var(--ink); color: var(--on-ink); }

/* --- Trends and entity pages ------------------------------------------------------------------------- */
.trends section { margin-bottom: 2.5rem; }
.trends section > .strip-head { margin-bottom: 1rem; }
.trends h3 { margin: 1rem 0 .75rem; }
.trends h3 small { font-stretch: 85%; font-weight: 400; color: var(--ink-2); }
.chart-box { position: relative; height: 22rem; margin-bottom: .5rem; }
.swatch { display: inline-block; width: .75rem; height: .75rem; margin-right: .45rem; vertical-align: -.05em; }
.swatch-1 { background: var(--series-1); } .swatch-2 { background: var(--series-2); }
.swatch-3 { background: var(--series-3); } .swatch-4 { background: var(--series-4); }
.swatch-5 { background: var(--series-5); } .swatch-6 { background: var(--series-6); }
.swatch-7 { background: var(--series-7); } .swatch-8 { background: var(--series-8); }
.bar { margin-left: .5rem; vertical-align: middle; height: .55rem; }
.bar rect { fill: var(--series-1); }
.spark { color: var(--series-1); vertical-align: middle; }
.spark polyline { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.facts { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: 0 0 1.75rem; font-size: .9375rem; }
.facts dt { display: inline; font-stretch: 75%; font-weight: 700; margin-right: .4rem; }
.facts dd { display: inline; margin: 0; color: var(--ink-2); }

/* --- Admin review list ------------------------------------------------------------------------------- */
.review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.review-actions form { display: flex; align-items: center; gap: .4rem; margin: 0; }
.alias-form input { width: 11rem; font-size: .875rem; padding: .05rem .4rem; }

/* --- Responsive -------------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .card--lead { grid-column: 1 / -1; grid-row: auto; border-right: 0; }
  .cover > .card--lead { padding-right: 0; }
  .cover > .card:not(.card--lead) { grid-column: span 6; padding: 1rem 1.25rem 1.1rem; border-right: 0; }
  .cover > .card:not(.card--lead):nth-child(even) { border-right: 3px solid var(--ink); padding-left: 0; }
  .cover > .card:not(.card--lead):nth-child(odd) { padding-right: 0; }
  .section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edition-section:nth-child(n) { border-right: 3px solid var(--ink); padding: 1rem 1.25rem 2rem; }
  .edition-section:nth-child(odd) { padding-left: 0; }
  .edition-section:nth-child(even) { border-right: 0; padding-right: 0; }
}
@media (max-width: 760px) {
  :root { --gutter: 1rem; }
  h1 { font-size: 2.5rem; }
  .masthead .wrap { flex-wrap: wrap; align-items: flex-end; }
  .nav-tools { margin-left: 0; width: 100%; }
  .nav-search { flex: 1 1 100%; }
  .nav-search input { width: 100%; }
  .cover > .card:not(.card--lead):nth-child(n) { grid-column: 1 / -1; border-right: 0; padding-inline: 0; }
  .card--lead .card-title { padding-right: 5rem; }
  .stamp { width: 4.75rem; height: 4.75rem; right: 0; }
  .stamp .score { font-size: 1.5rem; }
  .card--side .photo--side { width: 7.5rem; }
  .section-grid { grid-template-columns: minmax(0, 1fr); }
  .edition-section:nth-child(n) { border-right: 0; padding-inline: 0; }
  .still-inner { flex-direction: column; gap: .6rem; }
  .act, .card-actions button { min-height: 2.5rem; padding-inline: .75rem; }
  .page-head h1 small { display: block; margin: .4rem 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
