/* Shared reading scale and controls. The Strada composition has its own layer. */
#sc-mondo{font-size:18px;line-height:1.65;--caption-surface:rgba(255,255,255,.85);--focus-ring:#07535e}
#sc-mondo[data-theme=night]{--caption-surface:rgba(24,42,51,.88);--focus-ring:#b4f4eb;color-scheme:dark}
#sc-mondo :where(p,h1,h2,h3,a,button,span,small){overflow-wrap:break-word}
#sc-mondo :where(button,a,summary,[tabindex]):focus-visible{outline:3px solid var(--focus-ring);outline-offset:4px;box-shadow:0 0 0 6px var(--surface)}
#sc-mondo .skip-link{min-height:48px;font-size:16px;border:2px solid var(--teal);border-radius:6px}
#sc-mondo .school-header{gap:20px;padding-block:16px;flex-wrap:wrap}
#sc-mondo .school-brand{min-height:48px}
#sc-mondo .school-brand>span{font-size:19px;letter-spacing:.09em}
#sc-mondo .school-brand small{font-size:14px;letter-spacing:.1em}
#sc-mondo .header-center,#sc-mondo .header-tools{font-size:16px}
#sc-mondo .edition-tag{font-size:14px;padding:1px 6px}
#sc-mondo .header-tools{gap:20px}
#sc-mondo .header-tools :where(button,a){min-width:44px;min-height:48px;justify-content:center}
#sc-mondo .journey-topline{font-size:16px;line-height:1.5;gap:16px;padding-block:18px}
#sc-mondo .preview-tag{font-size:14px}
#sc-mondo .scene-caption{position:relative;inset:auto;display:flex;flex-direction:column;align-items:center;gap:10px;max-width:none;padding:25px 30px 28px;text-align:center;background:var(--caption-surface);backdrop-filter:blur(8px);border-left:0;border-bottom:1px solid var(--line)}
#sc-mondo .scene-eyebrow{justify-content:center;font-size:14px;letter-spacing:.08em;line-height:1.5}
#sc-mondo .scene-unit{font-size:14px}
#sc-mondo .scene-caption h1{max-width:1000px;margin:0;font-size:clamp(30px,3vw,42px);line-height:1.18;letter-spacing:-.025em;font-weight:600}
#sc-mondo .scene-caption>p:last-child{max-width:70ch;font-size:20px;line-height:1.55;font-weight:600;color:var(--ink)}
#sc-mondo .place-stamp{font-size:16px;line-height:1.4}
#sc-mondo .place-stamp #stage-number{font-size:18px}
#sc-mondo .place-stamp #unit-name{font-size:14px;letter-spacing:.04em}
#sc-mondo:not([data-stage=strada]) .world-hotspot .hotspot-number{font-size:14px;letter-spacing:.04em}
#sc-mondo:not([data-stage=strada]) .world-hotspot .hotspot-title{font-size:14px;line-height:1.4;font-weight:600;max-width:none}
#sc-mondo:not([data-stage=strada]) .world-hotspot{min-width:88px;min-height:116px;padding:10px 8px}
#sc-mondo:not([data-stage=strada]) .world-hotspot.is-locked{opacity:1}
#sc-mondo .explore-dock{margin:0;padding:24px 4px 0}
#sc-mondo .dock-heading{gap:16px;flex-wrap:wrap;margin-bottom:14px}
#sc-mondo .dock-label{font-size:15px;letter-spacing:.055em;font-weight:600}
#sc-mondo #stage-progress{font-size:15px;line-height:1.5}
#sc-mondo .stop-card{min-height:150px;gap:12px;padding:20px 18px;line-height:1.5}
#sc-mondo .stop-card-number{font-size:15px;line-height:1.5}
#sc-mondo .stop-card-title{font-size:18px;font-weight:600;line-height:1.4}
#sc-mondo .stop-card-subtitle{display:block;font-size:16px;line-height:1.55}
#sc-mondo .stop-card-status{font-size:14px;line-height:1.5}
#sc-mondo .stop-card.is-locked{opacity:1;background:var(--raised)}
#sc-mondo .stop-card.is-locked :where(.stop-card-title,.stop-card-subtitle,.stop-card-status){color:var(--muted)}
#sc-mondo .scene-frame>.scene-controls{gap:18px;min-height:76px;padding:12px 16px}
#sc-mondo .previous-button,#sc-mondo .next-button{font-size:16px;line-height:1.4;min-height:48px}
#sc-mondo .previous-button{padding:10px 8px}
#sc-mondo .previous-button:disabled{opacity:1;color:#5b6b65}
#sc-mondo[data-theme=night] .previous-button:disabled{color:#bacbce}
#sc-mondo .scene-frame>.scene-controls #stage-instruction{font-size:15px;line-height:1.5;max-width:480px}
#sc-mondo .next-button{padding:14px 20px;white-space:normal}
#sc-mondo .journey-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:28px 4px 0;padding:20px 0;gap:8px}
#sc-mondo .journey-step{font-size:15px;line-height:1.45;min-height:52px;padding:9px 10px;justify-content:center;gap:9px}
#sc-mondo .journey-step+.journey-step:before{display:none}
#sc-mondo .journey-number{font-size:14px;min-width:32px;width:32px;height:32px;flex-shrink:0}
#sc-mondo .journey-step.is-locked,#sc-mondo .journey-step:disabled{opacity:1;color:var(--muted)}
#sc-mondo .method-line{font-size:18px;line-height:1.6;gap:18px;padding:22px 12px 32px;flex-wrap:wrap}
#sc-mondo .method-line small{font-size:16px;line-height:1.6;margin-top:7px}
#sc-mondo .method-line>button{font-size:16px;line-height:1.5;min-height:48px;padding:10px 4px;text-decoration:underline;text-underline-offset:5px}
#sc-mondo .school-footer{font-size:15px;line-height:1.6;gap:20px;flex-wrap:wrap;padding-block:20px}
#sc-mondo .school-footer a{font-size:16px;min-height:44px;display:inline-flex;align-items:center;gap:5px}
#sc-mondo dialog{max-height:90svh;overscroll-behavior:contain}
#sc-mondo .dialog-top>span{font-size:16px;line-height:1.5}
#sc-mondo .dialog-close{min-width:48px;min-height:48px;flex-shrink:0}
#sc-mondo #reading-body,#sc-mondo #map-body{padding:30px 38px}
#sc-mondo .reading-kicker{font-size:14px;letter-spacing:.055em;line-height:1.6}
#sc-mondo .reading-meta{font-size:15px;line-height:1.5;margin-top:10px}
#sc-mondo :where(.reading-dialog,.map-dialog) h2{font-size:clamp(26px,3vw,34px);line-height:1.3;letter-spacing:-.02em;font-weight:600}
#sc-mondo .reading-subtitle{font-size:20px;line-height:1.6;font-weight:600}
#sc-mondo .reading-text{font-size:18px;line-height:1.85}
#sc-mondo .reading-reflection{font-size:18px;line-height:1.8}
#sc-mondo .reading-reflection h3{font-size:16px;line-height:1.5;letter-spacing:.035em;font-weight:600}
#sc-mondo .answer-toggle{font-size:16px;min-height:48px}
#sc-mondo .reading-answer{font-size:18px}
#sc-mondo .reading-visit-note{font-size:15px;line-height:1.65}
#sc-mondo .reading-navigation{gap:15px;flex-wrap:wrap}
#sc-mondo .reading-navigation button{font-size:16px;line-height:1.5;min-height:48px;max-width:100%}
#sc-mondo .reading-navigation button:disabled{opacity:1;color:var(--muted)}
#sc-mondo .reading-navigation>span{font-size:15px}
#sc-mondo .map-dialog #map-title+p{font-size:18px;line-height:1.65}
#sc-mondo .map-stage{min-height:84px;gap:16px;padding:16px}
#sc-mondo .map-number{font-size:15px}
#sc-mondo .map-stage-copy strong{font-size:20px;line-height:1.4;font-weight:600}
#sc-mondo .map-stage-copy small{font-size:16px;line-height:1.55}
#sc-mondo .map-stage.is-locked,#sc-mondo .map-stage:disabled{opacity:1;color:var(--muted)}

@media(max-width:1100px){
  #sc-mondo .header-center{display:none}
  #sc-mondo .school-header{padding-inline:24px}
  #sc-mondo .scene-caption{padding:24px}
  #sc-mondo .scene-caption>p:last-child{font-size:19px}
  #sc-mondo .stop-list,#sc-mondo .stop-list:has(>.stop-card:nth-child(3):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
  #sc-mondo .stop-card{border-bottom:1px solid var(--line);border-right:1px solid var(--line)}
  #sc-mondo .stop-card:nth-child(even){border-right:0}
  #sc-mondo .stop-card:nth-last-child(-n+2){border-bottom:0}
  #sc-mondo .stop-list:has(>.stop-card:nth-child(3):last-child) .stop-card:last-child{grid-column:1/-1;border-top:1px solid var(--line)}
  #sc-mondo .scene-frame>.scene-controls{gap:12px}
  #sc-mondo .scene-frame>.scene-controls #stage-instruction{max-width:350px}
  #sc-mondo .journey-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  #sc-mondo main{padding-inline:12px}
  #sc-mondo .school-header{padding:12px 16px;gap:12px;flex-wrap:nowrap}
  #sc-mondo .school-brand{gap:9px}
  #sc-mondo .school-brand>span{font-size:17px;letter-spacing:.06em}
  #sc-mondo .school-brand small{font-size:14px;letter-spacing:.04em;margin-top:4px}
  #sc-mondo .school-brand img{width:34px;height:34px}
  #sc-mondo .header-tools{gap:10px;font-size:15px}
  #sc-mondo .header-tools #theme-toggle{padding-left:10px}
  #sc-mondo .journey-topline{font-size:16px;align-items:flex-start;flex-direction:column;gap:6px;padding-block:14px}
  #sc-mondo .preview-tag{font-size:14px;max-width:none;text-align:left}
  #sc-mondo .preview-tag span{display:inline;padding-inline:5px}
  #sc-mondo .scene-caption{padding:22px 18px;gap:12px}
  #sc-mondo .scene-eyebrow{font-size:14px;gap:9px;flex-wrap:wrap}
  #sc-mondo .scene-unit{font-size:14px}
  #sc-mondo .scene-caption h1{font-size:32px;line-height:1.2;margin:0}
  #sc-mondo .scene-caption>p:last-child{font-size:18px;line-height:1.6}
  #sc-mondo .place-stamp{padding:8px 10px;bottom:196px}
  #sc-mondo .place-stamp #stage-number{font-size:16px}
  #sc-mondo .place-stamp #unit-name{font-size:14px}
  #sc-mondo .pan-hint{font-size:14px;padding:7px 10px;bottom:196px}
  #sc-mondo .explore-dock{padding:22px 2px 0}
  #sc-mondo .dock-heading{gap:8px}
  #sc-mondo .dock-label,#sc-mondo #stage-progress{font-size:15px}
  #sc-mondo .stop-card{padding:17px 14px;gap:10px;min-height:144px}
  #sc-mondo .stop-card-title{font-size:18px}
  #sc-mondo .stop-card-subtitle{font-size:16px;display:block}
  #sc-mondo .stop-card-status{font-size:14px}
  #sc-mondo .scene-frame>.scene-controls{position:relative;inset:auto;display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:16px;background:var(--surface);color:var(--ink);border-top:1px solid var(--line)}
  #sc-mondo .previous-button{font-size:16px;align-self:start;white-space:normal;min-width:0}
  #sc-mondo .scene-frame>.scene-controls #stage-instruction{grid-column:1/-1;grid-row:2;font-size:16px;line-height:1.55;text-align:left;max-width:none}
  #sc-mondo .scene-frame>.scene-controls .next-button{font-size:16px;padding:12px 14px;max-width:100%;width:100%;min-width:0;min-height:48px}
  #sc-mondo .journey-steps{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:24px;gap:8px}
  #sc-mondo .journey-step{font-size:14px;padding:9px 4px;flex-direction:column;gap:7px;min-height:80px}
  #sc-mondo .method-line{justify-content:flex-start;padding:20px 4px 28px;gap:12px;font-size:18px}
  #sc-mondo .method-mark{font-size:38px;align-self:flex-start}
  #sc-mondo .method-line p{flex:1;min-width:0}
  #sc-mondo .method-line small{font-size:16px}
  #sc-mondo .method-line>button{font-size:16px;margin:0 0 0 48px;min-height:48px}
  #sc-mondo .school-footer{padding:18px 16px;gap:12px;font-size:15px}
  #sc-mondo .school-footer a{font-size:16px}
  #sc-mondo #reading-body,#sc-mondo #map-body{padding:25px 22px}
  #sc-mondo .dialog-top{padding:10px 16px}
  #sc-mondo .dialog-top>span{font-size:16px}
  #sc-mondo .reading-subtitle{font-size:19px}
  #sc-mondo .reading-text{font-size:18px;line-height:1.8}
  #sc-mondo .reading-reflection{padding:18px;font-size:18px}
  #sc-mondo .map-stage{padding:14px;gap:12px}
  #sc-mondo .map-stage-copy strong{font-size:19px}
  #sc-mondo .map-stage-copy small{font-size:16px}
}
@media(max-width:600px){
  #sc-mondo .stop-list,#sc-mondo .stop-list:has(>.stop-card:nth-child(3):last-child){grid-template-columns:minmax(0,1fr)}
  #sc-mondo .stop-card,#sc-mondo .stop-card:nth-last-child(-n+2){min-height:124px;border:0;border-bottom:1px solid var(--line)}
  #sc-mondo .stop-card:last-child{border-bottom:0}
  #sc-mondo .stop-list:has(>.stop-card:nth-child(3):last-child) .stop-card:last-child{grid-column:auto;border-top:0}
}
@media(max-width:400px){
  #sc-mondo .school-header{padding-inline:12px;gap:8px}
  #sc-mondo .header-tools{gap:6px}
  #sc-mondo .header-tools #theme-toggle{padding-left:6px}
  #sc-mondo .scene-caption{padding:22px 16px}
  #sc-mondo .scene-caption h1{font-size:30px}
  #sc-mondo .scene-frame>.scene-controls{grid-template-columns:minmax(0,1fr);padding:16px;gap:8px}
  #sc-mondo .scene-frame>.scene-controls #stage-instruction{grid-column:1;grid-row:3}
  #sc-mondo .scene-frame>.scene-controls .next-button{justify-self:stretch}
  #sc-mondo .journey-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  #sc-mondo #reading-body,#sc-mondo #map-body{padding:22px 18px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  #sc-mondo *,#sc-mondo *:before,#sc-mondo *:after{animation:none!important;scroll-behavior:auto!important;transition:none!important}
}
@media(forced-colors:active){
  #sc-mondo button,#sc-mondo dialog{border:1px solid ButtonText}
  #sc-mondo :focus-visible{outline:3px solid Highlight;box-shadow:none}
  #sc-mondo .is-current-lesson{outline:3px solid Highlight}
}
