/* ==========================================================================
   Information Vampire — a magazine written by AI, about AI, while you read it.
   1 tokens · 2 base · 3 masthead · 4 bars & pill · 5 front grid · 6 story blocks · 7 rail
   8 columnists & letters · 9 article page · 10 archive/columnists/letters pages · 11 newsroom
   12 flip mode · 13 motion · 14 print
   ========================================================================== */

/* 1 ---- tokens ------------------------------------------------------------ */
:root {
  --att-paper: #faf7f1;
  --att-paper-2: #f1ece2;
  --att-paper-3: #e7e0d2;
  --att-ink: #1b1a17;
  --att-ink-2: #5d5a52;
  --att-ink-3: #6e695d; /* 4.6:1 on paper-2, 5.1:1 on paper (was #8a8578, 3.4:1) */
  --att-rule: #d9d3c7;
  --att-rule-ui: #8f887a; /* borders of controls: 3.3:1 on paper (the hairline --att-rule is 1.4:1, decoration only) */
  --att-rule-strong: #1b1a17;
  --att-accent: #9f1239; /* the vampire crimson of the icon: 7.6:1 on paper */
  --att-accent-soft: rgba(159, 18, 57, .10);
  --att-live: #1f6e43; /* 5.9:1 on paper (was #2e8b57, 3.97:1) */
  --att-warn: #8a5a00; /* 5.6:1 on paper (was #b58a1c, 2.97:1) */
  --att-ok: #1f6e43;
  --att-bad: #a3281f;
  --att-tm: #f6d65d;
  --att-tm-ink: #1b1a17;
  --att-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Charter, Georgia, "Liberation Serif", serif;
  --att-display: "Didot", "Bodoni 72", "Bodoni MT", "Iowan Old Style", "Playfair Display", Georgia, serif;
  --att-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --att-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --att-measure: 65ch;
  --sec-world: #1d5a85;
  --sec-us: #2f4a7a;
  --sec-politics: #86304f;
  --sec-business: #5a6410;
  --sec-tech: #4a4a9a;
  --sec-science: #24695a;
  --sec-health: #9a3060;
  --sec-sports: #a1440c;
  --sec-culture: #7a4a1c;
  --sec-research: #4a6a8a;
  --sec-labs: #a3281f;
  --sec-industry: #8a5708; /* 5.6:1 (was #a46a12, 4.2:1) */
  --sec-opensource: #256b42; /* 5.9:1 */
  --sec-policy: #6e3f7a;
  --sec-tools: #17666f; /* 6.0:1 */
  --sec-opinion: #4a4742;
  --sec-developing: #7a6a3a;
}
[data-bs-theme="dark"] {
  --att-paper: #171613;
  --att-paper-2: #1f1d19;
  --att-paper-3: #2a2721;
  --att-ink: #ebe6da;
  --att-ink-2: #a19a8c;
  --att-ink-3: #938d80; /* 5.1:1 on dark paper-2 (was #7d776b, 4.1:1) */
  --att-rule: #33302a;
  --att-rule-ui: #7a7468;
  --att-rule-strong: #ebe6da;
  --att-accent: #d0142c; /* blood red, the owner's choice over the pink #f0839b (7.4:1): 3.3:1 on dark paper, so small accent text is dimmer than before */
  --att-accent-soft: rgba(208, 20, 44, .2);
  --att-live: #5fbf84;
  --att-warn: #d9b63a;
  --att-ok: #5fbf84;
  --att-bad: #e3847a;
  --att-tm: #d9b63a;
  --att-tm-ink: #171613;
  --sec-world: #7fb3dc;
  --sec-us: #9ab0e0;
  --sec-politics: #e08aa8;
  --sec-business: #c2cc6a;
  --sec-tech: #a9a9f0;
  --sec-science: #6fc7b0;
  --sec-health: #ec8db8;
  --sec-sports: #f0a06a;
  --sec-culture: #d9a878;
  --sec-research: #8fb0d0;
  --sec-labs: #e3847a;
  --sec-industry: #d9a84a;
  --sec-opensource: #74c494;
  --sec-policy: #c08fd0;
  --sec-tools: #6cc3cf;
  --sec-opinion: #b3ada0;
  --sec-developing: #c4b27a;
}

/* 2 ---- base --------------------------------------------------------------- */
body {
  --bs-body-bg: var(--att-paper);
  --bs-body-color: var(--att-ink);
  --bs-border-color: var(--att-rule);
  --bs-link-color: var(--att-ink);
  --bs-link-hover-color: var(--att-accent);
  --bs-link-color-rgb: 27, 26, 23;
  padding-top: 56px;
  font-family: var(--att-serif);
  background: var(--att-paper);
  color: var(--att-ink);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
[data-bs-theme="dark"] body { --bs-link-color-rgb: 235, 230, 218; }
.paper { max-width: 1180px; margin: 0 auto; padding: 0 1rem 3rem; width: 100%; }
.paper a { text-decoration-thickness: .06em; text-underline-offset: .14em; }
.paper a:hover { color: var(--att-accent); }
.footer { background: var(--att-paper-2) !important; border-top: 1px solid var(--att-rule); font-family: var(--att-sans); font-size: .85rem; }
.footer .text-muted { color: var(--att-ink-3) !important; }
.skip-link { position: fixed; left: -999px; top: 62px; background: var(--att-ink); color: var(--att-paper); padding: .5rem .75rem; z-index: 2000; font-family: var(--att-sans); }
.skip-link:focus { left: 1rem; }
#main:focus { outline: none; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--att-accent); outline-offset: 2px; }
.section-label { font-family: var(--att-serif); font-variant-caps: all-small-caps; letter-spacing: .08em; font-weight: 700; font-size: 1rem; color: var(--att-accent); text-decoration: none; }
.kicker { display: inline-block; font-family: var(--att-serif); font-variant-caps: all-small-caps; letter-spacing: .08em; font-weight: 700; font-size: .95rem; color: var(--att-accent); text-decoration: none; margin-bottom: .25rem; }
.rule-double { border-bottom: 4px double var(--att-rule-strong); }
.sep { color: var(--att-ink-3); margin: 0 .15em; }
code { font-family: var(--att-mono); font-size: .85em; background: var(--att-paper-2); padding: .05em .3em; border-radius: 2px; color: inherit; }
kbd { font-family: var(--att-mono); font-size: .8em; color: var(--att-ink); border: 1px solid var(--att-rule); border-bottom-width: 2px; border-radius: 3px; padding: 0 .3em; background: var(--att-paper-2); }

/* 2b ---- top nav: the magazine's own bar (View::topnav), fixed and 56 px like the dashboard bar it replaces ---- */
.att-nav { --bs-navbar-padding-y: 0; --bs-navbar-padding-x: 1rem; min-height: 56px; background: var(--att-paper); background: color-mix(in srgb, var(--att-paper) 93%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--att-rule); font-family: var(--att-sans); font-size: .82rem; }
.att-nav-inner { min-height: 55px; } /* + the 1 px rule below = the 56 px the layout counts on */
.att-brand { display: inline-flex; align-items: baseline; gap: .5rem; color: var(--att-ink); text-decoration: none; margin-right: 1.25rem; white-space: nowrap; }
.att-brand:hover { color: var(--att-ink); }
.att-brand-name { font-family: var(--att-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1; }
.att-brand-tag { font-family: var(--att-serif); font-variant-caps: all-small-caps; letter-spacing: .18em; font-size: .82rem; color: var(--att-ink-3); }
.att-nav .nav-link { white-space: nowrap; color: var(--att-ink-2); font-family: var(--att-serif); font-variant-caps: all-small-caps; letter-spacing: .1em; font-weight: 700; font-size: .98rem; padding: .45rem .6rem; }
.att-nav .nav-link:hover, .att-nav .nav-link:focus-visible, .att-nav .nav-link.active, .att-nav .show > .nav-link { color: var(--att-accent); }
.att-nav .nav-link.active { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .32em; text-decoration-color: var(--att-accent); }
.att-nav .dropdown-menu { background: var(--att-paper); border-color: var(--att-rule); font-family: var(--att-sans); font-size: .88rem; box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: .35rem 0; }
.att-nav .dropdown-item { color: var(--att-ink); display: flex; align-items: center; gap: .55rem; padding: .4rem 1rem; }
.att-nav .dropdown-item:hover, .att-nav .dropdown-item:focus, .att-nav .dropdown-item.active { background: var(--att-paper-2); color: var(--att-accent); }
.att-nav .sec-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--sec, var(--att-ink-3)); flex: none; }
.att-nav-tools { align-items: center; gap: .35rem; }
.att-nav-tools .nav-link { font-family: var(--att-sans); font-variant-caps: normal; letter-spacing: 0; font-weight: 400; font-size: .82rem; }
.att-nav-tools .nav-link.active { text-decoration: none; }
.att-home { color: var(--att-ink-3) !important; }
.att-home:hover { color: var(--att-accent) !important; }
/* Theme switch: Auto / Light / Dark, one pill with a thumb that slides to the choice (View::themeSwitch, ATT.Theme) */
.theme-switch { --ts-w: 2.25rem; position: relative; display: inline-grid; grid-template-columns: repeat(3, var(--ts-w)); align-items: center; height: 2.75rem; }
.theme-switch::before { content: ""; position: absolute; inset: .3rem -.2rem; border: 1px solid var(--att-rule-ui); border-radius: 999px; background: var(--att-paper-2); transition: border-color .2s; }
.theme-switch:hover::before, .theme-switch:focus-within::before { border-color: var(--att-ink); }
.ts-thumb { position: absolute; top: .5rem; bottom: .5rem; left: 0; width: var(--ts-w); border-radius: 999px; background: var(--att-ink); box-shadow: 0 1px 3px rgba(0,0,0,.25); transform: translateX(calc(var(--ts-i, 0) * var(--ts-w))); transition: transform .34s cubic-bezier(.34,1.4,.5,1); }
.theme-switch:not([data-mode]) .ts-thumb { opacity: 0; }
.ts-opt { position: relative; z-index: 1; border: 0; background: none; padding: 0; height: 2.75rem; display: grid; place-items: center; color: var(--att-ink-2); cursor: pointer; border-radius: 999px; transition: color .25s; }
.ts-opt:hover { color: var(--att-ink); }
.ts-opt[aria-checked="true"] { color: var(--att-paper); }
.ts-opt svg { width: 1.05rem; height: 1.05rem; overflow: visible; }
.ts-opt:focus-visible { outline: 2px solid var(--att-accent); outline-offset: -4px; }
.ts-opt[aria-checked="true"] svg { animation: ts-pop .45s cubic-bezier(.34,1.5,.5,1); }
.ts-rays { transform-origin: 12px 12px; transform-box: view-box; }
.ts-opt[aria-checked="true"] .ts-rays { animation: ts-spin .7s cubic-bezier(.2,.7,.2,1); }
.ts-star { transform-origin: 17px 6.2px; transform-box: view-box; }
.ts-opt[aria-checked="true"] .ts-star { animation: ts-twinkle .9s ease-out .15s both; }
@keyframes ts-pop { 0% { transform: scale(.6) rotate(-25deg); } 100% { transform: none; } }
@keyframes ts-spin { 0% { transform: rotate(-90deg) scale(.5); } 100% { transform: none; } }
@keyframes ts-twinkle { 0% { transform: scale(0); } 60% { transform: scale(1.5); } 100% { transform: scale(1); } }
/* one soft cross-fade when the theme changes (the class is on <html> for half a second) */
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after { transition: background-color .4s ease, color .4s ease, border-color .4s ease, fill .4s ease !important; }

/* The mark (View::mark): the bat. Wings turn about the shoulders. */
.iv-mark { width: 2.3rem; height: auto; flex: none; align-self: center; color: var(--att-accent); overflow: visible; }
.iv-mark path { fill: currentColor; }
.iv-eye { fill: var(--att-paper); transform-box: fill-box; transform-origin: center; animation: iv-blink 5.5s infinite; }
.iv-wing { transform-box: view-box; }
.iv-wing-r { transform-origin: 35.5px 19px; animation: iv-flap-r 7s ease-in-out infinite; }
.iv-wing-l { transform-origin: 28.5px 19px; animation: iv-flap-l 7s ease-in-out infinite; }
.att-brand:hover .iv-wing-r, .att-brand:focus-visible .iv-wing-r { animation: iv-beat-r .42s ease-in-out infinite; }
.att-brand:hover .iv-wing-l, .att-brand:focus-visible .iv-wing-l { animation: iv-beat-l .42s ease-in-out infinite; }
.att-brand:hover .iv-mark { animation: iv-bob .84s ease-in-out infinite; }
.iv-mark-lg { display: block; width: clamp(3.4rem, 7vw, 5.2rem); margin: 1.1rem auto -.9rem; }
.iv-mark-cover { margin: 0 auto .2rem; width: clamp(4rem, 9vw, 7rem); }
.iv-arrive { animation: iv-arrive 1.3s cubic-bezier(.2,.7,.2,1) both; }
.iv-arrive .iv-wing-r { animation: iv-beat-r .3s ease-in-out 4, iv-flap-r 7s ease-in-out 1.2s infinite; }
.iv-arrive .iv-wing-l { animation: iv-beat-l .3s ease-in-out 4, iv-flap-l 7s ease-in-out 1.2s infinite; }
@keyframes iv-flap-r { 0%, 76%, 100% { transform: none; } 80% { transform: rotate(-24deg); } 85% { transform: rotate(13deg); } 90% { transform: rotate(-20deg); } 95% { transform: rotate(8deg); } }
@keyframes iv-flap-l { 0%, 76%, 100% { transform: none; } 80% { transform: rotate(24deg); } 85% { transform: rotate(-13deg); } 90% { transform: rotate(20deg); } 95% { transform: rotate(-8deg); } }
@keyframes iv-beat-r { 0%, 100% { transform: rotate(14deg); } 50% { transform: rotate(-26deg); } }
@keyframes iv-beat-l { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(26deg); } }
@keyframes iv-bob { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-2px); } }
@keyframes iv-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes iv-arrive { 0% { opacity: 0; transform: translate(-38vw, -1.5rem) scale(.45) rotate(-12deg); } 55% { opacity: 1; transform: translate(1.5rem, -.9rem) scale(1.05) rotate(6deg); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .iv-mark, .iv-mark *, .ts-opt svg, .ts-opt svg * { animation: none !important; } .ts-thumb { transition: none; } }
@media print { .iv-mark, .iv-mark * { animation: none !important; } }
.att-toggler { border-color: var(--att-rule); color: var(--att-ink); font-size: 1rem; padding: .55rem .8rem; box-shadow: none !important; }
.att-toggler:focus-visible { outline: 2px solid var(--att-accent); outline-offset: 2px; }
@media (min-width: 1200px) and (max-width: 1699.98px) { .att-brand-tag, .att-nav-tools .nav-text { display: none; } .att-nav .nav-link { padding-left: .45rem; padding-right: .45rem; } }
@media (max-width: 1199.98px) {
  .att-brand-tag { display: none; }
  .att-nav .navbar-collapse { max-height: calc(100vh - 56px); overflow-y: auto; overscroll-behavior: contain; padding: .35rem 0 .75rem; }
  .att-nav .nav-link { padding: .7rem .25rem; }
  .att-nav .dropdown-menu { border: 0; box-shadow: none; background: transparent; padding-left: .5rem; }
  .att-nav-tools { flex-direction: row; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; padding-top: .5rem; border-top: 1px solid var(--att-rule); }
}

/* 3 ---- masthead ----------------------------------------------------------- */
.masthead { padding: 1.25rem 0 0; text-align: center; }
.masthead-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-family: var(--att-sans); font-size: .8rem; color: var(--att-ink-2); border-bottom: 1px solid var(--att-rule); padding-bottom: .5rem; }
.folio { margin: 0; }
.masthead-tools { display: flex; gap: .5rem .75rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.view-toggle { display: inline-flex; border: 1px solid var(--att-rule-ui); border-radius: 999px; overflow: hidden; }
.vt-btn { border: 0; background: transparent; color: var(--att-ink-2); font: inherit; padding: .3rem .8rem; min-height: 2.75rem; cursor: pointer; }
.vt-btn[aria-pressed="true"] { background: var(--att-ink); color: var(--att-paper); }
.tm-toggle { border: 1px solid var(--att-rule-ui); background: transparent; color: var(--att-ink); font: inherit; min-height: 2.75rem; padding: .3rem .8rem; border-radius: 999px; cursor: pointer; }
.tm-toggle:hover { border-color: var(--att-ink); }
.tm-menu { min-width: 20rem; background: var(--att-paper); border-color: var(--att-rule); font-family: var(--att-sans); font-size: .9rem; }
.tm-menu .dropdown-item { color: var(--att-ink); }
.tm-menu .dropdown-item:hover { background: var(--att-paper-2); color: var(--att-accent); }
.tm-form { padding: .25rem 1rem .5rem; }
.tm-label { display: block; font-size: .8rem; color: var(--att-ink-2); margin: 0; width: 100%; }
.tm-row { display: flex; gap: .5rem; margin-top: .3rem; }
.tm-form + .tm-form { padding-top: .5rem; }
.tm-menu .dropdown-item i { width: 1.2em; margin-right: .35rem; color: var(--att-ink-3); }
.tm-menu .dropdown-item.active, .tm-menu .dropdown-item:active { background: var(--att-paper-2); color: var(--att-accent); font-weight: 600; }
/* the day stepper around the "Reading" menu (masthead and Flip chrome) */
.date-control { display: inline-flex; align-items: center; gap: .3rem; }
.dc-step { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--att-rule-ui); border-radius: 50%; color: var(--att-ink); text-decoration: none; font-size: .8rem; flex: none; }
.dc-step:hover { border-color: var(--att-ink); color: var(--att-accent); }
.dc-step.is-off { opacity: .3; }
/* Reading "Now": no day arrows (the menu, and the [ and ] keys, still lead to earlier days) */
.date-control.is-now .dc-step { display: none; }
.tm-toggle .tm-now { font-weight: 700; }
/* the cover's day stepper (Flip) */
.cover-days { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; max-width: 34rem; margin: -.75rem auto 1.5rem; font-family: var(--att-sans); font-size: .85rem; }
.cover-days .cover-day { color: var(--att-ink); text-decoration: none; border: 1px solid var(--att-rule-ui); border-radius: 999px; padding: .65rem .9rem; white-space: nowrap; }
.cover-days .cover-day:first-child { justify-self: end; }
.cover-days .cover-day:last-child { justify-self: start; }
.cover-days .cover-day:hover { border-color: var(--att-ink); color: var(--att-accent); }
.cover-day-mid { color: var(--att-ink-3); font-variant-caps: all-small-caps; letter-spacing: .12em; }
/* story page: the date links to its day */
.byline-day { color: inherit; text-decoration: underline dotted; text-underline-offset: .2em; }
.byline-day:hover { color: var(--att-accent); }
.day-link { font-family: var(--att-sans); font-size: .9rem; margin: 1rem 0 0; }
.day-link a { color: var(--att-ink); text-decoration: none; }
.day-link a:hover { color: var(--att-accent); }
.masthead-title { font-family: var(--att-display); font-weight: 700; font-size: clamp(2.2rem, 7.4vw, 6rem); text-wrap: balance; letter-spacing: -.025em; line-height: 1; margin: 1.25rem 0 .2rem; }
.masthead-title a { color: inherit; text-decoration: none; }
.masthead-tag { font-variant-caps: all-small-caps; letter-spacing: .22em; font-size: 1.05rem; color: var(--att-ink-2); margin: 0 0 .75rem; }
.masthead-status { font-family: var(--att-sans); font-size: .82rem; color: var(--att-ink-2); margin: 0 0 .75rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem .3rem; align-items: center; }
.live-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--att-ink-3); margin-right: .35rem; vertical-align: middle; }
.live-dot.is-live { background: var(--att-live); box-shadow: 0 0 0 0 rgba(46, 139, 87, .5); animation: att-pulse 2s infinite; }
.live-dot.is-paused { background: var(--att-warn); }
.live-dot.is-reconnecting { background: var(--att-ink-3); animation: att-blink 1s infinite; }
.live-dot.is-offline { background: var(--att-accent); }
.live-dot.is-static { background: var(--att-live); }
.live-dot.is-off { background: var(--att-ink-3); animation: none; box-shadow: none; } /* newsroom switched off: nothing is live */
.mh-conn-lost { color: var(--att-accent); font-weight: 600; }
/* every page but the front: one status line under the bar (View::masthead, compact) */
.masthead-compact { padding: .6rem 0 0; margin-bottom: 1.5rem; }
.masthead-compact .masthead-status { justify-content: flex-start; font-size: .78rem; border-bottom: 1px solid var(--att-rule); padding-bottom: .55rem; margin: 0; }
.masthead-compact .folio { color: var(--att-ink-2); }
.editor-note { border-left-color: var(--att-ink) !important; font-family: var(--att-serif); font-size: 1.02rem; font-style: italic; line-height: 1.45; }
.editor-note-label { font-family: var(--att-serif); font-style: normal; font-variant-caps: all-small-caps; letter-spacing: .08em; font-weight: 700; color: var(--att-accent); margin-right: .35rem; }
.sections-nav { display: flex; gap: 1.25rem; justify-content: center; justify-content: safe center; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: .05rem 0; border-top: 1px solid var(--att-rule); font-family: var(--att-serif); font-variant-caps: all-small-caps; letter-spacing: .1em; font-weight: 700; font-size: 1rem; margin-bottom: 1.75rem; }
.sections-nav::-webkit-scrollbar { display: none; }
.sections-nav a { color: var(--att-ink); text-decoration: none; white-space: nowrap; padding: .5rem 0; }
.sections-nav a:hover, .sections-nav a.active { color: var(--att-accent); }

/* 4 ---- bars & pill ---------------------------------------------------------- */
.tm-bar { position: sticky; top: 56px; z-index: 1020; background: var(--att-tm); color: var(--att-tm-ink); font-family: var(--att-sans); font-size: .9rem; padding: .5rem 1rem; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin: 0 -1rem 1.5rem; animation: att-drop .4s ease-out; }
.tm-bar a { color: inherit; }
.tm-steps { display: inline-flex; gap: .25rem; }
.tm-step { border: 1px solid rgba(0,0,0,.45); border-radius: 999px; padding: .5rem .8rem; text-decoration: none; }
.tm-return { padding: .5rem 0; }
.tm-return { margin-left: auto; font-weight: 700; }
.banner { font-family: var(--att-sans); font-size: .9rem; padding: .6rem .9rem; border: 1px solid var(--att-rule); border-left: 4px solid var(--att-warn); background: var(--att-paper-2); margin-bottom: 1.5rem; }
.banner-empty { border-left-color: var(--att-accent); }
.banner-stale { border-left-color: var(--att-warn); }
.new-pill { position: sticky; top: 4.2rem; z-index: 1010; display: flex; justify-content: center; grid-column: 1 / -1; height: 0; overflow: visible; }
.new-pill[hidden] { display: none; }
.new-pill-btn, .new-pill-x { font-family: var(--att-sans); font-size: .85rem; border: 0; background: var(--att-ink); color: var(--att-paper); min-height: 2.75rem; padding: .45rem .9rem; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.new-pill-btn { border-radius: 999px 0 0 999px; animation: att-rise .35s ease-out; }
.new-pill-x { border-radius: 0 999px 999px 0; padding-left: .6rem; padding-right: .8rem; border-left: 1px solid rgba(255,255,255,.25); }

/* 5 ---- front grid (Browse) ---------------------------------------------- */
.front { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; column-gap: 2.5rem; row-gap: 2rem;
  grid-template-areas: "pill pill" "lead rail" "features rail" "sections rail" "columns columns" "letters letters" "colophon colophon"; }
.front > .new-pill { grid-area: pill; }
.zone-cover { display: none; }
.zone-lead { grid-area: lead; }
.zone-features { grid-area: features; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; border-top: 1px solid var(--att-rule); padding-top: 1.5rem; }
.zone-features > .story + .story { border-left: 1px solid var(--att-rule); padding-left: 2rem; margin-left: -1rem; }
.zone-sections { grid-area: sections; }
.rail { grid-area: rail; position: sticky; top: 4.5rem; align-self: start; max-height: calc(100vh - 5rem); overflow: auto; scrollbar-width: thin; }
.zone-columns { grid-area: columns; }
.zone-letters { grid-area: letters; }
.zone-colophon { grid-area: colophon; }
@media (max-width: 991.98px) {
  .front { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pill" "lead" "features" "sections" "rail" "columns" "letters" "colophon"; }
  .rail { position: static; max-height: none; overflow: visible; }
  .zone-features { grid-template-columns: 1fr; }
  .zone-features > .story + .story { border-left: 0; padding-left: 0; margin-left: 0; border-top: 1px solid var(--att-rule); padding-top: 1.5rem; }
}

/* 6 ---- story blocks ---------------------------------------------------------- */
.story { position: relative; }
.story .story-cover { display: none; }
.story .hed { font-family: var(--att-serif); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: .15rem 0 .4rem; text-wrap: balance; }
.story .hed a { color: inherit; text-decoration: none; }
.story .hed a:hover { color: var(--att-accent); }
.story .dek { font-size: 1.12rem; line-height: 1.45; color: var(--att-ink-2); margin: 0 0 .5rem; max-width: var(--att-measure); text-wrap: pretty; }
.byline { font-family: var(--att-sans); font-size: .78rem; color: var(--att-ink-2); margin: 0 0 .9rem; }
.byline .model { color: var(--att-ink-3); }
.badge-updated, .badge-developing { display: inline-block; font-variant-caps: all-small-caps; letter-spacing: .06em; font-family: var(--att-serif); font-size: .9rem; padding: 0 .4em; border: 1px solid var(--att-rule); border-radius: 999px; margin-left: .3em; line-height: 1.3; }
.badge-developing { color: var(--att-accent); border-color: var(--att-accent); }
.unread-note { font-family: var(--att-serif); font-size: .92rem; line-height: 1.45; color: var(--att-ink-2, inherit); border-left: 3px solid var(--att-accent); padding: .1rem 0 .1rem .7rem; margin: .5rem 0 .8rem; }
.unread-note strong { font-variant-caps: all-small-caps; letter-spacing: .06em; color: var(--att-accent); }
.body { font-size: 1.0625rem; line-height: 1.65; max-width: var(--att-measure); text-wrap: pretty; }
.body p { margin: 0 0 1em; }
.body h3 { font-size: 1.15rem; margin: 1.4em 0 .5em; }
.body blockquote { border-left: 2px solid var(--att-rule); margin: 1em 0; padding: .1em 0 .1em 1em; color: var(--att-ink-2); }
.body ul, .body ol { padding-left: 1.4em; }
.cite { font-family: var(--att-sans); font-size: .62em; vertical-align: super; line-height: 0; }
.cite a { color: var(--att-accent); text-decoration: none; padding: .5em .3em; margin: -.5em -.1em; }
.dropcap::first-letter { font-family: var(--att-display); font-weight: 700; color: var(--att-accent); float: left; font-size: 3.6em; line-height: .8; padding: .06em .08em 0 0; }
@supports (initial-letter: 3) { .dropcap::first-letter { float: none; initial-letter: 3; padding: 0 .1em 0 0; font-size: inherit; line-height: inherit; } }
.pull { border-top: 1px solid var(--att-rule-strong); border-bottom: 1px solid var(--att-rule-strong); padding: .9rem .2rem .8rem 2.2rem; margin: 1.2rem 0 1.2rem 1.5rem; float: right; width: 45%; position: relative; font-family: var(--att-serif); font-size: 1.3rem; line-height: 1.3; text-wrap: pretty; }
.pull::before { content: "“"; position: absolute; left: .1rem; top: .2rem; font-family: var(--att-display); font-size: 3.2rem; line-height: 1; color: var(--att-accent); }
.pull p { margin: 0; }
@media (max-width: 767.98px) { .pull { float: none; width: auto; margin-left: 0; } }
.more { font-family: var(--att-sans); font-size: .85rem; text-decoration: none; display: inline-block; margin-top: .25rem; border-bottom: 1px solid var(--att-rule); }
/* lead */
.story-lead .hed { font-family: var(--att-display); font-size: clamp(1.9rem, 4.5vw, 3.1rem); line-height: 1.05; letter-spacing: -.02em; }
.story-lead .dek { font-size: 1.25rem; }
.story-lead .body > p:nth-of-type(n+3), .story-lead .body > h3, .story-lead .body > ul, .story-lead .body > ol, .story-lead .body > blockquote:not(.pull) { display: none; }
.variant-lead .pull { display: none; }
/* features */
.story-feature .hed, .zone-features .hed { font-size: 1.45rem; }
.variant-feature .body > :not(:first-child), .variant-feature .pull { display: none; }
.variant-feature .dropcap::first-letter { float: none; font: inherit; color: inherit; padding: 0; initial-letter: 1; }
/* section blocks */
.section-block { border-top: 1px solid var(--att-rule); padding-top: 1rem; margin-top: .5rem; content-visibility: auto; contain-intrinsic-size: 1px 400px; }
.section-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.section-head .section-label::after { content: ""; display: block; width: 2rem; height: 2px; background: var(--att-accent); margin-top: .25rem; }
.section-desc { font-family: var(--att-sans); font-size: .78rem; color: var(--att-ink-3); margin: 0; }
.section-stories .story { padding: .6rem 0; border-top: 1px dotted var(--att-rule); }
.section-stories .story:first-child { border-top: 0; padding-top: 0; }
.section-stories .story .hed { font-size: 1.05rem; }
.section-stories .story:first-child .hed { font-size: 1.25rem; }
.section-stories .story .body, .section-stories .story .more, .section-stories .story .pull { display: none; }
.section-stories .story:not(:first-child) .dek, .section-stories .story:not(:first-child) .byline .model, .section-stories .story:not(:first-child) .kicker { display: none; }
.section-stories .story:not(:first-child) .byline { display: inline; margin-left: .5rem; }
.section-stories .story:not(:first-child) .hed { display: inline; margin: 0; }
.more-in { display: inline-block; font-family: var(--att-sans); font-size: .82rem; margin-top: .6rem; text-decoration: none; border-bottom: 1px solid var(--att-rule); }
/* developing clusters (wire mode) */
.developing .hed a { text-decoration: none; }
.dev-items { list-style: none; padding: 0; margin: .25rem 0 0; font-family: var(--att-sans); font-size: .88rem; }
.dev-items li { padding: .3rem 0; border-top: 1px dotted var(--att-rule); display: flex; gap: .5rem; align-items: baseline; }
.dev-items a { text-decoration: none; }
.dev-src { color: var(--att-ink-3); font-size: .78rem; white-space: nowrap; margin-left: auto; }
.section-stories.developing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.25rem; }
.section-stories.developing-grid .story { border-top: 0; padding: 0; }
.section-stories.developing-grid .story .hed { font-size: 1.05rem; display: block; }
.section-stories.developing-grid .story .kicker, .section-stories.developing-grid .story .dek { display: block; }
.section-stories.developing-grid .story .byline { display: block; margin-left: 0; }
.section-stories.developing-grid .dev-items li:nth-child(n+4) { display: none; }
.empty-lead .hed { font-family: var(--att-display); font-size: clamp(1.6rem, 4vw, 2.6rem); }

/* 7 ---- rail ------------------------------------------------------------------- */
.rail-head { display: flex; align-items: center; gap: .5rem; font-family: var(--att-sans); font-size: .78rem; color: var(--att-ink-2); border-bottom: 1px solid var(--att-rule-strong); padding-bottom: .35rem; margin-bottom: .5rem; }
.rail-title { font-family: var(--att-serif); font-variant-caps: all-small-caps; letter-spacing: .1em; font-weight: 700; font-size: 1rem; color: var(--att-ink); }
.rail-link { margin-left: auto; text-decoration: none; color: var(--att-ink-2); }
.rail-btn { margin-left: auto; border: 1px solid var(--att-rule); background: transparent; color: var(--att-ink-2); font: inherit; font-size: .75rem; border-radius: 999px; padding: .35rem .8rem; border-color: var(--att-rule-ui); cursor: pointer; }
.rail-btn[aria-pressed="true"] { background: var(--att-ink); color: var(--att-paper); }
.nr-widget { margin-bottom: 1.5rem; }
.nr-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--att-ink-3); display: inline-block; }
.nr-dot.is-running { background: var(--att-live); animation: att-pulse 1.4s infinite; }
.nr-log { list-style: none; padding: 0; margin: 0; font-family: var(--att-mono); font-size: .72rem; line-height: 1.4; color: var(--att-ink-2); }
.nr-log li { padding: .15rem 0; border-top: 1px dotted var(--att-rule); display: flex; gap: .5rem; animation: att-rise .3s ease-out; }
.nr-log li:first-child { border-top: 0; }
.nr-log time { color: var(--att-ink-3); flex: 0 0 auto; }
.nr-log .level-warn .log-msg { color: var(--att-warn); }
.nr-log .level-error .log-msg { color: var(--att-accent); }
.wire { list-style: none; padding: 0; margin: 0; font-family: var(--att-sans); font-size: .82rem; }
/* time | headline, with the outlet's name spelled out beneath it (it used to be a two-letter pill nobody could read) | ¶ */
.wire-row { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .05rem .4rem; align-items: baseline; padding: .35rem 0; border-top: 1px dotted var(--att-rule); border-left: 2px solid transparent; transition: background .6s, border-color .6s; }
.wire-row:first-child { border-top: 0; }
.wire-row.is-new { background: var(--att-accent-soft); border-left-color: var(--att-accent); animation: att-rise .35s ease-out; }
.wire-time { color: var(--att-ink-3); font-size: .72rem; }
.wire-time { grid-column: 1; grid-row: 1; }
.wire-title { grid-column: 2; grid-row: 1; }
.wire-src { grid-column: 2; grid-row: 2; font-family: var(--att-sans); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--att-ink-3); }
.wire-title { text-decoration: none; color: var(--att-ink); overflow-wrap: anywhere; }
.wire-title:hover { color: var(--att-accent); }
.wire-held { font-size: .72rem; color: var(--att-accent); }
.wire-more { display: block; width: 100%; margin-top: .5rem; border: 1px solid var(--att-rule); background: transparent; color: var(--att-ink-2); font: inherit; font-family: var(--att-sans); font-size: .8rem; padding: .35rem; cursor: pointer; }
/* The wire is above the newsroom log now: ten rows, then "Show all", so the log is not pushed a hundred rows down */
.wire-row:nth-child(n+11) { display: none; } .wire.is-expanded .wire-row { display: grid; }
/* now writing */
.now-writing { border: 1px solid var(--att-rule); border-left: 3px solid var(--att-live); padding: .6rem .8rem .8rem; margin-bottom: 1.25rem; background: var(--att-paper-2); animation: att-rise .4s ease-out; }
.now-writing .rail-head { border-bottom: 0; margin-bottom: .25rem; }
.nw-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--att-live); display: inline-block; animation: att-pulse 1.2s infinite; }
.nw-meta { color: var(--att-ink-3); }
.nw-hed { font-family: var(--att-serif); font-weight: 700; font-size: 1.05rem; line-height: 1.2; margin: .2rem 0 .4rem; min-height: 1.2em; }
.nw-body { font-size: .9rem; line-height: 1.5; max-height: 14rem; overflow-y: auto; scrollbar-width: none; position: relative; }
.nw-body::-webkit-scrollbar { display: none; }
.nw-body p { margin: 0 0 .6em; }
.story.is-new .story-inner { animation: att-glow 10s ease-out; }
@keyframes att-glow { 0% { background: var(--att-accent-soft); } 100% { background: transparent; } }
.nw-caret { display: inline-block; width: .5em; height: 1em; background: var(--att-accent); vertical-align: text-bottom; animation: att-blink 1s steps(2) infinite; }
.nw-more { font-family: var(--att-sans); font-size: .75rem; color: var(--att-ink-3); margin: .4rem 0 0; }

/* 8 ---- columnists & letters ------------------------------------------------------ */
.zone-head { display: flex; align-items: baseline; gap: 1rem; padding-bottom: .4rem; margin-bottom: 1rem; }
.columns-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0; }
.column-card { padding: 0 1.5rem; border-left: 1px solid var(--att-rule); }
.column-card:first-child { padding-left: 0; border-left: 0; }
.column-card:last-child { padding-right: 0; }
@media (max-width: 767.98px) { .columns-strip { grid-template-columns: 1fr; } .column-card { padding: 1rem 0; border-left: 0; border-top: 1px solid var(--att-rule); } .column-card:first-child { border-top: 0; } }
.column-head { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: center; margin-bottom: .5rem; }
.col-glyph { grid-row: span 2; width: 2.4rem; height: 2.4rem; border: 1px solid var(--att-rule-strong); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.col-name { font-family: var(--att-serif); font-variant-caps: all-small-caps; letter-spacing: .1em; font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.col-sub { font-family: var(--att-sans); font-size: .75rem; color: var(--att-ink-3); }
.column-hed { font-size: 1.2rem; font-weight: 700; line-height: 1.2; margin: 0 0 .4rem; }
.column-hed a { text-decoration: none; color: inherit; }
.column-hed a:hover { color: var(--att-accent); }
.column-excerpt { font-size: .95rem; line-height: 1.5; color: var(--att-ink-2); margin: 0 0 .4rem; }
.column-empty { font-style: italic; }
.column-byline { font-family: var(--att-sans); font-size: .78rem; color: var(--att-ink-2); margin: 0; }
.letter-teaser { max-width: var(--att-measure); }
.letter-from { font-family: var(--att-sans); font-size: .8rem; color: var(--att-ink-2); margin: 0 0 .3rem; }
.letter-text { font-size: 1.05rem; line-height: 1.5; margin: 0 0 .6rem; }
.letter-reply { border-left: 1px solid var(--att-rule-strong); padding-left: 1rem; font-size: .98rem; line-height: 1.5; }
.letter-empty { color: var(--att-ink-2); max-width: var(--att-measure); }
.colophon { font-family: var(--att-sans); font-size: .8rem; color: var(--att-ink-3); border-top: 4px double var(--att-rule-strong); padding-top: .75rem; text-align: center; }

/* 9 ---- article page ------------------------------------------------------------------- */
.article { max-width: var(--att-measure); margin: 0 auto; }
.article .story-inner { padding: 0; }
.article .hed { font-family: var(--att-display); font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.05; letter-spacing: -.02em; }
.article .dek { font-size: 1.25rem; }
.article .body { max-width: none; }
.sources-wrap { margin-top: 2rem; border-top: 1px solid var(--att-rule-strong); padding-top: .75rem; }
.sources { font-family: var(--att-sans); font-size: .85rem; padding-left: 1.4rem; }
.sources li { margin: .3rem 0; }
.sources li:target { background: var(--att-accent-soft); }
.src-name { font-family: var(--att-serif); font-variant-caps: all-small-caps; letter-spacing: .06em; font-weight: 700; margin-right: .3rem; }
.sources time { color: var(--att-ink-3); margin-left: .3rem; }
.disclosure, .wire-behind { font-family: var(--att-sans); font-size: .85rem; border-top: 1px solid var(--att-rule); margin-top: 1.25rem; padding-top: .6rem; }
.disclosure summary, .wire-behind summary { cursor: pointer; font-family: var(--att-serif); font-variant-caps: all-small-caps; letter-spacing: .08em; font-weight: 700; font-size: 1rem; }
.disclosure dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: .75rem 0; }
.disclosure dt { color: var(--att-ink-3); }
.disclosure dd { margin: 0; }
.disclosure-note { color: var(--att-ink-3); }
.wire-behind ul { list-style: none; padding: 0; margin: .5rem 0 0; }
.wire-behind li { padding: .3rem 0; border-top: 1px dotted var(--att-rule); display: flex; gap: .5rem; align-items: baseline; }
.wire-behind .since { color: var(--att-accent); font-size: .75rem; margin-left: auto; white-space: nowrap; }
.prevnext { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--att-sans); font-size: .85rem; border-top: 1px solid var(--att-rule); margin-top: 1.5rem; padding-top: .75rem; }
.prevnext a { text-decoration: none; max-width: 48%; }
.more-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.more-list li { padding: .4rem 0; border-top: 1px dotted var(--att-rule); }
.more-list a { text-decoration: none; font-weight: 700; }
.more-list time { font-family: var(--att-sans); font-size: .75rem; color: var(--att-ink-3); margin-left: .4rem; }
.col-signoff { font-variant-caps: all-small-caps; letter-spacing: .06em; font-weight: 700; }
.persona-brief { border: 1px solid var(--att-rule); padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: .95rem; color: var(--att-ink-2); background: var(--att-paper-2); }

/* 10 ---- archive / columnists / letters pages ------------------------------------------------ */
.page-title { font-family: var(--att-display); font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; margin: 0 0 .25rem; }
.page-intro { color: var(--att-ink-2); max-width: var(--att-measure); margin-bottom: 1.5rem; }
.archive-month { font-family: var(--att-serif); font-variant-caps: all-small-caps; letter-spacing: .1em; font-weight: 700; font-size: 1.1rem; margin: 1.5rem 0 .5rem; border-bottom: 1px solid var(--att-rule-strong); }
.archive-item { display: flex; align-items: baseline; gap: 1rem; border-top: 1px dotted var(--att-rule); }
.archive-row { flex: 1; min-width: 0; display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .6rem 0; text-decoration: none; color: inherit; }
.archive-tm { flex: none; font-family: var(--att-sans); font-size: .75rem; color: var(--att-ink-3); text-decoration: none; white-space: nowrap; }
.archive-tm:hover { color: var(--att-accent); }
.archive-row:hover .archive-lead { color: var(--att-accent); }
.archive-day { font-family: var(--att-sans); font-size: .85rem; color: var(--att-ink-2); }
.archive-meta { font-family: var(--att-sans); font-size: .78rem; color: var(--att-ink-3); }
.archive-lead { font-weight: 700; }
.archive-foot { margin-top: 1.5rem; }
@media (max-width: 575.98px) { .archive-row { grid-template-columns: 1fr; gap: .2rem; } }
.letter-form { max-width: var(--att-measure); border: 1px solid var(--att-rule); padding: 1rem 1.25rem; margin-bottom: 2rem; background: var(--att-paper-2); font-family: var(--att-sans); }
.letter-form textarea { font-family: var(--att-serif); font-size: 1.05rem; min-height: 9rem; }
.counter { font-size: .78rem; color: var(--att-ink-3); }
.letter-live { max-width: var(--att-measure); margin-bottom: 2rem; }
.letter { max-width: var(--att-measure); padding: 1.25rem 0; border-top: 1px solid var(--att-rule); }
.letter .letter-text { font-size: 1.05rem; }
.reply { border-left: 1px solid var(--att-rule-strong); padding-left: 1.1rem; margin-top: .75rem; min-height: 3.6em; }
.reply .section-label { display: block; margin-bottom: .3rem; }
.reply p { margin: 0 0 .8em; line-height: 1.6; }
.reply-signoff { font-family: var(--att-sans); font-size: .8rem; color: var(--att-ink-3); }
.caret { display: inline-block; width: .5em; height: 1em; background: var(--att-accent); vertical-align: text-bottom; animation: att-blink 1s steps(2) infinite; }

/* 11 ---- newsroom (plain Bootstrap is fine backstage) ------------------------------------------ */
.newsroom .card { background: var(--att-paper-2); border-color: var(--att-rule); }
.newsroom .table { --bs-table-bg: transparent; --bs-table-color: var(--att-ink); font-family: var(--att-sans); font-size: .85rem; }
.newsroom .nr-log { max-height: 28rem; overflow: auto; font-size: .78rem; }
.newsroom .table { --bs-table-border-color: var(--att-rule); }
.nr-ok { color: var(--att-ok); font-weight: 600; }
.nr-warn { color: var(--att-warn); font-weight: 600; }
.nr-bad { color: var(--att-bad); font-weight: 600; }
.nr-muted { color: var(--att-ink-2); }
.nr-tag { display: inline-block; font-size: .68rem; letter-spacing: .03em; text-transform: uppercase; color: var(--att-ink-2); border: 1px solid var(--att-rule-ui); border-radius: 3px; padding: 0 .3rem; vertical-align: .08em; }
.nr-pre { white-space: pre-wrap; }
.nr-health { font-size: .8rem; color: var(--att-ink-2); min-width: 14rem; }
.nr-status { white-space: nowrap; font-weight: 600; }
.nr-status.st-ok { color: var(--att-ok); }
.nr-status.st-degraded { color: var(--att-warn); }
.nr-status.st-failed { color: var(--att-bad); }
.nr-status.st-running { color: var(--att-ink); }
.nr-run-error { font-size: .78rem; color: var(--att-ink-2); max-width: 22rem; overflow-wrap: anywhere; }
.newsroom .src-edit, .newsroom .src-fetch { min-width: 2.25rem; min-height: 2.25rem; }
.src-form { border: 1px solid var(--att-rule-ui); background: var(--att-paper); padding: .9rem 1rem; margin-bottom: 1rem; font-family: var(--att-sans); }
.src-test.is-ok { color: var(--att-ok); }
.src-test.is-bad { color: var(--att-bad); }
.src-test ul { color: var(--att-ink); margin: .3rem 0; padding-left: 1.2rem; overflow-wrap: anywhere; }
/* daily spend chart: one series, so no legend; text in ink, the bar carries the only colour */
.spend-chart { margin: .25rem 0 .9rem; }
.spend-chart svg { display: block; width: 100%; height: auto; max-height: 11rem; }
.spend-chart .sc-bar { fill: var(--att-accent); }
.spend-chart .sc-hit { fill: transparent; }
.spend-chart .sc-day:hover .sc-hit, .spend-chart .sc-day:focus-visible .sc-hit { fill: var(--att-accent-soft); }
.spend-chart .sc-day { outline: none; }
.spend-chart .sc-axis { stroke: var(--att-rule-ui); stroke-width: 1; }
.spend-chart .sc-budget { stroke: var(--att-ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.spend-chart .sc-tick { fill: var(--att-ink-2); font-family: var(--att-sans); font-size: 9px; }
.spend-readout { color: var(--att-ink); font-weight: 600; }
.spend-bar { height: .5rem; background: var(--att-paper-3); border-radius: 2px; overflow: hidden; }
.spend-bar > span { display: block; height: 100%; background: var(--att-accent); }

/* 13 ---- motion ------------------------------------------------------------------------------------ */
@keyframes att-pulse { 0% { box-shadow: 0 0 0 0 rgba(46,139,87,.45); } 70% { box-shadow: 0 0 0 .5rem rgba(46,139,87,0); } 100% { box-shadow: 0 0 0 0 rgba(46,139,87,0); } }
@keyframes att-blink { 50% { opacity: 0; } }
@keyframes att-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes att-drop { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes att-fade { from { opacity: 0; } to { opacity: 1; } }
.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 1080; display: flex; flex-direction: column; gap: .5rem; }
.toast-msg { font-family: var(--att-sans); font-size: .85rem; background: var(--att-ink); color: var(--att-paper); padding: .6rem .9rem; border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.2); animation: att-rise .3s ease-out; max-width: 22rem; }
.toast-msg.is-error { background: var(--att-accent); }
/* the veil: shown by assets/app.js while the next page loads (above the flip chrome and the toasts) */
.nav-veil { position: fixed; inset: 0; z-index: 1090; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(250,247,241,.72); background: color-mix(in srgb, var(--att-paper) 72%, transparent); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; transition: opacity .2s ease-out; cursor: progress; }
.nav-veil[hidden] { display: none; }
.nav-veil.is-visible { opacity: 1; }
.nav-veil-card { display: flex; flex-direction: column; align-items: center; gap: .55rem; min-width: 13rem; max-width: 100%; padding: 1.25rem 1.6rem; background: var(--att-paper); color: var(--att-ink); border: 1px solid var(--att-rule); box-shadow: 0 12px 36px rgba(0,0,0,.18); text-align: center; }
.nav-veil-spinner { width: 2rem; height: 2rem; border-radius: 50%; border: 3px solid var(--att-rule); border-top-color: var(--att-accent); animation: att-spin .8s linear infinite; }
.nav-veil-text { font-family: var(--att-serif); font-style: italic; font-size: 1.05rem; line-height: 1.3; }
.nav-veil-hint { font-family: var(--att-sans); font-size: .72rem; color: var(--att-ink-3); }
@keyframes att-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nav-veil-spinner { border-color: var(--att-accent); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* 14 ---- print ------------------------------------------------------------------------------------------- */
@media print {
  @page { margin: 16mm; }
  body { padding-top: 0; background: #fff; color: #000; }
  header.navbar, .att-nav, .footer, .rail, .new-pill, .tm-bar, .banner, .masthead-tools, .more, .more-in, .toasts, .skip-link, .zone-cover, .now-writing, .view-toggle, .flip-chrome, .flip-edge, .flip-coach, .nav-veil, .masthead-compact, .save-btn, .listen, .keys-overlay { display: none !important; }
  /* printing from Flip: undo the deck so every page prints, one after another */
  .view-flip { overflow: visible !important; }
  .view-flip .front { display: block !important; height: auto !important; overflow: visible !important; }
  .view-flip .page { height: auto !important; overflow: visible !important; padding: 0 0 8mm !important; border: 0 !important; break-inside: avoid; }
  .view-flip .story .story-cover { display: none !important; }
  .masthead-title { font-size: 56pt; }
  .front { display: block; }
  .zone-features { display: grid; grid-template-columns: 1fr 1fr; }
  .section-block { break-inside: avoid; columns: 2; column-gap: 8mm; column-rule: .5pt solid #000; }
  .section-head, .story { break-inside: avoid; }
  .sources a[href]::after { content: " (" attr(href) ")"; font-size: .8em; color: #444; }
  .cite { display: inline; }
  a { color: #000; text-decoration: none; }
}

/* section page */
.section-page .section-head { display: block; margin-bottom: 1.5rem; border-bottom: 4px double var(--att-rule-strong); padding-bottom: .5rem; }
/* Story lists (section, topic, saved): the full page width, as two columns of cards from tablet up, so each
   line stays a readable length (one 48rem column used to leave the right third of the page empty). */
.section-list { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 3.5rem; }
.section-list .story { padding: 1.25rem 0; border-top: 1px solid var(--att-rule); min-width: 0; }
.section-list .story:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 768px) {
  .section-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-list .story:nth-child(2) { border-top: 0; padding-top: 0; }
  .section-list .story:only-child { grid-column: 1 / -1; max-width: 48rem; }
}
@media print { .section-list { display: block; } }
.column-page .kicker .col-glyph { width: 1.6rem; height: 1.6rem; font-size: .75rem; vertical-align: middle; margin-right: .2rem; }
.col-signoff-p { border-top: 1px solid var(--att-rule); padding-top: .8em; }

/* 12 ---- flip mode ------------------------------------------------------------------------------------ */
html.pref-flip body[data-page="front"]:not(.view-flip) .paper { visibility: hidden; }
.view-flip { overflow: hidden; }
.view-flip .paper { max-width: none; padding: 0; }
.view-flip .masthead, .view-flip .banner, .view-flip .new-pill, .view-flip .footer, .view-flip .catch-up-bar { display: none !important; }
.view-flip .tm-bar { margin: 0; position: fixed; left: 0; right: 0; top: 56px; z-index: 1030; }
.view-flip.is-timemachine .front { height: calc(100dvh - 56px - 2.6rem); margin-top: 2.6rem; }
.view-flip .tm-bar { flex-wrap: nowrap; white-space: nowrap; height: 2.6rem; overflow: hidden; padding-top: 0; padding-bottom: 0; }
.view-flip .tm-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.view-flip .front { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; height: calc(100dvh - 56px); scrollbar-width: none; gap: 0; overscroll-behavior-x: contain; background: var(--att-paper); }
.view-flip .front::-webkit-scrollbar { display: none; }
.view-flip .front > .zone-features, .view-flip .front > .zone-sections, .view-flip .section-block, .view-flip .section-stories { display: contents; }
.view-flip .page { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow-y: auto; overscroll-behavior-y: contain; position: relative; padding: 2.2rem clamp(1rem, 7vw, 6rem) 6rem; box-sizing: border-box; border-right: 1px solid var(--att-rule); scrollbar-width: thin; }
.view-flip .page:focus, .view-flip .page:focus-visible { outline: none; }
.view-flip .zone-cover { display: block; }
.view-flip .story .story-inner, .view-flip .zone-columns, .view-flip .zone-letters .letter-teaser, .view-flip .zone-letters .letter-empty { position: relative; z-index: 1; max-width: 72ch; margin: 0 auto; }
.view-flip .zone-columns { max-width: 1100px; }
.view-flip .story .story-cover { display: block; position: absolute; inset: 0; z-index: 0; opacity: .22; background-size: 140% 140%; background-position: 50% 50%; pointer-events: none; }
.view-flip .story.is-current .story-cover { animation: att-drift 60s ease-in-out infinite alternate; }
[data-bs-theme="dark"] .view-flip .story .story-cover { opacity: .34; }
.view-flip .story .story-inner::before { content: ""; display: block; width: 4rem; height: 4px; background: var(--sec, var(--att-accent)); margin-bottom: 1rem; }
.view-flip .story .kicker { color: var(--sec, var(--att-accent)); }
.view-flip .story .hed { font-family: var(--att-display); font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.05; letter-spacing: -.02em; display: block; margin: 0 0 .6rem; }
.view-flip .story .dek { display: block; font-size: 1.2rem; max-width: none; }
.view-flip .story .kicker, .view-flip .story .byline, .view-flip .story .body, .view-flip .story .pull, .view-flip .story .more, .view-flip .story .dev-items { display: block; }
.view-flip .story .byline { margin: 0 0 1.2rem; }
.view-flip .story .byline .model { display: inline; }
.view-flip .story .body { max-width: none; font-size: 1.1rem; }
.view-flip .story .body[data-loading]::after { content: 'Fetching the rest of the story…'; display: block; font-family: var(--att-sans); font-size: .85rem; color: var(--att-ink-3); }
.view-flip .story .body > *, .view-flip .story-lead .body > p:nth-of-type(n+3), .view-flip .variant-feature .body > :not(:first-child) { display: block; }
.view-flip .story .body > ul, .view-flip .story .body > ol { display: block; }
.view-flip .variant-feature .dropcap::first-letter, .view-flip .section-stories .story .dropcap::first-letter { font-family: var(--att-display); font-weight: 700; color: var(--sec, var(--att-accent)); float: left; font-size: 3.6em; line-height: .8; padding: .06em .08em 0 0; }
@supports (initial-letter: 3) { .view-flip .story .dropcap::first-letter { float: none; initial-letter: 3; font-size: inherit; line-height: inherit; padding: 0 .1em 0 0; } }
.view-flip .story .more { display: inline-block; font-size: .8rem; border-bottom: 0; color: var(--att-ink-3); }
.view-flip .story .more::after { content: " ↗"; }
.view-flip .section-stories .story { border: 0; padding: 2.2rem clamp(1rem, 7vw, 6rem) 5rem; }
.view-flip .section-stories .story .hed, .view-flip .section-stories .story:not(:first-child) .hed { display: block; font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
.view-flip .section-stories .story:not(:first-child) .byline { display: block; margin: 0 0 1.2rem; }
.view-flip .section-stories.developing-grid .dev-items li:nth-child(n+4) { display: flex; }
.view-flip .zone-features > .story + .story { border-left: 0; padding-left: clamp(1rem, 7vw, 6rem); margin-left: 0; border-top: 0; }
/* cover */
.view-flip .zone-cover { display: flex; align-items: flex-start; justify-content: center; text-align: center; background: radial-gradient(ellipse at 50% 30%, var(--att-paper-2), var(--att-paper) 70%); }
.cover-inner { max-width: 60rem; position: relative; z-index: 1; }
/* centred by auto margins, not align-items: a cover taller than the screen then starts at the top and scrolls,
   where align-items: center pushed its top up behind the nav bar, out of reach */
.view-flip .zone-cover > .cover-inner { margin: auto; }
.cover-title { font-family: var(--att-display); font-weight: 700; font-size: clamp(3rem, min(14vw, 17vh), 11rem); letter-spacing: -.03em; line-height: .95; margin: .5rem 0 .3rem; }
/* the cover title arrives the way the house does: every letter roosts upside down like a bat, swings upright into
   place one after another, and then the crimson runs through the word once (the split is in app.js, Flip.remount;
   reduced motion gets the plain title) */
.cover-word { display: inline-block; white-space: nowrap; }
/* the blood: the house crimson by day; at night a deeper red than the pink accent (3.3:1 on dark paper, enough for type this size) */
.cover-title, .masthead-title { --cover-blood: var(--att-accent); }
[data-bs-theme="dark"] .cover-title, [data-bs-theme="dark"] .masthead-title { --cover-blood: #d0142c; }
:is(.cover-title, .masthead-title) .cover-ch { display: inline-block; transform-origin: 50% 10%; animation: cover-roost 1s cubic-bezier(.3,.85,.3,1) both, cover-feed .8s ease-in both; animation-delay: calc(var(--i, 0) * 60ms + .15s), calc(var(--n, 18) * 60ms + 1.05s + var(--i, 0) * 45ms); }
@keyframes cover-roost {
  0% { opacity: 0; transform: perspective(40rem) translateY(-.4em) rotateX(180deg) rotateZ(var(--tilt, 0deg)); }
  28% { opacity: 1; transform: perspective(40rem) translateY(-.28em) rotateX(180deg) rotateZ(calc(var(--tilt, 0deg) * -1)); }
  68% { opacity: 1; transform: perspective(40rem) translateY(.04em) rotateX(-16deg) rotateZ(0deg); }
  85% { opacity: 1; transform: perspective(40rem) translateY(-.015em) rotateX(7deg) rotateZ(0deg); }
  100% { opacity: 1; transform: perspective(40rem) translateY(0) rotateX(0deg) rotateZ(0deg); }
}
@keyframes cover-feed { 0% { color: inherit; } 100% { color: var(--cover-blood, var(--att-accent)); } } /* and it stays crimson: the drops then fall from red letters */
/* the drops: a thin run of crimson grows down from the foot of a letter with a bead at its tip; the bead swells,
   lets go and falls, and the run dries away, so the title ends clean */
:is(.cover-title, .masthead-title) .cover-ch { position: relative; }
.cover-drip { position: absolute; left: var(--x, 50%); top: 76%; width: .045em; margin-left: -.0225em; height: 0; opacity: 0; background: var(--cover-blood, var(--att-accent)); border-radius: 0 0 .03em .03em; pointer-events: none; animation: cover-drip 3.6s cubic-bezier(.45,0,.75,1) both; animation-delay: calc(var(--n, 18) * 60ms + 2.1s + var(--i, 0) * 45ms + var(--k, 0) * 260ms); }
.cover-drip::after { content: ""; position: absolute; left: 50%; bottom: -.07em; width: .11em; height: .14em; margin-left: -.055em; background: inherit; border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%; animation: cover-bead 3.6s ease-in both; animation-delay: inherit; }
@keyframes cover-drip { 0% { height: 0; opacity: 0; } 3% { height: 0; opacity: 1; } 50% { height: var(--len, .35em); opacity: 1; } 70% { height: var(--len, .35em); opacity: 1; } 100% { height: var(--len, .35em); opacity: 0; } }
@keyframes cover-bead { 0% { transform: scale(.35); opacity: 1; } 50% { transform: scale(.8); opacity: 1; } 62% { transform: scale(1.15); opacity: 1; } 66% { transform: translateY(.04em) scale(1, 1.25); opacity: 1; } 88% { transform: translateY(1.15em) scale(.9, 1.2); opacity: 1; } 100% { transform: translateY(1.35em) scale(.9, 1.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { :is(.cover-title, .masthead-title) .cover-ch { animation: none; } .cover-drip { display: none; } }
@media print { :is(.cover-title, .masthead-title) .cover-ch { animation: none !important; color: inherit !important; opacity: 1 !important; transform: none !important; } }
@media print { .cover-drip { display: none !important; } }
/* the head count: "3 readers here now" in the status line, "2 reading now" in a story's byline (app.js, Presence) */
.here { white-space: nowrap; }
.here-story { font-family: var(--att-sans); }
.here-story .fa-eye { font-size: .9em; opacity: .8; }
@media print { .here { display: none !important; } }
.cover-tag { font-variant-caps: all-small-caps; letter-spacing: .28em; font-size: 1.2rem; color: var(--att-ink-2); margin: 1.1rem 0 1rem; }
.cover-status { font-family: var(--att-sans); font-size: .85rem; color: var(--att-ink-2); margin: 0 0 2rem; }
.cover-lead { display: block; text-decoration: none; color: inherit; margin: 0 auto 2rem; max-width: 42rem; border-top: 4px double var(--att-rule-strong); border-bottom: 4px double var(--att-rule-strong); padding: 1.2rem 1rem; }
.cover-lead .kicker { display: block; margin-bottom: .4rem; }
.cover-hed { display: block; font-family: var(--att-display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; margin-bottom: .5rem; }
.cover-dek { display: block; font-size: 1.1rem; color: var(--att-ink-2); }
.cover-lead:hover .cover-hed { color: var(--att-accent); }
.cover-hint { font-family: var(--att-sans); font-size: .8rem; color: var(--att-ink-3); margin: 0; animation: att-fade 1.2s ease-out 1s both; }
.cover-notice { font-family: var(--att-sans); font-size: .9rem; max-width: 42rem; margin: 0 auto 1rem; padding: .5rem .9rem; border: 1px solid var(--att-rule); border-left: 4px solid var(--att-warn); background: var(--att-paper-2); text-align: left; }
.cover-note { font-style: italic; font-size: 1.05rem; line-height: 1.45; color: var(--att-ink-2); max-width: 40rem; margin: 0 auto 1.5rem; }
.hint-touch { display: none; }
@media (pointer: coarse) { .hint-keys { display: none; } .hint-touch { display: inline; } }
/* each section's colour washes its pages in Flip, edge to edge: the article and the section's divider (--sec is
   set on every page by Flip.remount in app.js; a page without a section stays paper) */
.view-flip .story.page, .view-flip .section-head.divider { background-color: color-mix(in srgb, var(--sec, var(--att-paper)) 11%, var(--att-paper)); }
[data-bs-theme="dark"] .view-flip .story.page, [data-bs-theme="dark"] .view-flip .section-head.divider { background-color: color-mix(in srgb, var(--sec, var(--att-paper)) 13%, var(--att-paper)); }
/* "In this edition" on the cover (built by Flip.preview in app.js) */
.cover-toc { max-width: 56rem; margin: 3rem auto 3rem; text-align: left; font-family: var(--att-sans); animation: att-fade .8s ease-out .4s both; }
.cover-toc-head { text-align: center; font-variant-caps: all-small-caps; letter-spacing: .14em; font-size: .95rem; color: var(--att-ink-2); margin: 0 0 1.6rem; }
.cover-toc ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.2rem 1.75rem; }
.cover-toc li { border-top: 3px solid var(--sec, var(--att-accent)); padding-top: .75rem; min-width: 0; }
.cover-toc .toc-sec { display: flex; justify-content: space-between; gap: .5rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--sec, var(--att-accent)); }
.cover-toc .toc-n { font-weight: 400; letter-spacing: .04em; color: var(--att-ink-3); white-space: nowrap; }
.cover-toc li a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: .6rem; color: var(--att-ink); text-decoration: none; font-family: var(--att-serif); font-size: 1rem; line-height: 1.35; }
.cover-toc li a + a { color: var(--att-ink-2); font-size: .92rem; }
.cover-toc a:hover, .cover-toc a:focus-visible { color: var(--att-accent); }
.cover-toc-more { text-align: center; font-size: .82rem; color: var(--att-ink-2); margin: 2.2rem 0 0; }
.cover-toc-more a { color: inherit; }
@media (max-width: 575.98px) { .cover-toc li a + a { display: none; } .cover-toc ul { gap: 1.6rem; } .cover-toc { margin: 2.2rem auto; } }
@media (prefers-reduced-motion: reduce) { .cover-toc { animation: none; } }
/* dividers, rail, columns pages */
.view-flip .section-head.divider { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin: 0; }
.view-flip .section-head.divider .section-label { font-family: var(--att-display); font-variant-caps: normal; letter-spacing: -.02em; font-size: clamp(2.6rem, 8vw, 6rem); color: var(--sec, var(--att-accent)); }
.view-flip .section-head.divider .section-label::after { margin: .5rem auto 0; width: 6rem; height: 4px; background: var(--sec, var(--att-accent)); }
.view-flip .section-head.divider .section-desc { font-size: 1rem; max-width: 36rem; margin-top: 1rem; }
.view-flip .rail { position: static; max-height: none; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-content: start; }
.view-flip .rail .now-writing { grid-column: 1 / -1; }
@media (max-width: 767.98px) { .view-flip .rail { grid-template-columns: 1fr; } }
.view-flip .wire-row:nth-child(n+11) { display: grid; }
.view-flip .wire-more { display: none; }
.view-flip .zone-head { padding-top: 0; }
.view-flip .zone-colophon { display: flex; align-items: center; justify-content: center; text-align: center; }
.view-flip .colophon { border-top: 0; font-size: 1rem; max-width: 40rem; }
/* chrome */
.flip-chrome { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .75rem; padding: .35rem 1rem; background: color-mix(in srgb, var(--att-paper) 88%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--att-rule); font-family: var(--att-sans); font-size: .78rem; color: var(--att-ink-2); }
.flip-chrome .fc-left { display: flex; gap: .6rem; align-items: center; min-width: 0; }
.flip-chrome .fc-right { display: flex; gap: .5rem; align-items: center; justify-content: flex-end; }
.flip-chrome .fc-name { font-family: var(--att-display); font-weight: 700; font-size: 1.05rem; color: var(--att-ink); letter-spacing: -.02em; }
.flip-chrome .fc-pos { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.flip-chrome .fc-btn, .flip-chrome .fc-name { white-space: nowrap; flex: none; }
@media (max-width: 1399.98px) { .flip-chrome .fc-date .dc-step, .flip-chrome .tm-prefix { display: none; } } /* was 1200px: the More button needs the room */
.flip-chrome .fc-new { background: var(--att-ink); color: var(--att-paper); border: 0; border-radius: 999px; padding: .25rem .7rem; font: inherit; cursor: pointer; max-width: 24rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; animation: att-rise .35s ease-out; }
.flip-chrome .fc-btn { border: 1px solid var(--att-rule-ui); background: transparent; color: var(--att-ink); font: inherit; min-height: 2.75rem; padding: .25rem .8rem; border-radius: 999px; cursor: pointer; }
.flip-chrome .fc-btn:hover { border-color: var(--att-ink); }
.flip-chrome .fc-date { display: inline-flex; }
.tm-toggle { white-space: nowrap; }
.flip-chrome .tm-menu { font-size: .9rem; }
.flip-pager { display: flex; align-items: center; gap: .4rem; }
.flip-range { width: clamp(6rem, 28vw, 22rem); accent-color: var(--att-accent); height: 2.75rem; margin: 0; cursor: pointer; }
.flip-chrome .fc-step { width: 2.75rem; height: 2.75rem; padding: 0; display: inline-grid; place-items: center; }
.flip-chrome .fc-step[disabled] { visibility: hidden; } /* nothing to turn to: no arrow, but its space stays so the slider doesn't shift */
.flip-edge { position: fixed; top: 56px; bottom: 3.6rem; width: clamp(2rem, 5vw, 4.5rem); z-index: 1035; border: 0; background: transparent; color: var(--att-ink-2); font-size: 2rem; opacity: 0; cursor: pointer; transition: opacity .2s; }
.flip-edge:hover, .flip-edge:focus-visible { opacity: .9; }
.flip-edge.left { left: 0; text-align: left; padding-left: .6rem; }
.flip-edge.right { right: 0; text-align: right; padding-right: .6rem; }
.flip-edge[disabled] { display: none; }
@media (pointer: coarse) { .flip-edge { display: none; } } /* touch swipes; the invisible zones only stole taps from links near the edge */
/* the fold */
.flip-fold { position: fixed; left: 0; right: 0; top: 56px; bottom: 0; z-index: 1038; perspective: 1800px; pointer-events: none; overflow: hidden; }
.flip-fold .flip-leaf { position: absolute; inset: 0; background: var(--att-paper); backface-visibility: hidden; transform-origin: left center; transform: rotateY(0deg); box-shadow: 0 0 40px rgba(0,0,0,.25); overflow: hidden; }
.flip-fold.to-prev .flip-leaf { transform-origin: right center; }
.flip-fold .flip-leaf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.35)); opacity: 0; transition: opacity .45s; }
.flip-fold.to-prev .flip-leaf::after { background: linear-gradient(-90deg, rgba(0,0,0,0), rgba(0,0,0,.35)); }
.flip-fold.is-turning .flip-leaf { transition: transform .45s cubic-bezier(.2,.7,.2,1); transform: rotateY(-180deg); }
.flip-fold.to-prev.is-turning .flip-leaf { transform: rotateY(180deg); }
.flip-fold.is-turning .flip-leaf::after { opacity: 1; }
.flip-fold .flip-leaf > .page { position: absolute; inset: 0; width: 100%; height: 100%; flex: none; overflow: hidden; }
.flip-coach { position: fixed; left: 50%; bottom: 4.4rem; transform: translateX(-50%); z-index: 1041; background: var(--att-ink); color: var(--att-paper); font-family: var(--att-sans); font-size: .85rem; padding: .6rem 1rem; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: att-rise .4s ease-out; max-width: calc(100vw - 2rem); width: max-content; text-align: center; }
.flip-coach kbd { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); color: inherit; }
@keyframes att-drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .view-flip .story.is-current .story-cover { animation: none; } }
@media (max-width: 575.98px) { .flip-chrome { grid-template-columns: auto 1fr auto; } .flip-chrome .fc-pos, .flip-chrome .tm-prefix, .flip-chrome .fc-name, .flip-chrome [data-view="browse"] .fc-btn-text { display: none; } .flip-chrome { gap: .35rem; padding: .35rem .5rem; } .flip-chrome .fc-left:has(.fc-new[hidden]) { display: none; } .flip-chrome:has(.fc-left .fc-new[hidden]) { grid-template-columns: minmax(0, 1fr) auto; } .flip-chrome .fc-new { max-width: 8rem; } .flip-pager { min-width: 0; } .flip-range { flex: 1 1 2.5rem; width: 2.5rem; min-width: 2rem; } .flip-chrome .fc-right { gap: .3rem; } .flip-chrome .tm-toggle, .flip-chrome .fc-btn { padding-left: .6rem; padding-right: .6rem; } .view-flip .page { padding: 1.5rem 1.1rem 5.5rem; } }

/* ---- Newsroom power switch (newsroom.php) and the "Newsroom off" flag (masthead, Flip cover) -------------- */
.nr-power { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 1.5rem; padding: 1.25rem 1.5rem; margin-bottom: 1rem; background: var(--att-paper); border: 1px solid var(--att-rule); border-left: 4px solid var(--att-live); border-radius: 6px; transition: background-color .25s ease, border-color .25s ease; }
.nr-power.is-off { background: var(--att-paper-2); border-left-color: var(--att-ink-3); }
.nr-power.is-on [data-when="off"], .nr-power.is-off [data-when="on"] { display: none; }
.nr-power-signal { display: flex; align-items: flex-end; gap: 3px; width: 2.4rem; height: 2.6rem; }
.nr-power-signal i { flex: 1; height: 100%; border-radius: 2px; background: var(--att-live); transform-origin: bottom; animation: att-eq 1.1s ease-in-out infinite; }
.nr-power-signal i:nth-child(2) { animation-delay: -.45s; }
.nr-power-signal i:nth-child(3) { animation-delay: -.2s; }
.nr-power-signal i:nth-child(4) { animation-delay: -.7s; }
.nr-power-signal i:nth-child(5) { animation-delay: -.35s; }
.nr-power.is-off .nr-power-signal i { animation: none; transform: scaleY(.08); background: var(--att-ink-3); }
@keyframes att-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.nr-power-eyebrow { font-family: var(--att-sans); font-size: .7rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--att-ink-2); margin: 0; }
.nr-power-title { font-family: var(--att-display); font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; line-height: 1.05; margin: .1rem 0 .35rem; color: var(--att-ink); }
.nr-power.is-off .nr-power-title { color: var(--att-ink-2); }
.nr-power-desc { font-family: var(--att-serif); font-size: 1rem; line-height: 1.45; max-width: 62ch; margin: 0 0 .4rem; color: var(--att-ink); }
.nr-power-meta { font-family: var(--att-sans); font-size: .78rem; color: var(--att-ink-3); margin: 0; }
.nr-power-control { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.nr-switch-label { font-family: var(--att-sans); font-size: .75rem; font-weight: 600; color: var(--att-ink-2); }
.nr-switch { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 999px; }
.nr-switch:focus-visible { outline: 2px solid var(--att-accent); outline-offset: 3px; }
.nr-switch.is-busy { cursor: progress; opacity: .65; }
.nr-switch-track { position: relative; display: block; width: 3.4rem; height: 1.9rem; border-radius: 999px; background: var(--att-ink-3); transition: background-color .2s ease; }
.nr-switch-thumb { position: absolute; top: 3px; left: 3px; width: calc(1.9rem - 6px); height: calc(1.9rem - 6px); border-radius: 50%; background: var(--att-paper); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s ease; }
.nr-switch[aria-checked="true"] .nr-switch-track { background: var(--att-live); }
.nr-switch[aria-checked="true"] .nr-switch-thumb { transform: translateX(1.5rem); }
@media (max-width: 575.98px) {
  .nr-power { grid-template-columns: auto 1fr; padding: 1rem; }
  .nr-power-control { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .nr-power-signal i { animation: none; }
  .nr-power-signal i:nth-child(odd) { transform: scaleY(.6); }
  .nr-power, .nr-switch-track, .nr-switch-thumb { transition: none; }
}
.power-flag { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--att-sans); font-size: .75rem; font-weight: 600; color: var(--att-ink); background: var(--att-paper-2); border: 1px solid var(--att-rule); border-radius: 999px; padding: .1rem .6rem .1rem .45rem; margin: 0 .15rem; text-decoration: none; white-space: nowrap; }
.power-flag:hover, .power-flag:focus-visible { border-color: var(--att-ink-2); color: var(--att-ink); }
.power-flag[hidden] { display: none; }
.power-flag-dot { width: .5rem; height: .5rem; border-radius: 50%; border: 2px solid var(--att-ink-3); }
.power-flag-sub { font-weight: 400; color: var(--att-ink-2); }
/* Corrections and the copy desk's notes */
.corrections { margin: 1.25rem 0; padding: .75rem 1rem; border-left: 3px solid var(--att-accent, #b4441f); background: color-mix(in srgb, var(--att-accent, #b4441f) 7%, transparent); font-family: var(--att-sans); font-size: .9rem; }
.correction { margin: 0; }
.correction + .correction { margin-top: .5rem; }
.correction-label { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .75rem; }
.correction-form-wrap { margin: 1rem 0; font-family: var(--att-sans); font-size: .85rem; }
.correction-form-wrap > summary { cursor: pointer; color: var(--att-ink-2); }
.correction-form { margin-top: .5rem; max-width: 40rem; }
.check-list { margin: .35rem 0 0; padding-left: 1.1rem; }
.check-list li { margin-bottom: .2rem; }
.check-issue { font-weight: 600; }
@media print { .correction-form-wrap { display: none; } }

/* Reader tools: read state, catch-up, followed topics */
.section-h { display: inline; margin: 0; font: inherit; line-height: inherit; letter-spacing: inherit; }
.story.is-read:not(.variant-page) .hed a { color: var(--att-ink-2); }
.story.is-read:not(.variant-page) .hed a::after { content: " · read"; font-family: var(--att-sans); font-size: .7rem; font-weight: 400; color: var(--att-ink-3); letter-spacing: .02em; }
.story.is-new-since:not(.variant-page) .kicker::after { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-left: .4rem; /* after the name: the section's icon stands before it */ border-radius: 50%; background: var(--att-accent); vertical-align: .1em; }
body:not(.view-flip) .story.is-followed:not(.variant-page) { box-shadow: inset 3px 0 0 var(--att-accent); padding-left: .75rem; }
/* in Flip the page keeps its margins; a bell after the section name says the reader follows this story's topic */
.view-flip .story.is-followed:not(.is-new-since) .story-inner > .kicker::after { content: "\f0f3"; font-family: "Font Awesome 7 Pro"; font-weight: 400; font-variant-caps: normal; letter-spacing: 0; margin-left: .5em; font-size: .8em; color: var(--att-accent); }
.catch-up-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; max-width: 72rem; margin: 0 auto 1rem; padding: .55rem 1rem; border: 1px solid var(--att-rule); border-left: 3px solid var(--att-accent); border-radius: 4px; background: var(--att-paper-2); font-family: var(--att-sans); font-size: .85rem; }
.catch-up-toggle { border: 1px solid var(--att-ink-2); background: transparent; color: var(--att-ink); border-radius: 999px; padding: .2rem .8rem; font-size: .8rem; }
.catch-up-toggle[aria-pressed="true"] { background: var(--att-ink); color: var(--att-paper); }
body.catch-up .front .story:not(.is-new-since):not(.empty-lead) { display: none; }
body.catch-up .front .section-head, body.catch-up .front .zone-columns, body.catch-up .front .zone-letters { display: none; }
/* Search and topics */
.search-form { display: flex; gap: .5rem; max-width: 40rem; margin: .75rem 0 .5rem; }
.topic-cloud { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .75rem 0 1.25rem; font-family: var(--att-sans); font-size: .82rem; }
.topic-cloud-label { color: var(--att-ink-3); margin-right: .2rem; }
.topic-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border: 1px solid var(--att-rule); border-radius: 999px; color: var(--att-ink); text-decoration: none; background: var(--att-paper); }
.topic-chip:hover, .topic-chip:focus-visible { border-color: var(--att-ink-2); }
.topic-chip .n { color: var(--att-ink-3); font-variant-numeric: tabular-nums; }
.topic-chip.is-followed { border-color: var(--att-accent); box-shadow: inset 0 0 0 1px var(--att-accent); }
.topic-head .follow-btn { margin-top: .25rem; }
/* Story page: the story so far, listen, fact-check mark */
.story-thread { margin: 1.5rem 0; }
.thread-list { list-style: none; margin: .5rem 0 0; padding: 0 0 0 1rem; border-left: 2px solid var(--att-rule); font-family: var(--att-sans); font-size: .9rem; }
.thread-list li { position: relative; padding: .3rem 0; }
.thread-list li::before { content: ""; position: absolute; left: calc(-1rem - 5px); top: .75rem; width: 8px; height: 8px; border-radius: 50%; background: var(--att-paper); border: 2px solid var(--att-ink-3); }
.thread-list li.is-self::before { background: var(--att-accent); border-color: var(--att-accent); }
.thread-list li.is-self span { font-weight: 600; }
.thread-list time { display: inline-block; min-width: 3.6rem; color: var(--att-ink-3); font-variant-numeric: tabular-nums; }
.listen-btn { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: var(--att-rule); text-underline-offset: .2em; cursor: pointer; }
.listen-btn[aria-pressed="true"] { color: var(--att-accent); }
.check-badge { color: var(--att-live); text-decoration: none; white-space: nowrap; }
.check-badge.is-unchecked { color: var(--att-ink-3); }
a.check-badge:hover { text-decoration: underline; }
@media print { .listen-btn, .catch-up-bar, .story-thread, .prevnext, .day-link, .more-in-section, .wire-behind, .topic-cloud { display: none !important; } }

/* Reader extras: save for later, listen controls, shortcut help, pagination */
.save-btn { border: 0; background: none; color: var(--att-ink-2); font: inherit; padding: .5rem .45rem; margin: -.5rem 0 -.5rem .15rem; cursor: pointer; white-space: nowrap; }
.save-btn:hover { color: var(--att-accent); }
.save-btn[aria-pressed="true"] { color: var(--att-accent); }
.save-btn[aria-pressed="true"] i { font-weight: 900; }
.story:not(.variant-page) .save-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.section-stories .story:not(:first-child) .save-btn { display: none; }
.view-flip .section-stories .story .save-btn { display: inline-block; }
.listen { display: inline-flex; align-items: center; gap: .6rem; }
.listen-btn { padding: .5rem 0; margin: -.5rem 0; }
.listen-rate select { font: inherit; font-size: .78rem; color: var(--att-ink); background: var(--att-paper); border: 1px solid var(--att-rule-ui); border-radius: 4px; padding: .1rem .2rem; }
.keys-overlay { position: fixed; inset: 0; z-index: 1085; display: flex; align-items: center; justify-content: center; padding: 1rem; background: color-mix(in srgb, var(--att-paper) 70%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.keys-card { background: var(--att-paper); color: var(--att-ink); border: 1px solid var(--att-rule-ui); box-shadow: 0 16px 48px rgba(0,0,0,.25); max-width: 34rem; width: 100%; max-height: calc(100dvh - 2rem); overflow: auto; padding: 1.25rem 1.5rem; font-family: var(--att-sans); font-size: .9rem; }
.keys-card h2 { font-family: var(--att-display); font-size: 1.5rem; margin: 0 0 .75rem; }
.keys-card h3 { font-family: var(--att-serif); font-variant-caps: all-small-caps; letter-spacing: .08em; font-size: 1rem; color: var(--att-accent); margin: 1rem 0 .35rem; }
.keys-card dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.keys-card dt { white-space: nowrap; }
.keys-card dd { margin: 0; color: var(--att-ink-2); }
.keys-close { float: right; border: 1px solid var(--att-rule-ui); background: transparent; color: var(--att-ink); border-radius: 999px; min-height: 2.75rem; padding: 0 1rem; font: inherit; cursor: pointer; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; padding-top: .75rem; border-top: 1px solid var(--att-rule); font-family: var(--att-sans); font-size: .9rem; }
.pager a { text-decoration: none; border: 1px solid var(--att-rule-ui); border-radius: 999px; padding: .6rem 1rem; }
.pager .pager-pos { color: var(--att-ink-3); }
/* Follow / plain pill buttons that follow the theme (Bootstrap's btn-outline-dark is 1.2:1 on the dark paper) */
.att-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .3rem 1rem; border: 1px solid var(--att-ink); border-radius: 999px; background: transparent; color: var(--att-ink); font-family: var(--att-sans); font-size: .85rem; cursor: pointer; text-decoration: none; }
.att-btn:hover { border-color: var(--att-accent); color: var(--att-accent); }
.att-btn[aria-pressed="true"], .att-btn.is-solid { background: var(--att-ink); color: var(--att-paper); }
.att-btn.is-small { min-height: 2.25rem; padding: .2rem .8rem; font-size: .8rem; }
/* the morning email as sent (digests.php): its own light design, framed */
.digest-frame { display: block; width: 100%; max-width: 46rem; height: min(80vh, 60rem); border: 1px solid var(--att-rule-ui); background: #f1ece2; }
.digest-text { white-space: pre-wrap; font-family: var(--att-mono); font-size: .8rem; margin: .75rem 0 0; }
.topic-letters { display: flex; flex-wrap: wrap; gap: .15rem; font-family: var(--att-sans); font-size: .9rem; margin-bottom: .5rem; }
.topic-letters a { min-width: 2.25rem; min-height: 2.25rem; display: inline-grid; place-items: center; text-decoration: none; border: 1px solid var(--att-rule); border-radius: 4px; }
.topic-merge { max-width: 40rem; margin-top: .5rem; }
/* newsroom columns may shrink below their tables' width; the tables scroll inside .table-responsive instead */
.newsroom .row > [class*="col-"], .newsroom .card, .newsroom .card-body { min-width: 0; }
.newsroom #nrSources, .newsroom #nrRuns { min-width: 0; max-width: 100%; }
/* a visually-hidden label inside a scrolled table is absolutely positioned: without this it escapes the scroller
   and widens the whole page on a phone */
.newsroom .table-responsive { position: relative; }

/* ---- public site: footer and the owner's sign-in ------------------------------------------- */
.att-footer { border-top: 1px solid var(--att-rule); padding: 1.25rem 1rem 1.75rem; text-align: center; font-family: var(--att-sans); font-size: .8rem; color: var(--att-ink-3); background: var(--att-paper); }
.att-footer p { margin: 0 auto; max-width: 60rem; }
.att-footer a { color: var(--att-ink-2); }
.att-footer .sep { margin: 0 .35rem; }
.view-flip .att-footer { display: none; }
.login-page { max-width: 26rem; margin: 3rem auto; padding: 0 1rem; }
.login-form .form-control { background: var(--att-paper); color: var(--att-ink); border-color: var(--att-rule-ui); min-height: 2.75rem; }
.login-error { color: var(--att-bad); font-family: var(--att-sans); font-size: .9rem; }

.colophon-tech { color: var(--att-ink-3); font-size: .85rem; }
/* "Information Vampire" is twice as long as the old name: keep it and the menu button on one 56 px line on phones */
@media (max-width: 575.98px) { .att-brand { margin-right: .5rem; } .att-brand-name { font-size: 1.25rem; } }

@media (max-width: 575.98px) { .att-brand .iv-mark { width: 1.9rem; } }

/* The theme switch sits in the bar itself, never inside the collapsed menu: right of the links when the bar is
   expanded, between the name and the menu button when it is not. */
.att-nav-theme { order: 2; margin-left: .9rem; display: flex; align-items: center; }
.att-nav .navbar-collapse { order: 1; }
@media (max-width: 1199.98px) {
  .att-nav-theme { order: 0; margin-left: auto; margin-right: .75rem; }
  .att-nav .att-toggler { order: 1; }
  .att-nav .navbar-collapse { order: 2; }
}
/* Phones: no room for three positions beside the name, so the pill shows the current choice and a tap moves to the next */
@media (max-width: 575.98px) {
  .att-nav-inner { padding-left: 0; padding-right: 0; }
  .att-brand { margin-right: .25rem; gap: .35rem; }
  .att-brand-name { font-size: 1rem; }
  .att-brand .iv-mark { width: 1.6rem; }
  .att-nav-theme { margin-right: .4rem; }
  .theme-switch { grid-template-columns: 2.5rem; }
  .theme-switch::before { inset: .3rem 0; }
  .theme-switch .ts-thumb, .theme-switch .ts-opt[aria-checked="false"] { display: none; }
  .theme-switch .ts-opt[aria-checked="true"] { color: var(--att-ink); }
  .att-toggler { padding: .45rem .65rem; }
}
@media (max-width: 359.98px) { .att-brand .iv-mark { display: none; } }

/* The rail's headings ("The Wire", "Newsroom") stay in view while their list scrolls under them: against the top of
   the rail where the rail scrolls by itself (desktop, Flip), under the 56 px bar where the page scrolls (phones). */
.wire-widget .rail-head, .nr-widget .rail-head { position: sticky; top: 0; z-index: 2; background: var(--att-paper); padding-top: .45rem; }
@media (max-width: 991.98px) { body:not(.view-flip) .wire-widget .rail-head, body:not(.view-flip) .nr-widget .rail-head { top: 56px; } }

/* ---- accounts: sign in, join, reset, your account ------------------------------------------ */
.account-page { max-width: 26rem; margin: 2.5rem auto 3rem; padding: 0 .25rem; }
.account-page.is-wide { max-width: 34rem; margin-top: 1.5rem; }
.account-form { display: grid; gap: .35rem; }
.account-form .form-label { font-family: var(--att-sans); font-size: .85rem; font-weight: 600; margin: .6rem 0 0; color: var(--att-ink); }
.account-form .form-control { background: var(--att-paper); color: var(--att-ink); border: 1px solid var(--att-rule-ui); border-radius: 6px; min-height: 2.75rem; }
.account-form .form-control:focus { border-color: var(--att-ink); box-shadow: 0 0 0 3px var(--att-accent-soft); }
.account-form .att-btn { justify-self: start; margin-top: .9rem; }
.form-hint { font-weight: 400; color: var(--att-ink-3); font-size: .78rem; margin-left: .35rem; }
.form-error, .form-notice { font-family: var(--att-sans); font-size: .9rem; padding: .6rem .8rem; border-left: 3px solid var(--att-bad); background: var(--att-accent-soft); margin: 0 0 .75rem; }
.form-notice { border-left-color: var(--att-ok); background: var(--att-paper-2); }
.form-links { font-family: var(--att-sans); font-size: .88rem; margin-top: 1.25rem; color: var(--att-ink-2); }
.form-links .sep { margin: 0 .35rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.att-btn.is-solid { background: var(--att-ink); color: var(--att-paper); }
.att-btn.is-solid:hover { background: var(--att-accent); border-color: var(--att-accent); color: var(--att-paper); } /* paper, not #fff: the dark theme's accent is a light pink */
.att-btn.is-danger { border-color: var(--att-bad); color: var(--att-bad); }
.att-btn[disabled] { opacity: .5; cursor: not-allowed; }
.account-facts { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.25rem; font-family: var(--att-sans); font-size: .92rem; margin: 0 0 1.5rem; }
.account-facts dt { color: var(--att-ink-3); font-weight: 400; } .account-facts dd { margin: 0; }
.account-block { border-top: 1px solid var(--att-rule); padding: 1rem 0 1.25rem; }
.account-block.is-attention { border: 1px solid var(--att-warn); border-radius: 6px; padding: 1rem; margin-bottom: 1rem; background: var(--att-paper-2); }
.account-block summary { cursor: pointer; font-family: var(--att-sans); font-size: .88rem; color: var(--att-ink-2); }
.badge-owner { font-family: var(--att-sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--att-accent); color: var(--att-accent); border-radius: 999px; padding: .05rem .45rem; margin-left: .35rem; }
.att-account { position: relative; }
.att-account.is-in { color: var(--att-ink) !important; }
.att-account-dot { position: absolute; top: .45rem; left: 1.15rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--att-warn); }

/* ---- bites (votes), Popular, "Most bitten" -------------------------------------------------- */
.bite-btn { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--att-rule-ui); border-radius: 999px; background: transparent; color: var(--att-ink-2); font-family: var(--att-sans); font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; padding: .12rem .6rem .12rem .45rem; min-height: 1.9rem; margin-left: .5rem; cursor: pointer; vertical-align: middle; transition: color .2s, border-color .2s, background-color .2s; }
.bite-btn:hover { border-color: var(--att-accent); color: var(--att-accent); }
.bite-btn[aria-pressed="true"] { background: var(--att-accent); border-color: var(--att-accent); color: #fff; }
[data-bs-theme="dark"] .bite-btn[aria-pressed="true"] { color: var(--att-paper); }
.bite-btn { position: relative; }
.bite-ico { width: 1rem; height: 1rem; overflow: visible; }
.bite-ico path { fill: currentColor; }
/* The bite: the fangs come down, the button fills with red from the top, the count jumps, and blood drips (app.js Social.drip). */
.bite-btn.is-biting .bite-fang { animation: bite-chomp .5s cubic-bezier(.3,1.5,.5,1); transform-box: view-box; transform-origin: 12px 8px; }
.bite-btn.is-biting .bite-fang:last-child { animation-delay: .04s; }
.bite-btn.is-biting { animation: bite-fill .45s ease-out; }
.bite-btn.is-biting .bite-n { display: inline-block; animation: bite-count .5s cubic-bezier(.3,1.6,.5,1) .12s both; }
@keyframes bite-chomp { 0% { transform: translateY(-7px) scaleY(.6); } 45% { transform: translateY(3px) scaleY(1.25); } 70% { transform: translateY(-1px) scaleY(.95); } 100% { transform: none; } }
@keyframes bite-fill { 0% { background-image: linear-gradient(var(--att-accent), var(--att-accent)); background-size: 100% 0; background-repeat: no-repeat; background-color: transparent; } 100% { background-image: linear-gradient(var(--att-accent), var(--att-accent)); background-size: 100% 100%; background-repeat: no-repeat; background-color: transparent; } }
@keyframes bite-count { 0% { transform: translateY(-6px) scale(1.5); } 100% { transform: none; } }
/* a drop: a teardrop that swells at the button's lower edge, hangs for a moment, then falls and thins out */
.bite-drop { position: absolute; top: 100%; left: var(--x, 50%); width: 7px; height: 7px; margin: -3px 0 0 -3px; background: var(--att-accent); border-radius: 0 50% 50% 50%; pointer-events: none; z-index: 3;
  transform: rotate(45deg) scale(0); animation: bite-drip .95s cubic-bezier(.5,0,.9,.6) both; }
@keyframes bite-drip {
  0% { transform: translateY(0) rotate(45deg) scale(0); opacity: 1; }
  30% { transform: translateY(1px) rotate(45deg) scale(var(--s, 1)); opacity: 1; }
  45% { transform: translateY(3px) rotate(45deg) scale(var(--s, 1)); opacity: 1; }
  90% { opacity: .9; }
  100% { transform: translateY(var(--fall, 40px)) rotate(45deg) scale(calc(var(--s, 1) * .55)); opacity: 0; }
}
/* a bitten story keeps one small drop hanging under its button */
.bite-btn[aria-pressed="true"]::after { content: ""; position: absolute; top: 100%; left: 68%; width: 5px; height: 5px; margin-top: -2px; background: var(--att-accent); border-radius: 0 50% 50% 50%; transform: rotate(45deg); }
.bite-btn.is-biting::after { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .bite-btn.is-biting, .bite-btn.is-biting .bite-fang, .bite-btn.is-biting .bite-n { animation: none; } .bite-drop { display: none; } }
@media (pointer: coarse) { .bite-btn { min-height: 2.75rem; padding: .2rem .8rem .2rem .6rem; } }
.range-tabs { display: flex; gap: .25rem; flex-wrap: wrap; margin-top: .75rem; font-family: var(--att-sans); font-size: .85rem; }
.range-tabs a { padding: .4rem .9rem; border: 1px solid var(--att-rule-ui); border-radius: 999px; color: var(--att-ink-2); text-decoration: none; min-height: 2.25rem; display: inline-flex; align-items: center; }
.range-tabs a:hover { border-color: var(--att-ink); color: var(--att-ink); }
.range-tabs a.is-on { background: var(--att-ink); border-color: var(--att-ink); color: var(--att-paper); }
.popular-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 3.5rem; }
.popular-item { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .5rem; padding: 1.25rem 0; border-top: 1px solid var(--att-rule); }
.popular-item:first-child { border-top: 0; padding-top: 0; }
.popular-rank { font-family: var(--att-display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--att-accent); font-variant-numeric: tabular-nums; }
@media (min-width: 992px) { .popular-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .popular-item:nth-child(2) { border-top: 0; padding-top: 0; } }
.bitten-widget { margin-bottom: 1.25rem; }
.bitten { list-style: none; margin: 0; padding: 0; counter-reset: bitten; font-family: var(--att-sans); font-size: .85rem; }
.bitten li { counter-increment: bitten; display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) auto; gap: .4rem; align-items: baseline; padding: .4rem 0; border-top: 1px dotted var(--att-rule); }
.bitten li:first-child { border-top: 0; }
.bitten li::before { content: counter(bitten); font-family: var(--att-display); font-weight: 700; color: var(--att-accent); }
.bitten a { color: var(--att-ink); text-decoration: none; } .bitten a:hover { color: var(--att-accent); }
.bitten-n { font-size: .72rem; font-weight: 700; color: var(--att-ink-3); font-variant-numeric: tabular-nums; }
.bitten-widget .rail-head { position: sticky; top: 0; z-index: 2; background: var(--att-paper); padding-top: .45rem; }
@media print { .bite-btn, .bitten-widget, .range-tabs { display: none !important; } }

/* ---- comments ------------------------------------------------------------------------------ */
.comments { margin-top: 2.5rem; padding-top: 1rem; border-top: 4px double var(--att-rule-strong); font-family: var(--att-sans); }
.cm-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.cm-head .section-label { margin: 0; }
.cm-count { font-family: var(--att-sans); font-variant-caps: normal; letter-spacing: 0; font-size: .78rem; font-weight: 700; color: var(--att-ink-3); margin-left: .3rem; }
.cm-sort { display: inline-flex; border: 1px solid var(--att-rule-ui); border-radius: 999px; overflow: hidden; }
.cm-sort button { border: 0; background: transparent; color: var(--att-ink-2); font: inherit; font-size: .8rem; padding: .25rem .8rem; min-height: 2.1rem; cursor: pointer; }
.cm-sort button.is-on { background: var(--att-ink); color: var(--att-paper); }
.cm-prompt, .cm-empty { font-size: .9rem; color: var(--att-ink-2); background: var(--att-paper-2); border: 1px solid var(--att-rule); border-radius: 6px; padding: .75rem 1rem; }
.cm-empty { background: none; border: 0; padding: .5rem 0; color: var(--att-ink-3); }
.cm-form, .cm-edit-form { margin: 0 0 1.25rem; }
.cm-form.is-reply, .cm-edit-form { margin: .5rem 0 .75rem; }
.cm-form textarea, .cm-edit-form textarea { background: var(--att-paper); color: var(--att-ink); border: 1px solid var(--att-rule-ui); border-radius: 6px; font-family: var(--att-serif); font-size: 1rem; line-height: 1.5; resize: vertical; min-height: 4.5rem; }
.cm-form textarea:focus, .cm-edit-form textarea:focus { border-color: var(--att-ink); box-shadow: 0 0 0 3px var(--att-accent-soft); }
.cm-form-foot { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; margin-top: .45rem; }
.cm-rules { margin-right: auto; font-size: .76rem; color: var(--att-ink-3); }
.cm-list, .cm-replies { list-style: none; margin: 0; padding: 0; }
.cm { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .25rem .6rem; padding: .8rem 0 .2rem; border-top: 1px solid var(--att-rule); }
.cm-list > .cm:first-child { border-top: 0; }
.cm-replies { margin-top: .5rem; border-left: 2px solid var(--att-rule); padding-left: .75rem; }
.cm-replies > .cm { border-top: 1px dotted var(--att-rule); }
.cm-replies > .cm:first-child { border-top: 0; padding-top: .2rem; }
.cm-votes { display: flex; flex-direction: column; align-items: center; gap: .05rem; color: var(--att-ink-3); }
.cm-vote { border: 0; background: none; color: inherit; width: 2rem; height: 1.6rem; border-radius: 4px; cursor: pointer; font-size: .8rem; line-height: 1; }
.cm-vote:hover:not([disabled]) { color: var(--att-accent); background: var(--att-accent-soft); }
.cm-vote[aria-pressed="true"] { color: var(--att-accent); }
.cm-vote[disabled] { opacity: .3; cursor: default; }
.cm-score { font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--att-ink-2); }
.cm-meta { margin: 0 0 .2rem; font-size: .8rem; color: var(--att-ink-3); }
.cm-meta .sep { margin: 0 .2rem; }
.cm-author { font-weight: 700; color: var(--att-ink); text-decoration: none; }
a.cm-author:hover { color: var(--att-accent); }
.cm-author.is-gone { font-weight: 400; font-style: italic; color: var(--att-ink-3); }
.cm-when { color: inherit; text-decoration: none; } .cm-when:hover { text-decoration: underline; }
.cm-held { display: inline-block; margin-left: .4rem; padding: 0 .45rem; border: 1px solid var(--att-warn); border-radius: 999px; color: var(--att-warn); font-size: .72rem; }
.cm-body { font-family: var(--att-serif); font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.cm-body p { margin: 0 0 .55rem; }
.cm-body a { color: var(--att-accent); }
.cm.is-removed > .cm-main > .cm-body { color: var(--att-ink-3); font-style: italic; }
.cm.is-held > .cm-main > .cm-body { opacity: .75; }
.cm-actions { margin: 0 0 .35rem; display: flex; flex-wrap: wrap; gap: .1rem .9rem; }
.cm-actions button { border: 0; background: none; padding: .2rem 0; min-height: 1.75rem; color: var(--att-ink-3); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.cm-actions button:hover { color: var(--att-accent); }
.cm-report-form { font-size: .82rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .25rem 0 .75rem; }
.cm-report-form select { background: var(--att-paper); color: var(--att-ink); border: 1px solid var(--att-rule-ui); border-radius: 6px; min-height: 2.25rem; padding: 0 .4rem; }
.cm.is-target > .cm-main { animation: cm-flash 2.4s ease-out; }
@keyframes cm-flash { 0% { background: var(--att-accent-soft); } 100% { background: transparent; } }
.cm-link { margin-left: .5rem; color: var(--att-ink-3); text-decoration: none; font-family: var(--att-sans); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.cm-link:hover { color: var(--att-accent); }
@media (pointer: coarse) { .cm-vote { height: 2.2rem; } .cm-actions button { min-height: 2.5rem; } }
@media (max-width: 575.98px) { .cm { grid-template-columns: 1.7rem minmax(0, 1fr); gap: .25rem .4rem; } .cm-replies { padding-left: .5rem; } .cm-rules { display: none; } }
@media print { .cm-form, .cm-actions, .cm-votes, .cm-sort, .cm-prompt { display: none !important; } .cm { grid-template-columns: minmax(0, 1fr); } }
/* Newsroom: the community queue */
.nr-queue { list-style: none; margin: 0; padding: 0; }
.nr-queue li { border-top: 1px solid var(--att-rule); padding: .6rem 0; }
.nr-queue li:first-child { border-top: 0; }
.nr-queue .q-body { font-family: var(--att-serif); margin: .2rem 0 .4rem; overflow-wrap: anywhere; }
.nr-queue .q-meta { font-size: .8rem; color: var(--att-ink-3); }
.nr-queue .q-acts { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ---- reader tips ---------------------------------------------------------------------------- */
.tip-form { display: grid; gap: .3rem; max-width: 44rem; margin: 0 0 1.5rem; padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--att-rule); border-radius: 6px; background: var(--att-paper-2); font-family: var(--att-sans); }
.tip-form .form-label { font-size: .85rem; font-weight: 600; margin: .4rem 0 0; }
.tip-form .form-control { background: var(--att-paper); color: var(--att-ink); border: 1px solid var(--att-rule-ui); border-radius: 6px; min-height: 2.6rem; }
.tip-form .att-btn { justify-self: start; margin-top: .7rem; }
.tip-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.tip { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .25rem .75rem; padding: .9rem 0; border-top: 1px solid var(--att-rule); font-family: var(--att-sans); }
.tip-list > .tip:first-child { border-top: 0; }
.tip-title { font-family: var(--att-display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; margin: 0 0 .2rem; }
.tip-list.is-single .tip-title { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.tip-title a { color: var(--att-ink); text-decoration: none; } .tip-title a:hover { color: var(--att-accent); }
.tip-host { font-family: var(--att-sans); font-weight: 400; font-size: .76rem; color: var(--att-ink-3); white-space: nowrap; }
.tip-note { font-family: var(--att-serif); font-style: italic; color: var(--att-ink-2); margin: 0 0 .3rem; }
.tip.is-held { opacity: .8; }
.tip-used { color: var(--att-accent); font-weight: 700; text-decoration: none; }
.tip-wire { color: var(--att-live); font-weight: 600; }
.tipped-by { font-family: var(--att-sans); font-size: .85rem; color: var(--att-ink-2); margin: .75rem 0; }
.tipped-by i { color: var(--att-accent); }
@media print { .tip-form { display: none; } }

/* ---- profiles, the readers page -------------------------------------------------------------- */
.profile-facts { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: .75rem 0 1.25rem; padding: .9rem 0; border-top: 1px solid var(--att-rule); border-bottom: 1px solid var(--att-rule); font-family: var(--att-sans); }
.profile-facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--att-ink-3); font-weight: 600; }
.profile-facts dd { margin: 0; font-family: var(--att-display); font-weight: 700; font-size: 1.5rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.profile-h { margin: 1.75rem 0 .5rem; }
.profile-list { list-style: none; margin: 0; padding: 0; }
.profile-list li { padding: .7rem 0; border-top: 1px solid var(--att-rule); }
.profile-list li:first-child { border-top: 0; }
.profile-list > li > a { font-family: var(--att-display); font-weight: 700; color: var(--att-ink); text-decoration: none; }
.profile-list > li > a:hover { color: var(--att-accent); }
.profile-meta { display: block; margin: 0 0 .25rem; font-family: var(--att-sans); font-size: .8rem; color: var(--att-ink-3); }
.profile-meta a { color: var(--att-ink-2); }
.community-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 3.5rem; }
@media (min-width: 900px) { .community-grid { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); } }
.board { margin-bottom: 1.75rem; }
.board-list { list-style: none; margin: .5rem 0 0; padding: 0; counter-reset: board; font-family: var(--att-sans); }
.board-list li { counter-increment: board; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: .5rem; align-items: baseline; padding: .45rem 0; border-top: 1px dotted var(--att-rule); }
.board-list li:first-child { border-top: 0; }
.board-list li::before { content: counter(board); font-family: var(--att-display); font-weight: 700; color: var(--att-accent); }
.board-pts { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--att-ink-2); }

/* ---- "Continue with Google / GitHub" -------------------------------------------------------- */
.oauth-buttons { display: grid; gap: .55rem; margin: 0 0 1rem; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 2.9rem; padding: .4rem 1rem; border: 1px solid var(--att-rule-ui); border-radius: 6px; background: var(--att-paper); color: var(--att-ink); font-family: var(--att-sans); font-size: .92rem; font-weight: 600; text-decoration: none; transition: border-color .2s, background-color .2s, transform .1s; }
.oauth-btn:hover { border-color: var(--att-ink); background: var(--att-paper-2); color: var(--att-ink); }
.oauth-btn:active { transform: translateY(1px); }
.oauth-btn svg { flex: none; }
.oauth-or { display: flex; align-items: center; gap: .75rem; margin: 0 0 .5rem; font-family: var(--att-sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--att-ink-3); }
.oauth-or::before, .oauth-or::after { content: ""; flex: 1; height: 1px; background: var(--att-rule); }

/* the line under a name field that says whether the name is free */
.name-hint { margin: .15rem 0 0; min-height: 1.2rem; font-family: var(--att-sans); font-size: .8rem; color: var(--att-ink-3); }
.name-hint[data-state="ok"] { color: var(--att-ok); }
.name-hint[data-state="bad"] { color: var(--att-bad); }
.account-form .form-control.is-bad { border-color: var(--att-bad); }

/* ---- the user menu (top right) and avatars --------------------------------------------------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: var(--att-paper-3); }
.avatar.is-initial { background: hsl(var(--h) 45% 38%); color: #fff; font-family: var(--att-display); font-weight: 700; line-height: 1; user-select: none; }
[data-bs-theme="dark"] .avatar.is-initial { background: hsl(var(--h) 40% 46%); }
.att-nav-theme { gap: .6rem; }
.att-user { position: relative; display: flex; }
.att-user-btn { position: relative; border: 0; background: none; padding: .35rem; margin: -.35rem; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.att-user-btn .avatar { box-shadow: 0 0 0 1px var(--att-rule-ui); transition: box-shadow .2s; }
.att-user-btn:hover .avatar, .att-user-btn[aria-expanded="true"] .avatar { box-shadow: 0 0 0 2px var(--att-accent); }
.att-user-btn:focus-visible { outline: 2px solid var(--att-accent); outline-offset: 0; }
.att-user-dot { position: absolute; top: .3rem; right: .3rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--att-warn); border: 2px solid var(--att-paper); }
/* (stated in full: below 1200 px the bar's other menus are flattened into the collapsed list, and this one must not be) */
.att-nav .att-user-menu { min-width: 15rem; margin-top: .55rem !important; padding: .35rem 0; background: var(--att-paper); border: 1px solid var(--att-rule); border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.18); font-family: var(--att-sans); font-size: .88rem; }
.att-nav .att-user-menu .dropdown-item { display: flex; align-items: center; gap: .6rem; padding: .5rem 1rem; color: var(--att-ink); min-height: 2.5rem; }
.att-user-head { display: flex; align-items: center; gap: .7rem; padding: .6rem 1rem .45rem; font-family: var(--att-sans); font-size: .92rem; line-height: 1.25; }
.att-user-head small { color: var(--att-ink-3); font-size: .78rem; }
.att-user-head > span { min-width: 0; overflow-wrap: anywhere; }
.att-user-menu .dropdown-item i { width: 1.1rem; text-align: center; color: var(--att-ink-3); }
.att-user-menu .dropdown-item:hover i { color: var(--att-accent); }
.att-user-menu .dropdown-item:hover, .att-user-menu .dropdown-item:focus { background: var(--att-paper-2); color: var(--att-ink); }
.att-user-menu .dropdown-divider { border-color: var(--att-rule); margin: .3rem 0; }
.att-user-warn { color: var(--att-warn) !important; font-weight: 600; }
.att-signin { font-family: var(--att-sans); font-size: .85rem; font-weight: 600; color: var(--att-ink); text-decoration: none; border: 1px solid var(--att-ink); border-radius: 999px; padding: .3rem .9rem; min-height: 2.25rem; display: inline-flex; align-items: center; white-space: nowrap; }
.att-signin:hover { background: var(--att-ink); color: var(--att-paper); }
.profile-page .hed .avatar { vertical-align: middle; margin-right: .6rem; }
/* phones: the bar holds the name, the theme pill, the picture and the menu button, so the mark gives way first */
@media (max-width: 575.98px) {
  .att-nav-theme { gap: .4rem; }
  .att-signin { padding: .25rem .65rem; font-size: .8rem; min-height: 2rem; }
}
@media (max-width: 429.98px) { .att-nav-inner:has(.att-user, .att-signin) .att-brand .iv-mark { display: none; } }
@media (max-width: 349.98px) { .att-nav-inner:has(.att-user, .att-signin) .theme-switch { display: none; } }

/* ---- moments of joy -------------------------------------------------------------------------
   Small, brief, and always in answer to something the reader did. Every one of them is switched off by
   prefers-reduced-motion at the end of this block. */

/* the sleeper (View::sleepingBat): the bat asleep on an empty page; hover, focus or tap wakes it */
.sleeper { display: flex; align-items: center; gap: 1.1rem; margin: 1.5rem 0; padding: .25rem 0; max-width: 40rem; outline: none; cursor: default; -webkit-tap-highlight-color: transparent; }
.sleeper.is-center { flex-direction: column; text-align: center; margin: 2.5rem auto; gap: .6rem; }
.sleeper-art { position: relative; flex: none; width: 6.5rem; line-height: 0; }
.sleeper-bat { width: 100%; height: auto; overflow: visible; color: var(--att-accent); }
.sl-branch, .sl-feet { fill: none; stroke: var(--att-ink-2); stroke-linecap: round; }
.sl-branch { stroke-width: 1.6; } .sl-feet { stroke-width: 1; }
.sl-body, .sl-wing { fill: currentColor; }
.sl-wing { transform-box: view-box; transition: transform .45s cubic-bezier(.3,1.3,.5,1); }
.sl-wing-l { transform-origin: 28.500px 19px; transform: rotate(-58deg) scale(.5, .92); }
.sl-wing-r { transform-origin: 35.500px 19px; transform: rotate(58deg) scale(.5, .92); }
.sl-eye { fill: var(--att-paper); transform-box: fill-box; transform-origin: center; transform: scaleY(.12); transition: transform .2s; }
.sleeper-bat > g { transform-box: view-box; transform-origin: 32px 21.750px; transform: rotate(180deg); animation: sl-breathe 4s ease-in-out infinite; }
.zzz { position: absolute; left: 62%; top: 62%; font-family: var(--att-display); font-style: italic; font-weight: 700; color: var(--att-ink-3); opacity: 0; animation: sl-zzz 4s ease-in infinite; }
.zzz.z1 { font-size: .8rem; } .zzz.z2 { font-size: 1rem; animation-delay: 1.3s; } .zzz.z3 { font-size: 1.25rem; animation-delay: 2.6s; }
.sleeper:hover .sl-wing-l, .sleeper:focus .sl-wing-l, .sleeper:active .sl-wing-l { transform: rotate(-8deg); }
.sleeper:hover .sl-wing-r, .sleeper:focus .sl-wing-r, .sleeper:active .sl-wing-r { transform: rotate(8deg); }
.sleeper:hover .sl-eye, .sleeper:focus .sl-eye, .sleeper:active .sl-eye { transform: none; }
.sleeper:hover .zzz, .sleeper:focus .zzz, .sleeper:active .zzz { animation: none; opacity: 0; }
.sleeper:hover .sleeper-bat > g, .sleeper:focus .sleeper-bat > g { animation: none; }
.sleeper-text { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.sleeper-line { font-family: var(--att-serif); font-size: 1.12rem; line-height: 1.4; color: var(--att-ink-2); }
.sleeper-more { font-family: var(--att-sans); font-size: .88rem; color: var(--att-ink-2); }
.sleeper.is-small { margin: .75rem 0; gap: .8rem; } .sleeper.is-small .sleeper-art { width: 4.2rem; } .sleeper.is-small .sleeper-line { font-size: .98rem; }
@keyframes sl-breathe { 0%, 100% { transform: rotate(180deg) scale(1); } 50% { transform: rotate(180deg) scale(1.04, .98); } }
@keyframes sl-zzz { 0% { transform: translate(0, 0) rotate(-8deg); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate(1.6rem, -2.6rem) rotate(12deg); opacity: 0; } }

/* the page-load veil: the bat flaps in place where the spinner was (ATT.Veil) */
.nav-veil-bat { width: 3.4rem; height: auto; color: var(--att-accent); overflow: visible; animation: iv-bob .84s ease-in-out infinite; }
.nav-veil-bat .iv-wing-r { animation: iv-beat-r .42s ease-in-out infinite; }
.nav-veil-bat .iv-wing-l { animation: iv-beat-l .42s ease-in-out infinite; }

/* the "N new stories" pill is delivered: the bat swoops in over it, the pill unrolls, the bat leaves (StoryFeed.showPill) */
/* (it lands beside the pill, not above it: the pill sits right under the fixed top bar) */
.new-pill-bat { position: absolute; left: 50%; top: .3rem; width: 2.4rem; margin-left: -8.600rem; color: var(--att-accent); overflow: visible; opacity: 0; pointer-events: none; }
.new-pill.is-delivered .new-pill-bat { animation: pill-swoop 1.7s cubic-bezier(.3,.6,.4,1) both; }
.new-pill.is-delivered .new-pill-bat .iv-wing-r { animation: iv-beat-r .3s ease-in-out infinite; }
.new-pill.is-delivered .new-pill-bat .iv-wing-l { animation: iv-beat-l .3s ease-in-out infinite; }
.new-pill.is-delivered .new-pill-btn, .new-pill.is-delivered .new-pill-x { animation: pill-unroll .5s cubic-bezier(.3,1.3,.5,1) .45s both; }
@keyframes pill-swoop { 0% { transform: translate(-30vw, 5rem) scale(.55) rotate(-18deg); opacity: 0; } 12% { opacity: 1; } 42% { transform: translate(0, 0) scale(1) rotate(0); opacity: 1; } 68% { transform: translate(0, -.2rem) scale(1); opacity: 1; } 100% { transform: translate(34vw, 7rem) scale(.6) rotate(16deg); opacity: 0; } }
@keyframes pill-unroll { 0% { transform: scaleX(.15) translateY(-.4rem); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* nightfall: bats cross the top of the page once when the reader switches to dark (ATT.Joy.theme) */
.sky-fx { position: fixed; inset: 0; z-index: 1085; pointer-events: none; overflow: hidden; }
.sky-bat { position: absolute; left: -4rem; top: var(--y, 14vh); width: calc(2.6rem * var(--s, 1)); color: #d0142c; opacity: 0; animation: sky-cross 1.9s cubic-bezier(.35,.1,.6,.95) both; }
.sky-bat .iv-wing-r { animation: iv-beat-r .26s ease-in-out infinite; }
.sky-bat .iv-wing-l { animation: iv-beat-l .26s ease-in-out infinite; }
.sky-bat .iv-eye { fill: #171613; }
@keyframes sky-cross { 0% { transform: translate(0, 0) rotate(-6deg); opacity: 0; } 12% { opacity: .95; } 50% { transform: translate(55vw, var(--dip, 2vh)) rotate(4deg); opacity: .95; } 88% { opacity: .9; } 100% { transform: translate(calc(100vw + 8rem), calc(var(--dip, 2vh) * -1.5)) rotate(-8deg); opacity: 0; } }
/* …and the moon rises in the switch */
.theme-switch.is-moonrise .ts-opt[data-theme-value="dark"] svg { animation: ts-moonrise .9s cubic-bezier(.2,.8,.3,1); }
@keyframes ts-moonrise { 0% { transform: translateY(.9rem) rotate(-50deg) scale(.6); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
/* sunrise: the bat in the bar covers its eyes for a moment */
.iv-mark.is-flinch { animation: iv-shiver .9s ease-in-out; }
.iv-mark.is-flinch .iv-wing-r { animation: iv-cover-r 1s cubic-bezier(.3,1.2,.5,1) both; }
.iv-mark.is-flinch .iv-wing-l { animation: iv-cover-l 1s cubic-bezier(.3,1.2,.5,1) both; }
.iv-mark.is-flinch .iv-eye { animation: iv-squint 1s ease-in-out both; }
@keyframes iv-cover-r { 0%, 100% { transform: none; } 25%, 75% { transform: rotate(52deg) scale(.62, .9) translate(-4px, -3px); } }
@keyframes iv-cover-l { 0%, 100% { transform: none; } 25%, 75% { transform: rotate(-52deg) scale(.62, .9) translate(4px, -3px); } }
@keyframes iv-squint { 0%, 100% { transform: scaleY(1); } 20%, 80% { transform: scaleY(.1); } }
@keyframes iv-shiver { 0%, 100% { transform: none; } 20% { transform: translateX(-1px) rotate(-3deg); } 40% { transform: translateX(1px) rotate(3deg); } 60% { transform: translateX(-1px) rotate(-2deg); } 80% { transform: translateX(1px); } }

/* the reading vial: a hairline under the top bar that fills as a story is read (ATT.Joy.vial) */
.read-vial { position: fixed; left: 0; right: 0; top: 56px; height: 3px; z-index: 1029; pointer-events: none; background: transparent; }
.read-vial span { display: block; height: 100%; background: var(--att-accent); transform-origin: left center; transform: scaleX(0); transition: transform .12s linear; border-radius: 0 2px 2px 0; }
.read-vial.is-full span { border-radius: 0; }
.view-flip .read-vial { display: none; }
/* "Drained": pressed under a story read to the end */
.drained-stamp { display: inline-flex; align-items: center; gap: .45rem; margin: 1.25rem 0 0; padding: .3rem .8rem .3rem .55rem; border: 2px solid var(--att-accent); border-radius: 6px; color: var(--att-accent); font-family: var(--att-sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-3deg); transform-origin: left center; }
.drained-seal { width: .75rem; height: .75rem; border-radius: 0 50% 50% 50%; background: currentColor; transform: rotate(45deg); opacity: .25; }
.drained-stamp.is-fresh { animation: stamp-press .55s cubic-bezier(.2,1.6,.4,1) both; }
.drained-stamp.is-fresh .drained-seal { animation: seal-empty .9s ease-in .35s both; }
@keyframes stamp-press { 0% { transform: rotate(-12deg) scale(2.2); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(-3deg) scale(1); opacity: 1; } }
@keyframes seal-empty { 0% { opacity: 1; } 100% { opacity: .25; } }
/* a story already drained says so, quietly, on its card */
.story.is-drained .byline::after { content: "drained"; margin-left: .5rem; padding: 0 .4rem; border: 1px solid var(--att-accent); border-radius: 4px; color: var(--att-accent); font-family: var(--att-sans); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; opacity: .8; }
.article.is-drained .byline::after, .variant-page.is-drained .byline::after { content: none; }
@media print { .read-vial, .drained-stamp, .sky-fx { display: none !important; } }

/* the joy card: welcome, "your tip drew blood", karma milestones, Fledgling (ATT.Joy.card) */
.joy-card { position: fixed; top: 68px; right: 1rem; z-index: 1075; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .2rem .8rem; align-items: start; width: min(22rem, calc(100vw - 2rem)); padding: .9rem .7rem .9rem 1rem; background: var(--att-paper); color: var(--att-ink); border: 1px solid var(--att-rule); border-left: 4px solid var(--att-accent); border-radius: 8px; box-shadow: 0 14px 36px rgba(0,0,0,.2); font-family: var(--att-sans); animation: joy-drop .5s cubic-bezier(.2,1.3,.4,1) both; }
.joy-card.is-leaving { animation: joy-leave .26s ease-in both; }
.joy-bat { width: 2.6rem; margin-top: .15rem; color: var(--att-accent); overflow: visible; }
.joy-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; font-size: .86rem; line-height: 1.4; color: var(--att-ink-2); }
.joy-text strong { font-family: var(--att-display); font-size: 1.12rem; line-height: 1.2; color: var(--att-ink); overflow-wrap: anywhere; }
.joy-links { display: flex; flex-wrap: wrap; gap: .3rem .45rem; margin-top: .35rem; }
.joy-links a { border: 1px solid var(--att-rule-ui); border-radius: 999px; padding: .2rem .7rem; min-height: 2rem; display: inline-flex; align-items: center; color: var(--att-ink); text-decoration: none; font-weight: 600; font-size: .8rem; }
.joy-links a:hover { background: var(--att-accent); border-color: var(--att-accent); color: #fff; }
.joy-x { border: 0; background: none; color: var(--att-ink-3); font-size: 1.3rem; line-height: 1; width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer; }
.joy-x:hover { color: var(--att-ink); background: var(--att-paper-2); }
@keyframes joy-drop { 0% { transform: translateY(-1.2rem) scale(.96); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes joy-leave { 100% { transform: translateY(-.8rem); opacity: 0; } }
/* the swarm that rises from the reader's picture when something was earned */
.swarm-fx { position: fixed; inset: 0; z-index: 1086; pointer-events: none; overflow: hidden; }
.swarm-bat { position: absolute; width: calc(1.9rem * var(--s, 1)); color: var(--att-accent); opacity: 0; animation: swarm-rise 2.2s cubic-bezier(.2,.6,.4,1) both; }
.swarm-bat .iv-wing-r { animation: iv-beat-r .24s ease-in-out infinite; }
.swarm-bat .iv-wing-l { animation: iv-beat-l .24s ease-in-out infinite; }
@keyframes swarm-rise { 0% { transform: translate(0, 0) scale(.3); opacity: 0; } 15% { opacity: 1; } 70% { opacity: .9; } 100% { transform: translate(var(--dx, -10vw), var(--dy, 30vh)) scale(1.1) rotate(-10deg); opacity: 0; } }
/* first bites: the checklist in the user menu */
.att-first { padding: .35rem 1rem .5rem; font-family: var(--att-sans); }
.att-first-h { display: flex; justify-content: space-between; align-items: baseline; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--att-accent); margin-bottom: .2rem; }
.att-first-h small { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--att-ink-3); font-size: .74rem; }
.att-first-item { position: relative; display: flex; align-items: center; gap: .55rem; padding: .28rem 0; color: var(--att-ink); text-decoration: none; font-size: .86rem; }
.att-first-item:hover { color: var(--att-accent); }
.att-first-tick { position: relative; flex: none; width: 1rem; height: 1rem; border: 1.5px solid var(--att-rule-ui); border-radius: 50%; }
.att-first-item.is-done { color: var(--att-ink-3); text-decoration: line-through; text-decoration-color: var(--att-rule-ui); }
.att-first-item.is-done .att-first-tick { background: var(--att-accent); border-color: var(--att-accent); }
.att-first-item.is-done .att-first-tick::after { content: ""; position: absolute; left: 50%; top: 100%; width: 5px; height: 5px; margin: -2px 0 0 -2.5px; background: var(--att-accent); border-radius: 0 50% 50% 50%; transform: rotate(45deg); }
.att-first-item.is-fresh .att-first-tick { animation: bite-count .5s cubic-bezier(.3,1.6,.5,1); }
.att-first-item.is-fresh .att-first-tick::after { animation: bite-drip .95s cubic-bezier(.5,0,.9,.6) .2s both; --fall: 14px; }
.att-user-btn.is-pinged .avatar { animation: user-ping .9s ease-out; }
@keyframes user-ping { 0% { box-shadow: 0 0 0 0 var(--att-accent); } 100% { box-shadow: 0 0 0 .9rem transparent; } }
.badge-fledgling { font-family: var(--att-sans); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; border: 1px solid var(--att-live); color: var(--att-live); border-radius: 999px; padding: .1rem .5rem; margin-left: .35rem; }
/* a comment just posted: a wax seal pressed into its corner, which settles into a faint mark */
.cm-main { position: relative; }
.cm-seal { position: absolute; right: .2rem; top: .1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--att-accent); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.25), inset 0 0 0 3px rgba(255,255,255,.18); animation: seal-press .6s cubic-bezier(.2,1.7,.4,1) both; transition: opacity 1s, transform 1s; pointer-events: none; }
.cm-seal-bat { width: 1.5rem; color: var(--att-paper); }
.cm-seal-bat .iv-eye { fill: var(--att-accent); }
.cm-seal.is-set { opacity: .16; transform: scale(.8) rotate(-8deg); box-shadow: none; }
@keyframes seal-press { 0% { transform: scale(2.4) rotate(-25deg); opacity: 0; } 55% { opacity: 1; } 100% { transform: scale(1) rotate(-8deg); opacity: 1; } }
/* first blood: the first comment under a story */
.cm-first { display: inline-flex; align-items: center; gap: .25rem; margin-left: .4rem; padding: 0 .45rem; border-radius: 999px; background: var(--att-accent); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
[data-bs-theme="dark"] .cm-first { color: var(--att-paper); }
.cm-first::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 0 50% 50% 50%; transform: rotate(45deg); }
/* feeding frenzy: a story many readers bit today */
.badge-frenzy { display: inline-flex; align-items: center; gap: .3rem; margin-left: .5rem; padding: .05rem .5rem; border-radius: 999px; background: var(--att-accent); color: #fff; font-family: var(--att-sans); font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
[data-bs-theme="dark"] .badge-frenzy { color: var(--att-paper); }
.badge-frenzy::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 0 50% 50% 50%; transform: rotate(45deg); }
.story.is-frenzy .bite-btn::after { content: ""; position: absolute; top: 100%; left: 68%; width: 5px; height: 5px; margin-top: -2px; background: var(--att-accent); border-radius: 0 50% 50% 50%; transform: rotate(45deg); animation: frenzy-pulse 1.8s ease-in-out infinite; }
@keyframes frenzy-pulse { 0%, 100% { transform: rotate(45deg) scale(1); } 50% { transform: translateY(3px) rotate(45deg) scale(1.5); } }

/* onboarding: "check your inbox" (the bat on a mailbox, the flag goes up) and "you're in" (the bat lands) */
.inbox-notice { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.1rem; padding: .9rem 1rem; background: var(--att-paper-2); border: 1px solid var(--att-rule); border-left: 4px solid var(--att-accent); border-radius: 8px; font-family: var(--att-sans); }
.inbox-art { flex: none; width: 5.2rem; line-height: 0; }
.inbox-art svg { width: 100%; height: auto; overflow: visible; }
.mb-post { fill: var(--att-ink-2); } .mb-box { fill: var(--att-paper); stroke: var(--att-ink); stroke-width: 1.6; } .mb-slot { stroke: var(--att-ink); stroke-width: 2; stroke-linecap: round; }
.mb-letter { fill: #fff; stroke: var(--att-ink-2); stroke-width: 1; animation: mb-drop 1.1s cubic-bezier(.4,0,.6,1) .2s both; }
.mb-flag { fill: var(--att-accent); transform-box: view-box; transform-origin: 75.500px 42px; animation: mb-flag 0.7s cubic-bezier(.3,1.6,.5,1) 1.2s both; }
.mb-bat { fill: var(--att-accent); } .mb-bat .iv-eye { fill: var(--att-paper); }
.mb-bat .iv-wing { transform-box: fill-box; }
.mb-bat .iv-wing-r { transform-origin: 0% 60%; animation: iv-beat-r .32s ease-in-out 1.9s 3; }
.mb-bat .iv-wing-l { transform-origin: 100% 60%; animation: iv-beat-l .32s ease-in-out 1.9s 3; }
@keyframes mb-drop { 0% { transform: translateY(-26px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }
@keyframes mb-flag { 0% { transform: rotate(90deg); } 100% { transform: rotate(0); } }
.inbox-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; font-size: .88rem; line-height: 1.45; color: var(--att-ink-2); }
.inbox-text strong { font-family: var(--att-display); font-size: 1.3rem; line-height: 1.2; color: var(--att-ink); }
.inbox-notice.is-in { border-left-color: var(--att-live); }
.arrived-bat { width: 3.4rem; flex: none; }
.account-check { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; font-family: var(--att-sans); font-size: .92rem; }
.account-check label { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; }
.account-check input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--att-accent); }

/* everything above stands down when the reader asks for less motion */
@media (prefers-reduced-motion: reduce) {
  .sleeper-bat > g, .zzz, .nav-veil-bat, .nav-veil-bat *, .new-pill-bat, .new-pill.is-delivered .new-pill-btn, .new-pill.is-delivered .new-pill-x, .sky-bat, .sky-bat *, .iv-mark.is-flinch, .iv-mark.is-flinch *,
  .drained-stamp.is-fresh, .drained-stamp.is-fresh *, .joy-card, .joy-bat, .joy-bat *, .swarm-bat, .swarm-bat *, .att-first-item.is-fresh *, .att-first-item.is-fresh .att-first-tick::after, .att-user-btn.is-pinged .avatar,
  .cm-seal, .story.is-frenzy .bite-btn::after, .theme-switch.is-moonrise svg, .mb-letter, .mb-flag, .mb-bat *, .arrived-bat, .arrived-bat * { animation: none !important; }
  .mb-letter { display: none; }
  .zzz, .new-pill-bat, .sky-fx, .swarm-fx, .cm-seal { display: none !important; }
  .sl-wing, .sl-eye, .read-vial span { transition: none; }
}
@media print { .joy-card, .swarm-fx, .cm-seal { display: none !important; } }

.nr-refused { display: inline-block; margin: 0 .6rem .2rem 0; padding: 0 .45rem; border: 1px solid var(--att-rule-ui); border-radius: 999px; white-space: nowrap; }

/* ---- above the fold (2026-11-13): a smaller masthead, and what a reader can do right under it --------------- */
.masthead { padding-top: .6rem; }
.iv-mark-lg { width: clamp(2.6rem, 4.5vw, 3.6rem); margin: .5rem auto -.6rem; }
.masthead-title { font-size: clamp(2rem, 5vw, 4rem); margin: .7rem 0 .1rem; }
.masthead-tag { margin-bottom: .45rem; }
.masthead-status { margin-bottom: .65rem; }
.mh-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; margin: 0 0 .85rem; font-family: var(--att-sans); font-size: .85rem; }
.mh-search { position: relative; flex: 0 1 19rem; min-width: 12rem; margin: 0; }
.mh-search i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--att-ink-3); pointer-events: none; }
.mh-search input { width: 100%; min-height: 2.75rem; padding: .4rem 1rem .4rem 2.35rem; border: 1px solid var(--att-rule-ui); border-radius: 999px; background: var(--att-paper); color: var(--att-ink); font: inherit; }
.mh-search input::placeholder { color: var(--att-ink-3); }
.mh-search input:hover { border-color: var(--att-ink-2); }
.mh-search input:focus { outline: 2px solid var(--att-accent); outline-offset: 1px; }
.mh-act { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .3rem .95rem; border: 1px solid var(--att-rule-ui); border-radius: 999px; color: var(--att-ink); text-decoration: none; font-weight: 600; white-space: nowrap; transition: border-color .2s, color .2s, background-color .2s; }
.mh-act i { color: var(--att-ink-3); transition: color .2s; }
.mh-act:hover { border-color: var(--att-ink); color: var(--att-accent); }
.mh-act:hover i { color: var(--att-accent); }
.mh-act:focus-visible { outline: 2px solid var(--att-accent); outline-offset: 2px; }
.mh-act.is-primary { background: var(--att-accent); border-color: var(--att-accent); color: var(--att-paper); }
.mh-act.is-primary i, .mh-act.is-primary:hover i { color: inherit; }
.mh-act.is-primary:hover { background: var(--att-ink); border-color: var(--att-ink); color: var(--att-paper); }
/* sixteen sections: two lines on a wide screen rather than a hidden scroll */
@media (min-width: 768px) { .sections-nav { flex-wrap: wrap; justify-content: center; gap: 0 .85rem; font-size: .88rem; letter-spacing: .06em; } }
@media (max-width: 575.98px) {
  .masthead-title { font-size: 2.1rem; margin-top: .55rem; }
  .masthead-tag { font-size: .9rem; }
  .mh-actions { justify-content: flex-start; gap: .4rem; }
  .mh-search { flex: 1 1 100%; min-width: 0; }
  .mh-act { padding: .25rem .75rem; font-size: .8rem; }
  .mh-act-rss, .mh-act-topics { display: none; }
}
/* story page: share, beside the bite and the discussion link */
.share-btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--att-rule-ui); border-radius: 999px; background: transparent; color: var(--att-ink-2); font-family: var(--att-sans); font-size: .78rem; font-weight: 600; padding: .12rem .7rem; min-height: 1.9rem; margin-left: .5rem; cursor: pointer; vertical-align: middle; transition: color .2s, border-color .2s; }
.share-btn:hover { color: var(--att-accent); border-color: var(--att-accent); }
.share-btn:focus-visible { outline: 2px solid var(--att-accent); outline-offset: 2px; }
@media (pointer: coarse) { .share-btn { min-height: 2.75rem; padding: .2rem .85rem; } }
.story.variant-page .cm-link { display: inline-flex; align-items: center; gap: .3rem; min-height: 1.9rem; vertical-align: middle; }

/* ---- breadcrumbs (View::crumbs, 2026-11-13): the way back, in the slim header of every inner page ------------ */
.masthead-compact.has-crumbs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1.25rem; border-bottom: 1px solid var(--att-rule); padding-bottom: .55rem; }
.masthead-compact.has-crumbs .masthead-status { border-bottom: 0; padding-bottom: 0; margin-left: auto; justify-content: flex-end; color: var(--att-ink-3); }
.crumbs { flex: 1 1 0; min-width: min(100%, 18rem); } /* takes what the status line leaves; the page's own name truncates first */
.crumbs-list { display: flex; align-items: center; flex-wrap: nowrap; gap: 0; margin: 0; padding: 0; list-style: none; font-family: var(--att-sans); font-size: .82rem; line-height: 1.2; min-width: 0; }
.crumb { display: flex; align-items: center; min-width: 0; flex: 0 0 auto; }
.crumb + .crumb::before { content: ""; flex: none; width: .38rem; height: .38rem; margin: 0 .6rem 0 .45rem; border-top: 1.5px solid var(--att-ink-3); border-right: 1.5px solid var(--att-ink-3); transform: rotate(45deg); opacity: .7; }
.crumb-link, .crumb-plain, .crumb-here { display: inline-flex; align-items: center; gap: .4rem; min-height: 2rem; padding: .2rem .45rem; margin: 0 -.45rem; border-radius: 6px; }
.crumb-link { color: var(--att-ink-2); text-decoration: none; transition: color .15s, background-color .15s; }
.crumb-link:hover { color: var(--att-accent); background: var(--att-accent-soft); }
.crumb-link:hover .crumb-text, .crumb-link:hover .crumb-home-text { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.crumb-link:focus-visible { outline: 2px solid var(--att-accent); outline-offset: 1px; }
.crumb-plain { color: var(--att-ink-3); }
.crumb.is-current { flex: 0 1 auto; min-width: 0; }
.crumb-here { color: var(--att-ink); font-weight: 600; min-width: 0; max-width: 100%; }
.crumb-here .crumb-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.crumb-mark { width: 1.35rem; color: var(--att-accent); }
.crumb-link:hover .crumb-mark .iv-wing-r { animation: iv-beat-r .42s ease-in-out infinite; }
.crumb-link:hover .crumb-mark .iv-wing-l { animation: iv-beat-l .42s ease-in-out infinite; }
.crumbs .sec-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--sec); flex: none; }
/* a long trail: the middle steps give way before the page's own name does */
.crumb:not(.crumb-home):not(.is-current) { max-width: 16rem; }
.crumb:not(.crumb-home):not(.is-current) .crumb-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767.98px) {
  .masthead-compact.has-crumbs { display: block; }
  .masthead-compact.has-crumbs .masthead-status { justify-content: flex-start; margin-top: .15rem; font-size: .74rem; }
  /* phones: only the way back and where you are — "‹ Topics  Nvidia" */
  .crumb { display: none; }
  .crumb.is-parent, .crumb.is-current { display: flex; }
  .crumb.is-parent::before { display: none; }
  .crumb.is-parent .crumb-link::before { content: ""; flex: none; width: .45rem; height: .45rem; margin-right: .1rem; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; transform: rotate(45deg); }
  .crumb.is-parent .crumb-link { min-height: 2.75rem; font-weight: 600; color: var(--att-accent); }
  .crumb.is-parent.crumb-home .crumb-mark { display: none; }
  .crumb-link, .crumb-plain, .crumb-here { min-height: 2.75rem; }
  .crumbs-list { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) { .crumb-link:hover .crumb-mark * { animation: none !important; } }
@media print { .crumbs { display: none; } }

/* ---- sticky section headers (Browse, front page; app.js StickyHeads, 2026-11-13) ------------------------------
   Each section's header stays under the top bar while its stories are on screen; the next section's header pushes
   it away (sticky inside its own block). Pinned (.is-stuck), it shrinks to one line on frosted paper with a rule in
   the section's colour. --stick-top is the top bar plus the time-machine bar when that is showing. */
:root { --stick-top: 56px; }
body.view-browse .front .section-block > .section-head {
  position: sticky; top: var(--stick-top); z-index: 6;
  margin: 0 -.75rem .75rem; padding: .45rem .75rem .4rem;
  background: var(--att-paper);
  transition: box-shadow .2s ease, padding .2s ease, background-color .2s ease;
  scroll-margin-top: var(--stick-top);
}
body.view-browse .front .section-block > .section-head.is-stuck {
  flex-wrap: nowrap; padding-top: .55rem; padding-bottom: .5rem;
  background: color-mix(in srgb, var(--att-paper) 92%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 -2px 0 var(--sec, var(--att-accent)), 0 10px 18px -16px rgba(0, 0, 0, .45);
}
body.view-browse .front .section-head.is-stuck .section-label::after { display: none; }
body.view-browse .front .section-head.is-stuck .section-h { flex: none; }
body.view-browse .front .section-head.is-stuck .section-label::before {
  content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .5rem; vertical-align: .08em;
  background: var(--sec, var(--att-accent));
}
body.view-browse .front .section-head.is-stuck .section-desc { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* a way back to the top of the section, shown only while pinned */
.section-top { display: none; flex: none; margin-left: auto; align-self: center; border: 1px solid var(--att-rule-ui); background: transparent; color: var(--att-ink-2);
  font-family: var(--att-sans); font-size: .74rem; font-weight: 600; border-radius: 999px; padding: .15rem .65rem; min-height: 1.9rem; cursor: pointer; white-space: nowrap; }
.section-top:hover { color: var(--att-accent); border-color: var(--att-accent); }
.section-top:focus-visible { outline: 2px solid var(--att-accent); outline-offset: 2px; }
body.view-browse .front .section-head.is-stuck .section-top { display: inline-flex; align-items: center; gap: .3rem; }
@media (max-width: 575.98px) {
  body.view-browse .front .section-block > .section-head { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  body.view-browse .front .section-head.is-stuck .section-desc { display: none; }
}
@media (pointer: coarse) { .section-top { min-height: 2.5rem; padding: .2rem .8rem; } }
@media (prefers-reduced-motion: reduce) { body.view-browse .front .section-block > .section-head { transition: none; } }
@media print { body .front .section-block > .section-head { position: static !important; box-shadow: none !important; } .section-top { display: none !important; } }

/* ---- section icons ---------------------------------------------------------------------------------------
   Every section has an icon in its own colour, drawn from the Font Awesome set the site already loads. CSS only:
   an element that knows its section (data-section, an inline --sec, or a /section/… link) gets --sec-icon and
   --sec-c, and the places a section is named show it: section headings, the Flip dividers, story kickers, the
   Sections menu, the sections bar, crumbs and the cover's "In this edition". Decorative, so read as nothing. */
[data-section="world"], [style*="var(--sec-world)"], .sections-nav a[href$="/section/world"] { --sec-icon: "\f57d"; --sec-c: var(--sec-world); } /* earth-americas */
[data-section="us"], [style*="var(--sec-us)"], .sections-nav a[href$="/section/us"] { --sec-icon: "\f74d"; --sec-c: var(--sec-us); } /* flag-usa */
[data-section="politics"], [style*="var(--sec-politics)"], .sections-nav a[href$="/section/politics"] { --sec-icon: "\f752"; --sec-c: var(--sec-politics); } /* landmark-dome */
[data-section="business"], [style*="var(--sec-business)"], .sections-nav a[href$="/section/business"] { --sec-icon: "\e0e5"; --sec-c: var(--sec-business); } /* chart-line-up */
[data-section="tech"], [style*="var(--sec-tech)"], .sections-nav a[href$="/section/tech"] { --sec-icon: "\f2db"; --sec-c: var(--sec-tech); } /* microchip */
[data-section="labs"], [style*="var(--sec-labs)"], .sections-nav a[href$="/section/labs"] { --sec-icon: "\f0c3"; --sec-c: var(--sec-labs); } /* flask */
[data-section="industry"], [style*="var(--sec-industry)"], .sections-nav a[href$="/section/industry"] { --sec-icon: "\f3b3"; --sec-c: var(--sec-industry); } /* industry-windows */
[data-section="research"], [style*="var(--sec-research)"], .sections-nav a[href$="/section/research"] { --sec-icon: "\e0c6"; --sec-c: var(--sec-research); } /* brain-circuit */
[data-section="opensource"], [style*="var(--sec-opensource)"], .sections-nav a[href$="/section/opensource"] { --sec-icon: "\f126"; --sec-c: var(--sec-opensource); } /* code-branch */
[data-section="tools"], [style*="var(--sec-tools)"], .sections-nav a[href$="/section/tools"] { --sec-icon: "\f7d9"; --sec-c: var(--sec-tools); } /* screwdriver-wrench */
[data-section="policy"], [style*="var(--sec-policy)"], .sections-nav a[href$="/section/policy"] { --sec-icon: "\f24e"; --sec-c: var(--sec-policy); } /* scale-balanced */
[data-section="science"], [style*="var(--sec-science)"], .sections-nav a[href$="/section/science"] { --sec-icon: "\f5d2"; --sec-c: var(--sec-science); } /* atom */
[data-section="health"], [style*="var(--sec-health)"], .sections-nav a[href$="/section/health"] { --sec-icon: "\f21e"; --sec-c: var(--sec-health); } /* heart-pulse */
[data-section="sports"], [style*="var(--sec-sports)"], .sections-nav a[href$="/section/sports"] { --sec-icon: "\f091"; --sec-c: var(--sec-sports); } /* trophy */
[data-section="culture"], [style*="var(--sec-culture)"], .sections-nav a[href$="/section/culture"] { --sec-icon: "\f630"; --sec-c: var(--sec-culture); } /* masks-theater */
[data-section="opinion"], [style*="var(--sec-opinion)"], .sections-nav a[href$="/section/opinion"] { --sec-icon: "\f56b"; --sec-c: var(--sec-opinion); } /* feather-pointed */
[data-section="developing"], [style*="var(--sec-developing)"], .sections-nav a[href$="/section/developing"] { --sec-icon: "\f519"; --sec-c: var(--sec-developing); } /* tower-broadcast */
:is(.section-head .section-label, .section-page .page-title, a.kicker[href*="/section/"], .sec-dot, .cover-toc .toc-sec > span:first-child, .sections-nav a)::before {
  content: var(--sec-icon); display: inline-block; font-family: "Font Awesome 7 Pro"; font-weight: 400; font-style: normal;
  font-variant: normal; font-variant-caps: normal; letter-spacing: 0; line-height: 1; text-transform: none; text-rendering: auto;
  -webkit-font-smoothing: antialiased; color: var(--sec-c, var(--att-accent)); margin-right: .45em; text-decoration: none;
}
@supports (content: "x" / "") { :is(.section-head .section-label, .section-page .page-title, a.kicker[href*="/section/"], .sec-dot, .cover-toc .toc-sec > span:first-child, .sections-nav a)::before { content: var(--sec-icon) / ""; } }
/* headings wear it as a badge: the icon on a soft wash of the section's colour */
:is(.section-head .section-label, .section-page .page-title, .cover-toc .toc-sec > span:first-child)::before {
  display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: .5em; font-size: .82em; vertical-align: middle;
  margin-right: .55em; background: color-mix(in srgb, var(--sec-c, var(--att-accent)) 14%, transparent);
}
.section-page .page-title::before { font-size: .5em; vertical-align: .28em; }
.cover-toc .toc-sec > span:first-child::before { font-size: 1em; letter-spacing: 0; }
/* a Flip divider: the badge stands above the section's name, large */
.view-flip .section-head.divider .section-label::before { display: grid; width: 2em; height: 2em; font-size: .5em; margin: 0 auto .5em; border-radius: 28%; }
/* pinned section heading (Browse): the icon takes the dot's place, without the badge */
body.view-browse .front .section-head.is-stuck .section-label::before { content: var(--sec-icon); display: inline-block; width: auto; height: auto; border-radius: 0; background: none; font-size: .9em; margin-right: .5rem; vertical-align: baseline; }
/* menus and crumbs: the icon instead of the coloured dot */
.att-nav .sec-dot, .crumbs .sec-dot { width: 1.15em; height: auto; border-radius: 0; background: none; text-align: center; }
.sec-dot::before { margin-right: 0; font-size: .92em; }
.sections-nav a::before { font-size: .85em; margin-right: .38em; opacity: .9; }
a.kicker[href*="/section/"]::before { font-size: .78em; margin-right: .4em; vertical-align: .08em; }
.view-flip .story a.kicker[href*="/section/"]::before { color: var(--sec, var(--sec-c, var(--att-accent))); }
@media print { :is(.section-head .section-label, .section-page .page-title, a.kicker[href*="/section/"], .sec-dot, .cover-toc .toc-sec > span:first-child, .sections-nav a)::before { color: inherit; background: none; } }

/* ---- readers page (readers.php, assets/readers.js): the globe, the lists beside it, the owner's usage figures ---- */
.readers-page { max-width: 1100px; margin: 0 auto; }
.rd-stage { position: relative; height: min(72vh, 640px); min-height: 340px; border-radius: 14px; overflow: hidden; margin: 0 0 1.75rem; background: radial-gradient(ellipse at 50% 40%, #1b0c12 0%, #0a0507 60%, #050304 100%); } /* always night, in either theme */
.rd-globe { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; outline-offset: -3px; }
.rd-globe.is-dragging { cursor: grabbing; }
.rd-count { position: absolute; left: 1.1rem; top: .9rem; margin: 0; color: #f3ece2; font-family: var(--att-sans); font-size: .95rem; pointer-events: none; text-shadow: 0 1px 8px #000; }
.rd-count strong { display: block; font-family: var(--att-display); font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1; color: #ff6b80; }
.rd-tip { position: absolute; transform: translate(-50%, calc(-100% - 14px)); margin: 0; padding: .3rem .6rem; border-radius: 6px; background: rgba(15, 8, 10, .92); border: 1px solid rgba(240, 131, 155, .4); color: #f3ece2; font-family: var(--att-sans); font-size: .8rem; white-space: nowrap; pointer-events: none; }
.rd-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem 2rem; margin-bottom: 1.5rem; }
.rd-h { font-family: var(--att-serif); font-variant-caps: all-small-caps; letter-spacing: .1em; font-size: 1rem; font-weight: 700; color: var(--att-accent); margin: 0 0 .6rem; padding-bottom: .3rem; border-bottom: 1px solid var(--att-rule); }
.rd-bars { list-style: none; margin: 0; padding: 0; font-family: var(--att-sans); font-size: .88rem; }
.rd-bars li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(3rem, 1fr) auto; gap: .6rem; align-items: center; padding: .28rem 0; }
.rd-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-bar { height: .5rem; border-radius: 999px; background: linear-gradient(90deg, var(--att-accent) var(--w, 0%), var(--att-rule) var(--w, 0%)); }
.rd-bar-n { min-width: 1.5rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--att-ink-2); }
.rd-stories { list-style: none; margin: 0; padding: 0; }
.rd-stories li { padding: .45rem 0; border-bottom: 1px solid var(--att-rule); font-family: var(--att-serif); line-height: 1.3; }
.rd-stories a, .rd-table a { color: var(--att-ink); text-decoration: none; }
.rd-stories a:hover, .rd-table a:hover { color: var(--att-accent); }
.rd-story-n { display: block; font-family: var(--att-sans); font-size: .75rem; color: var(--att-ink-2); }
.rd-empty, .rd-note { font-family: var(--att-sans); font-size: .85rem; color: var(--att-ink-2); }
.rd-note a { color: inherit; }
.rd-usage { margin-top: 3rem; padding-top: 1.5rem; border-top: 4px double var(--att-rule-strong); }
.rd-usage h3.rd-h { margin-top: 2rem; }
.rd-h-big { font-size: 1.5rem; border-bottom: 0; }
.rd-h-big small { margin-left: .5rem; font-family: var(--att-sans); font-variant-caps: normal; letter-spacing: 0; font-weight: 400; font-size: .8rem; color: var(--att-ink-2); }
.rd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 1rem 0 0; }
.rd-tile { border: 1px solid var(--att-rule); border-radius: 10px; padding: .9rem 1rem; background: var(--att-paper-2); }
.rd-tile-h { margin: 0; font-family: var(--att-sans); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--att-ink-2); }
.rd-tile-n { margin: .25rem 0; font-family: var(--att-display); font-size: 2.3rem; line-height: 1; }
.rd-tile-n span { font-family: var(--att-sans); font-size: .85rem; color: var(--att-ink-2); }
.rd-tile-sub { margin: 0; font-family: var(--att-sans); font-size: .8rem; color: var(--att-ink-2); }
.rd-chart { display: flex; align-items: flex-end; gap: 3px; height: 8rem; padding-top: .5rem; border-bottom: 1px solid var(--att-rule-ui); }
.rd-chart-hours { height: 5rem; }
.rd-chart-bar { flex: 1 1 0; min-width: 2px; height: max(2px, var(--h, 0%)); border-radius: 3px 3px 0 0; background: var(--att-accent); opacity: .85; }
.rd-chart-bar:hover { opacity: 1; }
.rd-chart-ends { display: flex; justify-content: space-between; margin: .3rem 0 0; font-family: var(--att-sans); font-size: .72rem; color: var(--att-ink-3); }
.rd-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-family: var(--att-sans); font-size: .88rem; }
.rd-table th, .rd-table td { padding: .4rem .5rem; border-bottom: 1px solid var(--att-rule); text-align: left; vertical-align: top; }
.rd-table th { font-weight: 600; color: var(--att-ink-2); }
.rd-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rd-cols-4 { margin-top: 2rem; }
.rd-tiles-small { margin-top: 1rem; }
.rd-tiles-small .rd-tile-n { font-size: 1.7rem; }
.rd-usage .rd-cols { margin-top: 1rem; }
.rd-cols-4 h3.rd-h { margin-top: 0; }
/* "N readers here now" opens the readers page */
.here-site a.here-n { color: inherit; text-decoration: underline dotted; text-underline-offset: .2em; }
.here-site a.here-n:hover, .here-site a.here-n:focus-visible { color: var(--att-accent); }
@media print { .rd-stage { display: none; } }

/* ---- breaking-news alerts: the bell's dialog (app.js Alerts) ---- */
.mh-act-alerts { cursor: pointer; font: inherit; }
.mh-act-alerts.is-on i { color: var(--att-accent); }
.alerts-dialog { border: 1px solid var(--att-rule); border-radius: 12px; padding: 0; width: min(34rem, calc(100vw - 2rem)); background: var(--att-paper); color: var(--att-ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.alerts-dialog::backdrop { background: rgba(10, 6, 8, .55); }
.alerts-form { padding: 1.4rem 1.5rem 1.2rem; font-family: var(--att-sans); font-size: .92rem; }
.alerts-form h2 { font-family: var(--att-display); font-size: 1.6rem; letter-spacing: -.02em; margin: 0 0 .4rem; }
.alerts-intro { color: var(--att-ink-2); margin: 0 0 1rem; }
.alerts-row { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--att-rule); border-radius: 8px; margin-bottom: 1rem; cursor: pointer; }
.alerts-row small { display: block; color: var(--att-ink-2); }
.alerts-form fieldset { border: 0; margin: 0 0 .8rem; padding: 0; }
.alerts-form legend { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--att-ink-2); margin-bottom: .5rem; float: none; width: auto; }
.alerts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .45rem .8rem; }
.alerts-grid label { cursor: pointer; white-space: nowrap; }
.alerts-note { min-height: 1.2em; margin: .2rem 0 .8rem; color: var(--att-ink-2); }
.alerts-note.is-error { color: var(--att-accent); }
.alerts-actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.alerts-actions [data-alerts-off] { margin-right: auto; }

/* ---- Flip, the social side (app.js FlipSocial): Share and Listen in the byline, topics / story so far / comments
   under the text, and the More menu above the bottom bar. All of it exists only in Flip. ---- */
body:not(.view-flip) .flip-tools, body:not(.view-flip) .flip-extras, body:not(.view-flip) .flip-more-menu { display: none !important; }
.flip-tools { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-left: .35rem; vertical-align: middle; }
.view-flip .story .byline { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; }
.view-flip .story .byline .flip-tools { margin-left: 0; }
.flip-extras { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--att-rule); }
.flip-extras > * + * { margin-top: 2rem; }
.flip-extras .comments { scroll-margin-top: 1rem; }
.flip-extras .cm-form textarea { background: color-mix(in srgb, var(--att-paper) 82%, transparent); }
.view-flip .story .flip-extras + .more { display: inline-block; margin-top: 2rem; }
.flip-chrome .fc-more { white-space: nowrap; }
.flip-chrome .fc-more .fc-btn-text { display: none; } /* the bar is full: the dots alone, named for screen readers */
.flip-more-menu { position: fixed; right: 1rem; bottom: 4.2rem; z-index: 1042; width: min(22rem, calc(100vw - 2rem)); display: flex; flex-direction: column; gap: .5rem; padding: .9rem; border: 1px solid var(--att-rule); border-radius: 12px; background: var(--att-paper); box-shadow: 0 16px 48px rgba(0, 0, 0, .28); animation: att-rise .2s ease-out; }
.flip-more-menu .mh-search { flex: none; width: 100%; max-width: none; margin: 0 0 .2rem; } /* its flex-basis is a width in the masthead; here the menu is a column */
.flip-more-menu .mh-act { display: flex; justify-content: flex-start; width: 100%; margin: 0; }
.flip-more-menu [hidden] { display: none !important; }
@media (max-width: 575.98px) { .flip-chrome .fc-more .fc-btn-text { display: none; } .flip-more-menu { right: .5rem; bottom: 3.9rem; } }
@media print { .flip-tools, .flip-more-menu { display: none !important; } }

/* ---- admin.php: the owner's desk (tabs, tiles that link, tables with actions). Builds on the .rd-* styles. ---- */
.admin-page { max-width: 1200px; }
.ad-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0 1.75rem; padding-bottom: .9rem; border-bottom: 4px double var(--att-rule-strong); font-family: var(--att-sans); font-size: .88rem; }
.ad-tab { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border: 1px solid var(--att-rule-ui); border-radius: 999px; color: var(--att-ink); text-decoration: none; }
.ad-tab:hover { border-color: var(--att-ink); }
.ad-tab.is-on { background: var(--att-ink); border-color: var(--att-ink); color: var(--att-paper); }
.ad-tiles { margin-bottom: 2.25rem; }
a.ad-tile { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.ad-tile:hover, a.ad-tile:focus-visible { border-color: var(--att-ink); transform: translateY(-1px); }
.rd-tile.is-warn { border-color: var(--att-warn); box-shadow: inset 4px 0 0 var(--att-warn); }
.ad-meter { display: block; margin-top: .45rem; }
.ad-links { list-style: none; margin: 0 0 1rem; padding: 0; font-family: var(--att-sans); font-size: .92rem; }
.ad-links li { display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--att-rule); }
.ad-links a { color: var(--att-ink); font-weight: 600; text-decoration: none; min-width: 13rem; }
.ad-links a:hover { color: var(--att-accent); }
.ad-links span { color: var(--att-ink-2); }
.ad-search { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; margin: 0 0 .9rem; font-family: var(--att-sans); font-size: .88rem; }
.ad-search input[type="search"] { flex: 1 1 18rem; max-width: 30rem; min-height: 2.6rem; padding: .4rem .9rem; border: 1px solid var(--att-rule-ui); border-radius: 999px; background: var(--att-paper); color: var(--att-ink); font: inherit; }
.ad-check { display: inline-flex; align-items: center; gap: .35rem; color: var(--att-ink-2); cursor: pointer; }
.ad-scroll { overflow-x: auto; }
.ad-table td { vertical-align: middle; }
.ad-table tr.is-hidden td { color: var(--att-ink-3); }
.ad-table tr.is-hidden td a { color: var(--att-ink-2); }
.ad-email { font-family: var(--att-mono); font-size: .8rem; word-break: break-all; }
.ad-actions { white-space: nowrap; text-align: right; }
.ad-actions .att-btn { margin: .12rem 0 .12rem .3rem; }
.ad-stories .ad-actions { white-space: normal; min-width: 17rem; }
.ad-stories td:nth-child(2) > a { font-family: var(--att-serif); font-size: 1.02rem; font-weight: 600; }
.att-btn.is-armed { border-color: var(--att-accent); color: var(--att-accent); }
.ad-meta { display: block; margin-top: .15rem; font-size: .78rem; color: var(--att-ink-2); }
.ad-flag { display: inline-block; margin-left: .4rem; padding: 0 .45rem; border: 1px solid var(--att-warn); border-radius: 999px; font-family: var(--att-sans); font-size: .7rem; color: var(--att-warn); white-space: nowrap; }
.ad-flag.is-ok { border-color: var(--att-rule-ui); color: var(--att-ink-2); }
.ad-flag.is-lead { border-color: var(--att-accent); color: var(--att-accent); }
td > .ad-flag:first-child { margin-left: 0; }
.ad-none { color: var(--att-ink-3); }
.ad-pages { display: flex; flex-wrap: wrap; gap: .3rem; margin: 1rem 0; font-family: var(--att-sans); font-size: .85rem; }
.ad-pages a { min-width: 2.2rem; padding: .3rem .5rem; border: 1px solid var(--att-rule-ui); border-radius: 6px; text-align: center; color: var(--att-ink); text-decoration: none; }
.ad-pages a.is-on { background: var(--att-ink); color: var(--att-paper); }
.ad-gap { margin-top: 2.5rem; }
.ad-test { font-size: 1rem; margin: .5rem 0; }
.ad-dialog textarea { width: 100%; margin-bottom: .4rem; }
#adPushNote.is-error { color: var(--att-accent); }
/* the owner's note on a withdrawn story's page */
.admin-flag { margin: 0 0 1.25rem; padding: .6rem .9rem; border: 1px solid var(--att-warn); border-left-width: 4px; background: var(--att-paper-2); font-family: var(--att-sans); font-size: .9rem; }

/* ---- Browse / Flip parity (app.js Parity) ---- */
/* a section's "More in …" as a Flip page of its own, laid out like the section's divider */
.view-flip .more-page { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background-color: color-mix(in srgb, var(--sec, var(--att-paper)) 11%, var(--att-paper)); }
[data-bs-theme="dark"] .view-flip .more-page { background-color: color-mix(in srgb, var(--sec, var(--att-paper)) 13%, var(--att-paper)); }
.more-page::before { content: var(--sec-icon, none); font-family: "Font Awesome 7 Pro"; font-weight: 400; display: grid; place-items: center; width: 2em; height: 2em; margin: 0 auto 1.2rem; border-radius: 28%; font-size: 2.2rem; color: var(--sec-c, var(--att-accent)); background: color-mix(in srgb, var(--sec-c, var(--att-accent)) 14%, transparent); }
.more-count { font-family: var(--att-display); font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; margin: 0; color: var(--sec, var(--att-accent)); }
.more-where { font-size: 1.15rem; color: var(--att-ink-2); margin: .3rem 0 1.6rem; }
.view-flip .more-page .more-in { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.3rem; border: 1px solid var(--att-ink); border-radius: 999px; font-family: var(--att-sans); font-size: .95rem; color: var(--att-ink); text-decoration: none; margin: 0; }
.view-flip .more-page .more-in:hover { border-color: var(--att-accent); color: var(--att-accent); }
.view-flip .more-page .more-in .more-n { display: none; }
/* the link's own words ("More in World · 21 more →") repeat the page above it: in Flip it reads as a button */
.view-flip .more-page .more-in { font-size: 0; }
.view-flip .more-page .more-in::after { content: "Open the section →"; font-size: .95rem; }
/* the footer's links at the foot of Flip's More menu */
.flip-more-links { margin: .4rem 0 0; padding-top: .7rem; border-top: 1px solid var(--att-rule); font-family: var(--att-sans); font-size: .8rem; line-height: 1.9; color: var(--att-ink-2); }
.flip-more-links a { color: var(--att-ink-2); margin-right: .9rem; white-space: nowrap; }
.flip-more-links a:hover { color: var(--att-accent); }
.flip-more-links .install-app[hidden] { display: none; }
/* the bottom bar: a lost connection, and "Now writing…" as something to press */
.fc-conn { color: var(--att-accent); white-space: nowrap; }
#fcWriting[role="button"] { cursor: pointer; }
/* printing from Flip: the paper's name and date, sections in their columns, no comments or page furniture */
@media print {
  body.view-flip .masthead { display: block !important; }
  body.view-flip .front > .zone-features { display: grid !important; }
  body.view-flip .front > .zone-sections, body.view-flip .section-block, body.view-flip .section-stories { display: block !important; }
  .flip-extras, .more-page, .fc-conn { display: none !important; }
}
