/* ==========================================================================
   London Gym & Trainer Directory
   Palette : ink / slate / concrete / paper / hi-vis / brick
   Type    : Archivo (display + body, variable width) / IBM Plex Mono (data)
   ========================================================================== */

:root {
  --ink: #12161c;
  --ink-2: #1b232e;
  --slate: #4a5666;
  --concrete: #e3e1db;
  --paper: #f7f6f3;
  --hivis: #d9e64b;
  --hivis-dim: #a8b52f;
  --brick: #a8452f;
  --line: rgba(18, 22, 28, 0.14);
  --line-strong: rgba(18, 22, 28, 0.32);
  --line-invert: rgba(247, 246, 243, 0.18);

  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.5rem, 6vw, 4.25rem);
  --step-5: clamp(2.5rem, 5.6vw, 4.75rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1240px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

.num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

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

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

/* --- Masthead ------------------------------------------------------------ */

.masthead {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line-invert);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.015em;
  font-size: 1.0625rem;
}

.wordmark__dot {
  width: 10px; height: 10px;
  background: var(--hivis);
  border-radius: 50%;
  translate: 0 -1px;
}

.wordmark__sub {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 246, 243, 0.6);
}

.navlinks {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.navlinks a {
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  color: rgba(247, 246, 243, 0.75);
}

.navlinks a:hover { color: var(--paper); }

.navlinks a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--hivis);
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 8vw, 5.5rem) 0;
}

.hero__top {
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 900px) {
  .hero__top {
    grid-template-columns: 1.25fr 1fr;
    gap: 3.5rem;
  }
}

.hero h1 {
  margin: 0.75rem 0 0;
  max-width: 15ch;
  font-size: var(--step-5);
  line-height: 0.94;
  font-weight: 800;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--hivis);
}

.hero__text {
  color: rgba(247, 246, 243, 0.72);
  font-size: var(--step-1);
  margin: 0 0 1.5rem;
  max-width: 42ch;
  text-wrap: pretty;
}

.hero .eyebrow { color: var(--hivis-dim); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--hivis);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:hover { background: #e6f16a; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn--ghost:hover { background: rgba(18, 22, 28, 0.06); }

/* --- Signature: the price spectrum --------------------------------------- */

.spectrum {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: 2.5rem;
}

.spectrum__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  margin-bottom: 1.25rem;
}

.spectrum__head .eyebrow { color: rgba(247, 246, 243, 0.55); }

.spectrum__plot {
  position: relative;
  height: 132px;
  border-bottom: 1px solid var(--line-invert);
}

.spectrum__band {
  position: absolute;
  inset-block: 0;
  border-left: 1px dashed rgba(247, 246, 243, 0.14);
}

.spectrum__band span {
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 246, 243, 0.4);
  white-space: nowrap;
}

.tick {
  position: absolute;
  bottom: 30px;
  width: 2px;
  background: var(--hivis);
  border: 0;
  padding: 0;
  cursor: pointer;
  transform-origin: bottom;
  transition: background 0.15s ease, width 0.15s ease;
}

.tick[data-kind="leisure-centre"] { background: #63c2c8; }
.tick[data-kind="studio"] { background: #e8a13c; }
.tick[data-kind="trainer"] { background: #b98fd6; }

.tick:hover,
.tick:focus-visible {
  width: 4px;
  background: var(--paper);
  z-index: 3;
}

.spectrum__axis {
  position: relative;
  height: 26px;
  margin-top: 0.25rem;
}

.spectrum__axis span {
  position: absolute;
  transform: translateX(-50%);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  color: rgba(247, 246, 243, 0.55);
}

.spectrum__tip {
  position: absolute;
  z-index: 5;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.7rem;
  border-radius: 2px;
  font-size: 0.8125rem;
  line-height: 1.3;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity 0.12s ease;
  max-width: 230px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.spectrum__tip[data-show="true"] { opacity: 1; }

.spectrum__tip strong { display: block; font-weight: 700; }

.spectrum__tip .num { color: var(--slate); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: 1rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 246, 243, 0.6);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.legend i {
  width: 10px; height: 10px;
  border-radius: 1px;
  background: var(--hivis);
}

/* --- Sections ------------------------------------------------------------ */

.band {
  padding-block: clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.band--paper { background: var(--paper); }

.band__head { margin-bottom: 2rem; max-width: 60ch; }

.band__head h2 {
  margin: 0.6rem 0 0.5rem;
  font-size: var(--step-3);
  font-weight: 800;
  font-variation-settings: "wdth" 110;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.band__head p {
  margin: 0;
  color: var(--slate);
  max-width: 58ch;
}

/* Key figures */

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--line-strong);
}

.figure {
  padding: 1.5rem 1.25rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.figure__value {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 4.4vw, 2.875rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.figure__label {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: var(--slate);
  max-width: 24ch;
}

/* Borough bars */

.bars { display: grid; gap: 0.4rem; }

.bar {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding-block: 0.3rem;
}

.bar__name { font-size: 0.875rem; font-weight: 600; }

.bar__track {
  height: 16px;
  background: rgba(18, 22, 28, 0.07);
  position: relative;
  overflow: hidden;
}

.bar__fill {
  position: absolute;
  inset-block: 0;
  left: 0;
  background: var(--ink);
  width: 0;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar__val {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--slate);
  min-width: 2ch;
  text-align: right;
}

/* Amenity share meters */

.meters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem 2.5rem;
}

.meter__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.meter__name { font-weight: 600; font-size: 0.9375rem; }

.meter__pct {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.125rem;
  font-weight: 600;
}

.meter__track {
  height: 8px;
  background: rgba(18, 22, 28, 0.09);
}

.meter__fill {
  height: 100%;
  background: var(--brick);
  width: 0;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.meter__note {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--slate);
}

/* Price band split */

.bandsplit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

.bandsplit__cell {
  background: var(--paper);
  padding: 1.4rem 1.2rem;
}

.band--paper .bandsplit__cell { background: var(--concrete); }

.bandsplit__key {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.bandsplit__count {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  margin-top: 0.75rem;
}

.bandsplit__desc { font-size: 0.8125rem; color: var(--slate); margin-top: 0.2rem; }

/* Note / methodology */

.note {
  border-left: 3px solid var(--hivis-dim);
  padding: 0.25rem 0 0.25rem 1.1rem;
  color: var(--slate);
  font-size: 0.9375rem;
  max-width: 70ch;
}

/* --- Directory page ------------------------------------------------------ */

.dirhead {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

.dirhead h1 {
  margin: 0.6rem 0 0.5rem;
  font-size: var(--step-4);
  font-weight: 800;
  font-variation-settings: "wdth" 116;
  letter-spacing: -0.03em;
  line-height: 1;
}

.dirhead p {
  margin: 0;
  color: rgba(247, 246, 243, 0.7);
  max-width: 56ch;
}

.dirhead .eyebrow { color: var(--hivis-dim); }

.controls {
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
  position: sticky;
  top: 0;
  z-index: 20;
}

.controls__inner { padding-block: 1.1rem; }

.filterpanel__toggle { display: none; }

@media (max-width: 820px) {
  .filterpanel__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    list-style: none;
    cursor: pointer;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    background: var(--concrete);
  }

  .filterpanel__toggle::-webkit-details-marker { display: none; }

  .filterpanel__toggle::after {
    content: "+";
    font-size: 1.1rem;
    line-height: 1;
  }

  .filterpanel[open] .filterpanel__toggle {
    margin-bottom: 1rem;
  }

  .filterpanel[open] .filterpanel__toggle::after { content: "−"; }
}

.controls__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.field { display: grid; gap: 0.35rem; }

.field label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.field select,
.field input {
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.6rem 0.7rem;
  background: var(--concrete);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink);
  min-width: 170px;
}

.field input { min-width: 220px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chip {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  color: var(--slate);
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

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

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

.resultbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  font-size: 0.9375rem;
}

.resultbar__count { font-family: "IBM Plex Mono", ui-monospace, monospace; }

.linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--brick);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Table */

.tablewrap { overflow-x: auto; padding-bottom: 3rem; }

.gymtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.gymtable th:nth-child(1) { width: 24%; }
.gymtable th:nth-child(2) { width: 13%; }
.gymtable th:nth-child(3) { width: 8%; }
.gymtable th:nth-child(4) { width: 11%; }
.gymtable th:nth-child(5) { width: 10%; }

.gymtable th {
  text-align: left;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.gymtable td {
  padding: 0.9rem 1rem 0.9rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.gymtable tbody tr:hover { background: rgba(18, 22, 28, 0.035); }

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

.cell-name a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }

.cell-sub {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--slate);
  margin-top: 0.15rem;
}

.pricecell {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pricecell small { display: block; color: var(--slate); font-size: 0.6875rem; }

.pounds {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.pounds i { font-style: normal; color: rgba(18, 22, 28, 0.22); }

.tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--slate);
  white-space: nowrap;
}

.tag--hi { background: var(--ink); border-color: var(--ink); color: var(--hivis); }

.badge-unverified {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brick);
}

.empty {
  padding: 3rem 0;
  text-align: center;
  color: var(--slate);
}

.empty strong { display: block; font-size: var(--step-2); color: var(--ink); margin-bottom: 0.4rem; }

/* Card layout on small screens */

@media (max-width: 820px) {
  .gymtable thead { display: none; }
  .gymtable, .gymtable tbody, .gymtable tr, .gymtable td { display: block; width: 100%; }

  .gymtable tr {
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    margin-bottom: 0.75rem;
    padding: 1rem;
    background: var(--paper);
  }

  .gymtable td { border: 0; padding: 0 0 0.5rem; }
  .gymtable td:last-child { padding-bottom: 0; }

  .gymtable td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 0.2rem;
  }

  .gymtable td.cell-name::before { display: none; }
  .tags { max-width: none; }
  .field select, .field input { min-width: 0; width: 100%; }
  .field { flex: 1 1 100%; }
  .controls { position: static; }
}

/* --- Footer -------------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: rgba(247, 246, 243, 0.6);
  padding-block: 2.5rem;
  font-size: 0.875rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
}

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

/* --- Motion preference --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

.trainergrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}

.ptcard {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ptcard__head h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  font-variation-settings: "wdth" 108;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.ptcard__meta {
  margin: 0.3rem 0 0;
  font-size: 0.8125rem;
  color: var(--slate);
}

.ptcard__bio {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--slate);
  flex: 1;
}

.ptcard .btn { align-self: flex-start; }

.btn--sm { padding: 0.6rem 1rem; font-size: 0.875rem; }

/* --- Trainer contact block ---------------------------------------------- */

.ptcard__contact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.9rem;
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.ptcard__contact dt {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  padding-top: 0.2rem;
}

.ptcard__contact dd { margin: 0; }

.ptcard__contact a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  word-break: break-word;
}

.ptcard__contact a:hover { border-bottom-color: var(--ink); }

/* Price-source flag on gym rows */
.est {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brick);
}

/* --- Borough pages ------------------------------------------------------- */

.arealinks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.5rem;
}

.arealink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  text-decoration: none;
  background: var(--paper);
  transition: background 0.12s ease, border-color 0.12s ease;
}

.band--paper .arealink { background: var(--concrete); }
.arealink:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.arealink__name { font-weight: 600; font-size: 0.9375rem; }

.arealink__count {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--slate);
}

.arealink:hover .arealink__count { color: var(--hivis); }

.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
}

.vcard {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.band--paper .vcard { background: var(--concrete); }

.vcard h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  font-variation-settings: "wdth" 106;
  line-height: 1.25;
}

.vcard h3 a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.vcard__meta { margin: 0; font-size: 0.8125rem; color: var(--slate); }
.vcard__meta a { color: var(--ink); }

.vcard__price {
  margin: 0.2rem 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.375rem;
  font-weight: 600;
}

.vcard__price span { font-size: 0.75rem; color: var(--slate); font-weight: 400; }
.vcard .tags { margin-top: auto; padding-top: 0.5rem; }

/* --- Guides hub ---------------------------------------------------------- */

.guidegrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
}

.guidecard {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.6rem;
  background: var(--concrete);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.guidecard:hover { transform: translateY(-2px); border-color: var(--ink); }

.guidecard__kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
}

.guidecard h2 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 800;
  font-variation-settings: "wdth" 108;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.guidecard p { margin: 0; font-size: 0.9375rem; color: var(--slate); flex: 1; }

.guidecard__go {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

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

.article__standfirst {
  font-size: var(--step-2) !important;
  line-height: 1.35;
  max-width: 34ch;
  color: rgba(247, 246, 243, 0.82) !important;
}

.article__byline {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 246, 243, 0.5) !important;
  margin-top: 1.25rem !important;
}

.article { max-width: 68ch; }
.article p { font-size: 1.0625rem; line-height: 1.65; }

.article h2 {
  font-size: var(--step-2);
  font-weight: 800;
  font-variation-settings: "wdth" 110;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 0.75rem;
  line-height: 1.15;
}

.pullquote {
  margin: 2.25rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--hivis-dim);
  font-size: var(--step-2);
  font-weight: 700;
  font-variation-settings: "wdth" 106;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

/* Data tables inside guides */

.gtable-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; }

.gtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.gtable th {
  text-align: left;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
  padding: 0.6rem 0.9rem 0.6rem 0;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.gtable td {
  padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.gtable tbody tr:hover { background: rgba(18, 22, 28, 0.035); }

@media (max-width: 700px) {
  .gtable thead { display: none; }
  .gtable, .gtable tbody, .gtable tr, .gtable td { display: block; width: 100%; }
  .gtable tr {
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    padding: 0.9rem;
    margin-bottom: 0.6rem;
  }
  .gtable td { border: 0; padding: 0.15rem 0; }
  .gtable td::before {
    content: attr(data-label) ": ";
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate);
  }
}

/* --- Borough comparison cards (homepage) --------------------------------- */

.bcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.bcard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.band--paper .bcard { background: var(--concrete); }
.bcard:hover { transform: translateY(-2px); border-color: var(--ink); }

.bcard h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  font-variation-settings: "wdth" 108;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.bcard__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
  margin: 0;
  flex: 1;
}

.bcard__stats dt {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.bcard__stats dd {
  margin: 0.15rem 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.bcard__go {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brick);
}

/* --- Brand tagline ------------------------------------------------------- */

.tagline {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hivis);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.tagline--sm {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
}

.footer__tagline {
  color: var(--hivis);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  display: inline-block;
  margin-bottom: 0.35rem;
}

/* Wordmark: SweatIt.co.uk reads as one word, so tighten the gap */
.wordmark { gap: 0.5rem; }
.wordmark__sub { margin-left: -0.35rem; text-transform: none; letter-spacing: 0.06em; }

/* --- Trainer sign-up ----------------------------------------------------- */

.joinpanel { max-width: 820px; }

.joinpanel__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 1rem 1.25rem;
  background: var(--ink);
  color: var(--hivis);
  border-radius: 2px;
  transition: background 0.12s ease;
}

.joinpanel__toggle::-webkit-details-marker { display: none; }
.joinpanel__toggle:hover { background: var(--ink-2); }

.joinpanel__chevron {
  width: 9px; height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s ease;
}

.joinpanel[open] .joinpanel__chevron { transform: rotate(-135deg) translate(-2px, -2px); }

.joinform {
  margin-top: 1.25rem;
  padding: 1.75rem;
  background: var(--concrete);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}

.band--paper .joinform { background: var(--paper); }

.joinform__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.joinform__full { margin-top: 1rem; }

.joinform .field input,
.joinform .field select,
.joinform .field textarea {
  width: 100%;
  min-width: 0;
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.6rem 0.7rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink);
}

.band--paper .joinform .field input,
.band--paper .joinform .field select,
.band--paper .joinform .field textarea { background: var(--concrete); }

.req {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brick);
  margin-left: 0.35rem;
}

.checkset {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}

.checkset legend {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  padding-inline: 0.4rem;
}

.checkset label,
.consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  cursor: pointer;
}

.checkset input,
.consent input { margin-top: 0.2rem; accent-color: var(--ink); }

.consent {
  border-left: 3px solid var(--hivis-dim);
  padding: 0.85rem 0 0.85rem 1rem;
  background: rgba(217, 230, 75, 0.09);
}

.joinform .btn { margin-top: 1.5rem; }

.joinform__small {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--slate);
  max-width: 60ch;
}
