:root {
  --bg: #f6f5f1; --card: #ffffff; --ink: #1d1c1a; --muted: #6b6860; --line: #dedbd2;
  --accent: #8a6a12; --ok: #1f7a3a; --warn: #9a5b00; --bad: #b3261e;
  --ins: #dff3e3; --del: #fbe1de; --tag: #efece4;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513; --card: #201f1c; --ink: #ece9e1; --muted: #a29d91; --line: #38352f;
    --accent: #d9b44a; --ok: #6cc985; --warn: #e5a54b; --bad: #f08a80;
    --ins: #1f3a26; --del: #45211d; --tag: #2c2a25;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
main { max-width: 1280px; margin: 0 auto; padding: 16px; }
.top { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--card); }
.brand { font-weight: 700; text-decoration: none; color: var(--ink); }
.tagline { color: var(--muted); font-size: 14px; flex: 1; }
.who { font-size: 14px; color: var(--ink); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 0 0 16px; }
.narrow { max-width: 420px; margin: 48px auto; }
h1 { font-size: 28px; line-height: 1.25; margin: 0 0 12px; }
h2 { font-size: 18px; margin: 16px 0 8px; }
.card > h2:first-child { margin-top: 0; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; background: var(--ins); }
.flash.error { background: var(--del); }
.crumbs { color: var(--muted); margin: 0 0 12px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
.tabs, .filters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.tabs a, .filters a { padding: 6px 12px; border-radius: 6px; text-decoration: none; color: var(--muted); }
.tabs a[aria-current], .filters a[aria-current] { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.article { max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; }
.article .lead { font-size: 20px; color: var(--muted); }
.label { font: 13px/1.4 system-ui, sans-serif; margin: 0 0 8px; }
.doc { overflow-wrap: anywhere; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.num { text-align: right; white-space: nowrap; }
.scroll { overflow-x: auto; }
.sub, .hint, .small { color: var(--muted); font-size: 13px; }
.small { margin: 4px 0; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; background: var(--tag); }
.tag.ok, .ok { color: var(--ok); }
.tag.warn, .warn { color: var(--warn); }
.tag.bad, .bad { color: var(--bad); }
.state { font-weight: 600; padding: 2px 10px; border-radius: 12px; background: var(--tag); }
.state.approved { color: var(--ok); } .state.rejected, .state.withdrawn { color: var(--muted); }
.state.new { color: var(--warn); }
.state.none, .muted { color: var(--muted); }
.state, .tag { white-space: nowrap; }
.outcome h2 { font-size: 16px; margin: 20px 0 6px; }
.outcome ol li, .outcome ul li { margin: 0 0 6px; }
dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
dt { color: var(--muted); } dd { margin: 0; }
label { display: block; margin: 0 0 12px; font-size: 14px; }
input:not([type=checkbox]), textarea, select { display: block; width: 100%; margin-top: 4px; padding: 8px;
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
select { display: inline-block; width: auto; }
.row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.row label { margin: 0; }
.mono { font: 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace; }
label.check { display: flex; gap: 8px; align-items: flex-start; }
label.check input { margin-top: 4px; }
label.final { font-weight: 600; }
button, .button { display: inline-block; font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--tag); color: var(--ink); cursor: pointer; text-decoration: none; margin: 4px 0; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.danger { color: var(--bad); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.link { background: none; border: 0; color: var(--accent); padding: 0; }
form.inline { display: inline; }
form + form { margin-top: 12px; }
.side form input[name=note] { margin-bottom: 8px; }
.diff { font: 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; padding: 8px 0; }
.d { padding: 0 12px; }
.d.ins { background: var(--ins); } .d.del { background: var(--del); text-decoration: line-through; }
.d.skip { color: var(--muted); font-style: italic; }
ins { background: var(--ins); text-decoration: none; } del { background: var(--del); }
.empty { color: var(--muted); }
.recheck + .recheck { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.recheck p { margin: 4px 0; }
.files { columns: 2 320px; padding-left: 18px; }
.followups { list-style: none; padding: 0; margin: 0; }
.followups li { margin: 0 0 8px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.mainnav { display: flex; gap: .9rem; }
.mainnav a { color: inherit; }
.sources { padding-left: 1.1rem; }
.sources li + li { margin-top: .2rem; }
.live { border-left: 3px solid var(--accent); }
.live h2 { margin-top: 0; }
.bar { height: 6px; border-radius: 3px; background: var(--tag); overflow: hidden; margin: 8px 0 4px; }
.bar span { display: block; height: 100%; background: var(--accent); }
.timeline { list-style: none; padding: 0; margin: 8px 0 0; }
.timeline time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 8px; }
.component { border-left: 3px solid var(--accent); background: var(--tag); padding: 8px 14px;
  margin: 16px 0; font: 15px/1.5 system-ui, sans-serif; border-radius: 0 6px 6px 0; }
.component p { margin: 4px 0; }
.component img.photo { display: block; max-width: min(100%, 360px); height: auto; }
.component figure { margin: 4px 0; }
img.thumb { width: 56px; height: 56px; object-fit: contain; vertical-align: middle; }
.component .label { font: 12px ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); }
.component.bad { border-left-color: var(--bad); }
.component pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.muted, .tag.muted { color: var(--muted); }
.plan, .tag.plan { color: var(--accent); }
.next { font-size: 18px; margin: 0 0 12px; }
.timers td, .timers th, .types td, .types th { padding: 6px 8px; }
.timers .tag, .types .tag, .sched .tag { white-space: nowrap; }
.sched { min-width: 680px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head { font-size: 13px; color: var(--muted); text-align: center; }
.day { min-height: 88px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.day h3 { font-size: 13px; font-weight: 600; margin: 0 0 4px; color: var(--muted); }
.day.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.day.today h3 { color: var(--ink); }
.chip { display: block; margin: 4px 0 0; padding: 3px 6px; border-radius: 4px; border-left: 3px solid var(--line);
  background: var(--card); font-size: 12px; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.chip .t { display: block; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.chip .s { display: block; }
.chip.ok { border-left-color: var(--ok); } .chip.warn { border-left-color: var(--warn); }
.chip.bad { border-left-color: var(--bad); } .chip.plan { border-left-color: var(--accent); }
.chip.extra { border-left-style: dashed; }
a.chip:hover { box-shadow: 0 0 0 1px var(--line); }
.sched tr:has(+ tr.child) td { border-bottom: 0; }
.sched tr.child td { padding-top: 2px; }
.sched tr.child td:first-child, .sched tr.child td:nth-child(2) { padding-left: 20px; }
@media (max-width: 760px) {
  .cal { grid-template-columns: 1fr; }
  .cal-head, .day.empty:not(.today) { display: none; }
  .day { min-height: 0; }
}

/* Revisions: the editor's instructions, as written */
.instructions { white-space: pre-wrap; border-left: 3px solid var(--line, #ccc); padding-left: 8px; }
.revise textarea { margin-bottom: 6px; }

/* Schedule: the article types and how each is written */
.types td { vertical-align: top; }
.types .how + .how { margin-top: 6px; }
.types .threshold { margin-top: 4px; padding-left: 8px; border-left: 3px solid var(--line); }
@media (max-width: 640px) {
  /* One type per block: name, then what it is, then how it's written. */
  .types thead { display: none; }
  .types tr, .types td { display: block; }
  .types tr { border-bottom: 1px solid var(--line); padding: 4px 0; }
  .types td { border: 0; padding: 2px 0; }
}

/* Today's feature (_feature.html) */
.feature { border-left: 4px solid var(--accent); }
.feature h3.feature-title { margin: 12px 0 2px; font-size: 18px; }
.feature .outline { margin: 4px 0 8px; padding-left: 22px; font-size: 14px; }
.feature .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.feature .actions form, .runner-ups form { margin: 0; }
.runner-ups form.inline { display: block; margin-top: 2px; }
.feature .replaced { color: var(--muted); text-decoration: line-through; }
.feature .editor-words { background: var(--ins); border-radius: 6px; padding: 8px 12px; margin: 8px 0; }
.feature .editor-words p { margin: 4px 0; }
.feature details { margin: 8px 0; }
.feature summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.feature details form { margin-top: 8px; }
.runner-ups { list-style: none; padding: 0; margin: 4px 0; }
.runner-ups li { padding: 8px 0; border-top: 1px solid var(--line); }
.runner-ups .small { margin: 2px 0; }
/* Suggestions (suggestions.html) */
.filters .label { padding: 6px 6px 6px 0; color: var(--muted); }
.group-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 24px 0 10px; }
.group-head h2 { margin: 0; }
.suggestion .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.suggestion h3 { margin: 8px 0 6px; font-size: 18px; }
.suggestion p { margin: 6px 0; }
.tag.type { color: var(--accent); background: none; border: 1px solid var(--accent); font-weight: 600; }
.tag.type.muted { color: var(--muted); border-color: var(--line); }
.suggestion details { margin: 8px 0; }
.suggestion summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.suggestion form { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.suggestion .row + .row { margin-top: 10px; }
.suggestion .row .grow { flex: 1 1 280px; }
.suggestion select { display: block; }
.suggestion textarea { min-height: 38px; }
.also { margin: 6px 0; }

/* podcast */
.player { width: 100%; margin: 4px 0; }
.segment { margin: 12px 0 4px; }
.segment h3 { font-size: 15px; text-transform: capitalize; margin: 0 0 6px; }
.turn { margin: 0 0 8px; padding: 6px 10px; border-left: 3px solid var(--line); }
.turn.host-B { border-left-color: var(--accent); }
.turn .who { font-weight: 600; margin-right: 4px; }
.turn details { margin-top: 4px; }
.turn.edited { border-left-color: var(--warn); }
.turn.context { opacity: .7; }
.turn-links { margin-left: 6px; white-space: nowrap; }
.turn:target, .part:target { background: var(--ins); }
.diff-words { margin: 2px 0 8px; }
.control { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 16px; }
.running + .running { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.inline-player { width: 220px; max-width: 100%; height: 32px; }
meter.budget { width: 100%; }
.parts .part { margin: 8px 0; }

/* The hero image as guldpriser.se shows it from lg: 2:1, the headline on a navy gradient. */
.hero-preview { position: relative; margin: 0 0 16px; aspect-ratio: 2 / 1; overflow: hidden;
  border-radius: 12px; background: #0d1017; }
.hero-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-preview figcaption { position: absolute; inset: 40% 0 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 0 12% 5%; color: #fff;
  background: linear-gradient(to top, rgb(13 16 23 / .95), rgb(13 16 23 / .7) 50%, transparent); }
.hero-preview .day { font-size: 13px; color: rgb(255 255 255 / .8); }
.hero-preview .title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(18px, 3vw, 34px);
  line-height: 1.15; text-wrap: balance; }
.hero-preview .ai { position: absolute; top: 10px; right: 10px; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; color: rgb(255 255 255 / .85); background: rgb(0 0 0 / .4); }
/* Every hero made for the article; the one in use is outlined. */
.hero-versions { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.hero-versions figure { margin: 0; }
.hero-versions img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 8px; background: #0d1017; }
.hero-versions .current img { outline: 3px solid var(--accent); outline-offset: 2px; }
.hero-versions figcaption { margin: 6px 0; }
.hero-versions figcaption .muted { display: block; }
