/* Dan's Incoming — "white paper, coloured thought".
   The web port of the iOS design language (ios/.../Views/Shared/Theme.swift).
   Keep the two in step: the token block below is a transcription of
   `enum Theme`, and the numbers are the same numbers.

   Sustained reading happens on a near-white surface in near-black type.
   Cobalt is the app's chrome — masthead and tab row — and nothing else.
   The remaining colours identify *what kind of thinking* a passage is doing;
   they appear as hairline rules and labels, never as fills. */

:root {
  color-scheme: light;

  /* Chrome + surface */
  --cobalt: #1746A2;
  --cobalt-dark: #123B89;
  --chrome-muted: rgba(255, 255, 255, 0.68);

  --ink: #161616;
  --muted: #5E6064;
  --paper: #FCFCFA;
  --divider: #D8D9D6;
  /* Everything predating the design pass asked for --line. */
  --line: var(--divider);
  /* Links read as the app's own blue rather than as a seventh section colour
     — the darker cobalt, because a news lede can be a third hyperlink and the
     brighter one vibrates at that density. */
  --link: var(--cobalt-dark);

  /* Semantic section colours — the rule/label colour for each kind of
     intellectual operation. Amber and ochre carry a darkened `-text` twin:
     both are legible as a 1px rule but fail AA as small type on paper, so the
     rule keeps the bright value and the label takes the dark one. */
  --verdigris: #16756B;     /* Context */
  --section-cobalt: #1746A2;/* Intelligence Analysis / Expert Analysis */
  --oxblood: #8E2F35;       /* the polemical layer */
  --aubergine: #76506F;     /* The Other Side */
  --amber: #B56A1F;         /* Action */
  --amber-text: #96551A;
  --ochre: #B39628;         /* Further Reading */
  --ochre-text: #7A6412;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 22px 96px; }

/* ---------------------------------------------------------------- Chrome --
   The cobalt bar, and the only cobalt on the page. It reaches the full width
   of the window; its contents stay on the 720px reading column. The blue
   stops at the bottom of this element — nothing below it (headline, article,
   commentary) sits on blue.

   iOS puts the tab row at the bottom of the screen and hides it as you
   scroll; a browser already gives you back the scroll position and the back
   button, so here the tabs ride in the masthead and stay put. Same colours,
   same weights, same rule that selection is never carried by colour alone. */
.chrome { position: sticky; top: 0; z-index: 20; background: var(--cobalt); }
.chrome-inner { max-width: 720px; margin: 0 auto; padding: 0 22px; }
.chrome-bar {
  height: 46px; display: flex; align-items: center; justify-content: center;
}
.chrome-word {
  font-family: var(--sans);
  font-size: 13px; font-weight: 600; letter-spacing: 0.28em;
  color: #fff; text-decoration: none;
}
.chrome-tabs {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0 22px; padding-bottom: 2px;
}
.chrome-tabs a {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--chrome-muted); text-decoration: none;
  padding: 4px 0 8px; border-bottom: 2px solid transparent;
  -webkit-tap-highlight-color: transparent;
}
.chrome-tabs a:hover { color: #fff; }
/* Selected is drawn filled and heavier as well as brighter, so selection
   never rests on colour alone. */
.chrome-tabs a.active { color: #fff; font-weight: 700; border-bottom-color: #fff; }

/* ------------------------------------------------------------ Page title --
   Screen title and the rule beneath it — the alternative to putting every
   screen title inside a blue field. */
.page-head { margin: 0 0 20px; }
.page-title {
  font-family: var(--serif);
  font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0; padding: 14px 0 4px;
  border-bottom: 1.5px solid var(--ink);
}
.page-note {
  margin: 10px 0 0;
  font-family: var(--sans); font-size: 12px; line-height: 1.5; color: var(--muted);
}

/* Day / topic groupings. A web affordance — the iOS feeds dropped day
   headings once each card grew its own date line — kept here because a
   scrollbar is not a date. */
h2.section {
  font-family: var(--sans);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--divider); padding-bottom: 6px;
  margin: 36px 0 4px;
}

/* -------------------------------------------------------------- Controls --
   One visual grammar for every card action (share / save / mark-read): a
   compact outline control, never a filled CTA. The selected state uses a
   cobalt border, a faint cobalt tint and a filled glyph — plus its own word
   ("Saved", not "Save"), so state is never carried by colour alone.

   The visible pill is small; ::after grows the tap target to ~44px. */
.controls {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px; min-height: 44px;
}
.pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--sans);
  font-size: 10px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border: 1px solid var(--divider); border-radius: 3px;
  padding: 6px 10px; background: transparent;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  /* Two-word labels ("Mark read") stay on one line — a wrapped pill is twice
     as tall as its neighbours and the row stops reading as a row. */
  white-space: nowrap; flex: 0 0 auto;
}
.pill::after { content: ""; position: absolute; inset: -8px -2px; }
.pill .ico { font-size: 10px; line-height: 1; }
.pill:hover { color: var(--ink); border-color: var(--muted); }
.pill.on {
  color: var(--cobalt);
  border-color: rgba(23, 70, 162, 0.55);
  background: rgba(23, 70, 162, 0.07);
}
/* Desktop share fallback flashes "Copied" in place of the label. */
.pill.copied { color: var(--ink); border-color: var(--ink); }
/* An empty .ico (Books' unread state) must not leave a gap before the word. */
.pill .ico:empty { display: none; }
.pill:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

/* ------------------------------------------------------------------ Card --
   Provenance, headline, attribution, controls, a deliberate break, then the
   AI sections. News and Reader share the structure; only the taxonomy under
   the break differs. */
article.story { margin: 0; padding: 18px 0 26px; }

.kicker {
  font-family: var(--sans);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.kicker a { color: var(--muted); text-decoration: none; }
.kicker a:hover { color: var(--ink); }
.kicker .sep { color: var(--divider); margin: 0 6px; }

/* Publishers and the date on one interface line, the way an editorial page
   runs its byline: sources first, then when it landed. */
.byline {
  font-family: var(--sans);
  font-size: 11px; font-weight: 400; color: var(--muted);
  margin: 10px 0 0;
}
.byline a {
  color: var(--cobalt); text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.byline .sep { color: var(--divider); margin: 0 6px; }
/* Per-card Wikipedia credit (#727): quieter than the byline it follows. */
.credit {
  font-family: var(--sans); font-size: 11px; color: var(--muted);
  margin: 4px 0 0;
}
.credit a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.credit .sep { color: var(--divider); margin: 0 6px; }
.byline .src + .src { margin-left: 8px; }

.lede-news {
  font-family: var(--serif);
  font-size: 23px; line-height: 1.35; font-weight: 500;
  color: var(--ink); margin: 0;
}
.lede-news a {
  color: var(--link); text-decoration: none;
  border-bottom: 1px solid rgba(18, 59, 137, 0.3);
}
.lede-news a:hover { border-bottom-color: var(--link); }

.lede-reader {
  font-family: var(--serif);
  font-size: 26px; line-height: 1.25; font-weight: 500;
  margin: 0;
}
.lede-reader a { color: var(--ink); text-decoration: none; }
.lede-reader a:hover { color: var(--link); }

/* The author's own words. No rule, no tint — this is the article, not
   commentary about it, and only commentary gets marked. */
.excerpt {
  font-family: var(--serif);
  font-size: 18px; line-height: 1.5; color: var(--ink);
  margin: 14px 0 0;
}
.excerpt p { margin: 0 0 8px; }
.excerpt p:last-child { margin-bottom: 0; }
.excerpt .pull { font-style: italic; margin-top: 8px; }

.readmore { margin: 14px 0 0; }
.readmore a {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--cobalt); text-decoration: none;
}
.readmore a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* The break between reported source material and generated commentary.
   Whitespace plus a neutral hairline — never a blur of the two into one
   unattributed body of text. */
.break { width: 46px; height: 1px; background: var(--divider); margin: 8px 0 18px; }

/* A confident positive signal from the frontpage pass. A labelled note in
   verdigris on the reading surface — not a coloured chip, which would be the
   one filled box on an otherwise unfilled page. */
.gn-chip {
  margin: 12px 0 0;
  padding: 0 0 0 10px;
  border-left: 1px solid var(--verdigris);
  color: var(--ink);
}
.gn-chip .gn-icon { display: none; }
.gn-chip .gn-label {
  display: block;
  font-family: var(--sans);
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--verdigris);
  margin-bottom: 3px;
}
.gn-chip .gn-text { font-family: var(--serif); font-size: 15px; line-height: 1.45; }

/* ------------------------------------------------------- AI commentary ----
   One module per layer. The signature is an **L-shaped hairline**: one rule
   across the top, one down the left, nothing on the right or bottom, no fill,
   no rounding, no shadow. That's what lets generated commentary sit inside
   the reading flow — visibly annotated rather than boxed off into a separate
   product.

   Colour is redundant reinforcement, never the message: every module carries
   its explicit label, so a reader who can't tell verdigris from aubergine
   loses nothing. */
.layers { display: flex; flex-direction: column; gap: 14px; }
.layer {
  --rule: var(--divider);
  --label: var(--muted);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  padding: 14px 10px 18px 16px;
  margin: 0;
  font-family: var(--serif);
  font-size: 17px; line-height: 1.55;
  color: var(--ink);
}
/* Standalone modules (a share page renders one card, not a stack) still need
   the inter-module rhythm when they aren't inside .layers. */
.layer + .layer { margin-top: 14px; }
.layers .layer + .layer { margin-top: 0; }
.layer p { margin: 0; }
.layer p + p { margin-top: 0.7em; }
.layer .label {
  display: block;
  font-family: var(--sans);
  font-size: 11px; font-weight: 600; letter-spacing: 0.136em; text-transform: uppercase;
  color: var(--label);
  margin-bottom: 9px;
}
/* Restrained secondary metadata under the label — the expert's discipline. */
.layer .label .sub {
  display: block;
  font-weight: 400; letter-spacing: 0; text-transform: none;
  color: var(--muted); margin-top: 2px;
}
.layer a {
  color: var(--link); text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.layer a:hover { border-bottom-style: solid; }

.layer.context   { --rule: var(--verdigris);      --label: var(--verdigris); }
.layer.expert,
.layer.analyst   { --rule: var(--section-cobalt); --label: var(--section-cobalt); }
.layer.other     { --rule: var(--aubergine);      --label: var(--aubergine); }
/* Amber and ochre keep the bright value on the rule and take the dark twin
   on the label — see the token block. */
.layer.action    { --rule: var(--amber);          --label: var(--amber-text); }
.layer.reading   { --rule: var(--ochre);          --label: var(--ochre-text); }
/* Only the polemical layer speaks in a voice; everything else is reported in roman. */
.layer.hitchens  { --rule: var(--oxblood);        --label: var(--oxblood);
                   font-style: italic; font-size: 17.5px; }
.layer.hitchens .label { font-style: normal; }

.layer.action ul { margin: 0; padding-left: 18px; }
.layer.action li { margin: 4px 0; }
.layer.action .note { color: var(--muted); font-style: italic; }
.layer.reading cite { font-style: italic; }

/* Commentary disclosure — every feed, private and public. A single shared
   item leaves the stack expanded (the recipient came for that one piece).
   Default collapsed so a feed scans as a headline list; click to unfold the
   layer stack. Which pages fold is decided by the `fold` argument in
   templates/_commentary_fold.html, not by show_actions. */
details.commentary-fold { margin: 0; }
details.commentary-fold > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; gap: 8px;
  max-width: 100%; padding: 9px 12px;
  border: 1px solid var(--divider); border-radius: 3px;
  color: var(--muted);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
details.commentary-fold > summary::-webkit-details-marker { display: none; }
details.commentary-fold > summary::before {
  content: "\25B8"; font-size: 10px; line-height: 1;
}
details.commentary-fold[open] > summary::before { content: "\25BE"; }
details.commentary-fold > summary:hover { color: var(--ink); border-color: var(--muted); }
details.commentary-fold[open] > summary {
  color: var(--cobalt); border-color: rgba(23, 70, 162, 0.5);
  margin-bottom: 14px;
}
details.commentary-fold > summary::before,
details.commentary-fold .fold-label { flex: 0 0 auto; }
details.commentary-fold .fold-label {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  white-space: nowrap;
}
/* The list of layer names is a preview, not the content — it truncates rather
   than growing the closed control to three lines. */
details.commentary-fold .fold-meta {
  font-family: var(--sans);
  font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0.02em;
  flex: 0 1 auto; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ------------------------------------------------------- Pending queue ----
   Reader tab, collapsed by default; queued URLs waiting on the /reader skill
   to fill in commentary. Carries the Context rule, because that is what it
   will become. */
details.pending-block {
  margin: 16px 0 8px; padding: 12px 10px 14px 16px;
  border-top: 1px solid var(--verdigris);
  border-left: 1px solid var(--verdigris);
}
details.pending-block > summary {
  cursor: pointer; list-style: none;
  font-family: var(--sans);
  font-size: 11px; font-weight: 600; letter-spacing: 0.136em; text-transform: uppercase;
  color: var(--verdigris);
}
details.pending-block > summary::-webkit-details-marker { display: none; }
details.pending-block > summary::before { content: "\25B8 "; margin-right: 2px; }
details.pending-block[open] > summary::before { content: "\25BE "; }
ul.pending-list { list-style: none; margin: 10px 0 0; padding: 0; }
ul.pending-list li { padding: 4px 0; font-size: 16px; line-height: 1.45; }
ul.pending-list .pending-title {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
ul.pending-list .pending-title:hover { color: var(--link); }
ul.pending-list .pending-when {
  display: inline-block; margin-left: 8px;
  font-family: var(--sans);
  font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}

/* ----------------------------------------------------------- Watchpoints --
   Predictions the analyst layer has made. Same grammar as a commentary
   module: a hairline and a label, no fill. Ochre for open bets; the ones
   already called are cobalt (see .wp-chip.wp-fulfilled below). */
.wp-chip {
  margin: 14px 0 0;
  padding: 0 0 0 10px;
  border-left: 1px solid var(--ochre);
  color: var(--ink);
  font-size: 15px; line-height: 1.5;
}
.wp-chip .wp-icon { display: none; }
.wp-chip .wp-label {
  display: block;
  font-family: var(--sans);
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ochre-text);
  margin-bottom: 3px;
}
.wp-chip .wp-link {
  margin-left: 6px;
  font-family: var(--sans); font-size: 11px;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.wp-chip .wp-link:hover { color: var(--ink); }
.wp-chip .wp-list { margin: 4px 0 0; padding-left: 18px; }
.wp-chip .wp-list li { margin: 2px 0; }

/* Good news on the card. The one place the hairline grammar is deliberately
   broken: a 3px verdigris rule down the whole card, so the signal survives a
   fast scroll with the commentary folded. Label leads the kicker in the same
   colour; the badge's sentence (.gn-chip) still follows the byline. */
article.story.good {
  border-left: 3px solid var(--verdigris);
  padding-left: 14px; margin-left: -17px;
}
.kicker .gn-kicker { color: var(--verdigris); font-weight: 700; }
@media (max-width: 760px) {
  /* No gutter to hang the rule in on a phone: keep it inside the column. */
  article.story.good { margin-left: 0; padding-left: 12px; }
}

/* A fulfilled prediction: the analyst layer's cobalt, because that's where
   predictions come from — and so it no longer shares verdigris with good
   news. Sits above the lede, ahead of everything else on the card. */
.wp-chip.wp-fulfilled {
  margin: 0 0 12px; border-left: 3px solid var(--section-cobalt);
}
.wp-chip.wp-fulfilled .wp-label { color: var(--section-cobalt); font-weight: 700; }

.wp-page-item .wp-happened { font-size: 15px; line-height: 1.45; margin-top: 6px; color: var(--ink); }

/* Watchpoints listing page */
.wp-page-list { list-style: none; padding: 0; margin: 12px 0 24px; }
.wp-page-item {
  padding: 12px 10px 14px 16px;
  margin: 14px 0 0;
  border-top: 1px solid var(--ochre);
  border-left: 1px solid var(--ochre);
}
.wp-page-item.wp-page-fulfilled {
  border-top-color: var(--section-cobalt);
  border-left-color: var(--section-cobalt);
}
.wp-page-item .wp-text { font-size: 17px; line-height: 1.5; color: var(--ink); }
.wp-page-item .wp-meta {
  margin-top: 5px;
  font-family: var(--sans); font-size: 11px; color: var(--muted);
}
.wp-page-item .wp-meta a { color: var(--muted); border-bottom: 1px dotted currentColor; text-decoration: none; }
.wp-page-item .wp-meta a:hover { color: var(--ink); }

/* ------------------------------------------------------------- Books tab --
   Citation hierarchy first — title, author, year — then the reason it was
   suggested and where that came from. No cover art, no storefront; the
   provenance is the point. */
/* `.feed-tally` / `.feed-toggle` are the News signal filters. Same rule, not a
   second look: a count line under the page title whose links are the only
   filter control on the page. Named separately from Books only so a News
   template isn't reaching for a book-named class. */
.books-tally,
.feed-tally {
  font-family: var(--sans);
  font-size: 12px; color: var(--muted);
  margin: 14px 0 4px;
}
.books-toggle,
.feed-toggle {
  color: var(--link); text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
article.book { margin: 0; padding: 18px 0; }
article.book.read { opacity: 0.5; }
.book-head { display: flex; align-items: flex-start; gap: 8px; }
.book-head .book-headings { flex: 1 1 auto; min-width: 0; }
.book-title {
  font-family: var(--serif);
  font-size: 21px; line-height: 1.25; font-weight: 600; margin: 0 0 3px;
  color: var(--ink);
}
.book-meta {
  font-family: var(--serif);
  font-size: 15px; color: var(--muted); font-style: italic; margin: 0;
}
.book-meta .book-author { font-style: normal; }
.book-find {
  font-family: var(--sans);
  font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted);
  margin: 12px 0 0;
  display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline;
}
.book-find-label { font-weight: 600; }
.book-find a {
  color: var(--link); text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
/* One reason-this-was-recommended, carrying the same left hairline as a
   commentary module — the colour says which surface it came from, News or
   Reader, and the provenance line says it again in words. */
ul.book-recs {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
ul.book-recs .rec {
  border-left: 1px solid var(--divider);
  padding: 0 0 0 13px;
  font-family: var(--serif);
  font-size: 16px; line-height: 1.5; color: var(--ink);
}
ul.book-recs .rec.src-news   { border-left-color: var(--section-cobalt); }
ul.book-recs .rec.src-reader { border-left-color: var(--verdigris); }
.rec-why { color: var(--ink); }
.rec-prov {
  display: block; margin-top: 5px;
  font-family: var(--sans);
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------- Highlights */
mark.hl {
  background: #FFF4A3; color: inherit;
  padding: 0 2px; border-radius: 2px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ------------------------------------------------------------------ Login */
.login-wrap { max-width: 320px; margin: 48px auto 0; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-form label {
  font-family: var(--sans);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); font-weight: 600;
}
.login-form input {
  padding: 10px 12px; font-size: 16px;
  border: 1px solid var(--divider); border-radius: 3px; background: var(--paper);
  color: var(--ink); font-family: var(--serif);
}
.login-form input:focus { outline: none; border-color: var(--cobalt); }
.login-form button {
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--cobalt); color: #fff; border: none; border-radius: 3px;
  cursor: pointer; margin-top: 4px;
}
.login-error { font-size: 14px; color: var(--oxblood); margin-top: 4px; font-style: italic; }
.login-note { font-size: 15px; line-height: 1.45; color: var(--ink); margin: 0 0 4px; }
.login-form input[name="code"] { font-family: var(--sans); font-size: 22px; letter-spacing: 0.3em; }
.login-alt, .login-owner { margin-top: 22px; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.login-alt { display: flex; gap: 16px; align-items: baseline; }
.login-alt button {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--cobalt); text-decoration: underline dotted;
}
.login-alt a { color: var(--muted); }
.login-owner summary { cursor: pointer; }
.login-owner .login-form { margin-top: 10px; }
.account-block { max-width: 360px; margin-bottom: 28px; }
.login-or {
  margin: 18px 0 10px; text-align: center; font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.login-providers { display: flex; flex-direction: column; gap: 10px; }
.login-provider {
  display: block; text-align: center; padding: 11px 14px; border-radius: 3px;
  font-family: var(--sans); font-size: 14px; font-weight: 600; text-decoration: none;
}
/* Apple's and Google's own button rules: black for Apple, white with a grey
   outline for Google. */
.login-provider.apple { background: #000; color: #fff; }
.login-provider.google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
.login-form button.danger { background: var(--oxblood); }

/* ----------------------------------------------------------------- Empty --
   and the footers. */
.empty {
  font-family: var(--serif); font-style: italic; color: var(--muted);
  text-align: center; padding: 60px 0;
}

footer {
  margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--divider);
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted); text-align: center;
}
footer a { color: var(--muted); }

footer.public-footer {
  margin: 48px auto 32px; padding: 18px 22px 0;
  border-top: 1px solid var(--divider);
  color: var(--muted);
  font-family: var(--sans); font-size: 12px; line-height: 1.6;
  text-align: left; max-width: 720px;
}
footer.public-footer p { margin: 0 0 8px; }
footer.public-footer p:last-child { margin-bottom: 0; text-align: center; }
footer.public-footer a {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px dotted var(--muted);
}
footer.public-footer a:hover { border-bottom-color: var(--ink); }

/* Public about page body */
article.about-body {
  max-width: 720px; margin: 0 auto; padding: 0;
  font-family: var(--serif);
  font-size: 18px; line-height: 1.6; color: var(--ink);
}
article.about-body h2 {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin: 32px 0 8px;
}
article.about-body p { margin: 0 0 16px; }
article.about-body ul { margin: 0 0 16px; padding-left: 1.2em; }
article.about-body li { margin: 0 0 10px; }
article.about-body a {
  color: var(--link); text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

/* --- animals/EA experiment: raw polled feed entries ------------------------
   Deliberately plainer than a news/reader card — these have no commentary and
   exist to be skimmed and triaged, not read in place. */
.feeditem { padding: 12px 0 14px; border-bottom: 1px solid var(--divider); }
.feed-meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
  font-family: var(--sans);
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--muted); margin-bottom: 4px;
}
.feed-meta .feed-group { border: 1px solid var(--divider); border-radius: 3px; padding: 1px 5px; }
.feed-meta .feed-source { font-weight: 600; }
.feed-title { font-family: var(--serif); font-size: 18px; line-height: 1.3; margin: 2px 0 4px; font-weight: 600; }
.feed-title a { color: var(--ink); text-decoration: none; }
.feed-title a:hover { color: var(--link); }
.feed-summary {
  margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-top { margin-top: 4px; font-size: 11px; color: var(--muted); }
