:root {
  --ink: #17241b;
  --ink-soft: #324137;
  --loden: #22382a;
  --loden-deep: #101c15;
  --moss: #53654f;
  --sage: #9ea792;
  --parchment: #eee9dc;
  --ivory: #f8f5ec;
  --paper: #fbf9f3;
  --stone: #d8d0bf;
  --line: rgba(23, 36, 27, 0.18);
  --brass: #aa8b54;
  --oxblood: #6c352f;
  --blue: #687a83;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 28px 70px rgba(18, 27, 21, 0.11);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  background: var(--parchment);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(rgba(45, 54, 46, 0.035) 1px, transparent 1px),
    var(--parchment);
  background-size: 100% 32px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea { font: inherit; }

button { color: inherit; cursor: pointer; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 {
  margin-bottom: .7rem;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.03;
}

h1 { font-size: clamp(3rem, 8vw, 6.9rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h3 { font-size: 1.35rem; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: .8rem;
  left: .8rem;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  color: var(--ivory);
  background: var(--loden-deep);
}
.skip-link:focus { transform: none; }

.app-shell { min-height: 100vh; }

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 86px;
  padding: .8rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(240, 235, 220, .12);
  color: var(--ivory);
  background: rgba(16, 28, 21, .96);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  width: max-content;
  padding: 0;
  border: 0;
  text-align: left;
  background: transparent;
}

.brand img { width: 38px; height: 46px; }
.brand strong, .brand small { display: block; }
.brand strong {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: .02em;
}
.brand small {
  margin-top: .12rem;
  color: rgba(248, 245, 236, .55);
  font-size: .59rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.desktop-nav { display: flex; gap: 1.6rem; }
.desktop-nav button {
  position: relative;
  padding: .4rem 0;
  border: 0;
  color: rgba(248, 245, 236, .62);
  background: transparent;
  font-size: .69rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.desktop-nav button::after {
  position: absolute;
  right: 0;
  bottom: -.25rem;
  left: 0;
  height: 1px;
  background: var(--stone);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.desktop-nav button:hover,
.desktop-nav button.is-active { color: var(--ivory); }
.desktop-nav button.is-active::after { transform: scaleX(1); }

.topbar-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.quiet-action {
  padding: .4rem 0;
  border: 0;
  color: var(--stone);
  background: transparent;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.member-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(248, 245, 236, .35);
  border-radius: 50%;
  color: var(--ivory);
  background: transparent;
  font-family: var(--serif);
  font-size: .8rem;
}

main {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 calc(8rem + var(--safe-bottom));
}

.view { display: none; animation: reveal 280ms ease-out; }
.view.is-active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.eyebrow {
  display: block;
  margin-bottom: .8rem;
  color: var(--moss);
  font-size: .65rem;
  font-weight: 650;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow.light { color: var(--stone); }

.hero-card {
  position: relative;
  display: grid;
  min-height: 680px;
  align-items: end;
  overflow: hidden;
  border-radius: 2px;
  color: var(--ivory);
  background: var(--loden-deep) url("/assets/club-morning.webp") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 18, 13, .88) 0%, rgba(10, 18, 13, .54) 43%, rgba(10, 18, 13, .08) 78%),
    linear-gradient(0deg, rgba(10, 18, 13, .7), transparent 52%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(750px, 72%);
  padding: clamp(2rem, 6vw, 5rem);
}

.hero-copy h1 { max-width: 700px; margin-bottom: 1rem; }
.hero-copy > p {
  max-width: 590px;
  color: rgba(248, 245, 236, .73);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  margin: 1.7rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(248, 245, 236, .22);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero-session-meta span + span { color: rgba(248, 245, 236, .55); }

.hero-agenda {
  display: grid;
  max-width: 580px;
  gap: .4rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
  counter-reset: agenda;
}

.hero-agenda li {
  display: grid;
  grid-template-columns: 1.7rem 1fr auto;
  gap: .6rem;
  align-items: center;
  color: rgba(248, 245, 236, .82);
  font-size: .85rem;
  counter-increment: agenda;
}
.hero-agenda li::before {
  content: "0" counter(agenda);
  color: var(--stone);
  font-family: var(--serif);
  font-size: .7rem;
}
.hero-agenda em { color: rgba(248, 245, 236, .5); font-size: .68rem; font-style: normal; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 1px;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-ivory { color: var(--ink); background: var(--ivory); }
.button-ghost { border-color: rgba(248, 245, 236, .42); color: var(--ivory); background: transparent; }
.button-dark { color: var(--ivory); background: var(--loden-deep); }
.button-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.button-danger { border-color: rgba(108, 53, 47, .35); color: var(--oxblood); background: transparent; }
.button-small { min-height: 38px; padding: .55rem .8rem; }

.week-seal {
  position: absolute;
  z-index: 2;
  right: clamp(1.5rem, 5vw, 4.5rem);
  bottom: clamp(2rem, 6vw, 4.5rem);
  width: 140px;
  height: 140px;
}
.week-seal svg { width: 100%; transform: rotate(-90deg); }
.ring-track, .ring-progress { fill: none; stroke-width: 2; }
.ring-track { stroke: rgba(248, 245, 236, .25); }
.ring-progress {
  stroke: var(--stone);
  stroke-dasharray: 314.16;
  stroke-dashoffset: 314.16;
  transition: stroke-dashoffset 700ms ease;
}
.week-seal > span {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
}
.week-seal strong { font-family: var(--serif); font-size: 2.6rem; font-weight: 400; line-height: .95; }
.week-seal small { color: rgba(248, 245, 236, .6); font-size: .55rem; letter-spacing: .14em; text-transform: uppercase; }

.ledger-strip,
.review-ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 1px 0 4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ledger-strip article,
.review-ledger article {
  min-height: 145px;
  padding: 1.3rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(248, 245, 236, .52);
}
.ledger-strip span, .ledger-strip small,
.review-ledger span, .review-ledger small { display: block; }
.ledger-strip span, .review-ledger span { color: var(--moss); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; }
.ledger-strip strong, .review-ledger strong { display: block; margin: .55rem 0 .3rem; font-family: var(--serif); font-size: 2.25rem; font-weight: 400; line-height: 1; }
.ledger-strip small, .review-ledger small { color: var(--moss); font-family: var(--serif); font-size: .8rem; }

.home-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1px; margin-bottom: 4.5rem; background: var(--line); }
.paper-card { padding: clamp(1.4rem, 4vw, 3rem); background: var(--paper); }
.paper-card > h2 { max-width: 680px; }

.appointment-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.appointment-list button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  width: 100%;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: transparent;
}
.appointment-list button > span:first-child { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-family: var(--serif); }
.appointment-list small, .appointment-list strong { display: block; }
.appointment-list small { color: var(--brass); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; }
.appointment-list strong { margin-top: .2rem; font-family: var(--serif); font-size: 1.05rem; font-weight: 400; }
.appointment-list em { color: var(--moss); font-size: .66rem; font-style: normal; }

.principle-card { position: relative; overflow: hidden; background: #dad6c9; }
.principle-card::after { position: absolute; right: -4rem; bottom: -5rem; width: 15rem; height: 15rem; border: 1px solid rgba(23,36,27,.13); border-radius: 50%; content: ""; box-shadow: 0 0 0 3rem rgba(23,36,27,.025); }
.principle-card p { max-width: 470px; color: var(--ink-soft); font-family: var(--serif); }
.underlined-action { position: relative; z-index: 1; padding: .2rem 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }

.method-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2rem, 6vw, 6rem); margin: 5rem 0; padding: 4.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro p { max-width: 430px; color: var(--moss); font-family: var(--serif); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.method-grid article { min-height: 270px; padding: 1.4rem; background: var(--parchment); }
.method-grid article > span { color: var(--brass); font-family: var(--serif); font-size: .8rem; }
.method-grid h3 { margin-top: 4.5rem; }
.method-grid p { color: var(--moss); font-family: var(--serif); font-size: .9rem; }

.monthly-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: end;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  color: var(--ivory);
  background: var(--loden-deep);
}
.monthly-card h2 { margin: 0; }
.monthly-card p { margin: 0; color: rgba(248,245,236,.65); font-family: var(--serif); }

.putting-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2rem;
  align-items: center;
  margin: 1px 0 0;
  padding: 2rem;
  border: 1px solid var(--line);
  background: rgba(248,245,236,.5);
}
.putting-row h2 { margin-bottom: .25rem; font-size: 1.5rem; }
.putting-row p { margin: 0; color: var(--moss); font-size: .75rem; }
.putting-steps { display: flex; gap: 1.2rem; }
.putting-steps span { color: var(--moss); font-family: var(--serif); font-size: .8rem; }
.putting-steps b { color: var(--ink); font-size: 1.2rem; font-weight: 400; }

.page-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin: 2.8rem 0 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.page-heading > div { max-width: 900px; }
.page-heading h1 { font-size: clamp(3rem, 7vw, 6rem); }
.page-heading p { max-width: 700px; color: var(--moss); font-family: var(--serif); font-size: 1.05rem; }

.week-picker { min-width: 215px; }
.week-picker span { display: block; margin-bottom: .4rem; color: var(--moss); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; }

input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: .75rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
}
select { padding-right: 1.4rem; }
textarea { resize: vertical; }

.session-switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 1px; background: var(--line); }
.session-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: .1rem 1rem;
  padding: 1.25rem;
  border: 0;
  text-align: left;
  background: var(--paper);
}
.session-tab > span { grid-row: 1 / 3; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-family: var(--serif); }
.session-tab strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; }
.session-tab small { color: var(--moss); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
.session-tab.is-active { color: var(--ivory); background: var(--loden); }
.session-tab.is-active > span { border-color: rgba(248,245,236,.4); }
.session-tab.is-active small { color: var(--stone); }

.session-header-card {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 330px;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  color: var(--ivory);
  background: var(--loden-deep);
}
.session-header-copy { max-width: 760px; }
.session-header-copy h2 { margin: .7rem 0; font-size: clamp(2.6rem, 6vw, 5rem); }
.session-header-copy p { max-width: 650px; margin: 0; color: rgba(248,245,236,.68); font-family: var(--serif); font-size: 1.05rem; }
.mode-badge { display: inline-block; padding: .35rem .6rem; border: 1px solid rgba(248,245,236,.3); color: var(--stone); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; }

.timer-card { min-width: 225px; padding-left: 2.2rem; border-left: 1px solid rgba(248,245,236,.2); }
.timer-card > small { display: block; color: var(--stone); font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; }
.timer-card > span { display: block; margin: .25rem 0 1rem; font-family: var(--serif); font-size: 3.2rem; font-variant-numeric: tabular-nums; }
.timer-card > div { display: flex; align-items: center; gap: 1rem; }
.light-action { color: rgba(248,245,236,.66); }

.practice-brief { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1px 0 4rem; gap: 1px; background: var(--line); }
.practice-brief article { min-height: 190px; padding: 1.4rem; background: var(--paper); }
.practice-brief article > span { color: var(--brass); font-size: .58rem; letter-spacing: .17em; text-transform: uppercase; }
.practice-brief h3 { margin-top: 1.5rem; font-size: 1.25rem; }
.practice-brief p { color: var(--moss); font-family: var(--serif); font-size: .82rem; }

.practice-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
.agenda-heading { margin-bottom: 1.5rem; }
.agenda-heading h2 { margin: 0; }
.guided-agenda { border-top: 1px solid var(--line); }
.agenda-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.agenda-number { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--brass); font-family: var(--serif); font-size: .78rem; }
.agenda-card h3 { margin-bottom: .35rem; font-size: 1.35rem; }
.agenda-card p { margin-bottom: .6rem; color: var(--ink-soft); font-family: var(--serif); }
.agenda-card ul { margin: 0; padding-left: 1.15rem; color: var(--moss); font-size: .82rem; }
.agenda-card li + li { margin-top: .25rem; }
.agenda-minutes { color: var(--moss); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }

.practice-notes { position: sticky; top: 110px; display: grid; gap: 1px; background: var(--line); }
.practice-notes article { padding: 1.4rem; background: #ddd7c9; }
.practice-notes ul, .practice-notes ol { margin: 0; padding-left: 1.15rem; color: var(--ink-soft); font-family: var(--serif); font-size: .86rem; }
.practice-notes li + li { margin-top: .55rem; }

.record-card { margin-top: 5rem; padding: clamp(2rem, 5vw, 4rem); color: var(--ivory); background: var(--loden-deep); }
.record-heading { max-width: 740px; margin-bottom: 2rem; }
.record-heading p { color: rgba(248,245,236,.62); font-family: var(--serif); }
.record-card input, .record-card select, .record-card textarea { border-color: rgba(248,245,236,.28); color: var(--ivory); }
.record-card option { color: var(--ink); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; margin-bottom: 1.7rem; }
.form-grid label { color: var(--ink-soft); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.form-grid label > span { color: var(--moss); font-family: var(--serif); font-size: .7rem; font-style: italic; letter-spacing: 0; text-transform: none; }
.record-card .form-grid label { color: var(--stone); }
.record-card .form-grid label > span { color: rgba(248,245,236,.48); }
.span-2 { grid-column: span 2; }

.programme-heading { grid-template-columns: 1fr auto; }
.programme-mark { display: flex; align-items: center; gap: 1rem; color: var(--moss); font-family: var(--serif); font-size: .8rem; }
.programme-mark img { width: 70px; filter: brightness(.35); }
.programme-principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 4rem; background: var(--line); }
.programme-principles article { min-height: 250px; padding: 1.3rem; background: var(--paper); }
.programme-principles article > span { color: var(--brass); font-family: var(--serif); }
.programme-principles h3 { margin-top: 4rem; }
.programme-principles p { color: var(--moss); font-family: var(--serif); font-size: .84rem; }

.weekly-blueprint { display: grid; grid-template-columns: .62fr 1.38fr; gap: 3rem; margin-bottom: 4rem; padding: 3rem; color: var(--ivory); background: var(--loden-deep); }
.blueprint-heading p { color: rgba(248,245,236,.6); font-family: var(--serif); }
.blueprint-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(248,245,236,.18); }
.blueprint-columns article { padding: 1.3rem; background: rgba(248,245,236,.05); }
.blueprint-columns article > div > span, .protocol-options article > span, .scale-columns article > span { color: var(--stone); font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; }
.blueprint-columns h3 { color: var(--ivory); }
.blueprint-columns ol { margin: 1.3rem 0 0; padding: 0; list-style: none; }
.blueprint-columns li { display: grid; grid-template-columns: 42px 1fr; gap: .6rem; padding: .55rem 0; border-top: 1px solid rgba(248,245,236,.14); color: rgba(248,245,236,.66); font-family: var(--serif); font-size: .78rem; }
.blueprint-columns b { color: var(--stone); font-weight: 400; }

.phase-map { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-bottom: 1px; background: var(--line); }
.phase-map button { min-height: 90px; padding: 1rem; border: 0; text-align: left; background: var(--paper); }
.phase-map span, .phase-map strong { display: block; }
.phase-map span { color: var(--moss); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; }
.phase-map strong { margin-top: .35rem; font-family: var(--serif); font-weight: 400; }
.phase-map button.is-active { color: var(--ivory); background: var(--loden); }
.phase-map button.is-active span { color: var(--stone); }

.plan-weeks { display: grid; gap: 1px; background: var(--line); }
.week-card { background: var(--paper); }
.week-card[hidden] { display: none; }
.week-card summary { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.2rem; list-style: none; cursor: pointer; }
.week-card summary::-webkit-details-marker { display: none; }
.week-card summary::after { color: var(--brass); content: "+"; font-family: var(--serif); font-size: 1.5rem; }
.week-card[open] summary::after { content: "−"; }
.week-number { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-family: var(--serif); }
.week-summary-copy strong, .week-summary-copy span { display: block; }
.week-summary-copy strong { font-family: var(--serif); font-size: 1.08rem; font-weight: 400; }
.week-summary-copy span { margin-top: .25rem; color: var(--moss); font-family: var(--serif); font-size: .82rem; }
.week-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 0 1.2rem 1.2rem; background: var(--line); }
.week-session { padding: 1.3rem; background: #e5e0d4; }
.week-session > span { color: var(--moss); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; }
.week-session ol { margin: 1rem 0 0; padding-left: 1.15rem; color: var(--ink-soft); font-family: var(--serif); font-size: .84rem; }
.week-session li + li { margin-top: .4rem; }
.week-checkpoint { grid-column: 1 / -1; padding: 1rem 1.3rem; color: var(--ivory); background: var(--loden); font-family: var(--serif); }

.monthly-protocol { display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; margin-top: 4rem; padding: 3.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.protocol-heading p { color: var(--moss); font-family: var(--serif); }
.protocol-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.protocol-options article { padding: 1.4rem; background: var(--paper); }
.protocol-options article > span { color: var(--brass); }
.protocol-options h3 { margin-top: 2rem; }
.protocol-options ol { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--moss); font-family: var(--serif); font-size: .82rem; }
.protocol-options li + li { margin-top: .45rem; }

.elite-scale { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; margin-top: 1px; padding: 3rem; color: var(--ivory); background: var(--loden); }
.elite-scale > div:first-child p { color: rgba(248,245,236,.62); font-family: var(--serif); }
.scale-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(248,245,236,.18); }
.scale-columns article { padding: 1.3rem; background: rgba(248,245,236,.04); }
.scale-columns ul { margin: 1rem 0 0; padding-left: 1.1rem; color: rgba(248,245,236,.68); font-family: var(--serif); font-size: .8rem; }
.scale-columns li + li { margin-top: .42rem; }

.evidence-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; margin-top: 4rem; padding: clamp(2rem, 5vw, 4rem); color: var(--ivory); background: var(--loden-deep); }
.evidence-card p { max-width: 700px; color: rgba(248,245,236,.64); font-family: var(--serif); }
.evidence-card ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(248,245,236,.2); }
.evidence-card li { padding: .8rem 0; border-bottom: 1px solid rgba(248,245,236,.2); }
.evidence-card a { color: var(--stone); font-family: var(--serif); font-size: .86rem; text-decoration: none; }

.coach-note { display: grid; grid-template-columns: auto 1fr; gap: 2rem; margin-bottom: 1px; padding: clamp(2rem, 5vw, 4rem); color: var(--ivory); background: var(--loden); }
.coach-note-number { font-family: var(--serif); font-size: 4.5rem; opacity: .28; }
.coach-note > div:last-child { max-width: 800px; }
.coach-note p { color: rgba(248,245,236,.66); font-family: var(--serif); }
.coach-note strong { color: var(--stone); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.review-ledger { margin-bottom: 4rem; }

.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 1px; background: var(--line); }
.chart-card { padding: clamp(1.3rem, 3vw, 2rem); background: var(--paper); }
.chart { min-height: 260px; }
.chart svg { display: block; width: 100%; height: 260px; }
.chart-empty { display: grid; min-height: 260px; place-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--moss); font-family: var(--serif); text-align: center; }
.chart-grid-line { stroke: #ded8ca; stroke-width: 1; }
.chart-label { fill: #798276; font-size: 10px; }
.chart-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { stroke: var(--paper); stroke-width: 2; }
.chart-legend { display: flex; gap: 1rem; color: var(--moss); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.chart-legend span::before { display: inline-block; width: 7px; height: 7px; margin-right: .35rem; border-radius: 50%; content: ""; }
.legend-wedge::before { background: var(--moss); }
.legend-approach::before { background: var(--brass); }
.legend-driver::before { background: var(--blue); }

.benchmark-card { display: grid; grid-template-columns: .75fr 1.25fr; gap: 3rem; margin-bottom: 1px; padding: clamp(2rem, 5vw, 4rem); color: var(--ivory); background: var(--loden-deep); }
.benchmark-card > div:first-child p { color: rgba(248,245,236,.62); font-family: var(--serif); }
.benchmark-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(248,245,236,.18); }
.benchmark-grid section { padding: 1.2rem; background: rgba(248,245,236,.05); }
.benchmark-grid span { color: var(--stone); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; }
.benchmark-grid h3 { margin-top: 2rem; color: var(--ivory); }
.benchmark-grid p { color: rgba(248,245,236,.58); font-family: var(--serif); font-size: .78rem; }

.history-card { margin-top: 1px; padding: clamp(1.5rem, 4vw, 3rem); background: var(--paper); }
.history-list { display: grid; margin-top: 1.5rem; border-top: 1px solid var(--line); }
.history-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.history-row time, .history-row span { color: var(--moss); font-size: .7rem; }
.history-row strong, .history-row span { display: block; }
.history-row strong { font-family: var(--serif); font-weight: 400; }
.delete-row { padding: .3rem; border: 0; color: var(--oxblood); background: transparent; }

.record-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); gap: 1px; align-items: start; background: var(--line); }
.round-form-card h2 { margin-bottom: 2rem; }
.record-layout aside { display: grid; gap: 1px; background: var(--line); }
.decision-card { padding: 2rem; color: var(--ivory); background: var(--loden-deep); }
.decision-card ul { margin: 1.5rem 0 0; padding-left: 1.1rem; color: rgba(248,245,236,.65); font-family: var(--serif); }
.decision-card li + li { margin-top: .75rem; }

.dialog {
  width: min(760px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: clamp(1.3rem, 4vw, 2.6rem);
  border: 1px solid var(--stone);
  border-radius: 0;
  color: var(--ink);
  background: var(--ivory);
  box-shadow: 0 40px 100px rgba(8,14,10,.42);
}
.dialog-wide { width: min(900px, calc(100% - 2rem)); }
.dialog::backdrop { background: rgba(8,14,10,.78); backdrop-filter: blur(4px); }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.close-button { padding: .2rem 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--moss); font-family: var(--serif); }
.dialog-actions, .data-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.advanced-profile { margin: 0 0 1.4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.advanced-profile summary { padding: .9rem 0; cursor: pointer; color: var(--ink); font-family: var(--serif); }
.advanced-profile summary span { color: var(--moss); font-size: .75rem; font-style: italic; }
.advanced-profile .form-grid { padding-top: .6rem; }
.dialog section + section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.carry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem 1rem; margin: 1.5rem 0; }
.carry-grid label { color: var(--moss); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.file-button { position: relative; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.bottom-nav { display: none; }
.toast { position: fixed; z-index: 100; right: 1rem; bottom: calc(1rem + var(--safe-bottom)); max-width: min(390px, calc(100% - 2rem)); padding: .9rem 1.1rem; color: var(--ivory); background: var(--loden-deep); box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: 180ms ease; font-family: var(--serif); }
.toast.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .home-grid, .method-section, .benchmark-card, .record-layout, .weekly-blueprint, .monthly-protocol, .elite-scale { grid-template-columns: 1fr; }
  .programme-principles { grid-template-columns: 1fr 1fr; }
  .practice-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 1.5rem; }
  .method-grid { min-height: 250px; }
  .monthly-card { grid-template-columns: 1fr 1fr; }
  .monthly-card .button { grid-column: 1 / -1; width: max-content; }
  .putting-row { grid-template-columns: 1fr auto; }
  .putting-steps { grid-column: 1 / -1; }
  .bottom-nav {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: min(720px, calc(100% - 1rem));
    margin: 0 auto calc(.5rem + var(--safe-bottom));
    border: 1px solid rgba(248,245,236,.15);
    background: rgba(16,28,21,.97);
    box-shadow: 0 18px 60px rgba(8,14,10,.32);
  }
  .bottom-nav button { display: grid; min-height: 62px; place-items: center; padding: .45rem .25rem; border: 0; border-right: 1px solid rgba(248,245,236,.1); color: rgba(248,245,236,.52); background: transparent; }
  .bottom-nav button:last-child { border-right: 0; }
  .bottom-nav button span { font-family: var(--serif); font-size: .74rem; }
  .bottom-nav button small { color: var(--stone); font-size: .5rem; letter-spacing: .1em; }
  .bottom-nav button.is-active { color: var(--ink); background: var(--stone); }
  .bottom-nav button.is-active small { color: var(--ink-soft); }
}

@media (max-width: 700px) {
  .topbar { min-height: 72px; padding: .6rem 1rem; }
  .brand img { width: 32px; height: 39px; }
  .brand strong { font-size: .93rem; }
  .brand small, .install-button { display: none; }
  .member-button { width: 38px; height: 38px; }
  main { width: min(100% - 1rem, 1320px); padding-top: .5rem; }
  .hero-card { min-height: 680px; background-position: 61% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(9,16,12,.94) 0%, rgba(9,16,12,.66) 52%, rgba(9,16,12,.12) 100%); }
  .hero-copy { width: 100%; padding: 1.4rem; }
  .hero-copy h1 { font-size: 3.4rem; }
  .hero-copy > p { max-width: 85%; font-size: 1rem; }
  .hero-agenda { max-width: calc(100% - 4.8rem); }
  .hero-agenda li { grid-template-columns: 1.4rem 1fr; font-size: .74rem; }
  .hero-agenda em { display: none; }
  .hero-actions { display: grid; }
  .week-seal { right: 1.2rem; bottom: 1.3rem; width: 76px; height: 76px; }
  .week-seal strong { font-size: 1.4rem; }
  .week-seal small { font-size: .42rem; }
  .ledger-strip, .review-ledger { grid-template-columns: 1fr 1fr; margin-bottom: 3rem; }
  .ledger-strip article, .review-ledger article { min-height: 120px; padding: 1rem; }
  .ledger-strip strong, .review-ledger strong { font-size: 1.8rem; }
  .home-grid { margin-bottom: 3rem; }
  .method-section { gap: 1.5rem; margin: 3rem 0; padding: 3rem 0; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid article { min-height: auto; }
  .method-grid h3 { margin-top: 1.8rem; }
  .monthly-card, .putting-row { grid-template-columns: 1fr; gap: 1.2rem; }
  .monthly-card .button, .putting-row .button { width: 100%; }
  .putting-steps { display: grid; grid-column: auto; grid-template-columns: repeat(3,1fr); gap: .5rem; }
  .putting-steps span { padding-right: .4rem; border-right: 1px solid var(--line); }
  .page-heading { grid-template-columns: 1fr; margin-top: 1.4rem; }
  .page-heading h1 { font-size: 3.25rem; }
  .week-picker { width: 100%; }
  .session-switcher { position: sticky; z-index: 20; top: 72px; }
  .session-tab { padding: .85rem; }
  .session-tab > span { width: 34px; height: 34px; }
  .session-tab strong { font-size: .88rem; }
  .session-tab small { font-size: .52rem; }
  .session-header-card { grid-template-columns: 1fr; min-height: auto; padding: 1.5rem; }
  .session-header-copy h2 { font-size: 3rem; }
  .timer-card { padding: 1rem 0 0; border-top: 1px solid rgba(248,245,236,.2); border-left: 0; }
  .timer-card > span { font-size: 2.4rem; }
  .practice-brief { grid-template-columns: 1fr; margin-bottom: 3rem; }
  .practice-brief article { min-height: auto; }
  .practice-brief h3 { margin-top: 1rem; }
  .practice-layout { grid-template-columns: 1fr; }
  .practice-notes { position: static; }
  .agenda-card { grid-template-columns: 36px 1fr; gap: .7rem; }
  .agenda-minutes { grid-column: 2; }
  .record-card { margin-top: 3rem; padding: 1.4rem; }
  .form-grid, .week-detail, .evidence-card, .charts-grid, .blueprint-columns, .protocol-options, .scale-columns { grid-template-columns: 1fr; }
  .span-2, .week-checkpoint { grid-column: auto; }
  .programme-mark { display: none; }
  .programme-principles { grid-template-columns: 1fr 1fr; }
  .programme-principles article { min-height: 220px; }
  .programme-principles h3 { margin-top: 2.5rem; }
  .phase-map { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .phase-map button { min-width: 135px; scroll-snap-align: start; }
  .week-card summary { padding: 1rem .8rem; }
  .evidence-card { gap: 1.5rem; }
  .coach-note { gap: 1rem; padding: 1.5rem; }
  .coach-note-number { font-size: 3rem; }
  .benchmark-grid { grid-template-columns: 1fr; }
  .history-row { grid-template-columns: 1fr auto auto; }
  .history-row time { display: none; }
  .carry-grid { grid-template-columns: 1fr 1fr; }
  .dialog { width: calc(100% - 1rem); max-height: calc(100vh - 1rem); padding: 1.2rem; }
  .dialog-actions, .data-actions { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .topbar, .bottom-nav, button { display: none !important; }
  main { width: 100%; padding: 0; }
  .view { display: none !important; }
  #view-plan { display: block !important; }
  .week-card { break-inside: avoid; }
}
