/* BOOKDESK public booking pages. Dark by default, and only dark: there is no light
   variant and no toggle.

   The palette is the company palette, lifted straight off the main site so a guest
   who came from novanode.eu recognises where they are:

     styles.css          --primary #1ebbd7   --bg-dark #0a0a0f   --border #27272a
     anno-temp/styles.css --anno-elevated #121218  --anno-hairline #2a2a32  radius 5px

   The accent arrives per brand from PHP (bookdesk_guest_accent → --accent-key), so
   NOVANODE and STRATONEXUS can diverge without touching this file.

   House rules for anyone editing this file:
     - the site's flat surfaces and 5px corners. The marketing pages use gradients and
       glow on their buttons; a booking form is not a landing page, so here the accent
       is flat and used sparingly
     - hairline borders, no shadows, no blur
     - tabular numerals in the calendar and the slot column
     - Lato is self-hosted. The site's Plus Jakarta Sans is only published through
       Google Fonts, and these pages make no third-party requests, so Lato stays
     - every interactive thing keeps a visible focus ring */

@font-face {
  font-family: "Lato BD";
  src: url("../fonts/lato-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato BD";
  src: url("../fonts/lato-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --paper: #0a0a0f;
  --raise: #121218;
  --sunken: #0d0d13;
  --chip: #16161f;
  --chip-on: #1a1a24;

  --ink: #f4f4f5;
  --ink-soft: #b4b4be;
  --ink-faint: #9a9aa6;
  --ink-dead: #55555f;

  --rule: #2a2a32;
  --rule-strong: #3f3f46;

  --accent: #1ebbd7;
  --accent-key: #1ebbd7;
  --accent-ink: #08131a;
  --accent-tint: rgba(30, 187, 215, 0.12);

  --wrong: #f0894f;

  --radius: 5px;
  --ease: 160ms ease-out;

  --scrollbar-track: transparent;
  --scrollbar-thumb: #3a3a44;
  --scrollbar-thumb-hover: #4a4a56;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 "Lato BD", "Lato", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.frame {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* Screen-reader only, and the no-script timezone form. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── masthead ─────────────────────────────────────────────────────────── */

.mast {
  padding: 0 0 1.15rem;
}

.wordmark {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── type scale ───────────────────────────────────────────────────────── */

h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.004em;
}

/* The site's overline: small, tracked, uppercase, quiet. */
.over {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.quiet {
  color: var(--ink-soft);
  font-size: 0.87rem;
}

a.linkish,
button.linkish {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: inherit;
  color: var(--accent-key);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: border-color var(--ease);
}

a.linkish:hover,
button.linkish:hover {
  border-bottom-color: var(--accent-key);
}

:focus-visible {
  outline: 2px solid var(--accent-key);
  outline-offset: 2px;
}

/* The panels dim while a fetched update lands. Nothing moves, nothing flashes. */
[aria-busy="true"] {
  opacity: 0.55;
  transition: opacity var(--ease);
}

/* ── booking card: two panels on desktop, three once a day is chosen ──── */

.book {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr) 13.5rem;
  background: var(--raise);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}

.side {
  padding: 1.45rem 1.35rem 1.6rem;
  border-right: 1px solid var(--rule);
  min-width: 0;
}

.panel {
  padding: 1.45rem 1.35rem 1.6rem;
  min-width: 0;
}

.slot-panel {
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}

.form-panel {
  grid-column: 2 / -1;
}

/* ── left panel ───────────────────────────────────────────────────────── */

.side-host {
  margin: 0 0 0.5rem;
}

.side-title {
  font-size: 1.36rem;
}

.facts {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.facts li {
  padding: 0.13rem 0;
  overflow-wrap: anywhere;
}

.facts .fact-when {
  padding-top: 0.5rem;
  color: var(--ink);
  font-weight: 600;
}

.facts .fact-zone {
  font-variant-numeric: tabular-nums;
}

.side-note {
  margin: 1.15rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.side-back {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
}

.lengths {
  margin-top: 1.35rem;
}

.lengths .over {
  margin-bottom: 0.45rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  font-size: 0.87rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  background: var(--chip);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease);
}

.chip:hover {
  color: var(--ink);
  border-color: var(--rule-strong);
}

.chip.is-on {
  color: var(--accent-key);
  border-color: var(--accent-key);
  background: var(--accent-tint);
  font-weight: 600;
}

/* ── month grid ───────────────────────────────────────────────────────── */

.cal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.cal-nav {
  display: flex;
  gap: 0.3rem;
  margin: 0;
}

.cal-nav .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: none;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: color var(--ease), border-color var(--ease);
}

.cal-nav a.step:hover {
  color: var(--ink);
  border-color: var(--rule-strong);
}

.cal-nav .step.is-off {
  color: var(--ink-dead);
  border-color: transparent;
}

.cal {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.cal th {
  padding: 0 0 0.45rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.cal abbr[title] {
  text-decoration: none;
  border-bottom: 0;
  cursor: help;
}

.cal td {
  padding: 2px;
  text-align: center;
}

.day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

a.day {
  color: var(--ink);
  background: var(--chip);
  border: 1px solid var(--rule);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

a.day:hover {
  border-color: var(--accent-key);
}

a.day.is-on {
  background: var(--accent-key);
  border-color: var(--accent-key);
  color: var(--accent-ink);
  font-weight: 600;
}

.day.is-dead {
  color: var(--ink-dead);
  border: 1px solid transparent;
}

.day.is-today::after {
  content: "";
  position: absolute;
  bottom: 0.28rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-key);
}

.day.is-dead.is-today::after {
  background: var(--ink-dead);
}

a.day.is-on.is-today::after {
  background: var(--accent-ink);
}

/* ── minimal scrollbars (slot column, long form fields) ───────────────── */

.slot-scroll,
.field textarea {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.slot-scroll::-webkit-scrollbar,
.field textarea::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.slot-scroll::-webkit-scrollbar-track,
.field textarea::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

.slot-scroll::-webkit-scrollbar-thumb,
.field textarea::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.slot-scroll::-webkit-scrollbar-thumb:hover,
.field textarea::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

.slot-scroll::-webkit-scrollbar-button,
.field textarea::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* ── slot column ──────────────────────────────────────────────────────── */

.slot-scroll {
  margin-top: 0.85rem;
  max-height: 22rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1 1 auto;
}

.slots {
  list-style: none;
  margin: 0;
  padding: 0 2px 2px 0;
}

.slots li + li {
  margin-top: 0.35rem;
}

a.slot {
  display: block;
  padding: 0.5rem 0.4rem;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--ink);
  background: var(--chip);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  transition: color var(--ease), border-color var(--ease);
}

a.slot:hover {
  border-color: var(--accent-key);
  color: var(--accent-key);
}

a.slot.is-chosen {
  background: var(--accent-key);
  border-color: var(--accent-key);
  color: var(--accent-ink);
}

.tzpick {
  margin-top: 1.2rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.tzpick .over {
  margin-bottom: 0.3rem;
}

.tzpick select {
  width: 100%;
  font: inherit;
  font-size: 0.84rem;
  color: var(--ink-soft);
  background: var(--sunken);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.3rem 0.35rem;
}

.tzpick select:hover {
  color: var(--ink);
  border-color: var(--rule-strong);
}

.tzpick .tzoff {
  display: block;
  margin-top: 0.3rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}

/* ── details form ─────────────────────────────────────────────────────── */

.form {
  max-width: 26rem;
}

.field {
  margin: 0;
  border: 0;
  padding: 0;
}

.field + .field {
  margin-top: 0.8rem;
}

/* Whole groups get room; single lines inside a group stay tight. */
fieldset.field {
  margin-top: 1.5rem;
}

.field > label,
.field legend {
  display: block;
  padding: 0;
  margin-bottom: 0.3rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field .hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--sunken);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 0.5rem 0.6rem;
  transition: border-color var(--ease);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-dead);
}

.field textarea {
  min-height: 5rem;
  resize: vertical;
}

.picks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.picks li {
  position: relative;
}

.picks li + li {
  margin-top: 0.3rem;
}

.picks input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pick {
  display: block;
  padding: 0.55rem 0.65rem;
  background: var(--chip);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}

.pick:hover {
  border-color: var(--rule-strong);
}

.picks input[type="radio"]:checked + .pick {
  border-color: var(--accent-key);
  background: var(--accent-tint);
}

.picks input[type="radio"]:focus-visible + .pick {
  outline: 2px solid var(--accent-key);
  outline-offset: 2px;
}

.pick-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}

.pick-note {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.actions {
  margin-top: 1.9rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.primary,
.primary-link {
  display: inline-block;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--accent-ink);
  background: var(--accent-key);
  border: 1px solid var(--accent-key);
  border-radius: var(--radius);
  padding: 0.5rem 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: filter var(--ease);
}

.primary:hover,
.primary-link:hover {
  filter: brightness(1.1);
}

.primary[disabled] {
  opacity: 0.55;
  cursor: default;
  filter: none;
}

/* ── notices ──────────────────────────────────────────────────────────── */

.warn {
  margin: 0 0 1.15rem;
  padding: 0.65rem 0.85rem;
  background: var(--sunken);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--wrong);
  border-radius: var(--radius);
}

.warn p {
  margin: 0;
  font-size: 0.9rem;
}

.warn .warn-sub {
  margin: 0.75rem 0 0.4rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.note-line {
  margin: 1.15rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ── person page ──────────────────────────────────────────────────────── */

.person {
  max-width: 33rem;
  padding-top: 1.3rem;
}

.person-head h1 {
  font-size: 1.65rem;
}

.person-line {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

.person-bio {
  margin: 0.95rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.offers {
  list-style: none;
  margin: 1.7rem 0 0;
  padding: 0;
}

.offers li + li {
  margin-top: 0.4rem;
}

.offer {
  display: block;
  padding: 0.9rem 1rem;
  color: inherit;
  background: var(--raise);
  border: 1px solid var(--rule);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color var(--ease);
}

.offer:hover {
  border-color: var(--accent-key);
}

.offer-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
}

.offer-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.offer-meta .dot::before {
  content: "·";
  margin: 0 0.4rem;
  color: var(--ink-dead);
}

.offer-blurb {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.87rem;
  color: var(--ink-faint);
}

/* ── confirmation, manage, plain notes ────────────────────────────────── */

.done,
.note,
.manage {
  max-width: 33rem;
  padding-top: 1.3rem;
}

.lander {
  padding-top: 3.5rem;
  text-align: center;
}

.note p {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
}

.done-line {
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
}

.rows {
  margin: 1.7rem 0 0;
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  border-top: 1px solid var(--rule);
}

.rows dt {
  padding: 0.65rem 1rem 0.65rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.9;
}

.rows dd {
  margin: 0;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.rows dd .quiet {
  display: block;
  margin-top: 0.1rem;
  font-variant-numeric: tabular-nums;
}

.rows a {
  color: var(--accent-key);
}

.done-actions,
.manage-actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem;
}

.manage-split {
  margin-top: 1.9rem;
  display: grid;
  gap: 1.9rem;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
}

.manage-split h2 {
  margin-bottom: 0.5rem;
}

/* ── footnote ─────────────────────────────────────────────────────────── */

.foot {
  margin-top: 2.3rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.foot p {
  margin: 0;
}

.foot a {
  color: var(--ink-soft);
}

/* ── tablet: info across the top, calendar and times side by side ─────── */

@media (max-width: 62rem) {
  .book {
    grid-template-columns: minmax(0, 1fr) 13.5rem;
  }

  .side {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .form-panel {
    grid-column: 1 / -1;
  }
}

/* ── phone: one column, the calendar directly above its times ─────────── */

@media (max-width: 46rem) {
  .frame {
    padding: 1.15rem 1rem 2.4rem;
  }

  .book {
    grid-template-columns: minmax(0, 1fr);
  }

  .side,
  .panel {
    padding: 1.15rem 1.05rem 1.35rem;
  }

  .side-title {
    font-size: 1.24rem;
  }

  .slot-panel {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .slot-scroll {
    max-height: none;
  }

  .slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
    gap: 0.35rem;
  }

  .slots li + li {
    margin-top: 0;
  }

  .rows {
    grid-template-columns: minmax(0, 1fr);
  }

  .rows dt {
    padding-bottom: 0;
    border-bottom: 0;
    line-height: 1.5;
  }

  .rows dd {
    padding-top: 0.1rem;
  }
}

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