:root{--paper:#ece9e3;--ink:#27392f;--muted:#7c8176;--line:#d6d8cb;--accent:#be603e;--card:#f6f4ee}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:13px}button,a,input{touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button{border:0}header{height:89px;display:flex;align-items:center;justify-content:space-between;padding:0 38px;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;font-size:10px;letter-spacing:1.7px;line-height:1.6}.brand small{font-size:8px;color:var(--muted);letter-spacing:1.5px}.mark{font-family:Georgia,serif;font-style:italic;font-size:42px;letter-spacing:-5px;width:45px;height:49px;border-right:1px solid var(--line)}nav{display:flex;gap:4px;padding:5px;border:1px solid var(--line);border-radius:24px}nav button{padding:10px 16px;border-radius:20px;background:transparent;font-size:11px}nav button.active{background:var(--ink);color:var(--card)}.header-right{display:flex;gap:18px;align-items:center}#status{font-size:9px;letter-spacing:1px}#status:before{content:'';display:inline-block;width:6px;height:6px;background:#718b63;border-radius:100%;margin-right:7px}#hide{width:33px;height:33px;background:transparent;border:1px solid var(--line);border-radius:50%;font-size:20px}main{display:grid;grid-template-columns:minmax(0,1fr) 340px;height:calc(100dvh - 131px);min-height:620px}.stage{position:relative;overflow:hidden}.masthead{position:absolute;left:45px;top:37px;z-index:2;pointer-events:none}.eyebrow{font-size:9px;letter-spacing:1.9px;font-weight:600;margin:0 0 19px;color:var(--muted)}h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(36px,4.4vw,68px);line-height:1.01;font-weight:400;letter-spacing:-2.3px;margin:0 0 18px}h1 em{color:#6d7c5d;font-weight:400}p{line-height:1.7}.deck{color:#7a8075;font-size:12px}.mini-meta{display:flex;gap:22px;align-items:center;color:var(--muted);font-size:9px;margin-top:22px;letter-spacing:1px}#viewport{width:100%;height:100%;position:absolute;inset:0}canvas{display:block;width:100%;height:100%;position:absolute;inset:0;touch-action:none}.fallback{width:75%;position:absolute;left:12%;top:30%;mix-blend-mode:multiply;opacity:.75}.ready .fallback{display:none}#loading{position:absolute;z-index:3;left:50%;top:68%;transform:translateX(-50%);padding:18px 25px;background:#f6f4eeed;border:1px solid var(--line);border-radius:10px;min-width:270px;text-align:center;font-size:12px}#loading>div{height:3px;background:var(--line);margin:12px 0;overflow:hidden}#progress{display:block;height:3px;width:0;background:var(--accent);transition:width .3s}#loading small{font-size:10px;color:var(--muted)}.stage-caption{position:absolute;bottom:127px;left:43px;display:flex;gap:18px;align-items:center;font-size:9px;letter-spacing:1px;line-height:1.8;pointer-events:none}.stage-caption small{letter-spacing:0;font-size:9px;color:var(--muted)}.north{display:flex;flex-direction:column;align-items:center;font-size:24px;border-right:1px solid var(--line);padding-right:18px}.north small{font-size:7px;letter-spacing:1px}.viewbar{position:absolute;bottom:57px;left:50%;transform:translateX(-50%);white-space:nowrap;border:1px solid var(--line);padding:5px;border-radius:26px;background:#f6f4eee6;box-shadow:0 6px 25px #27392f09;display:flex;gap:2px}.viewbar button{background:transparent;border-radius:20px;font-size:11px;padding:11px 14px}.viewbar button.active{background:#dce1d2}.help{position:absolute;bottom:24px;width:100%;text-align:center;color:var(--muted);letter-spacing:1.2px;font-size:8px}.help b{padding:0 9px;color:#abb09f}aside{background:#f6f4eea6;border-left:1px solid var(--line);padding:29px 27px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.section-top{display:flex;justify-content:space-between}.edition{font-size:9px;color:var(--muted)}h2{font:400 32px/1.13 Georgia,serif;letter-spacing:-.8px;margin:1px 0 15px}h2 em{font-weight:400;color:#6d7c5d}aside p{font-size:12px;color:#7a8075}.fact{display:flex;gap:15px;align-items:center;background:#e5e8dc;border-radius:7px;margin:20px 0 22px;padding:17px 16px}.fact strong{font:34px Georgia,serif;white-space:nowrap;letter-spacing:-1px}.fact span{font-size:10px;line-height:1.7}.chapters{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:25px}.chapters button{display:flex;align-items:center;gap:8px;text-align:left;padding:10px 8px;background:transparent;border:1px solid var(--line);border-radius:5px;font-size:10px}.chapters button.active{background:var(--ink);color:var(--card);border-color:var(--ink)}.chapters b{font:italic 16px Georgia,serif;color:var(--accent)}.chapters button.active b{color:#d4b08f}.controls{border-top:1px solid var(--line);padding-top:22px}.toggle-row{display:flex;justify-content:space-between;align-items:center;margin:12px 0;font-size:11px}input[type=checkbox]{appearance:none;width:29px;height:16px;background:#cacdbf;border-radius:20px;position:relative;cursor:pointer;margin:0}input[type=checkbox]:before{content:'';position:absolute;width:12px;height:12px;background:var(--card);border-radius:50%;top:2px;left:2px;transition:transform .2s}input[type=checkbox]:checked{background:#6d7c5d}input[type=checkbox]:checked:before{transform:translateX(13px)}.range-label{display:flex;justify-content:space-between;font-size:11px;margin:24px 0 10px}.range-label output{font-size:10px;color:var(--muted)}input[type=range]{width:100%;accent-color:#6d7c5d;height:4px;cursor:pointer}.control-note{font-size:10px!important;line-height:1.6}.swatches{display:flex;gap:6px;margin-top:17px}.swatches button{flex:1;background:transparent;border:1px solid var(--line);border-radius:4px;padding:8px 2px;font-size:9px}.swatches button.active{background:#e5e8dc;border-color:#a7b297}.bottom-note{font-size:10px;color:var(--muted);line-height:1.8;margin-top:25px}a{color:inherit;text-underline-offset:4px}.bottom-note a{color:var(--ink)}footer{height:42px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 38px;font-size:8px;letter-spacing:1.3px;color:var(--muted)}footer b{color:var(--accent);margin:0 14px}.hotspot{position:absolute;background:var(--card);border:1px solid #ffffff;color:var(--ink);border-radius:50%;width:28px;height:28px;font-size:10px;transform:translate(-50%,-50%);box-shadow:0 2px 12px #27392f35;pointer-events:auto}.hotspot.active{background:var(--accent);color:white}.hotspot:hover:after,.hotspot:focus-visible:after{content:attr(aria-label);position:absolute;top:32px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--card);padding:8px 10px;border-radius:5px;white-space:nowrap;font:10px Arial}#hotspots{position:absolute;inset:0;pointer-events:none}.timeline{border-left:1px solid var(--line);padding-left:19px;margin-top:25px}.timeline button{text-align:left;background:transparent;display:block;padding:0 0 25px;width:100%;position:relative}.timeline button:before{content:'';position:absolute;left:-24px;top:6px;width:9px;height:9px;background:var(--accent);border:2px solid var(--paper);border-radius:50%}.timeline small,.source-card>span{font-size:8px;letter-spacing:1.5px;color:var(--muted)}.timeline strong{display:block;font:40px Georgia,serif;margin:12px 0 7px}.timeline h3,.source-card h3{font-size:12px;font-weight:500;margin:10px 0}.timeline p{margin:0}.callout{border-radius:7px;background:#e5e8dc;padding:17px;font-size:11px;line-height:1.7;color:#6d7c5d}.source-card{border-top:1px solid var(--line);padding:20px 0 5px}.source-card a{font-size:10px}.ui-hidden main{grid-template-columns:1fr}.ui-hidden aside,.ui-hidden .masthead,.ui-hidden .stage-caption,.ui-hidden .help{display:none}.ui-hidden nav{visibility:hidden}[hidden]{display:none!important}@media(min-width:1550px){main{grid-template-columns:minmax(0,1fr) 385px}aside{padding:35px}.masthead{left:55px;top:45px}}@media(max-width:900px){header{padding:0 18px;height:74px}.brand small,.header-right #status{display:none}nav button{padding:8px 10px;font-size:10px}main{height:auto;min-height:0;grid-template-columns:1fr}.stage{height:690px}.masthead{left:24px;top:28px}h1{font-size:49px}.deck{font-size:11px}aside{border-left:0;border-top:1px solid var(--line);padding:28px;max-height:none}.chapters{grid-template-columns:repeat(3,1fr)}.viewbar button{padding:11px}.stage-caption{left:24px}footer{padding:0 20px}footer span:last-child{display:none}.ui-hidden .stage{height:calc(100dvh - 116px)}}@media(max-width:480px){header{gap:8px}.brand{font-size:8px;gap:7px}.mark{font-size:33px;width:35px}nav{gap:0}nav button{font-size:8px;padding:8px}.header-right{gap:0}#hide{width:27px;height:27px;font-size:15px}.stage{height:620px}h1{font-size:42px}.viewbar{bottom:51px}.viewbar button{font-size:9px;padding:10px 8px}.stage-caption{bottom:119px}.help{font-size:6px;letter-spacing:.6px}.help b{padding:0 4px}.chapters{grid-template-columns:1fr 1fr}.masthead .deck{max-width:255px}}
/* Thai typography: generous leading, no tracking between Thai characters. */
body{font-family:'Thonburi','Leelawadee UI',Tahoma,sans-serif}.brand,nav button,.eyebrow,.mini-meta,.help,footer,.source-card>span,.timeline small,#status{letter-spacing:0}h1{font-family:'Thonburi','Leelawadee UI',Tahoma,sans-serif;font-size:clamp(32px,3.6vw,54px);line-height:1.4;letter-spacing:-1.4px}h1 em{font-style:normal;font-size:.72em}h2{font-family:'Thonburi','Leelawadee UI',Tahoma,sans-serif;font-size:27px;line-height:1.5;letter-spacing:-.5px}h2 em{font-style:normal}.fact strong{font-family:'Thonburi',Tahoma,sans-serif}.deck{line-height:1.9}.masthead{top:31px}.mini-meta{margin-top:13px}.chapters button{font-size:10px}.stage-caption{letter-spacing:0}.brand small{letter-spacing:0}.north small{letter-spacing:0}aside p{line-height:1.9}.source-card p{font-size:11px}nav button{font-size:12px}.eyebrow{font-size:10px}footer{font-size:9px}.help{font-size:9px}.viewbar button{font-size:11px}@media(max-width:900px){h1{font-size:43px}.stage{height:710px}}@media(max-width:480px){h1{font-size:34px}nav button{font-size:9px}.stage{height:650px}.viewbar button{font-size:9px}.help{font-size:7px}.brand{font-size:9px}}
/* Design audit: readable Thai body text, consistent radii and quieter metadata. */
:root{--muted:#626b5d}aside p,.deck{color:#626b5d}aside p{font-size:13px}.source-card p{font-size:12px}.control-note{color:#626b5d}.chapters button{border-radius:5px}.fact,.callout{border-radius:5px}.viewbar button:hover,nav button:not(.active):hover{background:#dde2d4}button:disabled{cursor:default;opacity:.5}.hotspot{will-change:transform}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@font-face{font-family:Sarabun;src:url('./vendor/Sarabun-Regular.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:Sarabun;src:url('./vendor/Sarabun-SemiBold.ttf') format('truetype');font-weight:600 900;font-display:swap}body,h1,h2,.fact strong{font-family:Sarabun,'Thonburi',Tahoma,sans-serif}h1{font-weight:600}h1 em{font-weight:400}h2{font-weight:400}.night .masthead,.night .stage-caption{color:#e4e8dc}.night .masthead em,.night .masthead p,.night .masthead .mini-meta,.night .help,.night .stage-caption small{color:#c6d0c1}header{height:80px}main{height:calc(100dvh - 122px)}@media(max-width:900px){header{height:74px}main{height:auto}.ui-hidden main{height:auto}}
.inspector{position:absolute;z-index:8;right:22px;top:28px;width:min(390px,calc(100% - 44px));max-height:calc(100% - 142px);overflow:auto;background:#f8f6efeF;border:1px solid #c4cbb7;border-radius:8px;box-shadow:0 15px 50px #27392f28;backdrop-filter:blur(12px);padding:21px 24px;color:#27392f;scrollbar-width:thin}.inspector-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:12px;color:#68735e;font-size:10px}.inspector-top button{font-size:25px;background:transparent;line-height:1;width:32px;height:32px;border-radius:50%;border:1px solid #d6d8cb}.inspector h2{font-size:25px;margin:0 0 15px}.inspector p{font-size:13px;line-height:1.85;color:#596452}.infographic{background:#e8ecde;border-radius:5px;padding:12px 6px 9px}.infographic svg{width:100%;height:auto;display:block}.diagram-caption{display:block;text-align:center;font-size:9px;line-height:1.5;color:#65735b}.detail-fact{display:flex;align-items:center;gap:16px;padding:14px 0;border-top:1px solid #d6d8cb;border-bottom:1px solid #d6d8cb}.detail-fact strong{font-size:27px;font-weight:400;white-space:nowrap}.detail-fact span{font-size:11px;line-height:1.7}.detail-actions{display:flex;gap:8px;margin-top:17px}.detail-actions button{flex:1;background:#dfe5d4;border-radius:5px;padding:10px 7px;font-size:11px}.detail-actions button:first-child{background:#27392f;color:#f6f4ee}.detail-source{font-size:10px!important;color:#65735b!important;margin-bottom:0}.detail-source button{padding:0;background:transparent;text-decoration:underline;font-size:10px;color:inherit}.controls-title{font-size:27px}.panel-intro{font-size:12px!important;margin:0 0 18px}.control-views{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:18px 0 23px}.control-views button{padding:10px;background:transparent;border:1px solid var(--line);border-radius:5px;font-size:12px}.control-views button.active{background:#dce1d2}.controls{padding-top:20px}.chapters{margin-top:24px;margin-bottom:0}.inspector .tab-content{display:block}.inspector .source-card{padding-top:15px}.ui-hidden .inspector{display:none}@media(max-width:900px){.inspector{top:180px;right:20px;max-height:calc(100% - 250px)}.control-views{grid-template-columns:repeat(4,1fr)}}@media(max-width:480px){.inspector{right:12px;width:calc(100% - 24px);padding:17px 20px;top:170px}.inspector h2{font-size:24px}.inspector p{font-size:12px}.control-views{grid-template-columns:1fr 1fr}}
.story-connector{position:absolute;inset:0;width:100%;height:100%;z-index:6;pointer-events:none;overflow:visible}.story-connector path{fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #27392f66)}.story-connector circle{fill:#fff;stroke:#75806d;stroke-width:1}#hotspots{z-index:7}.inspector{z-index:9}.hotspot.active{box-shadow:0 0 0 4px #be603e26,0 2px 12px #27392f35}.ui-hidden .story-connector{display:none}@media(prefers-reduced-motion:no-preference){.story-connector.drawing path{stroke-dasharray:1;stroke-dashoffset:1;animation:trace-story .62s cubic-bezier(.2,.7,.25,1) forwards}.story-connector.drawing circle{opacity:0;animation:reveal-story .18s .45s forwards}.inspector.story-opening{animation:reveal-popup .4s .28s both}.story-opening .infographic{animation:reveal-story .45s .48s both}.story-opening #detail-copy{animation:reveal-story .35s .62s both}}@keyframes trace-story{to{stroke-dashoffset:0}}@keyframes reveal-story{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes reveal-popup{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:480px){.inspector{left:12px!important;right:12px!important}.story-connector path{stroke-width:1.5}}
.chapters button:last-child:nth-child(odd){grid-column:1/-1}
.scoreboard-view{display:block;width:100%;padding:10px 12px;margin-top:15px;background:transparent;border:1px solid var(--line);border-radius:5px;text-align:left;font-size:12px}.scoreboard-view:hover{background:#dce1d2}
.panel-collapsed main{grid-template-columns:minmax(0,1fr)}.panel-collapsed aside{display:none}#hide.menu-toggle{font-family:Arial,sans-serif;font-size:20px;width:38px;height:38px;display:grid;place-items:center;border-radius:5px;background:#f6f4ee}#hide.menu-toggle:hover{background:#dce1d2}@media(max-width:900px){body:not(.panel-collapsed) aside{position:fixed;z-index:15;top:74px;right:0;bottom:0;width:min(340px,calc(100vw - 28px));overflow-y:auto;background:#f6f4ee;box-shadow:-15px 0 40px #27392f20;border-top:0}header{position:relative;z-index:20}.panel-collapsed .stage{height:calc(100dvh - 116px);min-height:620px}}

/* Compact title pairing and understated creator credit. */
.masthead h1{display:flex;flex-direction:column;align-items:flex-start;gap:4px;line-height:1.2}.masthead h1 em{display:block;line-height:1.25}.brand-copy{display:flex;flex-direction:column;gap:1px;line-height:1.45}.brand .brand-copy small{display:block;letter-spacing:0}.brand .brand-credit{font-size:8px;color:#626b5d;white-space:nowrap;margin-top:2px}@media(max-width:480px){.masthead h1{gap:3px}.brand .brand-credit{font-size:7px}.brand .brand-copy small{font-size:7px}}
/* Fit each study into the available space; scroll only when content genuinely overflows. */
.inspector{top:16px;width:min(400px,calc(100% - 44px));max-height:calc(100% - 116px);padding:18px 22px;overflow-x:hidden;overflow-y:auto}.inspector-top{margin-bottom:8px}.inspector h2{margin-bottom:12px}.infographic{padding:8px 6px}.infographic svg{max-height:170px}.inspector #detail-copy{line-height:1.75;margin:12px 0}.detail-fact{padding:11px 0}.detail-actions{margin-top:13px}.inspector .detail-source{margin-top:9px;line-height:1.6}@media(max-width:900px){.inspector{top:90px;max-height:calc(100% - 190px)}}@media(max-width:480px){.inspector{top:90px;padding:16px 18px;width:calc(100% - 24px)}.infographic svg{max-height:155px}}
/* Site labels and atlas cards use a distinct blue map language. */
#site-tags{position:absolute;inset:0;z-index:7;pointer-events:none}.site-tag{position:absolute;left:0;top:0;pointer-events:auto;display:flex;align-items:center;gap:7px;max-width:190px;padding:7px 9px;border:1px solid #698995;border-radius:6px;background:#f1f7f5f2;color:#254854;font:11px Sarabun,sans-serif;box-shadow:0 3px 12px #173c4826;white-space:nowrap}.site-tag>span:nth-child(2){overflow:hidden;text-overflow:ellipsis}.site-tag-icon{color:#397a8a;font-size:15px}.site-tag-arrow{opacity:.6}.road-tag{border-radius:20px;background:#e1eff3f2;border-style:dashed}.site-tag:hover,.site-tag.selected{background:#245463;color:#fff;box-shadow:0 0 0 3px #72b4c740}.site-tag.selected .site-tag-icon{color:#b9e3eb}#site-story{position:absolute;z-index:10;right:22px;top:20px;width:min(370px,calc(100% - 44px));max-height:calc(100% - 120px);overflow:auto;padding:20px;background:#173d49f5;color:#f1f7f5;border:1px solid #85b8c5;border-radius:12px;box-shadow:0 20px 55px #15333b45;backdrop-filter:blur(14px)}.site-story-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#a7d0db}.site-story-top button{background:transparent;color:#fff;border:1px solid #6d99a5;border-radius:50%;width:30px;height:30px;font-size:22px}#site-type{font-size:10px;color:#9ecbd5;margin:15px 0 5px}#site-title{font-size:24px;line-height:1.35;margin:0 0 15px}#site-diagram{border:1px solid #507b88;border-radius:7px;background:#12323e}#site-diagram svg{display:block;width:100%;max-height:205px;font-family:Sarabun,sans-serif}#site-copy{font-size:12px;line-height:1.8;color:#d4e5e8;margin:13px 0}#site-meta{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #507b88;border-bottom:1px solid #507b88;padding:11px 0;gap:12px}#site-meta small{display:block;font-size:9px;color:#add0d8}#site-meta strong{display:block;font-size:19px;font-weight:400;margin-top:4px}#site-source{display:inline-block;color:#b8e0e8;font-size:11px;margin-top:14px}.site-caveat{font-size:9px;line-height:1.6;color:#a8c4cb;margin-bottom:0}#site-connector{z-index:8}@media(prefers-reduced-motion:no-preference){.site-opening{animation:reveal-popup .35s both}.site-opening #site-diagram{animation:reveal-story .5s .15s both}}@media(max-width:480px){#site-story{right:12px;top:90px;width:calc(100% - 24px);max-height:calc(100% - 190px)}.site-tag{max-width:150px;font-size:10px}}
/* Keep the site model readable: a few quiet labels, details on demand. */
.site-tag{max-width:170px;padding:5px 8px;gap:5px;font-size:10px;border:1px solid #9caeaf;border-radius:3px;background:#f4f5eef0;box-shadow:0 2px 5px #173c4815}.site-tag-icon{font-size:12px}.site-tag-arrow{font-size:10px}.road-tag{border-radius:3px;border-style:solid;background:#eef3edf0}.site-tag:hover,.site-tag.selected{background:#245463;color:#fff;box-shadow:0 0 0 2px #72b4c730}.site-tag::after{content:'';position:absolute;left:50%;top:100%;height:12px;width:1px;background:#7b9295}.site-tag[hidden]{display:none}
/* Photo and infographic share one compact media row. */
.story-media{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start}.related-photo{margin:0;min-width:0}.photo-open{position:relative;display:block;border-radius:5px;overflow:hidden;background:#d9e0d8;color:inherit}.related-photo img{display:block;width:100%;height:128px;object-fit:contain;background:#17333b}.photo-open>span:not(.photo-unavailable){position:absolute;right:5px;bottom:5px;font-size:9px;padding:2px 5px;background:#173d49bF;color:#fff;border-radius:3px}.related-photo figcaption{font-size:9px;line-height:1.5;margin-top:5px;color:#5d705f}.related-photo small{display:block;font-size:8px;margin-top:3px}.related-photo a{color:inherit}.photo-unavailable{display:grid;place-items:center;min-height:128px;font-size:11px}.story-media .infographic{padding:5px 2px}.story-media .infographic svg{height:128px;max-height:128px}.story-media .diagram-caption{font-size:8px}.story-media #site-diagram svg{height:128px;max-height:128px}#site-story .related-photo figcaption{color:#c0dbe1}#site-story .related-photo small{color:#9fbdc7}.inspector,#site-story{scrollbar-width:thin;scrollbar-color:#98a99a66 transparent;overscroll-behavior:contain}.inspector::-webkit-scrollbar,#site-story::-webkit-scrollbar{width:3px}.inspector::-webkit-scrollbar-track,#site-story::-webkit-scrollbar-track{background:transparent}.inspector::-webkit-scrollbar-thumb,#site-story::-webkit-scrollbar-thumb{background:#98a99a66;border-radius:8px}.inspector-top,.site-story-top{position:sticky;top:-1px;z-index:2}.inspector-top{background:#f8f6ef}.site-story-top{background:#173d49}.inspector{width:min(430px,calc(100% - 44px))}#site-story{width:min(410px,calc(100% - 44px));padding:17px 20px}#site-story #site-copy{font-size:11px;line-height:1.7}#site-story #site-title{font-size:23px}.inspector #detail-copy{font-size:12px;line-height:1.7}@media(max-height:760px){.related-photo img,.photo-unavailable{height:105px;min-height:105px}.story-media .infographic svg,.story-media #site-diagram svg{height:105px;max-height:105px}.inspector h2,#site-story #site-title{font-size:21px}.inspector,#site-story{padding:14px 18px}}@media(max-width:480px){.story-media{gap:7px}.related-photo img{height:115px}.story-media .infographic svg,.story-media #site-diagram svg{height:115px;max-height:115px}.inspector,#site-story{width:calc(100% - 24px)}}

#site-close,#close-inspector{display:grid;place-items:center;padding:0;flex-shrink:0;line-height:1}#site-close svg,#close-inspector svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

.site-tag:hover,.site-tag.selected{background:#f4f5ee;color:#254854;border-color:#397a8a;box-shadow:0 0 0 2px #72b4c730}.site-tag.selected .site-tag-icon{color:#397a8a}

.viewbar{max-width:calc(100% - 24px);flex-wrap:wrap;justify-content:center}.viewbar button{white-space:nowrap}@media(max-width:600px){.viewbar{gap:2px;padding:6px;border-radius:16px}.viewbar button{padding:7px 8px;font-size:9px}}
/* Keep all camera controls on one row. */
.viewbar{width:max-content;max-width:calc(100% - 24px);flex-wrap:nowrap;justify-content:flex-start;gap:2px;padding:6px;overflow-x:auto;scrollbar-width:none}.viewbar::-webkit-scrollbar{display:none}.viewbar button{flex:0 0 auto;padding:9px 10px;font-size:10px;white-space:nowrap}@media(max-width:600px){.viewbar{flex-wrap:nowrap;border-radius:25px;padding:5px}.viewbar button{padding:8px 8px;font-size:9px}}

.story-media.media-single{grid-template-columns:1fr}.media-single #site-diagram svg{height:170px;max-height:170px}.related-photo[hidden]{display:none}

.explode-labels{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}.explode-labels path{fill:none;stroke:#fff;stroke-width:1.5}.explode-labels circle{fill:#fff;stroke:#31473d;stroke-width:1}.explode-labels rect{fill:#f8f6efed;stroke:#c5ccbd;stroke-width:1}.explode-labels text{fill:#27392f;font:11px Sarabun,sans-serif}

#site-story-sources{display:flex;flex-wrap:wrap;gap:6px 12px;margin:10px 0 14px;font-size:10px;line-height:1.7;color:#c0dbe1}
