/* ==========================================================================
   BackNineLive design system
   Country club classic: fairway green, clubhouse cream, navy trim.
   Petrona for display, Overpass for text. Crest emblem, scorecard grid,
   restrained pinstripes.
   ========================================================================== */

:root {
  /* ---- brief palette ---- */
  --bg: #F7F8F3;
  --surface: #FFFFFF;
  --ink: #152119;
  --primary: #1F5136;
  --accent: #C8A951;
  --muted: #5E6B62;

  /* ---- derived greens ---- */
  --primary-900: #0F2A1C;
  --primary-800: #163B27;
  --primary-700: #1A4630;
  --primary-600: #1F5136;
  --primary-500: #2A6845;
  --primary-300: #6E9A81;
  --primary-100: #D6E4DB;
  --primary-050: #EAF1EC;

  /* ---- navy trim ---- */
  --navy: #16263F;
  --navy-800: #1D3252;
  --navy-600: #2C4568;
  --navy-100: #DCE2EC;

  /* ---- gold ---- */
  --gold-700: #7E6322;
  --gold-600: #B2913A;
  --gold: #C8A951;
  --gold-300: #E1CB8E;
  --gold-100: #F1E7C7;

  /* ---- neutrals and rules ---- */
  --cream: #F7F8F3;
  --cream-2: #EFF1E7;
  --cream-3: #E5E8DA;
  --line: #DADFD1;
  --line-strong: #C2C9B6;
  --ink-70: #43514A;
  --ink-55: #5E6B62;

  /* ---- spacing scale ---- */
  --s0: 0.25rem;
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2rem;
  --s6: 3rem;
  --s7: 4rem;
  --s8: 5.5rem;
  --s9: 7.5rem;

  /* ---- radii ---- */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 7px;
  --r-lg: 12px;
  --r-pill: 999px;

  /* ---- shadows ---- */
  --sh-1: 0 1px 2px rgba(21, 33, 25, 0.06), 0 2px 8px rgba(21, 33, 25, 0.05);
  --sh-2: 0 2px 6px rgba(21, 33, 25, 0.07), 0 14px 34px rgba(21, 33, 25, 0.09);
  --sh-3: 0 8px 18px rgba(21, 33, 25, 0.10), 0 28px 64px rgba(21, 33, 25, 0.14);
  --sh-inset: inset 0 0 0 1px var(--line), inset 0 0 0 5px var(--surface), inset 0 0 0 6px var(--line);

  /* ---- type ---- */
  --font-display: "Petrona", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Overpass", "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  --t-xs: 0.78rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: clamp(1.05rem, 0.98rem + 0.35vw, 1.19rem);
  --t-lg: clamp(1.25rem, 1.12rem + 0.6vw, 1.55rem);
  --t-xl: clamp(1.55rem, 1.3rem + 1.1vw, 2.15rem);
  --t-2xl: clamp(1.95rem, 1.55rem + 1.8vw, 2.95rem);
  --t-3xl: clamp(2.35rem, 1.75rem + 2.9vw, 4rem);

  --wrap: 1180px;
  --wrap-narrow: 860px;
  --header-h: 76px;
}

/* ==========================================================================
   Reset and base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  background-color: var(--bg);
  /* restrained pinstripes: a vertical clubhouse awning rhythm */
  background-image:
    repeating-linear-gradient(90deg,
      rgba(31, 81, 54, 0.055) 0 1px,
      rgba(31, 81, 54, 0) 1px 26px);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.62;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.005em;
  color: var(--primary-900);
  margin: 0 0 var(--s3);
}

h1 { font-size: var(--t-3xl); font-weight: 700; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); }

p { margin: 0 0 var(--s3); }
ul, ol { margin: 0 0 var(--s3); padding-left: 1.15rem; }
li { margin-bottom: var(--s1); }

a { color: var(--primary-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-800); }

strong { font-weight: 700; color: var(--primary-900); }

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: var(--s5) 0;
}

::selection { background: var(--gold-100); color: var(--primary-900); }

/* ==========================================================================
   Utilities
   ========================================================================== */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

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

.skip-link {
  position: absolute;
  left: var(--s3);
  top: -100px;
  z-index: 999;
  background: var(--primary-800);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus { top: var(--s3); color: #fff; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ==========================================================================
   Ornaments: crest rules, eyebrows, hairlines
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin: 0 0 var(--s2);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 7px;
  flex: none;
  /* pennant tick */
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 78% 50%, 100% 100%, 0 100%);
}
.eyebrow--light { color: var(--gold-300); }

.rule-crest {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: var(--s4) 0;
}
.rule-crest::before, .rule-crest::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.rule-crest span {
  width: 9px; height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

.section { padding: var(--s8) 0; position: relative; }
.section--tight { padding: var(--s7) 0; }
.section-head { max-width: 62ch; margin-bottom: var(--s6); }
.section-head p { color: var(--ink-70); font-size: var(--t-md); margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.lede { font-size: var(--t-md); color: var(--ink-70); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.82rem 1.5rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--primary-600);
  color: #FBFCF8;
  box-shadow: inset 0 0 0 1px var(--primary-800), 0 1px 0 var(--gold-600), var(--sh-1);
}
.btn--primary:hover { background: var(--primary-700); color: #fff; box-shadow: inset 0 0 0 1px var(--primary-900), 0 2px 0 var(--gold), var(--sh-2); }

.btn--gold {
  background: var(--gold);
  color: #20180A;
  box-shadow: inset 0 0 0 1px var(--gold-700), var(--sh-1);
}
.btn--gold:hover { background: var(--gold-300); color: #20180A; }

.btn--ghost {
  background: transparent;
  color: var(--primary-800);
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--primary-300); color: var(--primary-900); }

.btn--ghost-light {
  background: transparent;
  color: #EEF3EA;
  border-color: rgba(238, 243, 234, 0.42);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }

.btn--sm { padding: 0.58rem 1.05rem; font-size: 0.86rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ==========================================================================
   Header: clubhouse sign board
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 248, 243, 0.94);
  backdrop-filter: saturate(140%) blur(9px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(200, 169, 81, 0.35);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.site-header.is-stuck {
  background: rgba(247, 248, 243, 0.985);
  box-shadow: 0 1px 0 var(--gold), 0 10px 26px rgba(21, 33, 25, 0.10);
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-700) 0 33.3%, var(--gold) 33.3% 66.6%, var(--navy) 66.6% 100%);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
  color: var(--primary-900);
}
.wordmark svg { width: 34px; height: 34px; flex: none; animation: crest-fade 0.9s ease both; }
.wordmark-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1;
}
.wordmark-name em {
  font-style: normal;
  color: var(--primary-600);
}
.wordmark-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-top: 3px;
  font-weight: 700;
}

@keyframes crest-fade {
  from { opacity: 0; transform: translateY(5px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  color: var(--primary-800);
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-70);
  text-decoration: none;
  padding: 0.35rem 0;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  transition: right 0.25s ease;
}
.site-nav a:hover { color: var(--primary-800); }
.site-nav a:hover::after { right: 0; }

.header-cta { display: flex; align-items: center; gap: var(--s2); }
.site-nav .nav-cta { display: none; }

/* ==========================================================================
   Scorecard panel: the core surface of this site
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s4);
  box-shadow: var(--sh-1);
  position: relative;
}

.scorecard {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  box-shadow: 0 0 0 1px var(--surface) inset, var(--sh-1);
  position: relative;
  overflow: hidden;
}
.scorecard::before {
  /* the faint ruled grid of a paper scorecard */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(31, 81, 54, 0.06) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(31, 81, 54, 0.05) 0 1px, transparent 1px 62px);
  opacity: 0.65;
}
.scorecard > * { position: relative; }

.scorecard-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  padding: 0.7rem 1rem;
  background: var(--primary-800);
  color: #EDF2EC;
  border-bottom: 3px solid var(--gold);
}
.scorecard-head strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.scorecard-head span {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
  font-weight: 700;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: var(--s7) 0 var(--s8);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 420px;
  background:
    radial-gradient(900px 340px at 12% 0%, rgba(31, 81, 54, 0.10), transparent 70%),
    radial-gradient(700px 300px at 88% 8%, rgba(200, 169, 81, 0.16), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: var(--s6);
  align-items: center;
  position: relative;
}

.hero h1 { margin-bottom: var(--s3); max-width: 15ch; }
.hero h1 .swing {
  display: block;
  color: var(--primary-600);
  font-style: italic;
}
.hero-lede {
  font-size: var(--t-md);
  color: var(--ink-70);
  max-width: 52ch;
  margin-bottom: var(--s4);
}

.hero-figure {
  position: relative;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-3);
}
.hero-figure img {
  border-radius: 2px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}
.hero-figure::after {
  /* gold corner ticks, framed club photograph */
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold-300);
  border-radius: 2px;
  pointer-events: none;
}
.hero-figure figcaption {
  position: absolute;
  left: 22px;
  bottom: 22px;
  right: 22px;
  background: rgba(15, 42, 28, 0.86);
  color: #EEF3EA;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--gold);
  border-radius: 2px;
}

/* trust strip, built as a scorecard row */
.trust-strip {
  margin-top: var(--s5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.trust-strip div {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trust-strip div:last-child { border-right: 0; }
.trust-strip b {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--primary-700);
  line-height: 1.1;
}
.trust-strip span {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ==========================================================================
   Problem cards: hole numbers on a scorecard
   ========================================================================== */

.band-cream { background: var(--cream-2); border-block: 1px solid var(--line); }
.band-navy {
  background:
    linear-gradient(180deg, var(--navy) 0%, var(--navy-800) 100%);
  color: #DDE4EE;
  border-block: 3px solid var(--gold);
}
.band-navy h2, .band-navy h3 { color: #FFFFFF; }
.band-navy p { color: #C7D2E0; }
.band-green {
  background:
    linear-gradient(175deg, var(--primary-800) 0%, var(--primary-900) 100%);
  color: #DCE7DE;
}
.band-green h2, .band-green h3 { color: #FFFFFF; }
.band-green p { color: #C3D4C8; }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
}
.pain {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(200, 169, 81, 0.28);
  border-radius: var(--r-sm);
  padding: var(--s4) var(--s3) var(--s3);
  position: relative;
}
.pain-no {
  position: absolute;
  top: -14px;
  left: var(--s3);
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #1B1405;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--navy);
}
.pain h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.pain p { font-size: 0.93rem; margin-bottom: 0.75rem; }
.pain .cost {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-300);
  border-top: 1px solid rgba(200, 169, 81, 0.35);
  padding-top: 0.55rem;
}

/* ==========================================================================
   How it works: numbered tee boxes plus the section photograph
   ========================================================================== */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: var(--s6);
  align-items: start;
}

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 var(--s4) 4rem;
  margin: 0;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-800);
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--gold-100);
}
.steps li::after {
  content: "";
  position: absolute;
  left: 22px; top: 52px; bottom: 8px;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 4px, transparent 4px 9px);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--ink-70); margin-bottom: 0; }

.figure-plate {
  position: relative;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-2);
}
.figure-plate img { border-radius: 2px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.figure-plate figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.7rem 0.2rem 0.1rem;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.figure-plate .plate-badge {
  position: absolute;
  top: -16px; right: 18px;
  background: var(--primary-700);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  box-shadow: 0 2px 0 var(--gold);
}

/* ==========================================================================
   Features: pennant cards
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary-600);
  border-radius: var(--r-sm);
  padding: var(--s4);
  box-shadow: var(--sh-1);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-top-color: var(--gold);
}
.feature-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-300);
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, #FFFDF6, var(--gold-100));
  margin-bottom: var(--s2);
}
.feature-icon svg { width: 26px; height: 26px; stroke: var(--primary-700); fill: none; stroke-width: 1.5; }
.feature h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.feature p { font-size: 0.94rem; color: var(--ink-70); margin-bottom: 0; }

/* ==========================================================================
   Outcomes
   ========================================================================== */

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
}
.outcome {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--s4);
  position: relative;
  box-shadow: var(--sh-1);
}
.outcome b {
  display: block;
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.6rem + 1.8vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--primary-700);
  padding-bottom: 0.85rem;
  margin-bottom: 0.35rem;
}
.outcome b::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 72px; height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(200, 169, 81, 0));
}
.outcome h3 { font-size: 1.02rem; margin: 0.9rem 0 0.4rem; }
.outcome p { font-size: 0.92rem; color: var(--ink-70); margin-bottom: 0; }

/* ==========================================================================
   Leaderboard: rows that reorder
   ========================================================================== */

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--s6);
  align-items: start;
}

.leaderboard { max-width: 460px; }
.lb-rows { list-style: none; margin: 0; padding: 0; }
.lb-rows li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.6rem;
  height: 46px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
  background: var(--surface);
  margin: 0;
}
.lb-rows li:nth-child(even) { background: #FCFDF9; }
.lb-rows li:last-child { border-bottom: 0; }
.lb-pos {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-700);
  font-size: 1.02rem;
}
.lb-name { font-weight: 600; color: var(--primary-900); }
.lb-hcp { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; }
.lb-net {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-700);
  min-width: 2.4rem;
  text-align: right;
}
.lb-foot {
  padding: 0.6rem 1rem;
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

/* the reorder: two tied rows trade places while the ranks hold still */
.lb-rows li.lb-up, .lb-rows li.lb-down { position: relative; z-index: 2; }
.lb-rows li.lb-up { animation: lb-up 9s ease-in-out infinite; }
.lb-rows li.lb-down { animation: lb-down 9s ease-in-out infinite; }
.lb-rows li.lb-up .lb-pos { animation: lb-pos-down 9s ease-in-out infinite; }
.lb-rows li.lb-down .lb-pos { animation: lb-pos-up 9s ease-in-out infinite; }
@keyframes lb-up {
  0%, 24% { transform: translateY(0); }
  40%, 74% { transform: translateY(-46px); }
  90%, 100% { transform: translateY(0); }
}
@keyframes lb-down {
  0%, 24% { transform: translateY(0); }
  40%, 74% { transform: translateY(46px); }
  90%, 100% { transform: translateY(0); }
}
@keyframes lb-pos-up {
  0%, 24% { transform: translateY(0); }
  40%, 74% { transform: translateY(-46px); }
  90%, 100% { transform: translateY(0); }
}
@keyframes lb-pos-down {
  0%, 24% { transform: translateY(0); }
  40%, 74% { transform: translateY(46px); }
  90%, 100% { transform: translateY(0); }
}

/* ==========================================================================
   Testimonials and results strip
   ========================================================================== */

.testimonial-stack { display: grid; gap: var(--s3); }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-sm);
  padding: var(--s4);
  box-shadow: var(--sh-1);
  position: relative;
  margin: 0;
}
.testimonial::before {
  content: "";
  position: absolute;
  top: 14px; right: 16px;
  width: 30px; height: 34px;
  opacity: 0.16;
  background: var(--primary-600);
  /* crest silhouette watermark */
  clip-path: polygon(50% 0, 100% 16%, 100% 62%, 50% 100%, 0 62%, 0 16%);
}
.testimonial p {
  font-family: var(--font-display);
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--primary-900);
  margin-bottom: var(--s2);
}
.testimonial footer {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}
.testimonial footer b { display: block; color: var(--primary-800); font-size: 0.92rem; }

.results-strip {
  margin-top: var(--s5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.results-strip div { background: var(--surface); padding: var(--s3) var(--s4); }
.results-strip b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-700);
  line-height: 1.1;
}
.results-strip span { font-size: 0.86rem; color: var(--ink-70); }

/* ==========================================================================
   Pricing: three scorecards, one with the club ribbon
   ========================================================================== */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  align-items: start;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
}
.tier-head {
  padding: var(--s4) var(--s4) var(--s3);
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, rgba(31, 81, 54, 0.035) 0 1px, transparent 1px 20px),
    var(--surface);
}
.tier-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-900);
  margin: 0 0 0.15rem;
}
.tier-for { font-size: 0.85rem; color: var(--muted); margin: 0 0 var(--s2); }
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
}
.tier-price .amount { font-size: 2.5rem; font-weight: 700; color: var(--primary-700); line-height: 1; }
.tier-price .per { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.tier-body { padding: var(--s4); flex: 1; }
.tier ul { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.tier ul li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.92rem;
  color: var(--ink-70);
  margin-bottom: 0.62rem;
}
.tier ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 11px; height: 12px;
  background: var(--primary-600);
  clip-path: polygon(0 0, 100% 22%, 0 44%);
}
.tier-foot { padding: 0 var(--s4) var(--s4); }

.tier--featured {
  border: 2px solid var(--primary-700);
  box-shadow: var(--sh-3);
  position: relative;
}
.tier--featured .tier-head {
  background: linear-gradient(180deg, var(--primary-800), var(--primary-700));
  border-bottom: 3px solid var(--gold);
}
.tier--featured .tier-name { color: #fff; }
.tier--featured .tier-for { color: #BFD3C6; }
.tier--featured .tier-price .amount { color: #fff; }
.tier--featured .tier-price .per { color: var(--gold-300); }
.ribbon {
  position: absolute;
  top: 0; right: 0;
  background: var(--gold);
  color: #1B1405;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.32rem 0.8rem;
  border-bottom-left-radius: var(--r-sm);
  z-index: 3;
}
.price-note {
  margin-top: var(--s4);
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-70);
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-list {
  border-top: 1px solid var(--line-strong);
  max-width: 880px;
  margin-inline: auto;
}
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  text-align: left;
  background: none;
  border: 0;
  padding: 1.1rem 0.25rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-900);
  line-height: 1.3;
}
.faq-q:hover { color: var(--primary-600); }
.faq-mark {
  flex: none;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  position: relative;
  transition: background-color 0.2s ease, transform 0.25s ease;
}
.faq-mark::before, .faq-mark::after {
  content: "";
  position: absolute;
  background: var(--gold-700);
}
.faq-mark::before { width: 11px; height: 2px; }
.faq-mark::after { width: 2px; height: 11px; transition: opacity 0.2s ease, transform 0.25s ease; }
.faq-q[aria-expanded="true"] .faq-mark { background: var(--gold); transform: rotate(180deg); }
.faq-q[aria-expanded="true"] .faq-mark::after { opacity: 0; }
.faq-a {
  padding: 0 0.25rem 1.2rem;
  max-width: 74ch;
  color: var(--ink-70);
}
.faq-a p:last-child { margin-bottom: 0; }
.faq-a[hidden] { display: none; }

/* ==========================================================================
   Contact form
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: var(--s6);
  align-items: start;
}
.contact-aside ul { list-style: none; padding: 0; }
.contact-aside ul li {
  position: relative;
  padding-left: 1.5rem;
  color: #C3D4C8;
  font-size: 0.95rem;
}
.contact-aside ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 10px; height: 11px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 22%, 0 44%);
}

.form-panel {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: var(--s5);
  box-shadow: var(--sh-3);
  border-top: 4px solid var(--gold);
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
}
.field { display: flex; flex-direction: column; gap: 0.34rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-800);
}
.field .hint { font-size: 0.78rem; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  background: #FCFDF9;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0.68rem 0.75rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--primary-300); }
.field input:focus, .field select:focus, .field textarea:focus {
  background: var(--surface);
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(31, 81, 54, 0.14);
  outline: none;
}
.field [aria-invalid="true"] { border-color: #9C2B1F; background: #FDF5F3; }
.field-error {
  font-size: 0.8rem;
  color: #8E2317;
  font-weight: 600;
  min-height: 0;
}
.field-error[hidden] { display: none; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  grid-column: 1 / -1;
  font-size: 0.88rem;
  color: var(--ink-70);
}
.consent input { width: 18px; height: 18px; flex: none; margin-top: 3px; accent-color: var(--primary-600); }
.consent label { text-transform: none; letter-spacing: 0; font-size: 0.88rem; font-weight: 400; color: var(--ink-70); }

.field-grid > .field-error { grid-column: 1 / -1; }

.form-foot {
  margin-top: var(--s3);
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
}

/* the panel sits on the dark band, so pull its text back to ink */
.band-green .form-panel p { color: var(--ink-70); }
.band-green .form-panel .form-foot { color: var(--muted); }
.band-green .form-panel .field-error { color: #8E2317; }
.band-green .form-panel a { color: var(--primary-600); }
.band-green .form-panel a:hover { color: var(--primary-800); }

/* ==========================================================================
   Byline
   ========================================================================== */

.byline {
  display: flex;
  align-items: center;
  gap: var(--s3);
  max-width: 780px;
  margin: var(--s6) auto 0;
  padding: var(--s3) var(--s4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary-600);
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  color: var(--ink-70);
}
.byline svg { width: 34px; height: 34px; flex: none; }
.byline p { margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: linear-gradient(180deg, var(--primary-900) 0%, #0A1F13 100%);
  color: #C3D4C8;
  border-top: 4px solid var(--gold);
  padding: var(--s7) 0 0;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.15fr;
  gap: var(--s5);
  padding-bottom: var(--s6);
}
.footer-brand .wordmark { color: #fff; }
.footer-brand .wordmark-name { color: #fff; }
.footer-brand .wordmark-name em { color: var(--gold-300); }
.footer-brand p { margin: var(--s3) 0; color: #B3C6B9; max-width: 34ch; }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: var(--s2);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer a { color: #D3E0D6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); }
.publisher-line { margin-top: var(--s3); color: #93A899; font-size: 0.85rem; }

.social-row { display: flex; gap: 0.55rem; margin-top: var(--s3); }
.social-row a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 169, 81, 0.4);
  border-radius: var(--r-sm);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.social-row a:hover { background: rgba(200, 169, 81, 0.16); border-color: var(--gold); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; fill: #E4EBE4; }

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--s3) 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2);
  font-size: 0.84rem;
  color: #90A596;
}
.footer-base a { color: var(--gold-300); }

/* ==========================================================================
   Prose pages (legal, privacy, terms, author, site map)
   ========================================================================== */

.page-head {
  padding: var(--s7) 0 var(--s5);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(760px 260px at 15% 0%, rgba(31, 81, 54, 0.09), transparent 70%),
    var(--cream-2);
}
.page-head p { color: var(--ink-70); max-width: 66ch; margin-bottom: 0; }
.crumbs {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: var(--s2);
}
.crumbs a { color: var(--primary-600); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.prose { padding: var(--s6) 0 var(--s8); }
.prose h2 {
  font-size: var(--t-xl);
  margin-top: var(--s6);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: var(--s4); font-size: 1.12rem; }
.prose p, .prose li { color: var(--ink-70); }
.prose .card { margin: var(--s4) 0; }

.fact-table { width: 100%; border-collapse: collapse; margin: var(--s3) 0 var(--s5); font-size: 0.94rem; }
.fact-table th, .fact-table td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  vertical-align: top;
}
.fact-table th { background: var(--cream-2); width: 34%; color: var(--primary-900); font-weight: 700; }
.fact-table td { background: var(--surface); color: var(--ink-70); }

.author-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--s5);
  align-items: start;
}
.author-portrait {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-2);
}
.author-portrait img { border-radius: 2px; width: 100%; }
.profile-links { list-style: none; padding: 0; margin: var(--s3) 0 0; }
.profile-links li { margin-bottom: 0.5rem; }
.profile-links a { font-weight: 600; }

.map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
}
.map-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s4); box-shadow: var(--sh-1); }
.map-card h2 { border: 0; margin-top: 0; font-size: 1.2rem; padding-bottom: 0; }
.map-card ul { list-style: none; padding: 0; margin: 0; }
.map-card li { border-bottom: 1px dotted var(--line-strong); padding: 0.6rem 0; margin: 0; }
.map-card li:last-child { border-bottom: 0; }
.map-card a { font-weight: 600; text-decoration: none; }
.map-card a:hover { text-decoration: underline; }
.map-card span { display: block; font-size: 0.86rem; color: var(--muted); }

.status-page { padding: var(--s9) 0; text-align: center; }
.status-page .mark { width: 78px; height: 78px; margin: 0 auto var(--s3); }
.status-page p { max-width: 58ch; margin-inline: auto; color: var(--ink-70); }
.status-page .btn-row { justify-content: center; margin-top: var(--s4); }
.status-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 7vw, 7rem);
  font-weight: 700;
  color: var(--primary-700);
  line-height: 1;
  margin-bottom: var(--s2);
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outcome-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s4); }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .hero-grid, .how-grid, .proof-grid, .contact-grid, .author-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: var(--s5); }
  .hero h1 { max-width: 100%; }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .tier--featured { order: -1; }
  .map-grid { grid-template-columns: minmax(0, 1fr); }
  .author-grid { gap: var(--s4); }
  .author-portrait { max-width: 260px; }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-2);
    padding: var(--s3) 1.25rem var(--s4);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a { display: block; padding: 0.85rem 0; font-size: 1rem; }
  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .site-nav .nav-cta { display: block; }
  .site-nav .nav-cta a { color: var(--primary-700); font-weight: 800; letter-spacing: 0.04em; }
}

@media (max-width: 620px) {
  .wrap, .wrap-narrow { width: min(100% - 1.6rem, var(--wrap)); }
  .section { padding: var(--s6) 0; }
  .pain-grid, .outcome-grid, .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .trust-strip { grid-template-columns: minmax(0, 1fr); }
  .trust-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip div:last-child { border-bottom: 0; }
  .results-strip { grid-template-columns: minmax(0, 1fr); }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .form-panel { padding: var(--s4) var(--s3); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .fact-table th, .fact-table td { display: block; width: 100%; border-bottom: 0; }
  .fact-table tr:last-child td { border-bottom: 1px solid var(--line); }
  .hero-figure figcaption { position: static; margin-top: 10px; }
  .lb-hcp { display: none; }
  .lb-rows li { grid-template-columns: 26px minmax(0, 1fr) auto; padding: 0 0.7rem; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .header-cta .btn { width: auto; }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .lb-rows li.lb-up, .lb-rows li.lb-down,
  .lb-rows li.lb-up .lb-pos, .lb-rows li.lb-down .lb-pos { animation: none; transform: none; }
  .wordmark svg { animation: none; opacity: 1; }
  .btn:hover, .feature:hover, .social-row a:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   League Night magazine
   The clubhouse noticeboard: cream stock, a gold pennant tick, scorecard rules.
   Built only from the tokens above.
   ========================================================================== */

.mag-page { background-image: none; background-color: var(--bg); }

/* ---- masthead shared by the index and every article ---- */
.mag-masthead {
  padding: var(--s6) 0 var(--s5);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(820px 300px at 12% 0%, rgba(31, 81, 54, 0.10), transparent 72%),
    repeating-linear-gradient(90deg, rgba(31, 81, 54, 0.045) 0 1px, rgba(31, 81, 54, 0) 1px 26px),
    var(--cream-2);
}
.mag-masthead h1 { max-width: 20ch; }
.mag-masthead--index h1 { max-width: 14ch; }
.mag-crumbs { margin-bottom: var(--s3); display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: baseline; }
.mag-crumb-tick { color: var(--gold-600); font-weight: 700; }
.mag-crumb-now { color: var(--ink-70); }

.mag-standfirst {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-style: italic;
  line-height: 1.42;
  color: var(--ink-70);
  max-width: 40ch;
  margin: var(--s3) 0 var(--s4);
}
.mag-masthead--index .mag-standfirst { max-width: 52ch; }
.mag-masthead-meta {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
}

.mag-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.05rem;
  padding-top: var(--s3);
  border-top: 1px solid var(--line-strong);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.mag-byline-name {
  font-weight: 700;
  color: var(--primary-800);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--t-xs);
}
.mag-byline-name a { color: inherit; text-decoration-color: var(--gold); }
.mag-byline-item { position: relative; padding-left: 1.05rem; }
.mag-byline-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---- featured photograph ---- */
.mag-figure { margin: 0; padding: var(--s5) 0 0; }
.mag-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
}

/* ---- article body typography ---- */
.mag-prose {
  padding: var(--s6) 0 var(--s5);
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--ink-70);
  max-width: 68ch;
}
.mag-prose > * { max-width: 68ch; }
.mag-prose p { margin: 0 0 var(--s4); }
.mag-prose h2 {
  font-size: var(--t-xl);
  color: var(--primary-900);
  margin: var(--s6) 0 var(--s3);
  padding-top: var(--s3);
  border-top: 2px solid var(--primary-100);
}
.mag-prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.mag-prose h3 {
  font-size: 1.16rem;
  color: var(--primary-800);
  margin: var(--s5) 0 var(--s2);
}
.mag-prose ul, .mag-prose ol { margin: 0 0 var(--s4); padding-left: 1.3rem; }
.mag-prose li { margin-bottom: 0.55rem; }
.mag-prose li::marker { color: var(--primary-500); font-weight: 700; }
.mag-prose a { color: var(--primary-700); text-decoration-color: var(--gold-600); }
.mag-prose a:hover { color: var(--primary-900); }
.mag-prose strong { color: var(--primary-900); }
.mag-prose blockquote {
  margin: var(--s5) 0;
  padding: var(--s3) var(--s4);
  border-left: 4px solid var(--gold);
  background: var(--surface);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  box-shadow: var(--sh-1);
  font-family: var(--font-display);
  font-size: var(--t-md);
  font-style: italic;
  color: var(--primary-900);
}
.mag-prose blockquote p:last-child { margin-bottom: 0; }
.mag-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s4) 0 var(--s5);
  font-size: 0.94rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.mag-prose th, .mag-prose td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.mag-prose thead th {
  background: var(--primary-050);
  color: var(--primary-900);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--t-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.mag-prose tbody tr:last-child td { border-bottom: 0; }
.mag-prose tbody tr:nth-child(even) { background: #FCFDF9; }

/* ---- contextual keep reading line ---- */
.mag-prose .inline-read {
  margin: var(--s4) 0;
  padding: 0.85rem 1rem 0.85rem 2.4rem;
  position: relative;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary-600);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-70);
}
.mag-prose .inline-read::before {
  content: "";
  position: absolute;
  left: 1rem; top: 1.15rem;
  width: 16px; height: 8px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 72% 50%, 100% 100%, 0 100%);
}
.mag-prose .inline-read a { font-weight: 700; }

/* ---- call to action plate ---- */
.mag-cta-wrap, .mag-index-cta { padding-bottom: var(--s5); }
.mag-index-cta { padding-top: var(--s6); }
.mag-cta {
  position: relative;
  background: var(--primary-700);
  color: #E7EFE9;
  border-radius: var(--r-md);
  padding: var(--s5);
  box-shadow: var(--sh-2);
  border: 1px solid var(--primary-900);
  overflow: hidden;
}
.mag-cta::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(200, 169, 81, 0.42);
  border-radius: var(--r-sm);
  pointer-events: none;
}
.mag-cta .eyebrow { color: var(--gold-300); }
.mag-cta h2 { color: #FFFFFF; font-size: var(--t-lg); max-width: 24ch; }
.mag-cta p { color: #C6D8CC; max-width: 58ch; }
.mag-cta-act { margin-bottom: 0; }
.mag-cta .btn--primary {
  background: var(--gold);
  color: #20180A;
  box-shadow: inset 0 0 0 1px var(--gold-700);
}
.mag-cta .btn--primary:hover { background: var(--gold-300); color: #20180A; }

/* ---- author box ---- */
.mag-author {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: var(--s4);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary-600);
  border-radius: var(--r-sm);
  padding: var(--s4);
  box-shadow: var(--sh-1);
  margin-bottom: var(--s6);
}
.mag-author img {
  width: 132px; height: 132px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
}
.mag-author h2 { font-size: var(--t-lg); margin-bottom: var(--s2); }
.mag-author p { color: var(--ink-70); font-size: 0.95rem; }
.mag-author p:last-child { margin-bottom: 0; }

/* ---- Read also ---- */
.mag-related {
  padding: var(--s7) 0 var(--s8);
  background: var(--cream-2);
  border-top: 1px solid var(--line);
}
.mag-related-title { font-size: var(--t-xl); margin-bottom: var(--s4); }
.mag-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}
.mag-rel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--sh-1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.mag-rel:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--primary-300);
  color: inherit;
}
.mag-rel-media { display: block; }
.mag-rel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-body { display: block; padding: var(--s3) var(--s4) var(--s4); }
.mag-rel-date {
  display: block;
  font-size: var(--t-xs);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-700);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.mag-rel-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.24;
  color: var(--primary-900);
  margin-bottom: 0.45rem;
}
.mag-rel:hover .mag-rel-title { color: var(--primary-600); }
.mag-rel-dek {
  display: block;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-70);
}
.mag-related-all { margin: var(--s4) 0 0; font-weight: 600; }

/* ---- magazine index grid ---- */
.mag-grid-wrap { padding: var(--s6) 0 var(--s5); }
.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5) var(--s4);
}
.mag-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.mag-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--primary-300); }
.mag-card-media { margin: 0; }
.mag-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-body { padding: var(--s4); display: flex; flex-direction: column; flex: 1; }
.mag-card-body .eyebrow { margin-bottom: var(--s1); font-size: 0.7rem; letter-spacing: 0.15em; }
.mag-card-title { font-size: 1.16rem; line-height: 1.22; margin-bottom: var(--s2); }
.mag-card-title a { color: var(--primary-900); text-decoration: none; }
.mag-card:hover .mag-card-title a { color: var(--primary-600); text-decoration: underline; text-decoration-color: var(--gold); }
.mag-card-dek { font-size: 0.93rem; color: var(--ink-70); margin-bottom: var(--s3); }
.mag-card-meta {
  margin: auto 0 0;
  padding-top: var(--s2);
  border-top: 1px dotted var(--line-strong);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.mag-dot { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex: none; }

.mag-card.lead {
  grid-column: 1 / -1;
  flex-direction: row;
  border-top: 3px solid var(--primary-600);
  box-shadow: var(--sh-2);
}
.mag-card.lead .mag-card-media { flex: 1 1 55%; min-width: 0; }
.mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.mag-card.lead .mag-card-body { flex: 1 1 45%; padding: var(--s5); justify-content: center; }
.mag-card.lead .mag-card-title { font-size: var(--t-xl); }
.mag-card.lead .mag-card-dek { font-size: var(--t-md); }

/* ---- home page magazine teaser ---- */
.mag-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}
.mag-home-more { margin: var(--s5) 0 0; }

/* ---- author page article list ---- */
.mag-list { list-style: none; margin: 0; padding: 0; }
.mag-list li {
  padding: 0.75rem 0;
  border-bottom: 1px dotted var(--line-strong);
  margin: 0;
}
.mag-list li:last-child { border-bottom: 0; }
.mag-list a { font-weight: 600; text-decoration: none; }
.mag-list a:hover { text-decoration: underline; }
.mag-list time {
  display: block;
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

@media (max-width: 980px) {
  .mag-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card-media img { min-height: 0; aspect-ratio: 3 / 2; }
  .mag-card.lead .mag-card-body { padding: var(--s4); }
}

@media (max-width: 640px) {
  .mag-masthead { padding: var(--s5) 0 var(--s4); }
  .mag-masthead h1, .mag-masthead--index h1 { max-width: 100%; }
  .mag-standfirst { font-size: var(--t-md); max-width: 100%; }
  .mag-byline { font-size: 0.8rem; gap: 0.4rem 0.85rem; }
  .mag-figure { padding-top: var(--s4); }
  .mag-figure img { border-radius: var(--r-xs); }
  .mag-prose { padding: var(--s5) 0 var(--s4); font-size: 1.02rem; }
  .mag-prose h2 { margin-top: var(--s5); }
  .mag-prose table { display: block; overflow-x: auto; }
  .mag-cta { padding: var(--s4); }
  .mag-cta h2 { max-width: 100%; }
  .mag-author { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .mag-author img { width: 104px; height: 104px; }
  .mag-related { padding: var(--s6) 0; }
  .mag-related-grid, .mag-grid, .mag-home-grid { grid-template-columns: minmax(0, 1fr); }
  .mag-card.lead { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .mag-card, .mag-rel { transition: none; }
  .mag-card:hover, .mag-rel:hover { transform: none; }
}



/* Network strip: five sibling products, rotated so every site is linked the same
   number of times. Spans the full footer grid rather than adding a fifth column,
   because each footer declares a fixed column count and a fifth item would wrap. */
.site-network { grid-column: 1 / -1; flex-basis: 100%; width: 100%;
  margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.site-network h2 { font: inherit; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 0.7rem; opacity: 0.72; }
.site-network ul { list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-network li + li { margin-top: 0; }
.site-network a { font-size: 0.86rem; text-decoration: none; opacity: 0.9;
  border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { opacity: 1; border-bottom-color: currentColor; }
@media (max-width: 620px) { .site-network ul { gap: 0.45rem 1.1rem; } }


/* Decorative bleed guard. Several sections intentionally hang a rotated or offset
   pseudo element past the viewport edge. overflow-x: clip contains them without
   creating a scroll container, so position: sticky keeps working, unlike overflow
   hidden. Genuine content overflow is still reported by the element level check in
   the browser pass. */
html { overflow-x: clip; }
body { overflow-x: clip; }


/* Wide content on phones. Class names for the prose wrapper differ from site to site,
   so this targets tables and pre blocks directly: they scroll inside their own box
   rather than pushing cells past the right edge, per the build contract. */
@media (max-width: 700px) {
  table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { overflow-wrap: anywhere; }
  pre { overflow-x: auto; max-width: 100%; }
}
