
:root{--atlas-black:#101710;--atlas-paper:#f6f4ea;--atlas-ivory:#fbfaf3;--atlas-line:#cbd0bf;--atlas-lime:#e2f577;--atlas-blue:#19347e}
body{background:var(--atlas-paper)}
.masthead{background:var(--atlas-black);border-color:#364135;color:#f7f7ec}
.masthead .brand-type strong,.footer .brand-type strong{font:700 1.01rem/1.09 var(--sans);letter-spacing:-.025em}
.masthead .brand-type small{color:#c3c9b9}.masthead .brand-mark{background:var(--atlas-lime);border-radius:8px}.masthead .brand-mark i{background:#283b2b}
.masthead .main-nav{gap:clamp(.8rem,1.8vw,1.85rem)}.masthead .main-nav a:hover,.masthead .main-nav button:hover{color:var(--atlas-lime)}.masthead .main-nav [aria-current]::after{background:var(--atlas-lime)}
.masthead .language{background:#f5f2e5;color:var(--atlas-black);padding:0 .66rem;border-radius:2rem}.masthead .language select{color:var(--atlas-black)}.masthead .language .icon-chevron{right:.75rem}.masthead .mast-join{color:var(--atlas-black);background:var(--atlas-lime);border-color:var(--atlas-lime)}.masthead .small-nav nav{color:var(--atlas-black)}
.atlas-wrap{max-width:1440px;margin:auto;padding:0 clamp(1.15rem,5.1vw,4.6rem)}
.atlas-wrap h1,.atlas-wrap h2,.atlas-wrap h3,.atlas-card h3{font-family:var(--serif);font-weight:400}
.overline,.folio,.card-series,.viewer-progress,.edition-crumbs,.edition-meta,.hero-engraving figcaption,.card-info-line{font-family:var(--sans);font-size:.82rem;font-weight:600;letter-spacing:.025em}
.overline,.card-series{text-transform:uppercase;letter-spacing:.096em}.overline{color:#4e5b4f}.ink-label{display:flex;align-items:center;gap:.8rem;color:var(--episode-ink,var(--atlas-blue))}.ink-label::before{content:"";height:2px;width:2rem;background:currentColor}
.atlas-hero{display:grid;grid-template-columns:.88fr 1.12fr;align-items:center;gap:clamp(1.2rem,5vw,5.8rem);padding:clamp(2rem,4.5vw,4.4rem) 0;border-bottom:1px solid var(--atlas-line)}
.atlas-hero h1{font-size:clamp(4.5rem,7.9vw,8rem);line-height:.93;letter-spacing:-.046em;margin:1.5rem 0 1.4rem}.atlas-hero h1 em{color:var(--atlas-blue);font-weight:400}
.atlas-hero-copy>p,.episode-summary{font-size:clamp(1.04rem,1.25vw,1.25rem);line-height:1.5;max-width:43ch;color:#364438}
.hero-cta,.end-actions{display:flex;flex-wrap:wrap;gap:.75rem 1.2rem;align-items:center;margin-top:1.65rem}
.atlas-button,.reader-tool{font:650 .95rem/1.2 var(--sans);display:inline-flex;align-items:center;justify-content:center;min-height:45px;padding:.76rem 1.35rem;border-radius:3rem;background:var(--atlas-black);color:#fffdf2;border:1px solid var(--atlas-black);text-align:center}
.atlas-button:hover{background:#334938;color:#fff}.atlas-button.secondary,.reader-tool{background:transparent;color:var(--atlas-black);border-color:#a2ab99}.atlas-button.secondary:hover,.reader-tool:hover{background:#eaeedd}
.atlas-button.text-link{background:transparent;border:0;border-bottom:1px solid #83927d;border-radius:0;padding:.46rem 0;min-height:35px;color:#344333}.atlas-button:disabled{background:transparent;color:#697163;border-color:#cbd0bf;cursor:default}
.hero-engraving{margin:0;border:1px solid var(--atlas-line);background:#fff;padding:clamp(.7rem,1.5vw,1.5rem);position:relative}.hero-engraving img{display:block;width:100%;aspect-ratio:1.6;object-fit:contain}.hero-engraving figcaption{display:flex;align-items:center;justify-content:space-between;gap:1rem;color:var(--atlas-blue);border-top:1px solid #dce1e8;padding-top:.9rem;margin-top:.65rem}.hero-engraving figcaption span:first-child,.folio,.plate-index li span{font-family:ui-monospace,monospace}
.atlas-collection{padding:3rem 0;scroll-margin-top:1rem}.atlas-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem}.atlas-toolbar h2{margin:.3rem 0 0;font-size:clamp(2.5rem,4.8vw,4.75rem);line-height:1.05;letter-spacing:-.035em}
.atlas-search{display:flex;align-items:center;gap:.7rem;background:transparent;border-bottom:1px solid #87937e;min-height:44px;padding:.5rem .2rem;width:min(18rem,34vw)}.atlas-search input{min-width:0;width:100%;border:0;outline:0;background:none;font-size:1rem}.atlas-search:focus-within{outline:2px solid var(--atlas-blue);outline-offset:3px}
.atlas-filters{margin:1.3rem 0 .7rem;display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}.atlas-filter{display:inline-flex;align-items:center;font-size:.91rem;border:1px solid #afb8a8;border-radius:2rem;padding:.52rem 1rem;min-height:42px}.atlas-filter:is(:hover,:focus-visible){border-color:var(--green);color:var(--green)}.atlas-filter[aria-current]{background:#20362a;color:#fff;border-color:#20362a}.atlas-count{color:#566451;font-size:.86rem;margin:.8rem 0 1.25rem}
.atlas-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2.5rem 1.6rem}.atlas-card{min-width:0;border-bottom:1px solid var(--atlas-line);background:transparent}.atlas-card a{display:block;color:inherit;text-decoration:none}.card-print{position:relative;background:white;overflow:hidden;border:1px solid #dfe1d6}.card-print img{width:100%;aspect-ratio:1.85;object-fit:contain;display:block;transition:transform .25s ease;padding:.55rem}.atlas-card a:hover .card-print img{transform:scale(1.035)}.folio{position:absolute;top:.6rem;left:.6rem;color:var(--episode-ink);background:rgba(255,255,255,.94);border:1px solid currentColor;padding:.05rem .35rem;border-radius:.1rem;letter-spacing:.04em}
.card-info{padding:1.05rem 0 .9rem}.card-series{font-size:.76rem;color:var(--episode-ink);letter-spacing:.075em}.atlas-card h3{font-size:clamp(1.65rem,2.55vw,2.55rem);line-height:1.05;letter-spacing:-.025em;margin:.42rem 0 .6rem}.card-info h3:first-child{margin-top:0}.card-info-line,.original-name{display:block;color:#536150}.original-name{font-size:.89rem;margin:.45rem 0}.card-info-line{margin-top:.6rem;font-weight:500}
.resume-strip{display:flex;justify-content:space-between;align-items:center;gap:1.8rem;border-top:1px solid var(--atlas-line);padding:2.2rem 0}.resume-strip{margin-top:1rem;border-bottom:1px solid var(--atlas-line)}.resume-strip strong{display:block;font:400 1.8rem/1.15 var(--serif);margin-top:.3rem}
.edition-crumbs{display:flex;flex-wrap:wrap;gap:.25rem .7rem;align-items:center;color:#546052;margin:1.7rem 0}.edition-crumbs a,.viewer-back{border-bottom:1px solid currentColor}.detail-spread,.finished-spread{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(2rem,5vw,6rem)}.detail-spread{padding:2.1rem 0 3.6rem;border-bottom:1px solid var(--atlas-line)}.detail-spread h1,.finished-copy h1{margin:1.1rem 0;font-size:clamp(3.3rem,5.9vw,6rem);line-height:.98;letter-spacing:-.04em}.detail-spread figure{margin:0;background:#fff}.detail-spread figure img,.finished-art img{display:block;width:100%;aspect-ratio:1.35;object-fit:contain}.edition-meta{display:flex;align-items:center;flex-wrap:wrap;gap:1rem;color:#4d5a4c;margin:1.35rem 0}.edition-meta span+span{padding-left:.95rem;border-left:1px solid var(--atlas-line)}.access-note{max-width:48ch;color:#546152;font-size:.92rem;margin:1rem 0}.edition-contents,.reader-disclosure{border-block:1px solid var(--atlas-line);margin:2rem 0;padding:.9rem 0}.edition-contents summary,.reader-disclosure summary{font:400 clamp(1.7rem,2.7vw,2.7rem)/1.25 var(--serif)}.plate-index{list-style:none;padding:0;margin:1rem 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 2rem}.plate-index a{display:flex;gap:.85rem;border-top:1px solid #d4d9ca;align-items:baseline;padding:.7rem .18rem;min-height:44px}.plate-index a:hover,.plate-index [aria-current]{background:#e9eddd}.plate-index li span{font-size:.8rem;color:#5c6757}.plate-index li b{font:500 1rem/1.36 var(--sans);color:var(--ink)}
.viewer-wrap{max-width:1330px}.viewer-top{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin:1.4rem 0 1rem}.viewer-top h1{margin:.42rem 0 0;font-size:clamp(1.9rem,3vw,3rem);line-height:1.1;letter-spacing:-.025em}.viewer-back,.edition-in-player{font-size:.84rem;color:#536052}.edition-in-player{margin-left:.8rem;border-left:1px solid var(--atlas-line);padding-left:.8rem}.viewer-tools{display:flex;flex-wrap:wrap;gap:.4rem}.reader-tool{font-size:.87rem;min-height:40px;padding:.5rem .9rem}.authored-plate{background:white;border:1px solid #c7cdbc;box-shadow:0 9px 22px #253b2410;margin:0 auto;max-width:min(100%,calc((100svh - 238px)*16/9));min-width:min(100%,660px)}.authored-plate img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}.viewer-controls{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0}.viewer-progress{text-align:center;min-width:104px;color:#4e5d4c}.viewer-progress span{display:block;font-variant-numeric:tabular-nums}.viewer-progress b{color:var(--atlas-black)}progress{display:block;appearance:none;width:100%;height:4px;border:0;margin:.4rem 0 0;border-radius:3px;overflow:hidden;background:#d4d9cb}progress::-webkit-progress-bar{background:#d4d9cb}progress::-webkit-progress-value{background:var(--episode-ink,var(--atlas-blue))}progress::-moz-progress-bar{background:var(--episode-ink,var(--atlas-blue))}
.reader-disclosure{max-width:59rem;margin:1rem auto}.reader-disclosure+.reader-disclosure{border-top:0;margin-top:0}.reader-disclosure>summary{font-size:1.7rem}.transcript-text,.slide-notes{font:400 1.04rem/1.55 var(--sans);max-width:74ch;padding:.45rem 1rem}.transcript-text p,.slide-notes p{margin:.5rem 0;white-space:pre-line}.slide-notes a,.original-deck{text-decoration:underline;text-underline-offset:.2em}.slide-notes li{padding:.25rem 0;overflow-wrap:anywhere}.outline-panel{width:min(620px,94vw)}.atlas-outline .plate-index{grid-template-columns:1fr}.atlas-outline .plate-index li b{font-size:.95rem}.load-notice{padding-block:4rem;min-height:48vh}.sound-exercise{max-width:60rem;margin:1rem auto}.sound-exercise h2{font-size:1.8rem}.sound-exercise iframe{width:100%;min-height:145px;border:1px solid var(--atlas-line);border-radius:4px;background:white}
.finished-spread{min-height:70vh;padding-block:clamp(2rem,6vw,5rem)}.finished-art{background:white;border:1px solid var(--atlas-line);padding:1rem}.finished-art span{display:block;font-family:monospace;color:var(--episode-ink);border-top:1px solid var(--atlas-line);padding-top:.5rem}.finished-copy h2{font-size:clamp(1.65rem,2.8vw,2.6rem);margin:.4rem 0}.completion-progress{margin:1.55rem 0;max-width:32rem}.completion-progress small{color:var(--muted)}.completion-progress progress{margin:.5rem 0}.next-edition{border-top:1px solid var(--atlas-line);padding-top:1.2rem}.next-edition h3{font-size:2rem;line-height:1.1;margin:.4rem 0 1.25rem}
.body-player:fullscreen,.body-player.expanded-player{overflow:auto;min-height:100%;width:100%;background:var(--atlas-paper);padding:.6rem max(2vw,1rem);display:flex;flex-direction:column;justify-content:center}.body-player:fullscreen .viewer-top,.body-player.expanded-player .viewer-top{margin:.2rem 0 .6rem}.body-player:fullscreen .authored-plate,.body-player.expanded-player .authored-plate{width:min(100%,calc((100dvh - 150px)*16/9));min-width:0;max-width:100%}.body-player.expanded-player{position:fixed;inset:0;z-index:12}.viewer-expanded{overflow:hidden}
@media(max-width:970px){.main-nav{display:none}.small-nav{display:block}.mast-actions{margin-left:auto}.atlas-cards{gap:1.7rem 1rem}.viewer-top{align-items:flex-start;flex-direction:column}.authored-plate{max-width:100%;min-width:0}}
@media(max-width:700px){.atlas-hero{grid-template-columns:1fr;gap:1.6rem;padding-top:2.1rem}.atlas-hero h1{font-size:clamp(4rem,14.9vw,6.4rem);line-height:.94;margin:1rem 0}.hero-engraving img{max-height:270px}.hero-cta{margin-top:1.1rem}.atlas-collection{padding:2.15rem 0}.atlas-toolbar{align-items:stretch;flex-direction:column;gap:.8rem}.atlas-search{width:100%}.atlas-filters{margin:.9rem 0 .5rem;gap:.35rem}.atlas-filter{padding:.45rem .65rem;font-size:.85rem}.atlas-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem .78rem}.card-print img{aspect-ratio:1.28;padding:.1rem}.card-info{padding:.6rem 0}.card-series{font-size:.73rem;letter-spacing:.025em}.atlas-card h3{font-size:1.56rem}.original-name{font-size:.84rem}.folio{left:.28rem;top:.28rem}.resume-strip{align-items:flex-start;flex-direction:column;gap:.85rem}.detail-spread,.finished-spread{grid-template-columns:1fr;gap:1.25rem}.detail-spread{padding:.5rem 0 1.5rem}.detail-spread figure img{aspect-ratio:1.8;max-height:265px}.detail-spread h1,.finished-copy h1{font-size:clamp(2.9rem,11vw,4.7rem)}.plate-index{grid-template-columns:1fr}.viewer-wrap{padding-inline:.85rem}.viewer-top{margin-top:1rem;gap:.6rem}.viewer-top h1{font-size:2.1rem}.viewer-tools{gap:.3rem}.reader-tool{min-height:41px}.viewer-controls{gap:.35rem}.viewer-controls .atlas-button{padding:.62rem .88rem;font-size:.9rem;min-height:44px}.viewer-progress{min-width:72px}.finished-art{order:2}.finished-art img{max-height:260px}.transcript-text,.slide-notes{padding:.5rem 0}.sound-exercise iframe{min-height:215px}}
@media(max-width:400px){.masthead .brand-type strong{font-size:.88rem}.masthead .brand-type small{font-size:.7rem}.masthead .language{padding-inline:.4rem}.atlas-cards{grid-template-columns:1fr}.card-print img{aspect-ratio:2}.atlas-card h3{font-size:1.9rem}.hero-engraving figcaption{align-items:baseline}.reader-tools{gap:.2rem}}
.category-page .edition-crumbs{margin-bottom:0}
.category-page .atlas-hero{padding-top:clamp(1.4rem,2.6vw,2.7rem)}
.category-page .atlas-hero h1{margin-top:0;font-size:clamp(4rem,7.2vw,7.4rem);line-height:1.04}
.category-page .hero-engraving img{max-height:18rem}
html:is(:lang(ko),:lang(ja),:lang(zh),:lang(th)) .category-page .atlas-hero h1{font-size:clamp(2.8rem,5.2vw,5.4rem);line-height:1.2}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

.history-page{padding-block:clamp(2rem,4vw,4rem)}.history-page h1{font-size:clamp(3.5rem,6vw,6rem);line-height:1.02;margin:.6rem 0}.history-page>p,.history-row small,.history-row span{color:#546152}.history-page ol{list-style:none;max-width:64rem;margin:2.2rem 0;padding:0}.history-row{display:grid;grid-template-columns:114px 1fr auto;gap:1.15rem;align-items:center;border-top:1px solid var(--atlas-line);padding:.95rem 0}.history-row img{width:114px;height:78px;object-fit:contain;background:white}.history-row h2{font-size:1.7rem;line-height:1.14;margin:.2rem 0}.history-row span,.history-row small{font-size:.83rem}.history-row progress{max-width:12rem}.history-row a:hover{text-decoration:underline}@media(max-width:650px){.history-row{grid-template-columns:76px 1fr;gap:.5rem .8rem}.history-row img{width:76px;height:65px}.history-row .atlas-button{grid-column:2;justify-self:start}.history-row h2{font-size:1.5rem}}

.episode-detail {
  max-width: 1344px;
  padding-bottom: clamp(1.5rem, 4vw, 4rem);
}
.episode-detail .edition-crumbs { margin: 1.4rem 0 .35rem; font-size: .88rem; }
.episode-detail .detail-spread {
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(1.4rem, 3vw, 2.8rem) 0 clamp(1.8rem, 4vw, 3.5rem);
}
.detail-intro { min-width: 0; }
.detail-intro .series-link { display: inline-flex; min-height: 32px; max-width: 100%; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .23em; }
.detail-intro .series-link::before { flex: none; }
.detail-intro .series-link:hover { text-decoration-thickness: 2px; }
.episode-detail .detail-spread h1 {
  font-size: clamp(2.9rem, 4.9vw, 4.9rem);
  line-height: 1.01;
  margin: .8rem 0 1rem;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.episode-detail .episode-summary { font-size: clamp(1.04rem, 1.3vw, 1.22rem); max-width: 45ch; }
.detail-intro .edition-meta { margin: 1.2rem 0 .85rem; font-size: .88rem; }
.detail-action { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.detail-action .atlas-button { min-height: 48px; padding-inline: 1.35rem; }
.detail-intro .access-note { margin: .75rem 0 0; max-width: 46ch; font-size: .88rem; }
.detail-spread .detail-art { overflow: hidden; border: 1px solid var(--atlas-line); background: #fff; }
.detail-spread .detail-art img { width: 100%; height: auto; aspect-ratio: 1.88; object-fit: contain; padding: .65rem 1rem; }
.detail-art figcaption { padding: 1rem 1.25rem 1.15rem; border-top: 1px solid var(--atlas-line); background: var(--atlas-ivory); }
.detail-art figcaption span { color: var(--episode-ink); font-size: .875rem; font-weight: 700; }
.detail-art figcaption p { margin: .25rem 0 0; color: #27372e; line-height: 1.45; }

.reading-room { min-height: 100svh; }
.reading-room .mast-inner { min-height: 55px; justify-content: space-between; }
.reading-room .mast-actions { margin-left: auto; }
.reading-room .brand-mark { width: 32px; height: 32px; }
.reading-room .brand-mark i { transform: scale(.9) translate(-3px,-4px); }
.reading-room .brand-type strong { font-size: .94rem; }
.reading-room .masthead .language select { min-height: 40px; }
.viewer-wrap { max-width: 1352px; padding: 0 clamp(.85rem, 4vw, 3.5rem) 1.25rem; }
.body-player .viewer-top { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0 .85rem; }
.reader-context { display: flex; align-items: baseline; gap: 1.05rem; min-width: 0; }
.reader-context h1 { margin: 0; font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.14; }
.reader-context .viewer-back { flex-shrink: 0; color: #475548; font-size: .9rem; padding-block: .35rem; }
.body-player .reader-tool { min-height: 44px; font-size: .9rem; padding: .55rem .95rem; }
.full-control { flex-shrink: 0; }
.reader-workbench { border: 1px solid #c8cbbf; border-radius: .65rem; background: var(--atlas-ivory); }
.reader-modebar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem .8rem;
  padding: .55rem clamp(.6rem, 1.5vw, 1.25rem); border-bottom: 1px solid var(--atlas-line);
}
.view-switch { display: inline-flex; padding: 2px; border: 1px solid var(--atlas-line); border-radius: 2rem; background: #efeee5; }
.view-switch button { min-height: 40px; border-radius: 2rem; padding: .35rem .95rem; color: #344338; font-size: .92rem; font-weight: 600; }
.view-switch [aria-pressed="true"] { background: var(--atlas-black); color: var(--atlas-ivory); }
.contents-control { min-height: 44px; padding: .4rem .4rem; color: #344438; font-size: .93rem; font-weight: 650; text-decoration: underline; text-underline-offset: .23em; }
.reading-stage { background: #e7e7df; }
.body-player [hidden] { display: none; }
.body-player .authored-plate {
  width: min(100%, max(23rem, calc((100svh - 263px) * 16 / 9)));
  min-width: 0; max-width: 100%; margin: 0 auto; border: 0; background: white;
  box-shadow: 0 0 0 1px #23322215;
}
.body-player .authored-plate img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; }
.text-plate { background: #fffefa; padding: clamp(1.5rem, 3.5vw, 3rem) clamp(1.15rem, 5vw, 4rem); }
.manuscript { max-width: 65ch; margin-inline: auto; color: #24372d; font: 400 clamp(1.08rem, 1.3vw, 1.24rem)/1.58 var(--sans); overflow-wrap: anywhere; }
.manuscript h2 { font-size: clamp(2rem, 3.6vw, 3.8rem); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.manuscript p { margin: .68em 0 0; white-space: pre-line; }
.manuscript .illustration-description { padding-left: .8rem; border-left: 2px solid var(--atlas-line); font-size: .95rem; color: #4b5a4e; }
.text-cover-art { width: min(30rem, 100%); height: clamp(7rem, 20vh, 11rem); margin: 0 auto 1.3rem; object-fit: contain; mix-blend-mode: multiply; }
.cover-credit { margin-top: 1rem; font-size: .94rem; color: var(--muted); }
.cover-credit summary { width: fit-content; padding: .3rem 0; text-underline-offset: .18em; }
.body-player .viewer-controls {
  display: grid; grid-template-columns: 1fr minmax(5.4rem, 10rem) 1fr; align-items: center; gap: .7rem;
  padding: .72rem clamp(.65rem, 2.5vw, 2rem); border-top: 1px solid var(--atlas-line);
  background: var(--atlas-ivory); border-radius: 0 0 .65rem .65rem;
}
.viewer-controls > :first-child { justify-self: start; }
.viewer-controls > :last-child { justify-self: end; }
.viewer-controls .viewer-progress { min-width: 0; font-size: .88rem; }
.body-player .viewer-controls .atlas-button { min-height: 45px; }
.reader-disclosure.source-drawer { margin: .65rem auto 1rem; padding: 0; border: 0; max-width: none; }
.source-drawer summary { width: fit-content; padding: .6rem .15rem; color: #445448; font: 600 .92rem/1.4 var(--sans); }
.slide-notes { max-width: 70ch; }
.sound-exercise { border-top: 1px solid var(--atlas-line); padding: .8rem 1rem; margin: 0 auto; }
.sound-exercise h2 { font-size: 1.55rem; margin-bottom: .45rem; }
.outline-panel .dialog-inner { padding: 1.5rem clamp(1rem, 3vw, 1.85rem); }
.atlas-outline .dialog-close { min-width: 44px; min-height: 44px; }
.atlas-outline h2 { margin: .5rem 0 .18rem; }
.atlas-outline > p { margin: .25rem 0 .85rem; }
.outline-search { display: flex; align-items: center; gap: .75rem; border: 1px solid #afb7a8; border-radius: .4rem; padding: .2rem .75rem; margin: .9rem 0; background: var(--atlas-ivory); }
.outline-search:focus-within { outline: 2px solid var(--atlas-blue); }
.outline-search input { min-height: 42px; min-width: 0; width: 100%; border: 0; background: transparent; outline: 0; }
.atlas-outline .plate-index { margin-bottom: 0; }
.atlas-outline .plate-index [aria-current="step"] { border-inline-start: 3px solid var(--atlas-blue); padding-left: .55rem; }
.outline-empty { padding-block: .85rem; }
.body-player:is(:fullscreen,.expanded-player) { display: block; overflow: auto; padding: .45rem clamp(.5rem, 2vw, 2rem); min-height: 0; height: 100%; }
.body-player:is(:fullscreen,.expanded-player) .viewer-top { margin: 0 0 .45rem; }
.body-player:is(:fullscreen,.expanded-player) .authored-plate { width: min(100%, max(17rem, calc((100dvh - 206px) * 16 / 9))); min-width: 0; }

@media (max-width: 760px) {
  .episode-detail .detail-spread { grid-template-columns: 1fr; gap: 1.4rem; padding-top: 1.2rem; }
  .episode-detail .detail-spread h1 { font-size: clamp(2.6rem, 8vw, 4rem); }
  .detail-art figcaption { padding: .75rem .95rem; }
  .detail-spread .detail-art img { max-height: 14rem; }

  .reader-context { display: block; }
  .reader-context .viewer-back { display: inline-block; padding: .1rem 0; font-size: .84rem; }
  .reader-context h1 { margin-top: .25rem; }
}
@media (max-width: 600px) {
  .episode-detail .edition-crumbs { margin-top: .9rem; }

  .viewer-wrap { padding-inline: .6rem; }
  .body-player .viewer-top { margin: .55rem .2rem; gap: .55rem; }
  .body-player .reader-tool { min-height: 44px; padding: .4rem .65rem; font-size: .86rem; }
  .reader-context h1 { font-size: 1.38rem; }
  .reader-modebar { padding: .28rem .45rem; gap: .2rem; }
  .view-switch button { min-height: 44px; padding: .28rem .8rem; }
  .text-plate { padding: 1.1rem 1rem 1.35rem; }
  .manuscript h2 { font-size: 2rem; }
  .body-player .viewer-controls {
    position: sticky; bottom: 0; z-index: 2;
    padding: .55rem .45rem max(.55rem, env(safe-area-inset-bottom));
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: .28rem;
  }
  .body-player .viewer-controls .atlas-button { padding: .55rem .68rem; font-size: .88rem; overflow-wrap: anywhere; }
  .viewer-progress { padding-inline: .12rem; }

}
@media (max-width: 359px) {
  .reading-room .brand-mark { display: block; }
  .reader-modebar { gap: 0; }
  .view-switch button { padding-inline: .6rem; }

}
@media (max-height: 520px) and (orientation: landscape) {
  .reading-room .mast-inner { min-height: 44px; }
  .body-player .viewer-top { margin: .2rem 0; }
  .reader-modebar { padding-block: .1rem; }
  .body-player .authored-plate, .body-player:is(:fullscreen,.expanded-player) .authored-plate { width: min(100%, calc((100dvh - 164px) * 16 / 9)); }
  .body-player .viewer-controls { padding-block: .25rem; }
}
