/* The Opportunity Radar - "independent research publication"
   Paper & ink, one oxblood accent, hairline rules instead of cards,
   serif display type, sans for reading, mono for figures. */

:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --paper-2: #ece6d9;
  --ink: #1b1915;
  --ink-2: #45403a;
  --muted: #77706a;
  --rule: #cfc6b5;
  --rule-strong: #1b1915;
  --accent: #9a2a1c;          /* oxblood - used sparingly */
  --accent-wash: #f0e0d6;
  --bar: #2f2b26;             /* chart ink */
  --track: #e2dacb;
  --warning: #b0700f;
  --good: #2f6b2f;

  --serif: "Source Serif 4", "Iowan Old Style", Charter, Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --measure: 68ch;
}

/* Night edition - chosen with the switch in the masthead (paper is the default). */
:root[data-theme="night"] {
  color-scheme: dark;
  --paper: #171612;
  --paper-2: #211f1a;
  --ink: #ece6d8;
  --ink-2: #c9c1b1;
  --muted: #9a9283;
  --rule: #3a362e;
  --rule-strong: #ece6d8;
  --accent: #e0745f;
  --accent-wash: #33201b;
  --bar: #d8cfbd;
  --track: #2e2b24;
  --warning: #e0a63a;
  --good: #7fbf7f;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 700px) { .wrap { padding: 0 18px; } }

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0 0 0.8em; }
.fineprint { font-size: 0.8rem; color: var(--muted); margin: 6px 0 0; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Masthead ---------- */
.masthead { border-bottom: 3px double var(--rule-strong); padding-top: 14px; }
.dateline {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
  border-bottom: 1px solid var(--rule); padding-bottom: 8px;
}
@media (max-width: 800px) { .dateline-mid { display: none; } }
.nameplate {
  font-family: var(--serif); font-weight: 700; text-align: center;
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.02em;
  margin: 22px 0 8px;
}
.nameplate a { text-decoration: none; }
.nameplate a:hover { color: inherit; }
.motto { text-align: center; font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 1.05rem; margin: 0 auto 16px; max-width: 60ch; }
.sourcebar {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px;
  border-top: 1px solid var(--rule); padding: 8px 0; font-size: 0.75rem; color: var(--ink-2);
  letter-spacing: 0.04em;
}
.source { display: inline-flex; align-items: center; gap: 7px; }
.source .mark { width: 8px; height: 8px; border: 1.5px solid var(--muted); border-radius: 50%; }
.source.on .mark { background: var(--good); border-color: var(--good); }
.source b { font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; }

/* ---------- Commission form ---------- */
.commission { padding: 22px 0 18px; border-bottom: 1px solid var(--rule); }
.commission label { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.commission-row { display: flex; gap: 12px; align-items: stretch; }
.commission input {
  flex: 1; font: inherit; font-size: 1rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1.5px solid var(--ink); padding: 8px 2px; border-radius: 0;
}
.commission input::placeholder { color: var(--muted); }
.combo { position: relative; flex: 1; display: flex; }
.combo input { flex: 1; }
.suggest-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 15; list-style: none; margin: 2px 0 0; padding: 4px 0;
  background: var(--paper); border: 1px solid var(--ink); box-shadow: 0 6px 18px rgb(0 0 0 / 0.12); max-height: 360px; overflow-y: auto;
}
.suggest-head { padding: 6px 12px 4px; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.suggest-item { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 7px 12px; cursor: pointer; }
.suggest-item:hover, .suggest-item[aria-selected="true"] { background: var(--paper-2); }
.suggest-item .sv { font-family: var(--serif); font-size: 1rem; }
.suggest-item .sn { font-size: 0.7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.sn-google { color: var(--accent); }
@media (max-width: 640px) {
  .commission-row { flex-wrap: wrap; }
  .commission-row .combo { flex-basis: 100%; }
  .suggest-item { flex-direction: column; gap: 0; }
  .suggest-item .sn { max-width: 100%; }
}
.commission input:focus { outline: none; border-bottom-color: var(--accent); }

.btn {
  font: inherit; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; cursor: pointer;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 8px 16px;
  border-radius: 0; text-decoration: none; display: inline-block; line-height: 1.3;
}
.btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.btn-quiet { border-color: transparent; padding-left: 4px; padding-right: 4px; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.btn-quiet:hover:not(:disabled) { background: transparent; color: var(--accent); }
.btn-danger:hover:not(:disabled) { color: var(--accent); }

/* ---------- Two-column paper ---------- */
.paper { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; padding: 26px 0 40px; }
@media (max-width: 960px) { .paper { grid-template-columns: 1fr; } }
.index { padding-right: 28px; border-right: 1px solid var(--rule); }
@media (max-width: 960px) { .index { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 20px; margin-bottom: 24px; } }
.report { padding-left: 36px; min-width: 0; }
@media (max-width: 960px) { .report { padding-left: 0; } }

.section-label {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); border-top: 2px solid var(--ink); padding-top: 8px; display: flex; justify-content: space-between;
}
.section-label span { color: var(--muted); font-weight: 500; letter-spacing: 0.04em; text-transform: none; }

/* ---------- Index ---------- */
.index-list { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: rank; }
.index-item {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 2px 10px; width: 100%; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 12px 0; cursor: pointer; color: inherit; font: inherit;
}
.index-item:hover .index-name { color: var(--accent); }
.index-item[aria-current="true"] .index-name { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.index-rank { font-family: var(--serif); font-size: 1.1rem; color: var(--muted); grid-row: span 2; line-height: 1.3; }
.index-name { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.index-score { font-family: var(--mono); font-size: 1.05rem; font-weight: 500; text-align: right; grid-row: span 2; }
.index-meta { font-size: 0.76rem; color: var(--muted); }
.index-lenses { grid-column: 2 / -1; display: flex; gap: 14px; font-family: var(--mono); font-size: 0.7rem; color: var(--ink-2); margin-top: 4px; }
.index-lenses abbr { text-decoration: none; color: var(--muted); }
.index-empty { padding: 14px 0; color: var(--muted); font-size: 0.9rem; font-style: italic; font-family: var(--serif); }
.tag { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-left: 6px; font-weight: 600; }

/* ---------- Report ---------- */
.kicker { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.report-head { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
@media (max-width: 760px) { .report-head { grid-template-columns: 1fr; } }
.headline { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.05; letter-spacing: -0.015em; margin: 8px 0 12px; overflow-wrap: anywhere; }
.standfirst { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; color: var(--ink-2); max-width: var(--measure); }
.standfirst b { color: var(--ink); font-weight: 600; }
.byline { font-size: 0.78rem; color: var(--muted); margin-top: 12px; }
.byline .error { color: var(--accent); display: block; margin-top: 6px; }
.report-tools { display: flex; flex-wrap: wrap; gap: 6px 4px; margin-top: 14px; }

.verdict-box { border-top: 2px solid var(--ink); padding-top: 10px; align-self: start; }
.verdict-label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.verdict-score { font-family: var(--serif); font-size: 4.2rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; margin: 6px 0 2px; font-variant-numeric: tabular-nums lining-nums; }
.verdict-score small { font-size: 1rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.verdict-words { font-family: var(--serif); font-style: italic; font-size: 1rem; }
.scale { position: relative; height: 22px; margin-top: 12px; }
.scale-line { position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--ink); }
.scale-tick { position: absolute; top: 2px; width: 1px; height: 9px; background: var(--ink); }
.scale-tick span { position: absolute; top: 11px; transform: translateX(-50%); font-family: var(--mono); font-size: 0.6rem; color: var(--muted); }
.scale-tick:first-of-type span { transform: none; }
.scale-tick:last-of-type span { transform: translateX(-100%); }
.edition { font: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.edition:hover { color: var(--accent); }
.scale-mark { position: absolute; top: 0; width: 3px; height: 13px; margin-left: -1px; background: var(--accent); }
.lens-tally { margin-top: 26px; display: grid; gap: 6px; }

.meter { display: grid; gap: 3px; }
.meter-top { display: flex; justify-content: space-between; gap: 10px; font-size: 0.78rem; color: var(--ink-2); }
.meter-top b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.meter-track { height: 3px; background: var(--track); }
.meter-fill { height: 100%; background: var(--bar); }

/* Three lenses as newspaper columns */
.lenses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
.lens { padding: 0 22px; border-left: 1px solid var(--rule); min-width: 0; }
.lens:first-child { padding-left: 0; border-left: 0; }
.lens:last-child { padding-right: 0; }
@media (max-width: 1180px) {
  .lenses { grid-template-columns: 1fr; }
  .lens, .lens:first-child, .lens:last-child { padding: 22px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .lens:first-child { border-top: 0; padding-top: 0; }
}
.lens-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 12px; }
.lens-numeral { font-family: var(--serif); font-size: 0.85rem; color: var(--accent); font-weight: 600; letter-spacing: 0.06em; }
.lens h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; line-height: 1.15; }
.lens-q { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 0.95rem; }
.lens-score { font-family: var(--mono); font-size: 1.7rem; font-weight: 500; }
.lens-source { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; margin: -4px 0 12px; }

.findings { list-style: none; margin: 0 0 18px; padding: 0; font-family: var(--serif); font-size: 1rem; line-height: 1.5; }
.findings li { padding-left: 16px; position: relative; margin-bottom: 7px; }
.findings li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }

.subhead { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); font-weight: 600; margin: 22px 0 10px; padding-top: 8px; border-top: 1px solid var(--rule); }
.theme { margin-bottom: 14px; }
.theme .meter-top span { font-weight: 500; color: var(--ink); }

blockquote.pull {
  margin: 8px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--accent);
  font-family: var(--serif); font-style: italic; font-size: 0.98rem; line-height: 1.45; color: var(--ink-2);
}
blockquote.pull cite { display: block; font-style: normal; font-family: var(--sans); font-size: 0.7rem; color: var(--muted); margin-top: 3px; letter-spacing: 0.03em; }
blockquote.pull cite a { text-decoration-color: var(--rule); }

.posts { list-style: none; margin: 0; padding: 0; }
.posts li { padding: 9px 0; border-bottom: 1px dotted var(--rule); }
.posts .t { font-family: var(--serif); font-size: 0.98rem; line-height: 1.35; display: block; }
.posts .m { font-size: 0.72rem; color: var(--muted); font-family: var(--mono); }

.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 4px 0 6px; }
.figure-cell { padding: 10px 10px 10px 0; }
.figure-cell + .figure-cell { padding-left: 12px; border-left: 1px solid var(--rule); }
.figure-cell:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
.figure-cell:nth-child(4) { border-top: 1px solid var(--rule); }
.figure-v { font-family: var(--mono); font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
.figure-k { font-size: 0.72rem; color: var(--muted); line-height: 1.3; margin-top: 2px; }

table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--ink); }
td.num, th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.breakout { color: var(--accent); font-weight: 600; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }
.subs { font-size: 0.85rem; line-height: 1.7; color: var(--ink-2); }
.subs span { font-family: var(--mono); color: var(--muted); font-size: 0.75rem; }

figure.chart-fig { margin: 0; }
figcaption { font-size: 0.75rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
figcaption b { color: var(--ink); font-weight: 600; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .baseline { stroke: var(--ink); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 9px; font-family: var(--mono); }
.chart .bar { fill: var(--bar); }
.chart .bar.latest { fill: var(--accent); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .bar.active { opacity: 0.65; }
details summary { cursor: pointer; color: var(--muted); font-size: 0.78rem; margin-top: 8px; }

/* Follow the thread - related niches */
.leads { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: lead; }
.leads li { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); counter-increment: lead; }
.leads li::before { content: counter(lead); font-family: var(--serif); color: var(--muted); font-size: 1.05rem; }
.lead-q { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; }
.leads .why { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 1px; }
@media (max-width: 600px) { .leads li { grid-template-columns: 22px 1fr; } .leads li .btn { grid-column: 2; justify-self: start; } }

/* Ideas */
.section { margin-top: 34px; }
.section > h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; margin: 6px 0 4px; }
.section > .dek { font-family: var(--serif); font-style: italic; color: var(--ink-2); margin-bottom: 14px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols3 > div, .cols2 > div { padding: 0 20px; border-left: 1px solid var(--rule); }
.cols3 > div:first-child, .cols2 > div:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 900px) {
  .cols3, .cols2 { grid-template-columns: 1fr; }
  .cols3 > div, .cols2 > div { padding: 14px 0; border-left: 0; border-top: 1px solid var(--rule); }
}
.idea-list { margin: 0; padding-left: 18px; font-family: var(--serif); font-size: 1rem; line-height: 1.5; }
.idea-list li { margin-bottom: 8px; }
.idea-list .why { display: block; font-family: var(--sans); font-size: 0.74rem; color: var(--muted); }

/* Front page (no report selected) */
.front .lede { font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; max-width: var(--measure); color: var(--ink); }
.front .lede::first-letter { font-size: 3.4em; float: left; line-height: 0.85; padding: 6px 8px 0 0; font-weight: 700; color: var(--accent); }
.front .method { margin-top: 26px; }
.front .method h4 { font-family: var(--serif); font-size: 1.25rem; margin: 4px 0 6px; }
.front .method p { font-family: var(--serif); font-size: 1rem; color: var(--ink-2); }
.notice { margin-top: 26px; border-top: 2px solid var(--ink); padding-top: 10px; font-size: 0.92rem; }
.notice code { font-family: var(--mono); font-size: 0.85em; background: var(--paper-2); padding: 1px 5px; }

.status-line { display: inline-flex; gap: 6px; align-items: baseline; }
.warn-note { margin-top: 10px; font-size: 0.88rem; color: var(--ink-2); border-left: 2px solid var(--warning); padding-left: 10px; }

/* Section menu in the masthead */
.sections { display: flex; justify-content: center; gap: 28px; border-top: 1px solid var(--rule); padding: 8px 0; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.sections a { text-decoration: none; color: var(--ink-2); padding-bottom: 2px; }
.sections a:hover { color: var(--accent); }
.sections a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--accent); }

/* Phones: one swipeable menu line, no stray dividers */
@media (max-width: 640px) {
  .sections { justify-content: flex-start; overflow-x: auto; white-space: nowrap; gap: 20px; font-size: 0.7rem; scrollbar-width: none; padding-left: 2px; }
  .sections::-webkit-scrollbar { display: none; }
  .filter-sep { display: none; }
  .dateline { font-size: 0.66rem; }
}

/* ---------- Jobs Desk ---------- */
.desk-intro { padding: 26px 0 8px; }
.desk-intro .headline { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.job-form { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 16px 0 14px; margin-top: 10px; }
.job-fields { display: grid; grid-template-columns: 1.3fr 1.1fr 0.9fr auto; gap: 14px 18px; align-items: end; }
@media (max-width: 900px) { .job-fields { grid-template-columns: 1fr; } }
.job-fields label { display: grid; gap: 4px; font-family: var(--serif); font-weight: 600; font-size: 0.98rem; }
.job-fields input, .job-fields select {
  font: inherit; font-family: var(--sans); font-weight: 400; font-size: 0.95rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1.5px solid var(--ink); padding: 7px 2px; border-radius: 0;
}
.job-fields input:focus, .job-fields select:focus { outline: none; border-bottom-color: var(--accent); }
.job-fields select option { background: var(--paper); color: var(--ink); }
.job-picks, .recent { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 12px; }
.pick { font: inherit; font-size: 0.8rem; background: transparent; border: 1px solid var(--rule); color: var(--ink-2); padding: 3px 10px; cursor: pointer; border-radius: 0; }
.pick:hover { border-color: var(--ink); color: var(--ink); }
.pick .mono { color: var(--muted); font-size: 0.72rem; margin-left: 4px; }
.job-filters { border: 0; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 0.88rem; }
.check { display: inline-flex; gap: 7px; align-items: center; cursor: pointer; }
.check input { accent-color: var(--accent); }
.filter-sep { width: 1px; height: 16px; background: var(--rule); }
.recent:empty { display: none; }

.results-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; border-bottom: 1px solid var(--ink); padding: 18px 0 8px; margin-top: 10px; }
.results-head p { margin: 0; font-size: 0.92rem; }
.results-head b { font-family: var(--mono); font-weight: 500; }
.classifieds { columns: 2 380px; column-gap: 0; margin: 0 -14px; }
.classified { break-inside: avoid; padding: 16px 14px; border-bottom: 1px solid var(--rule); }
.classified h3 { font-family: var(--serif); font-size: 1.22rem; line-height: 1.25; font-weight: 700; }
.classified.filtered-out { opacity: 0.55; }
.byline-job { font-size: 0.85rem; color: var(--ink-2); margin: 3px 0 0; }
.facts { font-family: var(--mono); font-size: 0.76rem; color: var(--ink); margin: 6px 0 0; }
.verdicts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; font-size: 0.82rem; }
.verdicts li { display: grid; grid-template-columns: 14px 1fr; gap: 6px; align-items: start; }
.verdicts .mark { width: 9px; height: 9px; margin-top: 5px; border: 1.5px solid var(--muted); border-radius: 50%; }
.verdict-yes .mark { background: var(--good); border-color: var(--good); }
.verdict-no .mark { background: var(--accent); border-color: var(--accent); border-radius: 0; }
.verdict-no { color: var(--accent); }
.verdicts q { display: block; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 0.82rem; margin-top: 1px; quotes: "“" "”"; }
.notes { font-size: 0.75rem; color: var(--muted); margin: 8px 0 0; letter-spacing: 0.02em; }
.excerpt { font-family: var(--serif); font-size: 0.92rem; line-height: 1.5; color: var(--ink-2); margin: 10px 0 0; }
.apply { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; margin: 10px 0 0; font-size: 0.85rem; }
.apply a { font-weight: 600; text-decoration-color: var(--accent); }
.apply .via { font-size: 0.72rem; color: var(--muted); }

/* Article pages (about, terms, privacy) */
.article { max-width: 760px; padding-top: 30px; padding-bottom: 50px; }
.article .headline { font-size: clamp(2rem, 4vw, 3rem); }
.article section { margin-top: 30px; border-top: 1px solid var(--rule); padding-top: 18px; }
.article h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; margin-bottom: 10px; }
.article h4 { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; margin: 18px 0 6px; }
.article h4 .lens-numeral { margin-right: 6px; }
.article p, .article li { font-family: var(--serif); font-size: 1.06rem; line-height: 1.6; }
.article ul.plain { padding-left: 20px; }
.article ul.plain li + li { margin-top: 8px; }
.article .draft-note { border: 1px solid var(--warning); background: var(--paper-2); padding: 10px 14px; font-family: var(--sans); font-size: 0.88rem; }
.scale-table { max-width: 460px; margin: 10px 0 14px; }
.article-foot { margin-top: 36px; border-top: 3px double var(--rule-strong); padding-top: 12px; }

/* The Record */
.record-table { margin-top: 14px; border-top: 2px solid var(--ink); }
.record-table td, .record-table th { padding: 10px 8px; }
.rec-name a { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; text-decoration: none; }
.rec-name a:hover { text-decoration: underline; }
.rec-level { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-left: 6px; color: var(--ink-2); }
.rec-strong { color: var(--accent); }
.cp { display: inline-flex; flex-direction: column; font-size: 0.78rem; font-weight: 600; text-transform: capitalize; }
.cp small { font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: 0.72rem; text-transform: none; }
.cp-held { color: var(--good); }
.cp-missed { color: var(--accent); }
.cp-pending, .cp-flat, .cp-unknown { color: var(--ink-2); font-weight: 500; }
.move { font-family: var(--mono); font-size: 0.7rem; margin-left: 6px; }
.move-up { color: var(--good); }
.move-down { color: var(--accent); }

/* Saved job searches */
.saved-chip { display: inline-flex; }
.saved-chip .pick { border-right: 0; color: var(--ink); }
.unsave { font: inherit; font-size: 0.85rem; background: transparent; border: 1px solid var(--rule); color: var(--muted); padding: 0 8px; cursor: pointer; border-radius: 0; }
.unsave:hover { color: var(--accent); border-color: var(--accent); }
.tag-new { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper); background: var(--accent); padding: 2px 6px; vertical-align: middle; position: relative; top: -2px; }

/* Alerts */
.alert-count { display: inline-block; min-width: 17px; margin-left: 5px; padding: 0 5px; background: var(--accent); color: var(--paper); font-family: var(--mono); font-size: 0.64rem; line-height: 16px; text-align: center; letter-spacing: 0; border-radius: 9px; vertical-align: 1px; }
.alert-count[hidden] { display: none; }
.desk-sub { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; margin: 26px 0 6px; }
.discovery { margin-top: 30px; border-top: 3px double var(--rule-strong); padding-top: 4px; }
.disc-intro { max-width: 80ch; }
.disc-below { margin-top: 12px; }
.alert-level { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 14px 0; margin-top: 10px; }
.alert-level label { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.alert-level input { width: 76px; font: inherit; font-family: var(--mono); font-size: 1.05rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); padding: 4px 2px; border-radius: 0; }
.alert-level .fineprint { flex-basis: 100%; margin: 0; }
.alert-list { list-style: none; margin: 0; padding: 0; }
.alert-item { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.alert-item.seen { opacity: 0.6; }
.alert-score { border-top: 2px solid var(--accent); padding-top: 6px; }
.alert-score .num { display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.alert-score small { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.alert-body h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }
.alert-body h3 a { text-decoration: none; }
.alert-themes { list-style: none; margin: 10px 0 0; padding: 0; font-size: 0.88rem; }
.alert-themes li + li { margin-top: 8px; }
.alert-actions { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 600px) { .alert-item { grid-template-columns: 1fr; gap: 6px; } }

/* Safety */
.safety-box { margin-top: 18px; border: 1px solid var(--ink); padding: 14px 18px; background: var(--paper-2); }
.safety-box h3 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 6px; }
.safety-box ol { margin: 0; padding-left: 20px; font-size: 0.9rem; line-height: 1.5; }
.safety-box li + li { margin-top: 4px; }
.safety { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; font-size: 0.82rem; }
.safety li { border-left: 3px solid var(--warning); padding: 3px 0 3px 8px; }
.safety li.safety-danger { border-left-color: var(--accent); color: var(--accent); }
.safety q { display: block; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 0.8rem; quotes: "“" "”"; }

/* Colophon */
.colophon { border-top: 3px double var(--rule-strong); padding: 18px 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; font-size: 0.8rem; color: var(--ink-2); }
.colophon p { margin: 0; }
@media (max-width: 800px) { .colophon { grid-template-columns: 1fr; } }

/* Overlays */
.tooltip {
  position: fixed; pointer-events: none; z-index: 10; background: var(--ink); color: var(--paper);
  padding: 5px 8px; font-size: 0.75rem; font-family: var(--mono); white-space: nowrap;
}
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 20;
  background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 0.88rem; max-width: min(92vw, 560px);
}

@media (forced-colors: active) {
  .meter-fill, .scale-mark { background: CanvasText; }
  .chart .bar, .chart .bar.latest { fill: CanvasText; }
}
/* Print / PDF: always the paper edition, no controls, report only. */
@media print {
  :root, :root[data-theme="night"] {
    color-scheme: light;
    --paper: #ffffff; --paper-2: #f4f1ea; --ink: #111111; --ink-2: #333333; --muted: #666666;
    --rule: #cccccc; --rule-strong: #111111; --accent: #8a2418; --bar: #222222; --track: #e5e5e5;
  }
  @page { margin: 16mm 14mm; }
  body { font-size: 11pt; }
  .dateline, .sections, .sourcebar, .motto, .commission, .index, .report-tools, .leads .btn,
  details, .tooltip, .toast, .colophon, #signout-wrap { display: none !important; }
  .masthead { border-bottom: 2px solid #111; padding: 0 0 4px; }
  .nameplate { font-size: 20pt; text-align: left; margin: 0; }
  .wrap { max-width: none; padding: 0; }
  .paper { display: block; padding-top: 10px; }
  .report { padding-left: 0; }
  html, body { width: auto; overflow: visible; }
  .report-head { grid-template-columns: minmax(0, 1fr) 150px; gap: 18px; }
  .verdict-box { min-width: 0; padding-right: 10px; }
  .verdict-score { font-size: 3rem; }
  .headline { font-size: 26pt; }
  .lenses { grid-template-columns: repeat(3, 1fr) !important; }
  .lens, .lens:first-child, .lens:last-child { padding: 0 10px; border-top: 0; border-left: 1px solid #ccc; }
  .lens:first-child { padding-left: 0; border-left: 0; }
  .lens, .section, .theme, blockquote { break-inside: avoid; }
  a { text-decoration: none; color: inherit; }
}
