/* ==========================================================================
   Guidance Desk design system
   One accent (marigold) on a cool navy and white base. Light first, dark optional.
   The half-filled dial (30 minutes on a clock) is the recurring motif.
   Edit the colours in the two token blocks below; everything else follows.
   ========================================================================== */

:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #eaeff6;
  --ink: #0f1e36;
  --ink-2: #4a5870;
  --line: #dce2ec;
  --line-strong: #aab5c7;
  --accent: #ffb81c;
  --accent-ink: #0f1e36;
  --accent-soft: #fff3d1;
  --ring: #0f1e36;
  --band-bg: #0f1e36;
  --band-ink: #ffffff;
  --band-ink-2: #c3cee0;
  --ok: #05603a;
  --ok-bg: #dcf5e7;
  --bad: #b42318;
  --bad-bg: #fde8e6;
  --info-bg: #e3e9f4;
  --shadow: 0 1px 2px rgba(15, 30, 54, 0.06), 0 12px 32px rgba(15, 30, 54, 0.08);

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --radius: 16px;
  --radius-lg: 28px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1322;
    --surface: #111e33;
    --surface-2: #182943;
    --ink: #eaf0fa;
    --ink-2: #a9b7ce;
    --line: #24344f;
    --line-strong: #4a5d7c;
    --accent-soft: rgba(255, 184, 28, 0.14);
    --ring: #ffb81c;
    --band-bg: #16294a;
    --ok: #6ee7a7;
    --ok-bg: rgba(110, 231, 167, 0.12);
    --bad: #ff9a90;
    --bad-bg: rgba(255, 154, 144, 0.12);
    --info-bg: #1d3052;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1322;
  --surface: #111e33;
  --surface-2: #182943;
  --ink: #eaf0fa;
  --ink-2: #a9b7ce;
  --line: #24344f;
  --line-strong: #4a5d7c;
  --accent-soft: rgba(255, 184, 28, 0.14);
  --ring: #ffb81c;
  --band-bg: #16294a;
  --ok: #6ee7a7;
  --ok-bg: rgba(110, 231, 167, 0.12);
  --bad: #ff9a90;
  --bad-bg: rgba(255, 154, 144, 0.12);
  --info-bg: #1d3052;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 1.2rem + 5.6vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(1.6rem, 1rem + 2.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap.wide { max-width: 1320px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.fine { font-size: 0.9rem; color: var(--ink-2); max-width: 60ch; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 0.5rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; margin-right: auto; }
.logo { width: 30px; height: 30px; }
.logo-ring { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.logo-fill { fill: var(--accent); }
.logo-hand { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a:not(.btn) { padding: 0.5rem 0.8rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.97rem; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"]:not(.btn) { color: var(--ink); background: var(--accent-soft); }
.nav .btn { margin-left: 0.5rem; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--ink); border-radius: 50%; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .menu-btn { display: inline-grid; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.75rem var(--gutter) 1.25rem; gap: 0.25rem; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 0.8rem 0.5rem; border-radius: 10px; }
  .nav .btn { margin: 0.5rem 0 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-sm { min-height: 40px; padding: 0.45rem 1.1rem; font-size: 0.95rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- the dial motif ---------- */
.dial { width: 100%; height: auto; }
.dial-face { fill: var(--surface); }
.dial-ring { fill: none; stroke: var(--ink); stroke-width: 3; }
.dial-tick { stroke: var(--line-strong); stroke-width: 2.5; stroke-linecap: round; }
.dial-tick.major { stroke: var(--ink); stroke-width: 3.5; }
.dial-sweep { fill: none; stroke: var(--accent); stroke-width: 92; stroke-dasharray: 144.5 289.03; }
.dial-hand { stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; }
.dial-hub { fill: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .dial-sweep { animation: sweep 1.4s cubic-bezier(0.22, 0.8, 0.3, 1) 0.15s both; }
  .dial-hand-anim { transform-origin: 100px 100px; animation: hand 1.4s cubic-bezier(0.22, 0.8, 0.3, 1) 0.15s both; }
}
@keyframes sweep { from { stroke-dasharray: 0 289.03; } to { stroke-dasharray: 144.5 289.03; } }
@keyframes hand { from { transform: rotate(-180deg); } to { transform: rotate(0deg); } }

.step-dial { display: block; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); position: relative; flex: none; }
.step-dial::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--accent) 0 var(--deg, 0deg), transparent 0); }
.step-dial.p0 { --deg: 0deg; }
.step-dial.p1 { --deg: 120deg; }
.step-dial.p2 { --deg: 240deg; }
.step-dial.p3 { --deg: 360deg; }
.step-dial.half { --deg: 180deg; }

/* ---------- home: hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--ink-2); max-width: 46ch; margin: 1.5rem 0 2rem; }
.hero .assure { margin: 1.25rem 0 0; font-size: 0.95rem; color: var(--ink-2); max-width: 46ch; }
.hero-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2rem); }
.hero-dial { display: grid; grid-template-columns: 130px 1fr; gap: 1.25rem; align-items: center; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.hero-dial p { margin: 0; }
.hero-dial .big { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; line-height: 1.1; }
.next-title { font-weight: 700; margin: 0 0 0.75rem; }
.next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.next-list a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; }
.next-list a:hover { border-color: var(--ink); background: var(--accent-soft); }
.next-list .when { color: var(--ink-2); font-weight: 500; }
.skeleton { height: 46px; border-radius: 12px; background: var(--surface-2); }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: pulse 1.4s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: 0.5; } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { max-width: 14ch; } }

/* ---------- home: sections ---------- */
.section { padding-block: clamp(2.75rem, 6vw, 5rem); }
.section + .section { padding-top: 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head p { color: var(--ink-2); margin: 0.75rem 0 0; }

.audiences { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 5vw, 4rem); }
.audience { padding: 1.25rem 0 1.5rem; border-top: 2px solid var(--ink); }
.audience p { margin: 0.4rem 0 0; color: var(--ink-2); max-width: 44ch; }
@media (max-width: 640px) { .audiences { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.step h3 { margin: 1rem 0 0.4rem; }
.step p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 1rem; } .step h3 { margin: 0 0 0.3rem; } .step p { grid-column: 2; } }

.tiles { list-style: none; margin: 0 0 3rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 0.35rem; height: 100%; padding: 1.4rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.tile:hover { border-color: var(--ink); background: var(--accent-soft); }
.tile-code { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.04em; line-height: 1; }
.tile-name { font-weight: 700; }
.tile-sum { color: var(--ink-2); font-size: 0.95rem; }

.host { display: grid; grid-template-columns: 72px 1fr; gap: 1.25rem; align-items: start; max-width: 44rem; }
.host-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.host h3 { font-size: 1.3rem; }
.host-title { color: var(--ink-2); margin: 0.15rem 0 0.75rem; font-weight: 600; }
.host p:last-child { margin-bottom: 0; }

.quotes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.quote { margin: 0; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.quote blockquote { margin: 0 0 1rem; font-size: 1.1rem; }
.quote figcaption { color: var(--ink-2); font-weight: 600; font-size: 0.95rem; }
.empty-quotes { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.5rem 1.75rem; background: var(--surface); border: 1.5px dashed var(--line-strong); border-radius: var(--radius); }
.empty-quotes p { margin: 0; max-width: 46ch; }

.faq { max-width: 48rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 700; font-size: 1.1rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 0.4rem; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { padding: 0 0 1.25rem; color: var(--ink-2); max-width: 60ch; }
.faq-a p:last-child { margin-bottom: 0; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; background: var(--band-bg); color: var(--band-ink); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 3rem); margin-block: 3rem 2rem; }
.cta-band h2 { font-size: clamp(1.5rem, 1rem + 2vw, 2.1rem); }
.cta-band p { margin: 0.5rem 0 0; color: var(--band-ink-2); max-width: 44ch; }
.cta-section { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.cta-section .cta-band { margin-block: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 2.5rem; margin-top: 2rem; color: var(--ink-2); font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot-brand { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.1rem; margin: 0 0 0.4rem; }
.foot-note { margin: 0; max-width: 34ch; }
.foot-h { font-size: 0.95rem; color: var(--ink); margin: 0 0 0.6rem; letter-spacing: 0; }
.foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.foot-list a { text-decoration: none; }
.foot-list a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal { padding-block: 2rem 2.5rem; font-size: 0.875rem; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- inner pages ---------- */
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 2rem; max-width: 46rem; }
.page-head h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem); }
.lede { font-size: 1.2rem; color: var(--ink-2); margin: 1rem 0 0; }
.crumbs { padding-top: 1.5rem; font-size: 0.92rem; color: var(--ink-2); }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }

/* roadmap */
.year-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.year-nav a { padding: 0.45rem 1rem; border: 1.5px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.year-nav a:hover { border-color: var(--ink); background: var(--accent-soft); }
.year { padding-block: 2rem; border-top: 2px solid var(--ink); }
.year-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.25rem; margin-bottom: 1.5rem; }
.year-no { font-weight: 700; padding: 0.2rem 0.8rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.95rem; }
.year-grid { display: grid; gap: 1.75rem 2rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.year-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.year-grid h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.year-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.year-grid li { position: relative; padding-left: 1.1rem; color: var(--ink-2); font-size: 0.97rem; line-height: 1.5; }
.year-grid li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5rem; height: 2px; background: var(--ink); }
.detail-list li { display: grid; gap: 0.15rem; }
.detail-list strong { color: var(--ink); }
@media (max-width: 1000px) { .year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .year-grid, .year-grid.two { grid-template-columns: 1fr; } }

/* prose (privacy) */
.prose { max-width: 44rem; padding-bottom: 3rem; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink-2); font-weight: 700; }

/* ---------- forms ---------- */
.field { display: grid; gap: 0.4rem; margin-bottom: 1.25rem; }
.field > label, .field > legend, legend.label { font-weight: 700; font-size: 0.98rem; }
.hint { color: var(--ink-2); font-size: 0.9rem; margin: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.9rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 12px;
}
textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ring); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: 0.92rem; font-weight: 600; margin: 0; }
.alert { padding: 0.9rem 1.1rem; border-radius: 12px; font-weight: 600; margin-bottom: 1.25rem; }
.alert.bad { background: var(--bad-bg); color: var(--bad); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.info { background: var(--info-bg); }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills label { padding: 0.6rem 1.1rem; border: 1.5px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-weight: 600; background: var(--surface); min-height: 44px; display: inline-flex; align-items: center; }
.pills input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pills input:focus-visible + label { outline: 3px solid var(--ring); outline-offset: 2px; }
.field > label.check { font-weight: 500; }
.check { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.75rem; align-items: start; font-size: 0.97rem; }
.check input { width: 1.4rem; height: 1.4rem; margin: 0.15rem 0 0; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.counter { text-align: right; font-size: 0.85rem; color: var(--ink-2); }

/* ---------- booking ---------- */
.book-head { padding-block: clamp(1.75rem, 4vw, 2.75rem) 1.5rem; }
.book-head h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3rem); }
.progress { list-style: none; display: flex; gap: 0; margin: 1.5rem 0 0; padding: 0; max-width: 34rem; }
.progress li { flex: 1; display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.95rem; color: var(--ink-2); position: relative; }
.progress li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--line-strong); margin-right: 0.6rem; }
.progress .step-dial { width: 28px; height: 28px; border-width: 2px; }
.progress li[aria-current="step"] { color: var(--ink); }
.progress .label { white-space: nowrap; }
@media (max-width: 520px) { .progress li:not([aria-current="step"]) .label { display: none; } }
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-bottom: 4rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.panel h2 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.panel > .hint { margin-bottom: 1.25rem; }
.summary { position: sticky; top: 5.5rem; }
.summary h2 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.summary dl, .facts { margin: 0; display: grid; gap: 0.75rem; }
.summary dt, .facts dt { font-size: 0.85rem; color: var(--ink-2); font-weight: 600; }
.summary dd, .facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 900px) { .book-layout { grid-template-columns: 1fr; } .summary { display: none; } }

.tz-switch { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 3px; margin-bottom: 1rem; }
.tz-switch button { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 0.92rem; padding: 0.4rem 0.9rem; border-radius: 999px; cursor: pointer; color: var(--ink-2); min-height: 36px; }
.tz-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 2rem; }
@media (max-width: 640px) { .picker { grid-template-columns: 1fr; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.cal-title { font-weight: 800; font-family: var(--font-display); font-size: 1.1rem; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.cal-nav:hover:not([disabled]) { border-color: var(--ink); }
.cal-nav[disabled] { opacity: 0.35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--ink-2); padding: 0.4rem 0; }
.cal-day { aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 50%; background: transparent; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; display: grid; place-items: center; position: relative; }
.cal-day[disabled] { color: var(--line-strong); cursor: default; font-weight: 500; }
.cal-day.has-slots { background: var(--accent-soft); }
.cal-day.has-slots:hover { outline: 2px solid var(--ink); }
.cal-day[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); outline: 2px solid var(--ink); }
.cal-day.today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.times-title { font-weight: 800; font-family: var(--font-display); margin: 0 0 0.75rem; min-height: 1.6rem; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 0.5rem; }
.time-btn { min-height: 46px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.time-btn:hover { border-color: var(--ink); }
.time-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty { color: var(--ink-2); padding: 1rem 0; }
.step-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; margin-top: 1.5rem; }
.review { display: grid; gap: 1rem; margin: 0 0 1.5rem; }
.review div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.review dt { color: var(--ink-2); font-weight: 600; }
.review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 520px) { .review div { grid-template-columns: 1fr; gap: 0.2rem; } }
.local-time { display: block; font-weight: 500; color: var(--ink-2); font-size: 0.92rem; }

/* booking status page */
.status { max-width: 44rem; margin-inline: auto; padding-block: clamp(2rem, 5vw, 3.5rem) 4rem; }
.status-top { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.status-top .step-dial { width: 64px; height: 64px; border-width: 3px; }
.status h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.6rem); }
.facts-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.facts dd.big { font-size: 1.35rem; font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 800; }
dialog { border: 0; border-radius: var(--radius-lg); padding: 1.75rem; max-width: min(32rem, calc(100vw - 2rem)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(10, 19, 34, 0.55); }
dialog h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.note-box { background: var(--accent-soft); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-size: 0.97rem; }
.note-box p:last-child { margin: 0; }

/* ---------- admin ---------- */
.admin-shell { min-height: 100vh; }
.admin-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-top .bar { min-height: 3.5rem; }
.admin-user { display: flex; align-items: center; gap: 0.75rem; font-size: 0.92rem; color: var(--ink-2); }
.tabs { display: flex; gap: 0.25rem; overflow-x: auto; padding: 0.75rem 0; }
.tabs button { border: 0; background: transparent; font: inherit; font-weight: 700; padding: 0.55rem 1rem; border-radius: 999px; cursor: pointer; color: var(--ink-2); white-space: nowrap; min-height: 40px; }
.tabs button:hover { background: var(--surface-2); color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.admin-main { padding-block: 1.5rem 4rem; }
.admin-main h1 { font-size: 1.8rem; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.auth-card { max-width: 26rem; margin: clamp(2rem, 8vh, 6rem) auto; }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 0.4rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; margin-bottom: 1rem; }
.toolbar .grow { flex: 1 1 14rem; }
.toolbar label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--ink-2); margin-bottom: 0.2rem; }
.toolbar select, .toolbar input { min-height: 42px; padding-block: 0.4rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.data th { text-align: left; padding: 0.75rem 1rem; font-size: 0.82rem; color: var(--ink-2); border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
table.data td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--accent-soft); }
table.data .link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; text-align: left; }
.cell-sub { display: block; color: var(--ink-2); font-size: 0.85rem; }
.topic-cell { max-width: 22rem; }
.badge { display: inline-block; padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.82rem; font-weight: 700; white-space: nowrap; background: var(--info-bg); }
.badge.completed { background: var(--ok-bg); color: var(--ok); }
.badge.no_show { background: var(--bad-bg); color: var(--bad); }
.badge.follow_up { background: var(--accent-soft); }
.badge.cancelled { background: var(--surface-2); color: var(--ink-2); text-decoration: line-through; }
.badge.super_admin { background: var(--ink); color: var(--bg); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; color: var(--ink-2); font-size: 0.92rem; }
.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(34rem, 100vw); max-width: 100vw; border-radius: var(--radius-lg) 0 0 var(--radius-lg); padding: 0; overflow: auto; }
.drawer-in { padding: 1.5rem; }
.drawer-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; margin-bottom: 1rem; }
.drawer h2 { font-size: 1.4rem; margin: 0; }
.drawer h3 { margin: 1.5rem 0 0.6rem; font-size: 1.05rem; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.mini-list li { padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 12px; font-size: 0.95rem; }
.mini-list .meta { color: var(--ink-2); font-size: 0.82rem; display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.25rem; }
.mini-list p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.inline-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1rem; }
@media (max-width: 520px) { .inline-grid { grid-template-columns: 1fr; } }
.hours-row { display: grid; grid-template-columns: 3.5rem 1fr; gap: 0.75rem; align-items: start; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.hours-row .day { font-weight: 700; padding-top: 0.6rem; }
.windows { display: grid; gap: 0.4rem; }
.window { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.window input { width: 7.5rem; }
.linklike { background: none; border: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; padding: 0.4rem 0; font-weight: 600; text-align: left; }
.card-stack { display: grid; gap: 1.5rem; max-width: 52rem; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 600; z-index: 200; max-width: calc(100vw - 2rem); box-shadow: var(--shadow); }
.toast.bad { background: var(--bad); color: #fff; }

/* ---------- motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .year-nav, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .year { break-inside: avoid; }
}
