/* What Does Doug Wilson Believe? — site styles v3 */

:root {
  color-scheme: light;  /* light only; light-dark() tokens resolve to their light values */
  --bg: light-dark(#ffffff, #121212);
  --ink: light-dark(#141414, #f1f0ec);
  --ink-2: light-dark(#3b3b3b, #c9c8c2);
  --muted: light-dark(#6f6f6f, #8f8e88);
  --red: light-dark(#b80f28, #f0605d);
  --red-soft: light-dark(#fbeef0, #2a1617);
  --quote-bg: light-dark(#f7f4ee, #1b1a18);
  --rule: light-dark(#e4e2dc, #2b2a27);
  --rule-strong: light-dark(#141414, #f1f0ec);
  --focus: var(--red);

  --display: "Playfair Display", Georgia, serif;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  /* Layout: a wide frame for navigation, a narrow column for reading.
     Body text lines are kept near 65-75 characters (the range readability studies favor);
     the extra width on large screens goes to side navigation, never to longer lines. */
  --frame: 76rem;
  --measure: 38rem;
  --side: 19rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  /* 17px on phones, 18px on laptops, 20px only on big monitors (see the 105rem rule below).
     Viewport width doesn't track screen size or reading distance: a 13" laptop is ~1470px wide
     but small and close, so it must not get the largest size. */
  font-size: clamp(1.0625rem, 0.98rem + 0.2vw, 1.125rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 0.2em; }
a:hover { color: var(--red); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
button { font: inherit; color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: 0.5rem; z-index: 10; }

/* ---------- Header / footer ---------- */
.site-head {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--rule-strong);
}
.site-title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 1.1rem; font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.site-nav a { text-decoration: none; color: var(--ink-2); padding-block: 0.25rem; }
.site-nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -2px 0 var(--red); }

main { max-width: var(--frame); margin: 0 auto; padding: 0 var(--gutter) 3rem; }
.site-foot { max-width: var(--frame); margin: 3rem auto 0; padding: 2rem var(--gutter) 3rem; border-top: 2px solid var(--rule-strong); font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.foot-title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.foot-about p { margin: 0.6rem 0 0; max-width: 24rem; line-height: 1.5; }
.foot-col h2 { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin: 0 0 0.7rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.foot-col a, .foot-about a { color: var(--ink-2); text-decoration: none; }
.foot-col a:hover, .foot-about a:hover { color: var(--red); text-decoration: underline; }
.foot-col--topics ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
@media (min-width: 40rem) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .foot-grid { grid-template-columns: 1.3fr 0.8fr 1.4fr 1fr; gap: 3rem; } }

/* ---------- Intro ---------- */
.intro { padding: 2.5rem 0 1.25rem; }
.intro h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); letter-spacing: -0.01em; }
.lede { font-size: 1.12em; color: var(--ink-2); margin: 0.9rem 0 0; max-width: 44rem; }  /* ~70 characters a line, even where the column is the full frame */
.kicker { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin: 0 0 0.6rem; display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }
.kicker a { text-decoration: none; }

/* ---------- Search ---------- */
.finder { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 0.75rem 0 0.5rem; border-bottom: 1px solid var(--rule); }
.finder input {
  width: 100%;
  font: inherit;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
}
.finder input::placeholder { color: var(--muted); }
.finder-bar { display: flex; justify-content: space-between; align-items: center; font-family: var(--sans); font-size: 0.78rem; color: var(--muted); margin-top: 0.45rem; min-height: 1.4rem; }
#toggle-all { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.2em; }

.jump { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 0.25rem; font-family: var(--sans); font-size: 0.78rem; }
.jump a { text-decoration: none; padding: 0.3rem 0.65rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); }
.jump a:hover { border-color: var(--red); color: var(--red); }
.jump .jump-insults { background: var(--red); border-color: var(--red); color: #fff; }
.jump .jump-insults:hover { color: #fff; filter: brightness(1.1); }
.how { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); margin: 0.75rem 0 0; }

/* ---------- Topic sections ---------- */
.topic { margin-top: 2.75rem; }
.topic-head { border-top: 2px solid var(--rule-strong); padding-top: 0.75rem; margin-bottom: 0.25rem; }
.topic-head h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); }
.topic-head h2 .topic-count { margin-left: 0.4rem; }
.topic-head p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.95em; font-style: italic; }
.topic-count { font-family: var(--sans); font-size: 0.8rem; font-weight: 500; color: var(--muted); }
#most-extreme .topic-head { border-top-color: var(--red); }
#most-extreme .topic-head h2 { color: var(--red); }

/* ---------- Collapsible rows ---------- */
.row { border-bottom: 1px solid var(--rule); }
.row > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding: 0.85rem 0 0.85rem 1.6rem;
  position: relative;
}
.row > summary::-webkit-details-marker { display: none; }
.row > summary::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 1.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}
.row[open] > summary::before { transform: rotate(45deg); top: 1.2rem; border-color: var(--red); }
.row > summary:hover .row-title { color: var(--red); }
.row-head { display: flex; gap: 0.5rem; align-items: baseline; }
.row-title { font-family: var(--display); font-weight: 500; font-size: 1.1rem; line-height: 1.3; }
.row[data-sev="3"] .row-title { font-weight: 700; }
.row-meta { display: flex; gap: 0.6rem; font-family: var(--sans); font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.meta-topic { color: var(--red); }
.row-body { padding: 0.25rem 0 1.25rem 1.6rem; }
.sev-dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--red); flex: none; transform: translateY(-0.12em); }
@media (max-width: 560px) {
  .row > summary { grid-template-columns: 1fr; }
  .row-body { padding-left: 0; }
}

/* ---------- Quotes: unmistakably his words ---------- */
.dw-quote { margin: 1rem 0 1.25rem; }
.dw-quote blockquote {
  position: relative;
  margin: 0;
  padding: 1rem 1.25rem 1rem 3rem;
  background: var(--quote-bg);
  border-left: 4px solid var(--red);
  border-radius: 0 6px 6px 0;
  font-family: var(--serif);
  font-size: 1.08em;
  line-height: 1.6;
}
.dw-quote blockquote::before {
  content: "“";
  position: absolute;
  left: 0.55rem;
  top: -0.15rem;
  font-family: var(--display);
  font-size: 3.6rem;
  line-height: 1;
  color: var(--red);
}
.dw-quote blockquote p { margin: 0 0 0.7em; }
.dw-quote blockquote p:last-child { margin-bottom: 0; }
/* Interviewer lines are set back so Wilson's own words carry the weight */
.q-other { font-family: var(--sans); font-size: 0.8em; color: var(--muted); font-style: normal; }
.q-line--other { font-family: var(--sans); font-size: 0.85em; color: var(--muted); }
.q-speaker { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-right: 0.35rem; }
.q-line--dw .q-speaker { color: var(--red); }
.cite { font-family: var(--sans); font-size: 0.78rem; line-height: 1.5; color: var(--ink-2); margin: 0.5rem 0 0 0.25rem; }
.cite cite { font-style: italic; }
.cite-links { white-space: nowrap; }
.cite-links a { color: var(--red); text-decoration: none; font-weight: 500; }
.cite-links a:hover { text-decoration: underline; }

.ed-note { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-2); border-top: 1px dashed var(--rule); padding-top: 0.6rem; margin-top: 0.5rem; }
.ed-note__label { font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; color: var(--muted); margin-right: 0.3rem; }
.row-actions { font-family: var(--sans); font-size: 0.78rem; margin: 0.6rem 0 0; display: flex; gap: 1rem; align-items: center; }
.copy-link { background: none; border: 1px solid var(--rule); border-radius: 4px; padding: 0.4rem 0.75rem; cursor: pointer; font-size: 0.78rem; color: var(--ink-2); }
.copy-link:hover { border-color: var(--red); color: var(--red); }
.cl-share, .can-share .cl-copy { display: none; }
.can-share .cl-share { display: inline; }
/* Source links: a bigger hit area without moving anything (padding grows it, the negative margin cancels it out) */
.cite-links a { display: inline-block; padding: 0.7rem 0.3rem; margin: -0.7rem -0.3rem; }

.no-results { text-align: center; color: var(--muted); font-family: var(--sans); padding: 3rem 0; }
::highlight(dw-search) { background: #ffe58a; color: #141414; }

/* ---------- Insults page ---------- */
.intro--insults h1 { font-size: clamp(2.1rem, 1.5rem + 1.8vw, 2.9rem); }
.insult-group { margin-top: 2.75rem; }
.insult-group > h2 { font-size: 1.5rem; border-top: 2px solid var(--rule-strong); padding-top: 0.75rem; }
.insult-group > h2 .topic-count { margin-left: 0.4rem; }
.insult-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; margin-top: 1rem; }
.insult { border: 1px solid var(--rule); border-top: 3px solid var(--red); border-radius: 4px; padding: 1rem 1.1rem 0.75rem; display: flex; flex-direction: column; }
.insult-phrase { font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.15; color: var(--red); margin: 0 0 0.6rem; overflow-wrap: anywhere; }
.insult-sentence { margin: 0 0 0.75rem; font-size: 0.98em; }
.insult-sentence strong { font-weight: 600; background: var(--red-soft); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.insult-src { margin-top: auto; font-family: var(--sans); font-size: 0.75rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 0.5rem; }
.insult-src > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 0.5rem; }
.insult-src-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insult-src > summary::-webkit-details-marker { display: none; }
.insult-more { color: var(--red); font-weight: 500; white-space: nowrap; }
.insult-more::after { content: " ▸"; }
.insult-src[open] .insult-more::after { content: " ▾"; }
.insult-src .dw-quote { font-family: var(--serif); font-size: 1rem; color: var(--ink); }

/* ---------- Entry page ---------- */
.entry { padding-top: 2.5rem; }
.entry h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.8rem); margin-bottom: 1.25rem; }
.sev-tag { display: inline-flex; gap: 0.35rem; align-items: center; color: var(--red); }
.entry-insults { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-2); }
.related { margin-top: 2.5rem; border-top: 2px solid var(--rule-strong); padding-top: 0.75rem; }
.related h2 { font-size: 1.2rem; }
.related ul { padding-left: 1.1rem; }
.related li { margin: 0.3rem 0; }
.prose h2 { font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.65rem); margin: 2.75rem 0 0.75rem; scroll-margin-top: 1.5rem; }
.prose p, .prose li { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.45em; }

[hidden] { display: none !important; }

/* Click-to-play YouTube clip (no YouTube code loads until clicked) */
.yt { margin: 0.75rem 0 0; }
.yt-btn { position: relative; display: flex; align-items: center; gap: 0.75rem; width: 100%; max-width: 26rem; padding: 0; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); color: inherit; font-family: var(--sans); font-size: 0.85rem; font-weight: 600; text-align: left; cursor: pointer; overflow: hidden; }
.yt-btn img { width: 8.5rem; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; flex: none; }
.yt-play { position: absolute; left: 4.25rem; top: 50%; transform: translate(-50%, -50%); width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 0.85rem; padding-left: 0.15rem; }
.yt-btn:hover, .yt-btn:focus-visible { border-color: var(--red); color: var(--red); }
.yt-label { padding-right: 0.75rem; }
.yt iframe { width: 100%; max-width: 40rem; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 6px; display: block; }

/* Topic and standalone pages */
.topic-stats, .updated { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin: 0.5rem 0 0; }
.topic-foot { font-family: var(--sans); font-size: 0.9rem; margin: 2rem 0; }
.topic-head h2 a { color: inherit; text-decoration: none; }
.topic-head h2 a:hover { color: var(--red); text-decoration: underline; }
.faq { border-bottom: 1px solid var(--rule); padding: 0.6rem 0; }
.faq > summary { cursor: pointer; font-weight: 600; }
.faq > div { padding: 0.4rem 0 0.2rem; }
.sources { font-size: 0.9rem; }
.sources li { margin: 0.3rem 0; overflow-wrap: anywhere; }
.entry-summary { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); margin: -0.25rem 0 1.25rem; }
.plain-quote { margin: 1rem 0; padding: 0.25rem 0 0.25rem 1rem; border-left: 3px solid var(--rule); color: var(--muted); font-style: italic; }


/* ---------- Two-column pages: reading column + side navigation ---------- */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.page-grid > :first-child { min-width: 0; max-width: var(--measure); }
.side { font-family: var(--sans); font-size: 0.85rem; line-height: 1.45; display: grid; gap: 1.5rem; align-content: start; }
.side-box { border-top: 2px solid var(--rule-strong); padding-top: 0.7rem; }
.side-h { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.6rem; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.35rem 0; border-bottom: 1px solid var(--rule); }
.side-list a { text-decoration: none; color: var(--ink-2); }
.side-list a:hover, .side-list a[aria-current="page"] { color: var(--red); }
.side-list a[aria-current="page"] { font-weight: 600; }
.side-n { color: var(--muted); font-variant-numeric: tabular-nums; }
.side-x a { font-weight: 600; color: var(--red); }
.side-list--plain li { display: block; }
.side-more { margin: 0.6rem 0 0; }
.side-more a { color: var(--red); text-decoration: none; font-weight: 500; }
.toc-list { margin: 0; padding-left: 1.2rem; }
.toc-list li { padding: 0.25rem 0; }
.toc-list a { text-decoration: none; color: var(--ink-2); }
.toc-list a:hover { color: var(--red); }
.toc-inline { font-family: var(--sans); font-size: 0.9rem; border: 1px solid var(--rule); border-radius: 6px; padding: 0.6rem 0.9rem; margin: 1.5rem 0 0; }
.toc-inline > summary { cursor: pointer; font-weight: 600; }
.toc-inline .toc-list { margin-top: 0.5rem; }
@media (min-width: 68rem) {
  .page-grid { grid-template-columns: minmax(0, var(--measure)) var(--side); justify-content: start; gap: clamp(3rem, 6vw, 7rem); }
  .side { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; padding-top: 2.5rem; }
  .toc-inline { display: none; }
}
@media (max-width: 67.99rem) {
  .side .toc { display: none; }
}
.rows { min-width: 0; }
.side .related { margin-top: 0; }
.side .related h2.side-h { font-size: 0.72rem; }
.side-list--plain li { padding: 0.45rem 0; }
.side-list--plain a { color: var(--ink); }
.site-nav a { white-space: nowrap; }
@media (max-width: 560px) {
  .site-nav { gap: 0.85rem; font-size: 0.74rem; letter-spacing: 0.02em; }
  .row-meta { flex-wrap: wrap; white-space: normal; gap: 0.2rem 0.6rem; }
}
.cap-note { font-family: var(--sans); font-size: 0.74rem; color: var(--muted); margin: 0.35rem 0 0 0.25rem; }
.credits { font-size: 0.9rem; color: var(--ink-2); }
.credits li { margin-bottom: 0.4em; }

/* ---------- Marginalia: one medieval figure per page, floated beside the intro ---------- */
.marg { float: right; width: clamp(110px, 36vw, 230px); margin: 0.25rem 0 0.75rem 1.25rem; }
.marg img { display: block; width: 100%; height: auto; }
.marg figcaption { font-family: var(--sans); font-size: 0.72rem; line-height: 1.35; font-style: italic; color: var(--muted); text-align: center; margin-top: 0.35rem; }
.marg--home { width: clamp(140px, 30vw, 360px); margin-top: 0.75rem; }
.marg--wide { float: none; width: min(100%, 560px); margin: 1.5rem auto 0.25rem; }
.intro::after, .entry::after { content: ""; display: table; clear: both; }
@media (max-width: 560px) { .marg--home { width: 42vw; } }

/* ---------- Search + sort bar (homepage and list pages) ---------- */
.tools { position: sticky; top: 0; z-index: 4; display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; background: var(--bg); padding: 0.75rem 0; border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: 0.82rem; }
.tools .lq { flex: 1 1 18rem; min-width: 0; font: inherit; font-size: 1rem; padding: 0.7rem 0.9rem; border: 1.5px solid var(--rule-strong); border-radius: 6px; background: var(--bg); color: var(--ink); }
.lcount { color: var(--muted); margin-left: auto; }
.sort { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 2px; }
.sort button { border: 0; background: none; padding: 0.35rem 0.85rem; border-radius: 999px; cursor: pointer; font-family: var(--sans); font-size: 0.78rem; font-weight: 500; color: var(--ink-2); }
.sort button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.col-main > .tools { margin-bottom: 0.25rem; }

/* ---------- Header: Topics menu and search ---------- */
.nav-topics { position: relative; }
.nav-topics > summary { list-style: none; cursor: pointer; color: var(--ink-2); padding-block: 0.25rem; white-space: nowrap; }
.nav-topics > summary::-webkit-details-marker { display: none; }
.nav-topics > summary::after { content: ""; display: inline-block; width: 0.32rem; height: 0.32rem; margin-left: 0.4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-0.25em) rotate(45deg); }
.nav-topics[open] > summary::after { transform: translateY(0.05em) rotate(-135deg); }
.nav-topics > summary:hover { color: var(--red); }
.nav-topics--here > summary { color: var(--red); box-shadow: inset 0 -2px 0 var(--red); }
.nav-topics__list { position: absolute; z-index: 20; top: calc(100% + 0.55rem); left: 50%; transform: translateX(-50%); min-width: 15rem; margin: 0; padding: 0.35rem 0; list-style: none; background: var(--bg); border: 1px solid var(--rule); border-top: 3px solid var(--red); border-radius: 6px; box-shadow: 0 14px 40px rgb(0 0 0 / 0.14); text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
.site-nav .nav-topics__list a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 1rem; color: var(--ink); white-space: nowrap; box-shadow: none; }
.site-nav .nav-topics__list a:hover, .site-nav .nav-topics__list a[aria-current="page"] { color: var(--red); background: var(--red-soft); }
.site-nav .nav-topics__list .side-x a { color: var(--red); font-weight: 600; border-top: 1px solid var(--rule); margin-top: 0.3rem; padding-top: 0.7rem; }
.nav-search { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; margin: -0.5rem -0.5rem -0.5rem -0.25rem; color: var(--ink-2); }
.site-nav a.nav-search { padding: 0; }
.nav-search:hover { color: var(--red); }
@media (max-width: 560px) {
  .nav-home { display: none; }           /* the site title already goes home */
  .nav-topics__list { left: 0; transform: none; }
}

/* ---------- Statement page: the key line, then the evidence; previous / next ---------- */
.key-line { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.65rem); line-height: 1.32; margin: -0.25rem 0 1.25rem; padding-left: 1rem; border-left: 4px solid var(--red); }
.key-line::before { content: "“"; }
.key-line::after { content: "”"; }
.entry-nav { display: grid; gap: 0.75rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 2px solid var(--rule-strong); font-family: var(--sans); }
.entry-nav a { display: block; padding: 0.8rem 0.95rem; border: 1px solid var(--rule); border-radius: 6px; text-decoration: none; }
.entry-nav a:hover { border-color: var(--red); }
.entry-nav__label { display: block; margin-bottom: 0.25rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.entry-nav__title { display: block; font-family: var(--display); font-weight: 700; font-size: 1.02rem; line-height: 1.3; color: var(--ink); }
@media (min-width: 40rem) {
  .entry-nav { grid-template-columns: 1fr 1fr; }
  .entry-nav__next { grid-column: 2; text-align: right; }
}

/* ---------- Touch screens: 44px targets ---------- */
@media (pointer: coarse) {
  .copy-link { min-height: 44px; min-width: 44px; padding-inline: 1rem; }
  .row-actions { gap: 1.25rem; }
  .row-actions a { display: inline-block; padding: 0.75rem 0; }
  .jump a { padding: 0.55rem 0.85rem; }
  .site-nav a, .nav-topics > summary { padding-block: 0.65rem; }
  .nav-search { width: 44px; height: 44px; }
  .sort button { min-height: 40px; }
  .side-list li { padding: 0.15rem 0; align-items: center; }
  .side-list a { display: block; padding: 0.45rem 0; flex: 1; }
  .foot-col ul { gap: 0.15rem; }
  .foot-col a { display: inline-block; padding: 0.45rem 0; }
}

/* ---------- Phones: get to the statements sooner ---------- */
@media (max-width: 560px) {
  .intro { padding-top: 1.5rem; }
  .intro--list .lede { font-size: 1em; }
  .entry { padding-top: 1.5rem; }
}
/* Phones: long topic intros fold to four lines ("Read more" is added by list.js only when the text is longer) */
@media (max-width: 560px) {
  .intro--list .lede.is-folded { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}
.lede-more { display: none; margin: 0.35rem 0 0; padding: 0.5rem 0; background: none; border: 0; cursor: pointer; font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--red); }
@media (max-width: 560px) { .lede-more { display: inline-block; } }

/* ---------- Big monitors and short laptop screens ---------- */
/* 20px body text only from ~1680px wide, where screens are physically large too */
@media (min-width: 105rem) { body { font-size: clamp(1.125rem, 0.5rem + 0.6vw, 1.25rem); } }
/* Laptops are wide but short: tighten the vertical space above the content */
@media (min-width: 64rem) and (max-height: 960px) {
  .intro { padding-top: 1.5rem; }
  .intro .lede { margin-top: 0.6rem; font-size: 1.05em; max-width: 48rem; line-height: 1.55; }
  .intro .jump, .intro + .jump { margin-top: 0.75rem; }
  .insult-group { margin-top: 2rem; }
}
