/* Base design system for the back office, door check-in and staff portal (and the building blocks the
   website restyles in x-site.css). Light paper, ink-black type, the brand colour for actions and the
   highlight colour on dark. Square corners, heavy condensed capitals (Barlow Condensed) over Barlow.
   The two brand colours come from GYM.theme in gym.js (see the Tokens below).
   Source tags: [EQ] Equinox, [BA] Barry's, [RU] Rumble Boxing, [TS] Third Space, [TI] TITLE Boxing Club. */

/* Condensed stand-ins while Big Shoulders loads (or if it can't), so headings keep the poster shape. */
@font-face {
  font-family: "Display Fallback";
  src: local("Roboto Condensed Bold"), local("RobotoCondensed-Bold"), local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Helvetica Neue Condensed Bold"), local("HelveticaNeue-CondensedBold");
  font-weight: 700 900;
}

/* ======================= Tokens ======================= */
:root {
  color-scheme: light;
  --display: "Barlow Condensed", "Display Fallback", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "Barlow", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Fixed palette */
  --paper: #F3F3F0; --paper-2: #E9E9E5; --white: #FFFFFF;
  --ink: #121116; --ink-2: #38363D;
  --night: #0F0E12; --night-2: #1A191E; --night-3: #25232A; --night-line: #35323B;
  /* Brand colours. core.js sets --brand, --hi and --on-brand from GYM.theme in gym.js at load;
     these are only the fallbacks. Every other shade is worked out from them. */
  --brand: #2563EB; --on-brand: #FFFFFF;
  --brand-hover: color-mix(in srgb, var(--brand) 80%, #000);
  --brand-tint: color-mix(in srgb, var(--brand) 12%, #fff);
  --brand-on-night: color-mix(in srgb, var(--brand) 60%, #fff);
  --hi: #FFC83D; --hi-deep: color-mix(in srgb, var(--hi) 88%, #000); /* highlight: on dark only (light colours fail contrast on white) */
  --track: #E2E2DD; /* empty meter / bar track, disabled fill */

  /* Context tokens (light) */
  --bg: var(--paper);          /* page / section background */
  --surface: var(--white);     /* cards, inputs, tiles */
  --surface-2: var(--paper-2); /* hover, inset panels, summaries */
  --text: var(--ink);
  --muted: #5C5A61;
  --dim: #68666E;              /* past, disabled-ish, placeholders */
  --line: #D6D6D0;             /* hairlines (decorative) */
  --line-ctl: #85838A;         /* input and control borders, 3:1 */
  --line-strong: var(--ink);   /* 2px poster rules, outline buttons */
  --accent: var(--brand); --accent-hover: var(--brand-hover); --on-accent: var(--on-brand);
  --accent-text: var(--brand);   /* red text, red link underline */
  --error: #B3121A;
  --ok: #1B6535;               /* green text: plan-save, texted, paid, scenario-fix */
  --focus: var(--ink);

  /* Status (text on tint) */
  --st-green: #1B6535; --st-green-tint: #E2F0E6;
  --st-amber: #8A4600; --st-amber-tint: #FAEBD5; --mk-amber: #B35C00; /* marker shapes only */
  --st-rose: #9B1B5A; --st-rose-tint: #F8E2EC;
  --st-violet: #5A3E9E; --st-violet-tint: #ECE6F7;
  --st-stone: #4F4C46; --st-stone-tint: #E8E6E1;
  --st-blue: #1D5796; --st-blue-tint: #E1EBF7;
  --st-teal: #0D6163; --st-teal-tint: #DCEFEE;
  --note-info: #E1EBF7; --note-warn: #FAEBD5; --note-money: #FBE5E7;

  /* Shape, space, motion */
  --r: 0; /* everything is square [EQ][RU] */
  --gutter: 16px; --top-h: 60px; --tabs-h: 60px;
  --ease-out: cubic-bezier(.165, .84, .44, 1); /* [EQ] reveals, zoom */
  --ease-ui: cubic-bezier(.39, .575, .565, 1); /* [EQ] colour changes */
}
@media (min-width: 620px) { :root { --gutter: 24px; } }
@media (min-width: 960px) { :root { --gutter: 32px; --top-h: 72px; --tabs-h: 48px; } }

/* Dark context: the same token names, redefined, so every component is written once.
   The :has() bands get their own rule, so a browser without :has() can't drop the whole list. */
.top, .tabs, .hero, .foot, .tour, .toast, .demo-banner, .membership, .modal.is-viewer,
body[data-area="door"], .plan.is-best, .intro-bar {
  --bg: var(--night); --surface: var(--night-2); --surface-2: var(--night-3);
  --text: #FFFFFF; --muted: #ABABAB; --dim: #8F8F8F;
  --line: var(--night-line); --line-ctl: #7A7A7A; --line-strong: #FFFFFF;
  --accent-text: var(--brand-on-night); --error: var(--brand-on-night); --ok: #5BC88A; --focus: #FFFFFF;
  color: var(--text);
}
.view > .section:has(> .steps), .view > .section:has(> .coach-list) {
  --bg: var(--night); --surface: var(--night-2); --surface-2: var(--night-3);
  --text: #FFFFFF; --muted: #ABABAB; --dim: #8F8F8F;
  --line: var(--night-line); --line-ctl: #7A7A7A; --line-strong: #FFFFFF;
  --accent-text: var(--brand-on-night); --error: var(--brand-on-night); --ok: #5BC88A; --focus: #FFFFFF;
  color: var(--text); background: var(--bg);
}
.top, .tabs, .hero, .foot, .tour, .toast, .demo-banner, .modal.is-viewer, body[data-area="door"] { background: var(--bg); }
.plan.is-best, .membership, .intro-bar { background: var(--ink); }

/* Red context: on red the primary button inverts to white [EQ "primary is the inverse of its section"]. */
.band {
  --bg: var(--brand); --text: #FFF; --muted: #FFF; --line: rgba(255, 255, 255, .35); --line-strong: #FFF;
  --accent: #FFF; --accent-hover: var(--paper); --on-accent: var(--ink); --accent-text: #FFF; --focus: #FFF;
  background: var(--brand); color: #FFF;
}

/* ======================= Base ======================= */
* { box-sizing: border-box; }
html { font-family: var(--sans); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
html, body { overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-size: 17px; line-height: 1.55; font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
body[data-area="staff"] { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); }
@media (min-width: 960px) {
  body[data-area="staff"] { padding-bottom: 0; }
  html:has(body[data-area="staff"]) { scroll-padding-top: calc(var(--top-h) + 64px); }
}
/* Phone menu open: lock the page behind it (on the root, so the sticky header stays put). */
html:has(#site-menu:not([hidden])) { overflow: hidden; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
::selection { background: var(--brand); color: #fff; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.list-card :focus-visible { outline-offset: -3px; }
.chip:focus-visible, .seg:focus-visible { outline-offset: -4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
em { font-style: italic; }
.num, .class-time, .stat-num, .plan-price, .cal-date, .count, .fill-num, .busy-num, .bar b, .bar-x,
.key-date, dd, .badge, input, select, .spots, .heat-c { font-variant-numeric: lining-nums tabular-nums; }

/* ======================= Type ======================= */
/* Big Shoulders only at 18px and up, always in capitals, lines packed into one block [RU][TI]. */
h1, h2, .display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; }
h1 { font-weight: 900; font-size: 40px; line-height: .95; }
h2 { font-size: 28px; line-height: 1; }
/* Card titles: friendly bold sentence case against loud section headers [TI] */
h3, .h3 { font: 800 19px/1.25 var(--sans); letter-spacing: -.01em; text-transform: none; }

body[data-area="site"] .page-head h1 { font-size: clamp(52px, 13vw, 96px); line-height: .88; }
body[data-area="staff"] h1, body[data-area="door"] h1 { font-size: 40px; line-height: .95; }
body[data-area="site"] .section h2 { font-size: clamp(40px, 9vw, 64px); line-height: .92; }
body[data-area="staff"] .section h2, .card h2 { font-size: 28px; line-height: 1; }
.sub-head { font: 800 26px/1 var(--display); text-transform: uppercase; letter-spacing: .005em; margin: 36px 0 12px; }
.modal h2 { font-size: 32px; line-height: .95; margin-bottom: 6px; }
.cal-head .h3, .tt-toolbar .h3, .step legend .h3 { font: 800 28px/1 var(--display); text-transform: uppercase; letter-spacing: .005em; }

p.lead { font: 500 19px/1.5 var(--sans); max-width: 34em; }
.muted { color: var(--muted); font-size: 15px; line-height: 1.5; }
/* Micro-label recipe [TS][EQ] */
.sc { font: 700 12px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.kicker { display: block; margin-bottom: 4px; font: 600 14px/1.3 var(--sans); color: var(--muted); text-transform: none; letter-spacing: 0; }
.ink { color: var(--text); }
.warn-text { color: var(--st-amber); font-weight: 700; }
.optional { font-size: 14px; font-weight: 400; color: var(--muted); font-style: normal; }
/* Italic metadata reads dated; italics stay only in .lead-note and .prose */
.row-main em, .class-info em, .member-name em, .slot-card em, .intro-sum em, .sheet-summary em, .event-info em, .busy-label em { font-style: normal; }

/* The slanted tape bar over public section titles [RU title-decorator] */
body[data-area="site"] .section-head h2::before,
body[data-area="site"] .view > .section > h2::before,
.band h2::before {
  content: ""; display: block; width: 48px; height: 5px; margin: 0 0 16px;
  background: var(--accent-text); /* red on paper, #FF4D5E on dark bands, white on the red band */
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

@media (min-width: 620px) {
  body[data-area="staff"] h1, body[data-area="door"] h1 { font-size: 44px; }
  p.lead { font-size: 20px; }
}
@media (min-width: 960px) {
  body[data-area="staff"] h1, body[data-area="door"] h1 { font-size: 52px; }
  body[data-area="staff"] .section h2, .card h2 { font-size: 32px; }
  .sub-head { font-size: 30px; }
  .modal h2 { font-size: 36px; }
  .cal-head .h3, .tt-toolbar .h3, .step legend .h3 { font-size: 30px; }
  h3, .h3 { font-size: 20px; }
  p.lead { font-size: 21px; }
  .muted { font-size: 16px; }
}

/* ======================= Layout ======================= */
.view { width: 100%; max-width: calc(1120px + 2 * var(--gutter)); margin: 0 auto; padding: 24px var(--gutter) 64px; flex: 1; }
.narrow { max-width: 640px; margin-inline: auto; width: 100%; }
.top-gap { margin-top: 16px; }
.wide { width: 100%; }
.wide-phone { width: 100%; }
.nowrap { white-space: nowrap; }
@media (max-width: 959px) { .desk-only { display: none !important; } }
.phone-only { display: inline; }
@media (min-width: 960px) { .phone-only { display: none; } }
@media (min-width: 620px) { .wide-phone { width: auto; } }

/* Section rhythm [EQ "regular/loose" spacing] */
.section { margin-top: 64px; }
body[data-area="staff"] .section { margin-top: 40px; }
@media (min-width: 960px) {
  .section { margin-top: 96px; }
  body[data-area="staff"] .section { margin-top: 48px; }
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { display: block; }
.section-head + .top-gap { margin-top: 0; }
.section > h2 + p { margin-top: 12px; }
.page-head { margin-bottom: 28px; }
.page-head .muted { margin-top: 12px; font-size: 17px; max-width: 40em; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }

/* Full-bleed bands [EQ alternating themes, RU rounds, TI bands] */
.hero, .band { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); padding-block: 56px; }
.view > .section:has(> .steps), .view > .section:has(> .coach-list) { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); padding-block: 56px; }
@media (min-width: 960px) {
  .hero, .band { padding-block: 88px; }
  .view > .section:has(> .steps), .view > .section:has(> .coach-list) { padding-block: 88px; }
}
.view > .hero:first-child { margin-top: -24px; }
.view > .band:last-child { margin-bottom: -64px; } /* the red band sits flush on the black footer */

.split { display: grid; gap: 16px; }
.grid-3 { display: grid; gap: 32px; }
.stack, .people { display: grid; gap: 12px; }
.people { margin-top: 16px; }
@media (min-width: 620px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 840px) {
  .cal-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; align-items: start; }
  .cal-layout > .cal-wrap { position: sticky; top: calc(var(--top-h) + 24px); }
  .cal-layout .agenda { margin-top: 0; }
}
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 7fr; align-items: start; gap: 24px; }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lead-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ======================= Header [EQ sticky black bar, TI flush red underline, RU slanted tape] ======================= */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  min-height: calc(var(--top-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  background: var(--night); border-bottom: 0; /* no blur, no transform: the phone menu is fixed inside */
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; min-height: var(--top-h); text-decoration: none; color: #fff; }
.brand-bar { flex: none; width: 6px; height: 30px; background: var(--brand); transform: skewX(-12deg); }
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wordmark { font: 700 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: #ABABAB; white-space: nowrap; }
.wordmark b { font: 900 26px/.9 var(--display); letter-spacing: .02em; color: #fff; margin-right: 4px; vertical-align: -3px; }
.brand-text small { font: 600 12px/1.2 var(--sans); color: #ABABAB; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 359px) { .brand-text small { display: none; } }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.top .btn-quiet { color: #fff; }
.top .call-link { min-height: 44px; padding: 0 12px; margin: 0; border: 1px solid #7A7A7A; font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 959px) { .top .call-link { text-decoration: none; } }
.site-nav { display: none; }

.menu-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: #fff; transition: transform .3s var(--ease-out), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Phone menu: a full-height black panel, CTA pinned to the bottom [EQ] */
.site-menu {
  position: fixed; inset: calc(var(--top-h) + env(safe-area-inset-top)) 0 0 0; z-index: 19;
  display: flex; flex-direction: column;
  padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--night); overflow-y: auto;
}
.site-menu a:not(.btn) {
  display: flex; align-items: center; min-height: 64px;
  font: 800 32px/1 var(--display); text-transform: uppercase; color: #fff; text-decoration: none;
  border-bottom: 1px solid var(--night-line);
}
.site-menu a.on { color: var(--brand-on-night); }
.site-menu .btn { margin-top: auto; }

@media (min-width: 960px) {
  .menu-btn, .site-menu { display: none !important; }
  .top { flex-wrap: nowrap; }
  .brand { flex: 0 1 auto; }
  .site-nav { display: flex; align-self: stretch; margin: 0 auto; }
  /* Nav and actions run a notch tighter than the phone sizes so the whole bar fits from 960px up */
  .site-nav a {
    position: relative; display: flex; align-items: center; padding: 0 12px;
    font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; text-decoration: none;
  }
  /* Red underline grows from the centre [RU] and sits flush on the bar's bottom edge [TI] */
  .site-nav a::after {
    content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 4px; background: var(--brand);
    transform: translateX(-50%); transition: width .3s cubic-bezier(.075, .82, .165, 1);
  }
  .site-nav a:hover::after, .site-nav a.on::after { width: calc(100% - 24px); }
  .top-actions { align-self: stretch; gap: 16px; margin-left: auto; }
  .site-nav + .top-actions { margin-left: 0; }
  .top .btn-quiet { font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
  .top .call-link { border: 0; padding: 0; font: 600 15px var(--sans); letter-spacing: 0; text-transform: none; }
  /* Full-height "Free class" block [EQ] */
  .top .top-actions .btn-primary { align-self: stretch; min-height: 0; height: auto; padding: 0 24px; margin-right: calc(-1 * var(--gutter)); font-size: 13px; }
}
/* Small laptops: the phone number gives way to the nav (it stays in the footer and on Contact) */
@media (min-width: 960px) and (max-width: 1099px) {
  .top .call-link { display: none; }
  .site-nav a { padding: 0 10px; }
  .site-nav a:hover::after, .site-nav a.on::after { width: calc(100% - 20px); }
}
/* Wide screens have room for the "ATLAS BOXING CLUB | NORTH YORK, TORONTO" lockup [EQ];
   narrower ones keep the location under the wordmark, so it never gets cut off. */
@media (min-width: 1366px) {
  .brand-text { flex-direction: row; align-items: center; }
  .brand-text small { border-left: 1px solid rgba(255, 255, 255, .5); margin-left: 14px; padding-left: 14px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .9); }
  .site-nav a { padding: 0 14px; }
  .site-nav a:hover::after, .site-nav a.on::after { width: calc(100% - 28px); }
}

/* Announcement bar [RU offer bar] */
.announce-bar { background: var(--brand); }
.announce { max-width: calc(1120px + 2 * var(--gutter)); margin: 0 auto; padding: 10px var(--gutter); font: 600 14px/1.4 var(--sans); color: #fff; text-align: center; }
.announce.tour-target { outline-color: #fff !important; outline-offset: -4px !important; }

.offline { background: var(--brand); color: #fff; text-align: center; padding: 8px 16px; font: 600 14px var(--sans); }

/* ======================= Staff tabs ======================= */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--ink); border-top: 1px solid var(--night-line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs a {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: var(--tabs-h); padding: 0 2px;
  color: #ABABAB; font: 700 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.tabs a.on { color: #fff; }
.tabs a.on::before { content: ""; position: absolute; top: 0; left: 12px; right: 12px; height: 3px; background: var(--brand); }
.tabs a.tab-extra { display: none; }
@media (max-width: 399px) { .tabs a { letter-spacing: 0; } }
@media (min-width: 960px) {
  /* A second tier under the header */
  .tabs {
    position: sticky; top: var(--top-h); z-index: 19; display: flex; justify-content: flex-start; gap: 4px;
    padding: 0 max(var(--gutter), calc((100vw - 1120px) / 2)); background: var(--night-2); border: 0;
    padding-left: max(calc(var(--gutter) - 14px), calc((100vw - 1120px) / 2 - 14px)); /* first label lines up with the page edge */
  }
  .tabs a { min-height: 48px; padding: 0 14px; font-size: 13px; letter-spacing: .1em; }
  .tabs a.on::before { top: auto; bottom: 0; left: 14px; right: 14px; height: 4px; }
  .tabs a.tab-extra { display: flex; }
  .tabs a.tab-more { display: none; }
}
/* Smaller laptop windows: tighter tabs so all 12 owner tabs fit on one line from 1024px. */
@media (min-width: 960px) and (max-width: 1279px) {
  .tabs { gap: 0; overflow-x: auto; scrollbar-width: none; padding-right: max(calc(var(--gutter) - 14px), calc((100vw - 1120px) / 2 - 14px)); }
  .tabs a { flex: none; padding: 0 7px; font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
  .tabs a.on::before { left: 7px; right: 7px; }
}
/* Wider laptops: the owner has 12 tabs, so keep them on one line ("Check-in" must not wrap). */
@media (min-width: 1280px) {
  .tabs { gap: 0; overflow-x: auto; scrollbar-width: none; padding-right: max(calc(var(--gutter) - 14px), calc((100vw - 1120px) / 2 - 14px)); }
  .tabs a { flex: none; padding: 0 12px; letter-spacing: .07em; white-space: nowrap; }
  .tabs a.on::before { left: 12px; right: 12px; }
}

/* ======================= Hero [EQ full-bleed, lower-left, 50%+ shade; RU stacked caps; BA hollow accent; TI one CTA] ======================= */
.hero {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(680px, calc(100svh - var(--top-h))); padding-top: 120px; padding-bottom: 40px;
}
.hero-photo {
  background:
    linear-gradient(180deg, rgba(14, 14, 14, .45) 0%, rgba(14, 14, 14, .72) 38%, rgba(14, 14, 14, .92) 100%),
    var(--hero-img) 62% 30% / cover no-repeat,
    var(--night);
  background-blend-mode: normal, luminosity; /* forces the photo to greyscale */
}
.hero .display { font: 900 clamp(60px, 16vw, 136px)/.86 var(--display); text-transform: uppercase; letter-spacing: .005em; max-width: 10ch; color: #fff; }
.display em { display: block; font-style: normal; color: transparent; -webkit-text-stroke: 2px #fff; } /* "SINCE 1984" hollow */
@supports not (-webkit-text-stroke: 1px) { .display em { color: #fff; } }
.hero p.lead { margin-top: 20px; color: #E0E0E0; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
@media (min-width: 620px) { .hero-actions { flex-direction: row; } }
@media (min-width: 960px) {
  .hero { min-height: 680px; padding-bottom: 80px; }
  .hero-photo {
    background:
      linear-gradient(90deg, rgba(14, 14, 14, .92) 0%, rgba(14, 14, 14, .78) 42%, rgba(14, 14, 14, .35) 100%),
      linear-gradient(0deg, rgba(14, 14, 14, .85) 0%, transparent 45%),
      var(--hero-img) right 30% / cover no-repeat,
      var(--night);
    background-blend-mode: normal, normal, luminosity;
  }
}

/* ======================= Buttons [EQ/RU square caps; EQ inverse primary; TI one repeated CTA] ======================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 48px; padding: 0 22px; border: 2px solid var(--line-strong); border-radius: 0;
  background: transparent; color: var(--text);
  font: 700 14px/1.1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease-ui), color .2s var(--ease-ui), border-color .2s var(--ease-ui);
}
.btn:hover { background: var(--text); color: var(--bg); } /* fill-on-hover inversion [EQ] */
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-danger { border-color: var(--error); color: var(--error); }
.btn-danger:hover { background: var(--error); color: #fff; }
.btn:disabled, .btn:disabled:hover { background: var(--track); border-color: var(--track); color: var(--dim); cursor: default; }
.btn.done, .btn.done:hover { background: var(--st-green); border-color: var(--st-green); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 13px; }
@media (min-width: 960px) and (pointer: fine) { .btn-sm { min-height: 40px; } }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 15px; }
.btn-door { width: 100%; min-height: 64px; font-size: 18px; }
/* Back office + staff portal: small row buttons are quiet 1px boxes. The 2px poster outline stays on the public site, the door kiosk and full-size dialog buttons. */
:where(body[data-area='staff'], body[data-area='team']) .btn-sm { padding: 0 12px; font-size: 12px; letter-spacing: .06em; }
@media (pointer: fine) { :where(body[data-area='staff'], body[data-area='team']) .btn-sm { min-height: 36px; } }
:where(body[data-area='staff'], body[data-area='team']) .btn-sm:where(:not(.btn-primary, .btn-danger, .done, :disabled)) { border-width: 1px; border-color: var(--line-ctl); }
:where(body[data-area='staff'], body[data-area='team']) .btn-sm:where(:not(.btn-primary, .btn-danger, .done, :disabled)):hover { background: var(--surface-2); border-color: var(--text); color: var(--text); }
/* Square icon button: put an inline <svg width='16' height='16'> inside; always give it aria-label + title */
.btn-icon { flex: none; width: 44px; padding: 0; }
.btn-icon svg { flex: none; width: 16px; height: 16px; }
@media (pointer: fine) { .btn-icon { width: 36px; } }
.btn-quiet {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--text);
  font: 700 13px var(--sans); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: underline; text-decoration-color: var(--accent-text); text-decoration-thickness: 2px; text-underline-offset: 6px;
  cursor: pointer; white-space: nowrap;
}
.btn-quiet:hover { text-decoration-color: currentColor; }
/* Arrow link [BA] */
.section-head .btn-quiet::after {
  content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .3s var(--ease-out);
}
.section-head .btn-quiet:hover::after { transform: translateX(4px) rotate(45deg); }
.link-btn { display: inline; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: var(--accent-text); text-underline-offset: 3px; cursor: pointer; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ======================= Lists [EQ hairline rows, no card box] ======================= */
.list-card { background: transparent; border-top: 2px solid var(--line-strong); }
.row {
  display: flex; flex-direction: row; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 14px 12px;
  background: none; border: 0; border-bottom: 1px solid var(--line);
  color: var(--text); text-align: left; text-decoration: none; font: inherit;
}
.row-link { cursor: pointer; transition: background-color .2s var(--ease-ui); }
.row-link:hover { background: var(--surface-2); }
.row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.row-main strong { font: 700 17px/1.3 var(--sans); }
.row-main em { font-size: 15px; color: var(--muted); line-height: 1.4; }
.row-danger strong { color: var(--error); }
.chev { flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-right: 4px; color: var(--muted); }
.list-label { padding: 20px 12px 6px; color: var(--muted); }
.empty { padding: 24px 12px; color: var(--muted); font-size: 15px; text-align: center; font-style: normal; }

/* ======================= Cards ======================= */
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 20px; min-width: 0; box-shadow: none; }
.panel { max-width: 560px; margin: 40px auto; }
.panel h1 { margin-bottom: 12px; }
.card h3 + .muted, .card h2 + .muted { margin-top: 6px; }
.card .muted + .muted { margin-top: 6px; }
.card-danger { border-color: var(--error); border-top-width: 4px; }
.section.split > .card { border-top: 4px solid var(--ink); } /* grouping cards on the home split */
@media (min-width: 960px) { .card, .panel { padding: 24px; } }

/* Program cards: image plus text with no chrome, slow zoom [EQ] */
.card-photo { background: transparent; border: 0; padding: 0; display: flex; flex-direction: column; }
.card-img { aspect-ratio: 3 / 2; }
.card-body { padding: 18px 0 0; }
.card-photo h3 { font-size: 22px; }
.card-photo h3 .muted { font: 500 15px var(--sans); }
.card-photo .card-body > .muted { margin-top: 8px; font-size: 16px; }
@media (min-width: 620px) { .card-img { aspect-ratio: 4 / 5; } } /* tall portrait [TS] */

/* ======================= Photos ======================= */
.photo-btn { display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: var(--track); cursor: zoom-in; overflow: hidden; }
.photo-btn img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); transition: transform .8s var(--ease-out); }
.photo-btn:focus-visible, .headshot:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
@media (pointer: fine) { .photo-btn:hover img { transform: scale(1.06); } }
.photo { margin: 0 calc(-1 * var(--gutter)) 32px; }
.photo .photo-btn { aspect-ratio: 1024 / 696; }
.photo figcaption, .fighters figcaption, .gallery figcaption { margin-top: 8px; font: 600 14px/1.35 var(--sans); color: var(--muted); }
.photo figcaption { padding: 0 var(--gutter); }
.photo-inline { margin: 0; }
.photo-inline .photo-btn { aspect-ratio: 1; }
.photo-inline figcaption { padding: 0; }
.split-photo { display: grid; gap: 24px; }
.row-thumb { flex: none; width: 56px; height: 56px; }
@media (min-width: 620px) {
  .photo { margin: 0 0 32px; }
  .photo figcaption { padding: 0; }
  .split-photo { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 960px) { .photo { max-width: 880px; } }

/* Fighters: a portrait strip [RU] */
.fighters {
  display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none;
}
.fighters::-webkit-scrollbar { display: none; }
.fighters figure { margin: 0; scroll-snap-align: start; }
.fighters .photo-btn { aspect-ratio: 3 / 4; }
.fighters figcaption { color: var(--text); }
@media (min-width: 620px) {
  .fighters { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
}

/* Gallery: natural-height photos in columns; only the first 8 (12 on desktop) until "Show all" */
.gallery { columns: 2; column-gap: 8px; }
.gallery figure { margin: 0 0 8px; break-inside: avoid; }
.gallery .photo-btn img { height: auto; }
.gallery:not(.is-all) figure:nth-child(n + 9) { display: none; }
@media (min-width: 620px) { .gallery { columns: 3; } }
@media (min-width: 960px) {
  .gallery { columns: 4; }
  .gallery:not(.is-all) figure:nth-child(n + 9) { display: block; }
  .gallery:not(.is-all) figure:nth-child(n + 13) { display: none; }
}

/* Full-size viewer (dark): the original photo, not greyscale */
.modal.is-viewer { width: min(1100px, calc(100vw - 32px)); max-width: none; padding: 0; background: #000; border: 0; }
.modal.is-viewer::before { display: none; }
.viewer img { display: block; width: 100%; max-height: 78vh; max-height: 78dvh; object-fit: contain; background: #000; filter: none; }
.viewer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; color: #fff; }
.viewer-bar p { font-size: 16px; }
.viewer-nav { display: flex; gap: 8px; margin-left: auto; }

/* ======================= Steps (dark band) [EQ numbered list, TI first-class steps] ======================= */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 64px 1fr; align-content: start; gap: 16px; padding: 24px 0; border-top: 2px solid #fff; }
.step-n { font: 900 56px/.85 var(--display); color: var(--brand-on-night); }
.steps h3 { color: #fff; font-size: 20px; }
.steps h3 + .muted { margin-top: 6px; }
@media (min-width: 620px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
  .steps li { grid-template-columns: 1fr; gap: 12px; }
  .step-n { font-size: 72px; }
}

/* ======================= Coaches (dark band) ======================= */
.coach-list { border-top: 2px solid #fff; }
.coach { min-height: 92px; gap: 16px; padding: 14px 0; border-bottom-color: var(--night-line); }
.headshot { flex: none; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 0; overflow: hidden; background: var(--night-3); cursor: zoom-in; }
.headshot img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); }
.monogram { display: grid; place-items: center; flex: none; }
.monogram-sm { width: 64px; height: 64px; border-radius: 0; background: var(--night-3); color: #fff; font: 800 24px var(--display); letter-spacing: .02em; }
.coach .row-main strong { font-size: 17px; color: #fff; }
.coach .row-main em { font-size: 14px; color: #ABABAB; font-style: normal; }
@media (min-width: 620px) { .coach-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (min-width: 960px) { .coach-list { grid-template-columns: repeat(3, 1fr); } }

/* ======================= Reviews [TI/BA social proof, EQ no chrome] ======================= */
figure.card.review { background: transparent; border: 0; border-top: 2px solid var(--ink); padding: 20px 0 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; font: 500 19px/1.5 var(--sans); }
.review figcaption { font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ======================= Red closing band [RU "Find a Rumble", TI CTA banner, EQ stark CTA] ======================= */
.band { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.band h2, body .section.band h2 { font-size: clamp(44px, 10vw, 80px); line-height: .9; }
.band .muted { margin-top: 12px; font-size: 17px; max-width: 40em; color: #fff; }
.band a:not(.btn) { color: #fff; text-decoration-color: #fff; }
@media (min-width: 620px) { .band { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; } }

/* ======================= Plans [EQ baseline price row, BA most-popular top bar, TI full-width CTA] ======================= */
.plans { border-top: 2px solid var(--ink); }
.plan { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 12px; border-bottom: 1px solid var(--line); }
.plan h3 { font-size: 19px; }
.plan-main .muted { margin-top: 4px; }
.plan-main .sc { font-size: 11px; margin-left: 2px; }
.plan-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.plan-price { font: 800 36px/1 var(--display); }
.plan-save { font: 600 13px var(--sans); color: var(--ok); }
.plan-save s { color: var(--muted); margin-right: 4px; }
.plan-side .btn { margin-top: 8px; }
.plan.is-best { box-shadow: inset 0 4px 0 var(--brand); }
@media (min-width: 960px) {
  .plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; border-top: 0; }
  .plan {
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 20px; padding: 28px 24px;
    background: var(--white); border: 1px solid var(--line); box-shadow: inset 0 4px 0 var(--ink);
  }
  .plan.is-best { box-shadow: inset 0 4px 0 var(--brand); border-color: var(--ink); }
  .plan-price { font-size: 52px; }
  .plan-side { align-items: flex-start; text-align: left; margin-top: auto; }
  .plan-side .btn { width: 100%; margin-top: 16px; }
  .plan-dropin { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; background: var(--paper-2); box-shadow: none; }
  .plan-dropin .plan-side { margin-top: 0; align-items: flex-end; }
}

/* ======================= Events and date blocks ======================= */
.card.event { display: flex; gap: 16px; align-items: flex-start; padding: 16px; }
.event-info { display: grid; gap: 4px; min-width: 0; }
.event-info h3 { font-size: 20px; }
.date-block { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; padding: 10px 0; background: var(--ink); color: #fff; line-height: 1; }
.date-block .sc { color: var(--brand-on-night); }
.date-block strong { font: 900 36px/1 var(--display); margin: 2px 0; }
.date-block small { font: 500 12px var(--sans); color: #ABABAB; }
.past-event > .num { flex: none; width: 104px; color: var(--muted); font-size: 14px; }
.mini-date { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 52px; background: var(--ink); color: #fff; line-height: 1; }
.mini-date .sc { color: var(--brand-on-night); font-size: 11px; }
.mini-date strong { font: 800 22px var(--display); }

/* ======================= Hours, directions, contact [TI hours table] ======================= */
.hours { display: grid; border-top: 2px solid var(--line-strong); }
.hours > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours dt { min-width: 0; font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.hours dd { flex: none; font: 500 16px var(--sans); text-align: right; white-space: nowrap; }
.directions { display: grid; gap: 14px; }
.directions dt { color: var(--text); }
.directions dd { color: var(--muted); font-size: 15px; margin-top: 2px; }
.contact-lines { margin-top: 12px; font: 500 18px/1.7 var(--sans); }
.visit-card { display: grid; gap: 24px; }
.visit-card h3 { font: 800 clamp(28px, 6vw, 40px)/.95 var(--display); text-transform: uppercase; letter-spacing: .005em; }
@media (min-width: 620px) { .visit-card { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ======================= FAQ [EQ accordion, drawn plus] ======================= */
.faq details { display: block; padding: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 12px; cursor: pointer; list-style: none; font: 700 17px/1.35 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background: linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat;
  transition: background-size .3s var(--ease-out);
}
.faq details[open] summary::after { background-size: 16px 2px, 2px 0; }
.faq details p { padding: 0 12px 20px; max-width: 62ch; font-size: 16px; line-height: 1.55; }

/* ======================= Prose and ticks ======================= */
.prose { max-width: 40em; display: grid; gap: 16px; }
.prose p:not(.lead) { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--brand); } /* red square bullet [BA] */

/* ======================= Member account ======================= */
.membership { display: flex; justify-content: space-between; gap: 16px; padding: 24px; background: var(--ink); border: 0; }
.membership h2 { color: #fff; margin-bottom: 6px; }
.membership-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; }
.refer .message { margin: 14px 0; }
.visit-row { justify-content: space-between; min-height: 52px; }

/* ======================= Done panel ======================= */
.done-panel { max-width: 520px; margin: 0 auto; padding-top: 40px; text-align: center; display: grid; gap: 16px; justify-items: center; }
body .done-panel h1 { font-size: clamp(52px, 13vw, 96px); line-height: .88; }
.done-panel .sheet-summary { width: 100%; }
.done-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--ok); color: var(--ok); }
.done-mark .mk-check { width: 12px; height: 22px; border-width: 0 3px 3px 0; transform: rotate(40deg) translate(-2px, -3px); }
.done-mark.is-again { border-color: var(--st-amber); color: var(--st-amber); }
body[data-area="door"] .done-mark.is-again { border-color: #F2A65A; color: #F2A65A; }

/* ======================= Markers (drawn shapes, never font glyphs) ======================= */
.mk, .mk-half, .mk-ring, .mk-dash, .mk-tri, .mk-check, .mk-dia { display: inline-block; flex: none; width: 7px; height: 7px; color: inherit; }
.mk { border-radius: 50%; background: currentColor; }
.mk-half { border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.mk-ring { border-radius: 50%; border: 2px solid currentColor; }
.mk-dash { width: 8px; height: 2px; background: currentColor; }
.mk-tri { width: 7px; height: 8px; background: currentColor; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.mk-check { width: 5px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(40deg) translate(-1px, -1px); }
.mk-dia { width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); }
.g-open { color: var(--st-green); }
.g-few { color: var(--mk-amber); }
.g-full, .g-closed { color: var(--dim); }
.g-win { color: var(--st-rose); }
.g-drift { color: var(--st-violet); }
.g-new { color: var(--st-blue); }
.g-money { color: var(--brand); }

/* ======================= Badges: colour + shape + word ======================= */
.badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none; height: 24px; padding: 0 8px; border-radius: 0;
  font: 700 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.badge b { font-weight: 800; }
.b-active { color: #1B6535; background: #E2F0E6; }
.b-renew, .b-contacted { color: #8A4600; background: #FAEBD5; }
.b-win { color: #9B1B5A; background: #F8E2EC; }
.b-drift { color: #5A3E9E; background: #ECE6F7; }
.b-lapsed { color: #4F4C46; background: #E8E6E1; }
.b-frozen { color: var(--st-blue); background: var(--st-blue-tint); }
.b-owes { color: #fff; background: #C8102E; }
.b-new { color: #1D5796; background: #E1EBF7; }
.b-attended { color: #0D6163; background: #DCEFEE; }
.b-joined { color: #fff; background: #1B6535; }
.b-kind-member { color: #fff; background: #121212; }
.b-kind-dropin { color: #121212; background: #fff; box-shadow: inset 0 0 0 1.5px #121212; }
.b-kind-intro { color: #1D5796; background: #fff; box-shadow: inset 0 0 0 1.5px #1D5796; }
.badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.badges-left { justify-content: flex-start; margin: 10px 0 4px; }

/* Small tags */
.count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; margin-left: 8px; background: var(--ink); color: #fff; font: 700 18px var(--display); vertical-align: middle; }
.goal-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--line-ctl); color: var(--muted); font-size: 14px; font-style: normal; }
.intro-tag { display: inline-flex; align-items: center; gap: 6px; color: #1D5796; font: 700 13px var(--sans); }
.wait-tag { color: #8A4600; font: 700 13px var(--sans); }
.wait-pos { flex: none; width: 26px; height: 26px; display: grid; place-items: center; background: #FAEBD5; color: #8A4600; font: 700 13px var(--sans); }
.texted { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--ok); font: 700 13px var(--sans); }

/* ======================= Chips and segmented controls [BA segmented bar, TS solid-black active] ======================= */
.chips {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 12px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 2px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0;
  background: var(--surface); color: var(--text); font: 600 14px var(--sans); cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease-ui), color .2s var(--ease-ui), border-color .2s var(--ease-ui);
}
.chip:hover { border-color: var(--text); }
.chip .num { color: var(--dim); font-weight: 600; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on .num { color: #fff; }
@media (pointer: fine) { .chip { min-height: 36px; padding: 0 12px; } }
.segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; padding: 0; max-width: 560px; border: 2px solid var(--ink); background: var(--surface); }
.segs-inline { width: 300px; }
.seg {
  min-height: 44px; padding: 0 10px; background: none; border: 0; border-radius: 0; color: var(--text);
  font: 700 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease-ui), color .2s var(--ease-ui);
}
.seg + .seg { border-left: 2px solid var(--ink); }
.seg .num { color: var(--muted); margin-left: 4px; }
.seg.on { background: var(--ink); color: #fff; }
.seg.on .num { color: #ABABAB; }
/* Three long labels on a phone: let them wrap inside the bar rather than spill out of it */
@media (max-width: 619px) { .seg { padding: 4px 6px; letter-spacing: .04em; white-space: normal; line-height: 1.15; } }
/* Back office + portal: view tabs are underline tabs (red bar = the nav's active bar) */
body:is([data-area='staff'], [data-area='team']) .segs { display: flex; gap: 24px; width: auto; max-width: none; padding: 0; border: 0; background: none; box-shadow: inset 0 -1px 0 var(--line); overflow-x: auto; scrollbar-width: none; }
body:is([data-area='staff'], [data-area='team']) .segs::-webkit-scrollbar { display: none; }
body:is([data-area='staff'], [data-area='team']) .seg { flex: none; min-height: 44px; padding: 0 2px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font: 800 18px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; transition: color .2s var(--ease-ui), border-color .2s var(--ease-ui); }
body:is([data-area='staff'], [data-area='team']) .seg:hover { color: var(--text); }
body:is([data-area='staff'], [data-area='team']) .seg.on { background: none; color: var(--text); border-bottom-color: var(--accent); }
body:is([data-area='staff'], [data-area='team']) .seg .num, body:is([data-area='staff'], [data-area='team']) .seg.on .num { margin-left: 4px; color: var(--muted); font: 700 13px/1 var(--sans); }

/* ======================= Calendar ======================= */
.cal-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-day {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0;
  min-height: 64px; padding: 6px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 0; color: var(--text);
  font: inherit; transition: border-color .2s var(--ease-ui);
}
button.cal-day { cursor: pointer; }
.cal-wd { font: 700 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.cal-date { font: 800 24px/1 var(--display); }
.cal-avail { display: flex; height: 10px; align-items: center; }
.cal-avail [class^="mk"] { width: 9px; height: 9px; }
.cal-avail .mk-dash { width: 10px; height: 2px; }
.cal-day.st-available .cal-avail { color: var(--st-green); }
.cal-day.st-few { background: #FAEBD5; border-color: #EBD3AE; }
.cal-day.st-few .cal-avail { color: var(--mk-amber); }
.cal-day.st-full .cal-avail, .cal-day.st-full .cal-date { color: var(--dim); }
.cal-day.st-before, .cal-day.st-past { background: transparent; border-color: transparent; }
.cal-day.st-before :is(.cal-wd, .cal-date), .cal-day.st-past :is(.cal-wd, .cal-date) { color: var(--dim); }
.cal-day.st-out { background: transparent; border: 1px dashed var(--line-ctl); }
.cal-day.st-out :is(.cal-wd, .cal-date) { color: var(--dim); }
.cal-day.st-closed { background: repeating-linear-gradient(135deg, var(--paper) 0 6px, var(--paper-2) 6px 12px); border-color: var(--line); }
.cal-day.st-closed :is(.cal-date, .cal-avail, .cal-wd) { color: var(--muted); }
.cal-day.is-today .cal-wd { color: var(--accent-text); }
.cal-day.is-today .cal-date::after { content: ""; display: block; width: 18px; height: 3px; margin: 4px auto 0; background: var(--brand); }
.cal-day.is-selected { background: var(--ink); border-color: var(--ink); color: #fff; }
/* On the selected day the state shape turns white and stays visible */
.cal-day.is-selected :is(.cal-wd, .cal-date, .cal-avail, .cal-count), .cal-day.is-selected .cal-avail [class^="mk"] { color: #fff; }
.cal-mine { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--st-green); box-shadow: 0 0 0 2px var(--bg); }
.cal-mine svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cal-count { font: 700 14px var(--sans); color: var(--muted); line-height: 1; }
.cal-fill { position: absolute; left: 6px; right: 6px; bottom: 5px; height: 3px; background: var(--track); }
.cal-fill::before { content: ""; display: block; width: var(--fill); height: 100%; background: var(--st-green); }
.cal-fill.is-high::before { background: var(--mk-amber); }
.cal-fill.is-full::before { background: var(--dim); }
[data-mode="staff"] .cal-day:is(.st-before, .st-past) .cal-count { color: var(--dim); }
@media (pointer: fine) { button.cal-day:not(.is-selected):not(.st-out):hover { border-color: var(--ink); } }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend [class^="mk"] { width: 9px; height: 9px; }
.cal-legend .mk-dash { width: 10px; height: 2px; }
[data-mode="home"] .cal-day { min-height: 52px; }
.cal-wds { margin-bottom: 4px; }
.cal-wds span { text-align: center; color: var(--muted); }
@media (min-width: 620px) { .narrow .cal-day { min-height: 72px; } }
@media (min-width: 840px) { .cal-layout .cal-day { min-height: 72px; } }
@media (max-width: 359px) { .cal { gap: 2px; } .cal-date { font-size: 20px; } }
.agenda { margin-top: 28px; }
.agenda-head { margin-bottom: 14px; }
.agenda-head h2 { font-size: 30px; }
.agenda-head .muted { margin-top: 4px; }
.agenda .empty { background: var(--surface); border: 1px solid var(--line); }

/* ======================= Class rows [EQ schedule list rows] ======================= */
.class-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; min-height: 76px; gap: 12px; }
.class-time { font: 800 26px/1 var(--display); white-space: nowrap; }
.class-time small { margin-left: 2px; font: 700 11px var(--sans); letter-spacing: .06em; color: var(--muted); }
.class-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.class-info strong { font: 700 17px/1.3 var(--sans); }
.class-info em { font-size: 15px; color: var(--muted); line-height: 1.35; }
.class-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.class-side:has(.spots-wrap) { flex-direction: row; align-items: center; gap: 14px; }
.spots-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.info-spots { display: none; }
@media (max-width: 839px) {
  .spots-wrap { display: none; }
  .info-spots { display: block; margin-top: 2px; }
  .info-spots .spots { font-size: 14px; }
}
.spots { font-size: 14px; color: var(--muted); white-space: nowrap; }
.spots b { color: var(--text); font-weight: 700; }
.spots-few { color: var(--st-amber); font-weight: 700; }
.meter { display: block; width: 64px; height: 4px; background: var(--track); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--st-green); }
.meter.m-few span { background: var(--mk-amber); }
.meter.m-full span { background: var(--dim); }
.class-row.is-past :is(.class-time, .class-time small, .class-info strong, .class-info em, .spots, .fill-num, .fill-num strong) { color: var(--dim); }
.class-row.is-mine { cursor: pointer; box-shadow: inset 4px 0 0 var(--st-green); }
.class-row.is-mine:hover { background: var(--surface-2); }
.fill-num { font-size: 15px; color: var(--muted); }
.fill-num strong { font: 800 22px var(--display); color: var(--text); }
.class-row.row-link .class-side .meter { width: 80px; }

/* Free intro radio rows */
.slot-pick { cursor: pointer; font-weight: 400; }
.slot-pick .class-side { flex-direction: row; align-items: center; gap: 12px; }
.radio-ring { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-ctl); display: grid; place-items: center; }
.slot-pick:has(input:checked) { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.slot-pick input:checked ~ .class-side .radio-ring { border-color: var(--ink); }
.slot-pick input:checked ~ .class-side .radio-ring::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.slot-pick:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.slot-pick.is-full { cursor: default; }
.slot-pick.is-full :is(.class-time, strong, em) { color: var(--dim); }
.slot-pick.is-full .radio-ring { border-color: var(--line); }

/* ======================= Desktop timetable [RU square cards + status bar, EQ hairlines] ======================= */
.tt-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.tt-toolbar .cal-legend { margin: 0; }
.tt-toolbar .muted { margin-top: 4px; }
.timetable { display: grid; grid-template-columns: var(--cols); column-gap: 8px; }
.tt-corner, .tt-head { position: sticky; top: calc(var(--top-h) + 48px); z-index: 3; background: var(--bg); }
body[data-area="site"] :is(.tt-head, .tt-corner) { top: var(--top-h); }
.tt-corner { border-bottom: 2px solid var(--ink); }
.tt-head {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px;
  min-height: 72px; padding: 8px 0 10px; border-bottom: 2px solid var(--ink); text-align: center;
}
.tt-head .sc { color: var(--muted); }
.tt-head strong { font: 800 28px/1 var(--display); }
.tt-head em { font-size: 13px; color: var(--dim); line-height: 1.1; font-style: normal; }
.tt-head .kicker { margin: 0; font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); }
.tt-head.is-today strong { color: var(--accent-text); }
.tt-head.is-dim :is(.sc, strong) { color: var(--dim); }
.tt-head.is-closed em { color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); }
.tt-time { padding: 12px 10px 0 0; text-align: right; font: 700 20px/1 var(--display); border-top: 1px solid var(--line); }
.tt-time small { font: 700 11px var(--sans); color: var(--muted); margin-left: 2px; }
.tt-cell { display: flex; flex-direction: column; gap: 6px; min-height: 96px; padding: 6px 0; border-top: 1px solid var(--line); min-width: 0; }
.tt-cell.is-closed { background: repeating-linear-gradient(135deg, var(--paper) 0 6px, var(--paper-2) 6px 12px); border-top-color: transparent; }
.tt-break {
  grid-column: 1 / -1; display: flex; align-items: center; min-height: 32px; padding-left: 80px; border-top: 1px dashed var(--line-ctl);
  color: var(--muted); font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: .08em;
}
.slot-card {
  display: flex; flex-direction: column; align-items: stretch; gap: 2px; flex: 1; min-height: 68px; min-width: 0; padding: 10px 12px 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0; box-shadow: inset 4px 0 0 var(--line-ctl);
  color: var(--text); text-align: left; font: inherit; transition: border-color .2s var(--ease-ui);
}
button.slot-card { cursor: pointer; }
button.slot-card:hover { border-color: var(--ink); }
.slot-card strong { font: 700 15px/1.25 var(--sans); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slot-card em { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1099px) { .slot-card em { display: none; } }
.slot-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }
.slot-foot b { color: var(--text); }
.slot-card.st-open { box-shadow: inset 4px 0 0 var(--st-green); }
.slot-card.st-open .slot-foot .mk { color: var(--st-green); }
.slot-card.st-few { box-shadow: inset 4px 0 0 var(--mk-amber); }
.slot-card.st-few .slot-foot .mk-half { color: var(--mk-amber); }
.slot-card.st-full { cursor: pointer; box-shadow: inset 4px 0 0 var(--dim); }
.slot-card.st-mine { background: #E2F0E6; border-color: #BFDCC8; box-shadow: inset 4px 0 0 var(--st-green); }
.slot-card.st-past, .slot-card.st-out { background: transparent; box-shadow: none; }
.slot-card.st-out { border-style: dashed; border-color: var(--line-ctl); }
.slot-card:is(.st-past, .st-out) :is(strong, em, .slot-foot) { color: var(--dim); }
.staff-card { box-shadow: none; }
.staff-card.is-high { background: #FAEBD5; border-color: #EBD3AE; }
.staff-card.is-full { background: #FBE5E7; border-color: #EFC2C8; }
.staff-card.is-done :is(strong, em, .slot-foot) { color: var(--dim); }
.staff-card .meter { width: 100%; margin-top: 8px; }

/* ======================= Forms ======================= */
label { display: flex; flex-direction: column; gap: 6px; font: 600 15px/1.3 var(--sans); min-width: 0; }
/* Zero specificity, so .search and .status-select can restyle a field without !important wars */
:where(input:not([type="radio"]):not([type="checkbox"]), select, textarea) {
  width: 100%; min-width: 0; min-height: 52px; padding: 12px 14px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-ctl); border-radius: 0;
  font: 400 17px/1.3 var(--sans); /* 16px+ stops iOS zooming in */
}
input[type="search"] { -webkit-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:not([type="radio"]):not([type="checkbox"]):focus, select:focus, textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23121212' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
textarea { resize: vertical; }
.search {
  min-height: 52px; padding-left: 44px !important;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='5' fill='none' stroke='%235F5B55' stroke-width='1.8'/%3E%3Cpath d='M11 11l3.5 3.5' stroke='%235F5B55' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat 14px center / 16px;
}
body[data-area="door"] .search {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='5' fill='none' stroke='%23ABABAB' stroke-width='1.8'/%3E%3Cpath d='M11 11l3.5 3.5' stroke='%23ABABAB' stroke-width='1.8'/%3E%3C/svg%3E");
}
.search-lg { min-height: 60px !important; font-size: 20px !important; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin: 14px 0; }
.form-grid .full, .form-grid .half { grid-column: 1 / -1; }
@media (min-width: 620px) { .form-grid .half { grid-column: auto; } }
@media (max-width: 359px) { .form-grid { grid-template-columns: 1fr; } }
.form-error { display: flex; align-items: center; gap: 8px; margin: 14px 0; color: var(--error); font: 600 15px var(--sans); }
.form-error::before { content: "!"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid currentColor; font: 800 12px var(--sans); }
.check-row { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
.check-row + .btn { margin-top: 16px; }
.check-row input, .bulk-row input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
.affix { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; color: var(--muted); }
.price-table { display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 10px 12px; }
.price-table strong { font: 700 16px var(--sans); }

/* Intro and join steps: a top rule groups the form into clear parts */
.step { border: 0; border-top: 2px solid var(--ink); margin: 0 0 40px; padding: 20px 0 0; min-width: 0; }
.step > legend { float: left; width: 100%; padding: 0; margin: 0 0 16px; } /* float takes the legend out of the border line */
.step > legend + * { clear: left; }
.step legend .h3 { display: block; }

/* Pick cards [TS solid-black active] */
.pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pick-list { display: grid; gap: 8px; }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick > span {
  position: relative; display: flex; align-items: center; gap: 12px; height: 100%; min-height: 56px; padding: 14px 44px 14px 16px;
  background: var(--surface); border: 1px solid var(--line-ctl); font: 600 16px/1.25 var(--sans);
  transition: background-color .2s var(--ease-ui);
}
.pick > span strong { flex: 1; font-weight: 700; }
.pick > span > span.num { font: 800 22px var(--display); }
.pick > span em { color: var(--muted); font-size: 15px; font-weight: 400; font-style: normal; }
.pick input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pick input:checked + span em { color: #ABABAB; }
.pick input:checked + span::after { content: ""; position: absolute; right: 18px; top: 50%; width: 6px; height: 12px; margin-top: -8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(40deg); }
.pick input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (min-width: 620px) { .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Join summary */
.summary .sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 17px; }
.summary .sum-row strong { font: 800 26px var(--display); }
.summary .muted { margin-top: 6px; }

/* ======================= Intro bar (dark) ======================= */
.intro-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; border-top: 4px solid var(--brand); }
.intro-sum { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; min-width: 0; }
.intro-sum strong { font: 700 16px var(--sans); color: #fff; }
.intro-sum em { font-size: 14px; color: #ABABAB; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.intro-bar .btn { grid-column: 2; grid-row: 1; }
.intro-bar .waiver-check { grid-column: 1 / -1; grid-row: 2; color: #fff; font-size: 15px; }
.intro-bar .check-row input { accent-color: var(--brand); }
@media (max-width: 619px) {
  .intro-bar { position: sticky; bottom: 0; z-index: 5; margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
  .intro-sum em { display: none; }
  .intro-bar .btn { padding: 0 16px; }
}
/* 620+: a black panel. The 640px column has no room for summary, waiver and button on one line,
   so the waiver keeps its own row under them. */
@media (min-width: 620px) { .intro-bar { gap: 14px 20px; padding: 20px 24px; } }

/* ======================= Modals and bottom sheets ======================= */
.modal { background: var(--surface); color: var(--text); border: 0; border-radius: 0; padding: 24px; overflow-y: auto; box-shadow: 0 24px 64px rgba(0, 0, 0, .35); }
.modal::backdrop { background: rgba(14, 14, 14, .72); }
@media (max-width: 619px) {
  .modal {
    margin: auto 0 0; inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh;
    border-top: 4px solid var(--ink); padding: 28px 16px calc(16px + env(safe-area-inset-bottom));
  }
  .modal::before { content: ""; position: absolute; top: 10px; left: 50%; width: 40px; height: 4px; margin-left: -20px; background: var(--line); }
  .modal.is-viewer { inset: 0; margin: auto 0; width: 100%; max-height: 100dvh; padding: 0 0 env(safe-area-inset-bottom); }
}
@media (min-width: 620px) { .modal { width: 560px; max-width: calc(100vw - 48px); max-height: 88vh; padding: 32px; border-top: 4px solid var(--ink); } }
.modal.is-viewer { border: 0; }
.modal-actions {
  position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 20px; margin-bottom: calc(-16px - env(safe-area-inset-bottom)); padding: 14px 0 calc(16px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
@media (min-width: 620px) { .modal-actions { bottom: -32px; margin-bottom: -32px; padding-bottom: 32px; } }
.modal-actions.single { grid-template-columns: 1fr; }
.modal-actions .btn { min-height: 48px; }
.sheet-summary { display: flex; flex-direction: column; gap: 2px; margin: 14px 0; padding: 14px 16px; background: var(--surface-2); box-shadow: inset 4px 0 0 var(--ink); text-align: left; }
.sheet-summary strong { font: 700 18px var(--sans); }
.sheet-summary em { color: var(--muted); font-size: 15px; }
.modal .list-card { background: transparent; }
.modal .sub-head { margin: 24px 0 6px; font-size: 24px; }
.renew-preview { margin: 6px 0 10px; padding: 12px 14px; background: var(--surface-2); box-shadow: inset 4px 0 0 var(--ink); font: 600 15px var(--sans); }
.roster-count { margin: 14px 0 10px; color: var(--muted); }
.roster-count strong { font: 800 36px/1 var(--display); color: var(--text); }
.roster-list { max-height: 44vh; overflow-y: auto; }
.roster-list .row { min-height: 56px; padding: 8px 12px; }
.add-booking { display: flex; gap: 8px; margin-top: 14px; }
.add-booking select { flex: 1; }
.sheet-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 16px 0; border-top: 1px solid var(--line); }
.sheet-facts > div { min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sheet-facts .full { grid-column: 1 / -1; }
.sheet-facts dt { color: var(--muted); }
.sheet-facts dd { font: 500 16px var(--sans); margin-top: 2px; overflow-wrap: anywhere; }
.sheet-facts a { text-decoration-color: var(--line-ctl); }
.sheet-facts a:hover { text-decoration-color: var(--accent-text); }
.actions-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.actions-2 .span-2 { grid-column: 1 / -1; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-head > div { min-width: 0; }
.sheet-head h2 { overflow-wrap: anywhere; }
.icon-btn { position: relative; flex: none; width: 44px; height: 44px; margin: -8px -10px 0 0; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; transition: background-color .2s var(--ease-ui), color .2s var(--ease-ui); }
.icon-btn::before, .icon-btn::after { content: ''; position: absolute; top: 50%; left: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; background: currentColor; transform: rotate(45deg); }
.icon-btn::after { transform: rotate(-45deg); }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.modal-actions.sheet-actions { grid-template-columns: auto auto minmax(0, 1fr); }
/* Call · Email · Edit · Mark renewed: one row on a computer, two by two on a phone. */
.modal-actions.sheet-actions:has(> :nth-child(4)) { grid-template-columns: auto auto auto minmax(0, 1fr); }
@media (max-width: 480px) { .modal-actions.sheet-actions:has(> :nth-child(4)) { grid-template-columns: 1fr 1fr; } }
.sheet-actions .btn { padding: 0 16px; }
.owes-box { margin: 0 0 16px; padding: 14px 16px; background: var(--note-money); box-shadow: inset 4px 0 0 var(--brand); color: var(--ink); }
.owes-box p { margin-bottom: 12px; font-size: 15px; }
.paid-line { margin-bottom: 14px; color: var(--ok); font-weight: 700; }
.waiver-btn { margin-bottom: 10px; }
.sheet-history { margin: 0 0 16px; padding: 12px 14px; background: var(--surface-2); font-size: 15px; }
.sheet-history .sc { margin-bottom: 6px; }
.bulk-list { max-height: 50vh; overflow-y: auto; }
label.bulk-row { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; cursor: pointer; }
.bulk-row input { margin-top: 3px; }
.bulk-row em { font-size: 14px; }

/* ======================= Toast ======================= */
.toast {
  position: fixed; left: 50%; z-index: 30; transform: translateX(-50%);
  bottom: calc(24px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); width: max-content;
  padding: 14px 18px 14px 20px; background: var(--ink); color: #fff; border-radius: 0;
  box-shadow: inset 4px 0 0 var(--brand), 0 12px 32px rgba(0, 0, 0, .3); font: 600 15px var(--sans);
}
/* As a popover: undo the browser's default popover box (and keep it at the bottom) */
.toast[popover] { inset: auto; margin: 0; border: 0; overflow: visible; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); }
body[data-area="staff"] .toast { bottom: calc(var(--tabs-h) + 16px + env(safe-area-inset-bottom)); }
body:has(.door-bar) .toast, body:has(.intro-bar) .toast { bottom: calc(104px + env(safe-area-inset-bottom)); }
body[data-area="staff"]:has(.door-bar) .toast { bottom: calc(164px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) {
  body[data-area="staff"] .toast { bottom: 24px; }
  body[data-area="staff"]:has(.door-bar) .toast { bottom: 104px; }
}

/* ======================= Guided demo card ======================= */
.tour {
  position: fixed; z-index: 40; margin: 0;
  inset: auto 12px calc(var(--tabs-h) + 12px + env(safe-area-inset-bottom)) 12px;
  max-width: 440px; padding: 18px 20px 20px;
  background: var(--night); color: #fff; border: 0; border-top: 4px solid var(--brand); border-radius: 0;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .45); overflow: visible;
}
body:not([data-area="staff"]) .tour { inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px; }
/* Keep the card clear of the door's Check-in bar too */
body:has(.door-bar) .tour { bottom: calc(100px + env(safe-area-inset-bottom)); }
body[data-area="staff"]:has(.door-bar) .tour { bottom: calc(var(--tabs-h) + 100px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) {
  .tour, body:not([data-area="staff"]) .tour { inset: auto 24px 24px auto; width: 400px; }
  body:has(.door-bar) .tour, body[data-area="staff"]:has(.door-bar) .tour { bottom: 112px; }
}
.tour-top { display: flex; align-items: center; justify-content: space-between; }
.tour-top .kicker { margin: 0; color: #ABABAB; }
.tour h3 { margin: 6px 0 8px; font-size: 20px; color: #fff; }
.tour p { font-size: 16px; line-height: 1.5; color: #E0E0E0; }
.tour-x { width: 44px; height: 44px; margin: -12px -12px -10px 0; background: none; border: 0; color: #ABABAB; font-size: 18px; cursor: pointer; }
.tour-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; }
.tour-target { outline: 3px solid var(--brand) !important; outline-offset: 4px; animation: tour-pulse 1.6s var(--ease-out) 2; }
@keyframes tour-pulse { 50% { outline-offset: 8px; } }
body.touring .view { padding-bottom: 280px; }

/* ======================= Stat tiles [EQ big numerals, hairline tiles] ======================= */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--line-strong); border-left: 1px solid var(--line); }
.stats .stat:last-child:nth-child(odd) { grid-column: span 2; }
.stat {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 16px;
  background: var(--surface); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0;
  color: var(--text); text-align: left; font: inherit; container-type: inline-size; transition: background-color .2s var(--ease-ui);
}
button.stat { cursor: pointer; }
button.stat:hover { background: var(--surface-2); }
/* tiles touch (gap 0) and each is position: relative + opaque, so the next tile would paint over this one's
   focus ring / tour outline on its right and bottom edges; lift the highlighted tile above its neighbours */
.stats > .stat:focus-visible, .stats > .stat.tour-target { z-index: 1; }
/* neutralise x-summary.css line 10 (ink border on hover), which would now paint a black right/bottom edge */
.stats > .stat.sum-stat:has(> button.sum-stat-hit:hover) { background: var(--surface-2); border-color: var(--line); }
.stat .chev { position: absolute; top: 20px; right: 16px; }
.stat-label { display: flex; align-items: center; gap: 8px; padding-right: 18px; color: var(--muted); line-height: 1.25; }
.stat-label [class^='mk'] { width: 8px; height: 8px; }
.stat .stat-label { min-height: 2.5em; align-items: flex-start; }
.stat .stat-label [class^='mk'] { margin-top: .3em; }
.stat-num { font: 800 44px/.95 var(--display); margin: 8px 0 4px; }
.stat-sub { font-size: 13px; color: var(--muted); line-height: 1.35; }
@media (min-width: 620px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats .stat:last-child:nth-child(odd) { grid-column: auto; }
}
.stats.stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) {
  .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .stats.stats-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stats.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-num { font-size: 52px; }
}
.stat .stat-num { font-size: clamp(36px, 30cqi, 52px); margin: 10px 0 6px; }

/* ======================= Dashboard extras ======================= */
/* One sentence with the arrow pinned right (as flex, the bold lead-in and the rest split into two columns) */
.demo-banner {
  position: relative; display: block; margin-bottom: 20px; padding: 14px 44px 14px 16px;
  background: var(--ink); color: #fff; text-decoration: none; font-size: 15px; transition: background-color .2s var(--ease-ui);
}
.demo-banner:hover { background: var(--night-3); }
.demo-banner strong { margin-right: 6px; }
.demo-banner .chev { position: absolute; right: 18px; top: 50%; margin-top: -4px; color: #fff; }
.winback { background: #E2F0E6; border-color: #BFDCC8; box-shadow: inset 4px 0 0 var(--st-green); }
.winback-num { font: 800 32px/1.05 var(--display); text-transform: uppercase; }
.winback-num .num { color: var(--st-green); }
.winback .muted { margin-top: 8px; }
.person { display: flex; flex-direction: column; }
.person-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.person-head h3 { font-size: 18px; }
.person-head .muted { overflow-wrap: anywhere; margin-top: 2px; }
.key-date { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: 15px; }
.key-date strong { font-weight: 700; }
.key-date span { color: var(--muted); font-size: 13px; }
/* The one rounded shape: it depicts a text-message bubble */
.message { flex: 1; margin: 14px 0; padding: 12px 14px; background: var(--surface-2); border-radius: 16px 16px 16px 4px; font-size: 15px; line-height: 1.45; -webkit-user-select: text; user-select: text; }
.card .message { background: var(--paper-2); }
.lead-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; }
.lead-note { margin-top: 10px; color: var(--muted); font-style: italic; font-size: 15px; }
.status-select { flex: none; width: auto !important; min-height: 44px !important; padding: 0 36px 0 12px !important; font: 700 14px var(--sans) !important; border-radius: 0; border-width: 1.5px !important; }
.s-new { color: #1D5796 !important; background-color: #E1EBF7 !important; border-color: #1D5796 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231D5796' stroke-width='1.8'/%3E%3C/svg%3E") !important; }
.s-contacted { color: #8A4600 !important; background-color: #FAEBD5 !important; border-color: #8A4600 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238A4600' stroke-width='1.8'/%3E%3C/svg%3E") !important; }
.s-attended { color: #0D6163 !important; background-color: #DCEFEE !important; border-color: #0D6163 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230D6163' stroke-width='1.8'/%3E%3C/svg%3E") !important; }
.s-joined { color: #1B6535 !important; background-color: #E2F0E6 !important; border-color: #1B6535 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231B6535' stroke-width='1.8'/%3E%3C/svg%3E") !important; }
.s-no-show { color: #4F4C46 !important; background-color: #E8E6E1 !important; border-color: #4F4C46 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234F4C46' stroke-width='1.8'/%3E%3C/svg%3E") !important; }

/* ======================= Charts ======================= */
.chart-card { padding: 20px; }
.chart-readout { font: 600 15px var(--sans); margin-bottom: 12px; min-height: 22px; }
.bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.bars-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bars-6 .bar-col { cursor: default; }
.bar-col { display: flex; flex-direction: column; align-items: stretch; background: none; border: 0; padding: 0; cursor: pointer; min-width: 0; font: inherit; color: inherit; }
.bar-track { display: flex; align-items: flex-end; height: 160px; padding-top: 26px; border-bottom: 2px solid var(--ink); }
.bar { position: relative; display: block; width: 100%; min-height: 2px; background: var(--ink-2); border-radius: 0; transition: background-color .2s var(--ease-ui); }
.bar-col:hover .bar, .bar-col:focus-visible .bar { background: var(--ink); }
.latest .bar, .latest:hover .bar { background: var(--brand); }
.bar b { position: absolute; left: 0; right: 0; top: -24px; text-align: center; font: 700 18px var(--display); text-transform: uppercase; color: var(--text); }
.bar-x { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; white-space: nowrap; }
@media (max-width: 619px) { .bar-x.odd { visibility: hidden; } }
@media (min-width: 960px) { .bar-track { height: 200px; } }
.busy-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 44px; min-height: 52px; }
.busy-label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.busy-label strong { font: 700 15px var(--sans); }
.busy-label em { color: var(--muted); font-size: 15px; }
.busy-bar { height: 8px; background: var(--track); }
.busy-bar span { display: block; height: 100%; background: var(--ink-2); }
.busy-bar span.is-top { background: var(--brand); }
.busy-num { text-align: right; font: 700 20px var(--display); }
.funnel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.funnel > div { display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.funnel > div:nth-child(1) { background: var(--surface); border: 1px solid var(--line); }
.funnel > div:nth-child(2) { background: var(--ink-2); color: #fff; }
.funnel > div:nth-child(3) { background: var(--brand); color: #fff; }
.funnel .num { font: 800 40px/1 var(--display); }
.funnel em { font-size: 13px; font-style: normal; }
.funnel > div:nth-child(1) em { color: var(--muted); }
.heat { overflow-x: auto; }
.heat-grid { display: grid; grid-template-columns: 44px repeat(var(--cols), minmax(30px, 1fr)); gap: 3px; min-width: 340px; }
.heat-h, .heat-d { color: var(--muted); font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .06em; text-align: center; align-self: center; }
.heat-d { text-align: left; }
.heat-c { display: grid; place-items: center; height: 32px; border-radius: 0; font: 600 12px var(--sans); color: var(--ink); background: rgba(200, 16, 46, calc(.04 + var(--a) * .61)); }

/* ======================= Automations ======================= */
.auto-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.auto-next { margin-top: 12px; padding: 10px 12px; background: var(--surface-2); font-size: 15px; }
.auto-next.is-off { color: var(--muted); font-style: normal; }
.switch { position: relative; flex: none; display: inline-block; width: 52px; height: 30px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 0; background: var(--track); border: 1px solid var(--line-ctl); transition: background-color .2s var(--ease-ui); }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line-ctl); transition: transform .3s var(--ease-out); }
.switch input:checked + span { background: var(--st-green); border-color: var(--st-green); }
.switch input:checked + span::after { transform: translateX(22px); box-shadow: none; }
.switch input:disabled + span { opacity: .5; }
.switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ======================= Demos page ======================= */
.scenario-grid { display: grid; gap: 12px; }
@media (min-width: 620px) { .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .scenario-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.scenario { display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--ink); }
.scenario p { font-size: 15px; }
.scenario-today { color: var(--muted); }
.scenario-today strong { color: var(--brand); }
.scenario-fix strong { color: var(--ok); }
.scenario .btn { margin-top: auto; align-self: flex-start; }
.finding { align-items: flex-start; }
.finding .row-main em { margin-top: 4px; }
.finding-fix { margin-top: 8px; color: var(--ok); font-size: 15px; }
.finding-fix::before { content: "Fixed by: "; font-weight: 700; }

/* ======================= Notices and demo notes ======================= */
/* Notices keep ink text everywhere, even inside dark contexts */
.notice { display: block; padding: 12px 14px; background: var(--note-info); box-shadow: inset 4px 0 0 #1D5796; color: var(--ink); font-size: 16px; border-radius: 0; }
.notice-money { background: var(--note-money); box-shadow: inset 4px 0 0 var(--brand); }
.notice-warn { background: var(--note-warn); box-shadow: inset 4px 0 0 #8A4600; text-align: left; }
/* Dashed outline reads as "not real data", unlike every filled notice */
.demo-note { margin: 14px 0; padding: 12px 14px; border: 1px dashed var(--line-ctl); background: transparent; color: var(--muted); font-size: 15px; font-style: normal; border-radius: 0; }

/* ======================= Door check-in (a fully dark kiosk) ======================= */
.door { max-width: 560px; margin: 0 auto; padding-bottom: 104px; }
.door h1 { margin-bottom: 16px; }
body .door h1 { font-size: 48px; }
.door-names { margin-top: 14px; }
.door-name { justify-content: space-between; min-height: 64px; font: 600 20px var(--sans); cursor: pointer; }
.door-name .mk-check { visibility: hidden; width: 8px; height: 14px; border-width: 0 2.5px 2.5px 0; }
.door-name.on { background: var(--text); color: var(--bg); }
.door-name.on .mk-check { visibility: visible; }
.door-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; display: flex; justify-content: center;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--night); border-top: 1px solid var(--night-line);
}
.door-bar .btn { max-width: 560px; }
.door-bar .btn:disabled { background: var(--night-3); border-color: var(--night-line); color: #8F8F8F; }
body[data-area="staff"] .door-bar { bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); }
.door-qr { margin-bottom: 24px; }
.door-qr summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; }
@media (min-width: 960px) {
  body .door h1 { font-size: 56px; }
  body[data-area="staff"] .door-bar { bottom: 0; }
}

/* QR tiles */
.qr-area { display: grid; gap: 16px; }
.qr { display: flex; gap: 16px; align-items: center; min-width: 0; margin: 0; }
.qr-img { flex: none; width: 128px; padding: 8px; background: #fff; border: 1px solid var(--line); line-height: 0; }
.qr figcaption { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qr figcaption strong { font: 700 16px var(--sans); }
.qr code { font: 400 13px var(--sans); color: var(--muted); overflow-wrap: anywhere; }
@media (min-width: 620px) { .qr-area { grid-template-columns: 1fr 1fr; } }

/* ======================= Members list ======================= */
.sticky-tools {
  position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top)); z-index: 6;
  margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter) 12px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.sticky-tools .chips { margin-top: 10px; }
.member-tools { border-bottom: 2px solid var(--line-strong); } /* the list's one strong rule; still visible when the bar is stuck */
.member-tools .search { min-height: 44px; padding-top: 0; padding-bottom: 0; }
.member-list { margin-top: 0; border-top: 0; } /* no double rule under the toolbar */
.member-row { position: relative; padding: 0; transition: background-color .2s var(--ease-ui); }
.member-row:hover { background: var(--surface-2); }
.member-hit {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; width: 100%; padding: 14px 12px;
  background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; font: inherit;
}
.member-hit::after { content: ''; position: absolute; inset: 0; } /* the whole row opens the profile */
.member-facts a, .member-actions { position: relative; z-index: 1; }
.member-name { display: flex; flex-direction: column; min-width: 0; }
.member-name strong { font: 700 17px var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-name em { font-size: 15px; color: var(--muted); }
.member-line { grid-column: 1 / -1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.member-facts dd { font-size: 14px; white-space: nowrap; }
.member-facts a { text-decoration: none; }
.member-actions { display: flex; justify-content: flex-end; gap: 6px; }
.member-actions .btn.is-due { border-color: var(--accent); color: var(--accent-text); }
.member-actions .btn.is-due:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (min-width: 960px) {
  .sticky-tools { top: calc(var(--top-h) + 48px); }
  .member-tools { display: flex; align-items: flex-start; gap: 12px; padding-block: 12px; }
  .member-tools .search { flex: 0 0 300px; min-height: 36px; font-size: 15px; }
  .member-tools #member-chips { flex: 1; min-width: 0; }
  .member-tools .chips { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .member-head, .member-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 80px 96px 64px 100px 196px; column-gap: 12px; align-items: center; padding: 0 12px; }
  .member-head { min-height: 40px; border-bottom: 1px solid var(--line-ctl); color: var(--muted); font: 700 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
  .member-row { min-height: 56px; }
  .member-hit { grid-column: 1 / 3; grid-template-columns: minmax(0, 1fr) 120px; column-gap: 12px; align-items: center; padding: 10px 0; }
  .member-hit .badges { justify-content: flex-start; }
  .member-name strong { font-size: 16px; }
  .member-name em { font-size: 14px; }
  .member-facts { grid-column: 3 / 7; grid-template-columns: 80px 96px 64px 100px; column-gap: 12px; }
  .member-facts dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .member-actions { grid-column: 7; }
  .member-line { display: none; }
}


/* ======================= Footer (dark) [EQ/RU black footer, big column heads] ======================= */
.foot { background: var(--night); color: #ABABAB; padding: 56px var(--gutter) calc(32px + env(safe-area-inset-bottom)); font-size: 15px; line-height: 1.6; }
.foot-grid { max-width: 1120px; margin: 0 auto; display: grid; gap: 32px; }
.foot .foot-head { font: 800 24px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; color: #fff; margin-bottom: 14px; }
.foot p + p { margin-top: 8px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
.foot-note { max-width: 1120px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--night-line); font-size: 13px; color: #8F8F8F; font-style: normal; }
@media (min-width: 620px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

/* ======================= Motion ======================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .photo-btn:hover img { transform: none; }
}
