/* Chapter-only finishing layer. Never load on the entrance or opening story. */
.cinema-page :is(a,button,summary,select):focus-visible,
.chapter-body :is(a,button,summary,select):focus-visible,
.osmania-chapter :is(a,button,summary,select,canvas):focus-visible{outline:3px solid #ec9f49;outline-offset:4px}
.cinema-page :is(button,a,summary),.chapter-body :is(button,a,summary,select),.osmania-chapter :is(button,a,summary){touch-action:manipulation}

/* Chapter menus and onward routes. Existing Previous/Next geometry stays intact. */
.cinema-page .film-brand{min-height:44px}
.cinema-page .film-links{gap:22px;font-size:12px;letter-spacing:.07em}
.cinema-page .film-links a{display:inline-flex;align-items:center;min-height:44px}
.cinema-page .film-menu{min-width:48px;min-height:48px;font-size:23px}
.cinema-page .film-scroll{min-height:48px}
.cinema-page .film-video-toggle{min-width:44px;min-height:44px;background:#07151bea;border-color:#eef7fa;font-size:20px}
.cinema-page .film-chapter-menu nav{gap:6px}
.cinema-page .film-chapter-menu nav a{display:flex;align-items:center;min-height:48px;padding:10px 12px;border-radius:9px;border:1px solid #ffffff2e;line-height:1.4}
.cinema-page .film-chapter-menu nav a:hover,.cinema-page .film-chapter-menu nav a[aria-current="page"]{background:#ffffff19;border-color:#ffffff82}
.cinema-page .film-chapter-menu button{min-height:44px;padding:11px 17px}
.cinema-page .film-details-toggle>summary{min-height:64px;gap:24px}
.cinema-page .film-end a{display:inline-flex;align-items:center;min-height:48px;font-size:14px;line-height:1.45}

/* Evidence tabs remain compact enough to scan, but readable and easy to touch. */
.cinema-page .chapter-evidence .ce-tablist{gap:8px;flex-wrap:wrap}
.cinema-page .chapter-evidence .ce-tablist>[role="tab"]{min-height:48px;padding:12px 18px;border:1px solid #5464615c;background:#ffffff72;color:var(--film-ink);font-size:14px}
.cinema-page .chapter-evidence .ce-tablist>[aria-selected="true"]{background:var(--film-ink);border-color:var(--film-ink);color:#fff;box-shadow:0 3px 12px #10221c20}
.cinema-page .chapter-evidence .ce-milestones .ce-tablist{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.cinema-page .chapter-evidence .ce-milestones [role="tab"]{padding:12px 8px;border-radius:12px}
.cinema-page .chapter-evidence .ce-year{font-size:11px;letter-spacing:0}
.cinema-page .chapter-evidence .ce-tab-name{font-size:13px;margin-top:6px}
.cinema-page .chapter-evidence .ce-milestones [aria-selected="true"] .ce-year{color:#f1f6ed}
.cinema-page .chapter-evidence .ce-reveal>summary{min-height:48px;font-size:15px;line-height:1.45;padding:8px 0}
.cinema-page .chapter-evidence .ce-glass-button{min-height:48px;font-size:14px;white-space:normal;line-height:1.45}
.cinema-page .chapter-evidence .ce-quiz button{min-height:48px;padding:15px 38px 15px 12px;font-size:15px;border-radius:5px}
.cinema-page .film-mini-answers button{min-height:44px;font-size:12px;line-height:1.35;padding:9px 10px;border-color:#126d5a92}
.cinema-page .film-native-card a{display:inline-flex;align-items:center;min-height:44px;font-size:13px;line-height:1.35;padding:8px 0;text-decoration-thickness:1.5px}

/* Research chapters: strong top actions and comfortable reading-list targets. */
.chapter-body .story-top a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 16px;font-size:12px;line-height:1.3;letter-spacing:.02em}
.chapter-body .story-top>span{font-size:11px;letter-spacing:.08em}
.chapter-body .story-navigation button{font-size:12px}
.chapter-body .story-navigation select{font-size:12px}
.chapter-body .research-section .end-actions a{min-height:48px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;line-height:1.5}
.chapter-body .research-section .source-list a{min-height:56px;font-size:15px;line-height:1.6;padding:18px 12px;border:1px solid #c0956347;border-radius:12px;margin-bottom:10px;background:#fff8ee06}
.chapter-body .research-section .source-list a:hover{background:#c7955120;border-color:#f0b778}
.chapter-body .research-section .source-list a span{font-size:12px;line-height:1.5}
.chapter-body .research-section sup{display:inline-block;vertical-align:middle;line-height:1;margin-left:5px}
.chapter-body .research-section sup a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:9px 11px;border:1px solid #eebd8a6b;border-radius:999px;font:12px/1.2 Inter,sans-serif;text-decoration:none;background:#ae743818}
.chapter-body .research-section sup a:before{content:"Source ";white-space:pre}
.chapter-body .research-notes{font-size:14px;line-height:1.75}
.chapter-body .research-notes a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;padding:7px 8px;margin:3px 0;border-radius:7px;background:#f0ba790b;text-decoration:underline;text-decoration-thickness:1px;line-height:1.6}

/* Osmania retains its own composition; only the actual controls change. */
.osmania-chapter .os-brand,.osmania-chapter .os-opening-cta{min-height:44px}
.osmania-chapter .os-nav a,.osmania-chapter .os-nav button{min-height:44px;font-size:12px}
.osmania-chapter .os-back{min-height:44px;font-size:12px}
.osmania-chapter .os-card-top a{width:auto;min-width:76px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;margin:-5px -3px;padding:8px 11px;border:1px solid #53606650;border-radius:999px;background:#fff9;color:#1f292e}
.osmania-chapter .os-card-top a:before{content:"View";font:600 12px/1.3 Inter,sans-serif}
.osmania-chapter .os-archive details>summary{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:15px;line-height:1.45}
.osmania-chapter .os-source-detail a{display:inline-flex;align-items:center;min-height:44px;padding:8px 6px;font-size:14px;text-underline-offset:4px}
.osmania-chapter .os-footer-glass>a,.osmania-chapter .os-footer-bottom a{display:inline-flex;align-items:center;min-height:44px;font-size:13px;line-height:1.45}
.osmania-chapter .os-scene-controls button:disabled{opacity:1;color:#aeb8b5;background:#ffffff0c;cursor:not-allowed}
@media(max-width:760px){
 .cinema-page .film-chapter-menu{padding:26px;max-height:88svh;overflow:auto}
 .cinema-page .film-chapter-menu nav a{font-size:14px;padding:10px}
 .cinema-page .chapter-evidence .ce-milestones .ce-tablist{grid-template-columns:repeat(3,minmax(0,1fr))}
 .cinema-page .chapter-evidence .ce-tablist>[role="tab"]{font-size:14px;padding:11px 13px}
 .cinema-page .chapter-evidence .ce-milestones [role="tab"]{padding:11px 6px}
 .cinema-page .chapter-evidence .ce-year{font-size:11px}
 .cinema-page .chapter-evidence .ce-tab-name{font-size:12px}
 .cinema-page .film-mini-answers{gap:7px}
 .cinema-page .film-mini-answers button{flex:1;min-width:0;font-size:12px;padding:8px}
 .cinema-page .film-native-card a{font-size:12px}
 .chapter-body .story-top{gap:10px}
 .chapter-body .story-top>span{max-width:25%;font-size:9px;letter-spacing:.02em}
 .chapter-body .story-top a,.chapter-body .story-top .story-explore{font-size:11px;padding:10px}
 .chapter-body .story-actions{gap:6px}
 .chapter-body .research-section .source-list a{padding:17px 12px;font-size:14px}
 .chapter-body .research-section .end-actions a{width:100%}
 .osmania-chapter .os-nav a,.osmania-chapter .os-nav button{font-size:11px;padding:9px 11px}
 .osmania-chapter .os-back{font-size:11px;padding:8px 9px}
 .osmania-chapter .os-footer-bottom{align-items:center;gap:12px;flex-wrap:wrap}
}
@media(max-width:380px){
 .chapter-body .story-top>span{display:none}
 .chapter-body .story-actions{width:100%;justify-content:space-between}
 .osmania-chapter .os-back{font-size:10px;padding:8px}
 .osmania-chapter .os-nav a,.osmania-chapter .os-nav button{padding-inline:9px}
}
@media(forced-colors:active){
 .cinema-page :is(button,summary,a),.chapter-body :is(button,select,a),.osmania-chapter :is(button,summary,a){forced-color-adjust:auto}
 .cinema-page [aria-selected="true"],.cinema-page [aria-current="true"]{border:2px solid Highlight!important}
}

/* Anchor destinations stay below the persistent chapter controls. */
.cinema-page #film-details{scroll-margin-top:96px}
.chapter-body .research-section,.chapter-body .research-notes li{scroll-margin-top:100px}
.osmania-chapter :is(#os-methods,#os-separate,#os-confirm,#os-findings,#os-records){scroll-margin-top:100px}
@media(max-width:760px){.osmania-chapter :is(#os-methods,#os-separate,#os-confirm,#os-findings,#os-records){scroll-margin-top:140px}}
