/* Off Leash CrossFit — the whole site's look, in one stylesheet ("Night Box").
 *
 * The gym at 5:30 PM: an ink-dark page, bone type, chalk-dust grain, hairline rules, and hot pink as
 * the one accent (buttons, rules, the current item). Colours and faces come from the logo kit's
 * README: Hot Pink #FF2E7A, Ink #15171B, Bone #F2EBDD, Chalk #D8D0C0, Concrete #5F5B54;
 * Saira Condensed for display, Barlow for reading.
 *
 * Two rules the layout is built on:
 *   - Corners are square, and edges are hairlines. No radius, no corner cuts, no shadows.
 *   - Every grid is `repeat(auto-fit, minmax(min(Npx, 100%), 1fr))`, so it collapses to one column
 *     on a phone without a media query.
 * Pink text only ever sits on ink (5.1:1); on pink, text is ink.
 */

/* ------------------------------------------------------------------ fonts */

/* Served from this site, not Google Fonts: nothing fetched from another host before first paint, and
 * no visitor's address sent to Google. Both families are OFL (wwwroot/fonts/OFL-*.txt). */
@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/saira-condensed-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/saira-condensed-900-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/barlow-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/barlow-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Arial resized to take Barlow's room, so the swap does not move the page. Measured in Chrome,
 * 2026-10-21. Remeasure if the face changes. */
@font-face {
  font-family: "Barlow Fallback";
  font-weight: 400 500;
  src: local("Arial"), local("ArialMT");
  size-adjust: 90.98%;
  ascent-override: 109.91%;
  descent-override: 21.98%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Barlow Fallback";
  font-weight: 600 800;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 89.1%;
  ascent-override: 112.23%;
  descent-override: 22.45%;
  line-gap-override: 0%;
}

/* ------------------------------------------------------------------ tokens */

:root {
  --pink: #ff2e7a;
  --pink-hover: #ff5c97;
  --ink: #15171b;
  --ink-2: #1b1e23;
  --ink-3: #23262c;
  --bone: #f2ebdd;
  --chalk: #d8d0c0;
  --concrete: #5f5b54;
  --muted: #aaa294;
  --line: rgba(242, 235, 221, 0.14);
  --line-strong: rgba(242, 235, 221, 0.3);
  --input-border: #8a857c;
  --error: #ff8a80;

  /* Names the pages still use inline. */
  --line-dark: var(--line);
  --on-dark: var(--chalk);
  --on-dark-subtle: var(--muted);

  --display: "Saira Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Barlow Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --page: 1320px;
  --gutter: 40px;
  --section: 112px;
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
    --section: 72px;
  }
}

/* ------------------------------------------------------------------ base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}

/* Chalk dust over the whole page. Decorative, and it never takes a click. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.band :focus-visible {
  outline-color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--pink);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skip-link:focus {
  left: 0;
}

/* ------------------------------------------------------------------ layout */

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section {
  padding-block: var(--section);
}

section.tight {
  padding-block: calc(var(--section) * 0.8);
}

/* The whole site is dark now, so "on dark" is the plain page. It stays a class because the pages
   use it to mark their opening section. */
.on-dark {
  background: var(--ink);
}

.alt {
  background: var(--ink-2);
  border-block: 1px solid var(--line);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.row-between {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}

.split.top {
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 32px;
}

/* ------------------------------------------------------------------ type */

h1,
h2,
h3,
h4,
.h1 {
  font-family: var(--display);
  text-transform: uppercase;
  margin: 0;
  color: var(--bone);
  text-wrap: balance;
}

/* A page's <h1> says what the page is. Where the big line is a slogan, the slogan is a <p class="h1">
 * drawn as an h1, and the <h1> is the label above it, drawn as an eyebrow: search engines and screen
 * readers are told what the page is about, and nothing moves on the page. */
h1,
.h1 {
  font-weight: 900;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.88;
}

.h1 .dot {
  color: var(--pink);
}

h1.eyebrow {
  line-height: inherit;
}

h2 {
  font-weight: 900;
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: 0.9;
}

h3 {
  font-weight: 700;
  font-size: 30px;
  line-height: 1.05;
}

h3.sm {
  font-size: 24px;
  letter-spacing: 0.02em;
}

h4 {
  font-weight: 700;
  font-size: 22px;
}

p {
  margin: 0;
}

p a:not(.btn, .link) {
  text-decoration-color: var(--pink);
  text-underline-offset: 3px;
}

.lead {
  font-size: 20px;
  color: var(--chalk);
  max-width: 44ch;
}

.meta {
  font-size: 15px;
  color: var(--muted);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--pink);
  flex: 0 0 auto;
}

.prose {
  max-width: 68ch;
  color: var(--chalk);
}

.prose p + p,
.prose ul,
.prose ol {
  margin-top: 16px;
}

.prose h2 {
  font-size: clamp(34px, 3.6vw, 48px);
  margin-top: 56px;
}

.prose h3 {
  font-size: 26px;
  margin-top: 36px;
}

.prose a {
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* A lead is capped at 44ch so it stays a lead beside a hero. Inside prose it takes the column. */
.prose .lead {
  max-width: none;
}

code {
  font-size: 0.9em;
  color: var(--bone);
}

/* ------------------------------------------------------------------ buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--pink);
  cursor: pointer;
  background: var(--pink);
  color: var(--ink);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--pink-hover);
  border-color: var(--pink-hover);
  transform: translateY(-2px);
}

.btn.sm {
  min-height: 46px;
  padding: 0 20px;
  font-size: 16px;
}

.btn.ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line-strong);
}

.btn.ghost:hover {
  border-color: var(--bone);
}

/* On the pink band a pink button would vanish, so it turns ink. */
.btn.light {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}

.btn.light:hover {
  background: #000000;
  border-color: #000000;
}

.band .btn.ghost {
  color: var(--ink);
  border-color: var(--ink);
}

.btn.block {
  width: 100%;
}

.btn[aria-disabled="true"],
.btn:disabled {
  background: var(--ink-3);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

.link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  display: inline-block;
  padding-block: 12px;
}

.link:hover {
  color: var(--pink);
}

.band .link {
  text-decoration-color: var(--ink);
}

.band .link:hover {
  color: var(--ink);
  text-decoration-thickness: 3px;
}

/* ------------------------------------------------------------------ header */

.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 18px;
}

.site-header .logo img {
  height: 46px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 26px;
  margin-left: auto;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--chalk);
}

.site-nav a {
  padding: 12px 0 9px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--bone);
}

.site-nav a[aria-current="page"] {
  color: var(--bone);
  border-bottom-color: var(--pink);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.site-actions .member {
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--chalk);
  padding: 12px 0;
  text-decoration: none;
}

.site-actions .member:hover {
  color: var(--bone);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  background: transparent;
  border: 2px solid var(--line-strong);
  color: var(--bone);
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Below the width the full bar fits in one line, the nav becomes a disclosure. Without JavaScript it
   stays open, because a menu you cannot open is worse than one that is always there. */
@media (max-width: 1120px) {
  .site-header .logo img {
    height: 38px;
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .js .site-nav,
  .js .site-actions {
    display: none;
    flex-basis: 100%;
  }

  .js .site-header[data-open="true"] .site-nav,
  .js .site-header[data-open="true"] .site-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-left: 0;
    padding-bottom: 12px;
  }

  .js .site-header[data-open="true"] .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .js .site-header[data-open="true"] .site-nav a[aria-current="page"] {
    border-bottom-color: var(--pink);
  }

  .js .site-header[data-open="true"] .site-actions {
    gap: 12px;
    padding-top: 12px;
  }
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.footer-voice {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.85;
  text-transform: uppercase;
  color: var(--bone);
}

.footer-voice span {
  color: var(--pink);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 40px;
}

.site-footer img.mark {
  height: 52px;
  width: auto;
  display: block;
  align-self: flex-start;
}

.site-footer h2 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 4px;
}

.site-footer address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--chalk);
  font-size: 16px;
}

.site-footer address a {
  color: var(--bone);
  text-decoration: none;
}

.site-footer address a:hover {
  text-decoration: underline;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  color: var(--chalk);
}

.site-footer nav a {
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-underline-offset: 4px;
}

.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--chalk);
  font-size: 16px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer-legal span {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal a {
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--bone);
  text-decoration: underline;
}

/* ------------------------------------------------------------------ home hero */

.hero {
  position: relative;
  padding: 0;
  overflow-x: clip; /* the work light is wider than the page on purpose */
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 40px;
  min-height: min(calc(100vh - 160px), 860px);
  padding-top: 72px;
}

.hero .h1 {
  font-size: clamp(76px, 11.5vw, 188px);
  line-height: 0.84;
  margin-top: 22px;
}

.hero .lead {
  max-width: 32ch;
  margin-top: 28px;
}

.hero .row {
  margin-top: 32px;
  padding-bottom: 72px;
}

/* The dog on its box, standing on the pink floor line under a work light. */
.hero-mark {
  position: relative;
  margin: 0;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: min(130%, 100vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(242, 235, 221, 0.13), rgba(242, 235, 221, 0) 70%);
  pointer-events: none;
}

.hero-mark img {
  position: relative;
  width: min(100%, 440px);
  height: auto;
  display: block;
}

.floor {
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 46, 122, 0), var(--pink) 18%, var(--pink) 82%, rgba(255, 46, 122, 0));
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 40px;
    gap: 8px;
  }

  .hero .row {
    padding-bottom: 16px;
  }

  .hero-mark img {
    width: 60%;
  }
}

/* The next class, in one line under the floor. */
.next-strip {
  padding-block: 0;
  border-bottom: 1px solid var(--line);
}

.next-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 36px;
  padding-block: 26px;
}

.next-strip .label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
}

.next-strip .what {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}

.next-strip .when {
  color: var(--chalk);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.next-strip .open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.next-strip .open::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 46, 122, 0.2);
}

.next-strip .link {
  font-family: var(--display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 2px solid var(--pink);
  padding-block: 4px;
}

@media (max-width: 720px) {
  .next-strip .when {
    margin-left: 0;
  }
}

/* ------------------------------------------------------------------ page hero */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: 0; /* the wrap carries it */
  border-bottom: 1px solid var(--line);
}

/* Beside a photo or a form the column is half the page, so the big line comes down a size. */
.page-hero .split .h1,
.page-hero .split h1:not(.eyebrow) {
  font-size: clamp(52px, 6vw, 92px);
}

/* The same work light as the home page, low in the corner. */
.page-hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -30%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(242, 235, 221, 0.08), rgba(242, 235, 221, 0) 70%);
  pointer-events: none;
}

.page-hero .wrap {
  position: relative;
  padding-block: 96px 88px;
}

@media (max-width: 720px) {
  .page-hero .wrap {
    padding-block: 56px;
  }
}

.page-hero .wrap:not(.split) {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.page-hero .h1,
.page-hero h1:not(.eyebrow) {
  margin-top: 6px;
}

.page-hero .lead {
  max-width: 54ch;
  font-size: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--bone);
  text-decoration: underline;
}

.next-class {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--chalk);
}

.next-class .tag {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
}

/* ------------------------------------------------------------------ photos */

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 24px;
  text-align: center;
  background-color: var(--ink-2);
  background-image: repeating-linear-gradient(135deg, #1f2227 0 14px, var(--ink-2) 14px 28px);
  border: 1px solid var(--line);
}

/* A stand-in photo, in the same slot and shape as the striped block it replaces (Services/Todo.cs). */
.photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  background: var(--ink-2);
}

.photo-placeholder span {
  max-width: 28ch;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--chalk);
  font-size: 15px;
}

.photo-placeholder.hero-shape,
.photo.hero-shape {
  min-height: 560px;
}

.photo-placeholder.tall,
.photo.tall {
  min-height: 380px;
}

/* The gym on a Google map (Pages/Shared/_Map.cshtml). */
.map {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

@media (max-width: 720px) {
  .map iframe {
    height: 300px;
  }
}

/* ------------------------------------------------------------------ programs, numbered */

.prog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  border-top: 1px solid var(--line-strong);
}

.prog {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 36px 40px 0;
  border-bottom: 1px solid var(--line);
}

.prog + .prog {
  padding-left: 36px;
  border-left: 1px solid var(--line);
}

.prog .num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--chalk);
}

.prog .len {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
}

.prog p {
  color: var(--chalk);
}

.prog .link {
  margin-top: auto;
}

/* One column on a phone: the side rules become top rules. */
@media (max-width: 1080px) {
  .prog,
  .prog + .prog {
    padding: 28px 0 32px;
    border-left: 0;
  }
}

/* ------------------------------------------------------------------ cards */

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.card .body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.card .body .link {
  margin-top: auto;
  padding-top: 8px;
}

.card.cut,
.alt .card {
  background: var(--ink-3);
}

.note-card {
  border: 1px solid var(--line);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--ink-2);
}

.alt .note-card {
  background: var(--ink-3);
}

.note-card h3 {
  font-size: 24px;
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------------ plan cards */

.plan {
  border: 1px solid var(--line);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--ink-2);
}

.alt .plan {
  background: var(--ink-3);
}

/* The featured plan is the one bone card on a dark page. */
.plan.featured {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
}

.plan.featured h3 {
  color: var(--ink);
}

.plan .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan .price strong {
  font-family: var(--display);
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
}

.plan .price span,
.plan .desc {
  color: var(--muted);
}

.plan.featured .price span,
.plan.featured .desc {
  color: var(--concrete);
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan li svg {
  flex: 0 0 auto;
  margin-top: 4px;
}

.plan .btn {
  margin-top: auto;
  min-height: 52px;
  font-size: 17px;
  width: 100%;
}

.plan.featured .btn.ghost {
  color: var(--ink);
  border-color: var(--ink);
}

/* ------------------------------------------------------------------ the timetable */

.timetable {
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.daystrip {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.daystrip a {
  flex: 1 0 96px;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  text-decoration: none;
}

.daystrip a small {
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.daystrip a[aria-current="date"] {
  border-bottom-color: var(--pink);
  color: var(--bone);
}

.daystrip a:hover {
  color: var(--bone);
}

.session {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding: 24px 28px;
  border-top: 1px solid var(--line);
}

.session:first-child {
  border-top: 0;
}

/* Each day is its own element, so put back the line under the day strip. */
.dayclasses .session:first-child {
  border-top: 1px solid var(--line);
}

.session .time {
  flex: 0 0 140px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.session .what {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.session .what strong {
  font-weight: 700;
  font-size: 19px;
}

.session .spots {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--chalk);
}

.session .action {
  min-width: 160px;
}

.session.cancelled {
  background: var(--ink);
}

.session.cancelled .time {
  color: var(--muted);
  text-decoration: line-through;
}

.session.cancelled .what strong {
  color: var(--muted);
}

.session.done {
  opacity: 0.5;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--ink-3);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 700;
  color: var(--bone);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* "blue" is the old accent's name; the markup keeps it, the colour is the new accent. */
.badge.blue {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--ink);
}

.timetable .foot {
  padding: 18px 28px;
  background: var(--ink);
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

.timetable .foot a {
  color: var(--bone);
  font-weight: 700;
  text-decoration-color: var(--pink);
  text-underline-offset: 4px;
}

.timetable .empty {
  padding: 40px 28px;
  color: var(--muted);
}

/* The seven-day grid on /schedule. */
.weekgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.weekday {
  background: var(--ink-2);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.weekday.today {
  background: var(--ink-3);
  box-shadow: inset 0 3px 0 var(--pink);
}

.weekday h2 {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.weekday h2 span {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 900;
  color: var(--bone);
  letter-spacing: 0;
}

.slot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--ink);
  text-decoration: none;
  min-height: 44px;
}

a.slot:hover {
  border-color: var(--pink);
}

.slot .t {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.slot .n {
  font-weight: 700;
  font-size: 15px;
}

.slot .spots {
  font-weight: 600;
}

.slot .badge {
  align-self: flex-start;
  margin-top: 4px;
}

.slot.cancelled .t {
  text-decoration: line-through;
  color: var(--muted);
}

.slot.done {
  opacity: 0.5;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--chalk);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.chip:hover {
  border-color: var(--bone);
  color: var(--bone);
}

.chip[aria-pressed="true"],
.chip[aria-current="true"] {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--ink);
}

.weeknav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.weeknav .range {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------ WOD, a chalkboard */

.wod-card {
  background: radial-gradient(120% 90% at 30% 20%, #1c1f24, var(--ink) 70%);
  border: 10px solid var(--concrete);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.wod-card .method {
  font-family: var(--display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--bone);
}

.wod-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 20px;
}

.wod-card li {
  display: flex;
  gap: 20px;
  align-items: baseline;
  color: var(--bone);
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.wod-card li span:first-child {
  flex: 0 0 72px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  color: var(--pink);
}

.wod-card .notes {
  font-size: 16px;
  color: var(--chalk);
}

/* ------------------------------------------------------------------ steps */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.steps .n {
  flex: 0 0 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--bone);
  font-family: var(--display);
  font-weight: 900;
  font-size: 28px;
}

.steps li:last-child .n {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--ink);
}

.steps .what {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ------------------------------------------------------------------ timeline */

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.timeline li {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.timeline li:first-child {
  border-top: 0;
}

.timeline .when {
  flex: 0 0 110px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink);
  padding-top: 2px;
}

/* ------------------------------------------------------------------ forms */

form.panel {
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 720px) {
  form.panel {
    padding: 24px 18px;
  }
}

.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-weight: 600;
  font-size: 15px;
}

.field label .opt {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  padding: 0 14px;
  height: 50px;
  border: 1px solid var(--input-border);
  background: var(--ink);
  color: var(--bone);
  font: inherit;
  border-radius: 0;
  color-scheme: dark;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--pink);
}

.field textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}

.field .hint {
  font-size: 14px;
  color: var(--muted);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--error);
  border-width: 2px;
}

.field-error {
  color: var(--error);
  font-size: 14px;
  font-weight: 600;
}

.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
}

.choice input,
.pass input {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--pink);
}

.passes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pass {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
}

.pass:has(input:checked) {
  border-color: var(--pink);
  background: rgba(255, 46, 122, 0.08);
}

.pass .name {
  font-weight: 700;
}

.pass .cost {
  margin-left: auto;
  font-family: var(--display);
  font-weight: 900;
  font-size: 26px;
  white-space: nowrap;
}

.form-error {
  padding: 14px 18px;
  border: 1px solid var(--error);
  background: rgba(255, 138, 128, 0.08);
  color: var(--bone);
  font-size: 16px;
}

.form-note {
  font-size: 14px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ FAQ */

.faq {
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 48px 24px 0;
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  text-transform: uppercase;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2px solid var(--pink);
  border-bottom: 2px solid var(--pink);
  transform: rotate(45deg);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -3px;
}

.faq .answer {
  padding: 0 0 26px;
  color: var(--chalk);
  max-width: 72ch;
}

.faq .answer p + p {
  margin-top: 12px;
}

/* ------------------------------------------------------------------ comparison table */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
}

table.compare {
  border-collapse: collapse;
  width: 100%;
  min-width: 680px;
  background: var(--ink-2);
}

table.compare th,
table.compare td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.compare td {
  color: var(--chalk);
}

table.compare thead th {
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--ink);
  border-bottom-color: var(--line-strong);
}

table.compare tbody th {
  font-weight: 700;
  width: 220px;
}

table.compare tr:last-child td,
table.compare tr:last-child th {
  border-bottom: 0;
}

/* ------------------------------------------------------------------ CTA band: the pink voice band */

.band {
  position: relative;
  overflow: hidden;
  background: var(--pink);
  color: var(--ink);
  padding-block: 96px;
}

.band h2,
.band p {
  color: var(--ink);
}

.band h2 {
  font-size: clamp(52px, 7vw, 108px);
  line-height: 0.86;
}

.band p {
  font-size: 19px;
  font-weight: 600;
}

/* The mark, ghosted behind the band and the quote. */
.band .watermark,
.quote .watermark {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  height: 380px;
  width: auto;
  opacity: 0.12;
  pointer-events: none;
}

.quote .watermark {
  opacity: 0.08;
}

.band .wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 56px;
}

.quote {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border-block: 1px solid var(--line);
  padding-block: var(--section);
}

.quote figure {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Sentence case: a member's words read as speech, not as a sign. */
.quote blockquote {
  margin: 0;
  max-width: 34ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  color: var(--bone);
  text-wrap: pretty;
}

.quote figcaption {
  max-width: 60ch;
  font-size: 17px;
  font-weight: 600;
  color: var(--chalk);
}

.quote figcaption::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-bottom: 16px;
  background: var(--pink);
}

/* On a phone the text runs the full width, so the ghosted mark would sit under it. */
@media (max-width: 720px) {
  .band .watermark,
  .quote .watermark {
    display: none;
  }
}

/* ------------------------------------------------------------------ callout strip */

.strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 22px 28px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--chalk);
}

.strip strong {
  color: var(--bone);
}

.alt .strip {
  background: var(--ink-3);
}

.notice {
  padding: 18px 22px;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  color: var(--chalk);
  font-size: 16px;
}

/* ------------------------------------------------------------------ coaches, events, posts */

.coach .body {
  gap: 10px;
}

.certs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.certs li {
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  color: var(--bone);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.event {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.event:first-child {
  border-top: 0;
}

.datebox {
  flex: 0 0 92px;
  height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: var(--ink);
  font-family: var(--display);
  text-transform: uppercase;
}

.datebox .m {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.datebox .d {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.event .what {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ------------------------------------------------------------------ on-this-page nav */

.onpage {
  position: sticky;
  top: 24px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  border-left: 1px solid var(--line-strong);
  padding-left: 20px;
}

.onpage a {
  text-decoration: none;
  color: var(--muted);
}

.onpage a:hover {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--pink);
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

@media (min-width: 900px) {
  .legal-grid {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ deep links */

.deeplinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}

.deeplink {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  text-decoration: none;
}

.deeplink:hover {
  border-color: var(--pink);
}

.deeplink strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.deeplink span {
  color: var(--muted);
  font-size: 15px;
}

/* ------------------------------------------------------------------ content still to come */

/* Deliberately loud. Everything the gym has not supplied yet is visible, and carries data-todo so the
   whole list can be pulled off a rendered page (Services/Todo.cs, CONTENT-TODO.md). */
.todo {
  display: inline-block;
  padding: 1px 8px;
  background: #3b2f10;
  border: 1px dashed #c79a2e;
  color: #ffdf9b;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95em;
  text-transform: none;
  letter-spacing: 0;
}

.todo::before {
  content: "TODO: ";
  font-weight: 700;
}

.todo-block {
  display: block;
  padding: 14px 16px;
}

/* ------------------------------------------------------------------ sticky actions (phones) */

/* Call and book, held at the bottom of a phone's screen while the page scrolls. */
.sticky-actions {
  display: none;
}

@media (max-width: 720px) {
  .sticky-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    gap: 8px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--ink);
    border-top: 1px solid var(--line-strong);
  }

  .sticky-actions .btn {
    flex: 1;
    min-height: 48px;
    padding: 0 12px;
    font-size: 16px;
  }

  /* Room under the footer, so the bar never covers its last line. */
  body:has(.sticky-actions) {
    padding-bottom: 72px;
  }
}
