/* Hire page: line-up, hire desk, docket, ruler, switches, price bar, rates table */
.print-only { display: none; }

/* ---------- R1 head ---------- */
.hire-head h1 { max-width: 18ch; }

/* ---------- R2 the line-up ---------- */
.lineup { padding-block: var(--section-pad-s) calc(var(--section-pad-s) * .8); overflow: hidden; }
.lineup__intro { padding-inline: var(--margin); max-width: calc(var(--max) + 2 * var(--margin)); margin-inline: auto; margin-bottom: 2rem; }
.lineup__intro .lead { margin-top: .8rem; max-width: 30ch; }
.lineup__note { margin-top: 1rem; font-size: var(--step--1); color: var(--moss); max-width: 44ch; }
.lineup__pos { margin-top: 1rem; font-weight: 700; font-size: var(--step--1); }
.lineup__bays {
  list-style: none; margin: 0; padding: 0 var(--margin) 14px;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--ink) rgb(18 41 27 / .12);
  scroll-padding-inline: var(--margin);
}
.lineup__bays::-webkit-scrollbar { height: 6px; }
.lineup__bays::-webkit-scrollbar-thumb { background: var(--ink); }
.lineup__bays::-webkit-scrollbar-track { background: rgb(18 41 27 / .12); }
.bay-slot { flex: none; width: 86vw; scroll-snap-align: start; display: flex; flex-direction: column; }
.bay-slot + .bay-slot .bay-slot__photo { border-left: 2px solid var(--ink); }
.bay-slot__no { font-size: var(--step-3); line-height: 1; color: var(--ink); padding: 0 14px 10px; }
.bay-slot__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bay-slot__info { padding: 16px 14px 0; }
.bay-slot__info h3 { font-size: var(--step-2); }
.bay-slot__spec { font-weight: 500; margin-top: .4rem; }
.bay-slot__from { font-weight: 700; margin: .3rem 0 .9rem; }
.bay-slot__btn { min-height: 44px; }
@media (min-width: 1024px) {
  .bay-slot { width: calc(max(60vh, 380px) * 4 / 3); }
}
/* Desktop with motion: pinned, the track moves sideways */
.lineup.is-pinned { height: 100vh; padding: 0; display: flex; align-items: center; }
.lineup.is-pinned .lineup__track { display: flex; align-items: center; width: max-content; will-change: transform; }
.lineup.is-pinned .lineup__intro { flex: none; width: min(36vw, 520px); margin: 0; padding: 0 3vw 0 var(--margin); }
.lineup.is-pinned .lineup__bays { overflow: visible; padding: 0 var(--margin) 0 0; }
.lineup.is-pinned .lineup__pos { display: none; }

/* ---------- R3 the hire desk ---------- */
.desk__head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.desk__head h2 { color: var(--white); }
.desk__head .lead { margin-top: .8rem; max-width: 40ch; }
.desk__nojs { max-width: 60ch; padding: 28px; border: 1px solid var(--rule-dark); }
.desk__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem var(--gap); align-items: start; }
@media (min-width: 1024px) {
  .desk__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .desk__bay { grid-column: 1 / 8; }
  .docket { grid-column: 8 / 13; position: sticky; top: 96px; }
}

/* The chooser: nine bay doors */
.chooser { border: 0; margin: 0 0 2rem; padding: 0; min-width: 0; }
.chooser__legend { font: 700 var(--step-1)/1.3 var(--font-text); padding: 0; margin-bottom: .6rem; }
.chooser__row {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 10px 6px 12px; margin-inline: -6px;
  scrollbar-width: thin; scrollbar-color: var(--lime) rgb(246 247 242 / .15);
}
.door { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 4px; cursor: pointer; scroll-snap-align: start; color: var(--white); text-align: center; }
@media (min-width: 1024px) { .door { flex: 1 1 0; min-width: 64px; max-width: 92px; width: auto; } }
.door__frame { display: block; width: calc(100% - 12px); }
.door__arch { display: block; }
.door__no { font-size: 16px; line-height: 1.1; margin-top: 6px; }
.door__name { font-size: var(--step--1); font-weight: 500; line-height: 1.2; }
.hoop--door { opacity: 0; transition: opacity var(--dur-ui) var(--ease-ui); }
.hoop--door path { stroke-dasharray: var(--hl, 400px); stroke-dashoffset: var(--hl, 400px); transition: stroke-dashoffset var(--dur-ui) var(--ease-arch); }
.door:hover .hoop--door { opacity: .4; }
.door:hover .hoop--door path { stroke-dashoffset: 0; }
.door.is-selected .hoop--door { opacity: 1; }
.door.is-selected .hoop--door path { stroke-dashoffset: 0; }
.door.is-selected .door__no, .door.is-selected .door__name { color: var(--lime-light); font-weight: 700; }
.door__input:focus-visible + .door__frame { outline: 3px solid var(--lime); outline-offset: 8px; }
html:not(.js) .hoop--door, .motion-off .hoop--door path { stroke-dasharray: none; }

/* The bay */
.bay-frame { margin: var(--hoop-gap); }
.bay { background: var(--ink); }
.bay__img { will-change: transform, clip-path; }
.bay__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20% 12% 12%; text-align: center; font: 800 var(--step-3)/1.05 var(--font-display); color: var(--white); background: var(--forest); max-width: none; margin: 0; }
.bay__tag { gap: 16px; justify-content: flex-start; }
.bay__no { font-size: 1.15rem; }
.bay__about { margin-top: 2rem; }
.bay__name { font-size: var(--step-2); color: var(--white); }
.bay__specs { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--rule-dark); font-weight: 500; }
.bay__specs li { padding: 10px 0; border-bottom: 1px solid var(--rule-dark); }
.bay__good { margin-top: 1rem; }
.bay__good-label { color: var(--lime-light); font-weight: 600; }

/* The docket */
.docket { padding: 28px; background: var(--white); color: var(--ink); container-type: inline-size; container-name: docket; }
/* legends sit in the flow, not on the fieldset border */
.docket fieldset > legend, .chooser > legend { float: left; width: 100%; }
.docket fieldset > legend + *, .chooser > legend + * { clear: both; }
@media (max-width: 599.98px) { .docket { padding: 22px 16px; margin-inline: calc(var(--margin) * -1 + 4px); } }
.docket__block { border: 0; margin: 0; padding: 0 0 22px; min-width: 0; }
.docket__block + .docket__block, .docket__date { border-top: 1px solid var(--rule); padding-top: 18px; }
.docket__legend { display: block; padding: 0; margin-bottom: 12px; font-weight: 700; font-size: var(--step-0); }
.docket__small { font-size: var(--step--1); color: var(--moss); margin-top: 8px; }
.docket__notice {
  margin: 0 0 18px; padding: 10px 12px; font-weight: 600; font-size: var(--step--1); line-height: 1.4;
  background: rgb(166 206 57 / .3); border-left: 3px solid var(--lime); color: var(--ink);
}

/* Duration ruler */
.ruler { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); padding-top: 6px; }
.ruler__track { position: absolute; left: 6.25%; right: 6.25%; top: 18px; height: 2px; background: var(--ink); }
.ruler__thumb {
  position: absolute; z-index: 2; top: 6px; width: 26px; height: 26px; border-radius: 50%;
  left: calc((var(--i) + .5) * 12.5% - 13px);
  background: var(--lime); box-shadow: 0 0 0 2px var(--ink); pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) { .ruler__thumb { transition: left var(--dur-ui) var(--ease-ui); } }
.stop { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 44px; padding-bottom: 4px; text-align: center; cursor: pointer; }
.stop__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 3; }
.stop__dot { width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); }
.stop__label { font-weight: 600; font-size: 0.8rem; line-height: 1.15; }
.stop.is-checked .stop__label { font-weight: 700; }
.stop__input:focus-visible ~ .stop__label { outline: 3px solid var(--forest); outline-offset: 3px; }
.stop.is-disabled { cursor: not-allowed; }
.stop.is-disabled .stop__input { cursor: not-allowed; }
.stop.is-disabled .stop__dot { border: 1px dashed var(--ink); }
.stop.is-disabled .stop__label { opacity: .5; }
.ruler__detail { margin-top: 12px; font-size: var(--step--1); color: var(--moss); }
@container docket (max-width: 439.98px) {
  .ruler { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-top: 0; }
  .ruler__track, .ruler__thumb, .stop__dot { display: none; }
  .stop { justify-content: center; min-height: 56px; padding: 8px 4px; border: 2px solid var(--ink); }
  .stop.is-checked { background: var(--lime); }
  .stop.is-disabled { border-style: dashed; border-width: 1px; }
  .stop__input:focus-visible ~ .stop__label { outline-offset: 6px; }
}

/* Start date */
.date-input { display: block; width: 100%; max-width: 260px; min-height: 48px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); }
.date-input:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.date-input[aria-invalid="true"] { border-color: var(--bougain); }
.field-error { margin-top: 8px; font-weight: 600; font-size: var(--step--1); color: var(--bougain); }
.field-hint { margin-top: 8px; font-size: var(--step--1); color: var(--moss); }

/* Segmented control */
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); }
.seg.is-locked { grid-template-columns: 1fr; }
.seg__opt { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 10px; text-align: center; cursor: pointer; font-weight: 600; font-size: var(--step--1); line-height: 1.25; }
.seg__opt + .seg__opt { border-left: 2px solid var(--ink); }
.seg.is-locked .seg__opt + .seg__opt { border-left: 0; }
.seg__opt.is-checked { background: var(--ink); color: var(--white); }
.seg__opt.is-disabled { cursor: not-allowed; color: rgb(18 41 27 / .55); background: rgb(18 41 27 / .06); }
.seg__opt:has(input:focus-visible) { outline: 3px solid var(--forest); outline-offset: 3px; z-index: 1; }
.seg__price { white-space: nowrap; font-weight: 500; }

/* Extras: switches */
.extras .docket__legend { margin-bottom: 4px; }
.extra { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--rule); }
.extra__label { flex: 1; font-weight: 500; cursor: pointer; padding: 8px 0; line-height: 1.3; }
.extra__price { font-size: var(--step--1); color: var(--moss); white-space: nowrap; }
.extra__static { padding: 12px 0; border-bottom: 1px solid var(--rule); font-weight: 500; }
.switch {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; margin: 0;
  width: 44px; height: 26px; border: 2px solid var(--ink); border-radius: 0; background: var(--white); cursor: pointer;
  transition: background-color var(--dur-micro) linear;
}
.switch::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink); transition: transform var(--dur-ui) var(--ease-ui), background-color var(--dur-micro) linear;
}
.switch:checked { background: var(--ink); }
.switch:checked::before { transform: translateX(18px); background: var(--lime); }
.switch:disabled { cursor: not-allowed; opacity: .75; }
.switch:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .switch::before { transition: none; } }
/* 44px touch target around the 26px switch */
.switch::after { content: ""; position: absolute; inset: -11px -2px; }

/* The estimate */
.estimate { margin-top: 26px; padding-top: 18px; border-top: 2px solid var(--ink); }
.estimate__label { font-weight: 700; }
.estimate__figure { margin: 4px 0 14px; font: 900 var(--price)/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; max-width: none; }
.price-roll { display: inline-flex; align-items: flex-start; white-space: nowrap; overflow: hidden; vertical-align: top; }
.price-roll .cur { font-size: .6em; line-height: 1; margin: .08em .04em 0 0; }
.price-roll .ch { display: inline-block; line-height: 1; }
.price-roll .col { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.price-roll .stack { display: flex; flex-direction: column; line-height: 1; }
.price-roll .stack > span { height: 1em; display: block; text-align: center; }
.breakdown { margin: 0; border-top: 1px solid var(--rule); font-size: var(--step--1); }
.breakdown > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.breakdown dt { font-weight: 500; }
.breakdown dt small { display: block; font-size: 1em; font-weight: 400; color: var(--moss); }
.breakdown dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown__total { font-weight: 700; font-size: var(--step-0); }
.breakdown__total dt { font-weight: 700; }
.estimate__vat { margin-top: 12px; font-size: var(--step--1); }
.estimate__saving { margin-top: 6px; font-weight: 600; color: var(--forest); font-size: var(--step--1); }
.estimate__deposit { margin-top: 6px; color: var(--moss); font-size: var(--step--1); }

/* Book it */
.docket__book { margin-top: 24px; }
.docket__call {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 72px; padding: 12px 16px;
  background: var(--ink); color: var(--lime); text-decoration: none; text-align: center;
  font: 800 var(--step-2)/1.1 var(--font-display); letter-spacing: -0.01em;
  transition: color var(--dur-ui) var(--ease-ui);
}
.docket__call::before {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: 0; width: 140%; aspect-ratio: 1.22 / 1;
  border-radius: 100vmax 100vmax 0 0; background: var(--forest); transform: translate(-50%, 101%);
  transition: transform var(--dur-ui) var(--ease-ui);
}
.docket__call:hover, .docket__call:focus-visible { color: var(--white); }
.docket__call:hover::before, .docket__call:focus-visible::before { transform: translate(-50%, 0); }
.docket__call:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.docket__ref { margin-top: 10px; font-size: var(--step--1); }
.docket__ref .stencil { font-size: 1.25rem; letter-spacing: .02em; }
.docket__toast { min-height: 1.4em; margin-top: 6px; font-weight: 600; font-size: var(--step--1); color: var(--forest); }
.docket__toast:empty { min-height: 0; margin: 0; }
.docket__keep { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.keep-btn { min-height: 44px; padding: 0; background: none; border: 0; color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.keep-btn:hover { text-decoration-thickness: 2px; }

/* The mobile price bar */
.price-bar {
  position: fixed; z-index: 71; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch;
  height: calc(var(--cab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--ink); color: var(--white);
  transform: translateY(105%); visibility: hidden;
  transition: transform var(--dur-ui) var(--ease-ui), visibility 0s linear var(--dur-ui);
}
.price-bar.is-on { transform: none; visibility: visible; transition: transform var(--dur-ui) var(--ease-ui), visibility 0s; }
@media (prefers-reduced-motion: reduce) { .price-bar, .price-bar.is-on, .cab-bar { transition: none; } }
@media (min-width: 1024px) { .price-bar { display: none; } }
.price-bar__info {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-content: center;
  min-width: 0; padding: 6px 12px 6px var(--margin); background: none; border: 0; color: inherit; text-align: left; cursor: pointer;
}
.price-bar__label { grid-column: 1; grid-row: 1; font-size: var(--step--1); color: rgb(246 247 242 / .7); line-height: 1.1; }
.price-bar__figure { grid-column: 1; grid-row: 2; font: 900 24px/1.05 var(--font-display); color: var(--lime); font-variant-numeric: tabular-nums; }
.price-bar__what { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-width: 0; font-size: var(--step--1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-bar__call { display: flex; align-items: center; justify-content: center; min-width: 108px; min-height: 44px; padding: 0 22px; background: var(--lime); color: var(--ink); font-weight: 700; font-size: var(--step-1); text-decoration: none; }
.price-bar :focus-visible { outline: 3px solid var(--lime); outline-offset: -5px; }
.price-bar__call:focus-visible { outline-color: var(--ink); }

/* ---------- R4 terms ---------- */
.terms__grid { row-gap: 3rem; }
.terms__figure { margin: 0; }
.terms__figure .arch-frame { max-width: 420px; margin: var(--hoop-gap); }
.terms__intro { margin: 1rem 0 2rem; max-width: 44ch; }
.terms__ledger > div { padding-block: 16px; }
@media (min-width: 700px) { .terms__ledger > div { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
@media (min-width: 1024px) {
  .terms__figure { grid-column: 1 / 5; }
  .terms__stick { position: sticky; top: 14vh; }
  .terms__copy { grid-column: 6 / 13; }
}

/* ---------- R5 rates ---------- */
.rates__top { row-gap: 2rem; margin-bottom: 2.5rem; align-items: end; }
.rates__intro .lead { margin-top: 1rem; max-width: 46ch; }
.rates__photo { display: none; margin: 0; }
@media (min-width: 1024px) {
  .rates__intro { grid-column: 1 / 8; }
  .rates__photo { display: block; grid-column: 9 / 13; justify-self: end; width: 26vw; max-width: 420px; }
  .rates__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
}
.rates__scroll { overflow-x: auto; border-top: 2px solid var(--ink); scrollbar-width: thin; scrollbar-color: var(--ink) rgb(18 41 27 / .1); }
.rates__table { width: 100%; min-width: 1060px; font-size: var(--step--1); }
.rates__table th, .rates__table td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rates__table thead th { font-weight: 700; padding-block: 14px; border-bottom: 1px solid var(--ink); }
.rates__table thead th:first-child, .rates__table tbody th { text-align: left; }
.rates__table tbody th, .rates__table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--white); font-weight: 600; white-space: normal; min-width: 250px; box-shadow: 1px 0 0 var(--rule); }
.rates__machine { display: flex; align-items: center; gap: 12px; }
.rates__thumb { width: 56px; flex: none; }
.rates__label { line-height: 1.3; }
.rates__label .stencil { display: block; font-size: 1rem; color: var(--forest); }
.rates__note { display: block; font-weight: 400; color: var(--moss); }
.rates__table td { font-size: var(--step-0); }
.rates__table td.rates__na { font-size: var(--step--1); color: var(--moss); }
.rates__scroll:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
@media (max-width: 599.98px) {
  .rates__table tbody th, .rates__table thead th:first-child { min-width: 168px; max-width: 168px; padding-right: 8px; }
  .rates__thumb { width: 40px; }
  .rates__machine { gap: 8px; }
  .rates__table td { padding-inline: 10px; }
}
