/* ==========================================================================
   GLASSHOUR · RESERVE — the live booking hour (co-captain build)
   The gateway-proof centerpiece: a faithful self-contained booking simulation.
   Brass marks ONLY live / interactive / available / selected surfaces.
   ========================================================================== */
/* override the integrator's placeholder mount rule (flex-centered, min-height) */
.reserve { display: block; min-height: 0; position: relative; overflow: clip; background: var(--glass); isolation: isolate; }
.reserve__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(80% 60% at 20% 16%, rgba(44,74,90,.5) 0%, rgba(11,31,38,0) 60%); }
.reserve__glow::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(82% 72% at 80% 22%, rgba(233,184,114,.22) 0%, rgba(233,184,114,0) 58%);
  opacity: var(--gh-light, 0); transition: opacity .9s var(--ease); }

.reserve__inner { max-width: 1280px; margin-inline: auto; padding-inline: clamp(1.25rem,4vw,3rem); padding-block: clamp(4rem,10vh,8rem); }
.reserve__head { max-width: 60ch; }
.reserve__title { color: var(--foam); font-size: clamp(2rem,5vw,3.4rem); margin: .5rem 0 0; }
.reserve__intro { margin: 1.1rem 0 0; color: var(--mist); font-size: clamp(1rem,1.5vw,1.15rem); line-height: 1.6; max-width: 46ch; }
.reserve__grid { margin-top: clamp(2.5rem,6vh,4rem); display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: start; }

/* steps */
.rb { display: flex; flex-direction: column; gap: clamp(1.6rem,4vh,2.6rem); border: 0; margin: 0; padding: 0; min-width: 0; }
.rb__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.rb__legend { display: flex; align-items: baseline; gap: .6rem; padding: 0; margin: 0 0 1rem;
  font-family: var(--grotesk); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.rb__num { font-variant-numeric: tabular-nums; color: var(--brass); }

/* craft */
.rb__crafts { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; }
.rb-craft { position: relative; cursor: pointer; display: block; }
.rb-craft input { position: absolute; opacity: 0; width: 0; height: 0; }
.rb-craft__box { display: flex; flex-direction: column; gap: .35rem; padding: 1rem .95rem; border-radius: 8px;
  background: rgba(244,241,234,.03); box-shadow: inset 0 0 0 1px rgba(244,241,234,.1);
  transition: box-shadow .25s var(--ease), background .25s var(--ease); }
.rb-craft:hover .rb-craft__box { box-shadow: inset 0 0 0 1px rgba(244,241,234,.25); }
.rb-craft input:focus-visible + .rb-craft__box { outline: 2px solid var(--brass); outline-offset: 2px; }
.rb-craft input:checked + .rb-craft__box { background: rgba(233,184,114,.08); box-shadow: inset 0 0 0 1px var(--brass); }
.rb-craft__name { font-family: var(--serif); font-size: 1.12rem; text-transform: lowercase; color: var(--foam); }
.rb-craft__meta { font-size: .74rem; letter-spacing: .02em; color: var(--mist); font-variant-numeric: tabular-nums; }
.rb-craft input:checked + .rb-craft__box .rb-craft__meta { color: var(--brass); }

/* light rail */
.rb-rail__track { position: relative; height: 88px; border-radius: 10px; overflow: hidden;
  background: #0a1a20 url('/built/glasshour/assets/hour-rail.jpg') center / cover;
  box-shadow: inset 0 0 0 1px rgba(244,241,234,.1); }
.rb-rail__track::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,31,38,.18), rgba(11,31,38,.5)); }
/* the rail itself: a hairline through the dot centers, filled in brass up to the
   chosen light so selection reads as "how far into the morning" (--lit set in JS) */
.rb-rail__track::after { content: ""; position: absolute; left: 7%; right: 7%; top: 50%; height: 1px; transform: translateY(-50%); z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--brass) 0%, var(--brass) var(--lit, 0%), transparent var(--lit, 0%), transparent),
    linear-gradient(90deg, rgba(244,241,234,.26), rgba(244,241,234,.26)); }
.rb-light { position: absolute; top: 0; bottom: 0; left: var(--at); transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  background: none; border: 0; cursor: pointer; padding: 0 .5rem; }
.rb-light__dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(244,241,234,.55);
  box-shadow: 0 0 0 4px rgba(11,31,38,.4); transition: background .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.rb-light__cap { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(244,241,234,.78);
  white-space: nowrap; text-shadow: 0 1px 5px rgba(11,31,38,.85); }
.rb-light:hover .rb-light__dot { background: var(--foam); }
.rb-light[aria-checked="true"] .rb-light__dot { background: var(--brass); box-shadow: 0 0 0 5px rgba(233,184,114,.22); transform: scale(1.18); }
.rb-light:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
.rb-rail__hint { margin: .7rem 0 0; font-size: .78rem; color: var(--mist); }

/* date chips */
.rb-dates { display: flex; flex-wrap: wrap; gap: .5rem; }
.rb-date { position: relative; cursor: pointer; display: block; }
.rb-date input { position: absolute; opacity: 0; width: 0; height: 0; }
.rb-date__box { display: flex; flex-direction: column; align-items: center; gap: .12rem; min-width: 64px; padding: .6rem .5rem; border-radius: 8px;
  background: rgba(244,241,234,.03); box-shadow: inset 0 0 0 1px rgba(244,241,234,.1);
  transition: box-shadow .2s var(--ease), background .2s var(--ease); font-variant-numeric: tabular-nums; }
.rb-date__dow { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.rb-date__day { font-family: var(--serif); font-size: 1.3rem; color: var(--foam); line-height: 1; }
.rb-date:not(.rb-date--taken):hover .rb-date__box { box-shadow: inset 0 0 0 1px rgba(233,184,114,.45); }
.rb-date input:focus-visible + .rb-date__box { outline: 2px solid var(--brass); outline-offset: 2px; }
.rb-date input:checked + .rb-date__box { background: rgba(233,184,114,.1); box-shadow: inset 0 0 0 1px var(--brass); }
.rb-date input:checked + .rb-date__box .rb-date__day { color: var(--brass); }
.rb-date--taken { cursor: not-allowed; }
.rb-date--taken .rb-date__box { opacity: .55; }
.rb-date--taken .rb-date__day { text-decoration: line-through; }
.rb-date__taken { font-size: .54rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mist); }

/* commit / hold */
.rb-commit { margin-top: .3rem; }
.rb-hold { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  min-width: 230px; padding: 1.05rem 2rem; border: 0; border-radius: 8px; cursor: pointer;
  font-family: var(--grotesk); font-weight: 700; font-size: .98rem; letter-spacing: .01em; color: var(--glass); background: var(--brass);
  box-shadow: 0 12px 34px -14px rgba(233,184,114,.55); transition: opacity .3s var(--ease), transform .2s var(--ease);
  -webkit-user-select: none; user-select: none; touch-action: none; }
.rb-hold[disabled] { opacity: .32; cursor: not-allowed; box-shadow: none; }
.rb-hold__fill { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(0); background: rgba(11,31,38,.3); pointer-events: none; }
.rb-hold.is-holding .rb-hold__fill { transform: scaleX(var(--hold, 0)); }
.rb-hold__label { position: relative; z-index: 1; }
.rb-hold:focus-visible { outline: 2px solid var(--foam); outline-offset: 3px; }
.rb-hold__hint { margin: .8rem 0 0; font-size: .8rem; color: var(--mist); min-height: 1.2em; }

/* reservation card */
.rb-card { position: relative; padding: clamp(1.5rem,3vw,2.2rem); border-radius: 12px;
  background: rgba(244,241,234,.035); box-shadow: inset 0 0 0 1px rgba(244,241,234,.1), 0 30px 70px -42px rgba(0,0,0,.8); }
.rb-card__eyebrow { margin: 0 0 1.1rem; font-family: var(--grotesk); font-weight: 600; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }
.rb-card__rows { margin: 0; display: flex; flex-direction: column; }
.rb-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(244,241,234,.08); }
.rb-card__row:last-child { border-bottom: 0; }
.rb-card__row dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.rb-card__row dd { margin: 0; font-family: var(--serif); font-size: 1.1rem; text-transform: lowercase; color: rgba(244,241,234,.46); text-align: right; font-variant-numeric: tabular-nums; transition: color .3s var(--ease); }
.rb-card__row dd.is-set { color: var(--foam); }
.rb-card__foot { margin: 1.3rem 0 0; font-size: .78rem; color: var(--mist); line-height: 1.5; }
/* done */
.rb-card__seal { display: block; width: 46px; height: 46px; margin-bottom: 1.1rem; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--brass), rgba(233,184,114,.25)); box-shadow: 0 0 0 6px rgba(233,184,114,.12); }
.rb-card__confirm { margin: 0; font-size: clamp(1.6rem,3.2vw,2.1rem); color: var(--foam); }
.rb-card__detail { margin: .9rem 0 0; font-size: 1rem; color: var(--mist); line-height: 1.6; }
.rb-card__note { margin: 1rem 0 0; font-size: .9rem; color: rgba(244,241,234,.7); line-height: 1.55; }
.rb-card__cal { display: inline-block; margin-top: 1.3rem; font-family: var(--grotesk); font-weight: 600; font-size: .82rem; letter-spacing: .04em;
  color: var(--brass); border-bottom: 1px solid rgba(233,184,114,.4); text-decoration: none; padding-bottom: 2px; }
.rb-card__cal:hover { border-color: var(--brass); }
.rb-card__demo { margin: 1.6rem 0 0; font-size: .72rem; letter-spacing: .04em; color: rgba(244,241,234,.72); }

@media (max-width: 900px) { .reserve__grid { grid-template-columns: 1fr; } .rb__crafts { grid-template-columns: 1fr; } }
/* narrow rails: shrink the end light labels so "first light" / "the gold" never clip */
@media (max-width: 480px) { .rb-light__cap { font-size: .56rem; letter-spacing: .05em; } }
@media (prefers-reduced-motion: reduce) {
  .rb-hold__fill, .reserve__glow::after, .rb-card__row dd,
  .rb-light__dot, .rb-craft__box, .rb-date__box { transition: none; }
}

/* screen-reader-only live region for the confirmation announcement */
.rb-card__status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* live availability (genuine computed data — a justified brass/live signal) */
.reserve__scarce { margin: 1rem 0 0; font-family: var(--grotesk); font-size: .82rem; letter-spacing: .04em; color: var(--mist); }
.reserve__scarce b { color: var(--brass); font-weight: 600; font-variant-numeric: tabular-nums; }

/* no-JS fallback for the live booking simulation */
.reserve__noscript { margin: clamp(2.5rem,6vh,4rem) 0 0; padding: 1.25rem 1.4rem; border-radius: 10px;
  background: rgba(244,241,234,.04); box-shadow: inset 0 0 0 1px rgba(244,241,234,.1);
  color: var(--mist); font-size: .95rem; line-height: 1.6; max-width: 60ch; }
.reserve__noscript a { color: var(--brass); text-decoration: none; border-bottom: 1px solid rgba(233,184,114,.4); }
