/* Paper-cut art layer. Foundation layout, content and input controls stay in v05.css. */
:root{--ink:#09283e;--muted:#466473;--paper:#eee9d9;--paper-strong:#f5efdf;--border:rgba(9,40,62,.17);--panel:#eee9d9;--shadow:3px 7px 0 rgba(6,32,48,.1),0 13px 24px rgba(3,24,39,.2)}
body{background:var(--ocean)}
body::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;background:var(--ocean) var(--ocean-art) center bottom/cover no-repeat}
body.paper-surface::before{background-color:#b4dce5;background-image:url('../assets/paper-surface.svg')}
/* Keep the footer's scroll boundary on its reading background. */
html:has(body.reporting-mode){overscroll-behavior-y:none}
body.reporting-mode,body.reporting-mode::before{background:var(--paper)}
:root{--heading-tracking:-.015em}
h1,h2,h3,.copy-panel h2,.inspector-card h3{font-family:var(--font);font-weight:800;letter-spacing:var(--heading-tracking);line-height:1.04}
.reporting-inner h2{letter-spacing:var(--heading-tracking)}
#surfaceSection h1{font-family:var(--font);font-weight:800;line-height:1.01}
.copy-panel,.globe-section .copy-panel{background:var(--panel);border-radius:12px;border-color:rgba(255,247,224,.35);backdrop-filter:none;box-shadow:var(--shadow)}
.globe-section .copy-panel{background:transparent;border-color:transparent;box-shadow:none;color:var(--scene-text)}
.globe-section .copy-panel p,.globe-section .deck{color:var(--scene-text)}
.globe-section .kicker,.globe-section .source-note,.globe-section .scroll-cue,.globe-section .metric,.globe-section .metric span{color:var(--scene-muted)!important}
.globe-section .source-note{border-color:#7394a3}.globe-section a{color:#f3e4bc}
.globe-section .link-list span{background:#164f6e;color:#f7f0da;border-color:#759ba8;border-radius:5px;box-shadow:2px 3px 0 #0b354c}
#surfaceSection .copy-panel{color:var(--intro-ink);background:rgba(189,222,230,.82)}
#surfaceSection .copy-panel p,#surfaceSection .deck{color:var(--intro-body)}
#surfaceSection .kicker,#surfaceSection .scroll-cue{color:var(--intro-muted)!important}
.deck{font-style:normal;font-weight:400}
.brand-pill,.phase-pill,.bottom-dock,.mobile-nav,.story-radar,.drag-hint{background:var(--control);backdrop-filter:none;box-shadow:2px 4px 0 rgba(4,33,50,.16),0 6px 12px rgba(4,33,50,.14)}
.brand-pill,.phase-pill{border-radius:5px}.brand-dot{box-shadow:none;background:#226785}
.bottom-dock button.active,.mobile-nav button.active{background:var(--selected)}
.globe-tools button{background:#174f6c;border-color:#91b8c4;color:#fff5df;box-shadow:1px 3px 0 rgba(4,29,44,.28)}
.globe-tools button[aria-pressed=true]{background:#f3eddc;color:#12394f}
#globeCaption,.globe-source{color:#e3eeeb}
.paper-surface #globeCaption,.paper-surface .globe-source,.paper-surface .globe-key span{color:#123e55}
.inspector-card{background:var(--card);border-radius:12px;backdrop-filter:none;box-shadow:var(--shadow)}
.inspector-stat{background:var(--control-hover);border-radius:5px}
#infrastructureSection .copy-panel{background:var(--cutaway-panel);color:#fff3dc;border-color:var(--cutaway-border)}
#infrastructureSection .copy-panel p,#infrastructureSection .kicker,#infrastructureSection .source-note,#infrastructureSection figcaption,#infrastructureSection a{color:#e3eeee!important}
#cable3d{background:var(--cutaway-bg);border-radius:10px;box-shadow:inset 1px 2px 7px #0b3045}
.cable-controls button{background:var(--control);border-color:var(--border);box-shadow:1px 3px 0 #092f46;color:var(--ink)}
.cable-controls button[aria-pressed=true]{background:var(--selected);color:var(--on-selected);border-color:var(--border)}
.fauna{opacity:.8;filter:drop-shadow(2px 5px 2px rgba(3,26,44,.5))}.fauna path,.fauna ellipse{fill:var(--fish)}.fauna .stroke{stroke:var(--fish)}.fauna.f2 path{fill:#e4dbbe}
#reporting{background:var(--paper);color:var(--ink);border-top-color:#b7c4bd}
#reporting::before{content:"";display:block;height:180px;margin:-90px -24px 52px;background:var(--ocean) var(--ocean-art) center bottom/cover no-repeat;pointer-events:none}
.reporting-inner p{color:var(--body-text)}


th,td{border-bottom-color:var(--border)}
button:hover{filter:brightness(1.06)}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
@media(max-width:767px){
 body::before{background-image:var(--ocean-art)}
 body.paper-surface::before{background-image:url('../assets/paper-surface.svg')}
 .globe-section .copy-panel{background:none;border:0;border-radius:0;box-shadow:none}
 #surfaceSection .copy-panel{background:#c0dfe4}
 .copy-panel,.copy-panel.right,.copy-panel.center{backdrop-filter:none;border-radius:10px}
 #reporting::before{margin:-65px -20px 40px;height:140px;background-image:var(--ocean-art)}
 .fauna{filter:none}
}
/* Keep caption legible over both light sky and dark reef artwork. */
#globeCaption,.globe-source{width:fit-content;max-width:100%;margin-left:auto;margin-right:auto;background:var(--scene-surface);color:#f5edd9!important;padding:3px 9px;border-radius:4px}
#globeCaption[hidden]{display:none!important}
.globe-key{width:fit-content;max-width:calc(100% - 24px);margin-left:auto;margin-right:auto;background:var(--scene-surface);padding:4px 10px;border-radius:4px;display:flex;align-items:center;flex-wrap:wrap;gap:10px;color:#f5edd9}
#globeStage:not(.asean-map-active) .globe-key{display:none}
.globe-key span.legend-existing,.globe-key span.legend-proposed,.globe-key span.legend-singapore{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;color:inherit}
.globe-key span[hidden]{display:none!important}
.globe-key i{display:inline-block;width:17px;flex:0 0 17px;border-top:2px solid var(--route-existing)}
.globe-key .legend-proposed i{border-color:var(--route-proposed);border-top-style:dashed}
.globe-key .legend-singapore i{border-color:var(--route-singapore);border-top-style:dashed}
.globe-key .legend-proposed,.globe-key .legend-singapore{opacity:0;transition:opacity .15s}
@media(max-width:767px){
 .vertical-section.globe-section{padding-top:calc(42svh + 112px);align-items:flex-start;min-height:115svh}
 .globe-key{top:auto;bottom:100px;left:10px;margin:0;background:var(--scene-surface);padding:5px 7px;gap:7px;flex-direction:row;font-size:10px}
 .globe-key i{width:14px;flex-basis:14px}
}
@media(min-width:768px){#globeStage{height:calc(100svh - 160px)}.vertical-section.globe-section{min-height:90svh}}
#reporting::before{background-image:url('../assets/paper-waves.svg');background-size:cover}
.copy-panel,.inspector-card,.brand-pill,.phase-pill,#reporting{background-image:url('../assets/paper-texture.svg')}
.globe-section .copy-panel{background-image:none}
#surfaceSection .copy-panel,#infrastructureSection .copy-panel{background-image:url('../assets/paper-texture.svg')}
/* Original illustration opens the story; the globe starts at Viking Link. */
#globeCanvas{margin-bottom:16px;height:calc(100% - 126px)}
#globeStage{transition:none}
body.paper-surface::before{background-image:var(--ocean-art);background-color:var(--ocean)}
#reporting{border-top:0}
#reporting::before{position:absolute;top:-120px;left:0;right:0;height:120px;margin:0;background:linear-gradient(transparent,var(--paper));mask-image:none;opacity:1}
.brand-pill{display:none}



td:nth-child(2){padding-right:22px}td:last-child{padding-left:18px}
#surfaceSection{width:100%;min-height:100svh;align-items:flex-start;padding:100px max(28px,calc((100vw - 1024px)/2)) 34vw;background:var(--intro-sky);overflow:hidden;isolation:isolate}
#surfaceSection .intro-art{position:absolute;bottom:0;left:0;width:100%;height:auto;z-index:-1;pointer-events:none;mask-image:linear-gradient(transparent,#000 24%)}
#surfaceSection::after{content:"";position:absolute;left:0;right:0;bottom:0;height:clamp(150px,24vw,300px);background:linear-gradient(transparent,var(--ocean));pointer-events:none;z-index:0}
#surfaceSection .copy-panel{position:relative;z-index:1;width:min(760px,72%);padding:0;background:none;border:0;box-shadow:none;border-radius:0}
#surfaceSection h1{max-width:20ch;font-size:clamp(40px,4.6vw,68px)}
#surfaceSection .deck{max-width:48ch;font-size:clamp(19px,1.7vw,25px)!important;line-height:1.4}
#surfaceSection .intro{max-width:60ch}
.paper-surface #abyssalCanvas,.paper-surface #faunaWorld,.paper-surface .story-radar,.paper-surface .drag-hint{visibility:hidden}
@media(max-width:767px){
 #surfaceSection{padding:90px 22px calc(62vw + 88px);min-height:100svh}
 #surfaceSection .intro-art{width:140%;max-width:none;left:auto;right:0;bottom:76px;mask-image:linear-gradient(transparent,#000 24%)}
 #surfaceSection{background:linear-gradient(var(--intro-sky) 0 80%,var(--intro-sand) 100%)}
 #surfaceSection .copy-panel{width:100%}
 #surfaceSection h1{font-size:clamp(35px,8.4vw,54px);max-width:20ch}
 #surfaceSection .scroll-cue{font-size:10px;letter-spacing:.06em;gap:8px}
 #surfaceSection .cue-line{width:36px;flex-shrink:0}
 #globeStage{height:42svh;min-height:235px}
 #globeCanvas{height:calc(100% - 63px);margin-bottom:20px}
 .vertical-section.globe-section{--copy-top:max(330px,calc(42svh + 70px));min-height:calc(100svh + var(--reading-distance,0px) + clamp(64px,10svh,120px));display:block;padding-top:var(--copy-top);padding-bottom:90px}
 .globe-section .copy-panel{position:fixed;left:16px;right:16px;width:calc(100% - 32px);max-width:none;margin:0;top:var(--copy-top);height:calc(100svh - var(--copy-top) - 90px);min-height:140px;overflow:hidden;padding:18px 20px;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .3s ease;mask-image:linear-gradient(rgba(0,0,0,.85),#000 4px,#000 calc(100% - 8px),rgba(0,0,0,.7))}
 .globe-section .copy-panel.mobile-card-active{visibility:visible;opacity:1;pointer-events:auto}
 .globe-section .copy-panel{mask-image:none}
 .mobile-copy-inner{transition:filter .16s ease;padding:0;transform:none}
 .mobile-passage{display:flow-root}
 .mobile-passage[hidden]{display:none}
 .mobile-passage>:last-child{margin-bottom:0}
 
 
 
 
 
 .drag-hint{display:none!important}
 th:nth-child(2),td:nth-child(2){padding-left:12px;padding-right:18px}
 td:last-child{padding-left:14px}
 .reporting-inner section{padding-top:28px}
 .reporting-inner section:first-of-type{padding-top:8px}
 .reporting-inner>.kicker{margin-top:24px;margin-bottom:8px}
 
}
#cable3d{position:relative}
.swimming-fish{position:fixed;inset:0 0 auto;height:100svh;z-index:2;pointer-events:none;overflow:hidden;clip-path:inset(0 0 calc(100% - var(--water-height,100svh)) 0)}
.swimming-fish svg{position:absolute;left:-70px;top:var(--fish-depth);width:var(--fish-size);height:auto;aspect-ratio:2;fill:var(--fish);opacity:.65;animation:swim-across var(--duration) linear infinite;animation-delay:var(--delay);animation-direction:var(--swim-direction)}
.swimming-fish.aquatic-wildlife{clip-path:none}
.swimming-fish .aquatic-animal{opacity:0;transition:opacity .28s ease}
.swimming-fish .aquatic-animal.is-visible{opacity:.65}
.swimming-fish .jellyfish{aspect-ratio:3/5}
.swimming-fish .jellyfish path{animation:jelly-drift 10s ease-in-out infinite alternate}
@keyframes jelly-drift{from{transform:translateY(0)}to{transform:translateY(4px)}}
@media(max-width:767px){.swimming-fish .shark{--fish-size:56px!important}.swimming-fish .jellyfish{--fish-size:28px!important}}
@media(prefers-reduced-motion:reduce){.swimming-fish .aquatic-animal{transition:none}.swimming-fish .jellyfish path{animation:none}}
@keyframes swim-across{from{transform:translateX(-60px)}to{transform:translateX(calc(100vw + 140px))}}
.paper-surface .swimming-fish,.reporting-mode .swimming-fish{visibility:hidden}
.paper-surface .swimming-fish.aquatic-wildlife,.reporting-mode .swimming-fish.aquatic-wildlife{visibility:visible}
@media(prefers-reduced-motion:reduce){.swimming-fish svg{animation:none;left:calc(var(--lane)*16vw)}}
#cable3d.has-model #cableStatus{position:absolute;bottom:calc(10px + 10%);left:14px;right:14px;margin:0;min-height:0;font-size:13px!important;line-height:1.4;text-align:center;pointer-events:none}
.cable-controls{margin-top:12px}
@media(max-width:767px){#faunaWorld .fauna.f2{display:none}}
/* Shared reporting rhythm, including desktop. */
.reporting-inner section{padding-top:28px}
.reporting-inner section:first-of-type{padding-top:8px}
.reporting-inner>.kicker{margin-top:24px;margin-bottom:8px}


/* Reporting investment comparison: horizontal, highest value first. */
.investment-section{padding-top:28px!important}
.investment-chart{margin:42px 0 18px;padding:28px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.reporting-inner .investment-chart h2{margin:0 0 6px;font-size:clamp(28px,3.6vw,42px);max-width:none}
.reporting-inner .investment-chart-deck{margin:0 0 22px;font-size:clamp(17px,2.2vw,21px);line-height:1.45;font-style:italic;color:var(--ink)}
.investment-chart svg{display:block;width:100%;height:auto;overflow:visible;font-family:var(--font);color:var(--body-text)}
.investment-chart .investment-chart-mobile{display:none}
.investment-chart .chart-grid path{fill:none;stroke:rgba(9,40,62,.14);stroke-width:1}
.investment-chart .chart-grid .chart-axis{stroke:rgba(9,40,62,.38)}
.investment-chart .chart-grid text{fill:var(--muted);font-size:calc(12.5px * var(--chart-text-scale,1))}
.investment-chart .chart-grid .chart-unit{font-size:calc(13px * var(--chart-text-scale,1));font-weight:700}
.investment-chart .chart-data rect{fill:#35a5c4}
.investment-chart .chart-label{fill:var(--body-text);font-size:calc(15px * var(--chart-text-scale,1));font-weight:650;transform:translateX(48px)}
.investment-chart .chart-value{fill:var(--ink);font-size:calc(18px * var(--chart-text-scale,1));font-weight:800}
.investment-chart figcaption{display:flex;flex-direction:column;gap:7px;margin-top:10px;color:var(--muted);font-size:13px;line-height:1.5}
.investment-chart figcaption span{font-weight:700;color:var(--body-text)}
.investment-chart figcaption em{font-style:italic}
@media(max-width:480px){
 .investment-chart{margin-top:34px;padding:24px 0}
 .reporting-inner .investment-chart-deck{margin-bottom:12px}
}
@media(min-width:768px){
 :root{--map-copy:min(400px,38vw);--map-width:min(576px,43.2vw);--map-gap:clamp(24px,3vw,48px);--map-left:calc((100vw - var(--map-copy) - var(--map-width) - var(--map-gap))/2)}
 #globeStage{width:var(--map-width);left:calc(var(--map-left) + var(--map-copy) + var(--map-gap));height:calc(80svh - 128px);right:auto;top:calc(10svh + 64px)}
 #globeCanvas{height:calc(100% - 60px)}
 .globe-key{position:absolute;left:16px;top:auto;bottom:116px;margin:0;padding:8px 10px;gap:10px;flex-direction:row;border:1px solid rgba(205,231,224,.25);background:rgba(9,45,62,.72);border-radius:8px;backdrop-filter:blur(6px);font-size:12px}
 .globe-section .copy-panel{position:fixed;left:5vw;top:50svh;transform:translateY(-50%);width:38vw;max-width:620px;max-height:calc(100svh - 180px);overflow:auto;margin:0;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .25s ease}
 .globe-section .copy-panel{left:var(--map-left);width:var(--map-copy);padding:0;background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none}
 .globe-section .mobile-copy-inner > :last-child{margin-bottom:0}
 .globe-section .copy-panel h2{font-size:clamp(34px,3.3vw,58px)}
 .globe-section .copy-panel p{font-size:18px!important;line-height:1.6}
 .globe-section .copy-panel.desktop-card-active{visibility:visible;opacity:1;pointer-events:auto}
 
 
 
 
 
}
@media(min-width:768px) and (min-height:720px){
 .globe-section .copy-panel{top:calc(50svh - 50px)}
}
@media(min-width:768px) and (max-height:719px){
 #globeStage{top:calc(10svh + 114px)}
}
@media(min-width:768px) and (max-height:500px){.globe-key{top:-40px;bottom:auto}}
@media(max-width:767px){
 .globe-section .mobile-passage > :last-child{margin-bottom:0}
}
@media(max-width:767px) and (max-height:720px){
 #globeStage{height:215px;min-height:0}
 .vertical-section.globe-section{--copy-top:285px}
 
 .globe-section .copy-panel{min-height:110px}
}

.globe-mode .swimming-fish{height:100svh}
.seabed-mode #faunaWorld{visibility:hidden}




/* Opening byline: typography matched to the F1 V13 story. */
#surfaceSection .copy-panel p.byline{font-family:"Public Sans",Arial,sans-serif;font-size:.75rem!important;font-weight:800;line-height:1.3;letter-spacing:.02em;text-transform:uppercase}

/* Hide the story-position box across all breakpoints. */
.topbar .phase-pill{display:none!important}

/* The regional vector shares the globe canvas bounds and fades in after arrival. */
#regionalMap{position:absolute;inset:0;margin:0;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .65s ease,visibility 0s .65s}
.regional-map-window{height:calc(100% - 60px);display:flex;align-items:center}
#regionalMap img{display:block;width:100%;height:auto;max-height:100%;object-fit:contain}
#regionalMap figcaption{margin-top:16px;text-align:center;font-size:12px;color:#e3eeeb}
#globeStage .globe-source{display:none}
#globeStage.asean-map-active .globe-source{display:block;position:absolute;left:50%;right:auto;transform:translateX(-50%);bottom:64px;margin:0;text-align:center}
#globeCanvas,.globe-tools,#globeCaption,.globe-key,.globe-source{transition:opacity .65s ease}
#globeStage.regional-map-visible #regionalMap{opacity:1;visibility:visible;transition-delay:0s}
#globeStage.regional-map-visible #globeCanvas,#globeStage.regional-map-visible .globe-tools,#globeStage.regional-map-visible #globeCaption,#globeStage.regional-map-visible .globe-key,#globeStage.regional-map-visible .globe-source{opacity:0;pointer-events:none}
@media(max-width:767px){
 .regional-map-window{height:calc(100% - 63px)}
 #regionalMap figcaption{margin-top:42px}
 #globeStage.asean-map-active .globe-source{bottom:50px}
}
@media(prefers-reduced-motion:reduce){#regionalMap,#globeCanvas,.globe-tools,#globeCaption,.globe-key,.globe-key span,.globe-source{transition:none}}

/* Registered map layers retain identical geography throughout route reveals. */
.regional-map-window{position:relative}
#regionalExisting,#regionalProposedBlue,#regionalProposed{position:absolute;left:0;top:50%;transform:translateY(-50%);opacity:0}

/* Post-map reporting stays in the underwater scene. */
#infrastructureSection[hidden]{display:none!important}
.underwater-step{position:relative;z-index:5;min-height:100svh;width:100%;padding:100px var(--map-left) 120px;display:grid;grid-template-columns:var(--map-copy) var(--map-width);column-gap:var(--map-gap);align-items:center;color:#f5edd9}
.underwater-step .step-copy{grid-column:1;grid-row:1;font-size:18px;line-height:1.6}
.underwater-step .step-copy p{margin:0}
.underwater-step a{color:#f5edd9;text-decoration:underline;text-underline-offset:3px}
.imports-table{grid-column:2;grid-row:1;margin:0;min-width:0}
.imports-table h2{font-size:clamp(24px,2.2vw,34px);line-height:1.15;margin:0 0 10px}
.imports-table .table-deck{font-size:15px;line-height:1.45;margin:0 0 20px}
.imports-table table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px;line-height:1.45;color:inherit}
.imports-table th,.imports-table td{padding:12px 8px;border-bottom:1px solid rgba(227,238,235,.3);vertical-align:top;overflow-wrap:anywhere;text-align:left}
.imports-table thead th{font-size:12px;font-weight:800;border-bottom:1px solid rgba(227,238,235,.65)}
.imports-table tbody th{font-weight:400}
.imports-table th:last-child,.imports-table td:last-child{width:23%;text-align:right;font-variant-numeric:tabular-nums}
.imports-table tbody tr:nth-child(odd){background:rgba(255,255,255,.035)}
.imports-table .table-note{font-size:11px;line-height:1.5;margin:12px 0 0}
.underwater-step.prose-step{display:flex;justify-content:center}
.prose-step .step-copy{width:min(680px,100%)}
.imports-table .visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:767px){
 .underwater-step{display:flex;flex-direction:column;justify-content:center;gap:36px;min-height:100svh;padding:100px 24px 100px}
 .underwater-step .step-copy{width:100%;font-size:17px;line-height:1.6}
 .imports-table{width:100%}
 .imports-table h2{font-size:26px}
 .imports-table table{font-size:12px}
 .imports-table th,.imports-table td{padding:10px 5px}
 .imports-table thead th{font-size:11px}
 .imports-table .table-deck{font-size:14px}
}

/* Keep post-map reading clear of background cables and sea life. */
.underwater-step{background:#124969}
.underwater-step.prose-step{min-height:100svh;padding:100px 24px 180px;gap:0}
.underwater-step.prose-step .step-copy{font-size:17px;line-height:1.65}
.underwater-step.prose-step .step-copy p+p{margin-top:24px}

/* Tables take over the full reading area after the map exits. */
.underwater-step.table-step{display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:36px;padding-left:clamp(24px,6vw,100px);padding-right:clamp(24px,6vw,100px)}
.table-step .imports-table{width:100%;max-width:1024px;margin:0 auto}
.table-step .step-copy{width:100%;max-width:1024px;margin:0 auto}
.table-step .step-copy p{max-width:760px}
@media(max-width:767px){.underwater-step.table-step{padding-left:24px;padding-right:24px}}

/* PDF sequence: both EMA paragraphs, both tables, then grouped market copy. */
.underwater-step{background:transparent}
.underwater-step.copy-step{display:flex;justify-content:center;align-items:center;min-height:100svh;padding:100px 24px 180px}
.underwater-step.copy-step .step-copy{width:min(680px,100%);font-size:17px;line-height:1.65}
.underwater-step.table-step{min-height:100svh;justify-content:center;padding-top:72px;padding-bottom:176px}
@media(max-width:767px){
 .table-step .imports-table{max-height:none;overflow:visible}
}
.underwater-step .imports-introduction p+p{margin-top:1.6em}
body.imports-reading #faunaWorld,body.imports-reading .story-radar{visibility:hidden}
body.imports-reading #abyssalCanvas{opacity:1}
body.imports-exit #faunaWorld,body.imports-exit .story-radar{visibility:hidden}
.imports-reading-deck{position:relative;height:calc(var(--imports-deck-span) * 100svh);margin-bottom:-55svh}
.imports-reading-stage{position:sticky;top:0;height:100svh;overflow:hidden}
.imports-reading-stage.is-entry-held{position:fixed;left:0;width:100%}
.imports-reading-stage .underwater-step{position:absolute;inset:0;height:100svh;min-height:0;opacity:1;filter:opacity(0);pointer-events:none;will-change:filter;transition:none}
.imports-reading-stage .underwater-step[data-reading-active]{pointer-events:auto}
@media(max-width:767px){
 .imports-reading-stage .underwater-step{bottom:calc(72px + var(--safe-bottom));height:auto;overflow-y:hidden;justify-content:flex-start;padding-top:calc(72px + var(--safe-top));padding-bottom:24px}
 .imports-reading-stage .underwater-step.table-step{overflow-y:auto;overscroll-behavior-y:contain}
}
@media(min-width:768px) and (max-height:650px){
 .imports-reading-stage .underwater-step.table-step{overflow-y:auto;overscroll-behavior-y:contain;justify-content:flex-start;padding-top:60px;padding-bottom:72px}
}
@media(max-width:767px){.underwater-step.copy-step .step-copy,.underwater-step.prose-step .step-copy{font-size:16px;line-height:1.65}}

/* Shared story-section heading scale. Display, table and card titles stay independent. */
.copy-panel h2,
.globe-section .copy-panel h2,
.ambitious-copy h2,
.reporting-inner h2,
.reporting-inner .investment-chart h2{font-size:36px}
@media(max-width:767px){
 .copy-panel h2,
 .globe-section .copy-panel h2,
 .ambitious-copy h2,
 .reporting-inner h2,
 .reporting-inner .investment-chart h2{font-size:32px}
}
@media(orientation:landscape) and (max-height:560px) and (max-width:1023px){
 .copy-panel h2,
 .globe-section .copy-panel h2,
 .ambitious-copy h2,
 .reporting-inner h2,
 .reporting-inner .investment-chart h2{font-size:26px}
}

/* Reporting cutaway: rebuilt as a four-layer single-core HVDC cable. */
.cable-reporting-section .cable-source{margin:10px 0 22px;font-size:14px;line-height:1.5;color:var(--muted)}
#infrastructureSection.cable-reporting-section a,
#infrastructureSection.cable-reporting-section a:visited{color:var(--link)!important;text-decoration-color:currentColor}
.cable-reporting-section .cable-interactive{margin:0}
.cable-reporting-section #cable3d{height:430px;background:radial-gradient(circle at 50% 42%,var(--hvdc-viewer-center) 0,var(--hvdc-viewer-mid) 56%,var(--hvdc-viewer-edge) 100%);border:1px solid var(--border);box-shadow:inset 0 0 26px var(--hvdc-viewer-shadow)}
.cable-reporting-section #cable3d #cableStatus{color:var(--ink);font-weight:650;text-shadow:0 1px var(--hvdc-status-shadow)}
.cable-reporting-section .cable-controls{margin-top:10px}
.cable-reporting-section .cable-controls button{box-shadow:1px 2px 0 rgba(9,40,62,.18)}
#infrastructureSection.cable-reporting-section .cable-model-note{margin:8px 0 0;color:var(--muted)!important}
.cable-reporting-section .hvdc-fallback{margin:0;padding:20px;background:var(--hvdc-fallback-bg);border:1px solid var(--border);border-radius:12px}
.cable-reporting-section .hvdc-fallback[hidden]{display:none}
.cable-reporting-section .hvdc-fallback svg{display:block;width:100%;height:auto}
.cable-reporting-section .hvdc-fallback-labels text{fill:var(--ink);font-family:var(--font);font-size:17px;font-weight:700}
#infrastructureSection.cable-reporting-section .hvdc-fallback figcaption{margin-top:8px;color:var(--muted)!important;font-size:13px;line-height:1.5}
@media(max-width:600px){
 .cable-reporting-section #cable3d{height:330px}
 .cable-reporting-section .hvdc-fallback{padding:10px}
 .cable-reporting-section .hvdc-fallback-labels text{font-size:18px}
}

/* Closing survey: only the three-bar graphic from the supplied PDF. */
.survey-chart{margin:42px 0 18px;padding:28px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.reporting-inner .survey-chart h2{margin:0 0 6px;max-width:none}
.reporting-inner .survey-chart-deck{margin:0 0 4px;font-size:clamp(17px,2.2vw,21px);line-height:1.45;font-style:italic;color:var(--ink)}
.reporting-inner .survey-chart-source{margin:10px 0 0;font-size:13px;line-height:1.5;color:var(--muted)}
.survey-chart svg{display:block;width:100%;height:auto;overflow:visible;font-family:var(--font)}
.survey-chart .survey-chart-mobile{display:none}
.survey-chart .survey-grid path{fill:none;stroke:var(--border);stroke-width:1}
.survey-chart .survey-grid .chart-axis{stroke:var(--muted)}
.survey-chart .survey-grid text{fill:var(--muted);font-size:calc(12.5px * var(--chart-text-scale,1))}
.survey-chart .survey-label{fill:var(--body-text);font-size:calc(15px * var(--chart-text-scale,1));font-weight:600}
.survey-chart .survey-value{fill:var(--ink);font-size:calc(18px * var(--chart-text-scale,1));font-weight:800}
.chart-animate svg{opacity:var(--chart-opacity,0)}
.chart-animate .chart-data rect,.chart-animate .survey-data rect,.chart-animate .survey-mobile-data rect{transform-box:fill-box;transform-origin:left center;transform:scaleX(var(--bar-progress,0))}
@media(prefers-reduced-motion:reduce){.chart-animate svg{opacity:1}.chart-animate .chart-data rect,.chart-animate .survey-data rect,.chart-animate .survey-mobile-data rect{transform:none}}
.survey-chart .survey-yes,.survey-chart .survey-maybe,.survey-chart .survey-no{fill:#35a5c4}
.story-credits{margin-top:28px;padding-top:28px;border-top:1px solid var(--border);display:grid;gap:0}
.reporting-inner footer{margin-top:16px;border-top:0}
.reporting-inner .story-credits p{margin:0;font-size:12px;line-height:1.45;letter-spacing:0;text-transform:uppercase;color:var(--muted)}
@media(max-width:767px){
 .investment-chart .investment-chart-wide{display:none}
 .investment-chart .investment-chart-mobile{display:block;max-width:none;margin-inline:0}
 .investment-chart .chart-mobile-label{fill:var(--body-text);font-size:calc(15px * var(--chart-text-scale,1));font-weight:600}
 .investment-chart .chart-mobile-value{fill:var(--ink);font-size:calc(18px * var(--chart-text-scale,1));font-weight:800}
 .investment-chart .chart-mobile-separator{fill:none;stroke:var(--border);stroke-width:1}
 .investment-chart .chart-mobile-axis path{fill:none;stroke:var(--muted);stroke-width:1}
 .investment-chart .chart-mobile-axis text{fill:var(--muted);font-size:calc(12.5px * var(--chart-text-scale,1))}
 .investment-chart .chart-mobile-unit{fill:var(--muted);font-size:calc(13px * var(--chart-text-scale,1));font-weight:700}
 .survey-chart .survey-chart-wide{display:none}
 .survey-chart .survey-chart-mobile{display:block;max-width:none;margin-inline:0}
 .survey-chart .survey-mobile-label{fill:var(--body-text);font-size:calc(15px * var(--chart-text-scale,1));font-weight:600}
 .survey-chart .survey-mobile-value{fill:var(--ink);font-size:calc(18px * var(--chart-text-scale,1));font-weight:800}
 .survey-chart .survey-mobile-separators path{fill:none;stroke:var(--border);stroke-width:1}
 .survey-chart .survey-mobile-axis path{fill:none;stroke:var(--muted);stroke-width:1}
 .survey-chart .survey-mobile-axis text{fill:var(--muted);font-size:calc(12.5px * var(--chart-text-scale,1))}
}
@media(max-width:480px){
 .survey-chart{margin-top:34px;padding:24px 0}
 .reporting-inner .survey-chart-source{margin-top:10px}
 .reporting-inner .story-credits p{font-size:clamp(9.5px,2.8vw,11px);letter-spacing:-.2px}
}

/* Keep editorial headings balanced and reduce isolated final prose words. */
:is(#surfaceSection,.copy-panel,.underwater-step,.ambitious-stage,.reporting-inner) :is(h1,h2,h3){text-wrap:balance}
:is(#surfaceSection,.copy-panel,.underwater-step,.ambitious-stage,.reporting-inner) :is(p,figcaption){text-wrap:pretty}

/* Inline source credits share one treatment across scene and reporting layouts. */
.source-credit.source-credit,.globe-section .copy-panel p.source-credit{font-family:var(--font);font-size:13px!important;font-weight:400!important;font-style:normal!important;line-height:1.45!important;text-transform:none;letter-spacing:normal;white-space:normal;text-wrap:wrap;overflow-wrap:break-word}
.source-credit.source-credit span{font-weight:inherit;color:inherit}

/* Keep the stacked Asean legend inside the viewport; credit and controls stay below. */
#globeStage.asean-map-active{display:grid;grid-template-rows:minmax(0,1fr) auto auto auto auto;row-gap:4px}
#globeStage.asean-map-active #globeCanvas{grid-row:1;grid-column:1;height:100%;min-height:0;margin:0}
#globeStage.asean-map-active .globe-key{grid-row:1;grid-column:1;align-self:end;justify-self:start;position:relative;top:auto;bottom:auto;left:auto;right:auto;z-index:1;margin:0 0 10px 10px;width:110px;max-width:calc(100% - 20px);min-height:70px;padding:7px 9px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;border:1px solid rgba(205,231,224,.25);border-radius:7px;background:rgba(9,45,62,.78);color:#f5edd9;font-size:11px;line-height:1.3;pointer-events:none}
#globeStage.asean-map-active .globe-key span{color:inherit}
#globeStage.asean-map-active .globe-key i{width:16px;flex-basis:16px}
#globeStage.asean-map-active .globe-source{grid-row:3;position:static;transform:none;margin-inline:auto}
#globeStage.asean-map-active .globe-tools{grid-row:4}
#globeStage.asean-map-active #globeCaption{grid-row:5}

/* Clear the mobile reading card and keep the map legible in short landscape. */
@media(max-width:767px){#globeStage.asean-map-active{height:calc(42svh - 2px)}}
@media(max-width:767px) and (max-height:720px){#globeStage.asean-map-active{height:213px}}

/* Preserve map area and reading-panel pagination in short viewports. */
@media(max-width:360px) and (max-height:720px) and (orientation:portrait){
 #globeStage.asean-map-active{height:260px}
 :is(#apgSection,#overlandSection,#apgImportsSection) .copy-panel{top:calc(var(--copy-top) + 22px);height:calc(100svh - var(--copy-top) - 26px - var(--safe-bottom))}
}
@media(min-width:361px) and (max-width:767px) and (max-height:720px) and (orientation:portrait){
 #globeStage.asean-map-active{height:280px}
 :is(#apgSection,#overlandSection,#apgImportsSection) .copy-panel{top:calc(var(--copy-top) + 42px);height:calc(100svh - var(--copy-top) - 68px - var(--safe-bottom))}
}
@media(min-width:768px) and (max-height:560px) and (orientation:landscape){
 #globeStage.asean-map-active{top:52px;height:calc(100svh - 74px)}
}

/* Chapter rules enclose complete reporting passages, including their graphics. */
.reporting-inner>:is(#report-0,#report-1,#report-3,#report-4){border-top:1px solid var(--border);padding-top:28px}
.reporting-inner>:is(#report-0,#infrastructureSection,#report-3,#report-4){border-bottom:1px solid var(--border);padding-bottom:28px}
.reporting-inner>:is(#report-1,#report-3,#report-4){border-top:0}
.reporting-inner .investment-chart{margin-top:0;padding-top:0;border:0}
.reporting-inner .survey-chart{border:0}
.investment-chart,.survey-chart{width:100%;max-width:none}
#globeStage{opacity:calc(var(--globe-entry,0) * var(--globe-exit,1))}
#globeStage.is-hidden{opacity:0}
#vikingSection .copy-panel.mobile-card-active{opacity:var(--globe-entry,0);transition:none}
.globe-key .legend-singapore i{border-top:0;height:2px;background:repeating-linear-gradient(to right,var(--route-singapore) 0 5px,transparent 5px 8.5px);background-size:8.5px 2px;background-position-x:var(--singapore-dash,0px)}
