*{box-sizing:border-box}body{margin:0;height:100dvh;display:flex;flex-direction:column;background:#f8faf9;color:#182d29;font-family:system-ui,Arial,sans-serif;overflow:hidden}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #d88423;outline-offset:3px}[hidden]{display:none!important}header{padding:12px 2vw 8px;border-bottom:1px solid #dbe4e0;background:white;flex-shrink:0}h1{font-size:clamp(15px,1.4vw,24px);margin:0 0 8px;letter-spacing:.04em}nav{display:flex;gap:6px;overflow:auto;scrollbar-width:thin;padding:3px 3px 7px}nav button{white-space:nowrap;border:0;border-radius:8px;padding:9px 15px;background:#eef2f0;color:#293e38;font-size:clamp(14px,1.1vw,20px)}nav button[aria-selected=true]{background:#346f65;color:white}#groups button{padding:5px 12px;background:transparent}#groups button[aria-selected=true]{color:#286d64;box-shadow:inset 0 -3px #4c9f95}#slide{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:3vw;flex:1;min-height:0;padding:2vh 3vw}#slide.text-only{grid-template-columns:1fr;max-width:1400px;width:100%;margin:auto}#copy{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}#eyebrow{margin:0 0 8px;text-transform:uppercase;letter-spacing:.08em;font-size:clamp(13px,1.1vw,20px);color:#477b6e;font-weight:700}h2{font-size:clamp(24px,3vw,50px);line-height:1.1;margin:0 0 2vh}#body-copy{font-size:clamp(22px,2.2vw,36px);line-height:1.45;white-space:pre-line;overflow-wrap:anywhere;min-height:0;flex:1;overflow:hidden}#source-link{font-size:16px;color:#286d64;margin-top:12px;flex-shrink:0}#visual{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:0}#image-wrap{position:relative;flex-shrink:0}#example-image{display:block;width:100%;height:100%;object-fit:contain}#caption{font-size:14px;margin-top:6px;text-align:center}#hotspots button{position:absolute;transform:translate(-50%,-50%);width:32px;height:32px;border-radius:50%;background:#fff;color:#285f55;border:2px solid #4c9f95;font-weight:bold;font-size:22px;box-shadow:0 2px 8px #0003}#paging{display:flex;justify-content:center;align-items:center;gap:20px;padding:8px;flex-shrink:0}#paging button{border:1px solid #cad9d2;background:white;border-radius:999px;padding:8px 18px;color:#285f55}#paging button:disabled{opacity:.35;cursor:default}footer{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;gap:12px;padding:12px 2vw;background:white;border-top:1px solid #dbe4e0;font-size:clamp(12px,1vw,17px);flex-shrink:0}footer strong{text-align:center}footer a{text-align:right;color:#286d64}dialog{border:0;border-radius:18px;padding:30px;max-width:min(750px,90vw);max-height:85dvh;box-shadow:0 15px 65px #0005}dialog::backdrop{background:#10291eb3}dialog p{font-size:clamp(18px,2.2vw,30px);line-height:1.5}#close-annotation{float:right;background:transparent;border:0;font-size:32px}@media(max-width:700px){header{padding:8px}#slide{gap:12px;padding:12px;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) minmax(0,.8fr)}#slide.text-only{grid-template-rows:1fr}#body-copy{font-size:20px}h2{font-size:24px;margin-bottom:8px}#eyebrow{margin-bottom:4px}footer{padding:8px;font-size:11px}#paging{padding:4px}#paging button{padding:6px 12px}#position{font-size:12px}}@media(max-height:500px){header{padding:4px 12px}h1{display:none}nav button{padding:4px 10px}#slide{padding:8px 2vw}h2{font-size:24px;margin:0 0 6px}#body-copy{font-size:20px}footer{padding:5px}#paging{padding:3px}}

/* Presentation styling follows the Classic modal palette and icon tabs. */
body{background:var(--vce-modal-dark,#4CA096);color:#fff;font-family:"K2D",sans-serif;font-weight:300}
header{padding:10px 12px;background:#efefef;border:0}
header h1{display:none}
nav{gap:0;padding:0;scrollbar-width:thin}
#tabs button{flex:1 0 90px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:110px;padding:16px 10px;background:transparent;border-radius:3px;color:#777;font-size:clamp(12px,1.1vw,19px);font-weight:300;text-transform:uppercase}
#tabs button img{height:32px;width:32px;object-fit:contain;filter:grayscale(1);opacity:.65}
#tabs button[aria-selected=true]{background:#f2f2f2;color:#555}
#tabs button:hover{background:#f7f7f7}
#groups{justify-content:center;margin-bottom:7px}
#groups button{color:#777;border-radius:0;font-weight:400}
#groups button[aria-selected=true]{color:var(--vce-modal-dark);box-shadow:inset 0 -3px var(--vce-modal-dark)}
#slide{padding:5vh 6.5vw;gap:4vw}
#slide.text-only{max-width:none}
#eyebrow{color:#fff;font-weight:300;letter-spacing:0}
h2{font-weight:400;text-transform:uppercase;font-size:clamp(25px,2.7vw,46px)}
#body-copy{font-weight:300;font-size:clamp(22px,2vw,34px);line-height:1.5}
#source-link{color:white}
#paging button{background:transparent;border-color:#ffffff70;color:white;font-weight:300}
#paging button:disabled{opacity:.3}
footer{background:#f8f9fa;color:#777;border:0;padding:8px 12px;font-size:12px}
footer strong{font-weight:400;color:#555}
footer a{justify-self:end;border-radius:999px;background:#ffca75;color:#5a4018;padding:5px 12px;text-decoration:none}
dialog{color:#243b36}
@media(max-width:700px){#tabs button{min-height:80px;flex-basis:80px;gap:7px;padding:10px 7px}#tabs button img{width:25px;height:25px}#slide{padding:18px 20px;gap:12px}footer{font-size:10px;gap:6px}#body-copy{font-size:20px}}
@media(max-height:500px){#tabs button{min-height:62px;padding:5px;gap:3px}#tabs button img{width:22px;height:22px}#slide{padding:10px 4vw}}

#tabs button img{filter:brightness(0);opacity:.42}


/* Complete topics, with the modal's Joe badge and staggered entrances. */
#slide{overflow:auto;padding:3vh 4vw;align-items:start}
#copy{overflow:visible;min-height:0}
#body-copy{overflow:visible;flex:none;font-size:clamp(18px,1.5vw,28px);white-space:normal}
#body-copy p{margin:0;white-space:pre-line}
.topic-callout{position:relative;background:color-mix(in srgb,var(--vce-modal-dark) 80%,#000);border-radius:14px;padding:22px;margin-top:48px}
.topic-callout h3{color:#ffc368;font-size:1em;font-weight:500;margin:0 70px 12px 0}
.callout-joe{position:absolute;right:14px;top:-38px;width:82px;height:82px;object-fit:contain;border-radius:50%;padding:8px;background:inherit}
.topic-callout a{color:#fff;display:inline-block;margin-top:12px}
#visual{height:100%;max-height:65vh;position:sticky;top:0;width:100%}
#image-wrap{outline:7px solid white;border-radius:20px;background:white}
#example-image{border-radius:20px}
.topic-gallery-image{display:block;width:100%;border:7px solid white;border-radius:20px;margin-top:24px}
@media(prefers-reduced-motion:no-preference){
.topic-enter .topic-description,.topic-enter #slide-title{animation:vce-tab-enter-down 360ms ease-out backwards}
.topic-enter .topic-callout{animation:vce-tab-enter-up 390ms ease-out 52.5ms backwards}
.topic-enter .topic-callout a{animation:vce-tab-enter-fade 390ms ease-out 105ms backwards}
.topic-enter #visual{animation:vce-tab-enter-right 420ms ease-out 30ms backwards}
}
@keyframes vce-tab-enter-down{from{opacity:0;transform:translateY(-7.5px)}to{opacity:1;transform:translateY(0)}}
@keyframes vce-tab-enter-up{from{opacity:0;transform:translateY(7.5px)}to{opacity:1;transform:translateY(0)}}
@keyframes vce-tab-enter-fade{from{opacity:0}to{opacity:1}}
@keyframes vce-tab-enter-right{from{opacity:0;transform:translateX(9px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:700px){#slide{display:flex;flex-direction:column;gap:30px;padding:22px}#copy{flex-shrink:0}#visual{position:relative;min-height:300px;height:40vh;flex-shrink:0}#body-copy{font-size:18px}}

/* Keep the final callout level with the image frame without compressing long copy. */
@media(min-width:701px){
  #visual{height:65vh;justify-content:flex-start}
  #slide:not(.text-only) #copy{min-height:var(--topic-image-height,0px)}
  #slide:not(.text-only) #body-copy{display:flex;flex-direction:column;flex:1;gap:48px}
  #slide:not(.text-only) .topic-callout{margin-top:0}
  #slide:not(.text-only) .topic-callout:last-child{margin-top:auto}
}

/* All grouped topics share one navigation row, with modal-style group captions. */
#tabs.grouped-topics{align-items:stretch;gap:12px}
.topic-tab-group{display:flex;flex-direction:column;flex-basis:0;min-width:0; background-color: #fff;
    border-radius: 25px;padding: 5px;}
.topic-group-tabs{display:flex;flex:1;flex-wrap:wrap}
#tabs.grouped-topics button{min-width:0; border-radius: 24px;white-space:normal;flex-basis:72px;padding:10px 5px;font-size:clamp(11px,.95vw,17px)}
#tabs.grouped-topics > button{flex:1 0 75px;align-self:stretch}
.topic-tab-group h3{margin:4px 0 0;padding:6px 4px 0;text-align:center;color:#888;text-transform:uppercase;font-size:12px;font-weight:400; margin-bottom: 5px;}
@media(max-width:700px){#tabs.grouped-topics{flex-wrap:wrap;overflow:visible}.topic-tab-group{flex-basis:100%}#tabs.grouped-topics > button{flex-grow:0}header{max-height:45vh;overflow:auto}}

/* Keep labels inside generously sized tabs; arrows reveal horizontal overflow. */
.topic-navigation{display:flex;align-items:center;gap:8px;min-width:0}
.topic-navigation #tabs{flex:1;min-width:0;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
.topic-navigation #tabs::-webkit-scrollbar{display:none}
#tabs button,#tabs.grouped-topics button{min-width:150px;flex:1 0 150px;white-space:normal;overflow-wrap:anywhere}
#tabs.grouped-topics .topic-tab-group{flex-basis:auto;flex-shrink:0;min-width:max-content}
.topic-group-tabs{flex-wrap:nowrap}
#tabs.grouped-topics > button{flex:1 0 150px}
.tabs-across{flex:0 0 36px;width:36px;height:36px;border:1px solid #ddd;border-radius:50%;background:#fff;color:#777;font-size:28px;line-height:1}
.tabs-across:disabled{opacity:.25;cursor:default}
@media(max-width:700px){header{max-height:none;overflow:visible}.topic-navigation{gap:4px}#tabs button,#tabs.grouped-topics button{min-width:130px;flex-basis:130px}}

.tabs-across{display:flex;align-items:center;justify-content:center;padding:0}.tabs-across svg{display:block;flex-shrink:0}

/* Fixed inset edge shadows indicate hidden tabs without intercepting clicks. */
.topic-navigation{position:relative}
.topic-navigation::before,.topic-navigation::after{content:"";position:absolute;top:0;bottom:0;width:24px;pointer-events:none;z-index:2;opacity:0;transition:opacity 180ms ease}
.topic-navigation::before{left:44px;background:linear-gradient(to right,rgba(43,37,61,.12),transparent)}
.topic-navigation::after{right:44px;background:linear-gradient(to left,rgba(43,37,61,.12),transparent)}
.topic-navigation.has-tabs-left::before,.topic-navigation.has-tabs-right::after{opacity:1}
@media(max-width:700px){.topic-navigation::before{left:40px}.topic-navigation::after{right:40px}}
@media(prefers-reduced-motion:reduce){.topic-navigation::before,.topic-navigation::after{transition:none}}

/* Introduction pages use larger, centred presentation copy. */
#slide.is-introduction{align-items:center}
#slide.is-introduction #copy{width:100%;max-width:1500px;margin:auto;text-align:center}
#slide.is-introduction #body-copy{font-size:clamp(26px,3vw,48px);line-height:1.45}
#slide.is-introduction #slide-title{font-size:clamp(32px,3.5vw,58px)}
/* Match the modal hotspot controls, including hover and keyboard focus. */
#hotspots button{align-items:center;background:#4c9f95;border:3px solid #fff;border-radius:50%;box-shadow:0 2px 8px rgba(0,0,0,.3);color:#fff;display:flex;font-size:1.25rem;font-weight:800;height:2rem;justify-content:center;line-height:1;padding:0;width:2rem;transition:transform 140ms ease,background-color 140ms ease}
#hotspots button:hover,#hotspots button:focus-visible{background:#347096;outline:3px solid #fff;outline-offset:2px;transform:translate(-50%,-50%) scale(1.12)}
@media(max-width:700px){#slide.is-introduction{justify-content:safe center}#slide.is-introduction #copy{flex-shrink:0}}
@media(prefers-reduced-motion:reduce){#hotspots button{transition:none}}

/* VCE presenter copy scales to the viewport rather than scrolling the slide. */
body.vce-presenter-fit #slide { overflow: hidden; height: auto; min-height: 0; }
body.vce-presenter-fit #copy { height: 100%; min-height: 0; overflow: hidden; }
body.vce-presenter-fit #body-copy { flex: 0 1 auto; line-height: 1.35; overflow: visible; }
body.vce-presenter-fit #body-copy p { margin-top: 0; margin-bottom: .8em; }
body.vce-presenter-fit .topic-callout { padding: .9em; margin-top: 1.5em; }
body.vce-presenter-fit .topic-callout h3 { margin-bottom: .6em; }
@media (max-width: 700px) {
  body.vce-presenter-fit #slide { gap: 12px; }
  body.vce-presenter-fit #copy { flex: 1 1 0; }
  body.vce-presenter-fit #visual { height: 30%; min-height: 0; }
}
/* Only introductions auto-fit; other VCE topics retain their scrolling layout. */
body.vce-presenter-fit #slide:not(.is-introduction) { overflow: auto; }
body.vce-presenter-fit #slide:not(.is-introduction) #copy { height: auto; overflow: visible; }
body.vce-presenter-fit #slide:not(.is-introduction) #body-copy { flex: none; font-size: clamp(13.5px, 1.125vw, 21px); line-height: 1.5; }
body.vce-presenter-fit #slide:not(.is-introduction) #body-copy p { margin: 0; }
body.vce-presenter-fit #slide:not(.is-introduction) .topic-callout { padding: 22px; margin-top: 48px; }
body.vce-presenter-fit #slide:not(.is-introduction) .topic-callout h3 { margin-bottom: 12px; }
@media (max-width: 700px) {
  body.vce-presenter-fit #slide:not(.is-introduction) { gap: 30px; }
  body.vce-presenter-fit #slide:not(.is-introduction) #copy { flex-shrink: 0; flex-basis: auto; }
  body.vce-presenter-fit #slide:not(.is-introduction) #body-copy { font-size: 13.5px; }
  body.vce-presenter-fit #slide:not(.is-introduction) #visual { height: 40vh; min-height: 300px; }
}
@media (min-width: 701px) {
  body.vce-presenter-fit #slide:not(.text-only):not(.is-introduction) #visual { max-height: none; justify-content: flex-end; }
  body.vce-presenter-fit #slide:not(.text-only):not(.is-introduction) #copy { min-height: var(--topic-column-height, 0px); }
  body.vce-presenter-fit #slide:not(.text-only):not(.is-introduction) #body-copy { flex: 1; display: flex; flex-direction: column; }
  body.vce-presenter-fit #slide:not(.text-only):not(.is-introduction) .topic-callout:last-child { margin-top: auto; }
  body.vce-presenter-fit #caption:empty { display: none; }
}
/* Classic uses the full desktop image area. */
@media (min-width: 701px) {
  body:not(.vce-presenter-fit) #slide:not(.text-only):not(.is-introduction) #visual { max-height: none; justify-content: flex-end; }
  body:not(.vce-presenter-fit) #slide:not(.text-only):not(.is-introduction) #copy { min-height: var(--topic-column-height, 0px); }
  body:not(.vce-presenter-fit) #slide:not(.text-only):not(.is-introduction) #body-copy { flex: 1; display: flex; flex-direction: column; }
  body:not(.vce-presenter-fit) #slide:not(.text-only):not(.is-introduction) .topic-callout:last-child { margin-top: auto; }
  body:not(.vce-presenter-fit) #caption:empty { display: none; }
}
/* Classic body tabs use 25% larger copy; introduction sizing stays separate. */
body:not(.vce-presenter-fit) #slide:not(.is-introduction) #body-copy { font-size: clamp(22.5px, 1.875vw, 35px); }
@media (max-width: 700px) {
  body:not(.vce-presenter-fit) #slide:not(.is-introduction) #body-copy { font-size: 22.5px; }
}
