/* Every colour here resolves through RelayHall's published plugin theme tokens
 * (--rh-*, GET <mount>/plugins/theme.css). There is deliberately NO
 * prefers-color-scheme rule: the operating system's preference is not the
 * host's Theme. Fallbacks are system colours (Canvas, CanvasText, GrayText,
 * LinkText, Mark, MarkText) so a missing stylesheet degrades to something
 * readable in either direction rather than to a hard-coded palette.
 *
 * One reading column. #edition is a single-track grid whose track is the
 * measure (60ch, resolved ONCE against the article's own font size) and is
 * centred by justify-content, so the title, the audio lines, the hero and
 * every section share one left edge and one width. The rejected model gave
 * each direct child its own max-width:60ch with auto margins: ch is
 * font-relative, so the 1.3rem title, the .85rem notices and the 1rem body
 * resolved to three different widths, and the inline <img> ignored the auto
 * margins altogether and sat flush left of its own box. No descendant rule
 * may centre itself with an auto inline margin: the column owns alignment.
 *
 * One audio/status region. The lines app.js renders about the selected
 * edition's audio (the rejected-draft disclosure, the podcast line, the audio
 * note, or the media-failure line that replaces the claims) are consecutive
 * direct children of #edition straight after the title. They are fused into
 * one compact block here rather than wrapped in the DOM: zero margins between
 * them, one elevated background, one 3px left rule, padding between adjacent
 * rows and rounded outer corners. E4.1's borderless surface requirement
 * supersedes the historical hairline separators and control outlines.
 * Keyboard focus retains its distinct 2px accent outline.
 * The disclosure keeps its danger fill as the top
 * row so a rejected podcast stays conspicuous, and its correction text opens
 * inside the same block. The live page showed the same lines as separate
 * indented paragraphs with .6em gaps (qa/ux-refinement-20260918/live-audit),
 * which read as two notices about one absence. */
:root{color-scheme:light dark;font-family:var(--rh-font-body,system-ui,sans-serif)}*{box-sizing:border-box}html{background:transparent}body{margin:0;background:var(--rh-bg-app,Canvas);color:var(--rh-text-primary,CanvasText)}#app{max-width:1180px;margin:auto;padding:clamp(10px,2vw,20px);height:100dvh;display:flex;flex-direction:column;gap:8px}.toolbar{flex:none;display:flex;align-items:center;gap:10px;padding-bottom:8px;border-bottom:0}.toolbar h1{margin:0;font-size:1rem;letter-spacing:.02em;white-space:nowrap}#status{margin:0;flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--rh-text-tertiary,GrayText);font-size:.78rem}.run-actions{flex:none;display:flex;gap:6px}.picker{flex:none;display:flex;align-items:center;gap:8px}.picker label{flex:none;font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:var(--rh-text-tertiary,GrayText)}#edition-picker{flex:1 1 auto;min-width:0;max-width:100%;padding:6px 8px;border-radius:var(--rh-radius-sm,9px);border:0;background:var(--rh-bg-elevated,Canvas);color:inherit;font:inherit;font-size:.85rem}button{flex:none;padding:6px 10px;border-radius:var(--rh-radius-sm,9px);border:0;background:var(--rh-bg-elevated,Canvas);color:inherit;font:inherit;font-size:.8rem;white-space:nowrap}button:disabled{opacity:.55}article{flex:1 1 auto;min-height:0;overflow-y:auto;background:var(--rh-bg-surface,Canvas);border:0;border-radius:var(--rh-radius-md,14px);padding:12px clamp(12px,3vw,24px)}#edition{display:grid;grid-template-columns:minmax(0,60ch);justify-content:center;align-content:start}#edition>*{min-width:0}#edition h2{font-size:1.3rem;line-height:1.25;margin:.3em 0 .5em;overflow-wrap:anywhere}#edition h3{font-size:1.02rem;margin:1.3em 0 .4em}#edition p{line-height:1.6;margin:.6em 0}#edition a{color:var(--rh-text-accent,LinkText)}.claims{margin:.6em 0;padding-left:20px}.claims li{margin:.5em 0}.caveat,.transition{color:var(--rh-text-secondary,CanvasText)}.callback{margin:.6em 0;border-left:3px solid var(--rh-border-default,GrayText);padding-left:12px;color:var(--rh-text-secondary,CanvasText)}.evidence code{font-size:.78rem;font-family:var(--rh-font-mono,ui-monospace,monospace)}.hero{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--rh-radius-md,12px)}.podcast-state,.audio-note,.audio-failure{font-size:.8rem;line-height:1.45;color:var(--rh-text-secondary,CanvasText);background:var(--rh-bg-elevated,Canvas);border-left:3px solid var(--rh-border-default,GrayText);padding:5px 10px}#edition>.podcast-state,#edition>.audio-note,#edition>.audio-failure{margin:0;line-height:1.45}#edition>.audio-note,#edition>.audio-failure{margin-bottom:14px;border-bottom-right-radius:var(--rh-radius-sm,9px)}#edition h2+.podcast-state,#edition h2+.audio-note,#edition h2+.audio-failure{border-top-right-radius:var(--rh-radius-sm,9px)}.rejection+.podcast-state,.rejection+.audio-note,.rejection+.audio-failure,.podcast-state+.audio-note,.podcast-state+.audio-failure,.audio-note+.audio-failure{border-top:0}.rejection{margin:0}.rejection>summary{border-radius:var(--rh-radius-sm,9px) var(--rh-radius-sm,9px) 0 0;background:var(--rh-danger-color,Mark);color:var(--rh-text-on-fill,MarkText);font-weight:700;font-size:.8rem;line-height:1.45;cursor:pointer;padding:5px 10px;list-style:none}.rejection>div{border-left:3px solid var(--rh-status-danger,GrayText);background:var(--rh-bg-elevated,Canvas);padding:2px 10px;font-size:.8rem}.sources a{display:block;padding:5px 0}.player-bar{flex:none;display:flex;align-items:center;gap:10px;padding:5px 10px;border:0;border-radius:var(--rh-radius-md,12px);background:var(--rh-bg-elevated,Canvas)}.player-label{margin:0;flex:none;max-width:42%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.75rem;color:var(--rh-text-secondary,CanvasText)}#player{display:block;flex:1 1 auto;min-width:0;width:100%;max-width:560px;height:34px;margin:0}.player-bar[hidden],#player[hidden]{display:none}@media(max-height:317px){#app{height:auto;min-height:0}article{overflow-y:visible}}

/* Category reader and persistent playlist consume the same host theme tokens. */
.category-filter{flex:none;min-width:0;margin:0;padding:6px 10px;border:0;background:var(--rh-bg-surface,Canvas);border-radius:var(--rh-radius-sm,9px)}
.category-filter legend{font-size:.78rem;color:var(--rh-text-secondary,CanvasText);padding:0 4px}
.category-choices{display:flex;flex-wrap:wrap;gap:2px 10px}
.category-choice{display:flex;align-items:center;gap:5px;font-size:.78rem;min-height:32px;cursor:pointer}
input[type=checkbox]{width:16px;height:16px;accent-color:var(--rh-text-accent,Highlight);flex:none}
#preference-status{display:inline;margin:0;font-size:.72rem;color:var(--rh-text-tertiary,GrayText)}
#retry-preferences{margin-left:8px}
.player-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,1fr);gap:6px 12px;padding:8px 12px;border-color:var(--rh-border-subtle,GrayText)}
.player-label{max-width:none;white-space:normal;line-height:1.4;overflow-wrap:anywhere}
#player{max-width:none;height:38px}
.playlist-controls{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.playlist-controls label{display:flex;align-items:center;gap:5px;font-size:.76rem}
.playlist-controls select{font:inherit;padding:5px;border:0;border-radius:var(--rh-radius-sm,9px);color:var(--rh-text-primary,CanvasText);background:var(--rh-bg-surface,Canvas)}
#playlist-summary{margin:0;font-size:.76rem;line-height:1.4;color:var(--rh-text-secondary,CanvasText)}
.playlist-disclosure{font-size:.76rem;max-height:150px;overflow-y:auto}
.playlist-disclosure summary{cursor:pointer;min-height:24px}
#playlist-queue{padding-left:20px;margin:6px 0}
#playlist-queue li{margin:4px 0}
#playlist-queue button{white-space:normal;text-align:left;max-width:100%;font-size:.76rem}
#playlist-queue button[aria-current=true]{border-color:var(--rh-text-accent,Highlight);font-weight:700}
.category-card{padding:18px 0 12px;scroll-margin-top:12px}
.category-card+.category-card{margin-top:10px}
.category-card[data-playing=true]{border-left:3px solid var(--rh-text-accent,Highlight);padding-left:12px}
#edition .category-kicker{font-size:.72rem;text-transform:uppercase;letter-spacing:.09em;color:var(--rh-text-tertiary,GrayText);margin:0}
#edition .category-card h3{font-size:1.2rem;line-height:1.35;margin:.4em 0}
#edition h4{font-size:1rem;line-height:1.4;margin:1.25em 0 .4em}
#edition .section-meta{font-size:.76rem;color:var(--rh-text-tertiary,GrayText);margin:.4em 0}
.section-lead{font-style:italic;color:var(--rh-text-secondary,CanvasText)}
.section-audio{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0 16px}
.section-audio-status{font-size:.75rem;color:var(--rh-text-secondary,CanvasText)}
.sources,.transcript{padding:8px 0;font-size:.85rem}
.sources summary,.transcript summary{cursor:pointer;min-height:28px}
.sources ol{padding-left:24px}.sources li{padding:5px 0;overflow-wrap:anywhere}
.source-provenance{display:block;font-size:.75rem;color:var(--rh-text-tertiary,GrayText)}
.citation{font-size:.8em;white-space:nowrap;padding:2px;text-underline-offset:3px}
.dialogue-turn strong{color:var(--rh-text-primary,CanvasText)}.turn-time{padding:2px 6px;font-size:.75rem}
button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--rh-text-accent,Highlight);outline-offset:3px}
[hidden],.category-filter[hidden],.category-card[hidden]{display:none!important}
@media(max-width:600px){
  #app{padding:8px;gap:6px}.toolbar{flex-wrap:wrap;padding-bottom:5px}.toolbar h1{font-size:.9rem}#status{flex-basis:45%;font-size:.72rem}
  .category-filter{padding:4px 8px}.category-choices{gap:0 8px}.category-choice{min-height:36px;font-size:.72rem}
  .player-bar{grid-template-columns:minmax(0,1fr);padding:8px}.player-label{font-size:.72rem}#player{height:36px}
  .playlist-controls{gap:4px}.playlist-controls button{min-height:36px;padding:5px 8px;font-size:.73rem}.playlist-controls label{min-height:32px;font-size:.72rem}
  #playlist-summary{font-size:.72rem}.playlist-disclosure{max-height:110px}.category-card{padding-top:14px}
  #edition{padding:10px 12px}#edition p{line-height:1.65}.section-audio button{min-height:40px}
}
