:root{
  --bg:#060918;--panel:#111a33;--panel2:#17213f;--line:#35426b;--text:#f6f8ff;--muted:#c3c9dc;
  --green:#b8ff3d;--green2:#8bd71f;--focus:#fff06a;--danger:#ff7676;--max:920px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:radial-gradient(circle at 20% 0,#16244b 0,transparent 30%),var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;line-height:1.45}
button,input,textarea{font:inherit}
button,a,input,textarea{outline:none}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{box-shadow:0 0 0 4px var(--focus)}
.shell{max-width:var(--max);margin:auto;padding:18px}
.card{background:linear-gradient(180deg,var(--panel2),var(--panel));border:1px solid var(--line);border-radius:22px;padding:22px;margin:16px 0;box-shadow:0 14px 40px #0005}
.hero{display:grid;grid-template-columns:1.4fr .8fr;gap:24px;align-items:center}
.logo{width:min(360px,90%);height:auto;display:block;margin-bottom:12px}
.zak{width:min(280px,100%);justify-self:center;filter:drop-shadow(0 12px 30px #0008)}
h1{font-size:clamp(2rem,5vw,4rem);line-height:1.02;margin:.2em 0}.eyebrow{color:var(--green);font-weight:800;letter-spacing:.05em;text-transform:uppercase}.muted{color:var(--muted)}
.actions{display:grid;grid-template-columns:1fr 1fr;gap:16px}.choice h2,.chapter h2{margin-top:0}
.btn{border:0;border-radius:14px;padding:15px 18px;font-weight:800;cursor:pointer;min-height:52px}.btn-primary{background:var(--green);color:#0b1222}.btn-secondary{background:#202c52;color:var(--text);border:2px solid #5f6f9f}.btn-ghost{background:transparent;border:2px solid #5f6f9f;color:var(--text)}
.btn-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.back{display:inline-block;margin:10px 0;color:var(--green);text-decoration:none;font-weight:800}
.audio-box{background:#0c1329;border:1px solid var(--line);border-radius:16px;padding:14px}.audio-controls{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center}.audio-main{width:96px;height:96px;border-radius:50%;font-size:1.1rem}.progress{height:14px;background:#2d3551;border-radius:99px;overflow:hidden}.progress>span{display:block;height:100%;background:var(--green);width:0}.time{font-variant-numeric:tabular-nums;color:var(--muted)}
.exhibit-list{display:grid;gap:12px}.exhibit-row{display:grid;grid-template-columns:72px 110px 1fr 40px;gap:16px;align-items:center;background:linear-gradient(90deg,#121a32,#1b2548);border:1px solid var(--line);padding:12px;border-radius:16px;cursor:pointer}.num{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:#0b1222;font-size:1.5rem;font-weight:900}.thumb{width:110px;height:74px;object-fit:cover;border-radius:10px;background:#111}.arrow{font-size:2rem;color:var(--green)}
.exhibit-image{width:100%;max-height:560px;object-fit:contain;background:#05070f;border-radius:18px;border:1px solid var(--line)}
.question-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;margin:10px 0}.question-head{width:100%;text-align:left;background:#151d38;color:var(--text);padding:16px;border:0;font-weight:800;display:flex;justify-content:space-between}.answer{padding:18px;background:#0e152c}.hidden{display:none!important}
.field{display:grid;gap:7px;margin:14px 0}.field label{font-weight:800}.field input,.field textarea{width:100%;background:#0b1124;color:var(--text);border:2px solid #3f4d78;border-radius:14px;padding:14px}.field textarea{min-height:110px;resize:vertical}.mic{min-width:58px}.inline-input{display:grid;grid-template-columns:1fr auto;gap:8px}.check{display:flex;gap:10px;align-items:flex-start}.check input{margin-top:5px;transform:scale(1.35)}
.notice{border-left:5px solid var(--green);padding:10px 14px;background:#0d142a;border-radius:8px}.status{min-height:24px;color:var(--green)}
.overlay{position:fixed;inset:0;background:#000b;display:grid;place-items:center;padding:20px;z-index:50}.overlay .card{max-width:700px;max-height:88vh;overflow:auto}
.chapter{position:relative}.chapter-number{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--green);color:#0b1222;font-weight:900;font-size:1.25rem;margin-right:8px}.paused{border-color:var(--green);box-shadow:0 0 0 2px #b8ff3d55}
@media (max-width:700px){.hero,.actions{grid-template-columns:1fr}.zak{max-width:200px}.exhibit-row{grid-template-columns:58px 86px 1fr 24px;gap:10px}.thumb{width:86px;height:64px}.audio-controls{grid-template-columns:1fr}.audio-main{width:100%;height:auto;border-radius:14px}.time{text-align:center}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

/* v0.9.1 microphone accessibility refinement */
.mic{
  min-width:88px;
  width:88px;
  min-height:88px;
  height:88px;
  padding:12px;
  display:grid;
  place-items:center;
}
.mic-icon{
  width:46px;
  height:46px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
@media (max-width:600px){
  .mic{min-width:76px;width:76px;min-height:76px;height:76px}
  .mic-icon{width:40px;height:40px}
}

/* v0.9.7 microphone listening state */
.mic.listening{
  outline:3px solid currentColor;
  outline-offset:3px;
}

/* Cosmic Cumbria landing page — v0.11.9 composite-image layout */
.landing-shell-v0119{max-width:1240px;margin:0 auto;padding:8px 16px 28px}
.landing-composite{margin:0;padding:0;border:0;background:none}
.landing-hero-image,.supporters-image{display:block;width:100%;height:auto;border:0;border-radius:24px}
.welcome-audio-v0119{width:100%;margin:16px 0 0;background:#071a37;border:1.5px solid #0b8ff1;border-radius:20px;padding:18px 20px}
.welcome-audio-v0119 strong{display:block;font-size:23px;margin-bottom:12px}
.welcome-audio-v0119 audio{display:block;width:100%}
.landing-actions-v0119{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
.landing-choice{min-height:260px;background:linear-gradient(145deg,#0a1b3b,#0b244b);border:1.5px solid #0b8ff1;border-radius:22px;padding:25px 34px}
.landing-choice h2{font-size:28px;margin:0 0 20px}.landing-choice p{font-size:20px;color:#e4eaff;max-width:520px;min-height:76px}.landing-choice .btn{font-size:20px;padding:13px 28px;border-radius:12px}
.choice-icon{display:inline-grid;place-items:center;width:42px;height:42px;margin-right:8px;color:#bcdcff}.speech-icon{display:inline-block;width:42px;height:32px;border:4px solid #bcdcff;border-radius:50%;margin:0 14px -7px 0;position:relative}.speech-icon:after{content:"";position:absolute;left:2px;bottom:-9px;width:12px;height:12px;border-left:4px solid #bcdcff;transform:rotate(35deg)}
.supporters-image-wrap{margin-top:16px}
@media(max-width:800px){
  .landing-shell-v0119{padding:8px}
  .landing-hero-image,.supporters-image{border-radius:18px}
  .welcome-audio-v0119{margin-top:10px;padding:13px 14px;border-radius:16px}
  .welcome-audio-v0119 strong{font-size:18px;margin-bottom:8px}
  .landing-actions-v0119{grid-template-columns:1fr;gap:10px;margin-top:10px}
  .landing-choice{min-height:0;padding:20px}.landing-choice h2{font-size:22px;margin-bottom:10px}.landing-choice p{font-size:16px;min-height:0;margin:0 0 15px}.landing-choice .btn{font-size:17px;width:100%}
  .supporters-image-wrap{margin-top:10px}
}

/* v0.11 UI refinements */
.support-title{position:relative;isolation:isolate}
.support-title strong{display:block;position:relative;z-index:2;line-height:1;background:var(--bg);padding:0 18px;text-shadow:none;filter:none}
.support-title strong::before,.support-title strong::after{content:none!important}
.exhibit-nav{display:flex;justify-content:space-between;gap:12px;margin:4px 0 14px}
.exhibit-nav .btn{min-width:185px}
.exhibit-nav .btn:disabled{opacity:.42;cursor:not-allowed}
.back-button{appearance:none;-webkit-appearance:none;border:0;background:transparent;padding:0;color:var(--green);cursor:pointer;font:inherit}
.zak-says-heading{display:flex;align-items:center;gap:14px;justify-content:space-between;margin-bottom:8px}
.zak-says-controls{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.zak-says-listen,.zak-says-stop{white-space:nowrap;padding:10px 14px;min-height:44px}
@media(max-width:700px){
  .exhibit-nav{display:grid;grid-template-columns:1fr 1fr}
  .exhibit-nav .btn{min-width:0;padding:12px 10px}
  .zak-says-heading{align-items:flex-start}
  .zak-says-controls{gap:6px}
  .zak-says-listen,.zak-says-stop{padding:9px 12px}
}



/* Ask Zak v1.1 transcript display */
.transcript-text{line-height:1.6;font-size:1rem}.transcript-text p{margin:0 0 1em}


/* Ask Zak v1.1 high-contrast adjustable transcript */
.transcript-overlay{padding:14px}
.transcript-overlay .transcript-card{width:min(760px,94vw);height:min(86vh,900px);max-height:86vh;display:flex;flex-direction:column;overflow:hidden;background:#ffeb18;color:#080808;border:2px solid #111;border-radius:22px;padding:20px;box-shadow:0 18px 60px #000b}
.transcript-header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #222;padding-bottom:12px;margin-bottom:12px}
.transcript-header h2{margin:0;color:#080808}
.transcript-size-controls{display:flex;align-items:center;gap:8px;flex-shrink:0}
.transcript-size-btn,.transcript-x{border:2px solid #111;background:#fff27a;color:#080808;font-weight:900;border-radius:10px;min-width:48px;min-height:44px;padding:7px 10px;cursor:pointer}
.transcript-size-btn:disabled{opacity:.4;cursor:not-allowed}
.transcript-x{font-size:1.7rem;line-height:1;padding:4px 10px}
.transcript-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 8px 0 2px;scrollbar-color:#222 #fff27a}
.transcript-text{color:#080808;line-height:1.65;transition:font-size .15s ease}
.transcript-text p{margin:0 0 1em}
.transcript-close{align-self:center;margin-top:14px;background:#111;color:#ffeb18;min-width:140px}
@media(max-width:600px){.transcript-overlay .transcript-card{width:94vw;height:88vh;max-height:88vh;padding:15px;border-radius:18px}.transcript-header{align-items:flex-start}.transcript-header h2{font-size:1.35rem}.transcript-size-controls{gap:5px}.transcript-size-btn,.transcript-x{min-width:43px;min-height:42px;padding:6px 8px}.transcript-scroll{padding-right:5px}}

.app-version{text-align:center;font-size:11px;line-height:1.4;color:#9aa8bd;opacity:.8;margin:10px 0 0}

/* v1.1.7: touch-friendly seekable guided-tour audio with visible played progress */
.audio-timeline{min-width:0}.audio-seek{-webkit-appearance:none;appearance:none;width:100%;height:44px;margin:0;background:transparent;cursor:pointer;touch-action:pan-y;--seek-progress:0%}.audio-seek::-webkit-slider-runnable-track{height:14px;border-radius:99px;background:linear-gradient(to right,var(--green) 0,var(--green) var(--seek-progress),#2d3551 var(--seek-progress),#2d3551 100%)}.audio-seek::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;margin-top:-8px;width:30px;height:30px;border:0;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px #0c1329}.audio-seek::-moz-range-track{height:14px;border-radius:99px;background:#2d3551}.audio-seek::-moz-range-progress{height:14px;border-radius:99px;background:var(--green)}.audio-seek::-moz-range-thumb{width:30px;height:30px;border:0;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px #0c1329}.audio-seek:focus-visible{outline:3px solid #fff;outline-offset:3px;border-radius:99px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.audio-diagnostics{margin-top:18px}.audio-diagnostics pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto;font-size:12px;line-height:1.45;background:#080d1c;padding:12px;border-radius:10px}


/* Ask Zak v2.0 guided-tour sections */
.tour-sections{display:grid;gap:12px}
.tour-section{padding:0;overflow:hidden;margin:0}
.tour-section-toggle{width:100%;display:flex;align-items:center;gap:12px;text-align:left;background:transparent;color:var(--text);border:0;padding:16px 18px;cursor:pointer;min-height:68px}
.tour-section-toggle .chapter-number{flex:0 0 48px;margin:0}
.tour-section-title{font-size:1.25rem;font-weight:900;line-height:1.2}
.tour-section-chevron{margin-left:auto;color:var(--green);font-size:2rem;font-weight:900;line-height:1;transition:transform .15s ease}
.tour-section-open .tour-section-chevron{transform:rotate(90deg)}
.tour-section-body{border-top:1px solid var(--line);padding:6px 14px 14px}
.tour-exhibit-list{display:grid}
.tour-exhibit-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:13px 4px;border-bottom:1px solid #293a5d}
.tour-exhibit-row:last-child{border-bottom:0}
.tour-exhibit-info{display:flex;align-items:center;gap:12px;min-width:0}
.tour-exhibit-number{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:50%;background:var(--green);color:#0b1222;font-size:1.05rem;font-weight:900}
.tour-exhibit-copy,.tour-final-copy{min-width:0}
.tour-exhibit-copy h3,.tour-final-copy h3{margin:0 0 3px;font-size:1.08rem;line-height:1.25;color:var(--text)}
.tour-play{min-width:96px;white-space:nowrap}
.tour-exhibit-row audio{display:none}
.tour-final-row{margin-top:8px;background:#172445;border:1px solid #4d6594;border-radius:14px;padding:12px}
@media(max-width:600px){
  .tour-section-toggle{padding:13px 12px;min-height:62px}
  .tour-section-toggle .chapter-number{flex-basis:42px;width:42px;height:42px;font-size:1.05rem}
  .tour-section-title{font-size:1.05rem}
  .tour-section-body{padding:4px 10px 10px}
  .tour-exhibit-row{gap:9px;padding:11px 2px}
  .tour-exhibit-number{flex-basis:42px;width:42px;height:42px;font-size:.98rem}
  .tour-exhibit-copy h3,.tour-final-copy h3{font-size:.98rem}
  .tour-exhibit-copy .muted,.tour-final-copy .muted{font-size:.85rem}
  .tour-play{min-width:82px;min-height:48px;padding:12px 11px}
}

/* Ask Zak v2.0.1: in-place Guided Tour questions */
.tour-exhibit-item{border-bottom:1px solid #293a5d}
.tour-exhibit-item:last-child{border-bottom:0}
.tour-exhibit-item>.tour-exhibit-row{border-bottom:0}
.tour-exhibit-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.tour-ask-toggle{white-space:nowrap}
.tour-ask-toggle[aria-expanded="true"]{border-color:var(--green);box-shadow:0 0 0 1px var(--green) inset}
.tour-ask-panel{margin:0 4px 13px;padding:15px;background:#0d1730;border:1px solid #3a4c71;border-radius:14px}
.tour-exhibit-select{display:flex;align-items:end;gap:13px;margin-bottom:12px}
.tour-exhibit-number-field{flex:0 0 100px;margin:0}
.tour-exhibit-number-field input{width:100%;font-size:1rem}
.tour-exhibit-select .muted{margin:0 0 7px}
.tour-ask-panel .inline-input textarea{min-height:92px}
@media(max-width:700px){
  .tour-exhibit-row{grid-template-columns:minmax(0,1fr) auto}
  .tour-exhibit-actions{display:grid;grid-template-columns:1fr;justify-items:stretch}
  .tour-exhibit-actions .btn{min-width:92px}
}
@media(max-width:470px){
  .tour-exhibit-row{grid-template-columns:1fr;align-items:stretch}
  .tour-exhibit-actions{grid-template-columns:1fr 1fr}
  .tour-exhibit-actions .btn{width:100%;min-width:0}
  .tour-exhibit-select{align-items:flex-start;flex-direction:column;gap:5px}
  .tour-exhibit-number-field{width:100px;flex-basis:auto}
}


/* Ask Zak v2.0.3: Guided Tour A+ accessibility mode */
.tour-intro-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.tour-intro-heading h1{margin-bottom:0}
.tour-size-toggle{flex:0 0 auto;min-width:64px;min-height:52px;font-size:1.25rem;font-weight:900;background:var(--green)!important;color:#07101f!important;border-color:var(--green)!important}
.speech-warning{margin-top:12px;padding:10px 12px;border:1px solid #d6b45a;border-radius:10px;background:#2a2414;color:#fff3c4;font-weight:700}
.tour-large-mode .tour-intro-card .eyebrow{font-size:2em}
.tour-large-mode .tour-intro-card h1{font-size:4rem;line-height:1.05}
.tour-large-mode .tour-intro-card p,.tour-large-mode .tour-intro-card .btn:not(.tour-size-toggle){font-size:2rem}
.tour-large-mode .tour-size-toggle{font-size:2.2rem;min-width:112px;min-height:88px;padding:16px 24px}
.tour-large-mode .tour-section-toggle{gap:24px;padding:28px 30px;min-height:120px}
.tour-large-mode .tour-section-toggle .chapter-number{flex-basis:88px;width:88px;height:88px;font-size:2rem}
.tour-large-mode .tour-section-title{font-size:2.5rem}
.tour-large-mode .tour-section-chevron{font-size:4rem}
.tour-large-mode .tour-section-body{padding:12px 24px 24px}
.tour-large-mode .tour-exhibit-row{grid-template-columns:1fr;gap:20px;padding:24px 8px}
.tour-large-mode .tour-exhibit-info{gap:22px}
.tour-large-mode .tour-exhibit-number{flex-basis:84px;width:84px;height:84px;font-size:2rem}
.tour-large-mode .tour-exhibit-copy h3,.tour-large-mode .tour-final-copy h3{font-size:2.15rem}
.tour-large-mode .tour-exhibit-copy .muted,.tour-large-mode .tour-final-copy .muted{font-size:1.7rem}
.tour-large-mode .tour-exhibit-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:16px}
.tour-large-mode .tour-exhibit-actions .btn,.tour-large-mode .tour-final-row>.btn{width:100%;min-height:88px;font-size:2rem;padding:18px 24px}
.tour-large-mode .tour-final-row{padding:24px}
.tour-large-mode .tour-ask-panel{margin:0 8px 22px;padding:28px;border-radius:22px}
.tour-large-mode .tour-exhibit-select{gap:22px;margin-bottom:20px;align-items:flex-end}
.tour-large-mode .tour-exhibit-number-field{flex-basis:180px}
.tour-large-mode .tour-exhibit-number-field label,.tour-large-mode .tour-ask-panel .field label{font-size:1.8rem}
.tour-large-mode .tour-exhibit-number-field input,.tour-large-mode .tour-ask-panel textarea{font-size:2rem;padding:22px;border-radius:20px}
.tour-large-mode .tour-ask-panel textarea{min-height:180px}
.tour-large-mode .tour-exhibit-select .muted,.tour-large-mode .tour-ask-panel .status,.tour-large-mode .tour-ask-panel .answer p{font-size:1.7rem}
.tour-large-mode .tour-ask-panel .inline-input{grid-template-columns:1fr 100px;gap:14px}
.tour-large-mode .tour-ask-panel .mic{min-width:100px;min-height:96px}
.tour-large-mode .tour-ask-panel .btn-row{gap:14px}
.tour-large-mode .tour-ask-panel .btn{min-height:88px;font-size:2rem;padding:18px 24px}
.tour-large-mode .tour-ask-panel .answer h3{font-size:2.2rem}
@media(max-width:700px){
  .tour-large-mode .tour-intro-heading{align-items:flex-start}
  .tour-large-mode .tour-intro-card h1{font-size:3.1rem}
  .tour-large-mode .tour-intro-card p,.tour-large-mode .tour-intro-card .btn:not(.tour-size-toggle){font-size:1.65rem}
  .tour-large-mode .tour-section-toggle{padding:22px 18px;gap:18px}
  .tour-large-mode .tour-section-toggle .chapter-number{flex-basis:72px;width:72px;height:72px;font-size:1.7rem}
  .tour-large-mode .tour-section-title{font-size:2rem}
  .tour-large-mode .tour-exhibit-number{flex-basis:70px;width:70px;height:70px;font-size:1.7rem}
  .tour-large-mode .tour-exhibit-copy h3,.tour-large-mode .tour-final-copy h3{font-size:1.75rem}
  .tour-large-mode .tour-exhibit-copy .muted,.tour-large-mode .tour-final-copy .muted{font-size:1.4rem}
  .tour-large-mode .tour-exhibit-actions{grid-template-columns:1fr}
  .tour-large-mode .tour-exhibit-select{align-items:flex-start;flex-direction:column}
  .tour-large-mode .tour-exhibit-number-field{width:180px;flex-basis:auto}
}
