/*
 * Article body: the one stylesheet for every place an article is read.
 *
 * Published pages (blogs /s/, magazines /m/, Discover /a/) inline it through
 * htmlgen/css.py; the editor and its preview import it from
 * src/assets/article-typography.css. Both renderers (mistune on the server,
 * marked in the app) emit the markup it styles, so what a writer previews is
 * what readers get.
 *
 * Scale: Apple's text styles at the default size (Body 17 pt) on a modular
 * scale of 1.2. Title 3 is 1.2em (20 pt), Title 1 about 1.73em (28 pt),
 * Footnote about 0.83em (13 to 14 pt) and Caption about 0.75em (12 pt).
 * Leading is opened up for long reading.
 *
 * Cascade: size, leading and colour sit on the container and are inherited,
 * so secondary text (footnotes, tables) scales from one place. Element
 * defaults are wrapped in :where() and weigh one class: a component inside
 * the article (a mention, a player, an interview) styles itself with its own
 * class and wins without overrides or !important.
 *
 * Colours come from the theme tokens (theme.py). --theme-link is the accent
 * adjusted until it reads at 4.5:1 on the page background.
 */

.article-content {
  --article-link: var(--theme-link, var(--theme-accent));
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--theme-text);
  overflow-wrap: break-word;
}
.article-content > :first-child { margin-top: 0; }
.article-content > :last-child { margin-bottom: 0; }

/* ── Text ─────────────────────────────────────────────────────────────── */

.article-content :where(p) { margin: 0 0 1em; text-wrap: pretty; }

/* Phone columns hyphenate by the article's own language, so long compounds
   break at a syllable instead of leaving wide gaps. An article whose language
   is unknown carries no lang and is not hyphenated: wrong rules are worse
   than none. */
@media (max-width: 640px) {
  .article-content[lang] :where(p, li) {
    -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3;
  }
}

.article-content :where(h1, h2, h3, h4, h5, h6) {
  /* The blog's heading face; without one the declaration falls back to the
     inherited font (an unset custom property makes it invalid). */
  font-family: var(--font-heading);
  color: var(--theme-text-heading);
  font-weight: 600;
  text-wrap: balance;
  scroll-margin-top: 5rem;
}
.article-content :where(h1) { font-size: 1.728em; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; margin: 1.6em 0 0.5em; }
.article-content :where(h2) { font-size: 1.44em; line-height: 1.25; font-weight: 700; letter-spacing: -0.005em; margin: 1.6em 0 0.5em; }
.article-content :where(h3) { font-size: 1.2em; line-height: 1.35; margin: 1.5em 0 0.4em; }
.article-content :where(h4) { font-size: 1em; line-height: 1.5; margin: 1.5em 0 0.35em; }
.article-content :where(h5, h6) { font-size: 1em; line-height: 1.5; margin: 1.5em 0 0.35em; color: var(--theme-text-muted); }

.article-content :where(strong, b) { font-weight: 600; color: var(--theme-text-heading); }
.article-content :where(del, s) { color: var(--theme-text-muted); }

.article-content :where(a) {
  color: var(--article-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}
.article-content :where(a:hover) { text-decoration-color: currentColor; }
.article-content :where(a:focus-visible) {
  outline: 2px solid var(--article-link);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Section permalinks: a quiet # beside each section heading, always there
   (a control that waits for hover cannot be found on touch or by sight),
   in the muted ink, which holds at least 3:1 on every theme. Under the
   pointer and on keyboard focus it takes the link ink, at full strength,
   with the theme's own focus ring. */
.article-content .heading-anchor {
  /* A 24px target (WCAG 2.5.8), 44px on touch screens; the negative margin
     keeps it from stretching the heading's line. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  margin: -4px 0 -4px 0.2em;
  vertical-align: middle;
  color: var(--theme-text-muted);
  text-decoration: none;
  font-weight: 400;
  opacity: 1;
  transition: color 0.15s;
}
@media (hover: hover) {
  .article-content .heading-anchor:hover { color: var(--article-link); }
}
.article-content .heading-anchor:focus-visible {
  color: var(--article-link);
  opacity: 1;
  outline: 2px solid var(--theme-focus, var(--article-link));
  outline-offset: 2px;
  border-radius: 4px;
}
@media (pointer: coarse) {
  .article-content .heading-anchor { min-width: 44px; min-height: 44px; margin-block: -10px; }
}

.article-content :where(blockquote) {
  margin: 1.5em 0;
  padding-left: 1.25em;
  border-left: 3px solid var(--theme-accent);
  color: var(--theme-text-muted);
  font-style: italic;
}
.article-content :where(blockquote) > :last-child { margin-bottom: 0; }

.article-content :where(ul, ol) { margin: 0 0 1em; padding-left: 1.5em; }
.article-content :where(ul) { list-style: disc; }
.article-content :where(ol) { list-style: decimal; }
.article-content :where(ul ul) { list-style: circle; }
.article-content :where(li) { margin: 0.3em 0; }
.article-content :where(li > p) { margin: 0; }
.article-content :where(li > ul, li > ol) { margin: 0.3em 0 0; }
.article-content :where(li)::marker { color: var(--theme-text-muted); }

/* Task lists: read-only checkboxes in the link colour, which reads on the
   page whatever the accent (a pale yellow accent would leave a 1.6:1 box).
   The tick is cut out of the fill, so it shows the page colour and reads on
   light and dark themes alike. The server marks the item with classes; the
   app's renderer leaves a bare checkbox in the item. */
.article-content :where(li.task-list-item, li:has(> input[type="checkbox"])) { list-style: none; }
.article-content :where(li > input[type="checkbox"]) {
  appearance: none;
  width: 1.05em;
  height: 1.05em;
  margin: 0 0.5em 0 -1.55em;
  vertical-align: -0.15em;
  border: 1.5px solid var(--theme-text-muted);
  border-radius: 0.3em;
  background: var(--theme-bg, #fff);
}
.article-content :where(li > input[type="checkbox"]:checked) {
  --e21-box-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  border-color: var(--article-link);
  background: var(--article-link);
  -webkit-mask: var(--e21-box-tick) center / 80% no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: var(--e21-box-tick) center / 80% no-repeat exclude, linear-gradient(#000 0 0);
}

.article-content :where(hr) { border: 0; border-top: 1px solid var(--theme-border); margin: 2.5em 0; }

/* ── Code ─────────────────────────────────────────────────────────────── */

.article-content :where(code) {
  padding: 0.15em 0.35em;
  border-radius: 0.3em;
  background: var(--theme-inline-code-bg);
  color: var(--theme-inline-code-text);
  font-size: 0.875em;
  overflow-wrap: anywhere;
}
.article-content :where(pre) {
  margin: 1.5em 0;
  padding: 1.1em 1.25em;
  border-radius: 0.5em;
  background: var(--theme-bg-code);
  color: var(--theme-code-text);
  font-size: 0.875em;
  line-height: 1.6;
  overflow-x: auto;
}
.article-content :where(pre code) {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  overflow-wrap: normal;
}

/* ── Media ────────────────────────────────────────────────────────────── */

.article-content :where(img) {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
  border-radius: 0.5em;
}
.article-content :where(video) {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  margin: 1.5em 0;
  border-radius: 0.5em;
  background: #000;
}
.article-content :where(audio) { display: block; width: 100%; margin: 1.5em 0; }
.article-content :where(iframe) {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 1.5em 0;
  border: 0;
  border-radius: 0.5em;
  background: #000;
}

/* ── Tables: scroll sideways inside the column, never widen the page ──── */

.article-content :where(table) {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 1.5em 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9375em;
  line-height: 1.5;
}
.article-content :where(th, td) {
  min-width: 6em;
  padding: 0.55em 0.8em;
  border: 1px solid var(--theme-border);
  text-align: left;
  vertical-align: top;
}
.article-content :where(th) { background: var(--theme-table-header-bg); color: var(--theme-text-heading); font-weight: 600; }
.article-content :where(td > p, th > p) { margin: 0; }

/* ── Footnotes ────────────────────────────────────────────────────────── */

.article-content .footnote-ref {
  font-size: 0.75em;
  line-height: 0;
  vertical-align: super;
  font-weight: 600;
}
.article-content .footnote-ref a {
  padding: 0 0.1em;
  color: var(--article-link);
  text-decoration: none;
  scroll-margin-top: 5rem;
}
.article-content .footnote-ref a::before { content: '['; }
.article-content .footnote-ref a::after { content: ']'; }
.article-content .footnotes {
  margin-top: 3em;
  padding-top: 1.25em;
  border-top: 1px solid var(--theme-border);
  font-size: 0.833em;
  line-height: 1.6;
  color: var(--theme-text-muted);
}
.article-content .footnotes ol { margin: 0; padding-left: 2em; list-style: decimal; }
.article-content .footnotes li { margin: 0.5em 0; padding: 0.1em 0.3em; border-radius: 0.3em; scroll-margin-top: 5rem; }
.article-content .footnotes li::marker { color: var(--article-link); font-weight: 600; }
.article-content .footnotes li:target { background: color-mix(in srgb, var(--theme-accent) 12%, transparent); }
.article-content .footnotes p { display: inline; margin: 0; }
.article-content .footnote-backref { margin-left: 0.3em; color: var(--article-link); text-decoration: none; }

/* ── People: a mention in prose, and a group of contributors ──────────── */

/* A person named in a sentence reads as part of it: body size, semibold, a
   round picture at the height of the capitals. No pill, no extra leading. */
.article-content .e21-mention {
  color: var(--article-link);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.article-content .e21-mention:hover .e21-mention-name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.article-content .e21-mention:focus-visible { outline: 2px solid var(--article-link); outline-offset: 2px; border-radius: 4px; }
.article-content .e21-mention-avatar {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin: 0 0.25em 0 0;
  border-radius: 50%;
  vertical-align: middle;
  object-fit: cover;
  background: var(--theme-bg-subtle);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--theme-text-heading) 10%, transparent);
}

/* Contributors: a grid of people, each a card with picture, name and the
   address they are known by. Cards fill the column on a phone. */
.article-content .e21-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: 0.625rem;
  margin: 0 0 1.5em;
  padding: 0;
  list-style: none;
}
.article-content .e21-people > li { display: flex; min-width: 0; margin: 0; }
.article-content .e21-person {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  min-height: 44px;
  padding: 0.625rem 0.875rem 0.625rem 0.625rem;
  border: 1px solid var(--theme-border);
  border-radius: 0.75rem;
  background: var(--theme-bg-card, var(--theme-bg));
  color: inherit;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}
.article-content .e21-person:hover {
  background: var(--theme-bg-subtle);
  border-color: color-mix(in srgb, var(--theme-text-muted) 40%, var(--theme-border));
}
.article-content .e21-person:focus-visible { outline: 2px solid var(--article-link); outline-offset: 2px; }
.article-content .e21-person-avatar {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  background: var(--theme-bg-subtle);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--theme-text-heading) 10%, transparent);
}
.article-content .e21-person-text { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.article-content .e21-person-name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--theme-text-heading);
  font-size: 0.9375em;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.article-content .e21-person-id {
  overflow: hidden;
  color: var(--theme-text-muted);
  font-size: 0.8125em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* No picture (or not yet): a monogram on a neutral disc, as in Contacts;
   a person silhouette while there is no name either. */
.article-content .e21-avatar--gen {
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--theme-text-muted) 55%, var(--theme-bg)),
    color-mix(in srgb, var(--theme-text-muted) 85%, var(--theme-bg)));
  color: #fff;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1;
}
/* Safari before 16.2 has no color-mix(): without the disc the white
   initials would vanish into a light page. */
@supports not (color: color-mix(in srgb, red, red)) {
  .article-content .e21-avatar--gen { background: var(--theme-text-muted); }
}
.article-content .e21-avatar--gen:empty::before {
  content: '';
  width: 62%;
  height: 62%;
  background: currentColor;
  -webkit-mask: var(--e21-person-glyph) center / contain no-repeat;
  mask: var(--e21-person-glyph) center / contain no-repeat;
}
.article-content {
  --e21-person-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4.5'/%3E%3Cpath d='M3.5 21.5c.8-4.6 4.2-7.5 8.5-7.5s7.7 2.9 8.5 7.5z'/%3E%3C/svg%3E");
}
.article-content .e21-mention-avatar.e21-avatar--gen { width: 2.4em; height: 2.4em; font-size: 0.5em; }
.article-content .e21-person-avatar.e21-avatar--gen { font-size: 0.9375rem; }

/* ── Link groups: two or more links set apart on their own line ───────── */

/* Each link a card: what it is, where it goes, and that it leaves the page. */
.article-content .e21-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  gap: 0.625rem;
  margin: 0 0 1.5em;
  padding: 0;
  list-style: none;
}
.article-content .e21-links > li { display: flex; min-width: 0; margin: 0; }
.article-content .e21-link {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 0.125rem;
  min-width: 0;
  min-height: 44px;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  border: 1px solid var(--theme-border);
  border-radius: 0.75rem;
  background: var(--theme-bg-card, var(--theme-bg));
  color: var(--article-link);
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}
.article-content .e21-link::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 0.875rem;
  height: 0.875rem;
  margin-top: -0.4375rem;
  background: var(--theme-text-muted);
  -webkit-mask: var(--e21-link-glyph) center / contain no-repeat;
  mask: var(--e21-link-glyph) center / contain no-repeat;
  transition: background-color 0.15s, transform 0.15s;
}
.article-content .e21-link[href^="#"]::after { transform: rotate(135deg); }
.article-content .e21-link:hover {
  background: var(--theme-bg-subtle);
  border-color: color-mix(in srgb, var(--article-link) 40%, var(--theme-border));
}
.article-content .e21-link:hover::after { background: var(--article-link); }
.article-content .e21-link:focus-visible { outline: 2px solid var(--article-link); outline-offset: 2px; }
.article-content .e21-link-label { font-size: 0.9375em; font-weight: 600; overflow-wrap: anywhere; }
.article-content .e21-link-host {
  overflow: hidden;
  color: var(--theme-text-muted);
  font-size: 0.8125em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-content {
  --e21-link-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
}

/* ── Editorial blocks ──────────────────────────────────────────────────── */

/* Figures, image groups, linked images, callouts, marker and advertising
   links (md.py `_editorial_blocks`, markdown.js `articleBlocks.js`). Colours
   come from the theme with fallbacks, so the editor and Discover look right
   without a blog's tokens. A page may widen figures and groups beyond the
   text column with --article-bleed and let image rows run to the screen edge
   with --article-gutter (its side padding on phones). */
.article-content {
  --e21-tint: var(--theme-tint, color-mix(in oklab, var(--theme-accent) 7%, var(--theme-bg, #fff)));
  --e21-mark: var(--theme-mark, #f2c879);
  --e21-mark-soft: var(--theme-mark-soft, color-mix(in oklab, var(--e21-mark) 30%, var(--theme-bg, #fff)));
  --e21-mark-ink: color-mix(in oklab, var(--e21-mark) 62%, var(--theme-bg, #fff));
  --e21-on-accent: var(--theme-on-accent, #fff);
  --e21-on-mark: var(--theme-on-mark, #1d1a14);
  --e21-ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  --e21-check-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
/* Safari before 16.2 has no color-mix(), and a colour that holds one (the
   theme's own tint and soft mark too) fails where it is used: callouts would
   lose their surface and marker links the marker that tells them from the
   text. Plain theme colours stand in; the full mark reads under the text. */
@supports not (color: color-mix(in srgb, red, red)) {
  .article-content {
    --e21-tint: var(--theme-bg-subtle, #f4f3ef);
    --e21-mark-soft: var(--theme-bg-subtle, #f4f3ef);
    --e21-mark-ink: var(--e21-mark);
  }
}

/* Figures: an image and its caption. The caption is set smaller and quieter
   than the text, as captions are in Photos and Pages.

   Every picture is shown whole at its own shape: --ar, its pixel size from
   the renderer (or the provisional 3:2, marked data-provisional, until the
   page script knows it). Nothing is cropped: a picture whose real shape
   differs from --ar is shown whole inside its place, on a quiet plate. A
   picture alone is as wide as the column and never taller than
   min(640px, 78svh); a #wide one widens to the bleed, up to min(900px, 85svh).
   The picture's box is the link around it when there is one, so a link's
   flag and focus ring sit on the picture itself. */
.article-content { --e21-vh: 1svh; }
@supports not (height: 1svh) {
  .article-content { --e21-vh: 1vh; }
}
.article-content :where(figure) { margin: 0; }
.article-content .e21-figure {
  --fig-cap: min(640px, 78 * var(--e21-vh));
  --fig-w: min(100%, calc(var(--fig-cap) * var(--ar, 3 / 2)));
  position: relative;
  margin: 2em 0;
}
.article-content .e21-figure > img,
.article-content .e21-figure > :is(.e21-pg-open, .e21-imglink) {
  display: block;
  inline-size: var(--fig-w);
  max-inline-size: 100%;
  margin-inline: auto;
}
/* The corners round by 0.5em on every surface (Discover rounds other media
   by 20px): a larger radius would hide the corners of a small picture, a
   panorama on a phone. */
.article-content .e21-figure img {
  block-size: auto;
  aspect-ratio: var(--ar, 3 / 2);
  margin-block: 0;
  border-radius: 0.5em;
  object-fit: contain;
  background: var(--theme-bg-subtle);
}
.article-content .e21-figure > :is(.e21-pg-open, .e21-imglink) > img { inline-size: 100%; margin: 0; }
.article-content .e21-figure figcaption {
  margin-top: 0.6em;
  color: var(--theme-text-muted);
  font-size: 0.833em;
  line-height: 1.45;
  text-wrap: pretty;
}
.article-content .e21-figure--wide {
  --fig-cap: min(900px, 85 * var(--e21-vh));
  margin-inline: calc(-1 * var(--article-bleed, 0px));
}
.article-content .e21-figure--wide figcaption { padding-inline: var(--article-bleed, 0px); }

/* The picture is the way to its full view: a link to the original without
   script, the viewer with it (photo_viewer.js). */
/* A picture that does not arrive shows its description on its plate: quiet
   text, not a link's colour and underline. */
.article-content .e21-figure img { color: var(--theme-text-muted); }
.article-content .e21-pg-open {
  border-radius: 0.5em;
  color: inherit;
  cursor: zoom-in;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.article-content .e21-pg-open:focus-visible { outline: 2px solid var(--article-link); outline-offset: 3px; }
.article-content .e21-pg-open img { transition: filter 0.2s; }
.article-content .e21-pg-open:hover img { filter: brightness(0.94); }

/* "Vergrößern" for drawings and plans (#wide): a plain button at the end of
   the caption line, so nothing covers the picture. It opens the viewer, so
   it holds its place but shows only once the viewer is there (the page
   script marks the root with data-photo-viewer); without script the picture
   link opens the original. */
.article-content .e21-figure:has(> .e21-pg-zoom) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: start;
}
.article-content .e21-figure:has(> .e21-pg-zoom) > :is(.e21-pg-open, .e21-imglink) { grid-column: 1 / -1; }
.article-content .e21-figure:has(> .e21-pg-zoom) > figcaption { grid-row: 2; grid-column: 1; }
.article-content .e21-pg-zoom {
  grid-row: 2;
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-block-size: 44px;
  margin-top: -4px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--article-link);
  cursor: pointer;
  font: 600 0.8125rem/1 var(--e21-ui-font);
  visibility: hidden;
}
:root[data-photo-viewer] .article-content .e21-pg-zoom { visibility: visible; }
.article-content .e21-figure--wide > .e21-pg-zoom { margin-inline-end: var(--article-bleed, 0px); }
.article-content .e21-pg-zoom:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.article-content .e21-pg-zoom:focus-visible { outline: 2px solid var(--article-link); outline-offset: 2px; border-radius: 6px; }
.article-content .e21-pg-zoom-icon { flex: none; }
@media print {
  .article-content .e21-pg-zoom { display: none; }
}

/* Linked images: the whole picture is the link; a small flag names where it
   leads, so readers can tell before they tap. */
.article-content .e21-imglink {
  position: relative;
  border-radius: 0.5em;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.article-content .e21-imglink img { transition: filter 0.2s; }
.article-content .e21-imglink:hover img { filter: brightness(0.92); }
.article-content .e21-imglink:focus-visible { outline: 2px solid var(--article-link); outline-offset: 3px; }
.article-content .e21-imgflag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 20px);
  height: 28px;
  padding: 0 9px 0 11px;
  border-radius: 999px;
  /* Dark enough for white text at 4.5:1 even over a white picture. */
  background: rgb(20 18 15 / 0.66);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16);
  color: #fff;
  font: 600 0.75rem/1 var(--e21-ui-font);
  white-space: nowrap;
  pointer-events: none;
  transition: background-color 0.2s, color 0.2s;
}
.article-content .e21-imgflag-host { overflow: hidden; text-overflow: ellipsis; }
.article-content .e21-imgflag sup { margin-left: -3px; font-size: 0.8em; line-height: 0; }
.article-content .e21-imgflag-icon { flex: none; }
.article-content .e21-imglink:is(:hover, :focus-visible) .e21-imgflag {
  background: var(--theme-accent);
  color: var(--e21-on-accent);
}

/* Photo groups (docs/publishing-experience.md, "Photo groups"). The engine
   (photo_layout.py and .js) writes the group: its cells in Markdown order,
   each run of two or more similar pictures one .e21-pg-run element around
   its cells, and on every cell the numbers that place it:
   --ar               a picture's own shape, "w/h" from its pixel size
   --rs --rg --rl --rc  its row's sums: ratios, gap term, caption term, the
                      most captions inside one stack
   --r --k --c        the cell's ratio (a stack: 1 / sum(1/ratio)), its
                      inside gaps and inside captions
   --xr --xg --xl     the same sums over the cells before it in the row
   --n --sr --srmax   on a run: its pictures, their sum of ratios, the widest
   A property left out is 0. Only bounded plain numbers ever reach them: the
   renderers pass a size to the engine only when it accepts it.

   Wide columns (600 px and more): a one-column grid, the runs invisible
   (display: contents), each cell in grid row --row. A row is --hr tall (its
   pictures, inside gaps and inside caption lines of its tallest cell), never
   more than the cap, and centred; a cell is r times what the row's height
   leaves for its pictures. */
.article-content .e21-imagegroup {
  --pg-gap: 12px;
  --pg-cap: min(560px, 72 * var(--e21-vh));
  --pg-line: 1.708em;                 /* one caption line: 0.6em margin + 1.45 line, both of 0.833em */
  container: pg / inline-size;
  margin: 2em calc(-1 * var(--article-bleed, 0px));
}
.article-content .e21-imagegroup-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--pg-gap);
}
/* Chromium and WebKit place 12,000 grid rows; Firefox stops at 10,000. A
   group that long (only past the engine's size limit, every picture a row of
   its own) stacks as a column, which gives the same places. */
.article-content .e21-imagegroup-track:has(> :nth-child(9999)) { display: flex; flex-direction: column; }
.article-content .e21-pg-run { display: contents; }
.article-content .e21-imagegroup .e21-figure { --fig-w: 100%; margin: 0; }
.article-content .e21-imagegroup-track .e21-pg-cell {
  --hr: min(var(--pg-cap) + var(--rc, 0) * var(--pg-line),
            (100% - var(--rg, 0) * var(--pg-gap) + var(--rl, 0) * var(--pg-line)) / var(--rs));
  grid-row: var(--row);
  grid-column: 1;
  justify-self: start;
  align-self: start;
  inline-size: calc(var(--r) * (var(--hr) - var(--k, 0) * var(--pg-gap) - var(--c, 0) * var(--pg-line)));
  margin-inline-start: calc((100% - var(--rs) * var(--hr) - var(--rg, 0) * var(--pg-gap) + var(--rl, 0) * var(--pg-line)) / 2
    + var(--xr, 0) * var(--hr) + var(--xg, 0) * var(--pg-gap) - var(--xl, 0) * var(--pg-line));
}
.article-content .e21-pg-stack { display: flex; flex-direction: column; gap: var(--pg-gap); }
/* A #wide picture in a group ("Groß"): a row of its own, shown as a lone
   #wide figure is: the group's full width (already the bleed width, so no
   negative margin), as tall as min(900px, 85svh), its caption and
   "Vergrößern" placed as alone. */
.article-content .e21-imagegroup .e21-figure--wide {
  --pg-cap: min(900px, 85 * var(--e21-vh));
  --fig-w: min(100%, calc(var(--pg-cap) * var(--ar, 3 / 2)));
}
.article-content .e21-imagegroup-track .e21-figure--wide { inline-size: 100%; margin-inline: 0; }
.article-content .e21-imagegroup .e21-figure--wide figcaption { padding-inline: 0; }
.article-content .e21-imagegroup .e21-figure--wide > .e21-pg-zoom { margin-inline-end: 0; }

/* Narrow columns (below 600 px), on every surface: the group shows as its
   runs, never as the wide rows and stacks. A picture outside a run stands
   alone at its size alone: as wide as the column, never taller than the
   cap. A run whose pictures all still show at least 5/8 of that size side
   by side is one row. Every other run is a strip: on a phone reader (below)
   one swipe strip of equal height; in editors and in print its pictures
   stand one under another, each at its size alone. Nothing is ever smaller
   than 5/8 of its size alone. */
@container pg (max-width: 599.98px) {
  .article-content .e21-imagegroup-track {
    --pg-gap: 8px;
    --pg-cap: min(520px, 65 * var(--e21-vh));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--pg-gap);
  }
  .article-content .e21-imagegroup-track .e21-pg-cell { margin-inline-start: 0; align-self: auto; }
  .article-content .e21-pg-stack { display: contents; }
  .article-content .e21-pg-run { display: flex; flex-direction: column; align-items: center; align-self: stretch; gap: var(--pg-gap); }
  .article-content .e21-imagegroup .e21-figure {
    --pw: min(100cqi, calc(var(--pg-cap) * var(--ar, 3 / 2)));
    --fig-w: var(--pw);
    flex: none;
    inline-size: var(--pw);
  }
  /* A narrow picture keeps a readable caption: its figure is at least 8em
     wide (about 19 characters a line), the picture centred above it. */
  .article-content .e21-imagegroup .e21-figure:has(> figcaption) { inline-size: max(var(--pw), min(8em, 100cqi)); }
  .article-content .e21-imagegroup figcaption { -webkit-hyphens: auto; hyphens: auto; }
  .article-content .e21-imagegroup .e21-figure.e21-figure--wide { inline-size: 100cqi; }
  .article-content .e21-pg-run[data-phone="row"] {
    --sh: min(var(--pg-cap), calc((100cqi - (var(--n) - 1) * var(--pg-gap)) / var(--sr)));
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }
  .article-content .e21-pg-run[data-phone="row"] .e21-figure { --pw: calc(var(--sh) * var(--ar, 3 / 2)); }
  .article-content .e21-pg-run[data-phone="row"] .e21-figure:has(> figcaption) { inline-size: var(--pw); }
}

/* Phone readers (screen only; editors, marked data-surface="editor", and
   print keep the strip unrolled): a strip swipes. Its pictures share one
   height, each whole at its own width; the strip is as tall as its widest
   picture is at the column's width, never taller than the cap, and reaches
   the screen edges through the page gutter, so the next picture peeks in.
   Its shapes differ by at most 1.6 times, so no picture shows smaller than
   5/8 of its size alone. Without script it still swipes; photo_groups.js
   adds the dots, the spoken position and the arrow keys. The dots' room (a
   44 px row, 4 px under the strip) is the strip's from the start, and the
   pager stands in it, so dots that come or go move nothing on the page. */
.article-content .e21-pg-pager { display: none; }
@media screen {
  @container pg (max-width: 599.98px) {
    .article-content:not([data-surface="editor"]) .e21-pg-run[data-phone="strip"] {
      --sh: min(var(--pg-cap), calc(100cqi / var(--srmax)));
      flex-direction: row;
      align-items: flex-start;
      align-self: stretch;
      margin-block-end: 48px;
      margin-inline: calc(-1 * var(--article-gutter, 0px));
      padding-inline: var(--article-gutter, 0px);
      scroll-padding-inline: var(--article-gutter, 0px);
      overflow-x: auto;
      overscroll-behavior-x: contain;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
    }
    .article-content:not([data-surface="editor"]) .e21-pg-run[data-phone="strip"]::-webkit-scrollbar { display: none; }
    .article-content:not([data-surface="editor"]) .e21-pg-run[data-phone="strip"]:focus-visible { outline: 2px solid var(--article-link); outline-offset: 2px; border-radius: 4px; }
    .article-content:not([data-surface="editor"]) .e21-pg-run[data-phone="strip"] .e21-figure { --pw: calc(var(--sh) * var(--ar, 3 / 2)); scroll-snap-align: start; }
    .article-content:not([data-surface="editor"]) .e21-pg-pager {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      block-size: 44px;
      margin-block-start: calc(-44px - var(--pg-gap));
    }
    .article-content .e21-pg-pager[hidden] { display: none; }
    /* Each dot is a 44 x 44 px target (Apple's minimum) around the 7 px dot
       it draws; photo_groups.js shows dots only while all fit in a row. */
    .article-content .e21-pg-dot {
      display: grid;
      place-items: center;
      inline-size: 44px;
      block-size: 44px;
      padding: 0;
      border: 0;
      background: none;
      cursor: pointer;
    }
    .article-content .e21-pg-dot::before {
      content: "";
      inline-size: 7px;
      block-size: 7px;
      border-radius: 50%;
      background: var(--theme-text-muted);
      opacity: 0.35;
      transition: opacity 0.2s;
    }
    .article-content .e21-pg-dot[aria-current="true"]::before { opacity: 1; background: var(--theme-text-heading); }
    .article-content .e21-pg-dot:focus-visible { outline: 2px solid var(--article-link); outline-offset: -8px; border-radius: 8px; }
    .article-content .e21-pg-count {
      display: inline-flex;
      align-items: center;
      min-block-size: 44px;
      color: var(--theme-text-muted);
      font: 0.8125rem/1 var(--e21-ui-font);
      font-variant-numeric: tabular-nums;
    }
    .article-content .e21-pg-dot[hidden],
    .article-content .e21-pg-count[hidden] { display: none; }
  }
}
.article-content .e21-pg-sr {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (forced-colors: active) {
  .article-content .e21-pg-dot::before { background: CanvasText; }
  .article-content .e21-pg-dot[aria-current="true"]::before { background: Highlight; }
}
/* Increase Contrast: every dot drawn whole, the current one ringed. */
@media (prefers-contrast: more) {
  .article-content .e21-pg-dot::before { opacity: 1; }
  .article-content .e21-pg-dot[aria-current="true"]::before { outline: 2px solid var(--theme-text-heading); outline-offset: 2px; }
}

/* An article of very many groups (200 and more: the page marks it, and
   photo_groups.js does where a page did not). Thousands of strips that swipe
   cost WebKit seconds for every frame (measured on a phone: 10,000 groups,
   17 s to load and 4 s for each scrolled screen, growing with the square of
   their number). There a group is laid out and painted only near the view,
   and far away it holds a guessed height until its own is known. Such a
   group clips what it paints, so it takes the page gutter (6 px at least,
   for the focus rings) into its box as padding and gives it back as margin:
   its column keeps its width, and a strip still reaches the screen edges.
   Every other article is untouched. */
@media screen {
  .article-content[data-pg-many]:not([data-surface="editor"]) .e21-imagegroup {
    --pg-pad: max(var(--article-gutter, 0px), 6px);
    content-visibility: auto;
    contain-intrinsic-block-size: auto 300px;
    margin: calc(2em - 6px) calc(-1 * var(--article-bleed, 0px) - var(--pg-pad));
    padding: 6px var(--pg-pad);
  }
}

/* Safari 15 has no container queries: the wide rules apply at every width,
   and below a 640 px screen (the blog and Discover give the text 600 px from
   there) the narrow block stands in with widths in %, its strips unrolled.
   Keep in step with the narrow block above. */
@supports not (container-type: inline-size) {
  @media (max-width: 640px) {
    .article-content .e21-imagegroup-track {
      --pg-gap: 8px;
      --pg-cap: min(520px, 65 * var(--e21-vh));
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: var(--pg-gap);
    }
    .article-content .e21-imagegroup-track .e21-pg-cell { margin-inline-start: 0; align-self: auto; }
    .article-content .e21-pg-stack { display: contents; }
    .article-content .e21-pg-run { display: flex; flex-direction: column; align-items: center; align-self: stretch; gap: var(--pg-gap); }
    .article-content .e21-imagegroup .e21-figure {
      --pw: min(100%, calc(var(--pg-cap) * var(--ar, 3 / 2)));
      --fig-w: 100%;
      flex: none;
      inline-size: var(--pw);
    }
    .article-content .e21-imagegroup .e21-figure.e21-figure--wide { inline-size: 100%; }
    .article-content .e21-pg-run[data-phone="row"] { flex-direction: row; align-items: flex-start; justify-content: center; }
    .article-content .e21-pg-run[data-phone="row"] .e21-figure {
      inline-size: min(calc(var(--pg-cap) * var(--ar, 3 / 2)), calc((100% - (var(--n) - 1) * var(--pg-gap)) * var(--ar, 3 / 2) / var(--sr)));
    }
  }
}

/* The full view of a picture (photo_viewer.js): a black backdrop, Close,
   "2 von 4" and the original along the top, the whole caption below, the
   picture whole in between. It covers the page, so it sits outside
   .article-content. */
.e21-pv {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.e21-pv[hidden] { display: none; }
/* Focus rests on the viewer itself after a click on its picture: no ring. */
.e21-pv:focus { outline: none; }
.e21-pv.is-open { opacity: 1; }
.e21-pv-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: max(8px, env(safe-area-inset-top)) 8px 4px;
}
.e21-pv-bar > :last-child { justify-self: end; }
.e21-pv-count { font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums; opacity: 0.9; }
.e21-pv-btn {
  display: inline-grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  cursor: pointer;
}
.e21-pv-btn:hover { background: rgb(255 255 255 / 0.2); }
.e21-pv-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.e21-pv-btn[hidden] { display: none; }
.e21-pv-stage { position: relative; overflow: hidden; touch-action: none; cursor: zoom-in; }
.e21-pv-stage.is-zoomed { cursor: grab; }
.e21-pv-stage.is-panning { cursor: grabbing; }
.e21-pv-img {
  position: absolute;
  top: 0;
  left: 0;
  max-inline-size: none;
  margin: 0;
  border-radius: 0;
  transform-origin: 0 0;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
.e21-pv-img[hidden] { display: none; }
/* The picture's place shows faintly until it arrives. Then it stands on
   white, as on the page its writer made it for: a drawing that lets its
   ground show through would be dark lines on black. */
.e21-pv-img { background: rgb(255 255 255 / 0.07); }
.e21-pv-img.is-arrived { background: #fff; }
.e21-pv-img.is-animated { transition: transform 0.26s cubic-bezier(0.2, 0.7, 0.2, 1); }
.e21-pv-failed {
  position: absolute;
  inset: 50% 20px auto;
  margin: 0;
  transform: translateY(-50%);
  color: rgb(255 255 255 / 0.86);
  font-size: 0.9375rem;
  text-align: center;
}
.e21-pv-failed[hidden] { display: none; }
/* The side buttons lie over the picture: a dark plate with a light rim keeps
   them readable on a bright picture as on a dark one. */
.e21-pv-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgb(0 0 0 / 0.5);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.e21-pv-side:hover { background: rgb(0 0 0 / 0.7); }
.e21-pv-prev { left: 8px; }
.e21-pv-next { right: 8px; }
@media (hover: none) {
  .e21-pv-side { display: none; }
}
.e21-pv-foot { padding: 10px 20px max(16px, env(safe-area-inset-bottom)); text-align: center; }
.e21-pv-caption {
  max-inline-size: 62ch;
  margin: 0 auto;
  color: rgb(255 255 255 / 0.86);
  font-size: 0.9375rem;
  line-height: 1.45;
  text-wrap: pretty;
  /* The picture keeps the screen: a long caption scrolls in a third of it. */
  max-block-size: 30vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  white-space: pre-line;
}
.e21-pv-caption:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
.e21-pv-caption:empty { display: none; }
/* A caption longer than its room (photo_viewer.js makes it a stop for Tab):
   its last lines in view fade out while more follows, and stand clear at
   its end. */
.e21-pv-caption[tabindex]::after {
  content: "";
  position: sticky;
  inset-block-end: 0;
  display: block;
  block-size: 2.4em;
  background: linear-gradient(to bottom, transparent, #000);
  pointer-events: none;
}
/* The post a picture of a media wall belongs to, one step away. */
.e21-pv-post {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 12px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.e21-pv-post:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 8px; }
.e21-pv-post[hidden] { display: none; }
.e21-pv-sr {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (forced-colors: active) {
  .e21-pv { background: Canvas; color: CanvasText; }
  .e21-pv-btn { border: 1px solid ButtonText; }
  .e21-pv-caption[tabindex]::after { background: none; }
}
@media (prefers-reduced-motion: reduce) {
  .e21-pv, .e21-pv-img.is-animated { transition: none; }
}
@media print {
  .e21-pv { display: none; }
}

/* Callouts: a note, a tip, a recommendation and a call to action, each
   recognisable by shape as well as colour. */
.article-content .e21-callout {
  margin: 2em 0;
  padding: 1.25rem 1.25rem 1.125rem;
  border: 0;
  border-radius: 1rem;
  background: var(--e21-tint);
  color: var(--theme-text);
  font-style: normal;
}
.article-content .e21-callout > :last-child { margin-bottom: 0; }
.article-content .e21-callout-title {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  margin: 0 0 0.35em;
  color: var(--theme-text-heading);
  font-family: var(--font-heading);
  font-size: 1.12em;
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}
.article-content .e21-callout-icon { flex: none; font-style: normal; }
.article-content .e21-callout--tip { background: var(--e21-mark-soft); }

.article-content .e21-callout--rec {
  margin-left: 9px;
  border: 2px solid var(--theme-text-heading);
  background: var(--theme-bg-card, var(--theme-bg, #fff));
  box-shadow: -9px 9px 0 0 var(--e21-mark);
}
.article-content .e21-callout--rec .e21-callout-title:has(+ .e21-callout-heading) {
  align-items: center;
  margin-bottom: 0.75em;
  color: var(--theme-text-muted);
  font-family: inherit;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.article-content .e21-callout-heading {
  margin: 0 0 0.6em;
  color: var(--theme-text-heading);
  font-family: var(--font-heading);
  font-size: 1.39em;
  font-weight: 650;
  line-height: 1.2;
  text-wrap: balance;
}
.article-content .e21-callout-heading a {
  position: relative;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(transparent 56%, var(--e21-mark-ink) 56%, var(--e21-mark-ink) 96%, transparent 96%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.article-content .e21-callout-heading a::after {
  /* A finger-sized target without growing the marker under the name. */
  content: '';
  position: absolute;
  inset: -8px -4px;
}
.article-content .e21-checklist { margin: 0 0 1em; padding: 0; list-style: none; }
.article-content .e21-checklist > li { position: relative; margin: 0.45em 0; padding-left: 1.9em; }
.article-content .e21-checklist > li::before {
  content: '';
  position: absolute;
  top: 0.22em;
  left: 0;
  width: 1.15em;
  height: 1.15em;
  background: var(--article-link);
  -webkit-mask: var(--e21-check-glyph) center / contain no-repeat;
  mask: var(--e21-check-glyph) center / contain no-repeat;
}

.article-content .e21-callout-action { margin: 1.25em 0 0; }
.article-content .e21-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 46px;
  padding: 0.5em 1.25em;
  border-radius: 0.75rem;
  background: var(--theme-accent);
  color: var(--e21-on-accent);
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: filter 0.15s;
}
.article-content .e21-button:hover { filter: brightness(1.07); }
.article-content .e21-button:focus-visible { outline: 2px solid var(--article-link); outline-offset: 3px; }
.article-content .e21-button .e21-aff-star { color: inherit; font-size: 0.85em; opacity: 0.85; }

.article-content .e21-callout--cta {
  padding: 1.875rem 1.5rem 1.75rem;
  background: var(--theme-accent);
  color: var(--e21-on-accent);
  text-align: center;
}
.article-content .e21-callout--cta .e21-callout-title { justify-content: center; color: inherit; font-size: 1.35em; }
.article-content .e21-callout--cta p { max-width: 46ch; margin-inline: auto; }
.article-content .e21-callout--cta :where(a:not(.e21-button)) { color: inherit; }
.article-content .e21-callout--cta .e21-button {
  background: var(--e21-mark);
  color: var(--e21-on-mark);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.12);
}
.article-content .e21-callout--cta .e21-button:focus-visible { outline-color: var(--e21-on-accent); }
@media (min-width: 640px) {
  .article-content .e21-callout { padding: 1.625rem 1.875rem 1.375rem; }
  .article-content .e21-callout--cta { padding: 2.25rem 2rem 2rem; }
}

/* Marker links: bold around a link, or every link when the blog chooses the
   marker style (data-links="marker" on the article). */
.article-content .e21-marklink { font-weight: 650; }
.article-content .e21-marklink > a,
.article-content[data-links="marker"] :where(p, li) > a:where(:not([class]), .e21-aff) {
  color: var(--theme-text-heading);
  text-decoration: none;
  background: linear-gradient(transparent 60%, var(--e21-mark-ink) 60%, var(--e21-mark-ink) 94%, transparent 94%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.article-content .e21-marklink > a:hover,
.article-content[data-links="marker"] :where(p, li) > a:where(:not([class]), .e21-aff):hover {
  background: var(--e21-mark-ink);
}

/* Advertising links: a quiet star, explained by the disclosure line. */
.article-content .e21-aff-star {
  margin-left: 1px;
  color: var(--theme-text-muted);
  font-size: 0.66em;
  font-weight: 600;
  line-height: 0;
}
.article-content .e21-disclosure {
  margin-top: 2.5em;
  color: var(--theme-text-muted);
  font-size: 0.833em;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .article-content .heading-anchor,
  .article-content .e21-person,
  .article-content .e21-link,
  .article-content .e21-link::after,
  .article-content .e21-imglink img,
  .article-content .e21-pg-open img,
  .article-content .e21-pg-dot::before,
  .article-content .e21-imgflag,
  .article-content .e21-button { transition: none; }
}


/* ── Gallery ── */
.e21-gallery { margin: 1.5em 0; }
.e21-gallery--masonry { columns: 2; column-gap: 0.75rem; }
.e21-gallery--grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; align-items: start; }
@media (min-width: 768px) {
  .e21-gallery--masonry { columns: 3; }
  .e21-gallery--grid { grid-template-columns: repeat(3, 1fr); }
}
.e21-gal-item { margin: 0 0 0.75rem; break-inside: avoid; }
.e21-gallery--grid .e21-gal-item { margin: 0; }
.e21-gal-item > .e21-pg-open { display: block; overflow: hidden; line-height: 0; }
.article-content .e21-gal-item img {
  margin: 0; display: block; width: 100%; height: auto;
  border-radius: 0.5em;
}
.e21-gallery--grid .e21-gal-item img { aspect-ratio: 1; object-fit: cover; }
.e21-gal-item figcaption {
  font-size: 0.8125rem; color: var(--theme-text-muted);
  margin-top: 0.375rem; padding: 0 0.125rem; line-height: 1.5;
}

/* ── Interview ── */
.e21-interview { margin: 1.5em 0; }
.e21-iv-cast {
  display: flex; flex-wrap: wrap; gap: 0.625rem 1.5rem;
  padding: 0.875rem 1.125rem; margin: 0 0 2em;
  background: var(--theme-bg-subtle); border: 1px solid var(--theme-border);
  border-radius: 0.75em;
}
.e21-iv-part { display: inline-flex; align-items: center; gap: 0.5rem; }
.e21-iv-avatar {
  width: 1.75rem; height: 1.75rem; border-radius: 9999px; flex-shrink: 0;
  /* The speaker's colour as a tint with its own ink, as the reader chips
     (.e21-id-av): the initial reads at 4.5:1 for every hue and theme
     (white on the full colour fell to 2.5:1). */
  background: color-mix(in oklab, var(--iv-color, var(--theme-accent)) 24%, var(--theme-bg-card, var(--theme-bg)));
  color: color-mix(in oklab, var(--iv-color, var(--theme-accent)) 30%, var(--theme-text-heading));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; font-weight: 700; overflow: hidden;
}
.article-content .e21-iv-avatar img {
  width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 9999px;
}
/* Names in heading ink; the rail and the avatar carry the speaker's colour. */
.e21-iv-part-name { font-size: 0.875rem; font-weight: 600; color: var(--theme-text-heading); }
.e21-iv-role { font-size: 0.75rem; color: var(--theme-text-muted); }
.e21-iv-msg { display: flex; gap: 0.875rem; margin: 1.5em 0; }
.e21-iv-rail { width: 3px; border-radius: 9999px; background: var(--iv-color, var(--theme-border)); flex-shrink: 0; }
.e21-iv-body { flex: 1; min-width: 0; }
.e21-iv-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.375rem; }
.e21-iv-name { font-size: 0.875rem; font-weight: 600; color: var(--theme-text-heading); }
.e21-iv-text p { margin: 0.5em 0; line-height: 1.75; }
.e21-iv-text > :first-child, .e21-iv-text p:first-child { margin-top: 0; }
.e21-iv-text > :last-child, .e21-iv-text p:last-child { margin-bottom: 0; }
.e21-iv-media { margin: 1.75em 0; }
.article-content .e21-iv-media img, .article-content .e21-iv-media video,
.article-content .e21-iv-media iframe, .article-content .e21-iv-media audio { margin: 0; }
.e21-iv-media figcaption {
  font-size: 0.8125rem; color: var(--theme-text-muted); font-style: italic;
  margin-top: 0.5rem;
}
.article-content a.e21-iv-link {
  display: block; padding: 0.75rem 1rem; margin: 1.5em 0;
  border: 1px solid var(--theme-border); border-radius: 0.625em;
  background: var(--theme-bg-subtle); text-decoration: none;
}
@media (hover:hover){.article-content a.e21-iv-link:hover{ border-color: var(--theme-accent); }}
.e21-iv-link-title { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--theme-text-heading); }
.e21-iv-link-url {
  display: block; font-size: 0.75rem; color: var(--theme-text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 480px) {
  .e21-iv-msg { gap: 0.625rem; }
  .e21-iv-cast { gap: 0.5rem 1rem; padding: 0.75rem 0.875rem; }
}

/* ── Interview layouts ──
   One shared markup (.e21-iv-msg/.e21-iv-rail/.e21-iv-body/.e21-iv-head)
   for every layout: see structured_content.py's INTERVIEW_LAYOUTS note.
   'thread' is the base style above; the rest restyle it under the
   e21-iv--<layout> class the section carries. */

/* Bubbles: two-sided chat, host/moderator right (e21-iv-msg--right). */
.e21-iv--bubbles .e21-iv-rail { display: none; }
.e21-iv--bubbles .e21-iv-msg--right { flex-direction: row-reverse; justify-content: flex-end; }
.e21-iv--bubbles .e21-iv-body { flex: 0 1 auto; max-width: 75%; }
.e21-iv--bubbles .e21-iv-head { margin-bottom: 0.25rem; }
.e21-iv--bubbles .e21-iv-msg--right .e21-iv-head { flex-direction: row-reverse; }
.e21-iv--bubbles .e21-iv-msg--right .e21-iv-name,
.e21-iv--bubbles .e21-iv-msg--right .e21-iv-role { text-align: right; }
.e21-iv--bubbles .e21-iv-text {
  background: color-mix(in srgb, var(--iv-color) 10%, var(--theme-bg));
  border: 1px solid color-mix(in srgb, var(--iv-color) 35%, transparent);
  border-radius: 1rem; padding: 0.625rem 0.875rem;
}
.e21-iv--bubbles .e21-iv-msg--left .e21-iv-text { border-bottom-left-radius: 0.25rem; }
.e21-iv--bubbles .e21-iv-msg--right .e21-iv-text { border-bottom-right-radius: 0.25rem; }
.e21-iv--bubbles .e21-iv-msg--cont .e21-iv-text { border-bottom-left-radius: 1rem; border-bottom-right-radius: 1rem; }
.e21-iv--bubbles .e21-iv-msg--left.e21-iv-msg--cont .e21-iv-text { border-bottom-left-radius: 0.25rem; }
.e21-iv--bubbles .e21-iv-msg--right.e21-iv-msg--cont .e21-iv-text { border-bottom-right-radius: 0.25rem; }

/* Panel: compact inline rows, no rail: reads well with several speakers. */
.e21-iv--panel .e21-iv-msg { gap: 0.5rem; margin: 0.5em 0; }
.e21-iv--panel .e21-iv-rail { display: none; }
.e21-iv--panel .e21-iv-avatar { width: 1.25rem; height: 1.25rem; font-size: 0.5625rem; }
.e21-iv--panel .e21-iv-head { margin-bottom: 0.125rem; }
.e21-iv--panel .e21-iv-text p { margin: 0.25em 0; }

/* Editorial: print-magazine Q&A: bold name/role heading, a rule, no avatars. */
.e21-iv--editorial .e21-iv-rail, .e21-iv--editorial .e21-iv-avatar { display: none; }
.e21-iv--editorial .e21-iv-msg { margin: 0; padding: 1.25em 0; border-top: 1px solid var(--theme-border); }
.e21-iv--editorial .e21-iv-msg--cont { padding-top: 0; border-top: none; }
.e21-iv--editorial .e21-iv-role { text-transform: uppercase; letter-spacing: 0.05em; }

@media (max-width: 480px) {
  .e21-iv--bubbles .e21-iv-body { max-width: 85%; }
}

/* ── Podcast (Podcasting 2.0 episode) ── */
.e21-podcast { margin: 0 0 1.5em; }
.e21-audio-reference { margin: 1.5em 0; padding: 1rem; border: 1px solid var(--theme-border); border-radius: .75rem; }
.e21-audio-reference-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.e21-audio-reference-head img { width: 4rem; height: 4rem; object-fit: cover; border-radius: .5rem; margin: 0; }
.e21-audio-reference-head p { margin: 0; font-size: .75rem; color: var(--theme-text-muted); }
.e21-audio-reference-head a { font-weight: 600; overflow-wrap: anywhere; }
.e21-audio-original { display: inline-flex; min-height: 44px; align-items: center; }
.e21-pod-player {
  display: flex; gap: 0.875rem; align-items: flex-start;
  padding: 0.875rem 0.9375rem; margin: 0 0 1.25em;
  border: 1px solid var(--theme-border); border-radius: 12px;
  background: var(--theme-bg-subtle);
}
.e21-pod-art {
  width: 3.5rem; height: 3.5rem; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: radial-gradient(120% 140% at 80% -10%, rgba(247,147,26,0.45), transparent 60%),
              linear-gradient(150deg, #1c2633, #10151d);
}
.e21-pod-art svg { width: 1.5rem; height: 1.5rem; }
.e21-pod-main { flex: 1; min-width: 0; }
.e21-pod-kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem;
  font-size: 0.71875rem; color: var(--theme-text-muted); margin-bottom: 0.5rem;
}
.e21-pod-kicker-label {
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
  color: var(--theme-accent); font-size: 0.65625rem;
}
.e21-pod-kicker-sep { opacity: 0.6; }
.e21-podcast .e21-pod-player audio { margin: 0; }
.e21-pod-ui { display: flex; align-items: center; gap: 0.75rem; }
.e21-podcast [hidden] { display: none !important; }
.e21-pod-play {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  border:none;cursor:pointer;background:var(--theme-text-heading);color:var(--theme-bg-card);
  display: flex; align-items: center; justify-content: center; padding: 0;
}
@media (hover:hover){.e21-pod-play:hover{ background:var(--theme-text-heading);opacity:.9; }}
.e21-pod-play svg { width: 1.0625rem; height: 1.0625rem; margin-left: 1px; }
.e21-pod-track {
  flex: 1; min-width:44px;height:44px;border-radius:3px;background:linear-gradient(var(--theme-border),var(--theme-border)) center/100% 5px no-repeat;
  position: relative; cursor: pointer; touch-action: none;
}
.e21-pod-track:focus-visible { outline: 2px solid var(--theme-focus, var(--theme-accent)); outline-offset: 4px; }
.e21-pod-chapter-mark { position:absolute;top:50%;width:2px;height:10px;margin-top:-5px;background:var(--theme-text);opacity:.55;pointer-events:none; }
.e21-pod-listening-tools { display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin-top:8px;font-size:13px; }
.e21-pod-listening-tools button,.e21-pod-listening-tools select { box-sizing:border-box;height:44px;min-height:44px;min-width:44px;padding:8px 10px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-bg-card);color:var(--theme-text);font:inherit; }
.e21-pod-listening-tools label { display:flex;align-items:center;flex-wrap:wrap;gap:8px; }
.e21-pod-listening-tools :focus-visible { outline:2px solid var(--theme-focus, var(--theme-accent));outline-offset:3px; }
.e21-pod-fill {
  position:absolute;left:0;top:calc(50% - 2.5px);height:5px;width:0;
  background: var(--theme-accent); border-radius: 3px;
}
.e21-pod-knob {
  position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%);
  width: 0.8125rem; height: 0.8125rem; border-radius: 50%;
  background: var(--theme-accent); box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.e21-pod-time {
  font-size: 0.75rem; color: var(--theme-text-muted); flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.e21-pod-speed {
  min-width:44px;min-height:44px;flex-shrink:0;white-space:nowrap;font-variant-numeric:tabular-nums;border:1px solid var(--theme-border);border-radius:12px;padding:4px;
  background: none; cursor: pointer; font-size: 0.6875rem; color: var(--theme-text-muted);
}
@media(max-width:600px){.e21-pod-ui{display:grid;grid-template-columns:44px minmax(44px,1fr) 44px;gap:6px 10px}.e21-pod-time{grid-row:2;grid-column:1/-1;text-align:center}.e21-pod-speed{grid-column:3;grid-row:1}.e21-pod-listening-tools{align-items:stretch;gap:8px}.e21-pod-listening-tools label{flex:1 1 140px}.e21-pod-listening-tools select{max-width:100%}}
.e21-pod-now {
  font-size: 0.71875rem; color: var(--theme-text-muted); margin-top: 0.5625rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.e21-pod-block {
  border: 1px solid var(--theme-border); border-radius: 12px;
  margin: 0 0 1.25em; background: var(--theme-bg-card); overflow: hidden;
}
.e21-pod-block > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.625rem;
  padding: 0.8125rem 1rem; font-weight: 600; font-size: 0.95rem;
  color: var(--theme-text-heading);
}
.e21-pod-block > summary::-webkit-details-marker { display: none; }
.e21-pod-block-ic { color: var(--theme-accent); display: flex; }
.e21-pod-block-ic svg { width: 1.0625rem; height: 1.0625rem; }
.e21-pod-count { font-size: 0.75rem; font-weight: 400; color: var(--theme-text-muted); }
.e21-pod-chev { margin-left: auto; color: var(--theme-text-muted); transition: transform 0.2s; display: flex; }
.e21-pod-chev svg { width: 1.125rem; height: 1.125rem; }
.e21-pod-block[open] > summary .e21-pod-chev { transform: rotate(180deg); }
.e21-pod-chlist { list-style: none; margin: 0; padding: 0.125rem 0.5rem 0.5rem; }
.e21-pod-chap {
  display: flex; gap: 0.875rem; align-items: baseline; width: 100%;
  padding: 0.5625rem 0.5rem; border: none; border-radius: 8px; background: none;
  cursor: pointer; text-align: left; font: inherit; color: var(--theme-text);
  font-size: 0.92rem;
}
 .e21-pod-chap.is-current{ background: var(--theme-bg-subtle); }

@media (hover:hover){.e21-pod-chap:hover{ background: var(--theme-bg-subtle); }}
.e21-pod-chap.is-current .e21-pod-chtitle { font-weight: 600; color: var(--theme-text-heading); }
.e21-pod-ts {
  color: var(--theme-accent); font-size: 0.78125rem; flex-shrink: 0;
  font-variant-numeric: tabular-nums; min-width: 2.875rem;
  background: none; border: none; cursor: pointer; padding: 0; font-family: inherit;
}
.e21-pod-v4v {
  border: 1px solid var(--theme-border); border-radius: 12px;
  margin: 0 0 1.25em; padding: 1.125rem 1.125rem 1rem;
  background: var(--theme-bg-subtle);
}
.e21-pod-v4v-head { display: flex; align-items: center; gap: 0.6875rem; margin-bottom: 0.875rem; }
.e21-pod-v4v-bolt {
  width: 2.125rem; height: 2.125rem; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--theme-accent); color: #0e0a07;
}
.e21-pod-v4v-bolt svg { width: 1.1875rem; height: 1.1875rem; }
.e21-pod-v4v-head h4 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--theme-text-heading); }
.e21-pod-v4v-head p { margin: 0.125rem 0 0; font-size: 0.78125rem; color: var(--theme-text-muted); }
.e21-pod-splitbar { display: flex; height: 8px; border-radius: 5px; overflow: hidden; margin: 0 0 0.875rem; gap: 2px; }
.e21-pod-splitbar i { display: block; height: 100%; background: var(--theme-accent); border-radius: 2px; }
.e21-pod-rcpt { display: flex; align-items: center; gap: 0.625rem; padding: 0.375rem 0; font-size: 0.9rem; }
.e21-pod-rcpt + .e21-pod-rcpt { border-top: 1px solid var(--theme-border); }
.e21-pod-sw { width: 9px; height: 9px; border-radius: 3px; background: var(--theme-accent); flex-shrink: 0; }
.e21-pod-rcpt-name { color: var(--theme-text-heading); font-weight: 500; }
.e21-pod-rcpt-pc {
  margin-left: auto; color: var(--theme-accent); font-weight: 600;
  font-size: 0.9rem; font-variant-numeric: tabular-nums;
}
.e21-pod-boost-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.e21-pod-wallet { min-height: 44px; max-width: 100%; border: 1px solid var(--border, #ddd); border-radius: 6px; background: var(--bg, white); color: inherit; padding: 0 0.5rem; }
.e21-pod-boost-row > label { max-width: 100%; }
.e21-pod-check-payment { min-height: 44px; border: 1px solid var(--border, #ddd); border-radius: 6px; padding: 0 0.75rem; background: transparent; color: inherit; cursor: pointer; }
.e21-pod-payment-history { margin-top: 0.75rem; font-size: 0.875rem; overflow-wrap: anywhere; }
.e21-pod-payment-history summary { min-height: 44px; padding: 0.5rem 0; cursor: pointer; }
.e21-pod-payment-history li { margin-top: 0.75rem; }
.e21-pod-message, .e21-pod-sender {
  padding: 0.5rem 0.625rem; border: 1px solid var(--theme-border);
  border-radius: 9px; background: var(--theme-bg-card); color: var(--theme-text);
  font: inherit; font-size: 0.875rem;
}
.e21-pod-message { display: block; width: 100%; margin-top: 0.9375rem; }
.e21-pod-sender { flex: 1; min-width: 7rem; }
.e21-pod-message::placeholder, .e21-pod-sender::placeholder { color: var(--theme-text-muted); }
.e21-pod-amount {
  width: 6.5rem; padding: 0.5rem 0.625rem; border: 1px solid var(--theme-border);
  border-radius: 9px; background: var(--theme-bg-card); color: var(--theme-text);
  font: inherit; font-variant-numeric: tabular-nums;
}
.e21-pod-amount-unit { font-size: 0.78125rem; color: var(--theme-text-muted); }
.e21-pod-boost {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-left: auto;
  border: none; cursor: pointer; background: var(--theme-accent); color: #0e0a07;
  font-weight: 700; font-size: 0.9rem; padding: 0.625rem 1rem; border-radius: 9px;
  font-family: inherit;
}
@media (hover:hover){.e21-pod-boost:hover{ background: var(--theme-accent-hover); }}
.e21-pod-boost:disabled { opacity: 0.6; cursor: default; }
.e21-pod-boost svg { width: 1rem; height: 1rem; }
.e21-pod-boost-note { margin-top: 0.625rem; font-size: 0.78125rem; color: var(--theme-text-muted); overflow-wrap: anywhere; }
/* Transcript tools share the reader's native document scroll; paging bounds DOM. */
.e21-pod-txbody { padding: .25rem 1rem 1rem; font-size: .94rem; overflow-wrap: anywhere; }
.e21-pod-txbody a { color: var(--theme-accent-text, var(--theme-text)); min-height: 44px; display: inline-flex; align-items: center; }
.e21-pod-txbody button { min-width:44px; min-height:44px; font:inherit; color:var(--theme-text); background:transparent; border:0; border-radius:10px; padding:8px; cursor:pointer; }
.e21-pod-txbody button:disabled { opacity:.45; cursor:default; }
.e21-pod-txbody :is(button,input,a):focus-visible { outline:2px solid var(--theme-accent-text, var(--theme-text)); outline-offset:2px; }
.e21-pod-txtools { padding:8px 0; border-bottom:1px solid var(--theme-border); }
.e21-pod-txsearch-row { display:flex; gap:8px; align-items:center; }
.e21-pod-txsearch { flex:1; min-width:0; }
.e21-pod-txsearch input { box-sizing:border-box; width:100%; min-width:0; min-height:44px; font:inherit; font-size:16px; padding:8px 10px; color:var(--theme-text); background:var(--theme-bg-card); border:1px solid var(--theme-border); border-radius:12px; }
.e21-pod-txsearch input::placeholder { color:var(--theme-text-muted); opacity:1; }
.e21-pod-txsearch-row button[aria-pressed=true] { background:var(--theme-bg-card); box-shadow:inset 0 0 0 1px var(--theme-border); }
.e21-pod-txfind { display:grid; grid-template-columns:minmax(0,1fr) 44px 44px; gap:4px; align-items:center; }
.e21-pod-txfind[hidden],.e21-pod-txpaging[hidden] { display:none; }
.e21-pod-txfind p { margin:0; font-size:13px; color:var(--theme-text-muted); }
.e21-pod-txcue { padding:10px 8px 14px; border-inline-start:2px solid transparent; }
.e21-pod-txcue p { margin:0; line-height:1.75; color:var(--theme-text); }
.e21-pod-txcue[aria-current=true] { border-inline-start-color:var(--theme-text); }
.e21-pod-txcue mark { background:#f8dda8; color:#20211f; }
.e21-pod-speaker { font-size:inherit; font-weight:650; margin-right:.4em; }
.e21-pod-txnote { margin:5px 0; color:var(--theme-text-muted); font-size:13px; line-height:1.6; }
.e21-pod-txpaging { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:12px 0; }
.e21-pod-txpaging span { flex:1 1 100%; color:var(--theme-text-muted); font-size:13px; }
.e21-pod-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.e21-pod-notes { margin: 0; }
.e21-pod-credits { margin: 1.5em 0 1.25em; font-size: 0.875rem; }
.e21-pod-credits h4 {
  margin: 0 0 0.5rem; font-size: 0.71875rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--theme-text-muted);
}
.e21-pod-credits ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.625rem 1.25rem;
}
.e21-pod-credits li { display: flex; flex-direction: column; min-width: 0; }
.e21-pod-credit-name { color: var(--theme-text-heading); font-weight: 500; overflow-wrap: anywhere; }
.e21-pod-credit-name a { color: inherit; }
.e21-pod-credit-role { color: var(--theme-text-muted); font-size: 0.78125rem; }
.e21-pod-license { margin: 0.75rem 0 0; color: var(--theme-text-muted); font-size: 0.78125rem; }
.e21-pod-license a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.e21-pod-crossbody { padding: 0.25rem 1rem 1rem; }
.e21-pod-cross-row { display: flex; gap: 0.75rem; padding: 0.625rem 0; }
.e21-pod-cross-row + .e21-pod-cross-row { border-top: 1px solid var(--theme-border); }
.e21-pod-cross-av {
  width: 2rem; height: 2rem; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--theme-bg-subtle); color: var(--theme-text-muted);
  font-size: 0.8125rem; font-weight: 700;
}
.e21-pod-cross-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.e21-pod-cross-main { flex: 1; min-width: 0; }
.e21-pod-cross-head { display: flex; align-items: baseline; gap: 0.5rem; }
.e21-pod-cross-head b { font-size: 0.85rem; color: var(--theme-text-heading); }
.e21-pod-cross-head span { font-size: 0.71875rem; color: var(--theme-text-muted); }
.e21-pod-cross-main p {
  margin: 0.2em 0 0; font-size: 0.9rem; line-height: 1.6;
  color: var(--theme-text); overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .e21-pod-art { display: none; }
  .e21-pod-boost-row { flex-wrap: wrap; }
}


/* ── Engagement: one group of content actions, plus the invitation ─────── */
.e21-eng {
  margin-top: 2rem; padding: 0.7rem 0;
  border-top: 1px solid var(--theme-border);
  border-bottom: 1px solid var(--theme-border);
}
.e21-eng-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.e21-eng-counts { display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; margin-right: auto; }
.e21-eng-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-width: 44px; min-height: 44px;
  padding: 0.4rem 0.6rem; border: 0; border-radius: 9px;
  background: transparent; color: var(--theme-text-muted);
  font: inherit; font-size: 0.875rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
@media (hover:hover){.e21-eng-btn:hover:not(:disabled):not(.is-inert){
  background: var(--theme-bg-subtle); color: var(--theme-text-heading);
}}
.e21-eng-btn:focus-visible { outline: 2px solid var(--theme-focus, var(--theme-accent)); outline-offset: 2px; }
/* Signed out, the counts are still information: dim them, don't grey them
   into looking broken. The prompt below says why they can't be pressed. */
.e21-eng-btn:disabled { cursor: default; opacity: 0.8; }
.e21-eng-btn.is-inert { cursor: not-allowed; opacity: 0.55; }
.e21-eng-btn.is-active { color: var(--theme-link, var(--theme-accent)); }
/* Nothing yet is not a number worth showing: the control stays, the 0 goes. */
.e21-eng-btn .eng-count:empty { display: none; }
.e21-signin {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  margin-top: 0.7rem; padding: 0.7rem 0.85rem; border-radius: 12px;
  background: var(--theme-bg-subtle);
}
.e21-signin-txt { flex: 1; min-width: 11rem; font-size: 0.8125rem; color: var(--theme-text-muted); }
.e21-btn-primary, .e21-signin-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; border: 0; border-radius: 10px; padding: 0.5rem 0.9rem;
  background: var(--theme-accent); color: var(--theme-on-accent, #fff);
  font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer;
  transition: filter 0.15s;
}
.e21-signin-secondary { background: transparent; color: var(--theme-text-heading); border: 1px solid var(--theme-border); }
@media (hover:hover){.e21-btn-primary:hover, .e21-signin-btn:hover{ filter: brightness(1.08); }}
.e21-btn-primary:focus-visible, .e21-signin-btn:focus-visible {
  outline: 2px solid var(--theme-focus, var(--theme-accent)); outline-offset: 2px;
}

/* Why a button cannot be used, read before its count (components.py). */
.e21-eng-reason {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.eng-btn {
  cursor: pointer; background: none; border: none; padding: 0.25em 0.5em;
  border-radius: 0.375em; transition: background 0.15s, color 0.15s, transform 0.1s;
}
@media (hover:hover){.eng-btn:not(:disabled):hover{ background: var(--theme-bg-subtle); }}
.eng-btn:not(:disabled):active { transform: scale(0.95); }
.eng-btn:disabled { cursor: default; opacity: 0.7; }
.eng-btn.liked { color: #ef4444 !important; }
.eng-btn.reposted { color: #22c55e !important; }
.eng-btn.bookmarked { color: var(--theme-accent) !important; }
.eng-btn.zapped { color: #f59e0b !important; }

/* Branded modal: shared by zap-amount + invoice */
.bm-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0;
  background: transparent;
  animation: bm-fade 0.18s ease-out;
}
.bm-modal::backdrop { background: rgba(0,0,0,0.5); }
.bm-modal-card {
  position: relative;
  background: var(--theme-bg);
  color: var(--theme-text);
  border: 1px solid var(--theme-border);
  border-radius: 0.75rem;
  width: 100%; max-width: 26rem;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.45);
  animation: bm-pop 0.18s ease-out;
  display: flex; flex-direction: column; max-height: 90vh;
}
.bm-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--theme-border);
}
.bm-modal-title { font-weight: 600; font-size: 0.95rem; color: var(--theme-text-heading); }
.bm-modal-sub   { font-size: 0.7rem; color: var(--theme-text-muted); margin-top: 0.125rem; }
.bm-modal-close {
  background: transparent; border: none; cursor: pointer;
  color: var(--theme-text-muted); padding: 0.25rem; border-radius: 0.375rem;
  display: inline-flex;
}
@media (hover:hover){.bm-modal-close:hover{ color: var(--theme-text); background: var(--theme-bg-subtle); }}
.bm-modal-body { padding: 1.25rem; overflow-y: auto; }
.bm-modal-footer {
  display: flex; gap: 0.5rem; padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--theme-border);
  background: var(--theme-bg-subtle);
  border-bottom-left-radius: 0.75rem; border-bottom-right-radius: 0.75rem;
}
.bm-label { font-size: 0.75rem; font-weight: 500; color: var(--theme-text-muted); margin-bottom: 0.5rem; display: block; }
.bm-input, .bm-textarea {
  width: 100%; padding: 0.625rem 0.75rem; font-size: 0.875rem;
  background: var(--theme-bg-subtle); color: var(--theme-text);
  border: 1px solid var(--theme-border); border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bm-input:focus, .bm-textarea:focus {
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent) 25%, transparent);
}
.bm-textarea { resize: none; min-height: 4.5rem; line-height: 1.4; font-family: inherit; }
.bm-presets { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 0.75rem; }
.bm-preset {
  flex: 1 1 auto; min-width: 3rem;
  padding: 0.5rem 0.5rem; font-size: 0.8125rem; font-weight: 500;
  background: var(--theme-bg-subtle); color: var(--theme-text);
  border: 1px solid var(--theme-border); border-radius: 0.5rem;
  cursor: pointer; transition: all 0.12s;
}
@media (hover:hover){.bm-preset:hover{ background: var(--theme-bg); border-color: var(--theme-accent); }}
.bm-preset.active {
  background: color-mix(in srgb, var(--theme-accent) 15%, transparent);
  border-color: var(--theme-accent); color: var(--theme-accent);
}
.bm-btn {
  min-height: 44px;
  padding: 0.5rem 0.875rem; font-size: 0.8125rem; font-weight: 500;
  border-radius: 0.5rem; cursor: pointer; border: 1px solid transparent;
  transition: opacity 0.12s, background 0.12s;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
}
.bm-btn-primary {
  background: var(--theme-accent); color: var(--theme-on-accent, #fff);
}
@media (hover:hover){.bm-btn-primary:hover{ opacity: 0.92; }}
.bm-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.bm-btn-secondary {
  background: var(--theme-bg-subtle); color: var(--theme-text);
  border-color: var(--theme-border);
}
@media (hover:hover){.bm-btn-secondary:hover{ background: var(--theme-bg); }}
.bm-invoice {
  width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem; padding: 0.625rem;
  background: var(--theme-bg-subtle); color: var(--theme-text-muted);
  border: 1px solid var(--theme-border); border-radius: 0.5rem;
  resize: none; height: 5.5rem; word-break: break-all;
}
@keyframes bm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bm-pop  { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
#comment-submit { transition: opacity 0.15s; }
@media (hover:hover){#comment-submit:hover{ opacity: 0.85; }}
#comment-submit:disabled { opacity: 0.5; cursor: default; }

/* Sign-in sheet: extension vs Amber choice */
.login-choice { display: flex; flex-direction: column; gap: 0.625rem; }
.login-opt {
  display: flex; align-items: center; gap: 0.625rem; width: 100%;
  padding: 0.75rem 0.875rem; font-size: 0.875rem; font-weight: 500; text-align: left;
  background: var(--theme-bg-subtle); color: var(--theme-text);
  border: 1px solid var(--theme-border); border-radius: 0.625rem; cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
@media (hover:hover){.login-opt:hover{ background: var(--theme-bg); border-color: var(--theme-accent); }}
/* Two-line option: main label + a quieter capability hint. Keeps
 * branded options (Bunker46) understandable at first glance. */
.login-opt-text { display: flex; flex-direction: column; gap: 0.125rem; }
.login-opt-sub { font-size: 0.6875rem; font-weight: 400; color: var(--theme-text-muted); }
.login-help-row { margin-top: 0.75rem; text-align: center; font-size: 0.75rem; color: var(--theme-text-muted); }
.login-help-link {
  color: var(--theme-text-heading); font-weight: 500; text-decoration: underline;
  background: none; border: none; padding: 0; cursor: pointer; font-size: inherit;
}

/* "Get a signer app" dialog: grouped signer links */
.signer-help-body { display: flex; flex-direction: column; gap: 1.25rem; }
.signer-help-intro { font-size: 0.8125rem; line-height: 1.5; color: var(--theme-text-muted); margin: 0; }
.signer-group { display: flex; flex-direction: column; gap: 0.5rem; }
.signer-group-label {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--theme-text-muted);
}
.signer-card {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem;
  background: var(--theme-bg-subtle); color: var(--theme-text);
  border: 1px solid var(--theme-border); border-radius: 0.75rem; text-decoration: none;
  transition: background 0.12s, border-color 0.12s;
}
@media (hover:hover){.signer-card:hover{ background: var(--theme-bg); border-color: var(--theme-accent); }}
.signer-card-main { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; flex: 1; }
.signer-card-name { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; }
.signer-card-desc {
  font-size: 0.75rem; color: var(--theme-text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.signer-badge {
  flex: none; font-size: 0.625rem; font-weight: 400; color: var(--theme-text-muted);
  background: color-mix(in srgb, var(--theme-text-muted) 18%, transparent);
  padding: 0.0625rem 0.4rem; border-radius: 999px; white-space: nowrap;
}
.signer-card > svg { flex: none; color: var(--theme-text-muted); }
/* Lead with the Android group when the reader is on Android. */
#signer-help.is-android .signer-group-android { order: -1; }

/* Amber / NIP-46 connect modal. The code's box takes the drawing's size,
   which the script sets from the code's modules (nip46-bundle.js qrSize);
   the quiet zone is in the drawing, so the box only rounds and edges it,
   and never squeezes it. */
.amber-qr {
  min-width: 2.5rem; min-height: 2.5rem; margin: 0 auto; box-sizing: content-box; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--theme-border); border-radius: 0.5rem;
}
.amber-qr img { display: block; width: 100%; height: 100%; max-width: none; image-rendering: pixelated; }
/* The raw connection link is a technical fact: behind Details, one tap away. */
.amber-details { margin-top: 0.5rem; text-align: center; }
.amber-details > summary {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem;
  font-size: 0.8125rem; color: var(--theme-text-muted); cursor: pointer;
}
.amber-details > summary:focus-visible { outline: 2px solid var(--theme-focus, var(--theme-accent)); outline-offset: 2px; border-radius: 8px; }
.amber-details .amber-uri { margin-top: 0.25rem; text-align: left; }
.amber-uri {
  width: 100%; box-sizing: border-box; margin-top: 0.75rem; padding: 0.5rem; height: 3.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.625rem;
  background: var(--theme-bg-subtle); color: var(--theme-text-muted);
  border: 1px solid var(--theme-border); border-radius: 0.5rem; resize: none; word-break: break-all;
}
.amber-status {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 1.25rem; margin-top: 0.625rem; font-size: 0.75rem; color: var(--theme-text-muted);
}
/* A failure in red that reads at 4.5:1 on light and dark themes (#ef4444
   gave 3.8:1 on white). */
.amber-status .err { color: color-mix(in oklab, #dc2626 60%, var(--theme-text-heading)); }
.amber-spin {
  width: 0.9rem; height: 0.9rem; flex: none; border: 2px solid var(--theme-border);
  border-top-color: var(--theme-accent); border-radius: 50%; animation: amber-spin 0.8s linear infinite;
}
@keyframes amber-spin { to { transform: rotate(360deg); } }

/* Generic NIP-46 bunker dialog: paste-a-bunker:// affordance */
.nip46-paste { margin-top: 0.875rem; padding-top: 0.875rem; border-top: 1px solid var(--theme-border); }
.nip46-paste-label { font-size: 0.75rem; color: var(--theme-text-muted); margin-bottom: 0.375rem; }
.nip46-paste-row { display: flex; gap: 0.5rem; }
.nip46-paste-input {
  flex: 1; min-width: 0; padding: 0.5rem 0.625rem; font-size: 0.8125rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--theme-bg-subtle); color: var(--theme-text);
  border: 1px solid var(--theme-border); border-radius: 0.5rem;
}
.nip46-paste-input:focus { outline: none; border-color: var(--theme-accent); }
.nip46-paste-status {
  display: flex; align-items: center; gap: 0.4rem;
  min-height: 1rem; margin-top: 0.5rem; font-size: 0.75rem; color: var(--theme-text-muted);
}
.nip46-paste-status .err { color: color-mix(in oklab, #dc2626 60%, var(--theme-text-heading)); }

/* Passive status feedback for the interaction script (see TOAST_HOST).
   Bottom centre, clear of the home indicator (safe area), never in the way
   of a tap (pointer-events), above the modal so guidance survives an open
   zap dialog. 16px on the theme's own text/background pairing keeps iOS
   legibility and contrast (HIG: 17pt default, 4.5:1). No motion, so there
   is nothing to reduce. */
.e21-toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 110;
  /* A fixed box at left:50% only gets half the viewport as available
     width; max-content lets the text set the width up to the cap, and
     border-box keeps padding and border inside that cap without relying
     on the page's reset. */
  box-sizing: border-box; width: max-content; max-width: min(92vw, 28rem);
  padding: 0.75rem 1rem; border-radius: 0.75rem;
  background: var(--theme-bg); color: var(--theme-text);
  border: 1px solid var(--theme-border);
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.35);
  font-size: 16px; line-height: 1.4; text-align: center;
  pointer-events: none;
}
.e21-toast[hidden] { display: none; }


.e21-cmt-empty { margin: 0; font-size: 0.9375rem; color: var(--theme-text-muted); }
.e21-cmt { position: relative; }
#comment-thread > .e21-cmt { padding: 0.9rem 0; border-top: 1px solid var(--theme-border); }
#comment-thread > .e21-cmt:first-child { border-top: 0; padding-top: 0.2rem; }
.e21-cmt-row { display: flex; gap: 0.7rem; align-items: flex-start; }
.e21-cmt-av {
  width: 32px; height: 32px; flex: none; border-radius: 999px;
  object-fit: cover; display: grid; place-items: center;
}
.e21-cmt-av--gen {
  /* Tint and ink as the masthead chip (.e21-id-av). */
  background: color-mix(in oklab, var(--e21-id-color, var(--theme-accent)) 24%, var(--theme-bg-card));
  color: color-mix(in oklab, var(--e21-id-color, var(--theme-accent)) 30%, var(--theme-text-heading));
  font-size: 0.8125rem; font-weight: 700;
}
/* Replies are secondary to the comment they answer: the avatar says so. */
.e21-cmt .e21-cmt .e21-cmt-av { width: 26px; height: 26px; font-size: 0.6875rem; }
.e21-cmt-main { min-width: 0; flex: 1; }
.e21-cmt-meta {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem;
  margin: 0 0 0.2rem; font-size: 0.8125rem;
}
.e21-cmt-name { font-weight: 650; color: var(--theme-text-heading); }
.e21-cmt-badge {
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--theme-accent); border: 1px solid var(--theme-accent);
  border-radius: 999px; padding: 0.05rem 0.4rem; opacity: 0.85;
}
.e21-cmt-time { font-size: 0.75rem; color: var(--theme-text-muted); }
.e21-cmt-to {
  font-size: 0.75rem; color: var(--theme-text-muted);
  padding-left: 0.4rem; border-left: 1px solid var(--theme-border);
}
.e21-cmt-body {
  font-size: 0.9375rem; line-height: 1.6; color: var(--theme-text);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
/* Actions on a comment: Reply, Like, Zap, and the rest behind ··· . The row
   is quiet by default and the overflow only appears on hover or focus, so a
   thread of thirty comments reads as text, not as thirty toolbars. */
.e21-cmt-actions {
  display: flex; align-items: center; gap: 0.1rem; margin-top: 0.25rem;
  margin-left: -0.5rem;
}
.e21-cmt-reply, .e21-cmt-act {
  display: inline-flex; align-items: center; gap: 0.32rem;
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: 0.75rem; font-weight: 600; color: var(--theme-text-muted);
  padding: 0.3rem 0.5rem; border-radius: 8px;
  transition: background 0.12s, color 0.12s;
}
.e21-cmt-act .eng-count:empty { display: none; }
@media (hover:hover){.e21-cmt-reply:hover, .e21-cmt-act:hover:not(:disabled):not(.is-inert){
  background: var(--theme-bg-subtle); color: var(--theme-link, var(--theme-accent));
}}
.e21-cmt-reply:focus-visible, .e21-cmt-act:focus-visible {
  outline: 2px solid var(--theme-focus, var(--theme-accent)); outline-offset: 2px;
}
/* Signed out the counts are still information, so they stay readable: the
   invitation above the thread explains why they can't be pressed. */
.e21-cmt-act:disabled { cursor: default; opacity: 0.85; }
.e21-cmt-act.is-inert { cursor: not-allowed; opacity: 0.55; }
.e21-cmt-act.liked, .e21-cmt-act.zapped, .e21-cmt-act.reposted { color: var(--theme-accent); }
.e21-cmt-more > summary {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  color: var(--theme-text-muted); font-size: 14px; line-height: 1;
  opacity: 0; transition: opacity 0.12s, background 0.12s;
}

.e21-cmt-more[open] > summary,
.e21-cmt-more > summary:focus-visible{ opacity: 1; }

@media (hover:hover){.e21-cmt:hover > .e21-cmt-row .e21-cmt-more > summary{ opacity: 1; }}
@media (hover:hover){.e21-cmt-more > summary:hover{ background: var(--theme-bg-subtle); }}
.e21-cmt-more .e21-pop-panel { left: 0; right: auto; min-width: 12rem; }
/* Touch has no hover: keep the overflow permanently visible there. */
@media (hover: none) {
  .e21-cmt-more > summary { opacity: 1; }
}

/* ── The sub-thread: spine, fold, chip ─────────────────────────────────── */
.e21-cmt-thread { position: relative; padding-left: 2.4rem; }
/* Indentation stops after three levels; deeper replies keep the spine's
   colour cue but reclaim the width for text. */
.e21-cmt[data-depth="3"] > .e21-cmt-thread,
.e21-cmt[data-depth="4"] > .e21-cmt-thread,
.e21-cmt[data-depth="5"] > .e21-cmt-thread { padding-left: 0.9rem; }
.e21-cmt-fold {
  position: absolute; left: 0.85rem; top: 0; bottom: 0; width: 22px;
  display: flex; justify-content: center; padding: 0;
  border: 0; background: transparent; cursor: pointer;
}
.e21-cmt[data-depth="3"] > .e21-cmt-thread > .e21-cmt-fold,
.e21-cmt[data-depth="4"] > .e21-cmt-thread > .e21-cmt-fold,
.e21-cmt[data-depth="5"] > .e21-cmt-thread > .e21-cmt-fold { left: 0; }
.e21-cmt-spine {
  width: 2px; height: 100%; border-radius: 999px;
  background: var(--theme-border); transition: background 0.15s;
}

.e21-cmt-fold:focus-visible .e21-cmt-spine{ background: var(--theme-accent); }

@media (hover:hover){.e21-cmt-fold:hover .e21-cmt-spine{ background: var(--theme-accent); }}
.e21-cmt-fold:focus-visible { outline: 2px solid var(--theme-focus, var(--theme-accent)); outline-offset: -2px; border-radius: 8px; }
/* No JS: the fold controls stay hidden and every reply is simply visible. */
.e21-cmt-kids { display: flex; flex-direction: column; }
.e21-cmt-unfold {
  border: 1px solid var(--theme-border); background: var(--theme-bg-subtle);
  color: var(--theme-text-muted); font: inherit; font-size: 0.75rem; font-weight: 600;
  padding: 0.25rem 0.7rem; border-radius: 999px; cursor: pointer; margin: 0.2rem 0 0.4rem;
  align-self: flex-start; transition: color 0.12s, border-color 0.12s;
}
@media (hover:hover){.e21-cmt-unfold:hover{ color: var(--theme-link, var(--theme-accent)); border-color: var(--theme-accent); }}
.e21-cmt-unfold:focus-visible { outline: 2px solid var(--theme-focus, var(--theme-accent)); outline-offset: 2px; }
.e21-cmt-thread.is-folded > .e21-cmt-kids,
.e21-cmt-thread.is-folded > .e21-cmt-fold { display: none; }
/* Hovering the spine tints the subtree it holds, so the fold's scope is
   obvious before the click. */
@media (hover:hover){.e21-cmt-thread:has(> .e21-cmt-fold:hover) > .e21-cmt-kids{ background:
  color-mix(in srgb, var(--theme-accent) 4%, transparent); border-radius: 10px; }}

/* The reply composer, opened under the comment it answers. */
.reply-form { margin-top: 0.5rem; }
.reply-form textarea {
  width: 100%; font: inherit; font-size: 0.875rem; line-height: 1.5;
  padding: 0.6rem 0.7rem; border-radius: 10px; resize: vertical; outline: none;
  background: var(--theme-bg-subtle); color: var(--theme-text);
  border: 1px solid var(--theme-border);
}
.reply-form textarea:focus { border-color: var(--theme-accent); }
.reply-form-foot { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.45rem; }
.reply-form-cancel {
  border: 0; background: transparent; font: inherit; font-size: 0.75rem;
  color: var(--theme-text-muted); cursor: pointer; padding: 0.35rem 0.5rem; border-radius: 8px;
}
@media (hover:hover){.reply-form-cancel:hover{ color: var(--theme-text-heading); background: var(--theme-bg-subtle); }}

/* Just posted: a brief accent wash so the reader sees where it landed. */
@keyframes e21-cmt-land {
  from { background: color-mix(in srgb, var(--theme-accent) 16%, transparent); }
  to { background: transparent; }
}
.e21-cmt.is-new { animation: e21-cmt-land 2.4s ease-out 1; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .e21-cmt.is-new { animation: none; } }

@media (max-width: 767px) {
  .e21-cmt-thread { padding-left: 1.4rem; }
  .e21-cmt-fold { left: 0.25rem; }
  .e21-cmt-reply, .e21-cmt-unfold { min-height: 40px; }
}


/* ── Keep reading ─────────────────────────────────────────────────────── */
.e21-next { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--theme-border); }
.e21-next-head {
  margin: 0 0 0.5rem; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--theme-text-muted);
}
.e21-next-list { display: flex; flex-direction: column; }
/* One hairline between rows and none around them: the block reads as a list
   rather than as three boxes stacked on the end of the article. */
.e21-next-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--theme-border);
  text-decoration: none; color: inherit;
}
.e21-next-item:last-child { border-bottom: 0; }
@media (hover:hover){.e21-next-item:hover .e21-next-title{ color: var(--theme-link, var(--theme-accent)); }}
.e21-next-item:focus-visible {
  outline: 2px solid var(--theme-focus, var(--theme-accent)); outline-offset: 2px; border-radius: 8px;
}
.e21-next-thumb {
  flex: none; width: 5.5rem; aspect-ratio: 1.91; border-radius: 8px;
  overflow: hidden; background: var(--theme-bg-subtle);
}
.e21-next-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.e21-next-text { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.e21-next-title {
  font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--theme-text-heading);
  transition: color 0.15s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.e21-next-meta { font-size: 0.75rem; color: var(--theme-text-muted); }

/* ── Series pager (wiki) ──────────────────────────────────────────────────
   A documentation set has an order, so the honest "what next" is the next
   page in it rather than a guess made from hashtags. */
.e21-pager {
  display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--theme-border);
}
.e21-pager-link {
  display: flex; flex-direction: column; gap: 0.25rem; min-width: 0;
  max-width: 22rem; text-decoration: none; color: inherit;
  padding: 0.5rem 0.75rem; margin: -0.5rem -0.75rem; border-radius: 10px;
  transition: background 0.15s;
}
@media (hover:hover){.e21-pager-link:hover{ background: var(--theme-bg-subtle); }}
.e21-pager-link:focus-visible { outline: 2px solid var(--theme-focus, var(--theme-accent)); outline-offset: 2px; }
.e21-pager-next { margin-left: auto; text-align: right; }
.e21-pager-dir {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--theme-text-muted);
}
.e21-pager-title {
  font-size: 0.9375rem; font-weight: 600; color: var(--theme-text-heading);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (hover:hover){.e21-pager-link:hover .e21-pager-title{ color: var(--theme-link, var(--theme-accent)); }}

/* ── Where you are in the piece ───────────────────────────────────────────
   A 2px accent rule across the top, scaled to scroll position: it answers
   "how much is left" without parking a widget in a corner, and the script
   leaves it hidden on pages too short to need it. */
.e21-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--theme-accent); opacity: 0; pointer-events: none;
}
.e21-progress.is-on { opacity: 1; }

/* kind 30023 is replaceable, so a piece can be revised after publication.
   Saying so costs one quiet line and is simply true. */
.e21-updated { color: var(--theme-text-muted); }

/* A selection tint from the site's own accent, rather than the browser blue
   that fights every theme. */
.article-content ::selection {
  background: color-mix(in srgb, var(--theme-accent) 28%, transparent);
}


.e21-fig {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  aspect-ratio: var(--fig-ratio, 1.91);
  background: var(--theme-bg-subtle);
}
/* The ratio scale. Named shapes only: no ad-hoc numbers at call sites. */
.e21-fig--photo { --fig-ratio: 3 / 2; }   /* camera-native, photo-led layouts */
.e21-fig--square { --fig-ratio: 1; }
.e21-fig--wide { --fig-ratio: 3 / 1; }    /* banner strips: cropping is intended */
.e21-fig > img {
  width: 100%; height: 100%; display: block; margin: 0;
  object-fit: cover; object-position: var(--focal, 50% 50%);
  transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
/* Off-ratio art: whole image over a blurred wash of itself (set by JS). */
.e21-fig.is-letterboxed > img { object-fit: contain; }
.e21-fig.is-letterboxed::before {
  content: ""; position: absolute; inset: -8%; z-index: -1;
  background: var(--fig-bg) center / cover no-repeat;
  filter: blur(28px) saturate(1.3) brightness(0.8);
}
/* Missing or unreachable art keeps the frame's shape as a themed plate. */
.e21-fig.is-failed > img { display: none; }
.e21-fig--empty, .e21-fig.is-failed {
  background:
    radial-gradient(115% 115% at 50% 0%,
      color-mix(in srgb, var(--theme-accent) 14%, transparent), transparent 68%),
    var(--theme-bg-subtle);
}
.e21-fig--empty::after, .e21-fig.is-failed::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 15%; min-width: 26px; max-width: 52px; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--theme-border);
  -webkit-mask: var(--fig-glyph) center / contain no-repeat;
  mask: var(--fig-glyph) center / contain no-repeat;
}
.e21-fig--empty, .e21-fig.is-failed {
  --fig-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
}

/* ── Article card ────────────────────────────────────────────────────────
   One card for every overview (site grid, magazine grid, wiki section). A
   flex column that fills its grid cell, so a row of cards shares one height;
   title and summary clamp, and the meta line is pushed to the bottom edge by
   `margin-top:auto`: the baselines line up across the row however long the
   titles are. */
.e21-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--theme-bg-card); border: 1px solid var(--theme-border);
  border-radius: 0.75rem; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
@media (hover:hover){.e21-card:hover{
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--theme-accent) 45%, var(--theme-border));
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.55);
}}
@media (hover:hover){.e21-card:hover .e21-fig > img{ transform: scale(1.035); }}
.e21-card:focus-visible {
  outline: 2px solid var(--theme-focus, var(--theme-accent)); outline-offset: 3px;
}
.e21-card-body {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 0.95rem 1rem 1rem; flex: 1;
}
.e21-card-title {
  margin: 0; font-size: 1.0625rem; font-weight: 650; line-height: 1.3;
  letter-spacing: -0.011em; color: var(--theme-text-heading);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.e21-card-sum {
  margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--theme-text-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Metadata reads as metadata: pinned to the card's floor, separated by a
   hairline, author/date leading and engagement trailing on one line. */
.e21-card-foot {
  margin-top: auto; padding-top: 0.7rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; flex-wrap: wrap;
  border-top: 1px solid var(--theme-border);
  font-size: 0.75rem; color: var(--theme-text-muted);
}
.e21-card-foot .article-stats { margin: 0; }
/* A card with neither summary nor metadata shouldn't leave a floating rule. */
.e21-card-foot:empty { display: none; }

/* ── Lead card ───────────────────────────────────────────────────────────
   The lead article of a magazine/wiki section. Same card, same frame, bigger
   type: the hierarchy is scale, not a separate layout.

   It sits side by side when there's room and stacks when there isn't, and it
   decides that from *its own* width, not the viewport's, because the same card
   renders in a 56rem page column and in a wiki pane narrowed by the sidebar. A
   full-width lead picture would be ~500px tall on a section index and push the
   actual index below the fold; halved, the artwork still leads without eating
   the screen. */
.e21-lede { margin-bottom: 2rem; flex-direction: row; flex-wrap: wrap; }
.e21-lede > .e21-fig { flex: 1.2 1 24rem; min-width: min(100%, 24rem); }
.e21-lede > .e21-card-body {
  flex: 1 1 18rem; min-width: min(100%, 18rem);
  justify-content: center; padding: 1.4rem 1.6rem 1.5rem; gap: 0.5rem;
}
.e21-lede .e21-card-title {
  font-size: clamp(1.35rem, 1.05rem + 0.9vw, 1.8rem); font-weight: 700;
  line-height: 1.18; letter-spacing: -0.02em;
}
.e21-lede .e21-card-sum { font-size: 1rem; }
/* In the split the body is vertically centred, so the metadata travels with
   the text block instead of being pushed to a far-away floor. */
.e21-lede .e21-card-foot { margin-top: 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  .e21-card, .e21-fig > img { transition: none; }
  @media (hover:hover){.e21-card:hover{ transform: none; }}
  @media (hover:hover){.e21-card:hover .e21-fig > img{ transform: none; }}
}

/* Discover reading surface. Published site typography remains author-owned. */
/* --article-gutter is the side padding: a photo strip reaches the screen
   edges through it (article.css). */
.discover-reader {
  --article-gutter:32px;
  max-width:800px;
  margin-inline:auto;
  padding:44px var(--article-gutter) 80px;
}
.discover-reader > h1 {
  margin-bottom:20px;
  font:650 clamp(2rem,4vw,3rem)/1.13 var(--font-editorial);
  letter-spacing:-1.1px;
  text-wrap:pretty;
}
.discover-reader > h1 + p,
.discover-reader > .article-summary {
  padding:0;
  margin-bottom:24px;
  border-left:0!important;
  color:var(--theme-text);
  font:400 1.1875rem/1.65 var(--font-text);
}
.discover-reader .article-content {
  font-size:1.125rem;
  line-height:1.8;
  color:var(--theme-text-strong);
}
/* Discover's soft mark is a plain colour, so a tip keeps its sand where
   article.css stands in for color-mix() (Safari before 16.2). */
@supports not (color:color-mix(in srgb,red,red)) {
  .discover-reader .article-content { --e21-mark-soft:var(--theme-mark-soft); }
}
.discover-reader .article-content :where(p) { margin-bottom:1.25em; }
.discover-reader .article-content :where(h2,h3,h4,h5,h6) { letter-spacing:-.02em; }
/* Jump targets take their offset from html's scroll-padding alone (header,
   action bar, one gap); article.css's own heading margin would add to it. */
.discover-reader .article-content :is(h1,h2,h3,h4,h5,h6,[id]) { scroll-margin-top:0; }
.discover-reader .article-content :where(blockquote,pre) { border-radius:16px; }
.discover-reader .article-content :where(img,video),
.discover-reader .e21-fig { border-radius:20px; }
.discover-reader .e21-progress { display:none; }
/* Headline, then the picture: the picture keeps clear of the byline below it. */
.discover-reader > .e21-audio-reader-cover { margin:0 0 28px; }
.discover-reader audio { max-width:100%; }
/* The bar sticks 8px under the header; on phones, while reading hides the
   header, it moves up with it instead of floating over the text. */
.discover-reader-participation {
  position:sticky;
  top:calc(var(--ds-nav-height) + 1px + 8px);
  transition:top 180ms cubic-bezier(.2,.7,.2,1);
  z-index:3;
  margin:24px -8px 32px;
  padding:4px;
  border:1px solid #242a1f0d;
  border-radius:20px;
  background:var(--theme-bg-card);
  box-shadow:0 2px 5px #242a1f05,0 8px 28px #242a1f0a;
  max-height:calc(100dvh - 176px);
  overflow-y:auto;
  scroll-margin-top:calc(-1 * var(--ds-sticky-extra,0px));
}
@media(max-width:700px) { .discover-chrome-reading .discover-reader-participation { top:8px; } }
@media(prefers-reduced-motion:reduce) { .discover-reader-participation { transition:none; } }
/* Until the reader's script measures the bar, its usual height. */
:root:has(.discover-reader-participation) { --ds-sticky-extra:68px; }
@media(max-width:599px) { :root:has(.discover-reader-participation.has-readpos) { --ds-sticky-extra:119px; } }
.discover-reader-participation .article-engagement { width:100%; }
.discover-reader-participation .article-engagement > button { border-radius:14px; }
.discover-reader .comment-role { letter-spacing:.01em; }
.discover-reader .comment-list { margin-top:32px; }
@media(max-width:760px) {
  .discover-reader { --article-gutter:20px; padding:28px var(--article-gutter) 56px; }
  .discover-reader > h1 { font-size:2.125rem; letter-spacing:-.7px; }
  .discover-reader > :is(h1 + p,.article-summary) { font-size:1.0625rem; line-height:1.65; }
  .discover-reader .article-content { font-size:1.0625rem; line-height:1.78; }
  .discover-reader-participation { margin:20px -4px 28px; border-radius:18px; }
}
@media(forced-colors:active) {
  .discover-reader-participation { border-color:CanvasText; box-shadow:none; }
}
/* Reader actions as a toolbar (HIG: Toolbars). One glyph size and stroke,
   tuned per symbol so each reads at the same optical weight; counts sit
   beside their icon. The label names each button for assistive technology
   and in its tooltip. Save stands apart at the trailing end. */
.discover-reader-participation { padding:6px; }
.discover-reader .discover-reader-participation .article-engagement.is-labelled { display:flex; align-items:center; gap:2px; flex-wrap:nowrap; }
.discover-reader .discover-reader-participation .article-engagement.is-labelled > button {
  flex-direction:row; gap:6px; min-width:44px; min-height:44px; padding:0 12px;
  border-radius:999px; background:transparent; color:var(--theme-text-strong);
  font:600 14px/1 var(--font-text); white-space:nowrap;
  transition:background-color .15s, color .15s;
}
@media (hover:hover){.discover-reader .discover-reader-participation .article-engagement.is-labelled > button:hover{ background:var(--theme-fill); color:var(--theme-text-heading); }}
.discover-reader .discover-reader-participation .article-engagement.is-labelled > button:active { background:var(--theme-fill-strong); }
.discover-reader .discover-reader-participation .article-engagement.is-labelled > button > svg { width:20px; height:20px; stroke-width:1.75; flex:none; }
.discover-reader .discover-reader-participation .article-engagement.is-labelled > button > .lucide-repeat-2 { width:22px; height:22px; }
.discover-reader .discover-reader-participation .article-engagement.is-labelled > button > .lucide-quote { width:17px; height:17px; }
.discover-reader .discover-reader-participation .article-engagement.is-labelled > button > .lucide-message-circle { width:19px; height:19px; }
.discover-reader .discover-reader-participation .article-engagement.is-labelled .social-action-label {
  position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.discover-reader .discover-reader-participation .article-engagement.is-labelled > button > .tabular-nums { font-size:14px; font-weight:500; color:var(--theme-text-muted); }
/* Confirmed states colour the symbol, not the button. */
.discover-reader .discover-reader-participation .article-engagement.is-labelled > button[class*="-700"] { background:transparent; }
.discover-reader .discover-reader-participation .article-engagement.is-labelled > button.text-red-700 { color:#D70015; }
.discover-reader .discover-reader-participation .article-engagement.is-labelled > button.text-green-700 { color:#248A3D; }
.discover-reader .discover-reader-participation .article-engagement.is-labelled > button.text-blue-700 { color:var(--theme-text-heading); }
.discover-reader .discover-reader-participation .article-engagement.is-labelled > button[class*="-700"] > .tabular-nums { color:inherit; }
.discover-reader .discover-reader-participation .article-engagement.is-labelled > .engagement-bookmark { order:9; margin-left:auto; align-self:center; }
:root[data-theme=dark] .discover-reader .discover-reader-participation .article-engagement.is-labelled > button.text-red-700 { color:#FF6961; }
:root[data-theme=dark] .discover-reader .discover-reader-participation .article-engagement.is-labelled > button.text-green-700 { color:#30D158; }
@media(max-width:480px) {
  .discover-reader .discover-reader-participation .article-engagement.is-labelled { gap:0; }
  .discover-reader .discover-reader-participation .article-engagement.is-labelled > button { padding:0 9px; }
}
/* 44px targets in the reader's own chrome: the byline's picture and name,
   the author card's name, the comment field and its send button (a 34px
   plate inside the target). Links inside the story keep their line. */
html[data-discover-document] .discover-reader a[data-author]:not(.article-content *):not(.article-card *):has(> img) { display:grid; place-items:center; min-width:44px; min-height:44px; margin:-2px; }
html[data-discover-document] .discover-reader :is(a[data-author]:not(:has(> img)),.dr-author a.e21-byline-name):not(.article-content *):not(.article-card *) { display:inline-flex; align-items:center; min-height:44px; margin-block:-12px; }
/* The publication named after a credited writer wraps under the name on a
   phone: its target starts at its own line and reaches down, so a tap on the
   writer's name above opens the writer. */
html[data-discover-document] .discover-reader a[data-author] ~ span a[data-author]:not(.article-content *):not(.article-card *) { align-items:flex-start; margin-block:0 -24px; }
html[data-discover-document] .discover-reader .composer-field { padding:1px 1px 1px 16px; }
html[data-discover-document] .discover-reader .composer-field textarea { min-height:44px; padding:11px 0; }
html[data-discover-document] .discover-reader .composer-send { width:44px; height:44px; border:5px solid transparent; background-clip:padding-box; }

/* Discover reader: the reading aids around the article (htmlgen/discover_reading.py).
   Discover's tokens and type throughout; a blog only lends its logo and accent
   to the small badge in the author card. */

/* ── Breadcrumbs: above the title, the page itself hidden on phones ─────── */
.discover-reader .e21-crumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:0 4px;margin:0 0 12px;padding:0;list-style:none;font:550 14px/1.4 var(--font-text);color:var(--theme-text-muted)}
.discover-reader .e21-crumbs li{display:inline-flex;align-items:center;gap:4px;min-width:0}
.discover-reader .e21-crumbs a{display:inline-flex;align-items:center;min-height:44px;margin:-10px 0;padding:0 2px;color:var(--theme-text-strong);text-decoration:none;border-radius:6px}
@media (hover:hover){.discover-reader .e21-crumbs a:hover{color:var(--theme-text-heading);text-decoration:underline;text-decoration-color:var(--theme-border-strong);text-underline-offset:4px}}
.discover-reader .e21-crumbs a:focus-visible{outline:2px solid var(--theme-text-heading);outline-offset:2px}
.discover-reader .e21-crumbs svg{flex:none;opacity:.55}
.discover-reader .e21-crumbs .e21-crumb-current{display:none}
@media(max-width:599px){.discover-reader .e21-crumbs li:nth-last-child(2) svg{display:none}}
@media(min-width:600px){
  .discover-reader .e21-crumbs .e21-crumb-current{display:inline-flex;min-width:0}
  .discover-reader .e21-crumb-current span{max-width:36ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* ── Advertising note, under the byline ─────────────────────────────── */
.discover-reader .dr-disclosure{margin:-12px 0 24px}
.discover-reader .e21-disclosure-note{display:flex;gap:10px;align-items:flex-start;margin:0;padding:12px 16px;border-radius:14px;background:var(--theme-bg-subtle);color:var(--theme-text);font:14px/1.5 var(--font-text)}
.discover-reader .e21-disclosure-note svg{flex:none;margin-top:1px;color:var(--theme-text-muted)}
.discover-reader .e21-disclosure-note p{margin:0}

/* ── Reading position, inside the existing action bar ──────────────── */
.discover-reader-participation.has-readpos{position:sticky;display:flex;flex-wrap:wrap;align-items:center;column-gap:4px}
.discover-reader-participation.has-readpos>[data-listener-island="engagement"]{flex:0 0 auto;min-width:0;max-width:100%}
.dr-readpos{position:static;flex:1 1 0;min-width:0;--readpos:0%}
.dr-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.dr-readpos[hidden]{display:none}
.dr-readpos-btn{display:flex;align-items:center;gap:12px;width:100%;min-width:0;min-height:44px;margin:0;padding:0 10px 0 7px;border:0;border-radius:14px;background:transparent;color:var(--theme-text-heading);font:inherit;text-align:left;cursor:pointer;transition:background-color .15s var(--ds-ease,ease)}
@media (hover:hover){.dr-readpos-btn:hover{background:var(--theme-fill)}}
.dr-readpos-btn:active{background:var(--theme-fill-strong)}
.dr-readpos-btn:focus-visible{outline:2px solid var(--theme-text-heading);outline-offset:2px}
.dr-ring{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:conic-gradient(var(--theme-text-heading) var(--readpos),var(--theme-border) 0)}
.dr-ring::after{content:"";width:21px;height:21px;border-radius:50%;background:var(--theme-bg-card)}
.dr-readpos-text{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}
.dr-readpos-step{font:650 11px/1 var(--font-text);letter-spacing:.08em;text-transform:uppercase;color:var(--theme-text-muted);font-variant-numeric:tabular-nums}
.dr-readpos-title{overflow:hidden;font:600 15px/1.2 var(--font-text);color:var(--theme-text-heading);white-space:nowrap;text-overflow:ellipsis}
.dr-readpos-btn>svg{flex:none;color:var(--theme-text-muted)}
/* The same progress as a hairline along the bar's lower edge. */
.dr-readpos-line{position:absolute;right:20px;bottom:0;left:20px;height:2px;border-radius:2px;background:linear-gradient(90deg,var(--theme-text-heading) var(--readpos),transparent 0);pointer-events:none}
@media(max-width:599px){
  /* Phones: the position on its own row above the actions, so neither is squeezed. */
  .discover-reader-participation.has-readpos{row-gap:2px}
  .discover-reader-participation.has-readpos>.dr-readpos{flex:1 0 100%}
  .discover-reader-participation.has-readpos>[data-listener-island="engagement"]{flex:1 0 100%}
  .dr-readpos:not([hidden]){padding-bottom:4px;border-bottom:1px solid var(--theme-border-subtle)}
  .dr-readpos-line{right:auto;bottom:-1px;left:7px;width:calc(100% - 14px)}
  .dr-readpos{position:relative}
}
@media(forced-colors:active){
  .dr-ring{border:2px solid CanvasText;background:Canvas}
  .dr-readpos-line{background:CanvasText;width:auto}
}

/* ── Contents: a quiet card before the body ─────────────────────────── */
.discover-reader .e21-toc{margin:4px 0 36px;padding:20px 24px 10px;border-radius:20px;background:var(--theme-bg-card);box-shadow:inset 0 0 0 1px var(--theme-border)}
.discover-reader .e21-toc-title{margin:0 0 4px;font:500 22px/1.2 var(--font-display);letter-spacing:-.01em;color:var(--theme-text-heading)}
.discover-reader .e21-toc ol{margin:0;padding:0;list-style:none;counter-reset:dr-toc}
.discover-reader .e21-toc li{counter-increment:dr-toc;break-inside:avoid}
.discover-reader .e21-toc a{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:baseline;gap:4px;min-height:44px;padding:11px 0;color:var(--theme-text-heading);font:550 16px/1.35 var(--font-text);text-decoration:none}
.discover-reader .e21-toc a::before{content:counter(dr-toc);color:var(--theme-text-muted);font-weight:600;font-variant-numeric:tabular-nums}
@media (hover:hover){.discover-reader .e21-toc a:hover{text-decoration:underline;text-decoration-color:var(--theme-border-strong);text-underline-offset:4px}}
.discover-reader .e21-toc a:focus-visible{outline:2px solid var(--theme-text-heading);outline-offset:2px;border-radius:6px}
@media(min-width:700px){.discover-reader .e21-toc ol{columns:2;column-gap:32px}}
@media(max-width:599px){.discover-reader .e21-toc{margin-bottom:28px;padding:18px 18px 8px}}

/* ── The contents sheet: from the bottom on phones, a card on wider screens ── */
.discover-reader .e21-sheet{width:100%;max-width:100%;max-height:82svh;margin:auto auto 0;padding:0;overflow:hidden;border:0;border-radius:22px 22px 0 0;background:var(--theme-bg-card);color:var(--theme-text);box-shadow:0 -10px 40px -12px rgb(0 0 0/.3)}
.discover-reader .e21-sheet[open]{display:flex;flex-direction:column;animation:dr-sheet-in .28s var(--ds-ease,ease)}
/* Safari before 15.4 has no <dialog>: a closed sheet would sit in the page.
   The opener then scrolls to the contents in the page instead (blog_article.js). */
.discover-reader .e21-sheet:not([open]){display:none}
.discover-reader .e21-sheet::backdrop{background:var(--ds-scrim,rgb(11 11 10/.38))}
@keyframes dr-sheet-in{from{transform:translateY(24px);opacity:.6}}
@media(prefers-reduced-motion:reduce){.discover-reader .e21-sheet[open]{animation:none}}
@media(min-width:700px){.discover-reader .e21-sheet{max-width:520px;max-height:80vh;margin:auto;border-radius:22px;box-shadow:0 24px 60px -20px rgb(0 0 0/.35)}}
.discover-reader .e21-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px 12px 24px;border-bottom:1px solid var(--theme-border)}
.discover-reader .e21-sheet-head h2{margin:0;font:500 24px/1.2 var(--font-display);letter-spacing:-.01em;color:var(--theme-text-heading)}
.discover-reader .e21-sheet-close{display:grid;flex:none;place-items:center;width:44px;height:44px;border:0;border-radius:999px;background:var(--theme-bg-subtle);color:var(--theme-text-heading);cursor:pointer}
@media (hover:hover){.discover-reader .e21-sheet-close:hover{background:var(--theme-fill)}}
.discover-reader .e21-sheet-close:focus-visible{outline:2px solid var(--theme-text-heading);outline-offset:2px}
.discover-reader .e21-sheet-meta{margin:0;padding:12px 24px 0;font:14px/1.4 var(--font-text);color:var(--theme-text-muted)}
.discover-reader .e21-sheet-list{margin:0;padding:8px 12px max(20px,env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;list-style:none}
.discover-reader .e21-sheet-list li{position:relative}
.discover-reader .e21-sheet-list li::before{content:"";position:absolute;top:0;bottom:0;left:21px;border-left:2px dotted var(--theme-border-strong)}
.discover-reader .e21-sheet-list li:first-child::before{top:50%}
.discover-reader .e21-sheet-list li:last-child::before{bottom:50%}
.discover-reader .e21-sheet-list li:only-child::before{display:none}
.discover-reader .e21-sheet-list a{position:relative;display:flex;align-items:center;gap:14px;min-height:50px;padding:6px 12px 6px 10px;border-radius:14px;color:var(--theme-text-heading);font:600 16px/1.3 var(--font-text);text-decoration:none}
@media (hover:hover){.discover-reader .e21-sheet-list a:hover:not([aria-current]){background:var(--theme-bg-subtle)}}
.discover-reader .e21-sheet-list a:focus-visible{outline:2px solid var(--theme-text-heading);outline-offset:-2px}
.discover-reader .e21-sheet-label{flex:1;min-width:0}
.discover-reader .e21-sheet-dot{position:relative;z-index:1;flex:none;width:16px;height:16px;margin-left:4px;border:2.5px solid var(--theme-text-heading);border-radius:50%;background:var(--theme-bg-card)}
.discover-reader .e21-sheet-list a.is-done .e21-sheet-dot{background:var(--theme-text-heading)}
.discover-reader .e21-sheet-list a[aria-current]{background:var(--theme-bg-subtle)}
.discover-reader .e21-sheet-list a[aria-current] .e21-sheet-dot{background:var(--theme-text-heading);box-shadow:0 0 0 4px var(--theme-bg-subtle),0 0 0 6px var(--theme-text-heading)}
.discover-reader .e21-sheet-here{display:none}
.discover-reader .e21-sheet-list a[aria-current] .e21-sheet-here{display:inline-flex;flex:none;align-items:center;padding:5px 9px;border-radius:999px;background:var(--theme-invert-bg);color:var(--theme-invert-text);font:650 12px/1 var(--font-text)}

/* ── Author card, after the article ─────────────────────────────────── */
.discover-reader .dr-author{margin:40px 0 8px;padding:22px 24px 24px;border-radius:20px;background:var(--theme-bg-card);box-shadow:inset 0 0 0 1px var(--theme-border)}
.discover-reader .dr-author-eyebrow{margin:0 0 16px;font:650 11.5px/1 var(--font-text);letter-spacing:.08em;text-transform:uppercase;color:var(--theme-text-muted)}
.discover-reader .dr-author .e21-byline{display:grid;grid-template-columns:64px minmax(0,1fr);gap:18px;align-items:start;font:15px/1.55 var(--font-text);color:var(--theme-text)}
/* A byline without a picture is marked by the server (Safari before 15.4 has no :has()). */
.discover-reader .dr-author .e21-byline--plain{display:block}
.discover-reader .dr-author .e21-avatar{display:block;width:64px;height:64px}
.discover-reader .dr-author .e21-avatar :is(img,.e21-avatar-initial){display:grid;place-items:center;width:100%;height:100%;border-radius:50%;object-fit:cover;background:var(--theme-bg-subtle);color:var(--theme-text-heading);font:500 26px/1 var(--font-display)}
.discover-reader .dr-author .e21-byline-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin:2px 0 0}
.discover-reader .dr-author .e21-byline-name{font:650 18px/1.3 var(--font-text);color:var(--theme-text-heading);text-decoration:none}
@media (hover:hover){.discover-reader .dr-author a.e21-byline-name:hover{text-decoration:underline;text-decoration-color:var(--theme-border-strong);text-underline-offset:4px}}
.discover-reader .dr-author .e21-byline-pub{font-size:14px;color:var(--theme-text-muted)}
.discover-reader .dr-author .e21-byline-meta{margin:4px 0 0}
.discover-reader .dr-author .e21-byline-meta:empty{display:none}
.discover-reader .dr-author .e21-byline-bio{margin:10px 0 0;color:var(--theme-text)}
.discover-reader .dr-author-blog{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:44px;margin:-6px 0;color:var(--theme-text-heading);font:600 14px/1.25 var(--font-text);text-decoration:none}
@media (hover:hover){.discover-reader .dr-author-blog:hover .dr-author-blog-name{text-decoration:underline;text-decoration-color:var(--theme-border-strong);text-underline-offset:4px}}
.discover-reader .dr-author-blog:focus-visible{outline:2px solid var(--theme-text-heading);outline-offset:2px;border-radius:8px}
.discover-reader .dr-author-blog-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.discover-reader .dr-author-blog-count{flex:none;color:var(--theme-text-muted);font-weight:500}
.discover-reader .dr-author-blog-count::before{content:"·";margin-right:8px}
.dr-blog-mark{display:grid;flex:none;place-items:center;width:24px;height:24px;overflow:hidden;border-radius:7px;font:600 13px/1 var(--font-text)}
.dr-blog-mark.has-logo{background:var(--theme-bg-card);box-shadow:inset 0 0 0 1px var(--theme-border)}
.dr-blog-mark img{width:100%;height:100%;object-fit:contain}
@media(max-width:599px){
  .discover-reader .dr-author{padding:20px 18px 22px}
  .discover-reader .dr-author .e21-byline{grid-template-columns:52px minmax(0,1fr);gap:14px}
  .discover-reader .dr-author .e21-avatar{width:52px;height:52px}
}
