/* Night-first dock (night-dock.js, 2026-11-09): the bottom bar's three-night picker.
   Staging and the official sites (2026-11-09), only once the script found nights (.has-nights). Loads just before design-borrow.css. */
html[data-venue] body .reservation-dock.has-nights{width:min(660px,calc(100% - 32px));gap:16px}
html[data-venue] body .reservation-dock.has-nights>span:first-child{min-width:0;line-height:1.05}
html[data-venue] .reservation-dock .dock-night-title{display:block;max-width:190px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 11px/1.4 var(--body);letter-spacing:.04em;color:currentColor;opacity:.72}
html[data-venue] .reservation-dock .dock-night-title:empty{display:none}

html[data-venue] .dock-nights{display:flex;align-items:stretch;gap:2px;margin-left:auto;padding-inline:10px;border-inline:1px solid color-mix(in srgb,currentColor 18%,transparent);color:#fff}
html[data-venue] .dock-night{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:50px;min-height:48px;padding:4px 6px 7px;border:0;border-radius:0;background:none;color:inherit;font:inherit;cursor:pointer;opacity:.62;transition:opacity .25s ease,color .25s ease}
html[data-venue] .dock-night span{font:600 10px/1 var(--body);letter-spacing:.14em;text-transform:uppercase}
html[data-venue] .dock-night strong{font:400 21px/1 var(--display);letter-spacing:0}
/* The chosen night: full strength, the venue's control colour, and a 2px line that draws in. */
html[data-venue] .dock-night::after{content:"";position:absolute;left:8px;right:8px;bottom:2px;height:2px;background:var(--venue-control,currentColor);transform:scaleX(0);transition:transform .35s cubic-bezier(.16,1,.3,1)}
html[data-venue] .dock-night[aria-checked=true]{opacity:1;color:var(--venue-control,#fff)}
html[data-venue] .dock-night[aria-checked=true]::after{transform:scaleX(1)}
html[data-venue] .dock-night:hover{opacity:1}
html[data-venue] .dock-night:focus-visible{outline:2px solid var(--venue-control-focus,currentColor);outline-offset:-2px}
/* Tonight (the live sites can book it) gets a steady dot beside its label. */
html[data-venue] .dock-night.is-tonight span::before{content:"";display:inline-block;width:5px;height:5px;margin:0 4px 1px 0;border-radius:50%;background:var(--venue-control,currentColor);vertical-align:middle}
/* Tables left (2026-11-17, live sites): a nearly full night says "3 left" in place of its weekday and keeps full
   strength; a sold out night says "Full", dims and has its day struck through. Both stay clickable. */
html[data-venue] .dock-night.is-last{opacity:1}
html[data-venue] .dock-night.is-last span{color:var(--venue-control,currentColor);letter-spacing:.06em}
html[data-venue] .dock-night.is-out{opacity:.4}
html[data-venue] .dock-night.is-out:hover{opacity:.65}
html[data-venue] .dock-night.is-out span{letter-spacing:.06em}
html[data-venue] .dock-night.is-out strong{text-decoration:line-through;text-decoration-thickness:1px}
html[data-venue] body .reservation-dock.on-light .dock-night.is-last span{color:#1b1f24;font-weight:700}
/* One quiet entrance when the nights arrive: a short rise, never invisible. */
@keyframes dock-night-rise{from{transform:translateY(9px)}to{transform:none}}
html[data-venue] .dock-nights.is-arriving .dock-night{animation:dock-night-rise .6s cubic-bezier(.16,1,.3,1) both}
html[data-venue] .dock-nights.is-arriving .dock-night:nth-child(2){animation-delay:70ms}
html[data-venue] .dock-nights.is-arriving .dock-night:nth-child(3){animation-delay:140ms}
@media(prefers-reduced-motion:reduce){html[data-venue] :is(.dock-night,.dock-night::after){transition:none;animation:none!important}}
html[data-motion=off] :is(.dock-night,.dock-night::after){transition:none;animation:none!important}

/* Over a light ground (Saint Yves cream pages) the bar's words turn dark; the nights follow. */
html[data-venue] body .reservation-dock.on-light .dock-nights{color:#1b1f24}
html[data-venue] body .reservation-dock.on-light .dock-night[aria-checked=true]{color:#1b1f24}
/* The floor plan's compact bar keeps only its button. */
html[data-venue] .venue-map-visible .reservation-dock .dock-nights{display:none}

/* Phones: the nights replace the venue name (the page already says where you are). */
@media(max-width:480px){
  html[data-venue] body .reservation-dock.has-nights{gap:8px;padding-left:6px}
  html[data-venue] body .reservation-dock.has-nights>span:first-child{display:none}
  html[data-venue] .dock-nights{margin-left:0;padding-inline:0 6px;border-left:0}
  html[data-venue] .dock-night{min-width:44px;padding-inline:3px}
  html[data-venue] .dock-night strong{font-size:19px}
  html[data-venue] body .reservation-dock.has-nights .button{flex:1;justify-content:center;white-space:nowrap;padding-inline:12px;gap:8px;font-size:13px}
}

/* Event bar (2026-11-10): on a private-event page the bar points at the inquiry form
   (review_components.py event_dock) and steps aside while that form is on screen (review.js). */
html[data-venue] .reservation-dock .event-dock-text{display:inline-flex;align-items:center;min-height:44px;margin-left:auto;font:500 14px/1.2 var(--body);color:inherit;white-space:nowrap;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
html[data-venue] body .reservation-dock.event-dock .button{white-space:nowrap}
html[data-venue] body .reservation-dock.event-dock.is-at-form{display:none}
@media(max-width:480px){
  html[data-venue] body .reservation-dock.event-dock{gap:10px;padding-left:16px}
  html[data-venue] body .reservation-dock.event-dock>span:first-child{font-size:19px;line-height:1.1}
  html[data-venue] .reservation-dock .event-dock-text{display:none}
  html[data-venue] body .reservation-dock.event-dock .button{padding-inline:14px;gap:8px;font-size:13px}
}
