/* Site-specific layer for visitastana.com. Loads after variables, base, components and sections.
   It re-points the cloned template to the Astana tokens: Coral call-to-action with navy text,
   always-dark surfaces, and glass bars that follow the light/dark theme. */

/* ===== Call to action: Coral fill, Night Navy text (never white on coral) ===== */
#cookieAccept,
.stay-cta-bar-btn,
.btn-primary,
.back-to-top:focus-visible,
.cf-submit,
.psa-cta .btn-primary,
.psa-panel .btn-primary,
.psa-panel input[type="file"].psa-input::-webkit-file-upload-button,
.moments-badge,
.moments-invite-card .btn-primary {
  background: var(--cta);
  color: var(--on-cta);
}

#cookieAccept:focus-visible,
#cookieAccept:hover,
.stay-cta-bar-btn:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible,
.cf-submit:hover,
.psa-panel .btn-primary:hover,
.psa-panel input[type="file"].psa-input::-webkit-file-upload-button:hover {
  background: var(--cta-hover);
  color: var(--on-cta);
}

/* ===== Always-dark surfaces ===== */
.skip-link,
.cookie-bar,
.stay-cta-bar,
.back-to-top,
.site-footer,
.btn-outline:focus-visible {
  background: var(--deep);
  color: var(--on-deep);
}

.cookie-bar { color: rgba(255, 255, 255, 0.92); }
.site-footer a { color: var(--on-deep); }

/* ===== Surfaces that follow the theme ===== */
.cf-textarea,
.cf-file-label,
.btn-outline-light:focus-visible {
  background: var(--field);
  color: var(--ink);
}

.site-header { background: var(--glass-soft); }

@media (max-width: 1024px) {
  .vd-dock { background: var(--glass); }
  .vd-pill { background: var(--glass); color: var(--ink); }
  .vd-dock__item--active,
  .vd-dock__item:hover,
  .vd-dock__item:focus-visible { background: var(--hover-tint); }

  /* Dock fix (fase 5): six items must fit on 320 px; let items size to their label */
  .vd-dock__item { flex: 1 1 auto; }
  /* The Explore toggle sits in a .nav-dropdown wrapper; components.css gives both flex: 1 1 0 at a higher
     specificity (.vd-dock .nav-dropdown-toggle), which cut "EXPLORE" off at 320/390 px (Task 10 QA). */
  .vd-dock > .nav-dropdown,
  .vd-dock .nav-dropdown-toggle.vd-dock__item { flex: 1 1 auto; }
}

@media (max-width: 380px) {
  .vd-dock__item span { font-size: 8.5px; letter-spacing: 0; }
  .vd-dock__item,
  .vd-dock .nav-dropdown-toggle.vd-dock__item { padding: 5px 1px; }
}

/* ===== Voute ticker (voutedigital.com/assets/voute-ticker.js 1.0.5) =====
   The ticker sets body { padding-bottom } unconditionally, also when it is collapsed on mobile
   (voute-ticker-default-state.js removes .vgt-active). Reserve that space only while the bar is open.
   Its region select is 11 px: iOS zooms on focus below 16 px. */
body:not(.vgt-active) { padding-bottom: 0 !important; }
.vgt-controls { padding: 6px 10px !important; gap: 8px !important; }
/* 16 px at every width: an iPad in landscape reports 1366 px and zooms on focus too (responsive QA, Task 10). */
#voute-global-ticker select { font-size: 16px !important; }
/* Region labels ship as rgba(201,169,97,0.9): 4.22:1 on the lightest ticker gradient stop #2A3F52. #D9BE7E is
   6.02:1 there and 7.99:1 on the darkest stop #1A2B3C (WCAG formula, Task 10). */
.vgt-item-region { color: #D9BE7E !important; }
/* Phase 5 override: the ticker floats its globe button 80 px up (written for a bottom nav), where it covered
   links at 320-768 px. Drop it to 16 px and give the footer room below its last link, so at the end of the
   page the button rests on empty footer padding instead of on a link. */
@media (max-width: 1024px) {
  #vgt-toggle-btn { bottom: 16px !important; }
  /* Shown only at the end of the page (voute-ticker-default-state.js sets .va-at-footer) or while the bar is open */
  body:not(.va-at-footer):not(.vgt-active) #vgt-toggle-btn { visibility: hidden !important; pointer-events: none !important; }
  .site-footer { padding-bottom: 96px; }
}

/* ===== Footer meta: vertical list, one item per line ===== */
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
}
.footer-legal-ids { color: rgba(255, 255, 255, 0.7); font-size: 11px; }
.page-hero { background-color: var(--deep); }

/* ===== Page scaffolding for placeholder and content pages ===== */
.page-body { padding: clamp(32px, 6vh, 72px) clamp(18px, 6vw, 80px); }
.page-body > * { max-width: none; }

/* ===== Related websites (Voute sister sites) ===== */
.related-sites { padding: 40px clamp(18px, 6vw, 80px); border-top: 1px solid var(--line); }
.related-sites ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.related-sites a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-xl); color: var(--accent-600); background: var(--field); text-decoration: none; }
.related-sites a:hover, .related-sites a:focus-visible { border-color: var(--accent-600); }

/* ===== Sources block: last element in <main> ===== */
.sources { padding: 32px clamp(18px, 6vw, 80px) 40px; border-top: 1px solid var(--line); text-align: center; font-size: 0.875rem; color: var(--stone); }
.sources h2 { font-size: 1.125rem; color: var(--ink2); }
.sources ol { display: inline-block; text-align: left; margin: 12px auto; padding-left: 1.4em; }
.sources a { color: var(--accent-600); }
.sources .sources-updated { margin: 8px 0 0; }
sup.fn a { color: var(--accent-600); text-decoration: none; }
/* Directly adjacent markers ("12") read as twelve and their links touched (responsive QA "covered" at 320-390 px). */
/* .fn-next is set by build.py only on a marker directly after another marker ("+" would also match markers with
   text between them, because sibling combinators ignore text nodes). */
sup.fn-next { margin-left: 3px; }
sup.fn-next::before { content: ","; margin-right: 0.15em; color: var(--stone); }

/* ===== Images are never cropped ===== */
img { object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ===== Article prose (rendered from Markdown) ===== */
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose a { color: var(--accent-600); }
.table-wrap { overflow-x: auto; margin: 1.2em 0; }
.prose table { border-collapse: collapse; width: 100%; min-width: 34em; font-size: 0.95em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--field); color: var(--ink); }
.home-moments-links a { color: var(--accent-600); }
.home-intro a { color: var(--accent-600); }

/* ===== Hero media (Task 4): illustration or Commons photo below the hero text, never cropped ===== */
.page-hero--media { display: block; min-height: 0; }
.page-hero--media::after { display: none; }
.page-hero--media .page-hero-wrap { padding-bottom: clamp(20px, 4vh, 40px); }
.hero-figure { margin: clamp(16px, 3vw, 28px) 0 0; }
.hero-figure img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: var(--radius-xl); }
.hero-photo img { width: auto; max-width: 100%; max-height: min(68vh, 760px); margin: 0 auto; }
/* Hero sits on --deep (#1B263B light, #0A1019 dark): caption #C9D2DF and links #7FDCEC are 4.5:1 or more on both (tests/test_build.py) */
.page-hero .hero-figure figcaption { margin-top: 8px; font-size: 0.8125rem; line-height: 1.45; color: #C9D2DF; text-align: right; }
.page-hero .hero-figure figcaption a { color: #7FDCEC; text-decoration: underline; white-space: nowrap; }
.page-hero .hero-photo figcaption { text-align: center; }

/* ===== Section strips under every content H2 (decorative, alt="") ===== */
.section-art { margin: 14px 0 10px; }
.section-art img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: var(--radius-xl); background: #1B263B; }

/* ===== Contact page (Task 5): form, plan box and PakkettenCentraal packages =====
   Full width (owner rule): no max-width on the form wrapper, its intro or the loader's .pk-wrap. Every surface
   follows the theme tokens, so the form reads in light and dark. */
.cf-wrap, .cf-sub, #pk-root .pk-wrap, #pk-root .pk-guarantee { max-width: none; }
.cf-wrap { scroll-margin-top: calc(var(--nav-height) + 16px); }
.cf-grid { display: grid; gap: 0 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cf-input,
.cf-textarea { background: var(--field); color: var(--ink); font-size: 16px; }
.cf-input::placeholder,
.cf-textarea::placeholder { color: var(--stone); }
.cf-input:focus,
.cf-textarea:focus { border-color: var(--accent-600); box-shadow: 0 0 0 3px rgba(0, 175, 202, 0.35); }
.cf-short { max-width: 140px; }
.cf-plan-box { display: block; background: var(--field); border-left: 4px solid var(--mist); }
.cf-plan-box[hidden], .cf-plan-section[hidden], .cf-form-group[hidden] { display: none; }
.cf-plan-list--yes li, .cf-plan-list--no li { color: var(--ink); }
.cf-plan-list--yes li::before { content: "+"; font-weight: 700; color: var(--accent-600); }
.cf-plan-list--no li::before { content: "\2013"; font-weight: 700; color: var(--stone); }
.cf-turnstile { min-height: 65px; margin: 4px 0 18px; }
.cf-turnstile.is-compact { min-height: 140px; }
.cf-disclosure { font-size: 14px; color: var(--stone); }
.cf-disclosure a { color: var(--accent-600); }
.cf-status { margin: 14px 0 0; font-size: 15px; text-align: center; min-height: 1.5em; }
.cf-status.is-ok { color: var(--accent-600); }
.cf-status.is-error { color: #A4231B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hp input { font-size: 16px; }
@media (prefers-color-scheme: dark) { .cf-status.is-error { color: #FF9B93; } }
/* The section H2 above #pk-root carries the packages heading (with its strip); the loader's own copy is hidden. */
#pk-root .pk-heading { display: none; }
#pk-root { border-radius: var(--radius-xl); padding: clamp(32px, 6vw, 64px) clamp(16px, 4vw, 40px); }

/* ===== Astana Moments (Task 6): gallery and share form. Own class names (va-moments-hero, moment-gallery), so the
   template's .moments-hero and .moments-grid rules in sections.css (light gradient hero, max-width, CSS columns) do
   not apply. Photos never cropped. ===== */
.va-moments-hero .page-hero-intro { max-width: none; }
.moments-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; font-family: var(--font-sans); }
.moments-gallery-section, #share { scroll-margin-top: calc(var(--nav-height) + 16px); }
.moment-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; margin-top: 20px; }
.moment-gallery:empty { display: none; }
.moment { margin: 0; background: var(--field); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 10px; align-self: start; }
.moment-frame { background: var(--paper); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.moment img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; border-radius: var(--radius-md); }
.moment figcaption { display: flex; flex-direction: column; gap: 4px; padding: 10px 4px 2px; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.moment-credit { font-size: 13px; color: var(--stone); }
.moments-rules { background: var(--field); border: 1px solid var(--line); border-left: 4px solid var(--cta); border-radius: var(--radius-md); padding: 16px 20px; margin: 4px 0 22px; }
.moments-rules h3 { font-size: 18px; margin: 0 0 8px; color: var(--ink); }
.moments-rules ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; color: var(--ink); }
.cf-checks { display: grid; gap: 12px; margin: 0 0 22px; }
.cf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink); cursor: pointer; }
/* 24 px: WCAG 2.2 AA 2.5.8 target size (22 px failed responsive QA at 390-768 px, Task 10) */
.cf-check input { flex: 0 0 auto; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--accent-600); }
.cf-check a { color: var(--accent-600); }
.cf-file { padding: 10px 12px; }

/* ===== Events & News (Task 7): headline list. Text only, no images; plain tokens so light and dark both read. ===== */
.news-section { scroll-margin-top: calc(var(--nav-height) + 16px); }
.news-status { margin: 8px 0 16px; color: var(--stone); font-size: 15px; }
.news-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.news-list:empty { display: none; }
.news-item { background: var(--field); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 14px 18px; }
.news-title { display: inline-block; color: var(--accent-600); font-size: 1.0625rem; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; min-height: 24px; }
.news-title:hover, .news-title:focus-visible { color: var(--accent-700); }
.news-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; font-size: 14px; color: var(--stone); }
.news-publisher { font-weight: 600; color: var(--ink2); }

/* ===== Dashboards and 3D map (Task 8). Text uses the tested tokens (ink, ink2, stone, accent-600 on paper/field);
   graphics (bars, pins) meet 3:1. Live cards reserve their height so nothing shifts when data arrives. ===== */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.home-dash, .home-map { scroll-margin-top: calc(var(--nav-height) + 16px); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; margin-top: 18px; align-items: start; }
.dash-card { background: var(--field); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 18px 20px; color: var(--ink); min-width: 0; }
.dash-title { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.3; margin: 0 0 10px; color: var(--ink); text-wrap: balance; }
.dash-lede { margin: 0 0 12px; font-size: 15px; color: var(--ink2); text-wrap: pretty; }
.dash-note { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--stone); text-wrap: pretty; }
.dash-note a, .dash-card a, .map-credit a, .map-legend a { color: var(--accent-600); }
.dash-status { margin: 0; color: var(--stone); font-size: 15px; }
.dash-big { font-family: var(--font-serif); font-size: 2.25rem; line-height: 1.1; color: var(--ink); }
.dash-inline { margin: 28px 0; }
.dash-inline .dash-card { max-width: none; }
.wx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wx-icon { width: 28px; height: 28px; flex: 0 0 auto; fill: none; stroke: var(--ink2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dash-wx-now { min-height: 52px; display: flex; align-items: center; }
.dash-wx-current { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash-wx-current .wx-icon { width: 40px; height: 40px; }
.dash-wx-words { color: var(--ink2); font-size: 15px; }
.dash-wx-days { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; min-height: calc(7 * 38px); }
.dash-wx-day { display: grid; grid-template-columns: 6.5em 28px 1fr auto auto; gap: 8px; align-items: center; min-height: 36px; font-size: 15px; border-top: 1px solid var(--line); padding: 2px 0; }
.dash-wx-date { color: var(--ink); font-weight: 500; }
.dash-wx-sym { color: var(--ink2); overflow-wrap: anywhere; }
.dash-wx-temp { color: var(--ink); white-space: nowrap; }
.dash-wx-rain { color: var(--stone); white-space: nowrap; min-width: 4.2em; text-align: right; }
.clim-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.clim-row { display: grid; grid-template-columns: 2.6em minmax(60px, 1fr) auto 4.6em; gap: 8px; align-items: center; font-size: 14px; min-height: 30px; padding: 0 6px; border-radius: var(--radius-sm); }
.clim-mild { background: var(--hover-tint); }
.clim-m { font-weight: 600; color: var(--ink); }
.clim-v { color: var(--ink); white-space: nowrap; }
.clim-p { color: var(--stone); white-space: nowrap; text-align: right; }
.clim-bar { width: 100%; height: 14px; display: block; }
.clim-range { fill: var(--accent-500); }
.clim-mild .clim-range { fill: var(--cta); }
.clim-zero { stroke: var(--stone); stroke-width: 0.4; vector-effect: non-scaling-stroke; }
.dash-clock-time { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.dash-clock-zone { color: var(--ink2); font-size: 15px; }
.dash-clock .dash-note { margin-top: 4px; min-height: 1.5em; }
.dash-fx { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.dash-fx-row { display: grid; gap: 4px; margin-bottom: 10px; }
.dash-fx-label { font-size: 14px; font-weight: 500; color: var(--ink); }
.dash-fx-input { width: 100%; font-size: 16px; }
.dash-fx [data-fx="status"] { min-height: 3em; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--ink); }
.dash-table caption { text-align: left; font-size: 14px; color: var(--ink2); padding-bottom: 8px; caption-side: top; }
.dash-table th, .dash-table td { padding: 7px 6px; border-top: 1px solid var(--line); text-align: right; vertical-align: top; }
.dash-table thead th { font-weight: 600; color: var(--ink2); hyphens: auto; }
.dash-table tbody th { text-align: left; font-weight: 500; }

.map3d { position: relative; margin-top: 16px; }
.map3d-stage { position: relative; aspect-ratio: 1035 / 885; width: 100%; max-height: 78vh; background: var(--field); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; }
@media (min-width: 768px) { .map3d-stage { aspect-ratio: 16 / 10; } }
.map3d-stage:focus-visible { outline: 3px solid var(--accent-600); outline-offset: 2px; }
.map-svg { display: block; width: 100%; height: 100%; }
.map3d.is-live .map-svg { display: none; }
.map-ground { fill: var(--field); }
.map-parks path { fill: #CFE2CC; }
.map-water path { fill: #7CCFE0; }
.map-blds path { fill: var(--line); }
.map-pin .map-pin-c { fill: var(--cta); stroke: var(--field); stroke-width: 3; }
.map-leaders { pointer-events: none; }
.map-leader { stroke: var(--ink); stroke-width: 2.5; }
.map-dot { fill: var(--ink); stroke: var(--field); stroke-width: 2; }
.map-pin text { fill: var(--on-cta); font: 600 36px var(--font-sans); text-anchor: middle; pointer-events: none; }
.map-pin:focus-visible .map-pin-c, .map-pin:hover .map-pin-c { stroke: var(--ink); stroke-width: 4; }
.map3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.map3d-canvas:active { cursor: grabbing; }
.map3d-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.map3d-label { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; margin: -34px 0 0 -14px; padding: 3px 8px 3px 3px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink); font: 500 13px var(--font-sans); text-decoration: none; white-space: nowrap; pointer-events: auto; will-change: transform; }
.map3d-label:hover, .map3d-label:focus-visible { background: var(--field); outline: 2px solid var(--accent-600); z-index: 2; }
.map3d-num { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; background: var(--cta); color: var(--on-cta); font-weight: 600; font-size: 12px; }
.map3d-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.map3d-btn { min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--field); color: var(--ink); font: 500 15px var(--font-sans); cursor: pointer; }
.map3d-btn:hover, .map3d-btn:focus-visible { border-color: var(--accent-600); outline: none; box-shadow: 0 0 0 2px var(--accent-600); }
.map3d-hint { margin: 8px 0 0; font-size: 14px; color: var(--stone); }
.map3d-hint.is-on { color: var(--ink); font-weight: 500; }
.map-credit { margin: 10px 0 0; font-size: 14px; color: var(--stone); }
.map-legend { margin: 14px 0 0; padding-left: 1.6em; columns: 2 220px; column-gap: 28px; font-size: 15px; color: var(--ink); }
.map-legend li { break-inside: avoid; padding: 3px 0; }
.map-legend li::marker { font-weight: 600; color: var(--ink2); }
@media (prefers-color-scheme: dark) {
  .map-parks path { fill: #1F3B35; }
  .map-water path { fill: #0F6B80; }
}
@media (max-width: 600px) {
  .dash-wx-day { grid-template-columns: 5.6em 24px 1fr auto; }
  .dash-wx-rain { grid-column: 3 / -1; text-align: left; font-size: 13px; }
  .dash-table { hyphens: auto; }
}
/* 3D labels: the number badge always, the name on hover or keyboard focus (the numbered list below names them all) */
.map3d-label .map3d-name { display: none; }
.map3d-label { padding: 3px; }
.map3d-label:hover, .map3d-label:focus-visible { padding-right: 9px; }
.map3d-label:hover .map3d-name, .map3d-label:focus-visible .map3d-name { display: inline; }
.map3d-tools[hidden], .map3d-hint[hidden], .map3d-labels[hidden], .map3d-canvas[hidden] { display: none; }
@media (min-width: 1100px) { .home-dash .dash-distance { grid-column: 1 / -1; } }

/* ===== Expedia booking button in the hero (home, hotels), disclosure right under it ===== */
.booking-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 18px; font-family: var(--font-sans); }
.booking-note { font-size: 13px; line-height: 1.4; font-style: normal; }
/* On the homepage the button sits at the top of the intro: .home-intro a (accent colour) would recolour its text */
.home-intro .booking-cta { margin: 0 0 clamp(20px, 3vw, 32px); }
.home-intro .booking-cta a.btn { color: var(--on-cta); text-decoration: none; }
.home-intro .hero-credit { margin: 0 0 clamp(20px, 3vw, 32px); font-family: var(--font-sans); font-size: 13px; line-height: 1.45; }
