/* The site's one stylesheet (#372, build/CSP-Notes.md).

   It was a <style> block in domain/base.html until the Content-Security-Policy
   (content/gateway/csp.py) said `style-src 'self'`: a stylesheet now has to be
   a file from our own origin, like a script. tests/test_csp.py refuses a
   <style> block or a style= attribute in any template. */

/* Self-hosted type (#507, build/Topic-Page-A-Decision.md §3): Source Serif 4
   for what is read -- the Summary, Facts, arguments -- and IBM Plex Sans for
   everything around them. Both are SIL OFL 1.1; the licences and checksums are
   beside the files (fonts/, and the README one directory up). Served from our
   own origin like every other asset: `default-src 'self'` covers fonts, and a
   font fetched from a third party is a request that tells that party who is
   reading which Topic. Two subsets each, the ranges fontsource publishes, so a
   page in English fetches only `latin`; a script neither covers (Cyrillic,
   Greek, CJK) falls back to the system font, which is the honest answer. */
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/source-serif-4-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/source-serif-4-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* Declaring color-scheme is the part that matters: without it a page with
   no colours of its own gets a dark background from the browser while its
   text stays black. Both themes are stated explicitly below.

   **PRO and CON are blue and orange, of equal weight** (#507). The green/red
   pair this replaced read as right/wrong before a word was read, and it is
   the pair red-green colour blindness merges. Blue/orange passes the dataviz
   validator's colour-vision checks in both themes (§3 of the decision). The
   two side colours mark *which side*; they are never used for FOR/AGAINST,
   which is a vote on one argument and not a side -- the distribution's
   shares are ink and grey (--for-bar, --against-bar).

   --alert is the refusal's alone: an error is not CON. */
:root {
  color-scheme: light dark;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --fg: #16181d;
  --muted: #5a606b;
  --rule: #dde1e6;
  --accent: #1f5fa8;
  --pro-bar: #1f5fa8;
  --con-bar: #b4570f;
  --tag-fg: #ffffff;
  --divided: #4a2f78;
  --settled: #3a3f48;
  --for-bar: #3a3f48;
  --against-bar: #9aa1ab;
  --control: #9ca3ae;
  --chosen-bg: #16181d;
  --chosen-fg: #ffffff;
  --alert: #b42318;
  --card: #ffffff;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181d;
    --surface: #1c2127;
    --fg: #e8eaed;
    --muted: #a3abb5;
    --rule: #2c333b;
    --accent: #8db8f0;
    --pro-bar: #4a8ad8;
    --con-bar: #d7783a;
    --tag-fg: #0e1114;
    --divided: #c7b3ee;
    --settled: #c9cfd6;
    --for-bar: #c9cfd6;
    --against-bar: #5d6670;
    --control: #6b7581;
    --chosen-bg: #e8eaed;
    --chosen-fg: #14181d;
    --alert: #f97066;
    --card: #1c2127;
  }
}

/* The body is the page's column: narrow by default, for the pages that are a
   form or a list, and wide on the Topic page, whose two sides sit side by side
   (`{% block body_class %}` in domain/base.html). */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 44rem;
  padding: 1.25rem 1.25rem 4rem;
}
body.wide { max-width: 74rem; }
a { color: var(--accent); text-underline-offset: 2px; }
h1 {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .5rem;
}
h2 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 2rem 0 .75rem;
}
.lede { color: var(--fg); margin: 0 0 1rem; }
.muted { color: var(--muted); }
.back { display: inline-block; margin-bottom: 1.25rem; font-size: .9rem; }

/* The site's one header row: the name, which goes home, and the account. */
.site-head {
  align-items: center;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: .9rem;
}
.wordmark {
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  text-decoration: none;
}

/* The shape at the top of the page. The spine is styled flatter than an
   argument row on purpose: a Fact is not a claim anybody is asked to agree
   with, and giving it the same card treatment as a Key Idea invites it to
   be read as one.

   This used to be a <style> block on *every* page, so a word written here
   was a word in every response, and a substring assertion once matched its
   prose (tests/test_verification.py now scans only what a reader is told).
   Since #372 it is a file, and is in no response at all. Write what you
   like here. */
ul.facts { list-style: none; margin: 0; padding: 0; }
ul.facts li {
  border-bottom: 1px solid var(--rule);
  padding: .8rem 0;
}
ul.facts li:last-child { border-bottom: 0; padding-bottom: 0; }
ul.facts li.empty { color: var(--muted); font-style: italic; }
p.fact-text { font-family: var(--serif); font-size: 1.08rem; margin: 0 0 .35rem; }
p.fact-meta { font-size: .8rem; margin: 0; }
/* Both sides leaning on the same claim is the shape the page exists to
   show, so it is the one marker that is solid rather than outlined. */
.badge.shared { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* The Topic page's top: the name, the Summary, then band one as two panels.
   A panel is the page's one card shape; Facts and the overview get it, and
   so does each argument further down -- the Facts' *rows* stay flat inside
   theirs, so a Fact still does not look like a claim to vote on. */
.topic-head { margin-bottom: 1.75rem; max-width: 52rem; }
.topic-head h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); letter-spacing: -0.02em; line-height: 1.05; }
.topic-head .lede { font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; }
/* A Topic's Categories, as links under its name (#528). */
.topic-head .topic-categories { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 .25rem; }
.topic-head .topic-categories a {
  border: 1px solid var(--control);
  border-radius: 999px;
  font-size: .8rem;
  padding: .15rem .7rem;
  text-decoration: none;
}
.topic-head .topic-categories a:hover { border-color: var(--accent); }
.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
}
.panel > h2 {
  color: var(--fg);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 .25rem;
  text-transform: none;
}
.panel-note { color: var(--muted); font-size: .88rem; margin: 0 0 .5rem; }
.band-one { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem; }
.band-one .facts-panel { flex: 999 1 30rem; min-width: 0; }
.band-one .stands-panel { flex: 1 1 17rem; }

/* The overview's marks: one per argument, in the overview's three buckets.
   Shape tells them apart as well as colour -- solid, hatched, dashed ring --
   so the partition reads without colour vision and in forced colours. It is
   the partition drawn, not a score: no mark is larger for a bigger count. */
.marks { display: flex; flex-wrap: wrap; gap: 6px; margin: .75rem 0 1rem; }
.mark { border-radius: 50%; box-sizing: border-box; height: 20px; width: 20px; }
.mark.settled { background: var(--settled); }
.mark.contested {
  background: repeating-linear-gradient(45deg, var(--divided) 0 2px, var(--surface) 2px 5px);
  border: 1px solid var(--divided);
}
.mark.unweighed { border: 2px dashed var(--muted); height: 18px; margin: 1px; width: 18px; }
p.overview { font-size: .95rem; margin: 0; }
p.overview .count { font-variant-numeric: tabular-nums; font-weight: 600; }

/* What the sides mean, and whose votes order them: one panel, two halves. */
.sides-head { padding: 0; overflow: hidden; }
.polarity-lines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.polarity-lines p {
  align-items: flex-start;
  border-bottom: 1px solid var(--rule);
  display: flex;
  font-family: var(--serif);
  font-size: 1.1rem;
  gap: .9rem;
  margin: 0;
  padding: 1.1rem 1.6rem;
}
.sides-head > p.polarity { margin: 0; padding: 1.1rem 1.6rem; border-bottom: 1px solid var(--rule); }
.side-tag {
  border-radius: 6px;
  color: var(--tag-fg);
  flex: none;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  padding: .3rem .55rem;
}
.side-tag.pro { background: var(--pro-bar); }
.side-tag.con { background: var(--con-bar); }
.sides-head p.ordering { background: var(--bg); font-size: .9rem; margin: 0; padding: .8rem 1.6rem; }

/* The two sides, side by side when there is room and stacked when there is
   not. Neither is wider, and the order is the markup's: PRO first, which is
   an open question (build/Topic-Page-A-Decision.md §6), not a ranking. */
.sides {
  align-items: start;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  margin-top: 1.5rem;
}
.side > h2 {
  border-bottom: 3px solid var(--rule);
  color: var(--fg);
  font-size: .95rem;
  letter-spacing: .1em;
  margin: 0 0 .9rem;
  padding: 0 0 .55rem;
}
.side.pro > h2 { border-color: var(--pro-bar); }
.side.con > h2 { border-color: var(--con-bar); }

ul.ideas { list-style: none; margin: 0; padding: 0; }
/* `>` and not a descendant: the deep layer opens *inside* a row, and its own
   lists (the distribution's shares, the evidence) are not argument cards. */
ul.ideas > li {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: .75rem;
  padding: 1.1rem 1.3rem;
}
ul.ideas > li.empty {
  background: none;
  border-style: dashed;
  color: var(--muted);
  font-style: italic;
}

/* A row of a ranked side. The bar is the endorsement strength within the
   side -- deliberately not a five-star rating of the Topic. */
p.idea-text { font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; margin: 0; }
p.idea-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: .85rem;
  gap: .45rem .75rem;
  margin: 0;
}
.format {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.bar {
  background: var(--rule);
  border-radius: 4px;
  flex: 0 0 7rem;
  height: 8px;
  overflow: hidden;
  position: relative;
}
.bar::before {
  background: currentColor;
  border-radius: 4px;
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: var(--strength, 0%);
}
ul.ideas.pro .bar::before { background: var(--pro-bar); }
ul.ideas.con .bar::before { background: var(--con-bar); }
.strength { font-variant-numeric: tabular-nums; }
/* Descriptive, local, and never a sort key (Participation-Ranking §6). */
.badge {
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem;
  padding: .05rem .5rem;
}
.badge.divided { border: 1px dashed var(--divided); color: var(--divided); font-weight: 600; }

/* The vote slot. In the shared shell it holds the same sign-in links for
   everybody (domain/_vote_invitation.html); for a signed-in reader the sliver
   swaps in the real controls (domain/_position_control.html). Both draw the
   same shapes -- a joined FOR/AGAINST pair, or a row of 1-10 -- so the swap
   changes what a press does, not what the row looks like. :empty still hides
   a slot with nothing in it (the deep layer's thread slots use it). */
.you {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
}
.you:empty { display: none; }
.you .said { color: var(--fg); font-size: .9rem; }
.you .reconfirm { color: var(--muted); font-weight: 400; }
.vote-pair {
  border: 1px solid var(--control);
  border-radius: 10px;
  display: inline-flex;
  overflow: hidden;
}
.vote-pair > button, .vote-pair > a,
.score-row > button, .score-row > a {
  align-items: center;
  background: var(--surface);
  border: 0;
  box-sizing: border-box;
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  font: 600 .85rem/1 var(--sans);
  justify-content: center;
  letter-spacing: .04em;
  min-height: 44px;
  text-decoration: none;
}
.vote-pair > button, .vote-pair > a { min-width: 6.5rem; padding: 0 1rem; }
.vote-pair > :is(a, button) + :is(a, button) { border-left: 1px solid var(--control); }
.score-row { display: flex; flex-wrap: wrap; gap: 4px; }
.score-row > button, .score-row > a {
  border: 1px solid var(--control);
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
  width: 2.5rem;
}
.vote-pair > :hover, .score-row > :hover { background: var(--bg); }
.vote-pair > .chosen, .score-row > .chosen {
  background: var(--chosen-bg);
  border-color: var(--chosen-bg);
  color: var(--chosen-fg);
}
.vote-pair > :focus-visible, .score-row > :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.score-scale { color: var(--muted); font-size: .78rem; }

/* The sliver's own line, under the two lists: the invitation to sign in or
   to verify, or nothing at all once a reader can act. */
.yours { color: var(--muted); font-size: .9rem; margin-top: 1.5rem; }
.yours:empty { display: none; }

/* Where a refused write says so. Fixed, because the control that was
   refused may be anywhere on a long page and the reason has to be seen
   without scrolling to find it. */
#refusal {
  background: var(--card);
  border: 1px solid var(--alert);
  border-radius: 4px;
  bottom: 1rem;
  color: var(--fg);
  font-size: .9rem;
  left: 50%;
  max-width: 30rem;
  padding: .6rem .9rem;
  position: fixed;
  transform: translateX(-50%);
  z-index: 10;
}

/* The distribution, at the top of the deep layer. The bars are wider than
   the ranked row's and the counts are set at reading size, because this
   band exists to be read as a decomposition rather than glanced at as a
   badge -- and because the number beside the bar here is a count of people,
   not the shrunk estimate one band up (domain/_distribution.html). */
.distribution { margin-bottom: 1.6rem; }
.distribution ul.shares { list-style: none; margin: 0; padding: 0; }
.distribution li.share,
.distribution p.spread-figure,
.distribution p.spread-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: .85rem;
  gap: .5rem;
  margin: .3rem 0;
}
.distribution .bar { flex: 0 0 7rem; }
.distribution li.share.for .bar::before { background: var(--for-bar); }
.distribution li.share.against .bar::before { background: var(--against-bar); }
.distribution .strength { font-weight: 600; min-width: 2rem; text-align: right; }
.distribution p.empty { color: var(--muted); font-style: italic; margin: .3rem 0; }
.distribution p.note { font-size: .78rem; margin: .5rem 0 0; }

/* The deep layer: the thread, and the controls that arrive over it. The
   slots follow .you's rule -- empty until the private fragment lands, so
   the shared markup reserves no space for a reader who may not exist. */
p.deeper { margin-top: 2rem; }
ul.comments, ul.replies { list-style: none; margin: 0; padding: 0; }
ul.replies {
  border-left: 2px solid var(--rule);
  margin: .6rem 0 0 .4rem;
  padding-left: .8rem;
}
li.comment { margin: .8rem 0; }
li.comment .said-by { font-size: .8rem; margin: 0 0 .2rem; }
li.comment .handle { font-family: ui-monospace, SFMono-Regular, monospace; }
li.comment .body { margin: 0; }
li.comment.removed .gone { color: var(--muted); font-style: italic; margin: 0; }
ul.comments li.empty { color: var(--muted); font-style: italic; }
/* Only while it is the only thing there: a post swaps in beside it. */
ul.comments li.empty:not(:only-child) { display: none; }
.controls:empty { display: none; }
.controls details { font-size: .8rem; margin-top: .3rem; }
.controls summary { color: var(--accent); cursor: pointer; }
/* A held Topic's review page: what follows the ruling, collapsed (#484). */
details.more { margin-top: 1.2rem; }
details.more > summary { color: var(--accent); cursor: pointer; }
.controls textarea, form.compose textarea {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--fg);
  display: block;
  font: inherit;
  margin: .3rem 0;
  padding: .4rem;
  width: 100%;
}
form.compose label { display: block; font-size: .8rem; }

nav.account { font-size: .9rem; margin-left: auto; }

/* The ways in to an account, on the account page and nowhere else. The
   unlink button sits on the row it removes: a select-then-confirm would put
   a second identifier between the thing named and the thing deleted. */
ul.credentials { list-style: none; margin: 0 0 1rem; padding: 0; }
ul.credentials li {
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .6rem 0;
}
ul.credentials .when { color: var(--muted); font-size: .8rem; }
ul.credentials .current { color: var(--accent); font-size: .8rem; }
ul.credentials form { margin: 0 0 0 auto; }

ul.topics { list-style: none; margin: 0; padding: 0; }
ul.topics li { border-bottom: 1px solid var(--rule); padding: .6rem 0; }

footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .8rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
}

/* The landing page as design A (#519, build/Landing-Page-A-Decision.md).
   Under body.landing, except the topic cards, which a Category's page shares
   (#528, domain/_topic_list.html). */
.landing h2.section {
  color: var(--fg);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 1.8rem;
  text-transform: none;
}
.hero {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 3.5rem;
  padding: 3rem 0 4rem;
}
.hero-text { flex: 999 1 30rem; min-width: 0; }
.eyebrow {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  margin: 0 0 1.1rem;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0 0 1.4rem;
}
.hero-lede {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 0 0 2rem;
  max-width: 36rem;
}
.hero-cta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: .9rem;
  gap: .8rem 1.2rem;
  margin: 0;
}
/* The search box (#520): on the landing hero and on /search/. Ink, not the
   accent, as a.button is. */
form.search {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .6rem;
  margin: 0 0 1.6rem;
  max-width: 36rem;
}
form.search label { color: var(--muted); flex-basis: 100%; font-size: .85rem; }
form.search input {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  color: var(--fg);
  flex: 1 1 14rem;
  font: inherit;
  min-height: 44px;
  min-width: 0;
  padding: 0 .8rem;
}
form.search button {
  background: var(--chosen-bg);
  border: 0;
  border-radius: 10px;
  color: var(--chosen-fg);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  padding: 0 1.2rem;
}
form.search input:focus-visible,
form.search button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-note { color: var(--muted); }

/* Ink, not the accent: on this site blue is PRO. */
a.button {
  align-items: center;
  background: var(--chosen-bg);
  border-radius: 12px;
  color: var(--chosen-fg);
  display: inline-flex;
  font-size: .95rem;
  font-weight: 600;
  min-height: 52px;
  padding: 0 1.5rem;
  text-decoration: none;
}
a.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The schematic: how every Topic reads, drawn in shapes. The bars are the
   Topic page's own .bar with its data-strength widths. */
.schematic {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow: 0 24px 48px -28px rgba(22, 24, 29, .35);
  flex: 1 1 22rem;
  margin: 0;
  padding: 1.6rem;
}
.sk { display: flex; flex-direction: column; gap: .45rem; }
.sk-line { background: var(--rule); border-radius: 4px; display: block; height: 7px; }
.sk-line.sk-title { background: var(--fg); height: 14px; margin-bottom: .25rem; width: 62%; }
.sk-line.w64 { width: 64%; }
.sk-line.w70 { width: 70%; }
.sk-line.w74 { width: 74%; }
.sk-line.w78 { width: 78%; }
.sk-line.w80 { width: 80%; }
.sk-line.w84 { width: 84%; }
.sk-line.w90 { width: 90%; }
.sk-line.w92 { width: 92%; }
.sk-label {
  color: var(--muted);
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sk-facts {
  border: 1px solid var(--rule);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: .85rem 0 .75rem;
  padding: .8rem 1rem;
}
.sk-fact { align-items: center; display: flex; gap: .6rem; }
.sk-fact::before {
  background: var(--settled);
  border-radius: 50%;
  content: "";
  flex: none;
  height: 8px;
  width: 8px;
}
.sk-fact .sk-line { flex: none; }
.sk-sides { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sk-side { display: flex; flex-direction: column; gap: .5rem; }
.sk-side > .sk-label { border-bottom: 3px solid var(--rule); color: var(--fg); padding-bottom: .4rem; }
.sk-side.pro > .sk-label { border-color: var(--pro-bar); }
.sk-side.con > .sk-label { border-color: var(--con-bar); }
.sk-card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: .55rem .65rem;
}
.sk-card .bar { flex: none; height: 6px; width: 100%; }
.sk-side.pro .bar::before { background: var(--pro-bar); }
.sk-side.con .bar::before { background: var(--con-bar); }
.sk-card.divided { border: 1px dashed var(--divided); }
.sk-divided { color: var(--divided); font-size: .68rem; font-weight: 600; }
.schematic figcaption { color: var(--muted); font-size: .8rem; margin-top: 1rem; }

/* How it works: a band the width of the window, from inside the column. */
.how {
  background: var(--surface);
  box-shadow: 0 0 0 100vmax var(--surface);
  clip-path: inset(0 -100vmax);
  padding: 3.5rem 0;
}
ol.steps {
  counter-reset: step;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
ol.steps li { counter-increment: step; }
ol.steps li::before {
  color: var(--control);
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: .9rem;
}
ol.steps h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 .5rem; }
ol.steps p { color: var(--muted); margin: 0; }

/* Every live Topic, A to Z. The whole card is the Topic's link: the name's
   ::after covers it, so there is one link per card and its name is the name. */
.all-topics { padding: 4rem 0 0; }
/* The order toggle: two links drawn as one segmented control (#524). */
nav.order-toggle {
  border: 1px solid var(--control);
  border-radius: 999px;
  display: inline-flex;
  margin: 0 0 1.25rem;
  overflow: hidden;
}
nav.order-toggle a {
  background: var(--card);
  color: var(--accent);
  font-size: .85rem;
  padding: .4rem 1rem;
  text-decoration: none;
}
nav.order-toggle a + a { border-left: 1px solid var(--control); }
nav.order-toggle a[aria-current="true"] {
  background: var(--accent);
  color: var(--card);
  font-weight: 600;
}
nav.order-toggle a:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
ul.topic-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.topic-cards li {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.25rem 1.35rem;
  position: relative;
}
ul.topic-cards li:hover { border-color: var(--control); }
ul.topic-cards li:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
ul.topic-cards a {
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
ul.topic-cards a:focus-visible { outline: none; }
ul.topic-cards a::after { content: ""; inset: 0; position: absolute; }
ul.topic-cards p {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--muted);
  display: -webkit-box;
  flex-grow: 1;
  font-size: .92rem;
  line-clamp: 3;
  margin: 0;
  overflow: hidden;
}
ul.topic-cards .more {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .8rem;
  margin-top: .3rem;
  padding-top: .7rem;
}
ul.topic-cards li.empty {
  background: none;
  border-style: dashed;
  color: var(--muted);
  font-style: italic;
}
.landing footer p { margin: 0 0 .4rem; }

/* The Category chips (#528, Topic-Categories §5): "Everything", then each
   active Category with a live Topic, A to Z, as pill links; the page's own is
   filled. On the index and on every Category page, so not under .landing. No
   count beside a chip, ever: a number there is comparable across Categories. */
nav.category-chips { margin: 0 0 1.25rem; }
nav.category-chips ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.category-chips a {
  background: var(--card);
  border: 1px solid var(--control);
  border-radius: 999px;
  color: var(--accent);
  display: inline-block;
  font-size: .85rem;
  padding: .35rem .9rem;
  text-decoration: none;
}
nav.category-chips a:hover { border-color: var(--accent); }
nav.category-chips a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--card);
  font-weight: 600;
}
nav.category-chips a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A Category's page: its name and one fixed sentence above the shared list. */
.category-head { margin-bottom: 1.5rem; max-width: 52rem; }
.category-head h1 { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 2.8rem); letter-spacing: -0.01em; line-height: 1.1; }
.category-head p { color: var(--muted); margin: .4rem 0 0; }

/* One published editorial-config version (domain/editorial_config.html). */
pre.governed {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: .8rem;
  overflow-x: auto;
  padding: .75rem;
  white-space: pre-wrap;
  word-break: break-word;
}
code.digest { font-size: .8rem; word-break: break-all; }
table.governed { border-collapse: collapse; font-size: .9rem; }
table.governed th, table.governed td {
  border-bottom: 1px solid var(--rule);
  padding: .25rem .9rem .25rem 0;
  text-align: left;
}

/* The bars' widths. They were style="--strength: N%" on each bar, which
   style-src 'self' refuses. A template now prints data-strength="N", N a whole
   percentage from |floatformat:0, and each value has its rule here. Every
   value a template can print is here: tests/test_csp.py requires exactly
   0 to 100, each setting its own number. */
.bar[data-strength="0"] { --strength: 0%; }
.bar[data-strength="1"] { --strength: 1%; }
.bar[data-strength="2"] { --strength: 2%; }
.bar[data-strength="3"] { --strength: 3%; }
.bar[data-strength="4"] { --strength: 4%; }
.bar[data-strength="5"] { --strength: 5%; }
.bar[data-strength="6"] { --strength: 6%; }
.bar[data-strength="7"] { --strength: 7%; }
.bar[data-strength="8"] { --strength: 8%; }
.bar[data-strength="9"] { --strength: 9%; }
.bar[data-strength="10"] { --strength: 10%; }
.bar[data-strength="11"] { --strength: 11%; }
.bar[data-strength="12"] { --strength: 12%; }
.bar[data-strength="13"] { --strength: 13%; }
.bar[data-strength="14"] { --strength: 14%; }
.bar[data-strength="15"] { --strength: 15%; }
.bar[data-strength="16"] { --strength: 16%; }
.bar[data-strength="17"] { --strength: 17%; }
.bar[data-strength="18"] { --strength: 18%; }
.bar[data-strength="19"] { --strength: 19%; }
.bar[data-strength="20"] { --strength: 20%; }
.bar[data-strength="21"] { --strength: 21%; }
.bar[data-strength="22"] { --strength: 22%; }
.bar[data-strength="23"] { --strength: 23%; }
.bar[data-strength="24"] { --strength: 24%; }
.bar[data-strength="25"] { --strength: 25%; }
.bar[data-strength="26"] { --strength: 26%; }
.bar[data-strength="27"] { --strength: 27%; }
.bar[data-strength="28"] { --strength: 28%; }
.bar[data-strength="29"] { --strength: 29%; }
.bar[data-strength="30"] { --strength: 30%; }
.bar[data-strength="31"] { --strength: 31%; }
.bar[data-strength="32"] { --strength: 32%; }
.bar[data-strength="33"] { --strength: 33%; }
.bar[data-strength="34"] { --strength: 34%; }
.bar[data-strength="35"] { --strength: 35%; }
.bar[data-strength="36"] { --strength: 36%; }
.bar[data-strength="37"] { --strength: 37%; }
.bar[data-strength="38"] { --strength: 38%; }
.bar[data-strength="39"] { --strength: 39%; }
.bar[data-strength="40"] { --strength: 40%; }
.bar[data-strength="41"] { --strength: 41%; }
.bar[data-strength="42"] { --strength: 42%; }
.bar[data-strength="43"] { --strength: 43%; }
.bar[data-strength="44"] { --strength: 44%; }
.bar[data-strength="45"] { --strength: 45%; }
.bar[data-strength="46"] { --strength: 46%; }
.bar[data-strength="47"] { --strength: 47%; }
.bar[data-strength="48"] { --strength: 48%; }
.bar[data-strength="49"] { --strength: 49%; }
.bar[data-strength="50"] { --strength: 50%; }
.bar[data-strength="51"] { --strength: 51%; }
.bar[data-strength="52"] { --strength: 52%; }
.bar[data-strength="53"] { --strength: 53%; }
.bar[data-strength="54"] { --strength: 54%; }
.bar[data-strength="55"] { --strength: 55%; }
.bar[data-strength="56"] { --strength: 56%; }
.bar[data-strength="57"] { --strength: 57%; }
.bar[data-strength="58"] { --strength: 58%; }
.bar[data-strength="59"] { --strength: 59%; }
.bar[data-strength="60"] { --strength: 60%; }
.bar[data-strength="61"] { --strength: 61%; }
.bar[data-strength="62"] { --strength: 62%; }
.bar[data-strength="63"] { --strength: 63%; }
.bar[data-strength="64"] { --strength: 64%; }
.bar[data-strength="65"] { --strength: 65%; }
.bar[data-strength="66"] { --strength: 66%; }
.bar[data-strength="67"] { --strength: 67%; }
.bar[data-strength="68"] { --strength: 68%; }
.bar[data-strength="69"] { --strength: 69%; }
.bar[data-strength="70"] { --strength: 70%; }
.bar[data-strength="71"] { --strength: 71%; }
.bar[data-strength="72"] { --strength: 72%; }
.bar[data-strength="73"] { --strength: 73%; }
.bar[data-strength="74"] { --strength: 74%; }
.bar[data-strength="75"] { --strength: 75%; }
.bar[data-strength="76"] { --strength: 76%; }
.bar[data-strength="77"] { --strength: 77%; }
.bar[data-strength="78"] { --strength: 78%; }
.bar[data-strength="79"] { --strength: 79%; }
.bar[data-strength="80"] { --strength: 80%; }
.bar[data-strength="81"] { --strength: 81%; }
.bar[data-strength="82"] { --strength: 82%; }
.bar[data-strength="83"] { --strength: 83%; }
.bar[data-strength="84"] { --strength: 84%; }
.bar[data-strength="85"] { --strength: 85%; }
.bar[data-strength="86"] { --strength: 86%; }
.bar[data-strength="87"] { --strength: 87%; }
.bar[data-strength="88"] { --strength: 88%; }
.bar[data-strength="89"] { --strength: 89%; }
.bar[data-strength="90"] { --strength: 90%; }
.bar[data-strength="91"] { --strength: 91%; }
.bar[data-strength="92"] { --strength: 92%; }
.bar[data-strength="93"] { --strength: 93%; }
.bar[data-strength="94"] { --strength: 94%; }
.bar[data-strength="95"] { --strength: 95%; }
.bar[data-strength="96"] { --strength: 96%; }
.bar[data-strength="97"] { --strength: 97%; }
.bar[data-strength="98"] { --strength: 98%; }
.bar[data-strength="99"] { --strength: 99%; }
.bar[data-strength="100"] { --strength: 100%; }
