/* E-ink theme. Loaded unconditionally when the reader turns e-ink on, or with
 * media="(monochrome)" when the setting is "auto", so the rules live once. */
html[data-palette][data-eink] {
  --p-bg: #FFFFFF; --p-ink: #000000; --p-muted: #333333; --p-accent: #000000; --p-rule: #000000; --p-tint: #FFFFFF;
  --p-band: #FFFFFF; --p-band-fg: #000000; --p-fig: #FFFFFF;
  --p-pat-bg: #FFFFFF; --p-pat-fg: #000000; --p-pat-line: #000000; --p-pat-link: #000000;
  --p-foot-bg: #FFFFFF; --p-foot-fg: #000000; --p-foot-link: #000000;
}
* { transition: none !important; animation: none !important; }
body { font-size: 21px; }
.band { border-bottom: 4px solid #000; }
.band nav a { text-decoration: underline; text-underline-offset: 3px; }
.meta .cat { color: #000; }
.fig { border: 2px solid #000; border-top-width: 6px; }
.fig .n { color: #000; }
.grid .story:not(.lead) .fig { aspect-ratio: auto; }
.story h2 a, .story h3 a, .earlier .h { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pattern .box { border: 2px solid #000; border-top-width: 6px; }
.grid .story + .story, .more-row .story, .row > *, .earlier > a, .archive-list li { border-top-width: 2px; }
.thumb { display: none !important; }
.pager { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-sans); font-size: 0.78em; padding-block: 16px; border-top: 2px solid #000; margin-top: 18px; }
.pager a { text-decoration: underline; }
/* photos are off on e-ink unless the reader turns them on (data-photos="on") */
html:not([data-photos="on"]) .photo { display: none; }
html:not([data-photos="on"]) .photo + .fig-fallback { display: flex; }
.btn { background: #000; color: #fff; }
.notice { border: 2px solid #000; }
/* compact figure panels: big tinted boxes waste a slow-refresh screen */
.fig, .grid .story:not(.lead) .fig, .grid .lead .fig { aspect-ratio: auto !important; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 12px; padding: 8px 12px; }
.fig .n, .grid .story:not(.lead) .fig .n { font-size: 1.8em; }
.fig .u { margin: 0; max-width: none; }
