/* Pad hire online: the booking page and the booking's own page, to the design
   James approved on 29 Nov 2026 (Fluff/outputs/pad-hire/APPROVED.md, sheets 1
   and 2). Hero band with price tags, numbered steps, date tiles, size cards
   with drawn pads, a summary board and a dark pay panel.

   SHARED BY BOTH GYMS AND WRITTEN IN TOKENS ONLY. Each gym's look is a set of
   --pad-* custom properties in its own identity file (storefront/shop-<gym>.css),
   which a page links one of, so nothing here names a gym and
   no colour is typed here. --board is the one charcoal the approval set for
   both gyms (Gym.BRAND_DEFAULTS).

   THE FACES ARE SERVED BY THE PLATFORM, from core/static/ibex/fonts, the same
   files the staff first screen loads. No font CDN is called: these pages
   carry a customer's name, email and mobile. Every face falls back to a stack
   every device has.

   Nothing is cut: every name, date, size and price wraps whole, and no text
   is set under 13px (.82rem at the 16px root). */

@font-face { font-family: "Anton"; src: url("../ibex/fonts/Anton-Regular.da0af4e9427a.ttf") format("truetype");
             font-weight: 400; font-display: swap; }
@font-face { font-family: "Gibson"; src: url("../ibex/fonts/Gibson-Heavy.ede3a50b1094.ttf") format("truetype");
             font-weight: 900; font-display: swap; }
@font-face { font-family: "Epilogue"; src: url("../ibex/fonts/Epilogue-Variable.eee0bac04f5a.ttf") format("truetype");
             font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../ibex/fonts/Outfit-Regular.5fc3fef1a1a5.ttf") format("truetype");
             font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../ibex/fonts/Outfit-Bold.91486df4e527.ttf") format("truetype");
             font-weight: 700; font-display: swap; }

.wrap:has(.shop-pad) { max-width: 60rem; }

/* The masthead and the page share the one charcoal. */
.pad-mast, .shop-pad { --ink: var(--board); }

.shop-pad { font-family: var(--pad-body); color: var(--ink); line-height: 1.5; }
.shop-pad h1, .shop-pad h2, .shop-pad h3, .shop-pad .pad-cta, .shop-pad .pad-display {
  font-family: var(--pad-display); font-weight: var(--pad-weight); letter-spacing: var(--pad-track);
  text-transform: uppercase; line-height: 1.1; margin: 0 0 .6rem; }
.shop-pad h1::after { content: none; }
.shop-pad p { margin: .4rem 0; }
.shop-pad a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px;
              text-underline-offset: .18em; }
.shop-pad label { display: block; font-weight: 600; font-size: .9rem; margin: 1rem 0 .25rem; }
.shop-pad input[type=text], .shop-pad input[type=email], .shop-pad input[type=date], .shop-pad select {
  width: 100%; padding: .6rem; border: 1px solid var(--ink); border-radius: var(--pad-radius);
  font: inherit; background: var(--paper); color: var(--ink); min-height: 2.75rem; }
.shop-pad .helptext { display: block; font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.shop-pad .small { font-size: .88rem; color: var(--muted); }
.shop-pad .notice { border-left: .3rem solid var(--ink); background: var(--surface);
                    padding: .7rem .9rem; font-weight: 600; margin: 0 0 1.2rem; }

/* ---- the hero band: full bleed, the gym's own ground ---- */
.pad-hero { background: var(--pad-hero); color: var(--pad-on-hero);
            box-shadow: 0 0 0 100vmax var(--pad-hero); clip-path: inset(0 -100vmax);
            padding: 2.2rem 0 2.4rem; margin: var(--pad-hero-top) 0 2.2rem; }
.shop-pad .pad-hero h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); line-height: 1.05; margin: 0 0 1rem;
                         color: var(--pad-on-hero); overflow-wrap: anywhere; }
.pad-hero p { max-width: 34rem; font-size: 1.05rem; color: var(--pad-on-hero); margin: .3rem 0 0; }
.shop-pad .pad-hero a { color: var(--pad-on-hero); text-decoration-color: currentColor; }
.pad-hero .back { margin: 0 0 1.2rem; font-size: .9rem; font-weight: 600; }
.pad-hero .fine { font-size: .9rem; margin-top: 1rem; }
.pad-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.pad-chips li { background: var(--pad-chip); color: var(--pad-on-chip); font-family: var(--pad-display);
                font-weight: var(--pad-weight); letter-spacing: var(--pad-track); text-transform: uppercase;
                font-size: 1.05rem; padding: .45rem .8rem; }

/* ---- the page: the summary board beside the numbered steps ---- */
@media (min-width: 56rem) {
  .pad-buy { display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: 0 2.5rem; align-items: start; }
  .pad-board { position: sticky; top: 1.5rem; }
}
.pad-main { counter-reset: pad-step; }
.pad-step { margin: 2rem 0 0; padding-top: 1.2rem; border-top: var(--pad-step-rule) solid var(--ink); }
.pad-main > .pad-step:first-child, .pad-main > .notice + .pad-step { margin-top: 0; }
.shop-pad .pad-step h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.8rem; }
.shop-pad .pad-step h2::before { counter-increment: pad-step; content: counter(pad-step);
  display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem;
  flex: 0 0 auto; background: var(--ink); color: var(--paper); font-size: 1.15rem; line-height: 1; }
.pad-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

/* How many days: the stepper box. The middle is the real select, so the
   choice works with no script; the two ends are links to one day fewer or
   more on the same page. */
.pad-days { display: flex; align-items: stretch; border: 1px solid var(--ink);
            border-radius: var(--pad-radius); min-height: 2.75rem; }
.shop-pad .pad-days select { border: 0; border-radius: 0; text-align: center; text-align-last: center;
                             font-weight: 700; font-size: 1.05rem; min-width: 0; }
.pad-days .bump { width: 2.9rem; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
                  font-size: 1.3rem; font-weight: 700; text-decoration: none; color: var(--ink);
                  border-left: 1px solid var(--ink); }
.pad-days .bump:first-child { border-left: 0; border-right: 1px solid var(--ink); }
.pad-days span.bump { color: var(--muted); }

/* The date tiles: pickup on the gym's colour, back by on the charcoal. */
.pad-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .6rem;
             margin: 1.1rem 0 0; padding: 0; list-style: none; }
.pad-tile { border: 2px solid var(--ink); padding: .6rem .7rem; background: var(--paper);
            border-radius: var(--pad-radius); }
.pad-tile .k { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .1em;
               text-transform: uppercase; color: var(--muted); }
.pad-tile .v { display: block; font-family: var(--pad-display); font-weight: var(--pad-weight);
               letter-spacing: var(--pad-track); text-transform: uppercase; font-size: 1.3rem;
               line-height: 1.15; margin-top: .1rem; }
.pad-tile .pr { display: block; font-weight: 700; font-size: .95rem; }
.pad-tile.go { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pad-tile.back { background: var(--ink); color: var(--paper); }
.pad-tile.go .k, .pad-tile.back .k { color: inherit; }

/* The size cards, each with its pad drawn: picked is the heavy ink frame and
   the pad filled in the gym's colour; a size booked on some of the days is
   dashed and struck through and cannot be picked. */
.pad-sizes { border: 0; margin: 0; padding: 0; min-width: 0; }
.pad-sizes legend { padding: 0; font-size: .88rem; color: var(--muted); }
.pad-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: 1rem; }
.shop-pad label.pad-size, .pad-size { position: relative; display: block; margin: 0; padding: 1rem .95rem;
            border: 2px solid var(--pad-card-rule); border-radius: var(--pad-radius); background: var(--paper);
            cursor: pointer; font-weight: 400; }
.pad-size .nm { display: block; font-family: var(--pad-display); font-weight: var(--pad-weight);
                letter-spacing: var(--pad-track); text-transform: uppercase; font-size: 1.35rem; line-height: 1.1; }
.pad-size .st { display: block; font-size: .85rem; margin-top: .15rem; }
.pad-size .st.picked { display: none; font-weight: 700; }
.pad-size input { position: absolute; top: .85rem; right: .85rem; width: 1.15rem; height: 1.15rem; margin: 0;
                  appearance: none; -webkit-appearance: none; border: 2px solid var(--ink); border-radius: 50%;
                  background: var(--paper); cursor: pointer; }
.pad-size input:checked { background: radial-gradient(circle, var(--ink) 0 45%, var(--paper) 50%); }
.pad-size input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pad-size:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.pad-size:has(input:checked) .st.free { display: none; }
.pad-size:has(input:checked) .st.picked { display: block; }
.pad-art { display: block; height: 3.4rem; width: auto; max-width: 100%; margin: 0 0 .6rem; color: var(--ink); }
.pad-art .body { fill: var(--surface); stroke: currentColor; stroke-width: 3; }
.pad-size:has(input:checked) .pad-art .body { fill: var(--accent); }
.pad-size.off { border-style: dashed; background: var(--surface); cursor: default; }
.pad-size.off .nm { text-decoration: line-through; text-decoration-thickness: 2px; }
.pad-size.off .pad-art { opacity: .45; }

.pad-cta { display: block; width: 100%; text-align: center; text-decoration: none; cursor: pointer;
           background: var(--accent); color: var(--on-accent); border: 2px solid var(--accent);
           border-radius: var(--pad-radius); padding: .8rem 1.2rem; font-size: 1.15rem; margin-top: 1.4rem; }
.pad-cta.quiet { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.pad-cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* If plans change: square bullets on ruled lines. */
.pad-terms { list-style: none; margin: .6rem 0 0; padding: 0; }
.pad-terms li { position: relative; padding: .55rem 0 .55rem 1.4rem; border-top: 1px solid var(--rule); }
.pad-terms li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .55rem; height: .55rem;
                        background: var(--ink); }

/* The consent wording, word for word, in its own framed box. */
.pad-consent { font-size: .95rem; padding: .8rem .95rem; margin-top: .7rem; white-space: pre-line;
               border: var(--pad-consent-border) solid var(--ink); border-left: .5rem solid var(--ink);
               background: var(--pad-consent-bg); overflow-wrap: anywhere; }

/* The pay panel: the charcoal, the total in the gym's price colour. */
.pad-pay { background: var(--board); color: var(--paper); padding: 1.1rem 1.2rem 1.3rem; margin-top: 1rem; }
.pad-pay .tot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1rem;
                font-family: var(--pad-display); font-weight: var(--pad-weight); letter-spacing: var(--pad-track);
                text-transform: uppercase; }
.pad-pay .tot b { font-size: 2rem; font-weight: inherit; color: var(--pad-pay-price); }
.pad-pay p { color: var(--paper); }
.shop-pad .pad-pay .small { color: var(--paper); opacity: .85; }
.shop-pad .pad-pay label.pad-check { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0 0;
                                     font-weight: 600; font-size: 1rem; }
.pad-check input { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; margin: .1rem 0 0; accent-color: var(--accent); }
.pad-pay .pad-cta { margin-top: .9rem; }
.pad-pay .pad-cta:focus-visible { outline-color: var(--paper); }

/* ---- the summary board: the hire filling in as it is chosen ---- */
.pad-board { background: var(--pad-board); color: var(--pad-on-board); border: var(--pad-board-frame) solid var(--ink);
             border-top: var(--pad-board-top); padding: 1.2rem 1.3rem 1.3rem; margin: 0 0 1.5rem; }
.pad-board .title { font-size: var(--pad-board-title); margin: 0; color: var(--pad-on-board); }
.pad-board .what { font-size: 1rem; margin: .3rem 0 0; color: var(--pad-on-board); opacity: .9; }
.pad-tally { list-style: none; margin: 1rem 0 0; padding: 0; counter-reset: pad-day; }
.pad-tally li { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem;
                padding: .5rem 0; border-bottom: var(--pad-tally-rule); counter-increment: pad-day; }
.pad-tally li:first-child { border-top: var(--pad-tally-top); }
.pad-tally .d { font-family: var(--pad-display); font-weight: var(--pad-weight); letter-spacing: var(--pad-track);
                text-transform: uppercase; font-size: 1.05rem; }
.pad-tally .d::before { content: var(--pad-day-count); }
.pad-tally .n { font-size: .85rem; text-transform: none; font-family: var(--pad-body); font-weight: 400;
                letter-spacing: 0; opacity: .9; }
.pad-tally .p { font-family: var(--pad-display); font-weight: var(--pad-weight); font-size: 1.25rem;
                color: var(--pad-board-price); white-space: nowrap; }
.pad-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
             margin-top: .6rem; padding-top: .7rem; border-top: var(--pad-total-rule); }
.pad-total .lbl { font-family: var(--pad-display); font-weight: var(--pad-weight); text-transform: uppercase;
                  font-size: 1.1rem; }
.pad-total .amt { font-family: var(--pad-display); font-weight: var(--pad-weight); letter-spacing: var(--pad-track);
                  font-size: 3rem; line-height: 1; color: var(--pad-board-price); }
.pad-board .when { margin: .9rem 0 0; font-size: .92rem; }
.pad-board .when b { display: block; }

/* ---- the booking's own page ---- */
.shop-pad .pad-done h1::after { content: ""; display: var(--pad-done-bar); width: 4.5rem; height: .4rem;
                                margin-top: .7rem; background: var(--accent); }
.pad-cols { display: grid; gap: 2rem; margin-top: 1.4rem; }
@media (min-width: 56rem) { .pad-cols { grid-template-columns: minmax(0, 1fr) 18rem; } }
.pad-ticket { background: var(--pad-board); color: var(--pad-on-board); border: var(--pad-board-frame) solid var(--ink);
              border-top: var(--pad-board-top); padding: .4rem 1.4rem 1rem; }
.pad-ticket dl { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); margin: 0; }
.pad-ticket dt, .pad-ticket dd { margin: 0; padding: .65rem 0; border-top: var(--pad-ticket-rule); }
.pad-ticket dl > dt:first-of-type, .pad-ticket dl > dt:first-of-type + dd { border-top: 0; }
.pad-ticket dt { font-family: var(--pad-display); font-weight: var(--pad-weight); text-transform: uppercase;
                 font-size: 1rem; color: var(--pad-ticket-key); }
.pad-ticket dd { font-weight: 600; overflow-wrap: anywhere; }
.pad-side { border-top: 2px solid var(--ink); padding-top: 1rem; }
.pad-side h2 { font-size: 1.6rem; }

@media (max-width: 34rem) {
  .pad-row2 { grid-template-columns: 1fr; }
  .pad-cards { grid-template-columns: 1fr; }
  .pad-tiles { grid-template-columns: 1fr; }
  .pad-tile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem .6rem; }
  .pad-total .amt { font-size: 2.6rem; }
  .pad-ticket dl { grid-template-columns: 6.2rem minmax(0, 1fr); }
}

/* The hero band follows the masthead straight on, as in the design. */
.shop-mast.pad-mast { margin-bottom: 0; }
/* A ruled section with no step number (the booking's own page). */
.shop-pad .pad-step h2.plain::before { content: none; }
.pad-cols .pad-step { margin-top: 2rem; }
.shop-pad .pad-sizes legend { font-weight: 400; }
.pad-step form > .pad-cta.quiet { margin-top: 1.1rem; }
/* The shell's "Powered by" line, at the 13px floor on these pages. */
.wrap:has(.shop-pad) .powered { font-size: .82rem; }
.pad-tally .n { display: var(--pad-first-note); }

/* ---- the member portal's pad hire pages (approved sheets 5 and 6) ----
   The portal's own nav row under the masthead, with who is signed in on the
   right; Your details is the member's account card; the booking's page has a
   link back to the account above the band. Tokens only, as above. */
.pad-portalbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
                 gap: .6rem 1.2rem; border-bottom: 2px solid var(--ink); padding: .6rem 0; margin: 0 0 1.4rem;
                 font-size: .9rem; }
.pad-portalbar nav { display: flex; gap: .4rem 1.1rem; flex-wrap: wrap; }
.shop-pad .pad-portalbar nav a { padding: .2rem 0; font-weight: 600; color: var(--muted); text-decoration: none;
                                 border-bottom: 3px solid transparent; }
.shop-pad .pad-portalbar nav a[aria-current="page"], .shop-pad .pad-portalbar nav a:hover {
  color: var(--ink); border-bottom-color: var(--accent); }
.pad-portalbar .who { margin: 0; font-weight: 700; }
.pad-backlink { margin: 0 0 1rem; font-weight: 700; }
.shop-pad .pad-backlink a { color: var(--ink); }
.pad-member { display: flex; gap: 1rem; align-items: center; border: 2px solid var(--ink); padding: .9rem 1rem;
              margin-top: .8rem; background: var(--surface); border-radius: var(--pad-radius); }
.pad-member p { margin: 0; overflow-wrap: anywhere; }
.pad-member .nm { font-weight: 700; }
.pad-member .av { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--accent);
                  color: var(--on-accent); display: flex; align-items: center; justify-content: center;
                  font-family: var(--pad-display); font-weight: var(--pad-weight); font-size: 1.2rem;
                  flex: 0 0 auto; }
