/* book_cal.css - the time-first /book (gate _gates/2026-10-20_book-time-first.md). The month calendar's look is the
   owner's visit-time picker (mc/web/static/s1.css .vt-*, 0820), scoped to .vtpub; the rest is the owner-approved
   prototype (proto2/live/two.html) one-to-one. */
/* ---------- the owner's own visit time (job page, 0820) - Direction A (UI_SPEC 3.6) ----------
   The sheet is a REAL month: Sun..Sat heads, 44 px cells, a 31 px disc on the chosen day (an 8 px square in
   A), a 1.5 px ring on today, and a 5 px orange dot under a day that has a booked visit nearby. A recommended
   time is a CARD (window / why / the mark), never a button; the plain windows are a 3-wide grid of 40 px
   buttons. tokens2.css (lane 3.1) owns --or-soft, --or-line, --or-ink and the --r-ctl/--r-tag/--r-sheet radii;
   the fallbacks below are UI_SPEC s1.1's own values, so the picker reads right whichever order the wave lands
   in. Only --vt-* names are introduced; nothing outside .vtpub is touched. */
.vtpub {
  --vt-or: var(--or, var(--c-primary));
  --vt-or-ink: var(--or-ink, #c2410c);
  --vt-or-soft: var(--or-soft, #fff1e6);
  --vt-or-line: var(--or-line, #fdba74);
  --vt-sel-bg: var(--navy, #0b1220);
  --vt-sel-ink: var(--nink, #f8fafc);
  --vt-line2: var(--line2, var(--c-line-strong));
  --vt-ink2: var(--ink2, var(--c-text-2));
  --vt-ink3: var(--ink3, var(--c-text-3));
  --vt-r-ctl: var(--r-ctl, var(--r-md));
  --vt-r-tag: var(--r-tag, 6px);
  --vt-r-sheet: var(--r-sheet, 14px);
  border-radius: var(--vt-r-sheet);
}

.vtpub .vt-unused {
  overflow: hidden;
  overflow: clip;   /* clip, not hidden: hidden would make the sheet itself the scroller and the foot could never stick */
  border-radius: var(--vt-r-sheet);
}

/* the sheet head: what this visit is for - the name, the city, the two-hour window - then the month */
.vtpub .vt-sheet-head {
  justify-content: flex-start;
}

.vtpub .vt-sub {
  margin-top: 2px;
  color: var(--vt-ink2);
  font-size: var(--fs-2);
}

.vtpub .vt-cal {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.vtpub .vt-cal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2);
}

.vtpub .vt-month {
  font-size: var(--fs-4);
  font-weight: 600;
  white-space: nowrap;
}

/* the hint takes the line under the month and its arrows, so the month name never wraps beside it */
.vtpub .vt-reach {
  flex: 1 0 100%;
  color: var(--vt-ink3);
  font-size: var(--fs-1);
}

.vtpub .vt-nav {
  margin-left: auto;
  display: inline-flex;
  gap: 12px;
}

.vtpub .vt-nav-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--vt-line2);
  border-radius: var(--vt-r-ctl);
  background: var(--c-surface);
  color: var(--vt-ink2);
  font: inherit;
  font-size: var(--fs-4);
  line-height: 1;
  cursor: pointer;
  position: relative;
}

/* NEO (2026-10-21): a 44 px thumb target around the 32 px arrow, the look unchanged */
.vtpub .vt-nav-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
}

.vtpub .vt-nav-btn[disabled] {
  opacity: .4;
  cursor: default;
}

.vtpub .vt-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px 0;
}

.vtpub .vt-weekday {
  padding: 2px 0 4px;
  color: var(--vt-ink3);
  font-size: var(--fs-1);
  font-weight: 600;
  text-align: center;
}

.vtpub .vt-blank {
  display: block;
}

.vtpub .vt-day {
  position: relative;
  display: grid;
  place-items: center;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--vt-r-ctl);
  background: transparent;
  color: var(--c-text);
  font: inherit;
  font-size: var(--fs-3);
  font-weight: 500;
  cursor: pointer;
}

.vtpub .vt-day > b {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* outside the 30 days this picker books: on screen, dimmed, never pressable */
.vtpub .vt-day-past {
  color: var(--vt-line2);
  cursor: default;
}

.vtpub .vt-day-past > b {
  color: var(--vt-ink3);
  opacity: .55;
}

.vtpub .vt-day-today > b {
  box-shadow: inset 0 0 0 1.5px var(--c-text);
  font-weight: 600;
}

.vtpub .vt-day-near::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--vt-or);
}

.vtpub .vt-day-sel > b {
  background: var(--vt-sel-bg);
  color: var(--vt-sel-ink);
  font-weight: 600;
  box-shadow: none;
}

.vtpub .vt-day-sel::after {
  display: none;
}

.vtpub .vt-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
  color: var(--vt-ink3);
  font-size: var(--fs-1);
}

.vtpub .vt-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vt-or);
}

/* a recommended time: the window, why it is worth taking, and the mark */
.vtpub .vt-wins {
  display: grid;
  gap: var(--sp-2);
}

.vtpub .win {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--vt-line2);
  border-radius: var(--vt-r-ctl);
  background: var(--c-surface);
  color: var(--c-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.vtpub .win > b {
  font-size: var(--fs-4);
  font-weight: 600;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.vtpub .win > span {
  grid-column: 1;
  color: var(--vt-ink2);
  font-size: 12.5px;
}

.vtpub .win > em {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  padding: 3px 8px;
  border: 1px solid var(--vt-or-line);
  border-radius: var(--vt-r-tag);
  background: var(--vt-or-soft);
  color: var(--vt-or-ink);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
}

.vtpub .win-sel {
  border-color: var(--vt-or);
  box-shadow: 0 0 0 2px var(--vt-or-soft);
}

/* the day's plain open windows: 3 across, 40 px, no chrome of their own */
.vtpub .win-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2);
}

.vtpub .win-btn {
  min-height: 40px;
  padding: 0 6px;
  border: 1px solid var(--vt-line2);
  border-radius: var(--vt-r-ctl);
  background: var(--c-surface);
  color: var(--c-text);
  font: inherit;
  font-size: var(--fs-2);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.vtpub .win-btn[aria-pressed="true"] {
  border-color: var(--vt-or);
  box-shadow: inset 0 0 0 1px var(--vt-or);
}

.vtpub .vt-readout {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--vt-r-ctl);
  background: var(--c-surface-2);
  color: var(--vt-ink2);
  font-size: var(--fs-2);
}

/* Back and Book it: equal width, one of them primary, pinned to the bottom of the sheet so a tall month never
   hides them (the sheet scrolls inside the dialog) */
.vtpub .vt-foot {
  position: sticky;
  bottom: 0;
  z-index: 1;
}

.vtpub .vt-foot .btn {
  flex: 1 1 0;
}

@media (max-width: 390px) {
  .vtpub .win-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

    .step-dots{display:flex;gap:6px;margin:4px 0 10px}
    .step-dots span{flex:1;height:6px;border-radius:3px;background:#e5e7eb}
    .step-dots span.on{background:#f97316}
    .step-label{font-size:14px;color:#475569;margin:0 0 2px}
    .field-why{font-weight:400;color:#475569;font-size:14px}
    /* public-size touches on top of the app calendar (customers 40+): bigger time text, roomy labels */
    .cal-times[hidden],[data-cal-rec-wrap][hidden]{display:none}
    .cal-day{font-size:18px;margin:16px 0 6px;color:#0f172a}
    .cal-label{font-size:14px;font-weight:600;color:#475569;margin:10px 0 6px}
    .cal-hint{font-size:14px;color:#475569;margin:8px 0 0}
    .vtpub .win{width:100%;font:inherit;text-align:left;cursor:pointer}
    .vtpub .win > b{font-size:17px}.vtpub .win > span{font-size:14px}
    .vtpub .win-btn{font-size:16px;min-height:48px}
    /* a picked time looks picked: solid navy like the picked day, with a check (tester: "nothing changed") */
    .vtpub .win-btn[aria-pressed="true"],.vtpub .win.win-sel{background:#0b1220;color:#fff;border-color:#0b1220;box-shadow:none}
    .vtpub .win.win-sel > span{color:#cbd5e1}
    .vtpub .win-btn[aria-pressed="true"]::before,.vtpub .win.win-sel > b::before{content:"\2713  ";font-weight:700}
    .vtpub .vt-day{font:inherit}
    /* the guide light (his idea): an amber OUTLINE hugging the exact shape of the thing to tap next, sending out
       small amber waves - two staggered waves, so one is always leaving while the next starts */
    @keyframes pj-waves{
      0%{box-shadow:0 0 0 2px #f59e0b,0 0 0 2px rgba(245,158,11,.55),0 0 0 8px rgba(245,158,11,.28)}
      49.9%{box-shadow:0 0 0 2px #f59e0b,0 0 0 8px rgba(245,158,11,.28),0 0 0 14px rgba(245,158,11,0)}
      50%{box-shadow:0 0 0 2px #f59e0b,0 0 0 8px rgba(245,158,11,.28),0 0 0 2px rgba(245,158,11,.55)}
      100%{box-shadow:0 0 0 2px #f59e0b,0 0 0 14px rgba(245,158,11,0),0 0 0 8px rgba(245,158,11,.28)}}
    .nudge{animation:pj-waves 2.4s linear infinite;position:relative;z-index:1}
    .vtpub .vt-grid.nudge,.cal-times.nudge{border-radius:14px}
    /* reduce-motion devices still get the waves (small, nothing moves on the page), just slower */
    /* (tokens.css zeroes every animation there with !important on *, so this one exception must out-rank it) */
    @media (prefers-reduced-motion: reduce){.nudge{animation-duration:3.6s !important;animation-iteration-count:infinite !important}}
    .cal-hint[hidden]{display:none}
/* the prototype's field rhythm on the info page (NEO-10212): the gap the form's grid gives its direct children,
   given here between the fields only - never above the step's header (NEO-10220) */
.book-step .field~.field,.book-step .field~.addr-more{margin-top:var(--sp-4)}
.book-step[hidden],[data-js-only][hidden]{display:none !important}
.cal-none{font-size:15px;color:#475569;margin:12px 0}
/* 2026-10-22: the soonest open times first, two across (a day word over the time), the month below */
[data-soon][hidden]{display:none}
.vtpub .soon-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.vtpub .soon-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:60px;padding:6px}
.vtpub .soon-day{font-size:14px;font-weight:600;color:#475569}
.vtpub .soon-time{font-size:16px}
.vtpub .soon-btn[aria-pressed="true"] .soon-day{color:#cbd5e1}
.vtpub .soon-btn[aria-pressed="true"]::before{content:none}
.vtpub .soon-btn[aria-pressed="true"] .soon-time::before{content:"\2713  ";font-weight:700}
.vtpub .soon-grid.nudge{border-radius:14px}
.soon-or{margin-top:18px}
