/* Layout: one reading column on white, set like a newsletter. Quotes are in
   a text serif at reading size; everything around them (names, sources,
   years, buttons) is in the system sans, small and grey, so the words lead.
   One accent, a rubric red, marks the debates and a liked quote. Behind it
   all, very faint, the paper has a newsprint grain and columns of other
   quotes drifting in the margins. */
:root {
  --paper: #ffffff;
  --sheet: #f6f5f2;
  --ink: #1b1a19;
  --ink-2: #4a4845;
  --ink-3: #7c7975;
  --rule: #e7e5e1;
  --accent: #c0392b;
  --g-investing: #2f7a55;
  --g-startups: #b85a2e;
  --g-tech: #3565a8;
  --g-business: #6c52a0;
  --g-money: #9a7417;
  --g-classics: #8a4b2a;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161514; --sheet: #201f1d; --ink: #edebe7; --ink-2: #b8b5b0; --ink-3: #8a8782;
    --rule: #2e2d2a; --accent: #ef7462;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --g-investing: #7cc59f; --g-startups: #e79a72; --g-tech: #8fb3e6; --g-business: #b7a2dd; --g-money: #d9b863; --g-classics: #d79a76;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #161514; --sheet: #201f1d; --ink: #edebe7; --ink-2: #b8b5b0; --ink-3: #8a8782;
  --rule: #2e2d2a; --accent: #ef7462;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --g-investing: #7cc59f; --g-startups: #e79a72; --g-tech: #8fb3e6; --g-business: #b7a2dd; --g-money: #d9b863; --g-classics: #d79a76;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grain) var(--paper); color: var(--ink);
  font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 11; background: var(--paper);
}
/* The press: real quotes from the archive set in faint columns in the
   margins, like the rest of the paper showing round the one you are reading.
   They drift slowly and lag the page as it scrolls; now and then a column
   is reset in a fresh batch. Hidden where there is no margin. */
#press { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; user-select: none;
  -webkit-mask: linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 60px), transparent);
  mask: linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 60px), transparent); }
.press-side { position: absolute; top: 0; bottom: 0; width: calc(50% - 392px); display: flex; gap: 20px; overflow: hidden; }
.press-side.l { left: 0; flex-direction: row-reverse; padding-right: 28px; }
.press-side.r { right: 0; padding-left: 28px; }
#press { --press-ink: .085; }
.pc { flex: none; width: 136px; color: var(--ink); transition: opacity 1.6s ease; }
.pc.out { opacity: 0; }
.pc-in { will-change: transform; }
.pc p { margin: 0 0 7px; font: 400 10.5px/1.35 var(--serif); text-align: justify; hyphens: auto; -webkit-hyphens: auto;
  opacity: var(--press-ink); transition: opacity .7s ease; }
.pc p.pc-n { margin: -4px 0 12px; font-style: italic; text-align: right; }
/* The stronger setting of the same paper (PRESS in app.js, the ink-drop
   button in the top bar): darker ink and the names in red. */
#press[data-bg="1"] { --press-ink: .17; }
.pc p.pc-n { transition: opacity .7s ease, color .7s ease; }
#press[data-bg="1"] .pc-n { color: var(--accent); opacity: calc(var(--press-ink) * 2.2); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.r-n, .ago, .when { font-variant-numeric: tabular-nums; }

/* Header: the name centred with tools at the right, tabs below */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
/* One line: the mark at the left, the two feeds in the middle, tools at the right */
.top-in {
  max-width: 728px; margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.mark {
  grid-column: 1; justify-self: start; font: 700 23px/1 var(--serif); letter-spacing: -0.015em;
  text-decoration: none; color: var(--ink); padding: 4px 0;
  display: inline-flex; align-items: center; gap: 5px;
}
.quill { width: 19px; height: 19px; margin-top: -3px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tools { grid-column: 3; justify-self: end; display: flex; gap: 2px; }
/* The motto hangs under the name: written once by the quill on a first visit, then only on hover or a tap */
.top-in { position: relative; }
.motto {
  position: absolute; left: calc(max(16px, env(safe-area-inset-left, 0px)) - 7px); top: calc(100% + 4px); margin: 0;
  padding: 2px 6px; font: italic 400 clamp(10px, 3vw, 14px)/1.3 var(--serif); color: var(--ink-2); white-space: nowrap;
  border: 1px solid transparent; border-radius: 4px;
  opacity: 0; pointer-events: none;
  /* It leaves the way it came: the words go from the left, in the order they were written, behind a soft edge. */
  -webkit-mask: linear-gradient(90deg, transparent 46%, #000 54%) 0 0 / 220% 100% no-repeat;
  mask: linear-gradient(90deg, transparent 46%, #000 54%) 0 0 / 220% 100% no-repeat;
  transition: opacity .3s ease 2s, -webkit-mask-position 2.1s cubic-bezier(.4, 0, .6, 1), mask-position 2.1s cubic-bezier(.4, 0, .6, 1);
}
.motto-t { display: inline-block; padding-right: 2px; }
.motto.show { opacity: 1; -webkit-mask-position: 100% 0; mask-position: 100% 0; transition: opacity .25s ease; }
@media (hover: hover) {
  .mark:hover + .motto, .mark:focus-visible + .motto { opacity: 1; -webkit-mask-position: 100% 0; mask-position: 100% 0; transition: opacity .25s ease .2s; }
}
@media (prefers-reduced-motion: reduce) {
  .motto { -webkit-mask: none; mask: none; transition: opacity .8s ease; }
}
/* Over the blank band at the top of a page it is bare type; once the page has moved under the bar it needs its own paper. */
.top.scrolled .motto { background: var(--paper); border-color: var(--rule); }
.top:has(.topics-panel:not([hidden]), .news-panel:not([hidden]), .search:not([hidden])) .motto { display: none; }
.motto-q { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; line-height: 0; }
.motto-q .quill { display: block; margin: 0; transform-origin: 19% 83%; }
.mark.writing .quill { opacity: 0; }
.nav { grid-column: 2; display: flex; gap: 26px; }
.nav a {
  text-decoration: none; color: var(--ink-3); font-size: 14px; font-weight: 500;
  padding: 16px 0 15px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); border-bottom-color: var(--ink); }
.icon-btn {
  width: 34px; height: 34px; border: 0; background: none; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--ink-3);
}
.icon-btn:hover { background: var(--sheet); color: var(--ink); }
.icon-btn.on { color: var(--ink); }
#pressBtn svg { transition: fill .3s ease; }
#pressBtn.on svg { fill: currentColor; }
.icon-btn[hidden] { display: none; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.search { max-width: 728px; margin: 0 auto; padding: 4px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); }
.search input {
  width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--rule);
  background: var(--sheet); color: var(--ink); font: inherit; outline: none;
}
.search input:focus { border-color: var(--ink-3); background: var(--paper); }

/* Page */
.main {
  max-width: 728px; margin: 0 auto;
  padding-block: 0 64px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.page-head { padding: 40px 0 22px; border-bottom: 1px solid var(--rule); }
.page-head h1 {
  font: 700 34px/1.15 var(--serif); letter-spacing: -0.015em;
  margin: 0 0 6px; text-wrap: balance;
}
.page-head p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 60ch; }
.page-head h1 + p { margin-top: 14px; }
.page-head p + p { margin-top: 10px; }
.page-head .links { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.page-head .links a { color: var(--ink-2); text-underline-offset: 3px; }

/* A quote */
.post { padding: 30px 0 14px; border-bottom: 1px solid var(--rule); }
/* A boxed card below is its own break, so the quote above it drops its rule. */
.post:has(+ .fact), .post:has(+ .debate), .post:has(+ .thennow) { border-bottom-color: transparent; }
.post > div { min-width: 0; }
.post.fresh, .debate.fresh { animation: fade .5s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.text {
  font: 400 21px/1.55 var(--serif); color: var(--ink);
  margin: 0 0 18px; text-wrap: pretty; overflow-wrap: anywhere;
}
.text .full { color: var(--ink-2); }
.more-btn {
  border: 0; background: none; padding: 0; color: var(--ink-2); cursor: pointer;
  font: 500 14px var(--sans); margin: -8px 0 18px; display: block;
  text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px;
}
.more-btn:hover { color: var(--ink); text-decoration-color: currentColor; }

.sig { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sig-who { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.sig .name { font-weight: 600; font-size: 14.5px; text-decoration: none; }
.sig .name:hover { text-decoration: underline; text-underline-offset: 3px; }
.sig .desc { color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Initials avatar, tinted by the kind of leader */
.av {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none;
  background: color-mix(in srgb, var(--g, var(--ink-3)) 15%, var(--paper));
  color: var(--g, var(--ink-3));
  font: 600 12.5px/1 var(--sans); letter-spacing: 0.02em;
}

.src { font-size: 13px; color: var(--ink-3); margin: 10px 0 0 44px; }
.src a { color: var(--ink-3); text-decoration-color: var(--rule); text-underline-offset: 3px; }
.src a:hover { color: var(--ink); text-decoration-color: currentColor; }
.foot { display: flex; align-items: center; gap: 2px; margin: 4px 0 0 44px; }
.foot .gap { flex: 1; }
.act {
  border: 0; background: none; cursor: pointer; color: var(--ink-3);
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-grid; place-items: center;
}
.act:hover { background: var(--sheet); color: var(--ink); }
.act svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
/* The share menu: one small sheet of plain words, hung from the button that opened it */
.share-menu {
  position: absolute; z-index: 20; min-width: 172px; padding: 6px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12); opacity: 0; transition: opacity .12s ease;
}
.share-menu.open { opacity: 1; }
.share-menu button {
  display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: none;
  text-align: left; font: 500 14px var(--sans); color: var(--ink); cursor: pointer;
}
.share-menu button:hover, .share-menu button:focus-visible { background: var(--sheet); outline: none; }
.act[aria-expanded="true"] { background: var(--sheet); color: var(--ink); }
.act.heart.on { color: var(--accent); }
.act.heart.on svg { fill: currentColor; }
/* Not for me: the thumb fills and the quote steps back to grey, in place. */
.act.pass.on { color: var(--ink-2); }
.act.pass.on svg { fill: currentColor; }
.post > div > .text { transition: color .3s ease; }
.post.passed > div > .text { color: var(--ink-3); }

.related { margin-left: 44px; padding-left: 18px; border-left: 2px solid var(--rule); }
.related .post { padding-top: 20px; }
.related .text { font-size: 18px; }
.related-label { font-size: 13px; font-weight: 600; color: var(--ink-3); padding-top: 26px; }
.related-label a { color: var(--ink-2); text-underline-offset: 3px; }

/* Today: the edition's masthead, its two sections, and when each day quote was said */
.mast {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px;
  padding: 34px 0 10px; border-bottom: 1px solid var(--ink);
}
.mast-date { font: 700 24px/1.2 var(--serif); letter-spacing: -0.01em; }
.mast-no { font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ed-h { margin: 36px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--rule); font: 700 18px/1.2 var(--serif); }
/* The heading's own rule is enough: whatever sits above a section heading drops its closing line. */
:not(.mast):has(+ .ed-h) { border-bottom-color: transparent; }
.ed-note { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }
.ed-note a { color: var(--ink-2); text-underline-offset: 3px; }
.ed-h a { color: inherit; text-decoration: none; }
.ed-h a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ago { margin: 24px 0 -20px; font-size: 13px; color: var(--ink-3); }
.ed-h + .ago { margin-top: 20px; }

/* Debates: a framed box in the feed, two answers side by side */
.debate {
  margin: 30px 0; padding: 24px 24px 20px;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--paper);
}
.debate-q {
  display: block; text-decoration: none; margin-bottom: 20px;
  font: 700 24px/1.25 var(--serif); letter-spacing: -0.01em; text-wrap: balance;
}
.debate-q::before { content: "Debate"; display: block; margin-bottom: 6px; font: 600 13px/1.3 var(--sans); letter-spacing: 0; color: var(--accent); }
.debate-q:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.sides { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: start; }
.side { min-width: 0; }
.side .text { font-size: 18px; margin-bottom: 14px; }
.side .src { margin: 8px 0 0 44px; }
.vs {
  align-self: stretch; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(var(--rule), var(--rule)) center / 1px 100% no-repeat;
}
.debate-more { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.debate-more::after { content: " \2192"; }
.debate-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.vs span { background: var(--paper); padding: 6px 0; font: italic 400 17px/1 var(--serif); color: var(--ink-3); }

/* The foot of a debate or Then and Now card: the link or signature at the
   left, the image and share buttons at the right */
.card-foot { margin: 18px 0 0; }
.debate .card-foot .debate-more { margin-top: 0; }
.thennow .card-foot { padding-top: 16px; border-top: 1px solid var(--rule); margin-top: 20px; }
.thennow .card-foot .sig { margin: 0; padding: 0; border: 0; min-width: 0; }

/* Which side? under a debate: two pills, the reader's choice in the accent */
.poll { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; }
.poll-q { font-weight: 600; color: var(--ink-3); margin-right: 2px; }
.poll-btn { border: 1px solid var(--rule); background: var(--paper); border-radius: 999px; padding: 4px 12px; font: 500 13px var(--sans); color: var(--ink-2); cursor: pointer; }
.poll-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.poll-btn.on { border-color: var(--accent); color: var(--accent); }
.poll-n { color: var(--ink-3); }
.debate-page .poll { margin: 0; padding: 16px 0 18px; border-bottom: 1px solid var(--rule); }
body.og .poll { display: none; }

/* Newsletter sign-up at the foot of the edition */
.signup { margin: 28px 0 40px; padding: 22px 24px; border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet); }
.signup-h { margin: 0 0 14px; font: 700 20px/1.25 var(--serif); }
.signup-p { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; max-width: 56ch; }
.signup-row { display: flex; gap: 8px; }
/* The newsletter box that opens under the top bar */
.news-panel { border-top: 1px solid var(--rule); background: var(--paper); }
.np-in {
  max-width: 728px; margin: 0 auto;
  padding: 18px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
}
.np-h { margin: 0 0 4px; font: 700 20px/1.25 var(--serif); }
.np-p { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; max-width: 56ch; }
.np-p a { color: var(--ink); text-underline-offset: 3px; }
.np-in .signup-row { max-width: 460px; }
.signup input, .np-in input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.signup input:focus, .np-in input:focus { outline: none; border-color: var(--ink-3); }
.signup button, .np-in button { padding: 9px 16px; border: 0; border-radius: 8px; background: var(--ink); color: var(--paper); font: 600 14px var(--sans); cursor: pointer; }

/* The share picture: one card alone on plain paper, photographed at 1200 by
   675 by build/og.py; the app picks the zoom so the card fits */
body.og { background: var(--paper); }
body.og .top, body.og #press, body.og .sentinel, body.og .toast { display: none; }
body.og .main { max-width: none; width: 800px; margin: 0 auto; padding: 0 16px; display: grid; align-content: center; }
body.og .debate, body.og .thennow { margin: 0; }
body.og .card-foot .act, body.og .debate .card-foot, body.og .tn-watch, body.og .chk { display: none; }
body.og .og-mark { margin: 14px 4px 0; text-align: right; font: 700 20px/1 var(--serif); color: var(--ink-3); }

/* Then and Now: the same frame as a debate, the two years side by side with
   a rule between, the gap said once by the later year, one signature below */
.thennow {
  margin: 30px 0; padding: 24px 24px 20px;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--paper);
}
.thennow.fresh { animation: fade .5s ease both; }
.tn-subject { margin: 0 0 20px; font: 700 24px/1.25 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.tn-kicker { display: block; margin-bottom: 6px; font: 600 13px/1.3 var(--sans); letter-spacing: 0; color: var(--accent); }
.tn-halves { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; align-items: start; }
.tn-half { min-width: 0; }
.tn-half + .tn-half { border-left: 1px solid var(--rule); padding-left: 22px; }
.tn-year { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tn-gap { font-weight: 400; }
.tn-gap::before { content: " · "; }
.tn-half .text { font-size: 18px; margin-bottom: 12px; }
.tn-half .src { margin: 0; }

/* A debate's own page */
.kicker { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--accent); }
.debate-page .page-head .note { margin-top: 14px; font: 400 18px/1.6 var(--serif); color: var(--ink-2); max-width: 62ch; }
.positions { display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; padding: 30px 0 26px; border-bottom: 1px solid var(--rule); }
.position { min-width: 0; }
.position .text { font-size: 19px; }
.position .src { margin: 8px 0 0 44px; }
.when { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.sec-h { font: 700 20px/1.25 var(--serif); margin: 44px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.sec-h + .fact { margin-top: 18px; }
.more-debates { list-style: none; padding: 0; margin: 0; }
.more-debates li { border-bottom: 1px solid var(--rule); }
.more-debates a { display: block; padding: 13px 0; font: 400 18px/1.4 var(--serif); text-decoration: none; }
.more-debates a:hover { color: var(--accent); }
.more-debates li:last-child a { font: 600 14px var(--sans); color: var(--ink-3); }

/* Read further: title, the site it is on, and why it is worth reading */
.reading { list-style: none; padding: 0; margin: 0; }
.reading li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.reading a { font: 600 17px/1.35 var(--serif); text-decoration: none; }
.reading a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.reading .r-host { margin-left: 8px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.reading p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; max-width: 62ch; }
/* Watch: the same list, each title led by a play mark; a Then and Now half
   gets a one-word link under its source */
.watch a::before, .tn-watch::before { content: "\25B6\FE0E"; font-size: .7em; color: var(--accent); margin-right: 7px; position: relative; top: -1px; }
.tn-watch { display: inline-block; margin-top: 8px; font: 600 13px var(--sans); color: var(--ink-2); text-decoration: none; }
.tn-watch:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* The argument over time: a year rail, the two sides marked in red */
.timeline { list-style: none; padding: 6px 0 0; margin: 0; }
.timeline li {
  display: grid; grid-template-columns: 52px 1fr; column-gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.t-yr { grid-row: span 2; font-size: 13px; font-weight: 600; color: var(--ink-3); padding-top: 3px; font-variant-numeric: tabular-nums; }
.t-q { font: 400 16.5px/1.5 var(--serif); text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.t-q:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.t-who { grid-column: 2; font-size: 13px; color: var(--ink-3); text-decoration: none; margin-top: 3px; }
.t-who:hover { color: var(--ink); }
.timeline .side-row .t-yr, .timeline .side-row .t-who { color: var(--accent); }

/* A topic page: the argument in order, a heading for each decade */
.era-h { margin: 36px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font: 700 20px/1.2 var(--serif); }

/* A fact about someone just quoted: a shaded note between the quotes */
.fact { margin: 24px 0; padding: 18px 20px; background: var(--sheet); border-radius: 10px; }
.fact.fresh { animation: fade .5s ease both; }
.fact-h { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.fact-h .av { width: 26px; height: 26px; font-size: 10.5px; }
.fact-h span { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.fact-h a { text-decoration: none; color: var(--ink); }
.fact-h a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fact p { margin: 0 0 8px; font: 400 17px/1.55 var(--serif); color: var(--ink); text-wrap: pretty; }
.fact-src { font-size: 13px; color: var(--ink-3); text-decoration-color: var(--rule); text-underline-offset: 3px; }
.fact-src:hover { color: var(--ink); }

/* Lists: people in search results */
.list { padding: 4px 0 8px; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  text-decoration: none; border-bottom: 1px solid var(--rule);
}
.row .r-main { flex: 1; min-width: 0; }
.row .r-name { font-weight: 600; }
.row .r-desc { color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .r-n { color: var(--ink-3); font-size: 13px; }
.row:hover .r-name { text-decoration: underline; text-underline-offset: 3px; }

.empty { padding: 40px 0; color: var(--ink-2); }
/* The closing lines sit as far from the last card as from the foot of the page (45px each way). */
.end { text-align: center; color: var(--ink-3); padding: 15px 0 0; font-size: 14px; }
.main:has(> .end:last-child) { padding-bottom: 44px; }
.end a { color: var(--ink-2); text-underline-offset: 3px; }
.end p { margin: 0; }
.end p + p { margin-top: 21px; }
.end-links { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 6px; }
.end-links a + a::before { content: "\00b7"; display: inline-block; margin: 0 11px; color: var(--ink-3); }
.sentinel { height: 1px; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 9px 16px; border-radius: 8px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.toast.show { opacity: 1; }
.credit { color: var(--ink-3); font-size: 13px; padding: 34px 0 0; }
.credit a { color: var(--ink-2); text-underline-offset: 3px; }
.by { margin: 40px 0 0; font-size: 13px; color: var(--ink-3); }
.end .by { margin-top: 34px; }
.by a { color: var(--ink-2); text-underline-offset: 3px; }

/* Suggest a quote: a plain form in the reading column, the quote box set like a quote */
.suggest { display: grid; gap: 6px; max-width: 560px; padding: 20px 0 70px; position: relative; }
.suggest label { font: 600 14px var(--sans); margin-top: 14px; }
.suggest label span { font-weight: 400; color: var(--ink-3); }
.suggest input, .suggest textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--sans);
}
.suggest textarea { font: 400 18px/1.5 var(--serif); resize: vertical; min-height: 128px; }
.suggest input:focus, .suggest textarea:focus { border-color: var(--ink-3); }
.suggest .sg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; padding: 0; border: 0; }
.sg-msg { margin: 12px 0 2px; min-height: 1.5em; font-size: 14.5px; color: var(--ink-2); }
.sg-msg.bad { color: var(--accent); }
.suggest button { justify-self: start; padding: 10px 22px; border: 0; border-radius: 8px; background: var(--ink); color: var(--paper); font: 600 14px var(--sans); cursor: pointer; }
.suggest button:disabled { cursor: default; }

@media (max-width: 560px) {
  .mark { font-size: 21px; }
  .page-head h1 { font-size: 28px; }
  .text { font-size: 19px; }
  .src { margin-left: 0; }
  .foot { margin-left: 0; }
  .related { margin-left: 0; padding-left: 14px; }
  .debate { padding: 20px 16px 16px; }
  .debate-q { font-size: 21px; }
  .sides { grid-template-columns: 1fr; gap: 10px; }
  .side .src, .position .src { margin-left: 0; }
  .positions { grid-template-columns: 1fr; gap: 12px; }
  .positions .vs, .vs { justify-content: flex-start; background: linear-gradient(var(--rule), var(--rule)) center / 100% 1px no-repeat; padding: 4px 0; }
  .vs span { padding: 0 10px 0 0; }
  .thennow { padding: 20px 16px 16px; }
  .tn-subject { font-size: 21px; }
  .tn-halves { grid-template-columns: 1fr; row-gap: 16px; }
  .tn-half + .tn-half { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 16px; }
  .fact { padding: 16px; }
  .signup { padding: 18px 16px; }
  .signup-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .post.fresh, .debate.fresh, .thennow.fresh, .fact.fresh { animation: none; }
}

/* Portraits sit in the avatar circle; initials remain where there is none */
.av.pic { background: var(--sheet); overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.pic-credit { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.pic-credit a { color: var(--ink-3); text-underline-offset: 3px; }

/* Source line: at most two lines (the full text is in its title), with a
   tick before sources checked word for word */
.src { display: flex; align-items: flex-start; gap: 5px; }
.src a:not(.chk) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chk { flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: color-mix(in srgb, var(--g-investing) 16%, var(--paper)); color: var(--g-investing); }
.chk svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.archive-h span:first-child { color: var(--ink-2); }

/* Topics: a quiet control at the top right, opening a short list to tick */
.topics-btn {
  border: 1px solid var(--rule); background: var(--paper); border-radius: 999px;
  padding: 3px 11px; margin-right: 6px; align-self: center; cursor: pointer; white-space: nowrap;
  font: 500 13px var(--sans); color: var(--ink-3);
}
.topics-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.topics-btn.on { color: var(--accent); border-color: var(--accent); }
.topics-panel { border-top: 1px solid var(--rule); background: var(--paper); }
.tp-in {
  max-width: 728px; margin: 0 auto;
  padding: 14px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
}
.tp-h { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.tp-h2 { margin-top: 20px; }
.topics-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.tp-row {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border: 0; border-bottom: 1px solid var(--rule); background: none; cursor: pointer; text-align: left;
}
.tp-box { flex: none; width: 18px; height: 18px; border: 1.5px solid var(--ink-3); border-radius: 4px; display: grid; place-items: center; color: transparent; }
.tp-box svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tp-row.on .tp-box { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tp-name { flex: 1; font: 400 16px/1.3 var(--serif); }
.tp-n { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* All topics sits above the list on a rule of its own, like a day heading */
.tp-all-li { grid-column: 1 / -1; margin-bottom: 10px; border-bottom: 1px solid var(--ink); }
.tp-all-li .tp-row { border-bottom: 0; padding: 6px 0 10px; }
.tp-all .tp-name { font-weight: 600; }
.tp-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.tp-foot button { border: 0; background: none; cursor: pointer; font: 600 14px var(--sans); color: var(--ink-3); padding: 6px 0; }
.tp-foot .tp-done { color: var(--ink); }
@media (max-width: 560px) {
  .topics-panel ul { grid-template-columns: 1fr; }
}

/* A phone has no room for the tabs beside the name, so they take a row of their own underneath */
@media (max-width: 600px) {
  .top-in { grid-template-columns: 1fr auto; }
  .mark { padding: 13px 0 9px; }
  .tools { grid-column: 2; }
  .nav { grid-column: 1 / -1; grid-row: 2; gap: 22px; }
  .nav a { padding: 4px 0 9px; }
}
