/* VeinTrain Virtual Hospital
   Brand source: VEINTRAIN_DESIGN_SYSTEM.html v3.1 + veintrain-design-tokens.css v1.1 (public-facing family).
   Colour values come only from the token file. No gradients. Red is accent-only (Train route marker, small trolley item).
   Component patterns (header, hero with swoosh, buttons, route colours, footer) follow Journey Explorer V2. */

:root {
  --ink: var(--vt-charcoal-900);
  --ink-soft: var(--vt-grey-600);
  --line: var(--vt-grey-200);
  --page: var(--vt-grey-50);
  --card: var(--vt-white);
  --glow: 0 0 0 4px rgba(55, 174, 239, .28), 0 0 18px rgba(55, 174, 239, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --learn: var(--vt-blue);      --learn-ink: var(--vt-blue-mid);
  --train: var(--vt-red);       --train-ink: var(--vt-red);
  --scale: var(--vt-blue-deep); --scale-ink: var(--vt-blue-deep);
  --route: var(--vt-blue-mid);  --route-ink: var(--vt-blue-mid);
  /* Greenery (trees, planters). Existing token greens only; one place to change if the brand owner prefers another. */
  --vh-leaf: var(--vt-ontrack);
  --vh-leaf-deep: var(--vt-status-green);
}
[data-route="learn"] { --route: var(--learn); --route-ink: var(--learn-ink); }
[data-route="train"] { --route: var(--train); --route-ink: var(--train-ink); }
[data-route="scale"] { --route: var(--scale); --route-ink: var(--scale-ink); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: 'Figtree', var(--font-main); font-size: 16px; line-height: var(--lh-body);
  color: var(--ink); background: var(--page);
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: var(--lh-tight); margin: 0; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: var(--fw-heavy); }
a { color: var(--vt-blue-deep); }
:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--vt-white); padding: 8px 12px; z-index: 99; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; width: 100%; }
.section { padding-top: var(--space-6); }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.loading { padding: 48px 16px; color: var(--ink-soft); }
.ico { flex: none; }

/* ---------- Header, simulation band, footer ---------- */
.site-head { background: var(--vt-white); border-bottom: 1px solid var(--vt-charcoal-100); }
.site-head__inner { max-width: 1120px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-head__logo { display: inline-flex; }
.site-head__logo img { height: 40px; width: auto; display: block; }
.site-head__title { font-weight: var(--fw-semibold); color: var(--ink-soft); font-size: .95rem; padding-left: 14px; border-left: 1px solid var(--line); }
.site-head__nav { display: flex; gap: 4px; margin-left: auto; }
.site-head__link { font: inherit; font-weight: var(--fw-semibold); font-size: .95rem; color: var(--vt-blue-deep); background: none; border: 0; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; }
.site-head__link:hover { background: var(--vt-grey-100); }
.site-head__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.proto-pill { background: var(--vt-red); color: var(--vt-white); font-size: .74rem; font-weight: var(--fw-bold); letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

.sim-band { background: var(--vt-blue-deep); color: var(--vt-white); }
.sim-band__inner { max-width: 1120px; margin: 0 auto; padding: 8px 16px; display: flex; gap: 10px; align-items: center; font-size: .9rem; }
.sim-band__inner p { margin: 0; }

.app { flex: 1; outline: none; padding-bottom: var(--space-6); }
.site-foot { background: var(--vt-white); border-top: 1px solid var(--vt-charcoal-100); }
.site-foot__inner { max-width: 1120px; margin: 0 auto; padding: 20px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.site-foot__inner img { height: 30px; width: auto; }
.site-foot__triad { font-weight: var(--fw-bold); margin: 0; }
.site-foot__note { margin: 0; font-size: .82rem; color: var(--ink-soft); }
body.tour-on .site-foot { padding-bottom: 210px; }

@media (max-width: 640px) {
  .site-head__title { display: none; }
  .site-head__nav { order: 3; width: 100%; margin-left: -10px; }
  .proto-pill { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn { font: inherit; font-weight: var(--fw-semibold); border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; padding: 12px 20px; line-height: 1.2; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .15s, transform .15s, box-shadow .2s; }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: .92rem; }
.btn--primary { background: var(--vt-blue-deep); color: var(--vt-white); }
.btn--primary:hover { background: var(--vt-blue-mid); }
.btn--secondary { background: var(--vt-white); color: var(--vt-blue-deep); border-color: var(--vt-blue-deep); }
.btn--secondary:hover { background: var(--vt-grey-100); }
.btn--quiet { background: var(--vt-white); color: var(--ink); border-color: var(--line); }
.btn--quiet:hover { border-color: var(--vt-charcoal-500); }
.btn--on-dark { background: var(--vt-white); color: var(--vt-charcoal-900); }
.btn--on-dark:hover { background: var(--vt-grey-100); }
.btn--outline-dark { background: transparent; color: var(--vt-white); border-color: var(--vt-white); }
.btn--outline-dark:hover { background: var(--vt-charcoal-700); }
.link-btn { background: none; border: 0; font: inherit; font-weight: var(--fw-semibold); color: var(--vt-blue-deep); cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero (River Bridge film over an approved mid-grey panel) ---------- */
.hero { position: relative; overflow: hidden; background: var(--vt-charcoal-500); color: var(--vt-white); }
.hero::after { content: ''; position: absolute; right: -120px; top: -40px; width: 720px; height: 445px; background: url('../assets/veintrain-swoosh-grey-halo.svg') no-repeat center / contain; opacity: var(--swoosh-opacity); pointer-events: none; }
.hero--video::after { display: none; }
.hero__video-shell { position: absolute; inset: 0; background: var(--vt-charcoal-500); overflow: hidden; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--vt-charcoal-500); }
.hero__inner { position: relative; z-index: 1; max-width: 1120px; min-height: clamp(540px, 56.25vw, 720px); margin: 0 auto; padding: 32px 16px 96px; display: flex; align-items: flex-start; pointer-events: none; }
.hero__panel { width: min(590px, 58%); padding: 28px 30px 30px; border: 1px solid var(--vt-charcoal-300); border-radius: var(--radius-lg); background: rgba(56, 58, 63, .92); box-shadow: var(--shadow-lg); pointer-events: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: var(--fw-bold); color: var(--vt-blue); margin: 0 0 12px; }
.eyebrow--dark { color: var(--vt-blue-mid); margin: 14px 0 6px; }
.hero h1 { font-weight: var(--fw-heavy); font-size: clamp(2rem, 5.4vw, 3.2rem); max-width: 20ch; }
.hero__lead { font-size: 1.12rem; max-width: 56ch; margin: 18px 0 0; color: var(--vt-charcoal-100); }
.hero__tagline { font-size: 1.25rem; font-weight: var(--fw-semibold); color: var(--vt-blue); margin: 10px 0 0; letter-spacing: .02em; }
.hero__concept { display: flex; gap: 10px; align-items: flex-start; max-width: 62ch; margin: 22px 0 0; padding: 12px 14px; border: 1px solid var(--vt-charcoal-300); border-radius: var(--radius-md); color: var(--vt-white); font-size: .95rem; }
.hero__concept .ico { margin-top: 3px; flex: none; color: var(--vt-blue); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__note { font-size: .9rem; color: var(--vt-charcoal-300); margin: 18px 0 0; max-width: 60ch; }
.hero__video-help { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--vt-charcoal-300); color: var(--vt-charcoal-100); font-size: .84rem; }
.screen-title:focus { outline: none; }

@media (max-width: 760px) {
  .hero--video { display: flex; flex-direction: column; }
  .hero__video-shell { position: relative; inset: auto; aspect-ratio: 16 / 9; width: 100%; flex: none; }
  .hero__video { position: absolute; }
  .hero__inner { min-height: 0; width: 100%; padding: 0 16px 32px; display: block; pointer-events: auto; }
  .hero__panel { width: 100%; padding: 26px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.55rem); }
  .hero__lead { font-size: 1rem; }
  .hero__actions .btn { flex: 1 1 180px; }
}

/* ---------- Map page ---------- */
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 28px; flex-wrap: wrap; margin-bottom: 16px; }
.section__head p { margin: 6px 0 0; }
.visit { min-width: 240px; flex: 0 1 340px; }
.visit__bar { height: 10px; background: var(--vt-grey-200); border-radius: 999px; overflow: hidden; }
.visit__bar span { display: block; height: 100%; background: var(--vt-blue-mid); border-radius: 999px; transition: width .6s var(--ease); }
.visit__text { margin: 6px 0 0; font-size: .92rem; color: var(--ink-soft); }
.visit__text strong { color: var(--ink); }

.fp-wrap { background: var(--vt-white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px; box-shadow: var(--shadow-sm); }
.fp { display: block; width: 100%; height: auto; font-family: 'Figtree', var(--font-main); }
.fp-site { fill: var(--vt-white); }
.fp-corridor { fill: var(--vt-grey-100); }
.fp-corridor__line { stroke: var(--vt-grey-200); stroke-width: 3; stroke-dasharray: 14 12; }
.fp-corridor__label { fill: var(--vt-charcoal-500); font-size: 15px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.fp-room { cursor: pointer; outline: none; }
.fp-room__box { fill: var(--vt-grey-50); stroke: var(--vt-grey-200); stroke-width: 3; transition: fill .2s, stroke .2s; }
.fp-room:hover .fp-room__box { fill: var(--vt-white); stroke: var(--vt-blue-mid); }
.fp-room:focus-visible .fp-room__box { fill: var(--vt-white); stroke: var(--vt-blue); stroke-width: 7; }
.fp-room.is-visited .fp-room__box { stroke: var(--vt-blue-mid); }
.fp-door { fill: var(--vt-white); }
.fp-furn { fill: var(--vt-white); stroke: var(--vt-grey-400); stroke-width: 2; stroke-dasharray: 5 4; transition: stroke .2s; }
.fp-room:hover .fp-furn, .fp-room:focus-visible .fp-furn { stroke: var(--vt-blue-mid); }
.fp-room__badge { fill: var(--vt-white); stroke: var(--vt-blue-mid); stroke-width: 2.5; }
.fp-room__icon { color: var(--vt-blue-deep); }
.fp-room__name { fill: var(--vt-charcoal-900); font-size: 30px; font-weight: 800; }
.fp-room__meta { fill: var(--vt-grey-600); font-size: 19px; font-weight: 600; }
.fp-tick { fill: var(--vt-blue-deep); }
.fp-tick__mark { fill: none; stroke: var(--vt-white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fp-entrance__arrow { fill: none; stroke: var(--vt-blue-deep); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.fp-entrance__label { fill: var(--vt-charcoal-900); font-size: 20px; font-weight: 700; }

.room-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.room-card { height: 100%; display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 20px; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.room-card:hover { transform: translateY(-3px); border-color: var(--vt-blue-mid); box-shadow: var(--shadow-md); }
.room-card__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 2.5px solid var(--vt-blue-mid); color: var(--vt-blue-deep); margin-bottom: 4px; }
.room-card__eyebrow { font-size: .76rem; font-weight: var(--fw-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.room-card__name { font-size: 1.2rem; font-weight: var(--fw-heavy); }
.room-card__intro { color: var(--ink-soft); font-size: .95rem; }
.room-card__foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.room-card__routes { display: flex; gap: 6px; flex-wrap: wrap; }
.room-card__count { font-size: .85rem; font-weight: var(--fw-semibold); color: var(--vt-blue-deep); }

.route-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: var(--fw-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--route-ink); border: 2px solid var(--route); border-radius: 999px; padding: 2px 9px 2px 6px; background: var(--vt-white); }

.pw-intro { margin: 6px 0 16px; max-width: 64ch; }
.pw-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .pw-grid { grid-template-columns: 1fr; } }
.pw-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 2px solid var(--line); border-top: 6px solid var(--route); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.pw-card__head { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.pw-card__badge { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--route); color: var(--route-ink); flex: none; }
.pw-card__name { display: block; font-size: .8rem; font-weight: var(--fw-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--route-ink); }
.pw-card__promise { display: block; font-size: 1.15rem; font-weight: var(--fw-heavy); }
.pw-card p { margin: 0; }
.pw-card__label { font-size: .74rem; font-weight: var(--fw-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px !important; }
.pw-card__label--concept { color: var(--vt-charcoal-900); border: 1px dashed var(--vt-charcoal-500); border-radius: 4px; padding: 0 6px; align-self: flex-start; }
.pw-card__concept { color: var(--ink-soft); font-style: italic; }
.pw-card__btn { margin-top: auto; align-self: flex-start; }
.pw-card__label + p { margin-bottom: 2px; }
.pw-note { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 12px 14px; border: 1px solid var(--vt-blue-deep); border-radius: var(--radius-md); background: var(--vt-white); color: var(--ink); font-size: .95rem; }
.pw-note .ico { margin-top: 3px; color: var(--vt-blue-deep); flex: none; }
.connect { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 20px; align-items: center; background: var(--vt-white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.connect h2 { font-size: 1.25rem; }
.connect p { margin: 6px 0 0; color: var(--ink-soft); }
.connect__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--vt-blue-deep); color: var(--vt-white); }
@media (max-width: 720px) { .connect { grid-template-columns: 1fr; } }

/* ---------- Page heads, breadcrumbs ---------- */
.page-head { padding-top: 24px; padding-bottom: 18px; }
.page-head h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); font-weight: var(--fw-heavy); }
.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 66ch; margin: 10px 0 0; }
.crumbs { font-size: .9rem; color: var(--ink-soft); }
.crumbs a { font-weight: var(--fw-semibold); }
.room-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; }
.room-meta__count { font-size: .9rem; font-weight: var(--fw-semibold); color: var(--vt-blue-deep); margin-left: 4px; }

/* ---------- Room scene ---------- */
.scene { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--vt-grey-50); box-shadow: var(--shadow-sm); }
.scene__svg { position: absolute; inset: 0; width: 100%; height: 100%; font-family: 'Figtree', var(--font-main); }
.scene-hint { font-size: .9rem; margin: 8px 0 0; }
.sc-wall { fill: var(--vt-grey-50); }
.sc-floor { fill: var(--vt-grey-100); }
.sc-floorline { stroke: var(--vt-grey-200); stroke-width: 2; }
.sc-skirting { fill: var(--vt-grey-200); }
.sc-glass { fill: var(--vt-white); }
.sc-frame { fill: none; stroke: var(--vt-charcoal-300); stroke-width: 4; }
.sc-sill { fill: var(--vt-grey-200); }
.sc-card { fill: var(--vt-white); stroke: var(--vt-grey-200); stroke-width: 2; }
.sc-outline { fill: none; stroke: var(--vt-grey-200); stroke-width: 2; }
.sc-deep { fill: var(--vt-blue-deep); }
.sc-blue { fill: var(--vt-blue); }
.sc-mid { fill: var(--vt-grey-200); }
.sc-mid-blue { fill: var(--vt-blue-mid); }
.sc-dark { fill: var(--vt-charcoal-700); }
.sc-darker { fill: var(--vt-charcoal-900); }
.sc-accent { fill: var(--vt-red); }
.sc-label-light { fill: var(--vt-white); font-size: 15px; font-weight: 700; }
.sc-label { fill: var(--vt-blue-deep); font-size: 17px; font-weight: 800; }
.sc-trace { fill: none; stroke: var(--vt-blue); stroke-width: 3; stroke-linejoin: round; }
.sc-rail { stroke: var(--vt-charcoal-500); stroke-width: 4; stroke-linecap: round; }
.sc-curtain { fill: var(--vt-grey-200); }
.sc-fold { stroke: var(--vt-grey-100); stroke-width: 3; }
.sc-leg { fill: none; stroke: var(--vt-charcoal-500); stroke-width: 5; stroke-linecap: round; }
.sc-bag { fill: var(--vt-white); stroke: var(--vt-blue-mid); stroke-width: 3; }
.sc-tube { fill: none; stroke: var(--vt-blue-mid); stroke-width: 2.5; }
.sc-vein { fill: none; stroke: var(--vt-blue-deep); stroke-width: 5; stroke-linecap: round; }
.sc-vein-fine { fill: none; stroke: var(--vt-blue-mid); stroke-width: 3; stroke-linecap: round; }
.sc-leaf { fill: var(--vt-charcoal-500); }

.hotspot { position: absolute; transform: translate(-50%, -50%); background: none; border: 0; padding: 0; cursor: pointer; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 2; }
.hotspot__dot { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--vt-blue-deep); color: var(--vt-white); font-weight: var(--fw-heavy); font-size: 1.05rem; border: 3px solid var(--vt-white); box-shadow: var(--shadow-md); transition: transform .2s var(--ease), background .2s; }
.hotspot__dot::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid var(--vt-blue); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
.hotspot:hover .hotspot__dot, .hotspot:focus-visible .hotspot__dot { transform: scale(1.12); background: var(--vt-blue-mid); }
.hotspot:focus-visible { outline: none; }
.hotspot:focus-visible .hotspot__dot { outline: var(--focus-ring); outline-offset: 4px; }
.hotspot.is-done .hotspot__dot { background: var(--vt-white); color: var(--vt-blue-deep); border-color: var(--vt-blue-deep); }
.hotspot.is-done .hotspot__dot::before { animation: none; }
.hotspot__label { display: none; background: var(--vt-white); color: var(--ink); font-size: .82rem; font-weight: var(--fw-bold); padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.hotspot:hover .hotspot__label, .hotspot:focus-visible .hotspot__label, .hotspot.is-tour-target .hotspot__label { display: block; }
.hotspot.is-tour-target .hotspot__dot { box-shadow: var(--glow); }
.hotspot.is-tour-target .hotspot__dot::before { opacity: 1; animation-duration: 1.4s; }
@keyframes ping { 0% { opacity: .9; transform: scale(.8); } 80%, 100% { opacity: 0; transform: scale(1.5); } }
@media (max-width: 640px) {
  .scene { border-radius: var(--radius-md); }
  .hotspot__dot { width: 34px; height: 34px; font-size: .92rem; border-width: 2px; }
  .hotspot:hover .hotspot__label, .hotspot:focus-visible .hotspot__label, .hotspot.is-tour-target .hotspot__label { display: none; }
}

.station-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.station-card { width: 100%; height: 100%; text-align: left; font: inherit; color: inherit; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-md); padding: 16px; cursor: pointer; transition: border-color .15s, transform .15s var(--ease), box-shadow .2s; }
.station-card:hover { border-color: var(--vt-blue-mid); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.station-card.is-tour-target { border-color: var(--vt-blue); box-shadow: var(--glow); }
.station-card__num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--vt-blue-deep); color: var(--vt-white); font-weight: var(--fw-heavy); }
.station-card.is-done .station-card__num { background: var(--vt-white); color: var(--vt-blue-deep); border: 2px solid var(--vt-blue-deep); }
.station-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.station-card__kind { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); flex-wrap: wrap; }
.station-card__name { font-weight: var(--fw-heavy); font-size: 1.05rem; }
.station-card__summary { color: var(--ink-soft); font-size: .93rem; }
.station-card__go { color: var(--vt-blue-deep); align-self: center; }
.synthetic-tag { display: inline-block; font-size: .7rem; font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--vt-charcoal-900); background: var(--vt-grey-100); border: 1px dashed var(--vt-charcoal-500); border-radius: 4px; padding: 0 6px; }

.room-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: var(--space-6); }
@media (max-width: 640px) { .room-nav .btn { flex: 1 1 30%; padding: 10px; font-size: .9rem; } }

/* ---------- Tours page ---------- */
.tour-grid { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .tour-grid { grid-template-columns: 1fr; } }
.tour-card { width: 100%; height: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 2px solid var(--line); border-top: 6px solid var(--route); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-md); transition: transform .2s var(--ease), border-color .2s; }
.tour-card:hover { transform: translateY(-4px); border-color: var(--route); }
.tour-card__badge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--route); color: var(--route-ink); }
.tour-card__name { font-size: .8rem; font-weight: var(--fw-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--route-ink); }
.tour-card__promise { font-size: 1.3rem; font-weight: var(--fw-heavy); }
.tour-card__who { color: var(--ink-soft); }
.tour-card__go { margin-top: auto; padding-top: 8px; font-weight: var(--fw-semibold); color: var(--vt-blue-deep); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Tour bar and controls ---------- */
.tour-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(760px, calc(100vw - 24px)); z-index: 40; }
.tour-bar__inner { background: var(--vt-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.tourctl { border-top: 5px solid var(--route); padding: 14px 18px 16px; }
.panel__foot .tourctl { border-top: 0; padding: 0; width: 100%; }
.tourctl__end { margin-left: auto; font-size: .85rem; letter-spacing: 0; text-transform: none; padding: 0; }
.tourctl__step { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .76rem; font-weight: var(--fw-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--route-ink); }
.tourctl__title { margin: 4px 0 0; font-weight: var(--fw-heavy); font-size: 1.1rem; }
.tourctl__text { margin: 4px 0 0; color: var(--ink-soft); font-size: .95rem; }
.tourctl__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 12px; }
@media (max-width: 640px) {
  .tour-bar { bottom: 8px; }
  .tourctl { padding: 10px 12px 12px; }
  .tourctl__title { font-size: 1rem; }
  .tourctl__text { font-size: .86rem; line-height: 1.45; }
  .tourctl__btns { flex-wrap: nowrap; margin-top: 8px; gap: 6px; }
  .tourctl__btns .btn { flex: 1 1 0; padding: 6px 8px; min-height: 44px; font-size: .86rem; }
  body.tour-on .site-foot { padding-bottom: 240px; }
}

/* ---------- Station panel (side drawer; bottom sheet on phones) ---------- */
.panel-backdrop { position: fixed; inset: 0; background: rgba(42, 44, 44, .45); z-index: 50; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--vt-white); z-index: 51; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); transform: translateX(24px); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.panel.is-open { transform: none; opacity: 1; }
body.panel-open { overflow: hidden; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px 22px; border-bottom: 1px solid var(--line); }
.panel__kind { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: var(--fw-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
/* Soft clinical-blue accent for a learning-point station (walkthrough 24 Oct 2026, section 8.4).
   Approved blues only (#37aeef / #396caf); a low-opacity wash of the same hue, not a new colour.
   Text stays charcoal/deep blue, so contrast is unchanged. */
.panel--soft-blue { border-top: 4px solid var(--vt-blue); }
.panel--soft-blue .panel__head { background: color-mix(in srgb, var(--vt-blue) 8%, var(--vt-white)); }
.panel--soft-blue .panel__kind { color: var(--vt-blue-mid); }
.panel__close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--vt-grey-100); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.panel__close:hover { background: var(--vt-grey-200); }
.panel__scroll { flex: 1; overflow-y: auto; padding: 20px 22px 26px; overscroll-behavior: contain; }
.panel__scroll h2 { font-size: 1.55rem; outline: none; }
.panel__summary { font-size: 1.05rem; color: var(--ink-soft); margin: 8px 0 14px; }
.panel__scroll > p { margin: 0 0 12px; }
.panel__h { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: var(--fw-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--vt-blue-deep); margin: 22px 0 10px; padding: 0; }
.panel__fig { margin: 0 0 14px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.panel__fig img { display: block; width: 100%; }
.panel__foot { border-top: 1px solid var(--line); padding: 12px 16px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--vt-white); }
@media (max-width: 640px) {
  .panel { top: auto; left: 0; width: 100vw; height: 90vh; height: 90dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; transform: translateY(32px); }
  .panel__scroll { padding: 16px 16px 22px; }
  .panel__foot .btn { flex: 1 1 auto; }
}

.synthetic { display: flex; gap: 10px; align-items: flex-start; background: var(--vt-grey-100); border: 1px dashed var(--vt-charcoal-500); border-radius: var(--radius-md); padding: 10px 12px; font-size: .92rem; margin: 0 0 14px; }
.synthetic .ico { margin-top: 2px; color: var(--vt-blue-deep); }
.competency { display: flex; gap: 12px; align-items: flex-start; background: var(--vt-white); border: 2px solid var(--vt-blue-deep); border-radius: var(--radius-md); padding: 12px 14px; margin: 14px 0; color: var(--vt-blue-deep); }
.competency p { margin: 0; color: var(--ink); font-weight: var(--fw-semibold); }
.review-note { display: block; font-size: .8rem; color: var(--vt-charcoal-500); font-style: italic; margin-top: 3px; }
.review-note--block { border-left: 3px solid var(--vt-status-amber); padding-left: 10px; margin-top: 18px; }

.badge { display: inline-block; font-size: .7rem; font-weight: var(--fw-bold); letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 1px 8px; border: 1.5px solid currentColor; margin-left: 8px; vertical-align: middle; white-space: nowrap; }
.badge--confirmed { color: var(--vt-status-green); }
.badge--live { color: var(--vt-blue-deep); }
.badge--listed { color: var(--vt-blue-mid); }
.badge--checked { color: var(--vt-charcoal-500); }
.badge--placeholder, .badge--held { color: var(--vt-status-amber); }

.res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.res-list__item { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.res-list__item a { font-weight: var(--fw-semibold); display: inline-flex; align-items: center; gap: 6px; }
.res-list__pending { font-weight: var(--fw-semibold); color: var(--ink-soft); }

.video-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.video--held { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 12px; border: 1px dashed var(--vt-grey-400); border-radius: var(--radius-sm); background: var(--vt-grey-50); }
.video--held small { display: block; color: var(--ink-soft); margin-top: 2px; }
.video__icon { color: var(--vt-status-amber); margin-top: 2px; }
.video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: var(--vt-charcoal-900); }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; width: 100%; border: 0; background: var(--vt-charcoal-900); color: var(--vt-white); font: inherit; font-weight: var(--fw-bold); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; padding: 16px; text-align: center; }
.video__play .ico { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--vt-blue-deep); }
.video__play:hover .ico { background: var(--vt-blue-mid); }
.video__play small { font-weight: var(--fw-medium); color: var(--vt-charcoal-300); }

.journey { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 0; }
.journey__stage { display: grid; grid-template-columns: auto 1fr; gap: 12px; position: relative; padding-bottom: 12px; }
.journey__stage:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--vt-blue-mid); }
.journey__num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--vt-blue-deep); color: var(--vt-white); font-weight: var(--fw-heavy); font-size: .9rem; }
.journey__stage strong { display: block; }
.journey__stage span span { color: var(--ink-soft); font-size: .93rem; }

.activity { margin: 18px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--vt-grey-50); }
.activity .panel__h { margin-top: 0; }
.activity label { display: block; font-weight: var(--fw-semibold); margin-bottom: 8px; }
.activity textarea { width: 100%; font: inherit; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 10px; background: var(--vt-white); color: var(--ink); resize: vertical; }
.activity textarea:focus { border-color: var(--vt-blue-deep); }
.activity small { display: block; margin-top: 6px; }
.activity p { margin: 0 0 10px; }
fieldset.checklist { min-width: 0; }
.checklist legend { float: left; width: 100%; }
.checklist__item { clear: both; display: flex !important; gap: 10px; align-items: flex-start; font-weight: var(--fw-medium) !important; padding: 6px 0; cursor: pointer; }
.checklist__item input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--vt-blue-deep); flex: none; }
/* AI Learning Guide slot (staging only). The widget keeps its own styles and labels;
   the hospital only removes the widget's outer card so it sits flat inside the panel. */
.guide-slot__staging { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--vt-blue-deep); border: 1px solid var(--vt-blue-deep); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--vt-white); }
.guide-slot__staging .ico { margin-top: 3px; }
.guide-slot__mount { outline: none; }
.guide-slot__mount.vtg { padding: 6px 0 0; box-shadow: none; background: transparent; border-radius: 0; }
.guide-slot__mount .vtg-title { font-size: 1.1rem; }
.guide-slot__mount .vtg-input { background: var(--vt-white); }
.tour-mini { display: flex; flex-wrap: wrap; gap: 8px; }
.tour-mini__btn { font: inherit; font-weight: var(--fw-semibold); display: inline-flex; align-items: center; gap: 6px; background: var(--vt-white); color: var(--route-ink); border: 2px solid var(--route); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 44px; }
.tour-mini__btn:hover { background: var(--vt-grey-100); }

.net { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.net__item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; color: inherit; }
.net__item:hover { border-color: var(--vt-blue-mid); background: var(--vt-grey-50); }
.net__item strong { display: block; }
.net__item span span { color: var(--ink-soft); font-size: .9rem; }
.net__icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--vt-blue-mid); color: var(--vt-blue-deep); }

/* Synthetic organisational dashboard (internal-operational density inside a public page) */
.dash { margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.dash__title { margin: 0; padding: 10px 12px; background: var(--vt-blue-mid); color: var(--vt-white); font-weight: var(--fw-bold); font-size: .92rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dash__title .synthetic-tag { background: var(--vt-white); }
.dash__tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.dash__tile { background: var(--vt-white); padding: 12px; display: flex; flex-direction: column; }
.dash__value { font-size: 1.6rem; font-weight: var(--fw-heavy); color: var(--vt-blue-deep); line-height: 1.1; }
.dash__label { font-weight: var(--fw-semibold); font-size: .88rem; }
.dash__tile small { color: var(--ink-soft); font-size: .78rem; }
.table-wrap { overflow-x: auto; }
.dash__table { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 460px; }
.dash__table th, .dash__table td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
.dash__table thead th { background: var(--vt-grey-50); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.meter { display: inline-block; width: 46px; height: 6px; border-radius: 3px; background: var(--vt-grey-200); margin-right: 6px; vertical-align: middle; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--vt-blue-mid); }
.status { display: inline-flex; align-items: center; gap: 4px; font-weight: var(--fw-bold); }
.status--on-track { color: var(--vt-status-green); }
.status--attention { color: var(--vt-status-amber); }
.status--waiting { color: var(--vt-status-grey); }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--vt-charcoal-900); color: var(--vt-white); padding: 12px 18px; border-radius: var(--radius-md); font-size: .95rem; z-index: 60; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Arrival hall, booths and greenery (original VeinTrain illustration) ---------- */
.sc-greens { fill: var(--vh-leaf); }
.sc-greens--deep { fill: var(--vh-leaf-deep); }
.sc-trunk { fill: var(--vt-charcoal-500); }
.arr-shadow { fill: var(--vt-charcoal-100); }
.arr-frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--vt-grey-50); box-shadow: var(--shadow-sm); aspect-ratio: 1000 / 560; }
.arr-svg { display: block; width: 100%; height: 100%; font-family: 'Figtree', var(--font-main); transform-origin: var(--ox, 50%) var(--oy, 60%); }
.arr-wall { fill: var(--vt-grey-50); }
.arr-glass { fill: var(--vt-white); stroke: var(--vt-charcoal-300); stroke-width: 4; }
.arr-mullion { stroke: var(--vt-charcoal-300); stroke-width: 3; fill: none; }
.arr-floor { fill: var(--vt-grey-100); }
.arr-floorline { stroke: var(--vt-grey-200); stroke-width: 2; fill: none; }
.arr-aisle { fill: var(--vt-white); }
.arr-banner { font-size: 22px; }
.arr-pod { stroke: var(--vt-grey-200); stroke-width: 2; }
.arr-booth { cursor: pointer; outline: none; }
.arr-booth .arr-pod, .arr-booth .sc-deep { transition: fill .2s, stroke .2s; }
.arr-booth:hover .arr-pod { stroke: var(--vt-blue-mid); stroke-width: 3; }
.arr-booth:hover .sc-deep, .arr-booth:focus-visible .sc-deep { fill: var(--vt-blue-mid); }
.arr-focus { fill: none; stroke: none; }
.arr-booth:focus-visible .arr-focus { stroke: var(--vt-blue); stroke-width: 4; }
.arr-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.arr-chip { display: flex; gap: 10px; align-items: center; min-height: 48px; padding: 10px 12px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; }
.arr-chip:hover { border-color: var(--vt-blue-mid); }
.arr-chip .ico { color: var(--vt-blue-deep); }
.arr-chip small { display: block; color: var(--ink-soft); font-size: .8rem; }
.arr-note { font-size: .88rem; margin: 10px 0 0; }
@media (max-width: 640px) {
  .arr-label, .arr-banner { display: none; } /* too small to read here; the list below names every area */
  .arr-frame { border-radius: var(--radius-md); }
}

/* Walk-in: the picture moves toward the chosen booth, then the area opens. */
.arr-frame.is-walking .arr-svg { transform: scale(2.6); opacity: .1; transition: transform .5s cubic-bezier(.5, 0, .9, .6), opacity .5s ease-in; }
.scene { animation: walkin .45s var(--ease) both; }
@keyframes walkin { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: none; } }

/* Calm mode: no movement at all. Also follows the device's reduced-motion setting by default. */
html[data-calm="1"] *, html[data-calm="1"] *::before, html[data-calm="1"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
