@import url('/study-library/presentation.css');
*{box-sizing:border-box}body{margin:0;background:var(--pp-shell);color:var(--pp-ink);font:16px/1.5 var(--pp-body)}button,a,input,summary{-webkit-tap-highlight-color:transparent}a{color:var(--pp-blue);text-underline-offset:4px}button,summary{font:inherit;cursor:pointer;min-height:44px}button{border:1px solid var(--pp-rule);border-radius:5px;background:var(--pp-sheet);color:var(--pp-ink);padding:8px 12px}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--pp-blue);outline-offset:3px}[hidden]{display:none!important}#visual-study{height:100svh;min-height:640px;max-width:1500px;margin:auto;display:flex;flex-direction:column;background:var(--pp-sheet)}.studio-bar{display:flex;align-items:center;gap:16px;padding:10px 18px;background:var(--pp-control);color:white;flex-shrink:0}.studio-bar a{color:white;text-decoration:none;min-height:44px;display:flex;align-items:center;font-size:14px}.studio-bar .brand{font-size:20px;font-weight:750;margin-right:auto;gap:0}.brand span{color:var(--pp-orange)}.studio-bar button{background:transparent;border-color:#626f68;color:white;font-size:14px}.study-main{padding:16px 20px 8px;flex:1;min-height:0;display:flex;flex-direction:column}.study-title{display:flex;align-items:baseline;gap:6px 20px;flex-wrap:wrap}.eyebrow{font-size:10px;letter-spacing:.11em;text-transform:uppercase;color:var(--pp-muted);font-weight:650;margin:0 0 6px}.study-title>.eyebrow{flex:1 0 100%}h1{font:400 clamp(25px,3.4vw,42px)/1.1 var(--pp-display);margin:0}.question{margin:0;font-size:15px;max-width:560px}.study-stages{display:flex;gap:6px;padding:12px 0;overflow:auto;flex-shrink:0}.study-stages button{font-size:14px;font-weight:600;white-space:nowrap}.study-stages [aria-pressed=true]{background:var(--pp-control);color:white;border-color:var(--pp-control)}.study-workbench{display:grid;grid-template-columns:minmax(0,1fr) 280px;flex:1;min-height:0;border:1px solid var(--pp-rule);border-radius:8px;overflow:hidden}.study-map{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--pp-sheet)}.map-toolbar{display:flex;justify-content:space-between;align-items:start;position:absolute;top:8px;left:12px;right:12px;z-index:4;pointer-events:none;color:var(--pp-muted);font-size:11px}.map-toolbar>span{background:#fffefbdb;padding:6px;max-width:70%}.map-toolbar details{pointer-events:auto;position:relative}.map-toolbar summary{display:flex;align-items:center;background:var(--pp-sheet);border:1px solid var(--pp-rule);padding:6px 12px;border-radius:5px;font-size:13px}.map-toolbar details>div{position:absolute;right:0;top:48px;min-width:185px;padding:10px;background:var(--pp-sheet);border:1px solid var(--pp-rule);box-shadow:0 6px 22px #243a3520}.map-toolbar label{display:flex;gap:8px;align-items:center;min-height:44px;font-size:14px}.map-toolbar input{accent-color:var(--pp-orange)}.scene{position:relative;width:min(100%,calc((100svh - 245px)*1.38));aspect-ratio:800/580;margin:auto}.scene svg{display:block;width:100%;height:100%}.scene svg text{fill:#536a59;font:13px var(--pp-body)}.map-pin{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;padding:0;border-radius:50%;background:var(--pp-orange);border:2px solid var(--pp-sheet);font-weight:750;font-size:13px;color:#172f27;box-shadow:0 2px 6px #243a3526}.map-pin[aria-pressed=true]{outline:2px solid var(--pp-orange);outline-offset:4px}.map-caption{flex-shrink:0;display:flex;gap:8px;align-items:center;padding:8px 12px;min-height:44px;font-size:11px;border-top:1px solid var(--pp-rule);color:var(--pp-muted);background:var(--pp-sheet);z-index:2}.swatch{width:8px;height:8px;border-radius:50%;background:var(--pp-orange);flex-shrink:0}#selected-detail{background:#f4f5ee;border-left:1px solid var(--pp-rule);padding:22px 18px;min-height:0;overflow:auto}#selected-detail h2{font:400 28px/1.15 var(--pp-display);margin:0 0 16px}#detail-body{font-size:16px;line-height:1.6;margin:0 0 20px}.limit{font-size:13px;border-top:1px solid var(--pp-rule);padding-top:14px;color:var(--pp-muted)}.area-picker{display:grid;gap:6px;margin-top:22px}.area-picker button{display:flex;gap:10px;align-items:center;text-align:left;font-size:13px}.area-picker b{color:var(--pp-muted);font-size:12px}.area-picker [aria-pressed=true]{border-color:var(--pp-orange);box-shadow:inset 3px 0 var(--pp-orange)}footer{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:10px;min-height:44px;flex-shrink:0;color:var(--pp-muted)}footer a{font-size:12px;min-height:44px;display:flex;align-items:center}dialog{max-width:440px;border:1px solid var(--pp-rule);border-radius:8px;padding:24px;background:var(--pp-sheet);color:var(--pp-ink)}dialog::backdrop{background:#172f2766}dialog h2{font:30px/1.2 var(--pp-display)}dialog form button{float:right;font-size:24px;width:44px;padding:0}.no-script{padding:20px}body[data-embedded=true] #visual-study{min-height:0}
@media(max-width:700px){.study-workbench{grid-template-columns:minmax(0,1fr) 235px}.study-main{padding:12px}.question{font-size:13px}#selected-detail{padding:16px 14px}#selected-detail h2{font-size:24px}#detail-body{font-size:15px}}
@media(max-width:520px){#visual-study{min-height:0;height:100svh}.studio-bar{gap:8px;padding:8px 10px}.studio-bar .brand{font-size:18px}.studio-bar a,.studio-bar button{font-size:12px}.study-main{padding:10px}.study-title{gap:4px}.study-title h1{font-size:25px}.question{font-size:13px;line-height:1.4}.study-stages{padding:8px 0}.study-stages button{font-size:13px}.study-workbench{grid-template-columns:1fr;grid-template-rows:minmax(180px,1.15fr) minmax(130px,.85fr)}.scene{height:calc(100% - 44px);width:auto;max-width:100%;min-width:0;aspect-ratio:800/580}.map-toolbar>span{font-size:10px;padding:4px;max-width:65%}.map-toolbar{top:5px;left:5px;right:5px}.map-toolbar summary{font-size:12px}.map-caption{font-size:10px;padding:6px 8px}.scene svg text{font-size:15px}#selected-detail{border-left:0;border-top:1px solid var(--pp-rule);padding:14px}#selected-detail h2{font-size:23px;margin-bottom:10px}#detail-body{font-size:15px;line-height:1.55;margin-bottom:12px}.area-picker{display:flex;margin-top:14px;gap:6px}.area-picker button{flex:0 0 auto;font-size:12px}.area-picker{overflow:auto;padding-bottom:5px}.limit{font-size:12px;margin:8px 0}footer>span{display:none}footer{min-height:40px}footer a{font-size:12px;min-height:40px}}
@media print{#visual-study{height:auto;min-height:0}.study-workbench{min-height:500px}.studio-bar,.study-stages,footer a,.map-toolbar{display:none}.scene{width:100%}.area-picker{display:none}#selected-detail{overflow:visible}}
.study-map{container-type:size}.scene{width:min(100cqw,calc((100cqh - 44px)*1.37931));height:auto;max-width:none;aspect-ratio:800/580;flex-shrink:0}

/* Subject names replace numeric markers without changing their stable area IDs. */
.map-pin{width:max-content;max-width:100px;height:auto;min-height:44px;padding:5px 8px;border-radius:12px;font-size:11px;line-height:1.2;overflow-wrap:anywhere}

