:root {--guide-ink:#26372c;--guide-accent:#a85a30;--guide-muted:#5e695f;--guide-line:#dcded0}
.icon-library {position:absolute;overflow:hidden;width:0;height:0}
#language-gate {min-height:100svh;display:grid;align-items:center;padding:clamp(20px,5vw,74px);background:#eae9df}
.gate-wrap {margin:auto;width:min(1160px,100%);min-height:min(720px,84svh);display:grid;grid-template-columns:1.04fr 1fr;overflow:hidden;border-radius:18px;background:#faf8f2;box-shadow:0 12px 65px #26312712}
.gate-panel {min-width:0;display:flex;flex-direction:column;justify-content:space-between;padding:clamp(27px,4.3vw,65px)}
.gate-panel .brand {align-self:start}
.gate-panel .brand-glyph {width:42px;height:42px}
.gate-intro {margin:auto 0;padding:clamp(30px,6vw,88px) 0 30px}
.gate-intro h1 {margin:0 0 27px;max-width:13ch;color:var(--guide-ink);font-size:clamp(44px,5.9vw,85px);line-height:1.03;letter-spacing:-.055em}
.gate-intro h1 em {margin-top:6px;color:#986241}
.gate-intro>p {font-size:clamp(15px,1.25vw,18px);color:#535b51;line-height:1.5}
.gate-intro>p+p {margin-top:3px}
.gate-languages {display:flex;flex-wrap:wrap;gap:10px;margin-top:27px}
.gate-languages button {display:flex;align-items:center;justify-content:space-between;gap:30px;min-height:53px;min-width:139px;padding:10px 18px;border:1px solid #728270;border-radius:9px;color:#263e30;background:#fdfbf5;font-size:16px;font-weight:650}
.gate-languages button span {font-size:22px;font-weight:400}
.gate-languages button:hover,.gate-languages button:focus-visible {background:var(--guide-ink);color:#fff}
.gate-photo {min-height:100%;background:#583a26 url('./backstube.webp') 69% center/cover no-repeat}
#guide-shell {min-height:100svh;display:flex;flex-direction:column}
.topbar {border-bottom:1px solid #dedfd3;background:#faf8f2}
.topbar-inner {height:70px;justify-content:space-between}
.guide-brand {text-align:left;padding:0}
.topbar .brand-glyph {height:38px;width:38px}
.topbar .brand>span {font-size:25px}
.topbar .languages button {min-height:36px;min-width:39px}
.guide-rail {padding:21px 0 0}
#guide-progress {display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);list-style:none;gap:9px;padding:0;margin:0}
#guide-progress button {width:100%;display:grid;gap:7px;text-align:left;padding:3px 0 7px;color:#74796c;font-weight:540;font-size:12px}
#guide-progress button i {display:block;height:3px;border-radius:2px;background:#d9dbce}
#guide-progress button.passed i {background:#879c7f}
#guide-progress button[aria-current] {color:#23432e;font-weight:700}
#guide-progress button[aria-current] i {background:#345b40}
#guide-progress button:hover span {text-decoration:underline;text-underline-offset:3px}
#content {flex:1;min-width:0}
#content:focus {outline:0}
.guide-page {padding-top:clamp(24px,4vw,57px);padding-bottom:clamp(25px,3vw,45px)}
.guide-page:is(.work),#tourapp {margin-top:0}
.guide-opening {min-height:clamp(410px,55vh,560px);display:grid;grid-template-columns:.86fr 1.14fr;gap:clamp(32px,4.7vw,75px);align-items:center}
.guide-kicker {margin:0 0 12px;color:var(--guide-accent);font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.15em}
.guide-title {max-width:21ch;margin:0;color:var(--guide-ink);font:400 clamp(35px,4.3vw,65px)/1.04 var(--serif);letter-spacing:-.052em;text-wrap:balance}
.guide-title:focus {outline:none}
.guide-story .guide-title {max-width:15ch}
.guide-lead {color:#505b50;font-size:clamp(15px,1.22vw,18px);line-height:1.56;max-width:65ch}
.guide-story .guide-lead {margin-top:17px;max-width:45ch}
.opening-overview {display:grid;gap:7px;max-width:49ch;padding-left:19px;margin:16px 0 0;color:#485848;font-size:14px;line-height:1.42}
.opening-overview li::marker {color:#8b6b46}
.guide-primary,.guide-forward,.guide-back,.guide-text-button {display:inline-flex;justify-content:center;align-items:center;gap:14px;min-height:45px;padding:10px 17px;border-radius:8px;font-size:14px;font-weight:650;line-height:1.3}
.guide-primary,.guide-forward {color:white;background:#294b37}
.guide-primary:hover,.guide-forward:hover {background:#153b25}
.guide-primary {margin-top:24px}
.guide-primary span:last-child,.guide-forward span:last-child,.guide-back span:first-child {font-size:19px;line-height:1;font-weight:400}
.screen-gallery {min-width:0;margin:0;overflow:hidden;border:1px solid #d3d3c7;border-radius:14px;background:#fffdf8;box-shadow:0 9px 40px #342e1710}
.screen-gallery-top {display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;background:#eeede3;color:#626758;font-size:11px;font-weight:600}
.screen-led {display:flex;gap:4px}
.screen-led i {width:6px;height:6px;background:#b5b8a8;border-radius:50%}
.screen-gallery img {width:100%;height:auto;aspect-ratio:1.8;object-fit:contain;background:#fefefe;display:block}
.screen-zoom {position:relative;display:block;width:100%;padding:0;cursor:zoom-in}
.zoom-label {position:absolute;bottom:7px;right:8px;padding:3px 7px;border:1px solid #c8cbbf;border-radius:5px;background:#fffffaf2;color:#354738;font-size:10px;font-weight:650}
#screen-dialog {width:max-content;max-width:min(95vw,1050px);max-height:90svh;margin:auto;padding:0;border:1px solid #bfc6b8;border-radius:12px;overflow:auto;color:var(--guide-ink);background:white}
#screen-dialog::backdrop {background:#19291ed9}
.zoom-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px;background:#f4f3e9}
.zoom-toolbar h2 {margin:0;font:600 13px/1.4 'Segoe UI',sans-serif;letter-spacing:0}
.zoom-toolbar button {padding:7px;font-size:13px;font-weight:600}
#enlarged-screen {display:block;width:auto;max-width:min(93vw,1000px);height:auto}
.zoom-hint {display:none}
.zoom-scroll {max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
@media(max-width:760px){#screen-dialog{width:95vw}.zoom-hint{display:block;padding:6px 14px;font-size:11px;color:#52604c;border-bottom:1px solid #d5dccd}.zoom-scroll #enlarged-screen{width:780px;max-width:none}}
.screen-gallery figcaption {display:flex;gap:10px;align-items:center;justify-content:space-between;padding:11px 14px;border-top:1px solid var(--guide-line)}
.screen-gallery figcaption small {font-size:10px;color:#606659}
.gallery-switch,.sample-languages {display:inline-flex;gap:2px;padding:3px;background:#eeeee4;border-radius:7px;border:1px solid #dcded1}
.gallery-switch button,.sample-languages button {min-height:34px;padding:6px 10px;border-radius:5px;font-size:12px;font-weight:650;color:#4b5647}
.gallery-switch button[aria-pressed=true],.sample-languages button[aria-pressed=true] {background:#34563e;color:white}
.guide-step-intro {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.75fr);align-items:end;column-gap:clamp(27px,5vw,76px);margin-bottom:26px}
.guide-step-intro .guide-title {font-size:clamp(32px,3.5vw,53px);max-width:23ch}
.guide-step-intro .guide-lead {max-width:60ch}
#tourapp .trip-intro {margin-top:0;align-items:center}
#tourapp .trip-intro>div:first-child>p {display:none}
#tourapp .trip-intro h2 {font-size:27px;margin:0}
#tourapp .trip-intro {margin-bottom:12px}
.team-grid {display:grid;grid-template-columns:1fr 1fr;gap:18px}
.staff-example,.team-tailor {padding:clamp(20px,3vw,37px);border-radius:14px;border:1px solid var(--guide-line)}
.staff-example {background:#e9eee3}
.staff-example .guide-kicker {color:#52654d}
.sample-slip {display:flex;gap:13px;align-items:center;max-width:380px;margin:19px 0 12px;border-radius:10px;background:#fffdf7;border:1px solid #d4d9c9;padding:15px 17px}
.sample-check {display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;background:#dae9d6;border-radius:50%;color:#305d38;font-weight:650}
.sample-slip small,.sample-slip strong,.sample-slip span {display:block}
.sample-slip small {color:#67705e;font-size:11px}
.sample-slip strong {font-size:17px;color:#2c4c31}
.sample-slip span,.sample-foot {font-size:13px;color:#52604d}
.team-tailor {display:flex;flex-direction:column;align-items:flex-start;background:#f3ece0}
.team-tailor h3 {font:400 clamp(25px,2.7vw,36px)/1.15 var(--serif);letter-spacing:-.04em;color:#473b2c}
.team-tailor>p:not(.guide-kicker) {font-size:14px;line-height:1.55;color:#5a5347;margin:10px 0 12px}
.guide-text-button {padding:0;color:#334d38;text-decoration:underline;text-underline-offset:3px}
.scope-disclosures {margin-top:21px}
.scope-disclosures details {padding:13px 0;border-bottom:1px solid var(--guide-line)}
.scope-disclosures summary {color:#354937;font-weight:650;min-height:29px;line-height:1.6}
.scope-disclosures .feature {padding:9px 0}
.scope-disclosures details>div {padding:5px 0 6px 17px;max-width:83ch}
.guide-last .guide-step-intro {display:block}
.guide-bottom {position:sticky;bottom:0;z-index:4;border-top:1px solid var(--guide-line);background:#f8f6f0f5;backdrop-filter:blur(12px)}
.guide-bottom-inner {display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:15px;padding-top:12px;padding-bottom:max(12px,env(safe-area-inset-bottom))}
.guide-back {grid-column:1;grid-row:1;justify-self:start;padding-left:0;color:#465141}
.guide-back:hover {text-decoration:underline;text-underline-offset:4px}
.guide-page-counter {grid-column:2;grid-row:1;color:#61695b;font-variant-numeric:tabular-nums;font-size:12px}
.guide-forward {grid-column:3;grid-row:1;justify-self:end}
@media (min-width:761px) and (max-height:660px){.gate-wrap{min-height:82vh}.gate-intro{padding:26px 0 0}.gate-intro h1{font-size:52px;margin-bottom:15px}.guide-opening{min-height:unset}}
@media (max-width:950px) {.guide-opening {grid-template-columns:.91fr 1.09fr;gap:24px}.shell {width:min(100% - 48px,1176px)}.guide-title {font-size:clamp(36px,4.5vw,54px)}.screen-gallery figcaption {align-items:flex-start;flex-direction:column;gap:5px}}
@media (max-width:760px) {
  #language-gate {padding:17px}
  .gate-wrap {grid-template-columns:1fr;min-height:unset;max-width:560px}
  .gate-panel {padding:24px 25px 29px}
  .gate-intro {padding:42px 0 0}
  .gate-intro h1 {font-size:clamp(40px,9vw,66px);margin-bottom:19px;max-width:13ch}
  .gate-photo {min-height:0;height:clamp(90px,20svh,190px);background-position:62% 57%}
  .gate-languages {margin-top:22px}
  .gate-languages button {min-width:0;flex:1;max-width:182px}
  .shell {width:calc(100% - 32px)}
  .topbar-inner {height:57px}
  .topbar .brand-glyph {width:32px;height:32px}
  .topbar .brand>span {font-size:21px}
  .topbar .brand small {font-size:6px}
  .guide-rail {padding-top:13px}
  #guide-progress {gap:5px}
  #guide-progress button {font-size:10px;line-height:1.25;gap:6px;overflow-wrap:anywhere}
  .guide-opening {grid-template-columns:1fr;min-height:0;gap:24px}
  .guide-page {padding-top:24px;padding-bottom:24px}
  .guide-story .guide-title {font-size:clamp(34px,8.3vw,56px);max-width:18ch}
  .guide-story .guide-lead {margin-top:12px;max-width:55ch}
  .guide-primary {margin-top:15px}
  .guide-kicker {font-size:10px;margin-bottom:8px}
  .screen-gallery figcaption {flex-direction:row;align-items:center;flex-wrap:wrap}
  .guide-step-intro {grid-template-columns:1fr;gap:12px;margin-bottom:16px}
  .team-grid {grid-template-columns:1fr;gap:12px}
  #tourapp .trip-intro {display:flex;align-items:flex-start;gap:9px}
  .guide-bottom-inner {gap:8px;grid-template-columns:auto 1fr auto;padding-top:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .guide-page-counter {text-align:center;font-size:11px}
  .guide-forward,.guide-back {gap:6px;font-size:12px;min-height:41px}
  .guide-forward {padding:8px 11px}
}
@media (max-width:480px) {
  #guide-progress {grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-flow:row;gap:3px 10px}
  #guide-progress button {font-size:12px;min-height:36px;align-content:center;gap:5px;white-space:nowrap;overflow-wrap:normal}
}
@media(max-width:370px){.gate-panel{padding:20px}.gate-intro{padding-top:25px}.gate-languages button{font-size:15px;padding-inline:13px;gap:12px}.guide-rail,.shell{width:calc(100% - 24px)}.guide-bottom-inner{gap:5px}.guide-back{padding-right:3px}.guide-forward{max-width:152px}.screen-gallery figcaption small{display:block}}
@media print{#language-gate,.guide-rail,.guide-bottom,.guide-step-intro{display:none!important}}
.tour-workbench {margin-top:24px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.tour-workbench>summary {padding:17px 20px;cursor:pointer;font-weight:650;color:var(--green);line-height:1.4}
.tour-workbench[open]>summary {border-bottom:1px solid var(--line)}
.tour-workbench #tourapp {padding:12px clamp(8px,2vw,22px) 20px}
#dispatch-board {scroll-margin-top:16px}
