@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --paper: #f6efdf;
  --paper-strong: #fcf7eb;
  --paper-soft: #ece3cf;
  --chalk: #f0f1e7;
  --chalk-soft: rgba(240, 241, 231, 0.72);
  --ink: #0b0b10;
  --ink-soft: rgba(11, 11, 16, 0.72);
  --line: rgba(11, 11, 16, 0.1);
  --line-strong: rgba(11, 11, 16, 0.2);
  --blue: #1b2cff;
  --blue-deep: #101693;
  --gold: #f7e118;
  --gold-deep: #b99c00;
  --red: #c81c0f;
  --aqua: #bfffff;
  --white: #ffffff;
  --shadow: 0 18px 38px rgba(2, 8, 6, 0.22);
  --shadow-soft: 0 10px 24px rgba(2, 8, 6, 0.16);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: min(1020px, calc(100% - 28px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    linear-gradient(180deg, rgba(6, 27, 20, 0.58), rgba(6, 27, 20, 0.7)),
    url("../textures/chalkboard-background.jpg") center top / cover fixed no-repeat,
    #163f2f;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.12), transparent 20%),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 48% 62%, rgba(255, 255, 255, 0.06), transparent 24%);
  opacity: 0.52;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(96, 58, 28, 0.92), rgba(74, 42, 18, 0.96));
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

.site-shell {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 10px 0 0;
}

.site-shell__bar {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(247, 225, 24, 0.16);
  border-radius: 18px;
  background: rgba(7, 26, 18, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.site-brand span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.site-brand strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--paper-strong);
}

.site-brand small {
  color: var(--chalk-soft);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-shell__toggle {
  display: none;
  margin-left: auto;
  padding: 10px 14px;
  border: 1px solid rgba(247, 225, 24, 0.16);
  border-radius: 999px;
  background: rgba(252, 247, 235, 0.12);
  color: var(--paper-strong);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.site-nav__link {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--chalk-soft);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--paper-strong);
  background: rgba(252, 247, 235, 0.08);
}

.site-nav__link.is-active {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(252, 247, 235, 0.92), rgba(240, 230, 204, 0.92));
  box-shadow: inset 0 0 0 1px rgba(247, 225, 24, 0.16);
}

.site-shell__actions,
.site-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-shell__actions {
  margin-left: 10px;
}

.site-utility {
  padding: 10px 0 0;
}

.site-utility__inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.site-utility__label {
  margin: 0;
  padding: 0 4px;
  color: rgba(252, 247, 235, 0.72);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.site-utility__link {
  flex: 1 1 160px;
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(247, 225, 24, 0.12);
  background: rgba(7, 26, 18, 0.72);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-utility__link:hover,
.site-utility__link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(247, 225, 24, 0.24);
}

.site-utility__link strong {
  color: var(--paper-strong);
  font-size: 0.9rem;
}

.site-utility__link small {
  color: rgba(252, 247, 235, 0.68);
}

.site-utility__link.is-active {
  background: linear-gradient(135deg, rgba(252, 247, 235, 0.94), rgba(240, 230, 204, 0.92));
  border-color: rgba(247, 225, 24, 0.28);
}

.site-utility__link.is-active strong,
.site-utility__link.is-active small {
  color: var(--ink);
}

.site-user-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(252, 247, 235, 0.14);
  border: 1px solid rgba(247, 225, 24, 0.16);
  color: var(--paper-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.site-auth__button {
  min-height: 38px;
}

.site-auth__button.is-current {
  box-shadow: 0 0 0 2px rgba(247, 225, 24, 0.22);
}

.la-page {
  width: var(--container);
  margin: 0 auto;
  padding: 22px 0 64px;
}

.hero-legacy,
.page-intro,
.hero-grid,
.dashboard-grid,
.grid-2,
.grid-3,
.grid-4,
.card-grid,
.program-grid,
.support-grid,
.tool-grid,
.admin-grid,
.exercise-grid,
.progress-grid,
.foundation-grid,
.command-grid,
.page-bridge {
  display: grid;
  gap: 22px;
}

.hero-legacy,
.page-intro,
.hero-grid,
.dashboard-grid,
.exercise-grid,
.progress-grid,
.page-bridge {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3,
.card-grid,
.program-grid,
.support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4,
.tool-grid,
.foundation-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.command-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 0.95fr);
}

.dashboard-main,
.dashboard-side,
.panel-stack,
.stack,
.timeline,
.exercise-results,
.exercise-detail__stack,
.section-list {
  display: grid;
  gap: 14px;
}

.page-section {
  margin-top: 22px;
}

.eyebrow,
.site-footer__eyebrow,
.page-intro__label {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.9rem);
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
}

h3 {
  font-size: 1.45rem;
}

p,
li,
span,
small {
  line-height: 1.65;
}

.lede,
.panel p,
.card p,
.exercise-card p,
.program-card p,
.support-card p,
.tool-card p,
.foundation-card p,
.timeline-item p,
.admin-panel p {
  margin: 0;
  color: var(--ink-soft);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-head h2 {
  color: var(--paper-strong);
}

.section-head .eyebrow {
  color: var(--gold);
}

.hero-legacy__content,
.hero-legacy__crest,
.page-intro__copy,
.page-intro__panel,
.panel,
.card,
.exercise-card,
.exercise-detail,
.program-card,
.support-card,
.tool-card,
.foundation-card,
.timeline-item,
.admin-panel,
.legacy-frame,
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(106, 80, 39, 0.16);
  background: rgba(252, 247, 235, 0.92);
  box-shadow: var(--shadow);
}

.hero-legacy__content,
.page-intro__copy {
  padding: 24px;
  background: linear-gradient(145deg, rgba(252, 247, 235, 0.97), rgba(243, 233, 211, 0.92));
}

.hero-legacy__crest,
.page-intro__panel,
.panel--dark,
.panel--legacy-dark,
.cta-band,
.cta-band--legacy {
  background:
    radial-gradient(circle at top right, rgba(247, 225, 24, 0.08), transparent 26%),
    linear-gradient(145deg, rgba(7, 26, 18, 0.96), rgba(8, 19, 37, 0.92));
  color: var(--paper-strong);
  border-color: rgba(247, 225, 24, 0.14);
}

.hero-legacy__crest p,
.page-intro__panel p,
.panel--dark p,
.panel--legacy-dark p,
.cta-band p,
.cta-band--legacy p {
  color: rgba(252, 247, 235, 0.76);
}

.panel--legacy,
.card--legacy,
.exercise-card--legacy,
.program-card--legacy,
.support-card--legacy,
.foundation-card--legacy {
  background: linear-gradient(145deg, rgba(252, 247, 235, 0.96), rgba(241, 232, 210, 0.8));
}

.panel--glass {
  background: linear-gradient(145deg, rgba(252, 247, 235, 0.92), rgba(246, 237, 219, 0.88));
}

.card--legacy::after,
.panel--legacy::after,
.program-card--legacy::after,
.support-card--legacy::after,
.exercise-card--legacy::after,
.foundation-card--legacy::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--red));
  opacity: 0.95;
}

.hero-legacy__logo {
  width: min(100%, 220px);
  margin: 0 auto;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.28));
}

.legacy-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(247, 225, 24, 0.16);
}

.hero-legacy__content h1,
.page-intro__copy h1 {
  margin-bottom: 18px;
}

.hero-legacy__content h1 {
  max-width: 9ch;
}

.page-intro__copy h1 {
  max-width: 14ch;
}

.page-intro--solo {
  grid-template-columns: 1fr;
}

.hero-legacy__content .lede,
.page-intro__copy .lede {
  max-width: 36rem;
}

.button-row,
.chip-row,
.toolbar,
.pill-nav,
.support-tabs,
.stat-row,
.option-grid,
.field-grid,
.metric-strip,
.detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.field-grid,
.metric-strip,
.detail-grid {
  display: grid;
}

.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.metric-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-strip--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-strip--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  font-size: 0.88rem;
  font-weight: 800;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  border-color: rgba(247, 225, 24, 0.28);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(16, 22, 147, 0.24);
}

.button--secondary {
  background: linear-gradient(135deg, var(--gold), #f3d80b);
  color: var(--ink);
}

.button--quiet {
  background: rgba(252, 247, 235, 0.82);
  border-color: rgba(106, 80, 39, 0.16);
  color: var(--ink);
}

.button--ghost {
  background: rgba(252, 247, 235, 0.08);
  border-color: rgba(252, 247, 235, 0.16);
  color: var(--paper-strong);
}

.option {
  flex: 1 1 160px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(11, 11, 16, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.option small {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.option:hover,
.option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(27, 44, 255, 0.2);
  box-shadow: 0 10px 22px rgba(27, 44, 255, 0.08);
}

.option.is-selected {
  border-color: rgba(16, 22, 147, 0.28);
  background: linear-gradient(135deg, rgba(16, 22, 147, 0.94), rgba(27, 44, 255, 0.9));
  box-shadow: 0 14px 26px rgba(16, 22, 147, 0.22);
  color: var(--paper-strong);
}

.option.is-selected small {
  color: rgba(252, 247, 235, 0.76);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 800;
}

.chip--primary,
.chip--teal {
  background: rgba(27, 44, 255, 0.1);
  border-color: rgba(27, 44, 255, 0.18);
  color: var(--blue-deep);
}

.chip--gold {
  background: rgba(247, 225, 24, 0.18);
  border-color: rgba(185, 156, 0, 0.28);
  color: #6d5900;
}

.chip--accent,
.chip--coral {
  background: rgba(200, 28, 15, 0.12);
  border-color: rgba(200, 28, 15, 0.22);
  color: #8c160d;
}

.chip--plum {
  background: rgba(191, 255, 255, 0.22);
  border-color: rgba(27, 44, 255, 0.16);
  color: #28427a;
}

.chip--neutral {
  background: rgba(11, 11, 16, 0.05);
  border-color: rgba(11, 11, 16, 0.08);
  color: var(--ink-soft);
}

.metric {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(252, 247, 235, 0.72);
  border: 1px solid rgba(11, 11, 16, 0.06);
}

.metric span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
}

.foundation-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.foundation-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(27, 44, 255, 0.12), rgba(247, 225, 24, 0.22));
  color: var(--blue-deep);
  font-size: 1rem;
  font-weight: 800;
}

.timeline,
.stat-list,
.mini-list,
.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item,
.section-row {
  box-shadow: none;
}

.timeline-item {
  background: rgba(255, 255, 255, 0.38);
}

.stat-list li,
.detail-list li,
.toggle-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.page-intro__panel .stat-list li {
  border-bottom-color: rgba(247, 225, 24, 0.14);
}

.page-intro__panel strong {
  color: var(--paper-strong);
}

.exercise-results {
  max-height: 980px;
  overflow: auto;
  padding-right: 4px;
}

.exercise-detail {
  position: sticky;
  top: 104px;
}

.detail-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.detail-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-section h4,
.field label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field,
.toolbar {
  display: grid;
  gap: 8px;
}

.toolbar {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
}

.exercise-card__top,
.support-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.exercise-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.input,
.search-input,
.select,
.textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(11, 11, 16, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.input:focus,
.search-input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(27, 44, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(27, 44, 255, 0.08);
  background: var(--white);
}

.pill-nav button,
.support-tabs button {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  color: var(--ink);
}

.pill-nav button.is-active,
.support-tabs button.is-active {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: var(--white);
  border-color: transparent;
}

.table,
.section-list {
  display: grid;
  gap: 10px;
}

.table-row,
.section-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(11, 11, 16, 0.08);
  background: rgba(255, 255, 255, 0.52);
}

.table-row {
  grid-template-columns: minmax(0, 1fr) 120px auto;
}

.section-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.section-row.is-active {
  border-color: rgba(27, 44, 255, 0.24);
  background: rgba(27, 44, 255, 0.08);
}

.section-row__meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue-deep);
  font-weight: 800;
}

.empty-state {
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(11, 11, 16, 0.18);
  background: rgba(255, 255, 255, 0.36);
  text-align: center;
  color: var(--ink-soft);
}

.legacy-frame {
  padding: 12px;
}

.legacy-frame iframe {
  width: 100%;
  min-height: 980px;
  border: 0;
  border-radius: 18px;
  background: var(--white);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(4, 8, 10, 0.72);
}

.modal-panel {
  width: min(920px, 100%);
  max-height: min(88vh, 980px);
  overflow: auto;
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(247, 225, 24, 0.18);
  background: rgba(252, 247, 235, 0.98);
  box-shadow: 0 30px 60px rgba(2, 8, 6, 0.36);
}

.modal-close {
  min-width: 44px;
  min-height: 44px;
}

.cta-band {
  display: grid;
  gap: 16px;
}

.site-footer {
  padding: 0 0 44px;
}

.site-footer__inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(247, 225, 24, 0.12);
  background:
    radial-gradient(circle at top right, rgba(247, 225, 24, 0.08), transparent 24%),
    linear-gradient(145deg, rgba(7, 26, 18, 0.96), rgba(8, 19, 37, 0.92));
  color: var(--paper-strong);
  box-shadow: var(--shadow);
}

.site-footer__links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.site-footer__links a {
  color: rgba(252, 247, 235, 0.8);
}

.site-footer__links a:hover {
  color: var(--white);
}

.fade-up {
  animation: fadeUp 420ms ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1140px) {
  .hero-legacy,
  .page-intro,
  .hero-grid,
  .dashboard-grid,
  .exercise-grid,
  .progress-grid,
  .page-bridge,
  .site-footer__inner,
  .command-grid,
  .grid-4,
  .tool-grid,
  .foundation-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .card-grid,
  .program-grid,
  .support-grid,
  .grid-2,
  .admin-grid,
  .card-grid--compact,
  .field-grid,
  .metric-strip,
  .foundation-strip {
    grid-template-columns: 1fr;
  }

  .exercise-detail {
    position: static;
  }
}

@media (max-width: 920px) {
  .site-shell__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 14px;
    right: 14px;
    display: none;
    margin-left: 0;
    padding: 12px;
    border: 1px solid rgba(247, 225, 24, 0.16);
    border-radius: 22px;
    background: rgba(7, 26, 18, 0.96);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-shell__bar {
    position: relative;
    border-radius: 26px;
    flex-wrap: wrap;
  }

  .site-shell__actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .site-utility__link {
    flex-basis: calc(50% - 10px);
  }
}

@media (max-width: 720px) {
  .la-page {
    width: min(100% - 22px, 100%);
    padding-top: 16px;
  }

  .site-shell__bar,
  .hero-legacy__content,
  .hero-legacy__crest,
  .page-intro__copy,
  .page-intro__panel,
  .panel,
  .card,
  .exercise-card,
  .exercise-detail,
  .program-card,
  .support-card,
  .tool-card,
  .foundation-card,
  .timeline-item,
  .admin-panel,
  .legacy-frame,
  .cta-band,
  .site-footer__inner {
    padding: 20px;
  }

  h1 {
    font-size: clamp(2.2rem, 13vw, 3.6rem);
  }

  h2 {
    font-size: clamp(1.55rem, 7vw, 2.3rem);
  }

  .table-row,
  .section-row,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .site-shell__actions {
    justify-content: stretch;
  }

  .site-user-pill,
  .site-auth__button {
    width: 100%;
  }

  .site-utility__link {
    flex-basis: 100%;
  }

  .modal-backdrop {
    padding: 14px;
  }

  .modal-panel {
    padding: 18px;
  }
}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.metric-card{border:1px solid rgba(15,118,110,.2);background:#fff;border-radius:16px;padding:16px;box-shadow:0 10px 25px rgba(15,23,42,.08)}
.metric-card strong{display:block;font-size:32px;line-height:1;color:#0f766e}
.metric-card span{display:block;margin-top:6px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#64748b}
.list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(148,163,184,.25);padding:10px 0}
.list-row:last-child{border-bottom:0}
