/* =====================================================================
   GYM NATION DESIGN SYSTEM  ·  v1.0  ·  December 2026
   Rulebook: Google Material Design 3 (m3.material.io)
   Full write-up: DESIGN-SYSTEM.md. Load this file LAST on every page.
   ---------------------------------------------------------------------
   1. Screen sizes (Material 3 window size classes)
        compact   < 600px    phones
        medium    600–839    tablets, portrait
        expanded  840–1199   tablets, landscape / small laptops
        large     ≥ 1200     laptops and desktops
   2. Type scale (Material 3, size / line height in px)
        Display   L 57/64   M 45/52   S 36/44
        Headline  L 32/40   M 28/36   S 24/32
        Title     L 22/28   M 16/24   S 14/20
        Body      L 16/24   M 14/20   S 12/16
        Label     L 14/20   M 12/16   S 11/16
      Brand fonts and weights stay (Material allows custom fonts):
      Chakra Petch = headings and titles, Archivo = body and buttons,
      IBM Plex Mono = small capitals labels.
   3. Layout: 8px grid. Side margins 16px (compact), 24px (medium and up).
   4. Section gap (not defined by Material for web pages; our choice on
      the 8px grid): 64px compact, 80px medium, 96px expanded and large.
   5. One exception: the homepage hero headline keeps its brand size.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root{
  --m-margin:16px;
  --sec:64px;                       /* gap between page sections */
  --head-gap:24px;                  /* section heading to its content */
  --t-page:36px;  --l-page:44px;    /* page title: Display Small */
  --t-sec:32px;   --l-sec:40px;     /* section heading: Headline Large */
  --t-sub:24px;   --l-sub:32px;     /* sub-heading: Headline Small */
  --t-lead:16px;  --l-lead:24px;    /* intro text: Body Large */
  --t-mark:28px;  --l-mark:36px;    /* footer brand line: Headline Medium */
}
@media (min-width:600px){:root{
  --m-margin:24px; --sec:80px; --head-gap:32px;
  --t-page:45px;  --l-page:52px;    /* Display Medium */
  --t-sec:36px;   --l-sec:44px;     /* Display Small */
  --t-sub:28px;   --l-sub:36px;     /* Headline Medium */
  --t-mark:36px;  --l-mark:44px;    /* Display Small */
}}
@media (min-width:840px){:root{
  --sec:96px;
  --t-page:57px;  --l-page:64px;    /* Display Large */
  --t-sec:45px;   --l-sec:52px;     /* Display Medium */
  --t-sub:32px;   --l-sub:40px;     /* Headline Large */
  --t-lead:22px;  --l-lead:28px;    /* Title Large */
}}

/* ---------- 2. Layout ---------- */
html body .wrap{padding-left:max(var(--m-margin), env(safe-area-inset-left,0px));padding-right:max(var(--m-margin), env(safe-area-inset-right,0px))}
html body main#top .sec-head{margin-bottom:var(--head-gap)}
/* footer: opening times, addresses, contact
   phones: one column; the two gym addresses side by side
   600-1023: times + contact left, addresses right
   1024+: three columns */
@media (max-width:599px){
  html body footer .foot{grid-template-columns:1fr!important;gap:24px!important}
  html body footer .foot>div{grid-column:auto!important;order:0!important}
  /* the two gym addresses side by side */
  html body footer .foot>div:nth-child(2){display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;grid-auto-flow:column;column-gap:16px}
  html body footer .foot>div:nth-child(2) .eyebrow{margin-top:0!important}
}
@media (min-width:600px) and (max-width:1023px){
  html body footer .foot{grid-template-columns:1fr 1fr!important;grid-template-areas:"hours addr" "contact addr";gap:32px 24px!important}
  html body footer .foot>div:nth-child(1){grid-area:hours!important}
  html body footer .foot>div:nth-child(2){grid-area:addr!important}
  html body footer .foot>div:nth-child(3){grid-area:contact!important}
}
@media (min-width:1024px){html body footer .foot{grid-template-columns:1.2fr 1fr 1.2fr!important;grid-template-areas:none;gap:32px!important}}
/* copyright line with the Policies link (Body Small, 48px tap area without extra visual space) */
html body footer .copyline{align-items:center}
html body footer .copyline a{font-family:var(--f-body);font-size:12px;line-height:16px;color:inherit;text-decoration:underline;text-underline-offset:3px;display:inline-block;padding:16px 0;margin:-16px 0}

/* ---------- 3. Shared roles (every page) ---------- */
/* Page title (inner pages) */
html body .page-hero h1,
html body main#top .page-hero h1,
html body main#top.dance-page .page-hero h1{font-size:var(--t-page)!important;line-height:var(--l-page)!important}
html body .page-hero h1 em{font-size:inherit!important;line-height:inherit!important}
/* Section heading */
html body main#top .sec-head h2{font-size:var(--t-sec)!important;line-height:var(--l-sec)!important}
/* Sub-heading: panels, studio names, location names */
html body main#top .panel h3,
html body main#top .studio-head h2,
html body main#top #locations .loc h3{font-size:var(--t-sub)!important;line-height:var(--l-sub)!important}
/* Intro text: hero line, page lead, section intro */
html body .hero.has-video .hero-sub,
html body .page-hero p.lead,
html body main#top .sec-head p,
html body main#top #app .app-lede,
html body main#top #cafe .cafe p{font-size:var(--t-lead)!important;line-height:var(--l-lead)!important}
/* Body Large: running text */
html body main#top p,
html body main#top li{line-height:24px}
html body main#top .panel p,
html body main#top .icon-list li,
html body main#top .emoji-list li{font-size:16px!important;line-height:24px!important}
/* Form fields: 16px minimum (stops iPhones zooming in) */
html body input,html body select,html body textarea{font-size:16px!important;line-height:24px}
/* Buttons, nav, segmented buttons, chips: Label Large */
html body .btn,
html body .nav ul a,
html body .seg button,
html body main#top #locations .links a{font-size:14px!important;line-height:20px!important;letter-spacing:.08em!important}
html body .hero.has-video .hero-ctas .btn,
html body .hero.has-video .hero-ctas .btn.btn-signal,
html body .hero.has-video .hero-ctas .btn:not(.btn-signal),
html body .page-hero .hero-ctas .btn{font-size:14px!important;line-height:20px!important;letter-spacing:.08em!important}
/* Small capitals labels, tags, hints: Label Medium */
html body .eyebrow,
html body .soon, html body .soon-tag, html body .only-tag, html body .opt-tag,
html body .tt-hint,
html body .seg button .save{font-size:12px!important;line-height:16px!important}
/* Mobile menu: Headline Medium */
html body .mobile-menu a{font-size:28px;line-height:36px}
/* Cookie banner */
html body .cookie p{font-size:14px!important;line-height:20px!important}

/* Footer */
html body footer .big-mark{font-size:var(--t-mark)!important;line-height:var(--l-mark)!important}
html body footer address,
html body footer .hours td,
html body footer .foot-mail a{font-size:14px!important;line-height:20px!important}
html body footer .eyebrow,
html body footer .status span,
html body footer .foot-mail small{font-size:12px!important;line-height:16px!important}
html body footer .copyline span{font-size:12px!important;line-height:16px!important}   /* Body Small */

/* Dialogs (Material: dialog headline = Headline Small) */
html body #bio-modal .bio-body h2,
html body #cls-modal #cm-name{font-size:24px!important;line-height:32px!important}
html body #bio-modal .bio-body .spec,
html body #cls-modal #cm-where,
html body #cls-modal dt,
html body #cls-modal .cm-next span{font-size:12px!important;line-height:16px!important}
html body #bio-modal .bio-body p,
html body #cls-modal dd,
html body #cls-modal #cm-desc{font-size:16px!important;line-height:24px!important}
html body #bio-modal .bio-contact a,
html body #cls-modal #cm-fine{font-size:14px!important;line-height:20px!important}
html body #cls-modal #cm-dates .chip{font-size:14px!important;line-height:20px!important}

/* ---------- 4. Homepage ---------- */
html body main#top #inside .cell h3,
html body main#top #inside .ex-txt b,
html body main#top #community .member b{font-size:22px!important;line-height:28px!important}          /* Title Large */
html body main#top .tile-note,
html body main#top .ex-txt small,
html body main#top .swipe-hint,
html body main#top .member q,
html body main#top #locations address{font-size:14px!important;line-height:20px!important}          /* Body Medium */
html body main#top .lm-open,
html body main#top .mp-time,
html body main#top .tap-sound{font-size:12px!important;line-height:16px!important}                  /* Label Medium */
html body main#top .store span{font-size:16px!important;line-height:24px!important}                  /* Title Medium */
html body main#top .store small{font-size:11px!important;line-height:16px!important}                 /* Label Small */
@media (max-width:599px){html body main#top > #inside{padding-top:40px!important}}                   /* peek under hero */
html body main#top #community{padding-top:var(--sec)!important}
html body main#top section.block#locations{padding-bottom:calc(var(--sec) - 29px)!important;margin-bottom:0}   /* last section to footer = one gap */

/* ---------- 5. Pricing ---------- */
html body .price-tabs button b,
html body main#top .opt strong,
html body main#top .opt.pass strong{font-size:16px!important;line-height:24px!important}           /* Title Medium */
html body .price-tabs button small{font-size:12px!important;line-height:16px!important}
html body main#top .opt small,
html body main#top .term-note,
html body main#top .well-note,
html body main#top .fine,
html body main#top .gtk-strip span,
html body main#top .price-wait span,
html body main#top .ticket .per,
html body main#top .ticket .t-fee,
html body main#top .ticket li,
html body main#top .ticket li span{font-size:14px!important;line-height:20px!important}            /* Body Medium */
html body main#top .gtk-strip b{font-size:14px!important;line-height:20px!important}               /* Title Small */
html body main#top .opt-price{font-size:14px!important;line-height:20px!important}                 /* Label Large */
html body main#top .price-wait b{font-size:16px!important;line-height:24px!important}
html body main#top .ticket .tier,
html body main#top .ticket #p-name{font-size:14px!important;line-height:20px!important}             /* Label Large */
html body main#top .ticket .price span{font-size:57px!important;line-height:64px!important}         /* Display Large (numeral) */
html body main#top .ticket .price sup{font-size:24px!important;line-height:32px!important}          /* Headline Small */
html body main#top .tier-ladder li span{font-size:12px!important;line-height:16px!important}
html body main#top .tier-ladder li em.lp{font-size:14px!important;line-height:20px!important}
/* price bar (phones) */
html body .pricebar #pb-price,
html body .pricebar > div > b,
html body .pricebar b{font-size:28px!important;line-height:36px!important}                         /* Headline Medium */
html body .pricebar #pb-unit,
html body .pricebar #pb-tier,
html body .pricebar .pb-tiers b,
html body .pricebar .pb-icons span{font-size:12px!important;line-height:16px!important}
html body .pricebar .pb-tiers span{font-size:14px!important;line-height:20px!important}
html body .pricebar #pb-detail{font-size:14px!important;line-height:20px!important}

/* ---------- 6. Classes ---------- */
html body main#top .wk-day b{font-size:16px!important;line-height:24px!important}                  /* Title Medium */
html body main#top .wk-band b{font-size:14px!important;line-height:20px!important}                 /* Title Small */
html body main#top .wk-day small,
html body main#top .wk-band small,
html body main#top .wk-chip span,
html body main#top #wk-key,
html body main#top .tt-filter{font-size:12px!important;line-height:16px!important}                 /* Label Medium */
html body main#top .wk-chip{font-size:14px!important;line-height:20px!important}                   /* Label Large (chips) */
html body main#top .tt-note{font-size:14px!important;line-height:20px!important}

/* ---------- 7. Trainers ---------- */
html body main#top .trainer-card .meta b{font-size:22px!important;line-height:28px!important}      /* Title Large */
html body main#top .trainer-card .spec{font-size:14px!important;line-height:20px!important}
html body main#top .trainer-card .more{font-size:12px!important;line-height:16px!important}

/* ---------- 8. Private hire ---------- */
html body .ph-form h3.ph-h,
html body .ph-terms h3{font-size:22px!important;line-height:28px!important}                       /* Title Large */
html body .ph-form h3 i,
html body .ph-terms h3 i{font-size:14px!important;line-height:20px!important}
html body .ph-form label,
html body .ph-form legend,
html body .ph-form .ph-lab,
html body .ph-form .ph-head span{font-size:12px!important;line-height:16px!important}            /* Label Medium */
html body .ph-form .ph-radio label,
html body .ph-form .ph-check{font-size:16px!important;line-height:24px!important}                 /* Body Large */
html body .ph-form label small,
html body .ph-form legend small,
html body .ph-form .ph-lab small{font-size:12px!important;line-height:16px!important}             /* Body Small (helper text) */
html body .ph-form .ph-fine,
html body .ph-terms .ph-t{font-size:14px!important;line-height:20px!important}

/* ---------- 9. Dance ---------- */
html body main#top .loc-sub{font-size:16px!important;line-height:24px!important}
html body main#top .studio-meta,
html body main#top .rate-row small,
html body main#top .perfect small{font-size:14px!important;line-height:20px!important}
html body main#top .rate-row b{font-size:32px!important;line-height:40px!important}                /* Headline Large (numeral) */
html body main#top .rate-row b i,
html body main#top .studio-photo .size{font-size:12px!important;line-height:16px!important}
html body main#top .rate-row span,
html body main#top .perfect b{font-size:16px!important;line-height:24px!important}                /* Title Medium */

/* ---------- 10. Specificity fixes (older rules were winning) ---------- */
html body main#top .ticket .t-icons li span{font-size:14px!important;line-height:20px!important}
/* price bar tier ladder (phones): name above price so 12px/14px labels fit 4 across */
html body .pricebar .pb-tiers{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html body .pricebar .pb-tiers li{flex-direction:column!important;align-items:center!important;gap:0!important;padding:4px 2px!important;min-width:0}
html body .pricebar .pb-tiers b{letter-spacing:.02em!important}
/* phones: segmented buttons and cookie buttons may wrap rather than shrink below 14px */
@media (max-width:599px){
  html body .seg button{white-space:normal!important;letter-spacing:.04em!important;min-width:0}
  html body .seg{max-width:100%}
  html body .seg[aria-label="Commitment period"]{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html body .seg[aria-label="Commitment period"] button{padding:8px 4px!important}
  html body .cookie .cookie-btns .btn{white-space:normal!important;letter-spacing:.04em!important;padding-inline:12px!important;min-width:0}
}

/* ---------- 11. Pricing page rhythm ----------
   Tabs to their content: 2 x heading gap (48 phone / 64 larger), same for both tabs.
   Last content to footer: one section gap, like every other page.
   (Offsets below are calibrated against the existing builder margins.) */
html body main#top section.block#join,
html body main#top section.block#passes{padding-top:calc(var(--head-gap)*2 - 17px)!important;padding-bottom:calc(var(--sec) - 29px)!important}

/* ---------- 12. Only clickable things look clickable (UX principle 2) ---------- */
/* Dance "Perfect for": plain icon + title + text, not cards; no hover */
html body main#top .perfect{gap:24px 16px!important}
@media (min-width:600px){html body main#top .perfect{gap:32px 24px!important}}
html body main#top .perfect>div{background:none!important;border:0!important;border-radius:0!important;padding:0!important;transition:none!important;cursor:default;align-content:start}
html body main#top .perfect>div:hover{transform:none!important;border-color:transparent!important}
/* cards that contain links are not links themselves: no lift or photo zoom */
html body main#top .loc:hover{transform:none!important}
html body main#top .studio:hover .studio-photo img{transform:none!important}


/* ---------- 14. Page titles start at the same height on every inner page ---------- */
html body main#top .page-hero.photo,
html body main#top.dance-page .page-hero.photo{padding-top:calc(clamp(40px,5vw,72px) + 80px)!important}
/* pricing, before a tab is chosen: tall header, but content from the top like the other pages */
html.ptab-none body main#top .page-hero.photo{justify-content:flex-start!important}

/* ---------- 15. Pricing choice: Memberships / Day passes as two separate buttons ----------
   Material: cards 8px apart; each option has its own outline. Same pattern as the Classes gym buttons. */
html body .price-tabs{gap:8px!important;padding:0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* ---------- 16. Pricing builder choices (home gym, commitment, day-pass gym): separate buttons ----------
   Same pattern as the Classes gym buttons and the pricing tabs. No pulsing glow, no bouncing arrows. */
html body main#top .builder .seg{display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px!important;width:100%;max-width:480px;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;animation:none!important}
/* the step to do next: each choice gets a faint yellow outline (no glow around the group) */
html body main#top .step.cur-step .seg,
html body main#top .step.cur-step .opts{box-shadow:none!important;animation:none!important}
@media (max-width:599px){html body main#top .builder .seg[aria-label="Commitment period"] button{padding:8px 4px!important}}

/* ---------- 17. Classes: colour key (London Bridge / Vauxhall) on the left at every size ----------
   (on the live site the week buttons sit before it, also on the left) */
html body main#top .wk-head{justify-content:flex-start!important;gap:8px 0!important}
html body main#top .wk-title-row:has(#wk-weeks:not([hidden])){margin-right:24px}
html body main#top .wk-key i:first-child{margin-left:0}

/* ---------- 18. Pricing: two key benefits above the builder ----------
   phones: stacked; tablet and up: side by side */
html body main#top .gtk-strip{grid-template-columns:1fr!important}
html body main#top .gtk-strip>div{border-left:0!important;padding:16px!important;gap:16px}
html body main#top .gtk-strip>div+div{border-top:1px solid var(--line)!important}
@media (min-width:600px){
  html body main#top .gtk-strip{grid-template-columns:1fr 1fr!important}
  html body main#top .gtk-strip>div+div{border-top:0!important;border-left:1px solid var(--line)!important}
}

/* ---------- 19. Homepage location cards: no link row, so no gap under the address ---------- */
html body main#top #locations .loc address{margin-bottom:0!important}

/* ---------- 20. Choice buttons: one look everywhere ----------
   Pricing tabs (Memberships / Day passes), Classes gym buttons, pricing builder choices
   (home gym, commitment, day-pass gym). Different sizes, same look:
   unselected = 1.5px outline + see-through dark fill + 12px corners;
   nothing chosen yet = outline turns faint yellow; selected = yellow fill, black text. */
html body .price-tabs button,
html body .seg.tt-site button,
html body main#top .builder .seg button{min-height:48px;border:1.5px solid color-mix(in srgb,#fff 38%,transparent)!important;border-radius:var(--r)!important;background:rgba(10,10,10,.6)!important;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);color:#fff!important;box-shadow:none!important;transition:border-color .2s,background .2s}
html body .price-tabs button:not([aria-selected="true"]):hover,
html body .seg.tt-site button:not([aria-pressed="true"]):hover,
html body main#top .builder .seg button:not([aria-pressed="true"]):hover{border-color:color-mix(in srgb,#fff 70%,transparent)!important;background:rgba(30,30,30,.7)!important}
html body .price-tabs button[aria-selected="true"],
html body .seg.tt-site button[aria-pressed="true"],
html body main#top .builder .seg button[aria-pressed="true"]{background:var(--signal)!important;border-color:var(--signal)!important;color:var(--on-signal)!important}
html.ptab-none body .price-tabs button,
html.tt-none body .seg.tt-site button,
html body main#top .step.cur-step .seg button:not([aria-pressed="true"]){border-color:color-mix(in srgb,var(--signal) 70%,transparent)!important}
html body .price-tabs button{padding:16px!important}
html body .seg.tt-site button,
html body main#top .builder .seg button{padding:8px 16px!important}
@media (max-width:599px){
  html body .seg.tt-site button{padding:4px 8px!important}
  html body main#top .builder .seg[aria-label="Commitment period"] button{padding:8px 4px!important}
}
/* groups in the page header sit one heading-gap below the text above them */
html body .price-tabs,
html body .seg.tt-site{margin-top:var(--head-gap)!important;max-width:620px}
html body .seg.tt-site{display:grid!important;grid-template-columns:1.3fr 1fr 1fr;gap:8px!important;width:100%;padding:0!important;border:0!important;border-radius:0!important;background:none!important}
@media (min-width:600px){html body .seg.tt-site{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ---------- 21. Classes: same opening as Pricing ----------
   Before a gym is chosen: the photo header fills the screen with the gym buttons on it.
   After: normal header, the timetable below (buttons to content = 2 x heading gap, as on Pricing). */
html.tt-none body main#top .page-hero.photo{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:flex-start}
html.tt-none body main#top .page-hero.photo>.wrap{width:100%}
html.tt-none body main#top section#timetable{display:none!important}
html body main#top .page-hero:has(.tt-site){padding-bottom:16px!important}
html body main#top section.block#timetable{padding-top:calc(var(--head-gap)*2 - 16px)!important}

/* ---------- 22. Homepage "Everything under one railway" tiles: image cards ----------
   Photo fills the card, darkens towards the bottom, name sits on the photo.
   Information only: not clickable, no hover, no button look.
   2 across under 840px, 4 across from 840px; square; 8px apart (Material cards). */
html body main#top #inside .fac{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;background:none!important;border:0!important;border-radius:0!important;overflow:visible!important}
@media (min-width:840px){html body main#top #inside .fac{grid-template-columns:repeat(4,1fr)!important}}
html body main#top #inside .fac .cell{position:relative;isolation:isolate;aspect-ratio:1/1;display:flex!important;flex-direction:column;justify-content:flex-end;gap:4px;padding:16px!important;margin:0!important;border:0!important;border-radius:var(--r)!important;overflow:hidden;background:var(--surface)!important;cursor:default;transform:none!important;box-shadow:none!important}
@media (min-width:840px){html body main#top #inside .fac .cell{padding:24px!important}}
html body main#top #inside .fac .cell .ph{position:absolute!important;inset:0;z-index:-1;margin:0!important;aspect-ratio:auto!important;border-radius:0!important}
html body main#top #inside .fac .cell .ph img{width:100%;height:100%;object-fit:cover;transform:none!important;transition:none!important}
html body main#top #inside .fac .cell .ph::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(10,10,10,.85) 0%,rgba(10,10,10,.6) 35%,rgba(10,10,10,0) 70%);pointer-events:none}
html body main#top #inside .fac .cell h3{margin:0!important;color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.35)}
html body main#top #inside .fac .cell .tile-note{margin:0!important;color:rgba(255,255,255,.85)!important}
html body main#top #inside .fac .cell .soon{z-index:1;top:12px!important;left:12px!important}
@media (min-width:840px){html body main#top #inside .fac .cell .soon{top:16px!important;left:16px!important}}
/* Wellness label: editorial, not a pill. Small frosted dark label, thin outline, 4px corners
   (Material "extra small" shape), mono capitals: yellow status line, white detail line. */
html body main#top #inside .fac .cell .soon{display:grid;gap:2px;max-width:calc(100% - 24px);padding:8px 10px!important;border-radius:4px!important;border:1px solid rgba(255,255,255,.2);background:rgba(10,10,10,.55)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#fff!important;font-family:var(--f-mono)!important;font-weight:500!important;font-size:12px!important;line-height:16px!important;letter-spacing:.12em!important;text-transform:uppercase;box-shadow:none!important}
html body main#top #inside .fac .cell .soon b{color:var(--signal);font-weight:600;font-size:12px;line-height:16px}
html body main#top #inside .fac .cell .soon span{color:rgba(255,255,255,.85);font-size:12px;line-height:16px}
@media (max-width:359px){html body main#top #inside .fac .cell .soon{top:8px!important;left:8px!important;max-width:calc(100% - 16px);padding:6px 8px!important;letter-spacing:.06em!important}}

/* ---------- 23. Header "Sign up": Material outlined button ----------
   Medium emphasis for a button that is on screen all the time: thin Nation Yellow outline,
   see-through dark fill, white text. Fills yellow on hover. 40px tall (Material button height). */
html body header.nav .nav-right .btn-signal{background:rgba(10,10,10,.3)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border:1.5px solid var(--signal)!important;color:#fff!important;box-shadow:none!important;min-height:40px}
html body header.nav .nav-right .btn-signal:hover{background:var(--signal)!important;border-color:var(--signal)!important;color:var(--on-signal)!important}
/* homepage video "Sign up": same outlined look as the header button */
html body .hero.has-video .hero-ctas .btn.btn-signal{background:rgba(10,10,10,.3)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border:1.5px solid var(--signal)!important;color:#fff!important;box-shadow:none!important}
html body .hero.has-video .hero-ctas .btn.btn-signal:hover{background:var(--signal)!important;border-color:var(--signal)!important;color:var(--on-signal)!important}
html body .hero.has-video .hero-ctas .btn.btn-signal::after{color:var(--signal)}
html body .hero.has-video .hero-ctas .btn.btn-signal:hover::after{color:var(--on-signal)}

/* ---------- 24. "Sign up" (header + homepage video): always visible, light yellow fill ----------
   Outlined button with a see-through Nation Yellow fill; solid yellow on hover. */
html body header.nav .nav-right .btn-signal{display:inline-flex!important;opacity:1!important;visibility:visible!important}
html body header.nav .nav-right .btn-signal,
html body .hero.has-video .hero-ctas .btn.btn-signal{background:rgba(254,207,3,.15)!important}
html body header.nav .nav-right .btn-signal:hover,
html body .hero.has-video .hero-ctas .btn.btn-signal:hover{background:var(--signal)!important}
@media (max-width:420px){html body header.nav .nav-right .btn-signal{padding:8px 12px!important;letter-spacing:.06em!important}}

/* ---------- 25. Page header to first content = one section gap, measured from the intro text ----------
   (the photo fades out, so the eye measures from the text). Same on every inner page.
   Pricing and Classes keep their own rule: choice buttons to content = 2 x heading gap. */
html body main#top .page-hero.photo:not(:has(.price-tabs)):not(:has(.tt-site)),
html body main#top.dance-page .page-hero.photo:not(:has(.price-tabs)):not(:has(.tt-site)){padding-bottom:24px!important}
html body main#top .page-hero.photo:not(:has(.price-tabs)):not(:has(.tt-site)) + section.block{padding-top:calc(var(--sec) - 24px)!important}

/* ---------- 26. Pricing and Classes: the header photo keeps its full-screen size after a choice ----------
   Before a choice the header fills the screen. After a choice the header itself gets shorter, but the photo
   stays exactly the same size (and crop) and the content scrolls over it, so nothing jumps. */
html body main#top .page-hero.photo:has(.price-tabs),
html body main#top .page-hero.photo:has(.tt-site){overflow:visible}
html body main#top .page-hero.photo:has(.price-tabs) .ph-bg,
html body main#top .page-hero.photo:has(.tt-site) .ph-bg,
html body main#top .page-hero.photo:has(.price-tabs)::after,
html body main#top .page-hero.photo:has(.tt-site)::after{bottom:auto;height:max(100%,100vh);height:max(100%,100svh)}
/* everything after the header paints above the photo (no z-index, so pop-ups keep their own layering) */
html body main#top .page-hero.photo:has(.price-tabs) ~ section,
html body main#top .page-hero.photo:has(.tt-site) ~ section,
body:has(.page-hero .price-tabs) footer,
body:has(.page-hero .tt-site) footer{position:relative}
/* the pricing bands lose their own background and lines, so the photo shows through */
html body main#top section.builder-band{background:transparent!important;border-block:0!important}
/* panels that sit over the photo: slightly see-through, with blur so the text stays easy to read */
html body main#top .gtk-strip,
html body main#top .price-wait{background:rgba(21,21,21,.7)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}

/* ---------- 27. Cards: 16px padding, 8px apart (Material 3 cards: 16dp left/right padding, 8dp max between cards) ----------
   Checked on m3.material.io/components/cards/specs. Same on every screen size. */
/* padding inside cards */
html body main#top .fac .cell{padding:16px!important}
html body main#top .app.app-top{padding:16px!important}
html body main#top .member.mp{padding:16px!important;background:var(--surface)!important}
html body main#top .loc{padding:16px!important}
html body main#top .trainer-card .meta{padding:16px!important}
html body main#top .ph-form,
html body main#top .ph-terms{padding:16px!important}
html body main#top .studio-body{padding:16px!important}
html body main#top .panel{padding:16px!important}
html body main#top .rate-row>div{padding:16px!important;gap:4px!important}
html body main#top .ticket{padding:16px!important}
html body main#top .ticket #t-medal{top:16px!important;right:16px!important}
/* space between cards */
html body main#top .extras,
html body main#top .members,
html body main#top .locs,
html body main#top .trainers,
html body main#top .studios,
html body main#top .rate-row,
html body main#top .wrap.two{gap:8px!important}
/* "Also at Gym Nation" rows: photo inset 8px, text 16px from the edge, 16px photo-to-text */
html body main#top .extras a{padding:8px 16px 8px 8px!important;gap:16px!important}
/* choice options in the membership builder: 8px apart like every choice group; 16px inside, tick box 16px from the edge */
html body main#top #join .opts,
html body main#top #passes .opts{gap:8px!important}
html body main#top #join .opt,
html body main#top #passes .opt{padding:12px 16px 12px 48px!important}
html body main#top #join .opt::before,
html body main#top #passes .opt::before{left:16px!important}
/* app store buttons: Material 3 button with an icon (16px before the icon, 24px after the text), 8px apart */
html body main#top .store-btns{gap:8px!important}
html body main#top a.store{padding:8px 24px 8px 16px!important;min-height:48px}
/* location cards: map runs edge to edge at the top (follows the 16px card padding), text 16px below it */
html body main#top .loc{gap:16px!important}
html body main#top .loc .loc-map{width:calc(100% + 32px)!important;margin:-16px -16px 0!important}
/* membership builder: a finished step keeps its buttons at full size (the old 90% shrink and fade made them
   smaller than every other choice button, 12.6px text and 43px tall). Groups 24px apart; columns 24px apart (Material 3 pane spacer). */
html body main#top .step.done .seg{transform:none!important;opacity:1!important}
html body main#top #join .step,
html body main#top #passes .step{margin-bottom:0!important}
html body main#top #join .builder>div:first-child,
html body main#top #passes .builder>div:first-child{display:flex;flex-direction:column;gap:24px}
html body main#top #join .builder,
html body main#top #passes .builder{gap:24px!important}
/* up to 860px the price shows in the bar at the bottom, so the empty price column is removed (it was adding a gap) */
@media (max-width:860px){
  html body main#top #join .builder>div:first-child{display:contents}
  html body main#top #join .builder .buy-col{display:none!important}
}
/* note under the commitment buttons: 8px below them, and no space at all while it's empty */
html body main#top .term-note{margin-top:8px!important}
html body main#top .term-note:empty{display:none!important}

/* ---------- 28. Buttons: same height everywhere (Material 3: 24px either side of the label; our 48px touch-target minimum) ----------
   Page buttons 48px tall. Homepage header buttons 56px. Header Sign up 40px (Material's standard button height; the bar is tight).
   Buttons in a row are 8px apart. A text-only button has 12px either side (Material 3 text button). */
html body .btn{gap:8px!important}
html body main#top .btn,
html body .pricebar .btn,
html body #pricebar .btn{min-height:48px!important;padding-block:0!important;padding-inline:24px!important}
html body main#top .ticket .btn{padding-inline:24px!important}
html body .hero.has-video .hero-ctas{gap:8px!important}
html body .hero.has-video .hero-ctas .btn{height:56px!important;min-height:56px!important;padding-block:0!important;padding-inline:24px!important}
html body .hero.has-video .hero-ctas .btn:not(.btn-signal):not(.btn-ghost){padding-inline:12px!important}
html body header.nav .nav-right .btn-signal{height:40px!important;padding-block:0!important;padding-inline:16px!important}
@media (max-width:420px){html body header.nav .nav-right .btn-signal{padding-inline:12px!important}}
/* app store buttons: 56px tall, like the header buttons */
html body main#top a.store{height:56px!important;min-height:56px!important;padding-block:0!important;gap:8px!important}
/* page header: buttons under the intro sit one heading gap below it, like the choice buttons on Pricing and Classes */
html body main#top .page-hero .hero-ctas{margin-top:var(--head-gap)!important}

/* ---------- 29. Headings and small details on the 8px grid (4px steps inside small components) ---------- */
/* heading to its intro line: 16px, for page titles and section headings alike (was 18 and 12) */
html body main#top .page-hero h1 + p.lead{margin-top:16px!important}
html body main#top .sec-head{gap:16px!important}
/* form fields 48px tall, 16px either side (Material 3 text fields) */
html body main#top .ph-form input:not([type=radio]):not([type=checkbox]),
html body main#top .ph-form select{min-height:48px;padding:0 16px!important}
html body main#top .ph-form textarea{padding:12px 16px!important}
html body main#top #tt-type{height:48px!important;padding:0 40px 0 16px!important}
html body main#top .ph-form fieldset.ph-radio{gap:8px 16px!important}
html body main#top .ph-form label.full,
html body main#top .ph-form .ph-row{gap:8px!important}
html body main#top .ph-form .ph-h{padding-top:16px!important;margin-top:8px!important;margin-bottom:8px!important}
html body main#top .ph-form .ph-h:first-of-type{margin-top:0!important}
html body main#top .ph-terms h3{margin-bottom:16px!important}
html body main#top .ph-terms .emoji-list,
html body main#top .ph-terms li{gap:8px!important}
/* timetable: 8px inside each cell, 4px between classes, chips 4px / 8px */
html body main#top .wk-c{padding:8px!important}
html body main#top .wk-cell{gap:4px!important}
html body main#top .wk-chip{padding:4px 8px!important}
/* pricing details */
html body main#top .price-tabs button{gap:4px!important}
html body main#top .seg small.save{margin-top:4px!important}
html body main#top .opt .only-tag{margin-left:8px!important}
html body main#top em.soon-tag{padding-block:4px!important}
html body main#top .ticket ul{margin-block:16px!important}
html body main#top .ticket li{padding-block:8px!important;gap:8px!important}
html body main#top #join .ticket ul.t-icons li{padding:8px 12px 8px 8px!important}
html body main#top .ticket .tier-ladder{margin-top:16px!important;gap:4px!important}
html body main#top .ticket .tier-ladder li{padding:8px 4px!important}
html body main#top .ticket .price{margin-top:8px!important}
html body main#top .ticket p.fine{margin-top:16px!important}
/* homepage details */
/* café photo and text: 24px apart stacked or side by side (Material 3 spacer between panes; was 18-48px, sliding with screen width) */
html body main#top .cafe{gap:24px!important}
html body main#top .extras .ex-txt{gap:4px!important}
html body main#top .loc address{margin-top:8px!important}
html body main#top .loc .lm-open{right:16px!important;bottom:16px!important;padding:8px 12px!important}
html body main#top #inside .fac .cell .soon{top:16px!important;left:16px!important;padding:8px 12px!important;max-width:calc(100% - 32px)!important}
html body main#top .member q{margin-top:8px}
/* trainers: name and details 4px apart */
html body main#top .trainer-card .meta{gap:4px!important}
/* dance details */
html body main#top .perfect{margin-top:0!important}
html body main#top .studio-head h2{margin-top:8px!important;margin-bottom:8px!important}
html body main#top .studio p.loc-sub{margin-top:8px!important}
html body main#top .studio-photo .size{padding:4px 8px!important}
html body main#top .panel p{margin-top:8px!important}
/* footer: label to text 8px, 8px steps between the small lines */
html body footer .eyebrow{margin-bottom:8px!important}
html body footer .eyebrow:not(:first-child){margin-top:16px!important}
html body footer #status{padding:8px 12px!important}
html body footer .foot-mail{margin-top:8px!important}
html body footer .big-mark{margin-top:16px!important}
html body footer .copyline{margin-top:8px!important}
/* phone swipe row of member stories: no hidden space under it (the scrollbar it made room for is hidden) */
@media (max-width:600px){html body main#top .members{padding-bottom:0!important}}

/* ---------- 30. FAQs ---------- */
/* topic links in the header: one heading gap below the intro, 8px apart, 32px chips (Material 3) with a 48px tap area,
   see-through dark fill so they read on the photo, like everything else that sits on a photo */
html body main#top .faq-jump{display:flex;flex-wrap:wrap;gap:8px;margin-top:var(--head-gap)}
html body main#top .faq-jump .chip{position:relative;display:inline-flex;align-items:center;height:32px;padding:0 16px!important;
  font-size:12px!important;line-height:16px!important;color:#fff;text-decoration:none;
  border:1px solid rgba(255,255,255,.38)!important;background:rgba(10,10,10,.6);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
html body main#top .faq-jump .chip::after{content:"";position:absolute;inset:-8px 0}
@media (hover:hover){html body main#top .faq-jump .chip:hover{border-color:var(--signal)!important;color:var(--signal)}}
/* the header's last item is the row of links, so the first topic starts one section gap below them (section 25) */
/* one section per topic, with a normal section heading (white, like every other page) */
html body main#top .faq{max-width:860px;border-top:1px solid var(--line)!important}
/* questions are a Material 3 list: 16/24 text (Title Medium, in our heading font), at least 56px tall (a one-line list item),
   16px above and below, 16px between text and the 24px open/close icon. Same at every screen size, like Material's lists. */
html body main#top .faq summary{min-height:56px;padding:16px 0!important;gap:16px!important;font-size:16px!important;line-height:24px!important}
html body main#top .faq summary::after{box-sizing:border-box;width:24px!important;height:24px!important;border-width:1.5px!important;font-size:16px!important;line-height:1!important}
/* answers: running text (Body Large), 16px below like the question's own padding, and no wider than about 70 characters
   so long answers stay easy to read on tablets and desktops */
html body main#top .faq .a{padding:0 0 16px!important;font-size:16px;line-height:24px}
html body main#top .faq .a p{margin:0!important}
html body main#top .faq .a p + p{margin-top:16px!important}
/* topic links jump to the heading itself, so it lands just below the header bar (the page already leaves 90px for the bar) */
/* policy cards: 16px padding, 8px apart; whole card is the link, so it can react, but it doesn't lift */
html body main#top .doc-grid{gap:8px!important}
html body main#top .doc-card{padding:16px!important;gap:4px 16px!important;transform:none!important}
html body main#top .doc-card>svg.ic{width:32px!important;height:32px!important}
html body main#top .doc-card b{font-size:22px!important;line-height:28px!important}
html body main#top .doc-card small{margin-top:4px!important;font-size:14px!important;line-height:20px!important}
html body main#top .doc-card i{margin-top:8px!important;font-size:12px!important;line-height:16px!important}
html body main#top .doc-card em{margin-top:8px!important;gap:8px!important;font-size:14px!important;line-height:20px!important}
/* "Open" sits at the bottom of each policy card, so it lines up across a row */
html body main#top .doc-card{grid-template-rows:1fr auto!important}
html body main#top .doc-card em{align-self:end}
/* café line: no single word left on the last line */
html body main#top #cafe .cafe p{text-wrap:pretty}

/* ---------- 31. Homepage: the first heading peeks into view on every screen, not just phones (principle 5) ----------
   The video stops short of the bottom of the screen by: 40px gap + the heading's first line + 16px.
   Phones 40 + 40 + 16 = 96px (as before), tablets 40 + 44 + 16 = 100px, desktops 40 + 52 + 16 = 108px.
   The text sits at the bottom of the video on every screen, 40px above its edge, so the buttons are always 80px from the heading.
   On short laptop screens the headline gets smaller so everything still fits (never below 46px, never above 140px). */
@media (min-width:601px){
  html body .hero.has-video{min-height:calc(100vh - 100px)!important;min-height:calc(100svh - 100px)!important;
    align-items:flex-end!important;padding-bottom:40px!important}
  html body main#top > #inside{padding-top:40px!important}
  html body .hero.has-video h1{font-size:max(46px,min(12.5vw,140px,calc((100svh - 428px) * .36)))!important}
}
@media (min-width:840px){
  html body .hero.has-video{min-height:calc(100vh - 108px)!important;min-height:calc(100svh - 108px)!important}
}

/* ---------- 32. Line length: all running text stays under about 65 characters a line (research: 50–75 is best) ----------
   Measured with the real font: in Archivo, 1ch (the width of a zero) holds about 1.3 average characters, so 50ch is about 65 characters.
   Applies to every paragraph, list item and helper text on the pages and in pop-ups, at every size. Sizes don't change.
   Lines wrap naturally (ragged right edge); intro lines just avoid leaving a single word on the last line. */
html body main#top p,
html body main#top li,
html body main#top small,
html body main#top .faq .a,
html body [role=dialog] p,
html body [role=dialog] li,
html body dialog p,
html body dialog li{max-width:50ch}
html body main#top .page-hero p.lead,
html body main#top .sec-head p{max-width:50ch!important;text-wrap:pretty}


/* ---------- 33. Feature banner (homepage: the app) ----------
   Not a content section but a call to action, so it's built as one self-contained banner: the title sits inside it.
   Material 3 has no marketing banner, so it uses our own tokens: padding = half a section gap (32 / 40 / 48px),
   title = section heading size, line = intro size, title to line 16px, text to buttons one heading gap.
   Surface fill, thin outline, 2px Nation Yellow top edge, 12px corners. Desktop: text left, buttons right, centred. */
html body main#top .app.app-banner{display:grid!important;grid-template-columns:1fr!important;gap:var(--head-gap)!important;align-items:start!important;
  padding:calc(var(--sec) / 2)!important;margin:0!important;border:1px solid var(--line)!important;border-top:2px solid var(--signal)!important;
  border-radius:var(--r)!important;background:var(--surface)!important}
html body main#top .app-banner .app-copy{display:grid;gap:16px}
html body main#top .app-banner h2{margin:0!important;font-size:var(--t-sec)!important;line-height:var(--l-sec)!important}
html body main#top .app-banner .app-lede{margin:0!important;text-wrap:pretty}
@media (min-width:840px){
  html body main#top .app.app-banner{grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;column-gap:48px!important}
  html body main#top .app-banner .store-btns{flex-wrap:nowrap}
}

/* ---------- 34. Book & buy page (book-sessions.html): the booking system's fallback panel ----------
   Only shows if the booking system can't load inside the page. Card rule (16px padding), sub-heading size,
   Material spacing: title to text 8px, text to button one heading gap. */
html body main#top .kenko-fallback{padding:16px!important;margin-top:8px!important}
html body main#top .kenko-fallback h3{font-size:var(--t-sub)!important;line-height:var(--l-sub)!important}
html body main#top .kenko-fallback p{margin:8px auto var(--head-gap)!important}
