/* Group 1 presentation only. Existing media, audio mixes and session owners stay in place. */
html[data-rv-group]{--ink:#0b0c12;--bg:#08090d;--paper:#f1ece3;--muted:#c8c3ba;--gold:#dcc28a;--line:#3d3b46;--nav-h:var(--rv-measured-nav-h,var(--rv-nav-h));--header:var(--rv-measured-nav-h,var(--rv-nav-h));scroll-padding-top:calc(var(--rv-measured-nav-h,var(--rv-nav-h)) + 16px)}
html[data-rv-group] :is(input:not([type=checkbox]),select){min-height:48px;font:400 16px/1.5 Inter,system-ui,sans-serif;max-width:100%}
html[data-rv-group] input[type=range]{min-height:44px}
html[data-rv-group] :is(.intro-copy,.cover-intro,.catalog-hero p:not(.eyebrow),.card-body>p:not(.card-kicker),.scene-caption>p){font:300 18px/1.7 'Source Serif 4',Georgia,serif;max-width:68ch;color:var(--rv-text)}
html[data-rv-group] :is(.reading-time,.intro-facts,.card-kicker,.card-tags li,#result-count,#chapter-number,.scene-number,.viewer-help,.viewer-header p,.art-tools output){font:400 12px/1.6 Inter,system-ui,sans-serif;color:var(--rv-muted)}
html[data-rv-group] :is(.card-read,.catalog-back,.catalog-footer a,.intro-links a,.scene-actions a,.next-scene,.text-link,.archive-link,.resume,.story-footer a){min-height:44px;display:inline-flex;align-items:center;gap:8px;font:400 14px/1.5 Inter,system-ui,sans-serif;color:var(--rv-gold);text-decoration:underline;text-underline-offset:4px}
html[data-rv-group] :is(.begin,.begin-link){min-height:48px;padding:12px 20px;border:1px solid var(--rv-gold);border-radius:4px;background:var(--rv-gold);color:var(--rv-exterior);font:400 14px/1.5 Inter,system-ui,sans-serif;text-decoration:none;display:inline-flex;gap:12px;align-items:center}
html[data-rv-group] .begin span{color:inherit}
html[data-rv-group] .intro-links .begin-link{color:var(--rv-exterior);text-decoration:none}
html[data-rv-group] :is(.reader-dialog,.art-dialog){background:var(--rv-panel);color:var(--rv-text)}
html[data-rv-group] :is(.dialog-heading,.viewer-header){flex-wrap:wrap;gap:12px}
html[data-rv-group] :is(.dialog-heading>div,.viewer-header>div){min-width:0;flex:1}
html[data-rv-group] :is(.dialog-heading h2,.reader-dialog h2){font-size:28px;line-height:1.25}
html[data-rv-group] .dialog-heading>button{flex-shrink:0}
html[data-rv-group] :is(.viewer-toolbar,.art-tools){gap:8px;padding:12px}
html[data-rv-group] :is(.viewer-toolbar button,.viewer-toolbar a,.art-tools button,.art-tools a,.scene-actions button){font-size:14px;min-width:44px;min-height:44px}
html[data-rv-group] :is(.viewer-header h2,.art-dialog .dialog-heading h2){font-size:22px;line-height:1.3}
html[data-rv-group] :is(.viewer-header span,.scene-panel figcaption,.cover-art figcaption,.scene-art figcaption){font:400 12px/1.6 Inter,system-ui,sans-serif;letter-spacing:.04em;color:var(--rv-muted)}
html[data-rv-group] .skip:focus{z-index:30000;transform:none;background:var(--rv-panel);color:var(--rv-text)}

html[data-rv-group=catalogue] .catalog-wrap{width:min(1240px,calc(100% - 96px))}
html[data-rv-group=catalogue] .catalog-heading{flex-wrap:wrap;align-items:start}
html[data-rv-group=catalogue] .catalog-heading h2{font-size:28px;line-height:1.25}
html[data-rv-group=catalogue] .catalog-tools :is(label,.filter-label){font-size:14px}
html[data-rv-group=catalogue] .tag{min-height:44px;font-size:14px;border-radius:4px}
html[data-rv-group=catalogue] .tag.is-active{background:var(--rv-gold);border-color:var(--rv-gold);color:var(--rv-exterior)}
html[data-rv-group=catalogue] .story-card{overflow:visible;background:var(--rv-panel)}
html[data-rv-group=catalogue] .card-body{padding:24px}
html[data-rv-group=catalogue] .card-body h3{font-size:28px;line-height:1.25}
html[data-rv-group=catalogue] .card-body>p:not(.card-kicker){min-height:0;margin-bottom:20px}
html[data-rv-group=catalogue] .no-results{padding:24px}
html[data-rv-group=catalogue] .no-results button{border-radius:4px;color:var(--rv-gold);border-color:var(--rv-gold);background:var(--rv-panel)}

html[data-rv-group=moment] .story-shell{width:min(1400px,calc(100% - 96px))}
html[data-rv-group=moment] .story-intro{padding-top:64px}
html[data-rv-group=moment] #reader-toolbar{top:var(--rv-measured-nav-h,var(--rv-nav-h));min-height:68px;gap:12px;padding:8px 48px;background:var(--rv-reading);grid-template-columns:auto minmax(0,1fr) auto}
html[data-rv-group=moment] :is(.reader-controls,.sound-controls){gap:8px;min-width:0;flex-wrap:wrap}
html[data-rv-group=moment] #scene-count{font-size:12px;line-height:1.6}
html[data-rv-group=moment] .reader-select{min-width:0}
html[data-rv-group=moment] .sound-controls input{width:68px;max-width:100%}
html[data-rv-group=moment] .story-scene{scroll-margin-top:calc(var(--rv-measured-nav-h,var(--rv-nav-h)) + var(--rv-local-bar-h,68px) + 16px);padding-block:48px}
html[data-rv-group=moment] .scene-header{align-items:baseline;gap:16px;flex-wrap:wrap;margin-bottom:24px}
html[data-rv-group=moment] .scene-header h2{font-size:44px;line-height:1.15;min-width:0}
html[data-rv-group=moment] .scene-caption{padding-block:12px 24px;gap:24px}
html[data-rv-group=moment] .scene-caption>p{margin:0}
html[data-rv-group=moment] .scene-actions{white-space:normal;flex-wrap:wrap}
html[data-rv-group=moment] .sound-controls button[aria-pressed=true]{background:var(--rv-elevated);border-color:var(--rv-gold);color:var(--rv-gold)}

html[data-rv-group=weight] .cover{grid-template-columns:minmax(0,.85fr) minmax(0,1.65fr)}
html[data-rv-group=weight] .cover-copy{min-width:0}
html[data-rv-group=weight] .cover h1{letter-spacing:normal;color:var(--rv-text)}
html[data-rv-group=weight] :is(.sound-invitation,.sound-note,.setting label,.setting-note,#share-dialog>label){font:400 14px/1.6 Inter,system-ui,sans-serif;color:var(--rv-muted)}
html[data-rv-group=weight] .scene-copy h2{font-size:44px;line-height:1.15;letter-spacing:normal}
html[data-rv-group=weight] .scene-copy header{margin-bottom:24px}
html[data-rv-group=weight] .prose{font:300 calc(18px * var(--text-scale))/1.7 'Source Serif 4',Georgia,serif;max-width:68ch;color:var(--rv-text)}
html[data-rv-group=weight] .prose p{margin-bottom:20px}
html[data-rv-group=weight] .prose em{color:inherit}
html[data-rv-group=weight] .reader-dock{gap:8px;padding:8px;background:var(--rv-panel);border-radius:4px;max-width:calc(100% - 32px)}
html[data-rv-group=weight] .reader-dock button{font-size:14px;gap:8px;min-width:44px;min-height:44px;white-space:normal;overflow-wrap:anywhere}
html[data-rv-group=weight] .reader-dock .dock-label{font-size:14px;line-height:1.5}
html[data-rv-group=weight] .reader-dock .rv-action-icon{width:20px;height:20px}
html[data-rv-group=weight] .chapter-list a{grid-template-columns:28px minmax(0,1fr) 20px;gap:12px;min-height:44px}
html[data-rv-group=weight] .chapter-list a strong{font:300 18px/1.7 'Source Serif 4',Georgia,serif;overflow-wrap:anywhere}
html[data-rv-group=weight] .chapter-list a span{font-size:12px}
html[data-rv-group=weight] :is(.setting output,#copy-status){font-size:12px}
html[data-rv-group=weight] .art-hint{font:400 12px/1.6 Inter,system-ui,sans-serif;opacity:1}
html[data-rv-group=weight] :is(.story-end,.rv-footer-host){padding-bottom:calc(var(--rv-dock-h,80px) + 48px)}
html[data-rv-group=weight].rv-reading-tight .scene-art{position:static;box-shadow:none}
html[data-rv-group=weight].rv-reading-tight .scene-art img{max-height:none}

@media(max-width:900px){
 html[data-rv-group=catalogue] .catalog-wrap,html[data-rv-group=moment] .story-shell{width:calc(100% - 48px)}
 html[data-rv-group=catalogue] :is(.catalog-heading h2,.card-body h3){font-size:26px}
 html[data-rv-group=moment] #reader-toolbar{min-height:64px;grid-template-columns:1fr auto;padding:8px 24px;gap:8px 12px}
 html[data-rv-group=moment] .reader-select{grid-column:1/-1;grid-row:2}
 html[data-rv-group=moment] .reader-select select{font-size:16px}
 html[data-rv-group=moment] .sound-controls{grid-column:2;grid-row:1}
 html[data-rv-group=moment] .scene-header h2,html[data-rv-group=weight] .scene-copy h2{font-size:32px}
 html[data-rv-group=moment] .story-intro{padding-top:48px}
 html[data-rv-group=weight] .scene-copy{padding-inline:24px}
}
@media(max-width:560px){
 html[data-rv-group=moment] #reader-toolbar{grid-template-columns:1fr}
 html[data-rv-group=moment] .reader-controls{grid-column:1;grid-row:1;justify-content:space-between}
 html[data-rv-group=moment] .reader-select{grid-column:1;grid-row:2}
 html[data-rv-group=moment] .sound-controls{grid-column:1;grid-row:3;justify-content:space-between}
 html[data-rv-group=moment] .sound-controls input{width:120px}
 html[data-rv-group=moment] .scene-caption{grid-template-columns:1fr}
 html[data-rv-group=weight] .reader-dock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:calc(100% - 24px);max-width:none;gap:4px;padding:6px}
 html[data-rv-group=weight] .reader-dock .dock-divider{display:none}
 html[data-rv-group=weight] .reader-dock button{padding:6px 4px;gap:4px}
 html[data-rv-group=weight] .art-tools{gap:8px}
 html[data-rv-group=weight] .art-tools a{flex-basis:100%}
}
@media(max-width:360px){
 html[data-rv-group=catalogue] .catalog-wrap,html[data-rv-group=moment] .story-shell{width:calc(100% - 32px)}
 html[data-rv-group=moment] #reader-toolbar,html[data-rv-group=weight] .scene-copy{padding-inline:16px}
 html[data-rv-group=weight] .reader-dock{width:calc(100% - 16px)}
}
@media(max-height:620px){
 html[data-rv-group=moment] #reader-toolbar{position:relative;top:auto}
 html[data-rv-group=moment] .story-scene{scroll-margin-top:calc(var(--rv-measured-nav-h,var(--rv-nav-h)) + 16px)}
 html[data-rv-group=weight] .scene-art{position:static;box-shadow:none}
 html[data-rv-group=weight] .scene-art img{max-height:none}
 html[data-rv-group] .viewer-help{display:none}
}
