.guide-reader [hidden], .guide-editor [hidden] { display: none !important; }
.guide-reader { padding-bottom: 9.5rem; }
.reading-freshness { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; font-size: .8rem; color: var(--muted); }
.reading-freshness > :first-child { font-weight: 650; }
.reading-freshness-verified > :first-child { color: var(--success); }
.reading-freshness-review > :first-child { color: var(--gold-light); }
.reading-brief { min-width: 0; padding: 1.1rem; margin-bottom: 1.25rem; border: 1px solid var(--gold-dark); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 9rem; overflow-wrap: anywhere; }
.reading-brief-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.reading-brief-heading .eyebrow { margin-bottom: .45rem; }
.reading-brief-heading h2 { margin: 0; font-size: 1.5rem; }
.reading-brief-heading > span { color: var(--muted); font-size: .75rem; }
.reading-brief-list + .reading-brief-list { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-soft); }
.reading-brief-list h3 { font-size: 1rem; margin: 0 0 .6rem; }
.reading-brief-list ul { margin: 0; padding-left: 1.25rem; }
.reading-brief-list li { margin-block: .4rem; }
.reading-checklist { list-style: none; margin: 0; padding: 0; }
.reading-checklist label, .guide-reader .task-list-item label { display: flex; align-items: start; gap: .75rem; min-height: 44px; padding: .6rem .25rem; cursor: pointer; }
.reading-checklist input, .guide-reader .task-list-item input { flex: 0 0 1.2rem; width: 1.2rem; height: 1.2rem; min-height: 0; margin: .2rem 0 0; accent-color: var(--gold); }
.guide-reader .task-list-item { display: block; }
.reading-checklist input:checked + span, .guide-reader .task-list-item input:checked + span { color: var(--muted); text-decoration: line-through; }
.reader-check-tools, .reader-resume { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.reader-resume { border-left: 3px solid var(--gold); padding: .8rem 1rem; background: var(--surface); }
.reader-resume p { flex: 1 1 12rem; margin: 0; }
.reader-check-tools { color: var(--muted); font-size: .85rem; }
.reader-check-tools button { min-height: 44px; }
.reader-actions { position: fixed; z-index: 25; right: max(.5rem, env(safe-area-inset-right)); bottom: max(.6rem, env(safe-area-inset-bottom)); width: auto; max-width: calc(100% - 1rem - env(safe-area-inset-left) - env(safe-area-inset-right)); padding: .3rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(20,23,28,.96); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.has-bottom-nav .reader-actions { bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
.reader-action-buttons { display: flex; align-items: center; gap: .2rem; }
.reader-action-buttons button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .45rem .55rem; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font: 650 .75rem/1.1 var(--sans); cursor: pointer; }
.reader-action-buttons button:hover, .reader-action-buttons button:focus-visible { color: var(--text); background: var(--surface-2); }
.reader-action-buttons svg, .guide-toc-summary-label svg { flex: 0 0 1.15rem; width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reader-action-buttons .reader-icon-button { width: 44px; padding: 0; }
.reader-contents-button { color: var(--gold-light) !important; }
.reader-action-buttons button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-light); background: var(--surface-2); }
.reader-remember-button[aria-pressed="true"] svg path { fill: currentColor; }
.reader-actions [role="status"] { position: absolute; right: 0; bottom: calc(100% + .45rem); width: max-content; max-width: min(22rem, calc(100vw - 1rem)); margin: 0; padding: .55rem .7rem; border: 1px solid var(--gold-dark); border-radius: var(--radius-sm); color: var(--text); background: var(--bg-elevated); box-shadow: var(--shadow); font-size: .78rem; }
.reader-actions label { display: block; font-size: .8rem; }
.reader-actions input { width: 100%; min-width: 0; }
.guide-toc-summary-label { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold-light) !important; }
.guide-section-toc-mobile { padding-inline: .75rem; border: 1px solid rgba(212,168,63,.35) !important; border-radius: var(--radius-sm); background: rgba(212,168,63,.06); }
.guide-section-toc-mobile[open] { padding-bottom: .5rem; }
.guide-section-toc .guide-toc-branch > summary, .guide-section-toc .guide-toc-more > summary { display: list-item; min-height: 44px; padding: .65rem .55rem; color: var(--gold-light); font-size: .75rem; line-height: 1.4; overflow-wrap: anywhere; cursor: pointer; }
.guide-section-toc .guide-toc-branch > summary:focus-visible, .guide-section-toc .guide-toc-more > summary:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.guide-section-toc a[aria-current="location"] { border-left-color: var(--gold); color: var(--gold-light); background: rgba(212,168,63,.1); }
.guide-section-toc-mobile > nav { max-height: none; overflow: visible; scrollbar-gutter: auto; }
.reader-contents-dialog { position: fixed; inset: auto 0 0; width: min(100%, 38rem); max-height: min(78dvh, 44rem); margin: 0 auto; padding: 0 1rem max(1rem, env(safe-area-inset-bottom)); border: 1px solid var(--border); border-bottom: 0; border-radius: 1rem 1rem 0 0; color: var(--text); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.reader-contents-dialog::backdrop { background: rgba(0,0,0,.72); }
.reader-contents-dialog[open] { display: flex; flex-direction: column; }
.reader-contents-dialog { max-width: 100%; }
.reader-dialog-header > div { min-width: 0; overflow-wrap: anywhere; }
.reader-contents-body { min-width: 0; overflow-wrap: anywhere; }
.reader-action-buttons { flex-wrap: wrap; min-width: 0; }
.reader-actions { border-radius: 1.5rem; }
.reader-contents-dialog .reader-dialog-header { flex-shrink: 0; }
.reader-dialog-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-block: 1rem .75rem; border-bottom: 1px solid var(--border-soft); background: var(--surface); }
.reader-dialog-header .eyebrow { margin: 0 0 .2rem; }
.reader-dialog-header h2 { margin: 0; font-size: 1.25rem; }
.reader-dialog-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--text); background: var(--surface-2); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.reader-contents-body { display: grid; gap: 1.25rem; min-height: 0; padding-block: 1rem; overflow-y: auto; overscroll-behavior: contain; }
@media (max-height: 32rem) {
    .reader-contents-dialog { max-height: calc(100dvh - .5rem); }
    .reader-dialog-header { padding-block: .5rem; }
    .reader-dialog-header .eyebrow { display: none; }
    .reader-dialog-header h2 { font-size: 1rem; }
    .reader-contents-body { padding-block: .5rem; }
}
.reader-contents-body section + section { padding-top: 1rem; border-top: 1px solid var(--border-soft); }
.reader-contents-body h3 { margin: 0 0 .25rem; font-size: 1rem; }
.reader-contents-body .guide-section-toc > nav { max-height: none; overflow: visible; }
.reader-share-dialog { width: min(calc(100% - 2rem), 30rem); max-height: calc(100dvh - 2rem); overflow: auto; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.reader-share-dialog::backdrop { background: rgba(0,0,0,.7); }
.reader-share-header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.reader-share-header h2 { margin: 0; font-size: 1.3rem; }
.reader-share-dialog select, .reader-share-dialog input { width: 100%; min-width: 0; }
.reader-share-dialog > .button { width: 100%; margin-top: 1rem; }
.reader-share-dialog [role="status"] { margin: .75rem 0 0; color: var(--gold-light); }
.guide-reader.is-quick-mode .guide-reader-sidebar { display: none; }
.guide-reader.is-quick-mode .guide-reader-layout { display: block; max-width: 48rem; margin-inline: auto; }
.guide-reader.is-quick-mode .guide-reader-rail { display: none; }
.guide-reader #guide-body { scroll-margin-top: 9rem; }
.reading-editor-options { min-width: 0; padding: 1rem; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); }
.reading-editor-options > summary { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 44px; cursor: pointer; font-weight: 650; }
.reading-editor-options > summary::before { content: '+'; color: var(--gold-light); }
.reading-editor-options[open] > summary::before { content: '−'; }
.reading-editor-options summary small { margin-left: auto; color: var(--muted); font-size: .75rem; font-weight: 400; }
.reading-editor-options > .field, .reading-editor-options > .editor-meta-grid { margin-block: 1rem; }
.reading-editor-options .field, .reading-editor-options input, .reading-editor-options textarea { min-width: 0; max-width: 100%; }
.reading-editor-options .editor-meta-grid { grid-template-columns: minmax(0, 1fr); }
.reading-template-controls { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.reading-template-controls label { flex-basis: 100%; }
.reading-template-controls select { flex: 1 1 12rem; min-width: 0; max-width: 100%; min-height: 44px; }
.reading-template-controls p { flex-basis: 100%; margin: 0; }
.preview-panel .reading-brief { margin-block: 1rem; }
@media (min-width: 680px) {
    .reading-editor-options .editor-meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .reading-brief { padding: 1.5rem; }
}
@media (min-width: 58rem) {
    .reader-actions, .has-bottom-nav .reader-actions { right: 50%; bottom: 1rem; transform: translateX(50%); }
    .reader-contents-button { display: none !important; }
}
@media print {
    .reader-actions, .reader-share-dialog, .reader-contents-dialog, .reader-check-tools, .reader-resume { display: none !important; }
    .guide-reader .reader-full[hidden] { display: block !important; }
    .guide-reader { padding-bottom: 0; }
}

/* UI v2 guide reader, step 2 (docs/UI_V2.md): task bar, quick/full switch, facts, chapter navigation. */
.page-shell:has(> .guide-reader-v2:first-child) { padding-top: 0; }
.guide-reader.guide-reader-v2 { max-width: none; padding-block: 0 2rem; }
.reader-task-bar .task-bar-back { gap: .35rem; font-size: .9rem; }
.reader-bar-actions { justify-self: end; display: flex; align-items: center; }
.reader-bar-actions svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reader-bar-actions .task-bar-action[aria-pressed="true"] { background: rgba(212,168,63,.12); }
.guide-reader-v2-article { max-width: 62rem; padding-block: 1rem 3rem; }
.reader-v2-header { display: grid; gap: .75rem; padding-bottom: 0; border: 0; }
.reader-v2-header h1 { max-width: 30ch; margin: 0; font-size: 1.625rem; line-height: 1.18; overflow-wrap: anywhere; }
.reader-v2-header .guide-reader-summary { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.reader-v2-hero { display: none; }
.reader-v2-header.has-mobile-hero .reader-v2-hero { display: block; width: 6rem; }
.reader-v2-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; margin: 0; color: var(--muted); font-size: .8125rem; }
.reader-v2-meta > :not(:first-child):not(.library-row-audience):not(nav)::before { margin-right: .5rem; color: var(--quiet); content: "·"; }
.reader-v2-meta a { padding-block: .7rem; margin-block: -.7rem; }
.reader-v2-fresh.is-verified { color: var(--success); }
.reader-v2-fresh.is-review { color: var(--gold-light); }
.reader-v2-languages { display: flex; flex-wrap: wrap; gap: 0; margin: -.5rem 0 -.5rem auto; }
.reader-v2-languages a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; margin: 0; text-decoration: none; color: var(--muted); }
.reader-v2-languages a span { padding: 1px 5px; border: 1px solid var(--border-soft); border-radius: 4px; font-size: .625rem; font-weight: 800; line-height: 1.5; }
.reader-v2-languages a[aria-current] span { color: var(--gold-light); border-color: var(--gold); }
.reader-v2-mode { max-width: none; margin: .25rem 0 0; }
.reader-v2-desktop-actions, .reader-v2-button-label, .reader-v2-chapter-label { display: none; }
.guide-reader-v2 .guide-reader-layout { padding-top: 1rem; }
body:has(.guide-reader-v2)::before { background: none; }
.guide-reader-v2 .guide-reader-content { color: var(--text-read); font-size: 1.125rem; line-height: 1.6; }
.guide-reader-v2 .guide-reader-content :is(p,li) { color: inherit; }
.guide-reader-v2 .guide-reader-content h2 { margin-block: 1.125rem .75rem; font: 700 1.4375rem/1.3 var(--serif); }
.guide-reader-v2 .guide-reader-content h3 { font: 600 1.2rem/1.4 var(--serif); }
.guide-reader-v2 #guide-body, .guide-reader-v2 .guide-reader-content :is(h2, h3, h4, h5)[id] { scroll-margin-top: 4.5rem; }
.guide-reader-v2 .reading-brief { padding: 1rem; margin-bottom: 1rem; border-color: var(--gold-dark); border-radius: 14px; background: var(--surface); scroll-margin-top: 4.5rem; }
.guide-reader-v2 .reading-brief-heading { margin-bottom: .625rem; align-items: center; }
.guide-reader-v2 .reading-brief-heading .eyebrow, .guide-reader-v2 [data-reading-list="takeaways"] h3 { display: none; }
.guide-reader-v2 .reading-brief-heading h2 { color: var(--gold-light); }
.guide-reader-v2 .reading-brief-list { margin: 0; padding: 0; border: 0; }
.guide-reader-v2 .reading-brief-list ul { padding-left: 1.4rem; list-style: '◆  '; }
.guide-reader-v2 .reading-brief-list ul li { padding-left: .125rem; margin-block: .5rem; line-height: 1.6; }
.guide-reader-v2 .reading-brief-list li::marker { color: var(--gold); }
.guide-reader-v2 .reading-brief-list h3 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem; color: var(--quiet); font: 600 .75rem/1.5 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.guide-reader-v2 [data-reading-list="takeaways"] h3 { display: none; }
.guide-reader-v2 [data-reading-list="prerequisites"], .guide-reader-v2 [data-reading-list="steps"] { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border-soft); }
.guide-reader-v2 .reading-checklist label { padding: .375rem 0; min-height: 44px; font-size: .9375rem; line-height: 1.6; }
.guide-reader-v2 .reading-checklist li { margin: 0; }
.guide-reader-v2 .reader-full > .guide-reader-summary { margin: 0 0 1rem; font-size: .9375rem; }
.guide-reader-v2 .reading-brief-heading h2 { font: 600 1.125rem/1.25 var(--serif); }
.guide-reader-v2 .reading-brief-list li { font-size: .9375rem; }
.guide-reader-v2 .reading-checklist label { align-items: center; }
.guide-reader-v2 .reading-checklist input { flex-basis: 1.35rem; width: 1.35rem; height: 1.35rem; margin: 0; }
.reader-v2-read-full { min-height: var(--tap-lg); margin-bottom: 1rem; }
.guide-reader-v2:not(.is-quick-mode) .reader-v2-read-full { display: none; }
[data-ui-ready] .guide-reader-v2 .guide-section-toc-mobile, [data-ui-ready] .guide-reader-v2 .collection-toc-mobile { display: none; }
.reader-v2-facts { margin-top: 2rem; padding: 1rem; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--bg-elevated); }
.reader-v2-facts h2 { margin: 0 0 .5rem; font: 600 1rem/1.3 var(--serif); }
.reader-v2-facts > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: .8125rem; cursor: pointer; color: var(--muted); }
.reader-v2-facts > summary::after { content: '+'; color: var(--gold); }
.reader-v2-facts[open] > summary::after { content: '−'; }
.guide-reader-v2 .reader-v2-facts { padding: .25rem .875rem; margin-top: 1.5rem; }
.reader-v2-facts[open] ul { padding-block: .5rem; }
.reader-v2-facts ul { display: grid; gap: .35rem; margin: 0; padding: 0; color: var(--muted); font-size: .875rem; list-style: none; }
.reader-v2-chapter-nav { display: grid; gap: .75rem; margin-top: 1.5rem; }
.reader-v2-chapter-nav .button { min-height: var(--tap-lg); display: grid; justify-items: start; gap: .15rem; padding: .7rem 1rem; text-align: left; }
.reader-v2-chapter-nav .button span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.reader-v2-chapter-nav .button strong { font-size: .95rem; font-weight: 650; line-height: 1.3; }
.reader-v2-finished { grid-template-columns: minmax(0, 1fr); padding-bottom: .9rem; }
.reader-v2-finished .resume-card-context { min-height: var(--tap); display: inline-flex; align-items: center; color: var(--gold-light); font-weight: 700; }
.reader-chapter-state { grid-column: 2; color: var(--quiet); font-size: .72rem; font-weight: 600; line-height: 1.3; }
.reader-chapter-state:empty { display: none; }
a[data-state="read"] .reader-chapter-state::before { color: var(--success); content: "● "; }
a[data-state="started"] .reader-chapter-state::before { color: var(--gold-light); content: "◐ "; }
a[data-state="unread"] .reader-chapter-state::before { content: "○ "; }
.guide-reader-v2 .reader-contents-dialog { border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--bg-elevated); }
.reader-v2-dialog-actions { padding-top: .75rem; border-top: 1px solid var(--border-soft); }
.guide-reader-v2 .reader-check-tools:empty { display: none; }
.reader-save-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .75rem; }
.reader-save-controls > button { min-height: 44px; padding: .45rem .65rem; font-size: .8125rem; font-weight: 500; }
.reader-save-controls [aria-pressed="true"] { color: var(--gold-light); border-color: var(--gold-dark); }
.reader-save-controls > small { flex: 1; min-width: 8rem; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.reader-save-controls > p { flex-basis: 100%; margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.reader-v2-facts > [data-reader-category] { display: inline-flex; align-items: center; min-height: 44px; margin-top: .25rem; font-size: .8125rem; }
.reader-v2-facts > .reader-v2-languages { margin: 0; }
@media (max-width: 57.99rem) {
    .ui-mobile-v2:has(.guide-reader-v2) .bottom-nav { display: grid; }
    .ui-mobile-v2:has(.guide-reader-v2) .analytics-consent { bottom: calc(4.35rem + env(safe-area-inset-bottom)); }
    .guide-reader-v2 .task-bar-title { font: 600 1rem/1.3 var(--serif); color: var(--text); }
    .guide-reader-v2 .task-bar-title small { display: inline; margin-left: .25rem; color: inherit; font: inherit; }
    .guide-reader-v2 .reader-task-bar .task-bar-back { font-weight: 400; }
    .guide-reader.guide-reader-v2 .guide-reader-v2-article { width: 100%; padding: .625rem 1.125rem 1.5rem; }
    .guide-reader-v2 .reader-v2-header { gap: .5rem; }
    .guide-reader-v2 .reader-v2-header > h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    /* In a series the bar names the series, so the chapter keeps its visible title; lines stay at a comfortable measure. */
    .guide-reader-v2 .reader-v2-header:has(.reader-v2-chapter-label) > h1 { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; margin-top: .25rem; max-width: none; font-size: 1.75rem; font-weight: 700; }
    .guide-reader.guide-reader-v2 .guide-reader-v2-article { max-width: 46rem; margin-inline: auto; }
    .guide-reader-v2 .reader-v2-meta { font-size: .8125rem; }
    .guide-reader-v2 .reader-v2-mode { margin: .5rem 0 0; }
    .guide-reader-v2 .guide-reader-layout { padding-top: .75rem; }
    .guide-reader-v2[data-reader-layout-ready]:not(.is-quick-mode) #guide-brief { display: none; }
    .guide-reader-v2 .reader-v2-chapter-nav .button { border-radius: 12px; box-shadow: none; }
}
@media (min-width: 58rem) {
    .reader-save-controls > [data-reader-save-toggle] { display: none; }
    .guide-reader-v2-article { max-width: 63.5rem; padding-top: 1.75rem; }
    .guide-reader-v2-article.has-reader-sidebar { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); gap: 0 3.5rem; align-items: start; }
    .guide-reader-v2-article.has-reader-sidebar > .reader-v2-header { grid-column: 2; }
    .guide-reader-v2 .guide-reader-v2-article.has-reader-sidebar > .guide-reader-layout { display: contents; }
    .guide-reader-v2 .guide-reader-v2-article.has-reader-sidebar .guide-reader-sidebar { display: block; grid-column: 1; grid-row: 1 / span 2; }
    .guide-reader-v2 .guide-reader-v2-article.has-reader-sidebar .guide-reader-main { grid-column: 2; padding-top: 1.25rem; }
    .reader-v2-header { position: relative; }
    .reader-v2-header h1 { font-size: 2.375rem; font-weight: 500; line-height: 1.1; }
    .reader-v2-header .reader-v2-hero { display: none; }
    .reader-v2-chapter-label { display: block; margin: 0; color: var(--gold); font-size: .6875rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
    .reader-v2-chapter-label { min-height: 44px; display: flex; align-items: start; padding-top: .2rem; padding-right: 14rem; }
    .reader-v2-desktop-actions:not(:empty) { position: absolute; top: 0; right: 0; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .25rem; }
    .reader-v2-header:not(:has(.reader-v2-chapter-label)) { padding-top: 56px; }
    .guide-reader-sidebar > .reader-v2-mode { margin-top: 1rem; font-size: .8125rem; }
    .guide-reader-v2 .collection-toc-desktop .reader-chapter-state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .guide-reader-v2 .collection-toc-desktop a[data-state="read"] > span { color: var(--bg); border-color: var(--gold); background: var(--gold); }
    .reader-v2-desktop-actions :is(.task-bar-action,.button) { display: inline-flex; align-items: center; justify-content: center; gap: .375rem; width: auto; min-width: 44px; min-height: 44px; padding: .5rem .75rem; margin: 0; border: 1px solid var(--border-soft); border-radius: 9px; background: transparent; color: var(--muted); font-size: .8125rem; font-weight: 400; box-shadow: none; }
    .reader-v2-desktop-actions svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
    .reader-v2-button-label { display: inline; }
    .guide-reader-v2[data-reader-layout-ready] .reader-task-bar { min-height: 3px; height: 3px; padding: 0; display: block; }
    .guide-reader-v2[data-reader-layout-ready] .reader-task-bar > .task-bar-title, .guide-reader-v2[data-reader-layout-ready] .reader-task-bar .reader-bar-actions { display: none; }
    .guide-reader-v2 .guide-reader-sidebar > [data-reader-back] { display: inline-flex; align-items: center; gap: .375rem; min-height: 44px; margin-bottom: 1.125rem; color: var(--muted); font-size: .875rem; font-weight: 400; text-decoration: none; }
    .guide-reader-v2 .guide-reader-sidebar > [data-reader-reset] { margin-top: 1rem; min-height: 44px; color: var(--muted); font-size: .8125rem; }
    .guide-reader-v2 .collection-toc-desktop, .guide-reader-v2 .guide-section-toc-desktop { border: 0; border-radius: 0; background: transparent; padding: 0; }
    .guide-reader-v2 .collection-toc h2 { font: 600 1.0625rem/1.3 var(--serif); }
    .guide-reader-v2 .collection-toc nav { gap: .125rem; }
    .guide-reader-v2 .collection-toc nav > a { grid-template-columns: 24px minmax(0,1fr); gap: .625rem; min-height: 44px; padding: .375rem .625rem; border: 0; border-radius: 8px; font-size: .8125rem; }
    .guide-reader-v2 .collection-toc nav > a > span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--border-soft); border-radius: 50%; font-size: .625rem; }
    .guide-reader-v2 .collection-toc nav > a strong { font-weight: 400; }
    .guide-reader-v2 .collection-toc nav > a.is-current { color: var(--gold-light); background: rgba(212,168,63,.12); }
    .guide-reader-v2 .collection-toc nav > a.is-current > span { border-color: var(--gold); }
    .guide-reader-v2 .guide-section-toc-desktop { margin-top: 1.125rem; padding-top: .875rem; border-top: 1px solid var(--border-soft); }
    .guide-reader-v2 .guide-section-toc h2 { color: var(--gold); font: 800 .6875rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
    .guide-reader-v2 .reading-brief:has([data-reading-list="steps"]) { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .25rem 1.25rem; }
    .guide-reader-v2 .reading-brief-heading, .guide-reader-v2 [data-reading-list="takeaways"], .guide-reader-v2 [data-reading-list="prerequisites"] { grid-column: 1; }
    .guide-reader-v2 [data-reading-list="steps"] { grid-column: 2; grid-row: 1 / span 3; margin: 0; padding: 0 0 0 1.25rem; border-top: 0; border-left: 1px solid var(--border-soft); }
    .guide-reader-v2 .guide-reader-content { max-width: 66ch; }
    .guide-reader-v2 .guide-reader-sidebar { top: calc(var(--ui-sticky-top,72px) + 1rem); max-height: calc(100dvh - var(--ui-sticky-top,72px) - 2rem); }
    .reader-v2-chapter-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reader-v2-chapter-nav > :first-child { grid-column: 2; grid-row: 1; }
}
@media print {
    .reader-task-bar, .reader-v2-mode, .reader-v2-read-full { display: none !important; }
}

/* Series reader: one navigation, current chapter outline first, all chapters collapsed by default. */
.collection-toc-chapters { margin-top: .875rem; }
.collection-toc-chapters > summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .25rem .625rem; border: 1px solid var(--border-soft); border-radius: 8px; color: var(--gold-light); font-size: .8125rem; font-weight: 700; list-style: none; cursor: pointer; }
.collection-toc-chapters > summary::-webkit-details-marker { display: none; }
.collection-toc-chapters > summary::after { content: "▾"; color: var(--gold); }
.collection-toc-chapters[open] > summary::after { content: "▴"; }
.collection-toc-chapters > summary small { margin-left: auto; color: var(--quiet); font-weight: 500; }
.collection-toc-chapters[open] > nav { margin-top: .5rem; }
.guide-section-toc-in-series { margin-top: .875rem; padding-top: .75rem; border-top: 1px solid var(--border-soft); }
.guide-section-toc-in-series h3 { margin: 0 0 .25rem; color: var(--gold); font: 800 .6875rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.reader-v2-updated time { font-weight: 600; }
/* Floating "My reading" button: exact place, share and optional feedback, always at hand while reading. */
.reader-fab { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: calc(5.35rem + env(safe-area-inset-bottom)); z-index: 31; }
.reader-fab > summary { position: relative; width: 3.25rem; height: 3.25rem; display: grid; place-items: center; border: 1px solid var(--gold-dark); border-radius: 50%; background: var(--surface-2); color: var(--gold-light); box-shadow: 0 10px 28px rgba(0,0,0,.45); cursor: pointer; list-style: none; }
.reader-fab > summary::-webkit-details-marker { display: none; }
.reader-fab > summary:hover { border-color: var(--gold); }
.reader-fab > summary:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.reader-fab > summary svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.reader-fab[open] > summary { background: var(--gold); color: var(--bg); }
.reader-fab:has([data-reader-remember][aria-pressed="true"]) > summary svg path { fill: currentColor; }
.reader-fab-dot { position: absolute; top: .55rem; right: .6rem; width: .6rem; height: .6rem; border: 2px solid var(--surface-2); border-radius: 50%; background: var(--success); }
.reader-fab-dot[hidden] { display: none; }
.reader-fab-panel { position: absolute; right: 0; bottom: calc(100% + .6rem); width: min(19.5rem, calc(100vw - 2rem)); max-height: calc(100dvh - 10rem); overflow-y: auto; display: grid; gap: .55rem; padding: .9rem; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.reader-fab-title { margin: 0; color: var(--quiet); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.reader-fab-action { width: 100%; min-height: 44px; display: flex; align-items: center; gap: .65rem; padding: .55rem .75rem; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--bg-elevated); color: var(--text); font: inherit; font-weight: 650; text-align: left; cursor: pointer; }
.reader-fab-action:hover { border-color: var(--gold-dark); }
.reader-fab-action:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.reader-fab-action svg { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: var(--gold-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reader-fab-action[aria-pressed="true"] svg path { fill: var(--gold-light); }
.reader-fab .reader-v2-button-label { display: inline; }
.reader-fab-note { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.reader-fab-note:empty, .reader-fab-note[hidden], .reader-fab-row[hidden], .reader-fab [data-reader-sync-retry][hidden] { display: none; }
.reader-fab-help { color: var(--quiet); font-size: .76rem; line-height: 1.4; }
.reader-fab-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; }
.reader-fab-row .text-button { min-height: 44px; }
.reader-fab-feedback { display: grid; gap: .45rem; margin-top: .15rem; padding-top: .7rem; border-top: 1px solid var(--border-soft); }
.reader-fab-feedback > p:first-child { margin: 0; font-size: .9rem; font-weight: 650; }
.reader-fab-feedback form { flex: 1 1 7rem; margin: 0; }
.reader-fab-feedback button { width: 100%; min-height: 44px; }
.guide-feedback-compact > summary { min-height: 44px; display: flex; align-items: center; font-weight: 650; cursor: pointer; }
@media (min-width: 58rem) {
    .reader-fab { right: max(1.5rem, env(safe-area-inset-right)); bottom: 1.5rem; }
}
@media print {
    .reader-fab { display: none !important; }
}
/* Public series page: overview, parts and chapters. */
.series-page { max-width: 52rem; display: grid; gap: 1.5rem; padding-block: 1rem 3rem; }
.series-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; color: var(--quiet); font-size: .85rem; }
.series-breadcrumb a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.series-page-header { display: grid; gap: .75rem; padding: 1.25rem; border: 1px solid var(--gold-dark); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(212,168,63,.1), transparent 60%), var(--surface); }
.series-page-header h1 { margin: 0; font: 700 clamp(1.7rem, 4vw, 2.4rem)/1.15 var(--serif); }
.series-page-summary { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.series-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.series-page-actions .reader-v2-languages { margin: 0; }
.series-part { display: grid; gap: .6rem; }
.series-part h2 { margin: .5rem 0 0; color: var(--gold); font: 800 .75rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.series-chapters { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.series-chapters a { display: grid; grid-template-columns: 2.5rem minmax(0,1fr); gap: .85rem; align-items: start; padding: .85rem 1rem; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.series-chapters a:hover, .series-chapters a:focus-visible { border-color: var(--gold-dark); background: var(--surface-2); }
.series-chapter-number { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(212,168,63,.12); color: var(--gold-light); font-weight: 800; }
.series-chapter-text { display: grid; gap: .25rem; min-width: 0; }
.series-chapter-text strong { line-height: 1.35; }
.series-chapter-text small { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.collection-toc-series-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; }
/* "Read next" at the end of a guide outside a series. */
.guide-related { margin: 2rem 0 1rem; }
.guide-related h2 { margin: 0 0 .75rem; color: var(--gold); font: 800 .75rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.guide-related ul { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.guide-related a { display: grid; gap: .25rem; padding: .85rem 1rem; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.guide-related a:hover, .guide-related a:focus-visible { border-color: var(--gold-dark); background: var(--surface-2); }
.guide-related small { color: var(--muted); font-size: .88rem; line-height: 1.45; }
@media (min-width: 58rem) { .guide-related ul { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
/* Pictures open full size on a tap. */
.rendered-markdown img.is-zoomable { cursor: zoom-in; }
.rendered-markdown img.is-zoomable:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.image-zoom { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 1rem; border: 0; background: rgba(5,6,8,.94); color: var(--text); }
.image-zoom[open] { display: grid; place-items: center; grid-template-rows: minmax(0,1fr) auto; gap: .75rem; }
.image-zoom::backdrop { background: rgba(0,0,0,.8); }
.image-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: .4rem; }
.image-zoom p { margin: 0; max-width: 46rem; color: var(--muted); text-align: center; }
.image-zoom p[hidden] { display: none; }
.image-zoom-close { position: fixed; top: max(.75rem, env(safe-area-inset-top)); right: max(.75rem, env(safe-area-inset-right)); width: 44px; height: 44px; border: 1px solid var(--border-soft); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 1.5rem; cursor: pointer; }
.image-zoom img { cursor: zoom-in; }
.image-zoom.is-actual-size { overflow: auto; place-items: start; }
.image-zoom.is-actual-size img { max-width: none; max-height: none; cursor: zoom-out; }
/* Series presentation (the edition's home page for the Académie): catch line, ways in, promise. */
.series-introduction { display: grid; gap: .25rem; padding: 1.25rem; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); background: var(--surface); font-size: 1.02rem; line-height: 1.6; }
.series-introduction > :first-child { margin-top: 0; }
.series-introduction > small:first-child { color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.series-introduction > p > strong:only-child { display: block; color: var(--text); font: 700 1.3rem/1.3 var(--serif); }
.series-introduction h3 { margin: 1.25rem 0 .5rem; color: var(--gold-light); font: 700 1.1rem/1.35 var(--serif); }
.series-introduction ul:has(> li > a:only-child) { display: grid; grid-template-columns: 1fr; gap: .6rem; margin: .25rem 0 .5rem; padding: 0; list-style: none; }
.series-introduction li > a:only-child { height: 100%; display: grid; align-content: start; gap: .2rem; padding: .85rem 1rem; border: 1px solid var(--gold-dark); border-radius: var(--radius); background: var(--bg-elevated); color: var(--muted); font-size: .92rem; line-height: 1.45; text-decoration: none; }
.series-introduction li > a:only-child:hover, .series-introduction li > a:only-child:focus-visible { border-color: var(--gold); background: var(--surface-2); }
.series-introduction li > a:only-child em { color: var(--gold); font-size: .7rem; font-style: normal; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.series-introduction li > a:only-child strong { color: var(--text); font-size: 1.02rem; }
.series-introduction .guide-callout { margin-top: 1rem; }
.series-chapter-time { color: var(--quiet); font-size: .78rem; font-style: normal; }
@media (min-width: 560px) { .series-introduction ul:has(> li > a:only-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
