.reading-toolbar{background:#fff;color:#173e46;border-bottom:1px solid #66818a;padding:.5rem 1rem;position:relative;z-index:20}.reading-row{max-width:1120px;margin:auto;display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}.reading-group{display:flex;align-items:center;gap:.4rem}.reading-row button,.reading-row summary,.reading-row select{font:inherit;min-height:44px;padding:.45rem .65rem;line-height:1.4;border:1px solid #245966;border-radius:.5rem;cursor:pointer}.reading-row button{background:#245966;color:white}.reading-row select{width:auto;background:#fff;color:#173e46;min-width:5rem}.reading-options{margin:0;padding:0;border:0;position:relative}.reading-options summary{background:#eef3ef;list-style:none;color:#173e46;display:flex;align-items:center}.reading-options summary::-webkit-details-marker{display:none}.reading-options summary:after{content:' ▾'}.reading-popup{position:absolute;left:0;top:calc(100% + .5rem);width:min(23rem,calc(100vw - 2rem));max-height:75vh;overflow:auto;padding:1rem;background:#fff;color:#173e46;border:2px solid #245966;border-radius:.6rem;box-shadow:0 6px 18px #0002}.reading-popup .reader-inner{max-width:none}.reading-popup .reader-actions{display:flex;gap:.4rem;flex-wrap:wrap}.reading-popup h2{font-size:1rem}.reading-popup p{font-size:.9rem}.font-control{display:flex;align-items:center;gap:.35rem}.font-control label{display:inline;margin:0;white-space:nowrap}.reading-toolbar #speech-status,.reading-toolbar #static-speech-status{margin:.4rem 0}.reading-toolbar :focus-visible{outline:3px solid #9a4c00;outline-offset:3px}nav#nav>*{flex:1;min-width:140px}nav#nav .map-entry{min-width:140px}html.high-contrast{--ink:#fff;--paper:#000;--accent:#fff;--muted:#fff;--line:#fff;--gold:#fff;--focus:#ffea00;color-scheme:dark}html.high-contrast body,html.high-contrast header,html.high-contrast .reading-toolbar,html.high-contrast .reading-popup,html.high-contrast .reader,html.high-contrast .card,html.high-contrast .stats div,html.high-contrast .tag,html.high-contrast .warning,html.high-contrast dialog{background:#000;color:#fff;border-color:#fff}html.high-contrast a{color:#ffea00}html.high-contrast button,html.high-contrast .button-link,html.high-contrast summary,html.high-contrast input,html.high-contrast select,html.high-contrast textarea{background:#000;color:#fff;border-color:#fff}html.high-contrast button[aria-current=page],html.high-contrast button[aria-pressed=true]{background:#fff;color:#000}html.high-contrast .note,html.high-contrast .small,html.high-contrast .error{color:#fff}html.high-contrast :focus-visible{outline-color:#ffea00}@media(max-width:600px){.reading-toolbar{padding:.4rem .6rem}.reading-row{gap:.4rem}.reading-row button,.reading-row summary,.reading-row select{padding:.4rem .5rem}.reading-popup{position:fixed;left:1rem;right:1rem;top:5rem;width:auto}nav#nav>*{min-width:40%}nav#nav .map-entry{min-width:40%}}@media print{.reading-toolbar{display:none}}
@media(max-width:600px){.font-control label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.reading-options summary{font-size:0;min-width:44px;justify-content:center}.reading-options summary:after{content:"⋯";font-size:1rem}.reading-row button,.reading-row select{font-size:.9rem}}
html.high-contrast .map-panel,html.high-contrast .detail-panel,html.high-contrast .method,html.high-contrast .event-card,html.high-contrast .notice,html.high-contrast .status-badge,html.high-contrast .source-badge,html.high-contrast .novel-badge,html.high-contrast .timeline-bar,html.high-contrast .skip{background:#000;color:#fff;border-color:#fff}
header .resource-entry{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.55rem .9rem;border:1px solid #c7d2d0;border-radius:.5rem;background:#fff;color:#173e46;text-decoration:none;line-height:1.4}
