/* Phage Directory on the Prague `phage` theme (D26). /vendor/prague-styles/theme.css (vendored, loaded first) supplies the
   theme's role tokens and base type; this file is page composition only: the baseline rhythm, the column grid, and the
   site's pieces. No raw colors here: every color is a theme token (brief: /DESIGN.md).
   Rules are scoped to .theme-scope so they beat Prague's same-specificity base rules by coming later.
   Vertical: editorial roles use the consolidated type/rhythm block at the end; --b remains the outer site spacing.
   Horizontal: bands (header, hero, footer) run full width; their content and main share one wide column, and main
   puts a text column (the measure) inside it. .wide spans the wide column. */
/* Type: a system UI font stack everywhere (Jan, 2026-09-26: "lets just use a system ui font stack"); code stays monospace.
   Same specificity as Prague's theme block, later in order. */
.theme-scope[data-theme="phage"] {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-display: var(--font-sans);
  --font-marketing: var(--font-sans);
  --font-role-body: var(--font-sans);
  --font-role-heading: var(--font-sans);
  --font-role-display: var(--font-sans);
  --font-role-label: var(--font-sans);
  --font-role-control: var(--font-sans);
}

/* Shared light-mode header and reading ink; muted metadata and explicit CTA colors retain their roles. */
html:not([data-variant="dark"]) .theme-scope[data-theme="phage"] {
  --color-grid-decoration: var(--color-pdv3-mono-70);
  --color-bg-site-header: var(--color-pdv3-mono-10);
  --color-bg-surface-muted: var(--color-bg-page);
  --color-bg-surface-muted-hover: #F2F2F2;
  --color-bg-tag-selected: var(--color-bg-tag-hover);
  --color-bg-tag: var(--color-bg-surface-muted);
  --color-bg-tag-hover: var(--color-bg-surface-muted-hover);
  --color-code-bg: var(--color-pdv3-purewhite);
  --color-text-primary: var(--color-pdv3-brand-100);
  --color-text-secondary: var(--color-pdv3-brand-100);
  --color-text-heading: var(--color-pdv3-brand-100);
  --color-text-neutral: var(--color-pdv3-brand-100);
  --color-link: var(--color-pdv3-brand-100);
}

/* Dark mode: the phage theme's dark variant (theme.json → variants.dark) supplies the colors; Layout.astro sets
   data-variant="dark" on <html> from the saved choice or the OS preference. Only site-level remaps live here. */
[data-variant="dark"] { color-scheme: dark; }
[data-variant="dark"] .theme-scope {
  --color-grid-decoration: color-mix(in srgb, var(--color-text-muted) 65%, var(--color-bg-page));
  --color-bg-record-support: color-mix(in srgb, var(--color-bg-page) 70%, var(--color-bg-primary));
  --surface-paper: var(--color-bg-surface-muted);
}
/* Dark grid and navigation feedback stays close to the resting card surface. */
[data-variant="dark"] .theme-scope[data-theme="phage"] {
  --color-bg-surface-muted-hover: color-mix(in srgb, var(--color-bg-surface-muted) 96%, white);
  --color-bg-explore-panel: color-mix(in srgb, var(--color-bg-page) 70%, black);
}
[data-variant="dark"] .theme-scope[data-theme="phage"] .return-button[data-return-variant="secondary"] {
  --color-bg-hover: var(--color-bg-surface-muted-hover);
}
/* transparent PNGs in posts (logos, diagrams) are drawn for white pages */
[data-variant="dark"] .theme-scope :is(.prose, .rich-text, .digest) img { background: var(--color-pdv3-purewhite); }
/* image pairs drawn for a light or a dark background (logos): show the one that matches the mode */
.theme-scope .on-dark, [data-variant="dark"] .theme-scope .on-light { display: none; }
[data-variant="dark"] .theme-scope .on-dark { display: inline-block; }
.theme-scope {
  --color-bg-explore-panel: var(--color-bg-primary);
  --color-bg-record-support: var(--color-bg-page);
  --color-bg-site-header: var(--color-bg-secondary);
  --color-bg-surface-muted: var(--color-bg-secondary);
  --color-bg-surface-muted-hover: var(--color-bg-hover);
  --color-text-alert: color-mix(in srgb, var(--color-danger-dark) 90%, var(--color-text-primary));
  --b: 1.625rem;
  --rhythm-unit: var(--space-gap-xs);
  --rhythm-minor: calc(2 * var(--rhythm-unit));
  --rhythm-major: calc(6 * var(--rhythm-unit));
  --layout-gutter: calc(4 * var(--rhythm-unit));
  --g: var(--layout-gutter);
  --text: calc(152 * var(--rhythm-unit));
  --wide: calc(240 * var(--rhythm-unit));
  --article-width: calc(176 * var(--rhythm-unit));
  --surface-inset: var(--rhythm-major);
  --surface-paper: var(--color-bg-primary);
  --color-grid-decoration: var(--color-text-muted);
  --color-grid-rule: color-mix(in srgb, var(--color-text-muted) 12%, var(--color-bg-page));
  --color-navigation-border: var(--color-grid-rule);
  --color-navigation-arrow: currentColor;
  --color-grid-arrow: var(--color-grid-decoration);
  --meta: var(--color-text-muted);
  --rule: var(--color-border);
  font: 400 var(--type-article)/var(--b) var(--font-role-body);
  color: var(--color-text-primary);
  background: var(--color-bg-page);
  height: auto;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}

/* ---------- Base text: shared role sizes; existing line-height rhythm ---------- */
.theme-scope :is(h1, h2, h3, h4, p, ol, ul, dl, figure, blockquote, pre, table, details, hr) { margin: 0 0 var(--b); }
.theme-scope h1 { font: 700 var(--type-page-title)/.94 var(--font-role-display); letter-spacing: -0.02em; color: var(--color-text-heading); }
.theme-scope h2 { font: 650 var(--type-section-title)/calc(1.5 * var(--b)) var(--font-role-heading); margin-top: calc(2 * var(--b)); color: var(--color-text-heading); }
.theme-scope :is(h3, h4) { font: 650 var(--type-subheading)/var(--b) var(--font-role-heading); margin: 0; color: var(--color-text-heading); }
.theme-scope :is(p, ul, ol, li, td, dd) { color: inherit; }
.theme-scope li { margin: 0; }
.theme-scope :is(ul, ol) { padding-left: 1.25em; }
.theme-scope :is(small, .kicker, .meta, .tags, figcaption, .byline, time, .count, .num) { font-size: var(--type-meta); color: var(--meta); }
.theme-scope .eyebrow, .theme-scope .label { font: 600 var(--type-label)/var(--b) var(--font-role-label); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-secondary); margin: 0; }
.theme-scope .lede { font-size: var(--type-lede); line-height: calc(1.25 * var(--b)); color: var(--color-text-secondary); }

/* links: the phage theme's link blue with its pink underline, as on the old site */
.theme-scope a { color: var(--color-link); text-decoration: underline 1px var(--color-link-underline); text-underline-offset: 0.2em; }
.theme-scope a:hover { color: var(--color-link-hover); text-decoration-thickness: 2px; }
.theme-scope :focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }

.theme-scope :is(img, video, iframe) { max-width: 100%; height: auto; }
.theme-scope hr { border: 0; height: 0; margin-block: var(--spacing-8); }
.theme-scope blockquote { padding-left: var(--g); border-left: 2px solid var(--rule); margin-left: 0; color: var(--color-text-secondary); font-size: inherit; font-style: normal; }
.theme-scope :is(pre, code) { font-family: var(--font-role-code); font-size: var(--type-code-relative); }
.theme-scope pre { overflow-x: auto; padding: var(--g); border-radius: var(--radius-md); background: var(--color-bg-code); color: var(--color-text-primary); }
.theme-scope table { display: table; width: 100%; border-collapse: collapse; }
.table-scroll { width: 100%; overflow-x: auto; margin-bottom: var(--b); }
.theme-scope .table-scroll > table { margin-bottom: 0; }
.theme-scope :is(td, th) { padding: 0 var(--g) 0 0; text-align: left; vertical-align: top; border: 0; }

/* The site uses flat color surfaces. Keep generic Prague elevation and text effects out of every site element. */
body.theme-scope, body.theme-scope *, body.theme-scope *::before, body.theme-scope *::after {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* ---------- grid */
.bar, main { max-width: calc(var(--wide) + 2 * var(--g)); margin: 0 auto; padding: var(--b) var(--g); }
main {
  --layout-content: var(--text);
  display: grid;
  padding-block-start: var(--rhythm-section);
  width: 100%;
  max-width: none;
  padding-inline: 0;
  grid-template-columns:
    [full-start full-width-start] minmax(var(--g), 1fr)
    [wide-start breakout-start] minmax(0, calc((var(--wide) - var(--layout-content)) / 2))
    [text-start content-start] min(calc(100% - 2 * var(--g)), var(--layout-content)) [text-end content-end]
    minmax(0, calc((var(--wide) - var(--layout-content)) / 2)) [wide-end breakout-end]
    minmax(var(--g), 1fr) [full-end full-width-end];
  overflow-wrap: anywhere;
}
main > *, .issue > * { grid-column: text; min-width: 0; }
main > .wide, .issue > .wide, main > .issue { grid-column: wide; }
main > .layout-full { grid-column: full; }
main > .layout-breakout { grid-column: breakout; }
@media (max-width: 48rem) {
  .theme-scope { --surface-inset: var(--rhythm-body); }
}
/* Standalone Markdown documents use the shared section rhythm at both ends. */
.theme-scope main.document-page { padding-block: calc(2 * var(--rhythm-section)); }
@media (max-width: 48rem) {
  .theme-scope main.document-page { padding-block: var(--rhythm-section); }
}
/* Shared text/component measure; the cover can break out on wide screens. */
.issue { display: grid; grid-template-columns: [wide-start text-start] minmax(0, 1fr) [text-end wide-end]; }
.issue > :not(.wide) { width: 100%; max-width: var(--article-width); }
.issue > .issue-header { max-width: var(--article-width); }
.issue-header :is(h1, .lede) { max-width: 100%; }
/* Section surfaces remain full bleed around the shared article column. */
main.issue-page { display: block; max-width: none; padding-inline: 0; }
.issue-page > .issue { row-gap: var(--rhythm-block); grid-template-columns: [full-start] minmax(var(--g), 1fr) [wide-start text-start] minmax(0, var(--article-width)) [text-end wide-end] minmax(var(--g), 1fr) [full-end]; }
/* The article grid owns section gaps; child margins must not accumulate. */
.theme-scope .issue-page > .issue > * { margin-block: 0; }
.issue-page .issue > :not(.wide):not(.digest-band):not(.community-digest) { margin-inline: auto; }
.issue-page .issue > .issue-header { max-width: var(--article-width); }
.issue-page .issue > :is(.digest-band, .community-digest) { grid-column: full; width: auto; max-width: none; }

/* Cover: a deliberate, centered exception to the article measure on desktop. */
.theme-scope .issue-page .issue > .cover { margin-top: var(--rhythm-tight); }
@media (min-width: 48rem) {
  .theme-scope .issue-page .issue > .cover { margin-top: var(--rhythm-body); }
}
.theme-scope .issue-page .cover img { margin-bottom: 0; }
.theme-scope .issue-page .cover figcaption { font-size: var(--type-meta); line-height: 1.428571429; max-width: var(--article-width); margin: var(--rhythm-tight) auto 0; }
@media (min-width: 64rem) {
  .theme-scope .issue-page .issue > .cover {
    grid-column: full;
    width: min(var(--wide), calc(100% - 2 * var(--g)));
    justify-self: center;
    margin-inline: 0;
  }
}

/* Home mission: align the copy with the feed and let its lines wrap naturally.
   Copy remains in home.md; the shared masthead supplies the original logo once. */
.theme-scope main.home-page { padding-top: 0; }
.home-intro { padding-block: calc(8 * var(--rhythm-body)) calc(10 * var(--rhythm-body)); }
.theme-scope .home-mission { max-width: var(--text); font: 400 var(--type-h3)/1.4 var(--font-role-heading); color: var(--color-text-secondary); }
.theme-scope .home-mission p { margin: 0; line-height: inherit; }
.home-mission a { font-weight: 700; }
@media (max-width: 48rem) {
  .home-intro { padding-block: calc(4 * var(--rhythm-body)) calc(6 * var(--rhythm-body)); }
}

/* Blue CTA roles retain Prague's button geometry and state handling. */
.theme-scope[data-theme="phage"] :is(.btn-primary, .btn-secondary) {
  --color-primary: var(--color-pdv3-brand-250);
  --color-primary-hover: var(--color-pdv3-brand-90);
  --color-primary-active: var(--color-pdv3-brand-100);
  --color-primary-text: var(--color-pdv3-purewhite);
  --color-primary-light: var(--color-bg-secondary);
  --color-primary-lighter: var(--color-bg-primary);
  --color-primary-lightest: var(--color-bg-secondary);
}
[data-variant="dark"] .theme-scope[data-theme="phage"] .btn-primary {
  --color-primary: var(--color-pdv3-brand-250);
  --color-primary-hover: var(--color-pdv3-brand-60);
  --color-primary-active: var(--color-pdv3-brand-70);
  --color-primary-text: var(--color-bg-page);
}
[data-variant="dark"] .theme-scope[data-theme="phage"] .btn-secondary {
  --color-primary: var(--color-pdv3-brand-40);
  --color-primary-hover: var(--color-pdv3-brand-30);
  --color-primary-active: var(--color-pdv3-brand-50);
  --color-primary-light: var(--color-pdv3-brand-100);
  --color-primary-lighter: var(--color-pdv3-brand-90);
  --color-primary-lightest: var(--color-pdv3-brand-80);
}
.theme-scope :is(.btn-primary, .btn-secondary, .btn-ghost):focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 3px; }

/* Reusable saved-action message: Prague alert geometry with the phage success roles. */
.theme-scope .message-box {
  margin: 1rem 0 0;
  background: var(--color-success-light);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
}
.theme-scope .message-box[hidden] { display: none; }
.theme-scope .message-box .alert-title { color: var(--color-text-primary); }
.theme-scope .message-box .alert-description { color: var(--color-text-secondary); }

/* ---------- masthead and footer */
header.site .bar { padding-block: calc(1.5 * var(--b)) calc(var(--b) / 2); }
.theme-scope .masthead { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--color-text-primary); text-decoration: none; }
.masthead img { flex: none; width: 18rem; max-width: 100%; height: auto; }
header.article-masthead .bar { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2rem); }
.article-masthead .masthead { flex: none; width: clamp(10rem, 50vw, 18rem); }
.article-masthead .masthead img { width: 100%; }
.theme-scope .article-masthead .capsid-brand { flex: none; width: 4.5rem; margin: 0 0 0 auto; }
@media (min-width: 40rem) {
  .theme-scope .article-masthead .capsid-brand { width: 6rem; }
}
header.home-header .bar { padding-block: 4rem 0; }
.home-header .masthead img { width: 15.625rem; }
/* The two original bitmaps have different wordmark insets (105/490 and 82/375).
   Hang only the symbol into the desktop gutter; narrow screens keep the whole lockup in view. */
@media (min-width: 70rem) {
  .home-header .masthead { margin-inline-start: calc(-15.625rem * 105 / 490); }
  [data-variant="dark"] .home-header .masthead { margin-inline-start: calc(-15.625rem * 82 / 375); }
}
@media (max-width: 48rem) {
  header.home-header .bar { padding-top: 3rem; }
}

/* Feed search: Prague form-input with an explicit editorial brand adaptation (DESIGN.md).
   Shared tokens size the field; local type, accent rule and icon spacing give it presence. */
.issue-search:not(.issue-search-quiet) { --color-bg-primary: var(--color-bg-search); }
.issue-search-field {
  position: relative;
  --text-input: var(--type-search);
  --input-padding-y: 1rem;
  --input-padding-x: 1.25rem;
  --leading-normal: 1.25;
  --radius-md: var(--radius-sm);
}
.theme-scope .issue-search .form-input { font-family: var(--font-role-control); font-weight: 750; letter-spacing: -0.025em; padding-inline-start: 3.5rem; border: 0; border-bottom: 3px solid var(--color-link-underline); }
.theme-scope .issue-search .form-input::placeholder { color: var(--color-text-secondary); opacity: 1; }
.theme-scope .issue-search:not(.issue-search-quiet) .form-input::placeholder { color: var(--color-text-muted); }
.theme-scope .issue-search .form-input:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 3px; }
.issue-search-field > svg { position: absolute; left: 1.125rem; top: 50%; width: 1.5rem; height: 1.5rem; translate: 0 -50%; fill: none; stroke: var(--color-link); stroke-width: 2.5; stroke-linecap: round; pointer-events: none; }
.issue-search-quiet .issue-search-field { --text-input: var(--type-search-quiet); --input-padding-y: 0.875rem; --input-padding-x: 1rem; }
.theme-scope[data-theme="phage"] .issue-search-quiet input.form-input { background: var(--color-bg-primary); border: 0; outline: none; padding-inline-start: 2.75rem; font-weight: 700; letter-spacing: normal; }
.theme-scope .issue-search-quiet .form-input::placeholder { color: var(--color-text-muted); }
.theme-scope[data-theme="phage"] .issue-search-quiet input.form-input:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 3px; background: var(--color-bg-primary); }
.issue-search-quiet .issue-search-field > svg { left: 1rem; width: 1.125rem; height: 1.125rem; stroke: var(--color-text-muted); stroke-width: 2; }

/* collaborators and supporters: a light band above the footer, as on the old site */
.thanks { background: var(--color-bg-surface-muted); margin-top: calc(2 * var(--b)); }
.thanks .bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--b) calc(2 * var(--g)); }
.theme-scope .thanks-title { margin: 0 0 calc(var(--b) / 2); color: var(--color-text-secondary); }
.thanks .logos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--g) calc(2 * var(--g)); margin: 0; }
.thanks .logos img { height: 40px; width: auto; }
.thanks .logos img[src*="helmsley"] { height: 50px; }
@media (max-width: 40rem) {
  .thanks .bar { flex-direction: column; align-items: flex-start; }
}

.theme-scope footer.site { --color-bg-footer: var(--color-pdv3-blue-dark); --color-footer-heading: #C4C7CB; background: var(--color-bg-footer); color: var(--color-footer-text); --color-focus-ring: var(--color-footer-hover); }
[data-variant="dark"] .theme-scope footer.site { --color-bg-footer: var(--color-bg-page); }
footer.site .bar { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--space-gap-lg) calc(2 * var(--g)); padding-block: var(--space-gap-lg); font-size: var(--type-footer-copy); line-height: 1.5; }
.theme-scope footer.site p { margin: 0; }
.theme-scope footer.site a { color: var(--color-footer-link); text-decoration: none; text-underline-offset: 0.2em; }
.theme-scope footer.site a:hover { text-decoration: underline 1px var(--color-link-underline); }
.theme-scope footer.site a:is(:hover, :focus-visible) { color: var(--color-footer-hover); }
footer.site .about { display: grid; justify-items: start; gap: var(--space-gap-sm); min-width: 0; }
footer.site .footer-brand { line-height: 0; }
footer.site .footer-contact { overflow-wrap: anywhere; }
footer.site nav { display: flex; flex-direction: column; align-items: start; gap: var(--space-gap-xs); font-family: var(--font-role-control); }
.theme-scope footer.site nav > a { max-width: 100%; font-size: var(--type-footer-link); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.theme-scope footer.site .col-title { margin-bottom: var(--space-gap-xs); font-size: var(--type-supporting); font-weight: 650; line-height: 1.2; letter-spacing: -.01em; color: var(--color-footer-heading); }
footer.site .icons { display: flex; align-items: center; gap: var(--g); }
.theme-scope footer.site .icons a { text-decoration: none; }
.theme-scope footer.site .icons > :is(a, button.mode) { display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; margin: 0; padding: 0; }
footer.site .icons svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.theme-scope footer.site .icons > a svg circle { fill: currentColor; stroke: none; }
.theme-scope footer.site .icons > a, .theme-scope footer.site button.mode { color: var(--color-footer-icon); }
.theme-scope footer.site button.mode { background: transparent; border: 0; border-radius: 0; line-height: 0; cursor: pointer; }
.theme-scope footer.site .icons > :is(a, button.mode):is(:hover, :focus-visible) { background: transparent; color: var(--color-footer-hover); }
.theme-scope footer.site button.mode svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 48rem) {
  footer.site .bar { grid-template-columns: minmax(0, 1fr); row-gap: var(--rhythm-section); padding-block: calc(2 * var(--space-gap-md)); }
  footer.site .about { gap: var(--space-gap-lg); }
  footer.site .footer-contact { display: grid; gap: var(--space-gap-sm); }
  footer.site .footer-contact br { display: none; }
  footer.site nav { gap: 0; }
  .theme-scope footer.site .col-title { margin-bottom: 0; }
  .theme-scope footer.site nav > a { display: flex; align-items: center; min-height: calc(5 * var(--space-gap-sm)); font-size: var(--type-footer-link-compact); }
}
@media (width > 48rem) {
  footer.site .bar { column-gap: calc(3 * var(--space-gap-md)); padding-block: calc(2 * var(--space-gap-md)); }
  footer.site .about { gap: var(--space-gap-md); }
  footer.site nav { gap: var(--space-gap-md); }
  .theme-scope footer.site .col-title { margin-bottom: 0; }
}

/* ---------- lists of issues and people */
.theme-scope .cover img { display: block; width: 100%; margin-bottom: var(--b); border-radius: var(--radius-md); }
.cover figcaption { margin-top: calc(-1 * var(--b) + var(--b) / 4); }
.capsid-title { margin-top: 0; }
.theme-scope :is(.issue-list, .author-list) { list-style: none; padding: 0; }
.theme-scope .issue-list { display: grid; gap: 2rem; margin: 0 0 var(--b); }
.theme-scope .issue-row > a { display: flex; gap: calc(2 * var(--g)); align-items: start; padding-block: 0; border-bottom: 0; text-decoration: none; color: var(--color-text-primary); }
.issue-row .what { display: flex; flex: 1; flex-direction: column; gap: var(--feed-copy-gap); min-width: 0; }
.issue-row .title { font: var(--feed-title-font); color: var(--color-text-primary); }
.theme-scope .landing-feature-link:hover { color: var(--color-text-primary); text-decoration: none; }
.issue-row a:hover .title, .theme-scope .landing-feature-link:hover h2 { color: var(--color-link-hover); text-decoration: underline 3px var(--color-link-underline); text-underline-offset: 0.2em; }
.issue-row .sum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--color-text-secondary); }
.issue-row .issue-meta { display: flex; flex-wrap: wrap; gap: 0.125rem 0.875rem; margin-top: 0.375rem; font-size: var(--type-meta); line-height: 1.5; color: var(--meta); }
.issue-row time { flex: none; }
.issue-row .no { flex: none; color: var(--color-text-primary); }
.theme-scope .issue-row .thumb { flex: none; width: 20rem; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius-sm); background: var(--color-bg-muted); }
.issue-search { margin-bottom: 1rem; }
.issue-feedback { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-gap-md); margin-top: 0.5rem; font-size: var(--type-meta); }
.theme-scope .issue-count { margin: 0; font-size: inherit; color: var(--meta); }
.theme-scope .list-empty { padding-block: 2.5rem 3.5rem; color: var(--color-text-secondary); }
.theme-scope .list-empty h2 { margin: 0 0 .75rem; font-size: var(--type-empty-title); line-height: 1.25; font-weight: 700; color: var(--color-text-primary); }
.theme-scope .list-empty p { margin: 0; line-height: 1.6; }
/* The phage theme owns control selection colors; this scope only arranges the filters. */
.archive-filters { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
/* Control colors, spacing and states remain Prague-owned. Labels are screen-reader-only. */
.theme-scope .archive-filters :is(button, input) { font-family: var(--font-role-control); font-weight: 600; }
.archive-filters fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.theme-scope .format-options { flex-wrap: wrap; justify-content: start; }
.format-options button { gap: 0.5rem; }
.author-filter { display: flex; flex-direction: column; width: 15rem; max-width: 100%; }
.author-combobox { width: 100%; }
.author-chevron, .author-check { flex: none; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
/* Preserve native hidden behavior even when shared component CSS declares display. */
.theme-scope [hidden] { display: none !important; }
.theme-scope :focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }
@media (max-width: 44rem) {
  .theme-scope .issue-row > a { gap: var(--g); }
  .theme-scope .issue-row .thumb { width: 16rem; }
}
@media (max-width: 48rem) {
  .theme-scope .issue-row > a { flex-direction: column; gap: var(--rhythm-body); }
  .theme-scope .issue-row .thumb { order: -1; width: 100%; max-width: none; }
}
@media (max-width: 32rem) {
  header.site:not(.home-header) .bar { padding-block: var(--b) 0; }
}
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-gap-sm) var(--space-gap-lg); }
.byline-person { display: inline-flex; align-items: center; gap: var(--space-gap-sm); min-width: 0; max-width: 100%; }
.byline .avatar { flex: none; margin: 0; }
.byline a { text-decoration: none; color: var(--color-text-secondary); }
.byline a:hover { text-decoration: underline 1px var(--color-link-underline); }
.avatar { width: 32px; height: 32px; border-radius: var(--radius-full); object-fit: cover; vertical-align: middle; margin-right: 0.35em; }
span.avatar { display: inline-grid; place-items: center; background: var(--color-bg-muted); color: var(--color-text-secondary); }
.links { display: flex; flex-wrap: wrap; gap: 0 var(--g); }
.author-list a { display: grid; grid-template-columns: auto 1fr auto; gap: var(--g); align-items: center; padding-block: calc(var(--b) / 4); text-decoration: none; color: var(--color-text-primary); }
.author-list a:hover strong { text-decoration: underline 1px var(--color-link-underline); }
.author-list small { display: block; }

/* ---------- an issue */
.theme-scope .capsid-brand { display: inline-flex; width: 8.5rem; max-width: 100%; margin-bottom: 1.5rem; color: var(--color-text-primary); text-decoration: none; }
.theme-scope .capsid-brand:hover { color: var(--color-text-primary); }
.capsid-brand svg { display: block; width: 100%; height: auto; }
.theme-scope .home-page .capsid-brand { width: 6rem; margin-bottom: 1rem; }

.theme-scope .issue-header .kicker time { font: inherit; color: inherit; }

.kicker { margin: 0; display: flex; flex-wrap: wrap; gap: 0 0.75em; }
.theme-scope .note { padding: calc(var(--b) / 2) var(--g); border: 0; border-radius: var(--radius-md); background: var(--color-bg-secondary); }
.note > :last-child { margin-bottom: 0; }
.digest { margin-top: var(--b); }
.theme-scope .digest > h2 { margin: 0 0 var(--space-gap-md); padding: 0; border: 0; font: 600 var(--type-label)/1.5 var(--font-role-label); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-secondary); }
.digest#alerts h2 { color: var(--color-text-alert); }
.theme-scope .issue h2 { border-bottom: 0; padding-bottom: 0; }
.digest-band { padding-block: var(--space-gap-lg); background: var(--color-bg-secondary); }
.digest-band-inner { max-width: calc(var(--article-width) + 2 * var(--g)); margin-inline: auto; padding-inline: var(--g); }
.theme-scope .digest-band .digest { max-width: var(--article-width); margin: 0 auto; padding: 0; border: 0; }
.digest-band-alerts, .digest-band-jobs { background: var(--color-pdv3-pink--1); }
.digest-band-updates, .theme-scope .digest-disclosure-section.digest-band-updates { background: var(--color-bg-search); }
.digest-band-community, .theme-scope .digest-disclosure-section.digest-band-community { background: var(--color-pdv3-yellow-0); }
/* Subtle washes of the existing palette instead of the prototype's saturated dark bands. */
[data-variant="dark"] .digest-band-alerts, [data-variant="dark"] .digest-band-jobs { background: color-mix(in srgb, var(--color-bg-primary) 90%, var(--color-pdv3-pink-40)); }
[data-variant="dark"] .digest-band-updates { background: color-mix(in srgb, var(--color-bg-primary) 86%, var(--color-pdv3-teal)); }
[data-variant="dark"] .digest-band-community { background: color-mix(in srgb, var(--color-bg-primary) 90%, var(--color-pdv3-yellow-40)); }
.theme-scope .digest-band .digest > :last-child { margin-bottom: 0; }
.theme-scope .community-digest { margin-block: calc(2 * var(--space-gap-lg)); }
.community-digest-heading, .community-digest-tail { background: var(--color-bg-secondary); padding-block: var(--space-gap-md); }
.community-digest-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-gap-md); max-width: var(--article-width); margin-inline: auto; }
.theme-scope .community-digest-toolbar h2 { margin: 0 0 var(--space-gap-sm); font: 650 var(--type-h4)/1.4 var(--font-role-heading); }
.theme-scope .community-digest-counts { display: flex; flex-wrap: wrap; gap: var(--space-gap-sm) var(--space-gap-lg); margin: 0; padding: 0; list-style: none; }
.theme-scope .community-digest-counts li { display: flex; align-items: baseline; gap: 0.375rem; margin: 0; padding: 0; font-size: var(--type-meta); color: var(--color-text-secondary); }
.theme-scope .community-digest-counts strong { font-size: var(--type-h4); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--color-text-primary); }
.community-digest-tail .digest-band-inner { max-width: calc(var(--article-width) + 2 * var(--g)); text-align: right; }
.community-digest-toolbar button { flex: none; margin-left: auto; }
@media (max-width: 40rem) { .theme-scope .community-digest { margin-block: calc(2 * var(--space-gap-md)); } }
@media (max-width: 40rem) { .digest-band { padding-block: var(--space-gap-md); } }
[data-variant="dark"] .theme-scope .tags > span:not(.listing-tag) { color: var(--color-pdv3-brand-copy); }
.tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.theme-scope .tags > span:not(.listing-tag) { display: inline-block; padding: 0.125rem 0.5rem; font-size: var(--type-tag); line-height: 1.5; background: var(--color-pdv3-purewhite); color: var(--color-text-primary); border: 0; border-radius: 2px; }
details.older { margin-top: calc(-1 * var(--b) / 2); }
.digest-band details.older { margin-top: 0; }
details.older > summary { cursor: pointer; color: var(--color-link); font: 600 var(--type-control)/var(--b) var(--font-role-control); }
details.older[open] > summary { margin-bottom: calc(var(--b) / 2); }
.issue > footer { margin-top: calc(2 * var(--b)); }
.prev-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--g); }
.prev-next a { text-decoration: none; color: var(--color-text-primary); }
.prev-next small { display: block; }
.next { text-align: right; }
.authors { padding-top: var(--b); margin-top: var(--b); }
.authors h2 { margin-top: 0; }
.author-card { display: flex; gap: var(--g); align-items: start; margin-bottom: var(--b); }
.author-card img { border-radius: var(--radius-full); flex: none; }
.theme-scope .author-card :is(h1, .meta, .links) { margin: 0; }
.author-card h3 a { text-decoration: none; color: var(--color-text-primary); }
.author-card h3 a:hover { text-decoration: underline 1px var(--color-link-underline); }
.theme-scope .cite { margin-bottom: var(--b); }
.citation-format { display: flex; align-items: start; gap: var(--space-gap-md); }
.theme-scope .citation-format p { flex: 1; min-width: 0; margin: 0; }
.citation-format button { flex: none; }
.copy-button-content { display: inline-flex; align-items: center; gap: var(--space-gap-sm); }
.copy-button-content svg { flex: none; }
.theme-scope :is([data-copy-control], [data-share-issue]) { --leading-normal: 1.25; }
.theme-scope :is([data-copy-control], [data-share-issue], .issue-rss):focus-visible { outline: 2px solid var(--color-text-muted); outline-offset: 2px; }
.theme-scope :is([data-copy-control], [data-share-issue], .issue-rss):focus:not(:focus-visible) { outline: none; }
.theme-scope :is(.btn-ghost[data-copy-control], [data-share-issue], .issue-rss):focus:not(:focus-visible) { background-color: transparent; }
.theme-scope .citation-downloads { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-gap-md); margin-bottom: 0; }
.theme-scope .citation-feedback:not(.visually-hidden) { margin-block: var(--space-gap-md) 0; }

@media (prefers-reduced-motion: no-preference) { .theme-scope a { transition: color 0.15s; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Publication masthead uses the same edges as all article sections. */
header.article-masthead .bar { max-width: calc(var(--article-width) + 2 * var(--g)); }
/* Interior pages give the shared site masthead its own full-width band. */
header.site.interior-header { background: var(--color-bg-site-header); }
header.site:has(.explore-trigger[aria-expanded="true"]) { background: var(--color-bg-explore-panel); }

/* Muted decoration is the resting state; arrows retain pink interaction feedback. */
.theme-scope .explore-panel { --color-grid-rule: color-mix(in srgb, var(--color-text-muted) 12%, var(--color-bg-explore-panel)); }
.theme-scope :is(.compact-tile, .hub-panel, .tile-linked):is(:hover, :focus-within) {
  --color-grid-arrow: var(--color-link-underline);
}
header.site.interior-header .bar { padding-block: var(--b); }

/* Citation-style Prague disclosure with edge-to-edge section backgrounds. */
.theme-scope .community-digest-disclosure { margin: 0; }
.digest-disclosure-label { display: flex; flex: 1; min-width: 0; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-gap-sm) var(--space-gap-md); }
.digest-disclosure-counts { display: flex; flex-wrap: wrap; gap: var(--space-gap-md); color: var(--color-text-secondary); font-weight: 400; font-size: var(--type-meta); }
.digest-disclosure-counts strong { color: var(--color-text-primary); font-variant-numeric: tabular-nums; }
.theme-scope .community-digest-disclosure > .details-content { padding: 0; }
.theme-scope .sponsor-disclosure .digest > h2 { display: none; }
.theme-scope .sponsor-disclosure .digest-disclosure-section { padding-top: 0.75rem; }
.theme-scope .digest-disclosure-section { margin: 0; padding: var(--space-card-padding); border: 0; border-radius: 0; }
.theme-scope .digest-disclosure-section .digest { margin: 0; }
.theme-scope .digest-disclosure-section .digest > :last-child { margin-bottom: 0; }
.digest-disclosure-actions { padding: 0; }
.theme-scope .digest-collapse-banner { width: 100%; border: 0; border-radius: 0; text-align: left; justify-content: flex-start; font-family: inherit; }

.theme-scope .digest-disclosure-section.digest-band-community { background: var(--color-pdv3-yellow-5); }
.theme-scope .digest-disclosure-section.digest-band-jobs { background: var(--color-pdv3-pink--1); }
.theme-scope .digest-disclosure-section.digest-band-alerts { background: var(--color-pdv3-pink--1); }
[data-variant="dark"] .theme-scope .digest-disclosure-section.digest-band-alerts { background: color-mix(in srgb, var(--color-bg-primary) 90%, var(--color-pdv3-pink-40)); }
[data-variant="dark"] .theme-scope .digest-disclosure-section.digest-band-updates { background: color-mix(in srgb, var(--color-bg-primary) 86%, var(--color-pdv3-teal)); }
[data-variant="dark"] .theme-scope .digest-disclosure-section.digest-band-jobs { background: color-mix(in srgb, var(--color-bg-primary) 90%, var(--color-pdv3-pink-40)); }
[data-variant="dark"] .theme-scope .digest-disclosure-section.digest-band-community { background: color-mix(in srgb, var(--color-bg-primary) 90%, var(--color-pdv3-yellow-40)); }

/* Colored title strips belong to the contained digest variant. */
.theme-scope .digest-disclosure-section:is(.digest-band-updates, .digest-band-jobs, .digest-band-community) { overflow: hidden; }
.theme-scope .digest-disclosure-section:is(.digest-band-updates, .digest-band-jobs, .digest-band-community) .digest > h2 {
  margin: calc(-1 * var(--space-card-padding)) calc(-1 * var(--space-card-padding)) var(--space-gap-md);
  padding: var(--space-gap-sm) var(--space-card-padding);
}
.theme-scope .digest-disclosure-section.digest-band-updates .digest > h2 { background: var(--color-pdv3-brand-20); color: var(--color-pdv3-brand-100); border-left: 8px solid var(--color-pdv3-teal); padding-left: calc(var(--space-card-padding) - 8px); }
.theme-scope .digest-disclosure-section.digest-band-jobs .digest > h2 { background: var(--color-pdv3-pink-10); color: var(--color-pdv3-brand-100); border-left: 8px solid var(--color-pdv3-pink-40); padding-left: calc(var(--space-card-padding) - 8px); }

.theme-scope .digest-disclosure-section.digest-band-community .digest > h2 { background: var(--color-pdv3-yellow-20); color: var(--color-pdv3-brand-100); border-left: 8px solid var(--color-pdv3-yellow-40); padding-left: calc(var(--space-card-padding) - 8px); }

.digest-disclosure-count { display: inline-flex; align-items: baseline; gap: 0.375rem; }
@media (max-width: 24rem) {
  .digest-disclosure-counts:has(> :nth-child(4)) { display: grid; width: 100%; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7em), 1fr)); gap: var(--rhythm-tight) var(--rhythm-body); }
}

/* Article end matter: explicit gaps instead of accumulated child margins. */
.theme-scope .issue .authors { display: grid; gap: var(--space-gap-lg); padding: 0; }
.theme-scope .issue .authors .author-card { margin: 0; }
.theme-scope .issue .authors .author-card > div { min-width: 0; }
.theme-scope .issue .authors .author-card h3 { margin-top: 0; }
.theme-scope .issue .authors .author-card > div > :last-child { margin-bottom: 0; }
@media (max-width: 40rem) {
  .theme-scope .issue .authors .author-card { flex-direction: column; gap: var(--space-gap-md); }
  .theme-scope .issue .authors .author-card > div { width: 100%; }
}
.theme-scope .issue > footer { display: grid; gap: var(--space-gap-lg); }
.theme-scope .issue > footer > :is(.cite, .prev-next) { margin: 0; }

/* Editorial wrapping: balance headings and discourage short last lines in prose. */
.theme-scope :is(.issue, .issue-row) :is(h1, h2, h3), .theme-scope .issue-row .title { text-wrap: balance; }
.theme-scope :is(.issue :is(.prose, .rich-text), .issue .lede, .issue-row .what) p { text-wrap: pretty; }
.theme-scope .issue .lede { text-wrap: pretty; }

/* Borderless article panels: separation comes from their filled surfaces. */
.theme-scope .issue :is(.authors.app-card, .community-digest-disclosure, .cite, .citation-format.app-card) { border: 0; }

.theme-scope .digest-collapse-banner .details-icon { transform: none; }

/* Give individual digest entries more room without loosening their paragraphs. */
.theme-scope .digest-disclosure-section { --space-card-padding: 1.5rem; }
@media (max-width: 40rem) {
  .theme-scope .digest-disclosure-section { --space-card-padding: 1.25rem; }
}

.theme-scope .author-avatar { flex: none; border-radius: var(--radius-full); object-fit: cover; margin: 0; }
.theme-scope .author-avatar-fallback { display: inline-flex; align-items: center; justify-content: center; width: var(--avatar-size, 32px); height: var(--avatar-size, 32px); border-radius: 50%; background: var(--color-interaction-selected); }
.theme-scope .author-avatar-fallback img { width: 65%; height: 65%; object-fit: contain; border-radius: 0; margin: 0; }

/* ---------- Shared typography: public UI and editorial reading roles ----------
   Article paragraphs: 16px. Digest interiors: 8px. Author notes: 12px.
   Space before a heading belongs to its section; space after keeps its copy close.
   Site-owned roles extend Prague's typography; consumers use names, not sizes.
   Small text uses 14px compact and 16px standard roles (Jan, October 5). */
.theme-scope {
  --type-title: clamp(2.5rem, 5vw, 2.75rem);
  --type-landing-statement: clamp(1.5rem, 3vw, 2.25rem);
  --type-feature-title: clamp(1.75rem, 3vw, 2.25rem);
  --type-h2: 1.75rem;
  --type-h3: 1.3125rem;
  --type-h4: 1.125rem;
  --type-h5: 1rem;
  --type-h6: 1rem;
  --type-article: 1.0625rem;
  --type-reading: 1.125rem;
  --font-role-reading: var(--font-role-body);
  --leading-reading: 1.6;
  --type-supporting: 1rem;
  --type-meta: 1rem;

  /* Public page hierarchy (distinct from article H1–H6 above). */
  --type-page-title: 2.5rem;
  --type-section-title: 1.5rem;
  --type-subheading: var(--type-article);
  --type-lede: 1.25rem;
  --type-kicker: var(--type-h4);
  --type-label: 0.875rem;
  --type-caption: 0.875rem;
  --type-code-relative: 0.875em;
  --type-empty-title: clamp(1.5rem, 3vw, 1.875rem);
  --type-record-title: clamp(1.5rem, 3vw, 2rem);

  /* Discovery rows and controls: compact and standard size roles. */
  --type-feed-title: 1.375rem;
  --type-list-title: var(--type-h4);
  --type-list-summary: 1rem;
  --type-list-date: var(--type-label);
  --type-control: var(--type-meta);
  --type-control-roomy: var(--type-supporting);
  --type-control-count: var(--type-label);
  --type-tag: var(--type-caption);
  --type-tag-roomy: var(--type-meta);
  --type-search: clamp(1.5rem, 2.5vw, 1.75rem);
  --type-search-quiet: var(--type-h4);
  --type-tile-title: 1.25rem;
  --type-tile-item-title: 1rem;

  /* Shared identity and site navigation. */
  --type-profile-name: var(--type-h2);
  --type-profile-name-compact: var(--type-feed-title);
  --type-profile-name-list: var(--type-list-title);
  --type-monogram: 1.625rem;
  --type-monogram-compact: 1.375rem;
  --type-monogram-small: 1.0625rem;
  --type-statistic: var(--type-h2);
  --type-statistic-compact: var(--type-section-title);
  --type-footer-copy: 1rem;
  --type-footer-link: 1.25rem;
  --type-footer-link-compact: var(--type-h4);
  --type-nav-feature: clamp(2.5rem, 8vw, 4.5rem);

  --rhythm-tight: var(--rhythm-minor);
  --rhythm-note: calc(3 * var(--rhythm-unit));
  --rhythm-body: var(--layout-gutter);
  --rhythm-block: var(--rhythm-major);
  --rhythm-subsection: calc(8 * var(--rhythm-unit));
  --rhythm-entry: calc(10 * var(--rhythm-unit));
  --rhythm-section: calc(12 * var(--rhythm-unit));
}

/* Bind Prague prose to the publication body role; nested supporting roles below remain explicit. */
.theme-scope .prose { font-size: var(--type-article); }

/* Formatted UI content: Markdown structure without a reading-font switch. */
.theme-scope .rich-text { font-family: var(--font-role-body); --flow-space: var(--rhythm-body); min-width: 0; overflow-wrap: anywhere; }
.theme-scope .rich-text:not(.layout-stack):not(.content-section-body) { display: flow-root; }
.theme-scope .rich-text :where(p, ul, ol, dl, blockquote, pre, figure, table, hr, h1, h2, h3, h4, h5, h6) { margin-block: 0; }
.theme-scope .rich-text:not(.layout-stack):not(.content-section-body) > * + *,
.theme-scope .rich-text :where(section, blockquote, li) > * + * { margin-block-start: var(--flow-space); }
.theme-scope .rich-text li + li { margin-block-start: var(--rhythm-tight); }
.theme-scope .rich-text ul { list-style-type: disc; }
.theme-scope .rich-text ol { list-style-type: decimal; }
.theme-scope .rich-text :where(p, li, dd) { font-size: inherit; line-height: inherit; }
.theme-scope .rich-text pre { overflow-x: auto; }
.theme-scope .rich-text img { height: auto; }

/* Public controls opt into site roles instead of Prague's smaller defaults. */
.theme-scope :is(.issue, .issues, .listing-feed, pd-show-more, .cite) { --text-button: var(--type-control); }
.theme-scope :is(.issue, .cite) .details-summary { font-size: var(--type-control); }

/* Shared vertical composition: the parent owns gaps, never stacked child margins. */
.theme-scope .layout-stack { --stack-gap: var(--rhythm-block); display: flex; flex-direction: column; gap: var(--stack-gap); }
.theme-scope .layout-stack-section { --stack-gap: var(--rhythm-section); }
.theme-scope .layout-stack > * { min-width: 0; margin-block: 0; }

/* All prose owns only its inter-block gaps, with no trailing paragraph margin. */
.theme-scope :is(.issue :is(.prose, .rich-text), .author-card .rich-text, .post-body) {
  --flow-space: var(--rhythm-note);
  display: flow-root;
  font-size: var(--type-supporting);
  line-height: 1.5;
}
.theme-scope :is(.issue > .prose, .post-body) {
  --flow-space: var(--rhythm-body);
  font-size: var(--type-article);
  line-height: 1.647058824; /* 17/28 */
}
.theme-scope .post-body { overflow-wrap: anywhere; }
.theme-scope :is(.issue :is(.prose, .rich-text), .author-card .rich-text, .post-body) :where(p, ul, ol, dl, blockquote, pre, figure, table, hr, h1, h2, h3, h4, h5, h6, .table-scroll) { margin-block: 0; }
.theme-scope :is(.issue :is(.prose, .rich-text), .author-card .rich-text, .post-body) :where(p, li, dd) { font-size: inherit; line-height: inherit; }
.theme-scope :is(.issue :is(.prose, .rich-text), .author-card .rich-text, .post-body) > * + *,
.theme-scope :is(.issue :is(.prose, .rich-text), .author-card .rich-text, .post-body) :where(section, blockquote, li) > * + * { margin-block-start: var(--flow-space); }

/* The article title and masthead metadata form a single predictable stack. */
.theme-scope .issue-header { display: grid; gap: var(--rhythm-subsection); }
.theme-scope .issue-header > :is(h1, p) { margin: 0; }
.theme-scope .issue-header > h1 {
  font: 700 var(--type-title)/1.12 var(--font-role-display);
  letter-spacing: -0.02em;
}
.theme-scope .issue-header .kicker { font-size: var(--type-kicker); line-height: 1.333333333; color: var(--color-text-secondary); }
.theme-scope .issue-header .byline { font-size: var(--type-supporting); line-height: 1.5; }
.theme-scope .issue-header .lede { font-size: var(--type-lede); line-height: 1.5; }

/* H1–H6 in long-form articles. Component headings have their own rules below. */
.theme-scope .issue > .prose :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-role-heading);
  font-weight: 650;
  color: var(--color-text-heading);
  padding: 0;
  border: 0;
  text-wrap: balance;
  letter-spacing: -0.015em;
}
.theme-scope .issue > .prose h1 { font-size: var(--type-title); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.theme-scope .issue > .prose h2 { font-size: var(--type-h2); line-height: 1.214285714; }
.theme-scope .issue > .prose h3 { font-size: var(--type-h3); line-height: 1.333333333; }
.theme-scope .issue > .prose h4 { font-size: var(--type-h4); line-height: 1.333333333; }
.theme-scope .issue > .prose h5 { font-size: var(--type-h5); line-height: 1.5; letter-spacing: 0; }
.theme-scope .issue > .prose h6 { font-size: var(--type-h6); line-height: 1.428571429; letter-spacing: 0; }
.theme-scope .issue > .prose :is(* + h1, * + h2) { margin-block-start: var(--rhythm-section); }
.theme-scope .issue > .prose * + h3 { margin-block-start: var(--rhythm-subsection); }
.theme-scope .issue > .prose :is(* + h4, * + h5, * + h6) { margin-block-start: var(--rhythm-block); }
.theme-scope .issue > .prose :is(h1, h2) + * { margin-block-start: var(--rhythm-note); }
.theme-scope .issue > .prose :is(h3, h4, h5, h6) + * { margin-block-start: var(--rhythm-tight); }
.theme-scope .issue > .prose :is(h1, h2, h3, h4, h5, h6) + :is(h1, h2, h3, h4, h5, h6) { margin-block-start: var(--rhythm-note); }

/* Lists, quotes, code and tables fit the same flow, without nested margin piles. */
.theme-scope :is(.issue :is(.prose, .rich-text), .author-card .rich-text) li + li { margin-block-start: 0.25rem; }
.theme-scope :is(.issue :is(.prose, .rich-text), .author-card .rich-text) li > :is(ul, ol) { margin-block-start: var(--rhythm-tight); }
.theme-scope .issue > .prose > :is(blockquote, pre, .code-block, figure, .table-block, .table-contained, hr),
.theme-scope .issue > .prose > :is(blockquote, pre, .code-block, figure, .table-block, .table-contained, hr) + :not(h1, h2, h3, h4, h5, h6) { margin-block-start: var(--rhythm-block); }
.theme-scope .issue > .prose > :is(blockquote, pre, .code-block, figure, .table-block, .table-contained, hr):first-child { margin-block-start: 0; }
.theme-scope .issue :is(.prose, .rich-text) blockquote { font-size: inherit; line-height: inherit; font-style: normal; }
.theme-scope .issue :is(.prose, .rich-text) blockquote p::before,
.theme-scope .issue :is(.prose, .rich-text) blockquote p::after { content: none; }
.theme-scope .issue :is(.prose, .rich-text) pre { font-size: var(--type-meta); line-height: 1.571428571; }
.theme-scope .issue :is(.prose, .rich-text) pre code { font-size: inherit; line-height: inherit; }
.theme-scope .issue :is(.prose, .rich-text) :is(th, td) { font-size: var(--type-meta); line-height: 1.428571429; padding: 0.5rem 0.625rem; }
.theme-scope .issue :is(.prose, .rich-text) thead th { padding-block: 0.375rem; }

/* Digest: compact labels and titles, grouped copy, clear separation between entries. */
.theme-scope .digest-item { font-size: var(--type-supporting); line-height: 1.5; margin: 0; }
.theme-scope .digest-item + .digest-item { margin-block-start: var(--rhythm-entry); }
.theme-scope .digest-item > * { margin-block: 0; }
.theme-scope .digest-item > * + * { margin-block-start: var(--rhythm-tight); }
/* Only sustained article bodies opt in. Headings, controls and metadata retain UI roles. */
.theme-scope .prose.reading-text {
  font-family: var(--font-role-reading);
  font-size: var(--type-reading);
  line-height: var(--leading-reading);
  max-width: var(--article-width);
}
body.theme-scope .prose.reading-text :is(h1, h2, h3, h4, h5, h6) { font-family: var(--font-role-heading); }
.theme-scope .reading-text :is(button, input, select, textarea, .meta, .code-toolbar, .table-scroll-hint, .author-card, .digest) { font-family: var(--font-role-control); }

.theme-scope .issue > .note.rich-text { --flow-space: var(--rhythm-tight); font-size: var(--type-article); line-height: calc(28 / 17); }
.theme-scope .digest-item .rich-text { --flow-space: var(--rhythm-tight); font-size: 1rem; line-height: 1.75; }
.theme-scope .digest-item > h3 { font: 650 var(--type-h4)/1.333333333 var(--font-role-heading); }
.theme-scope .digest-item > :is(.meta, .tags) { font-size: var(--type-meta); line-height: 1.428571429; }
.theme-scope .digest-item > * + :is(.tags, .digest-item-meta) { margin-block-start: var(--rhythm-body); }
.theme-scope .digest-item-meta > .tags { margin-block: 0; }

/* Authors: compact identity, then an evenly spaced note and issue link. */
.theme-scope .author-card h3 { font: 650 var(--type-h4)/1.333333333 var(--font-role-heading); margin: 0; }
.theme-scope .author-card :is(.meta, .links) { font-size: var(--type-meta); line-height: 1.428571429; }
.theme-scope .author-card .links { margin-top: 0.25rem; row-gap: 0.25rem; }
.theme-scope .author-card .rich-text { --flow-space: var(--rhythm-note); margin-top: var(--rhythm-note); }
.theme-scope .author-card .author-issues { margin: var(--rhythm-note) 0 0; font-size: var(--type-supporting); line-height: 1.5; }

/* Only the identity card is narrow; the issue feed retains the normal wide grid. */
.theme-scope .public-profile-page > .author-card { justify-self: center; }
/* Layout-only consumers; visual density belongs to the shared person family below. */
.theme-scope .author-profile { width: 100%; margin-block: 1rem 3rem; }
.theme-scope .author-profile > div { width: 100%; min-width: 0; }
.theme-scope .author-card.profile-landscape { width: 100%; max-width: 34rem; margin: 0; }
@media (max-width: 40rem) {
  .theme-scope .author-profile { margin-block: .5rem 2rem; }
}

/* Code tools reuse the citation copy control; the toolbar never scrolls with code. */
.theme-scope :is(.prose, .rich-text) .code-block { position: relative; border-radius: var(--radius-md); background: var(--color-bg-code); overflow: hidden; }
.code-toolbar { display: flex; justify-content: flex-end; padding: 0.25rem; }
.theme-scope .code-toolbar .btn-ghost { background-color: transparent; }
.theme-scope :is(.prose, .rich-text) .code-block > pre { margin: 0; padding: 0 var(--g) var(--g); border: 0; border-radius: 0; background: transparent; }
.theme-scope :is(.prose, .rich-text) .code-feedback:not(.visually-hidden) { margin: 0; padding: 0 var(--g) var(--g); font-size: var(--type-meta); }

/* Wide tables retain readable columns; only the scroll region can overflow. */
.table-block { width: 100%; min-width: 0; }
.theme-scope .table-block > .table-scroll { margin: 0; }
.theme-scope .table-wide table { min-width: calc(var(--table-columns) * 7rem); overflow-wrap: normal; }
.theme-scope .table-wide :is(th, td) { min-width: 5.5rem; }
.theme-scope .table-wide :is(th, td):first-child { position: sticky; left: 0; z-index: 1; background: var(--color-bg-primary); }
.theme-scope .table-wide th:first-child { background: var(--color-bg-secondary); }
.theme-scope .table-wide tbody :is(th, td):first-child { transition: background-color 0.15s; }
.theme-scope .table-wide tbody tr:hover > :is(th, td):first-child { background-color: var(--color-bg-hover); }
.theme-scope :is(.prose, .rich-text) .table-scroll-hint { margin: var(--rhythm-tight) 0 0; font-size: var(--type-meta); line-height: 1.428571429; color: var(--color-text-muted); }
@media (min-width: 64rem) {
  .theme-scope .issue > .prose > .table-wide {
    width: min(var(--wide), calc(100vw - 2 * var(--g)));
    max-width: none;
    margin-inline: calc((100% - min(var(--wide), calc(100vw - 2 * var(--g)))) / 2);
  }
}

/* Shared interactive tags and selected filters. ListingTag owns list/detail markup. */
.theme-scope .tag-filter { position: relative; margin: 0 0 0 auto; }
.theme-scope .listing-tag { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 2px; background: var(--color-pdv3-purewhite); color: var(--color-pdv3-brand-100); padding: .125rem .5rem; font: 500 var(--type-tag)/1.6 var(--font-role-control); cursor: pointer; }
.theme-scope .listing-tag-label { cursor: default; }
.theme-scope a.listing-tag { text-decoration: none; }
.theme-scope .listing-tag:not(.listing-tag-label):is(:hover, [aria-pressed="true"]) { background: var(--color-control-active-bg); color: var(--color-control-active-text); }
.theme-scope :is(.listing-tag, .selected-tags button):focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }
.selected-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1rem; }
.theme-scope .selected-tags button { border: 0; border-radius: 2px; padding: .25rem .5rem; background: var(--color-pdv3-purewhite); color: var(--color-pdv3-brand-100); font: inherit; font-size: var(--type-tag-roomy); cursor: pointer; }

/* Capsid search retains its white field. Browse selection uses the shared role below. */
html:not([data-variant="dark"]) .theme-scope[data-theme="phage"] .issue-search {
  --color-bg-primary: var(--color-pdv3-purewhite);
}

/* Checkbox-style tag buttons avoid native checkbox painting in embedded browsers. */
.tag-check::after { content: ""; width: .3rem; height: .55rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); visibility: hidden; }
:is([aria-checked="true"], [aria-selected="true"]) > .tag-check::after { visibility: visible; }

.theme-scope .tag-filter [data-tag-count] { color: var(--color-link-underline); font-weight: 700; }
.theme-scope .tag-filter [data-tag-count]:not(:empty) { margin-inline-start: .375rem; }

/* Shared tag surfaces in dark mode. */
[data-variant="dark"] .theme-scope :is(.listing-tag, .tags > span:not(.listing-tag), .selected-tags button) { background: var(--color-bg-secondary); color: var(--color-text-primary); }
[data-variant="dark"] .theme-scope :is(.listing-tag:not(.listing-tag-label):is(:hover, [aria-pressed="true"]), .selected-tags button) { background: var(--color-control-active-bg); color: var(--color-control-active-text); }

/* Lists, ruled records and passive tags share neutral light-mode surfaces. */
html:not([data-variant="dark"]) .theme-scope[data-theme="phage"] :is(.listing-tag, .selected-tags) {
  --color-interaction-hover: var(--color-bg-tag-hover);
  --color-browse-active-bg: var(--color-bg-tag-selected);
  --color-browse-active-text: var(--color-text-primary);
}
html:not([data-variant="dark"]) .theme-scope[data-theme="phage"] :is(.listing-tag, .tags > span:not(.listing-tag)) {
  background: var(--color-bg-tag); color: var(--color-text-primary);
}
html:not([data-variant="dark"]) .theme-scope[data-theme="phage"] .listing-tag:not(.listing-tag-label):is(:hover, :focus-visible, [aria-pressed="true"]) {
  background: var(--color-bg-tag-hover); color: var(--color-text-primary);
}

html:not([data-variant="dark"]) .theme-scope[data-theme="phage"] input[type="search"].form-input { background-color: var(--color-pdv3-purewhite); }

/* Compact shared header: brand and navigation share one row. */
header.site .header-inner { max-width: calc(var(--wide) + 2 * var(--g)); margin: 0 auto; padding: 1.5rem var(--g); display: flex; align-items: center; gap: 2rem; }
header.site .header-inner .bar { display: flex; align-items: center; padding: 0; margin: 0; flex: 0 1 auto; min-width: 0; }
header.site .header-inner .masthead { margin: 0; width: auto; flex: 0 1 auto; min-width: 0; line-height: 0; }
header.site .header-inner .masthead img { width: 13rem; transform: none; }
header.article-masthead .header-inner .bar { gap: 1rem; }
header.article-masthead .header-inner .capsid-brand { width: clamp(3.5rem, 8vw, 4.5rem); }
@media (max-width: 62rem) { header.site .header-inner { padding-block: 1rem; gap: 1rem; } header.site .header-inner .masthead img { width: clamp(9rem, 48vw, 16rem); } }

/* One shared toolbar rhythm and type treatment for every searchable list. */
.theme-scope :is(.issues, .listing-feed) { font-family: var(--font-role-body); }
.theme-scope .list-controls { display: grid; gap: .5rem; margin-bottom: var(--rhythm-subsection); }
.theme-scope .list-controls:empty { display: none; }
.theme-scope .list-controls > .issue-search { margin: 0 0 .5rem; }
.theme-scope .list-controls > .issue-search-row { display: flex; align-items: center; gap: var(--space-gap-md); margin-bottom: .5rem; min-width: 0; }
.theme-scope .issue-search-row > .issue-search { flex: 1; min-width: 0; margin: 0; }
.theme-scope .capsid-feed .issue-search-row > .capsid-brand { flex: 0 0 6rem; width: 6rem; margin: 0; }
@media (max-width: 40rem) {
  .theme-scope .capsid-feed .issue-search-row > .capsid-brand { display: none; }
}
.theme-scope .list-controls :is(.archive-filters, .selected-tags, .list-feedback) { margin: 0; }
.theme-scope .listing-toolbar { display: grid; min-width: 0; gap: .5rem; }
.theme-scope .list-controls .archive-filters { align-items: baseline; gap: .5rem 1rem; }
/* A lone Tags control shares the search edge; emitted scripts are not controls. */
.theme-scope .archive-filters:not(:has(> :not(.tag-filter, script, style))) > .tag-filter { margin-left: 0; }
.theme-scope .archive-filters:not(:has(> :not(.tag-filter, script, style))) > .tag-filter .filter-menu.dropdown-menu { left: 0; right: auto; }
.theme-scope .list-controls :is(button, input, select, summary) { font-family: var(--font-role-control); }
.theme-scope .list-controls :is(.toggle-group-item, .filter-trigger, .selected-tags button) { line-height: 1.5; font-weight: 600; }
.theme-scope .list-controls :is(.toggle-group-item, .filter-trigger) { font-size: var(--type-control); }
.theme-scope .list-feedback { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 1rem; min-height: 0; font: 400 var(--type-control)/1.5 var(--font-role-control); }
.theme-scope .list-feedback p { margin: 0; font: inherit; color: var(--color-text-muted); }
.theme-scope .list-feedback .btn-ghost { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--color-text-primary); font: 600 var(--type-control)/1.5 var(--font-role-control); text-decoration: none; }
.theme-scope .list-feedback .btn-ghost:is(:hover, :focus-visible) { background: transparent; color: var(--color-link); text-decoration: underline; text-decoration-color: var(--color-link-underline); }
/* A sole tag facet keeps selected chips and feedback beside its trigger. */
.theme-scope .listing-toolbar-inline-tags { position: relative; grid-template-columns: max-content minmax(0, max-content) max-content; align-items: center; column-gap: 1rem; }
.theme-scope .listing-toolbar.listing-toolbar-inline-tags > .archive-filters { position: static; display: block; }
.theme-scope .listing-toolbar-inline-tags > .archive-filters > .tag-filter { width: auto; margin: 0; }
.theme-scope .listing-toolbar-inline-tags > .selected-tags { min-width: 0; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.theme-scope .listing-toolbar-inline-tags > .selected-tags > button { flex: 0 0 auto; white-space: nowrap; }
.theme-scope .listing-toolbar-inline-tags > .selected-tags > button:focus-visible { outline-offset: -2px; }
.theme-scope .listing-toolbar-inline-tags > .list-feedback { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 40rem) {
  .theme-scope .listing-toolbar-inline-tags { grid-template-columns: max-content minmax(0, 1fr); }
  .theme-scope .listing-toolbar-inline-tags > .list-feedback { grid-column: 1 / -1; }
  .theme-scope .listing-toolbar-inline-tags > .list-feedback .btn-ghost { display: inline-flex; align-items: center; min-height: 2.75rem; }
}
.theme-scope .issue-list > .issue-row { margin: 0; border: 0; }

/* Shared searchable filter menus. Prague owns surfaces, radius and hover roles. */
.theme-scope .listing-sort { display: flex; align-items: center; gap: var(--space-gap-sm); min-width: 0; margin-left: auto; font-size: var(--type-meta); color: var(--color-text-muted); }
.theme-scope .listing-sort label { flex: none; margin: 0; }
/* Native facets and Tags share a row; Sort alone owns the trailing margin. */
.theme-scope .listing-facet-controls { display: grid; flex: 1 1 100%; min-width: 0; grid-template-columns: minmax(0, 1fr) max-content; align-items: stretch; gap: var(--space-gap-md); }
.theme-scope .listing-facet-controls:not(:has(.tag-filter)) { grid-template-columns: minmax(0, 1fr); }
.theme-scope .listing-facet-controls > .tag-filter { width: auto; margin: 0; }
.theme-scope .listing-facet-controls .filter-trigger.form-input { min-height: 2.5rem; height: 100%; }
.theme-scope .listing-facets { display: grid; min-width: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: var(--space-gap-sm) var(--space-gap-md); }
.theme-scope .listing-facet { display: grid; align-content: start; min-width: 0; font-size: var(--type-meta); color: var(--color-text-muted); }
.theme-scope .listing-facet label { margin: 0; }
.theme-scope .list-controls .listing-facet .form-select { width: 100%; min-width: 0; }
/* Native select variant: keep Prague's arrow and padding-right reservation. */
.theme-scope .list-controls .form-select { width: auto; max-width: 100%; min-height: 2.5rem; --text-input: var(--type-control); font-weight: 600; border: 0; cursor: pointer; }
.theme-scope .list-controls .form-select:hover { background-color: var(--color-control-active-bg); color: var(--color-control-active-text); }
.theme-scope .filter-picker { position: relative; min-width: 0; }
.theme-scope .facet-filter { width: 100%; margin: 0; }
.theme-scope .facet-filter .filter-menu.dropdown-menu { width: 18rem; }
.theme-scope .filter-trigger.form-input { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; min-width: 0; border: 0; text-align: left; cursor: pointer; }
.filter-trigger > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-scope .filter-trigger:is(:hover, [aria-expanded="true"]) { background: var(--color-control-active-bg); color: var(--color-control-active-text); }
.theme-scope .filter-menu.dropdown-menu { width: max(100%, 18rem); min-width: 0; max-width: calc(100vw - 2rem); left: auto; right: 0; margin: .5rem 0 0; }
.theme-scope [data-filter-open] .filter-menu { margin: 0; right: auto; }
.filter-options { max-height: min(18rem, 45vh); overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: .25rem; }
.theme-scope .filter-option.dropdown-item { gap: .75rem; margin: 0; font: 600 var(--type-control)/1.5 var(--font-role-control); text-align: left; white-space: normal; }
.filter-option > span:last-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.filter-check { display: grid; place-items: center; flex: none; width: 1rem; height: 1rem; }
/* Tags add the inline check only when selected, keeping other labels flush left. */
.theme-scope .tag-menu :is(.filter-menu-head, .filter-option, .filter-empty) { padding-inline: var(--space-gap-sm); }
.theme-scope .tag-menu .filter-option { gap: var(--space-gap-sm); }
.theme-scope .tag-menu .filter-option:is([aria-checked="false"], [aria-selected="false"]) > .filter-check { display: none; }
.theme-scope .filter-option:is([aria-checked="true"], [aria-selected="true"]) { background: var(--color-control-active-bg); color: var(--color-control-active-text); }
.theme-scope .filter-option:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: -2px; }
.theme-scope .filter-empty { margin: 0; }
.theme-scope .filter-dismiss { display: none; }
@media (max-width: 40rem) {
  .theme-scope .filter-menu-head { display: flex; align-items: center; gap: var(--space-gap-sm); }
  .theme-scope .filter-menu-head input { flex: 1; min-width: 0; }
  .theme-scope .filter-dismiss { display: inline-flex; flex: 0 0 3rem; width: 3rem; min-height: 3rem; padding: 0; }
  .filter-dismiss svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  /* Two readable columns, collapsing to one when enlarged text needs the space. */
  .theme-scope .list-controls .archive-filters { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(8.5rem, (100% - var(--space-gap-sm)) / 2)), 1fr)); align-items: stretch; gap: var(--space-gap-sm); }
  .archive-filters > :is(.format-filter, .listing-sort, .listing-facet-controls) { grid-column: 1 / -1; }
  .theme-scope .listing-facet-controls { display: flex; flex-wrap: wrap; gap: var(--space-gap-sm); }
  .theme-scope .listing-facets { flex: 1 1 10rem; grid-template-columns: minmax(0, 1fr); }
  .theme-scope .listing-sort { width: 100%; margin-left: 0; }
  .theme-scope .listing-sort .form-select { flex: 1; min-width: 0; width: 100%; }
  .theme-scope .archive-filters > .tag-filter { width: 100%; margin: 0; }
  .archive-filters:not(:has(.author-filter)) > .tag-filter { grid-column: 1 / -1; }
  .author-filter { width: 100%; min-width: 0; }
  .theme-scope .archive-filters .filter-picker { position: static; }
  .theme-scope .archive-filters .filter-trigger.form-input,
  .theme-scope .filter-menu input.form-input,
  .theme-scope .archive-filters :is(.listing-sort, .listing-facet) .form-select { --input-padding-y: .75rem; --text-input: var(--type-control-roomy); min-height: 3rem; font-size: var(--type-control-roomy); }
  .theme-scope .archive-filters .filter-menu.dropdown-menu { width: 100%; max-width: 100%; }
  .theme-scope .filter-option.dropdown-item { min-height: 3rem; padding-block: .75rem; font-size: var(--type-control-roomy); }
  .theme-scope .archive-filters .toggle-group-item { min-height: 3rem; }
}

/* Shared editorial list rhythm: Capsid and Community. */
.theme-scope { --feed-title-font: 500 var(--type-feed-title)/1.3 var(--font-role-heading); --feed-meta-size: var(--type-meta); --feed-copy-gap: .375rem; --feed-row-gap: 2rem; }

@media (max-width: 40rem) {
  .theme-scope { --type-tag-roomy: var(--type-tag); }
  .theme-scope .listing-tag { padding-block: .125rem; font-size: var(--type-tag-roomy); }
  .theme-scope .listing-tag:not(.listing-tag-label) { min-height: 0; }
  .theme-scope .selected-tags button { min-height: 0; padding-block: .125rem; }
}

/* C&T reading polish: native topic links and restrained continuation, using the existing rhythm. */
.theme-scope .issue > .prose { overflow-wrap: break-word; }
.theme-scope .issue-header h1 { text-wrap: balance; }
.theme-scope .issue > footer { gap: 2rem; }
.theme-scope .issue .prev-next { gap: var(--rhythm-subsection); }
.theme-scope .issue .prev-next a { font-size: var(--type-h4); line-height: 1.4; text-decoration: none; }
.theme-scope .issue .prev-next small { font-size: var(--type-meta); margin-bottom: var(--rhythm-tight); }
.theme-scope .issue .prev-next .next { text-align: right; }
@media (max-width: 40rem) {
  .theme-scope .issue .prev-next { grid-template-columns: minmax(0, 1fr); gap: var(--rhythm-block); }
  .theme-scope .issue .prev-next .next { text-align: left; }
}

/* Public profiles and issue author notes share independent phone tap areas. */
.theme-scope .author-profile .links { overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  .theme-scope :is(.author-profile, .issue .authors .author-card) .links { gap: 0 var(--space-gap-md); }
  .theme-scope :is(.author-profile .links, .issue .authors .author-card .links, .issue .authors .author-card .author-issues) a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .theme-scope .author-profile .links a { font-size: var(--type-supporting); line-height: 1.5; }
  .theme-scope .author-profile .rich-text { margin-top: 1.5rem; }
  /* Compact account cards use the shared author-note rhythm on phones. */
  .theme-scope .author-card.profile-landscape .rich-text { font-size: var(--type-supporting); line-height: 1.5; --flow-space: var(--rhythm-note); margin-top: var(--space-gap-md); }
}

/* Form and filter surfaces share the interaction palette. */
.theme-scope :is(.pd-form, .private-form, .filter-picker, .archive-filters) {
  --color-control-active-bg: var(--color-interaction-selected);
  --color-control-active-text: var(--color-interaction-on-selected);
  --color-bg-secondary: var(--color-interaction-surface);
  --color-bg-muted: var(--color-interaction-muted);
  --color-bg-disabled: var(--color-bg-muted);
}
/* Shared selects retain native form values, with a consistently styled picker. */
.theme-scope .pd-select { position: relative; display: grid; min-width: 0; }
.theme-scope .pd-select-native { position: absolute; width: 1px !important; height: 1px !important; min-height: 0 !important; opacity: 0; pointer-events: none; }
.theme-scope .pd-select-trigger { display: flex; align-items: center; width: 100%; min-width: 0; text-align: left; white-space: normal; font: inherit; line-height: var(--leading-normal); color: var(--color-text-primary); background-color: var(--color-bg-primary); padding: .75rem 2.5rem .75rem var(--space-gap-md); min-height: 3rem; cursor: pointer; }
.theme-scope .pd-select-value { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; min-width: 0; max-block-size: 2lh; overflow: hidden; overflow-wrap: anywhere; }
.theme-scope .pd-select-trigger[aria-invalid="true"] { border-color: var(--color-danger-link); }
.theme-scope .pd-select-menu { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; right: 0; padding: 4px; max-height: 16rem; overflow: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-primary); }
.theme-scope .pd-select-menu[hidden] { display: none; }
.theme-scope .pd-select-menu button { display: block; width: 100%; border: 0; border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; text-align: left; font: 400 var(--type-supporting)/1.4 var(--font-role-control); color: var(--color-text-primary); background: transparent; cursor: pointer; }
.theme-scope .pd-select-menu button:is(:hover,.is-active):not(:disabled) { background: var(--color-interaction-hover); }
.theme-scope .pd-select-menu button[aria-selected="true"]:not(:disabled) { background: var(--color-interaction-selected); color: var(--color-interaction-on-selected); }
.theme-scope .pd-select-menu button:disabled { opacity: .5; cursor: not-allowed; }
.theme-scope .pd-select-trigger:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 3px; }
.theme-scope .pd-select-trigger:disabled { background: var(--color-bg-muted); color: var(--color-text-muted); cursor: not-allowed; }
.theme-scope :is(.private-form,.pd-form) .affiliation-add:is(:hover,:active,:focus) { background: transparent; box-shadow: none !important; }
.theme-scope :is(.private-form,.pd-form) .affiliation-add:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Shared form/list interaction palette; secondary actions share its surface, footer retains its own roles. */
.theme-scope[data-theme="phage"] {
  /* Approved default blue-gray; mirrored by share-design.json brand.directorySurface. */
  --color-surface-blue-gray: #EFF2F4;
  --color-interaction-selected: var(--color-surface-blue-gray);
  --color-interaction-on-selected: var(--color-pdv3-brand-100);
  --color-interaction-hover: color-mix(in srgb, var(--color-interaction-selected) 65%, var(--color-bg-primary));
  --color-interaction-surface: color-mix(in srgb, var(--color-interaction-selected) 35%, var(--color-bg-primary));
  --color-interaction-muted: color-mix(in srgb, var(--color-interaction-selected) 65%, var(--color-bg-primary));
  --color-browse-active-bg: var(--color-interaction-selected);
  --color-browse-active-text: var(--color-interaction-on-selected);
}
.theme-scope[data-theme="phage"] :is(.format-options, .filter-picker, .listing-tag, .selected-tags) {
  --color-control-active-bg: var(--color-browse-active-bg);
  --color-control-active-text: var(--color-browse-active-text);
}
.theme-scope[data-theme="phage"] :is(
  .list-controls .toggle-group-item:is(:hover, [data-state="on"], .selected),
  .listing-tag:not(.listing-tag-label):is(:hover, [aria-pressed="true"]),
  .selected-tags button,
  .filter-trigger:is(:hover, [aria-expanded="true"]),
  .filter-option:is(:hover, [aria-checked="true"], [aria-selected="true"])
) {
  background-color: var(--color-browse-active-bg);
  color: var(--color-browse-active-text);
}

.theme-scope .filter-trigger:is(:hover, [aria-expanded="true"]) [data-tag-count] { color: inherit; }

/* Hover previews a choice; selected/open controls retain their stronger state. */
.theme-scope[data-theme="phage"] :is(
  .list-controls .toggle-group-item:not([data-state="on"]):not(.selected),
  .listing-tag:not(.listing-tag-label):not([aria-pressed="true"]),
  .filter-trigger:not([aria-expanded="true"]),
  .filter-option:not([aria-checked="true"]):not([aria-selected="true"])
):hover {
  background-color: var(--color-interaction-hover);
  color: var(--color-text-primary);
}

[data-variant="dark"] .theme-scope[data-theme="phage"] {
  --color-interaction-selected: color-mix(in srgb, var(--color-pdv3-brand-100) 65%, var(--color-bg-primary));
  --color-interaction-on-selected: var(--color-text-primary);
}

/* Reusable blue-gray surface: approved light color, adaptive dark counterpart. */
.theme-scope[data-theme="phage"] .surface-blue-gray {
  background-color: var(--color-interaction-selected);
  color: var(--color-interaction-on-selected);
}

/* Secondary actions share the quiet blue surface used by selections. */
.theme-scope[data-theme="phage"] .btn-secondary {
  --color-primary-light: var(--color-interaction-selected);
  --color-primary-lighter: var(--color-interaction-hover);
  --color-primary-lightest: var(--color-interaction-selected);
}

/* Section headings separate through rhythm, never horizontal rules. */
.theme-scope :is(h1, h2, h3, h4, h5, h6) { border-block: 0; }

/* Shared person family: explicit densities, one identity anatomy. */
.theme-scope .person-identity { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.theme-scope .person-identity-copy { display: block; min-width: 0; }
.theme-scope .person-identity .person-identity-name { display: block; margin: 0; color: var(--color-text-primary); font: 700 var(--type-profile-name)/1.15 var(--font-role-heading); letter-spacing: -.02em; text-wrap: pretty; overflow-wrap: anywhere; }
.theme-scope .person-identity-role { display: block; margin-top: .5rem; font: 400 var(--type-supporting)/1.5 var(--font-role-body, var(--font-sans)); color: var(--color-text-secondary); overflow-wrap: anywhere; }
.theme-scope .person-identity > .author-avatar { flex: none; width: 6rem; height: 6rem; object-fit: cover; border-radius: 50%; }
.theme-scope .person-identity .author-avatar-fallback img { width: 45%; height: 45%; border-radius: 0; }
.theme-scope .person-identity--compact > .author-avatar { width: 4rem; height: 4rem; }
.theme-scope .person-identity--compact .person-identity-name { font-size: var(--type-profile-name-compact); line-height: 1.25; }
.theme-scope .person-identity--compact .person-identity-role { font-size: var(--type-meta); }
.theme-scope .person-identity--list { gap: .75rem; }
.theme-scope .person-identity--list > .author-avatar { width: 3.5rem; height: 3.5rem; }
.theme-scope .person-identity--list .person-identity-name { font-size: var(--type-profile-name-list); line-height: 1.4; letter-spacing: normal; }
.theme-scope .person-identity--list .person-identity-role { margin-top: .25rem; font-size: var(--type-meta); }
.theme-scope .person-identity--inline { display: inline-flex; gap: .5rem; }
.theme-scope .person-identity--inline > .author-avatar { width: 2rem; height: 2rem; border-radius: 50%; }
.theme-scope .person-identity--inline .person-identity-name { font: inherit; color: inherit; letter-spacing: inherit; }
.theme-scope .author-card.profile-family { width: 100%; max-width: 34rem; display: grid; gap: 1.5rem; box-sizing: border-box; padding: 1.5rem; border: 0; box-shadow: 0 0 0 1px var(--color-grid-rule) !important; border-radius: .5rem; background: var(--color-pdv3-purewhite, #fff); }
[data-variant="dark"] .theme-scope .author-card.profile-family { background: var(--surface-paper); }
/* White profile surfaces: soft neutral outline and restrained ambient depth. */
.theme-scope .author-card.profile-family:not(.profile-family-ruled) { box-shadow: 0 0 0 1px rgb(20 30 45 / .065), 0 2px 4px -2px rgb(20 30 45 / .06), 0 6px 16px -8px rgb(20 30 45 / .08) !important; }
[data-variant="dark"] .theme-scope .author-card.profile-family:not(.profile-family-ruled) { box-shadow: 0 0 0 1px rgb(255 255 255 / .10), 0 2px 8px rgb(0 0 0 / .12) !important; }
/* White profile cards share one unframed circular portrait treatment. */
.theme-scope .author-card.profile-family:not(.profile-family-ruled) .person-identity > .author-avatar { width: 5rem; height: 5rem; padding: 0; border: 0; border-radius: 50%; box-shadow: none !important; box-sizing: border-box; }
.theme-scope .author-card.profile-family .person-identity > .author-avatar-fallback { background: var(--color-interaction-selected); border-radius: 50%; }
.theme-scope .profile-family-body { display: grid; gap: 1.5rem; min-width: 0; }
.theme-scope .profile-family-body:has(> [data-profile-links][hidden]):has(> [data-profile-bio][hidden]):not(:has(.author-issues)) { display: none; }
.theme-scope .author-card.profile-family :is(.links,.rich-text,.author-issues) { margin: 0; }
.theme-scope .author-card.profile-family .links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.theme-scope .author-card.profile-family .rich-text { --flow-space: 1rem; font-size: var(--type-supporting); line-height: 1.625; }
.theme-scope .author-card.profile-family:not(.author-profile) .rich-text { font-size: var(--type-supporting); line-height: 1.625; }
/* Exploration reuses the phage-center ledger shell/rules; content stays shared. */
.theme-scope .author-card.profile-family-ruled { padding: 0; gap: 0; border: 0; border-radius: 0; }
.theme-scope .profile-family-ruled .profile-family-body { gap: 0; }
.theme-scope .profile-family-ruled .person-identity-name { font-size: var(--type-profile-name); }
.theme-scope .profile-family-ruled .person-identity-role { color: inherit; }
.theme-scope .author-card.profile-family-ruled .links { font-size: var(--type-supporting); line-height: 1.5; }
.theme-scope .author-card.profile-family-ruled .rich-text { font-size: var(--type-supporting); line-height: 1.5; gap: 0; }
.theme-scope .profile-family-ruled .links:not([hidden]) + .rich-text:not([hidden]) { box-shadow: inset 0 1px 0 var(--color-grid-rule) !important; }
.theme-scope .profile-family-ruled .author-issues { padding: 1rem; }
@media (max-width:40rem) {
  .theme-scope .author-card.profile-family { padding: 1rem; gap: 1rem; }
  .theme-scope .profile-family-body { gap: 1rem; }
  .theme-scope .person-identity--full { flex-direction: column; align-items: flex-start; }
  .theme-scope .person-identity--full > .author-avatar { width: 5rem; height: 5rem; }
  .theme-scope .person-identity--full .person-identity-name { font-size: var(--type-profile-name); }
  .theme-scope .person-identity--compact { align-items: flex-start; }
  .theme-scope .author-card.profile-family .links { gap: 0 1rem; }
  .theme-scope .author-card.profile-family .links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .theme-scope .author-card.profile-family-ruled { padding: 0; gap: 0; }
  .theme-scope .profile-family-ruled .profile-family-body { gap: 0; }
}

/* Ruled profile dashboard: real activity and public destinations, not synthetic metrics. */
.theme-scope .profile-dashboard-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; }
.theme-scope .profile-dashboard-stats > div { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.theme-scope .profile-dashboard-stats > div + div { border-left: 1px solid var(--color-grid-rule); }
.theme-scope .profile-dashboard-stats dt { font-size: var(--type-meta); line-height: 1.4; color: var(--color-text-secondary); }
.theme-scope .profile-dashboard-stats dd { order: -1; margin: 0; font-size: var(--type-statistic); line-height: 1; font-weight: 600; }
.theme-scope .profile-family-ruled .profile-dashboard-section-title { border-top: 1px solid var(--color-grid-rule); }
.theme-scope .profile-dashboard-links .therapy-fact-table th { width: 28%; }
.theme-scope .profile-dashboard-links .therapy-fact-table a { overflow-wrap: anywhere; }
.theme-scope .profile-dashboard-recent ol { list-style: none; margin: 0; padding: 0; }
.theme-scope .profile-dashboard-recent li { display: grid; gap: .5rem; padding: 1rem; border-top: 1px solid var(--color-grid-rule); }
.theme-scope .profile-dashboard-recent time { font-size: var(--type-meta); color: var(--color-text-secondary); }
@media (max-width:40rem) {
  .theme-scope .profile-dashboard-stats > div { padding: .75rem; }
  .theme-scope .profile-dashboard-stats dd { font-size: var(--type-statistic-compact); }
  .theme-scope .profile-dashboard-links .therapy-fact-table th { width: auto; }
  .theme-scope .profile-dashboard-links a, .theme-scope .profile-dashboard-recent a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

/* Editorial full-profile identity: compact round portrait, name and role below. */
.theme-scope .author-card.profile-family:not(.profile-family-ruled) .person-identity--full { flex-direction: column; align-items: flex-start; gap: 1rem; }
.theme-scope .author-card.profile-family:not(.profile-family-ruled) .person-identity--full > .author-avatar { width: 5rem; height: 5rem; border-radius: 50%; padding: 0; }
.theme-scope .person-identity--full .person-identity-copy { width: 100%; min-width: 0; }
.theme-scope .author-card.profile-family .links a { max-width: 100%; overflow-wrap: anywhere; }

.theme-scope .profile-social-icons { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: var(--rhythm-body); padding-block: 12px; margin-inline-start: 0; }
.theme-scope .profile-social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; background: transparent; color: var(--color-pdv3-brand-bright, #0085ff); text-decoration: none; }
.theme-scope .profile-social-icons a { border-radius: 0; transition: color 140ms ease; }
.theme-scope .profile-social-icons a:focus-visible { color: var(--color-link-hover); background: transparent; outline: 2px solid var(--color-focus-ring); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .theme-scope .profile-social-icons a:hover { color: var(--color-link-hover); background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-scope .profile-social-icons a { transition: none; }
}
.theme-scope .profile-social-icons svg { width: 20px; height: 20px; }
.theme-scope .profile-bio-disclosure .profile-bio-excerpt { margin: 0 0 .5rem; }
.theme-scope .profile-bio-disclosure:has(details[open]) .profile-bio-excerpt { display: none; }
.theme-scope .profile-bio-disclosure summary { display: flex; align-items: center; gap: .5rem; width: fit-content; min-height: 44px; cursor: pointer; color: var(--color-text-primary); list-style: none; font-size: var(--type-control); }
.theme-scope .profile-bio-disclosure summary::-webkit-details-marker { display: none; }
.theme-scope .profile-bio-disclosure .collapse-label { display: none; }
.theme-scope .profile-bio-disclosure details[open] .collapse-label { display: inline; }
.theme-scope .profile-bio-disclosure details[open] .expand-label { display: none; }
.theme-scope .profile-bio-disclosure details[open] summary svg { transform: rotate(180deg); }

/* No-filter lists keep their live count alongside sorting, not on a separate row. */
.theme-scope .listing-toolbar-count-sort { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.theme-scope .listing-toolbar-count-sort > .listing-feedback { order: 0; }
.theme-scope .listing-toolbar-count-sort > .archive-filters { order: 1; margin-left: auto; }

.theme-scope .author-card.profile-family:has(.profile-social-icons) { gap: .5rem; }
.theme-scope .profile-family-body:has(> .profile-social-icons) { gap: .5rem; }

/* Biography disclosure owns its spacing; the control always follows the text. */
.theme-scope .profile-bio-disclosure details { position: relative; margin: 0; padding: 0 0 44px; }
.theme-scope .profile-bio-disclosure summary { position: absolute; inset: auto auto 0 0; }
.theme-scope .profile-bio-disclosure .profile-bio-excerpt { margin: 0; }
.theme-scope .author-card.profile-family:not(.profile-family-ruled) { padding: 1rem; }
.theme-scope .author-card.profile-family:has(.profile-social-icons),
.theme-scope .profile-family-body:has(> .profile-social-icons) { gap: .25rem; }

/* Sponsor tags need separation from their white disclosure surface. */
.theme-scope[data-theme="phage"] .sponsor-disclosure :is(.listing-tag, .tags > span) { background: var(--color-bg-surface-muted); }
.theme-scope[data-theme="phage"] .sponsor-disclosure a.listing-tag:hover { background: var(--color-bg-surface-muted-hover); }

/* Capsid tags stay readable while receding beneath the article copy. */
.theme-scope .issue :is(.listing-tag, .tags > span:not(.listing-tag)) { font-size: var(--type-tag-roomy); font-weight: 400; }

/* Shared compact Capsid destinations; preserve full feed rows elsewhere. */
.theme-scope .issue-list-compact { gap: var(--space-gap-lg); margin-bottom: 0; }
.theme-scope .issue-row-compact > a { flex-direction: row; align-items: center; gap: var(--space-gap-md); }
.theme-scope .issue-row-compact .what { gap: var(--space-gap-sm); }
.theme-scope .issue-row-compact .issue-heading { display: flex; flex-direction: column; gap: var(--space-gap-xs); min-width: 0; }
.theme-scope .issue-row-compact .issue-reason { font-size: var(--type-meta); line-height: 1.5; font-weight: 400; color: var(--color-text-muted); overflow-wrap: anywhere; }
.theme-scope .issue-row-compact .title { font: 600 var(--type-supporting)/1.35 var(--font-role-heading); text-wrap: pretty; }
.theme-scope .issue-row-compact .thumb { order: -1; width: clamp(7rem, 26vw, 10.5rem); max-width: none; }
.theme-scope .issue-row-compact .issue-meta { margin-top: 0; align-items: center; gap: var(--space-gap-sm); font-size: var(--type-tag); line-height: 1.5; }
.theme-scope .issue-row-compact .issue-meta .listing-tag { padding: .125rem .5rem; font: inherit; }
@media (max-width: 30rem) {
  .theme-scope .issue-row-compact-long > a { display: grid; grid-template-columns: 7rem minmax(0, 1fr); row-gap: var(--space-gap-sm); }
  .theme-scope .issue-row-compact-long .what { display: contents; }
  .theme-scope .issue-row-compact-long :is(.title, .issue-heading) { grid-column: 1 / -1; grid-row: 1; }
  .theme-scope .issue-row-compact-long .thumb { grid-column: 1; grid-row: 2; }
  .theme-scope .issue-row-compact-long .issue-meta { grid-column: 2; grid-row: 2; }
  .theme-scope .issue-row-compact-long > a:not(:has(.thumb)) .issue-meta { grid-column: 1 / -1; }
}
@media (max-width: 22rem) {
  .theme-scope .issue-row-compact .thumb { width: 6rem; }
  .theme-scope .issue-row-compact-long > a { grid-template-columns: 6rem minmax(0, 1fr); }
}

/* Capsid chips need contrast against the light article control surface. */
html:not([data-variant="dark"]) .theme-scope[data-theme="phage"] .issue :is(.listing-tag, .tags > span:not(.listing-tag)) {
  --color-bg-tag: color-mix(in srgb, var(--color-text-primary) 6%, var(--color-bg-page));
  --color-bg-tag-hover: color-mix(in srgb, var(--color-text-primary) 10%, var(--color-bg-page));
  --control-surface-rest: var(--color-bg-tag);
  --control-surface-hover: var(--color-bg-tag-hover);
  background-color: var(--color-bg-tag);
}

/* Article author cards give the portrait its own row on phones. */
@media (max-width: 40rem) {
  .theme-scope .author-card.profile-family .person-identity--compact {
    flex-direction: column; align-items: flex-start; gap: var(--rhythm-body);
  }
  .theme-scope .author-card.profile-family .person-identity--compact .person-identity-copy { width: 100%; }
}

/* One parent owns article endmatter rhythm; components contribute no outer gaps. */
.theme-scope .issue > .issue-endmatter { gap: var(--rhythm-subsection); padding-block-start: calc(var(--rhythm-section) - var(--rhythm-block)); }
.theme-scope .issue > .issue-endmatter > * { margin-block: 0; min-width: 0; }
.theme-scope .issue-endmatter .issue-topics { display:flex; flex-wrap:wrap; align-items:baseline; gap:var(--rhythm-tight) var(--rhythm-body); }
.theme-scope .issue-endmatter .issue-topics .tags { margin:0; }
.theme-scope .issue-endmatter .issue-utilities { display:grid; gap:var(--rhythm-block); }
.theme-scope .issue-endmatter .issue-utilities > * { margin-block:0; }

/* Article navigation forms one group before author and citation details. */
.theme-scope .issue-discovery { display:grid; gap:var(--rhythm-block); }
body.theme-scope .issue .issue-discovery > * { margin-block:0; min-width:0; }
.theme-scope .issue-discovery-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:var(--rhythm-body); }
.theme-scope .issue-discovery-heading h2 { margin:0; font-size:var(--type-h3); line-height:1.333333333; }

/* Sponsor and digest disclosure feedback follows the neutral navigation surface. */
body.theme-scope[data-theme="phage"] .community-digest-disclosure .details-summary:hover {
  background-color:var(--control-surface-hover, var(--color-bg-surface-muted-hover));
}

/* Give the digest a clear section entrance, with its contents on a second line. */
body.theme-scope [data-digest-disclosure] > .details-summary { padding:var(--rhythm-body) var(--rhythm-block); align-items:flex-start; }
body.theme-scope [data-digest-disclosure] > .details-summary > .details-icon { margin-top:.35rem; }
body.theme-scope [data-digest-disclosure] .digest-disclosure-label { display:grid; gap:var(--rhythm-tight); justify-content:stretch; }
body.theme-scope [data-digest-disclosure] .digest-disclosure-label > span:first-child { font-size:var(--type-h3); font-weight:650; line-height:1.35; }
body.theme-scope [data-digest-disclosure] .digest-disclosure-counts { display:flex; flex-wrap:wrap; gap:var(--rhythm-tight) var(--rhythm-body); font-size:var(--type-supporting); }

/* Capsid identity metadata and issue badges share one compact role. */
body.theme-scope :is(.issue-row .issue-meta, .landing-feature-meta) {
  font-size:var(--type-tag); line-height:1.5; align-items:center;
}
body.theme-scope .capsid-issue-badge {
  display:inline-flex; align-items:center; justify-content:center; flex:none;
  padding:.125rem .5rem; border-radius:var(--radius-sm);
  font-size:var(--type-tag); line-height:1.5; font-weight:400;
  color:var(--color-text-primary);
  background:color-mix(in srgb,var(--color-text-primary) 12%,var(--color-bg-page));
}
/* Override the global time role inside compact Capsid card metadata. */
body.theme-scope :is(.issue-row .issue-meta, .landing-feature-meta) time { font-size:inherit; line-height:inherit; }

/* Homepage badges follow its light neutral button palette. */
body.theme-scope .homepage-capsid .capsid-issue-badge { background:var(--control-surface-rest, var(--color-bg-surface-muted)); }
