:root {
  color-scheme: light;
  --primary: #192c34;
  --gold: #fac600;
  --teal: #00a594;
  --orange: #d06516;
  --slate: #7d878e;
  --black: #080b0c;
  --white: #ffffff;
  --page: #f4f6f5;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(25, 44, 52, 0.1);
  --line-strong: rgba(25, 44, 52, 0.18);
  --text: #192c34;
  --muted: #63717a;
  --shadow: 0 18px 40px rgba(25, 44, 52, 0.1);
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: clip;
  color-scheme: light;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  color-scheme: light;
  color: var(--text);
  background:
    radial-gradient(720px 360px at 0% 0%, rgba(250, 198, 0, 0.16), transparent 58%),
    radial-gradient(760px 380px at 100% 0%, rgba(0, 165, 148, 0.14), transparent 60%),
    radial-gradient(640px 340px at 50% 100%, rgba(208, 101, 22, 0.08), transparent 60%),
    linear-gradient(180deg, #fbfcfb 0%, var(--page) 100%);
}

body.embed-mode {
  background:
    radial-gradient(640px 300px at 0% 0%, rgba(250, 198, 0, 0.12), transparent 52%),
    linear-gradient(180deg, #fafcfc 0%, #f3f5f5 100%);
}

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  width: min(1120px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  margin: 0 auto;
  padding: 18px 0 40px;
}

.site-shell,
.hero,
.results,
.filter-bar,
.coach-archive,
.coach-archive-card,
.coach-archive-card__button {
  min-width: 0;
}

.hero,
.coach-tally,
.featured,
.results,
.architecture {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero::before,
.coach-tally::before,
.featured::before,
.results::before,
.architecture::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--orange));
}

.hero {
  padding: 18px;
}

.hero__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-mark img {
  width: 34px;
  height: 34px;
}

.archive-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.archive-switch:hover,
.archive-switch:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 165, 148, 0.42);
  background: var(--white);
  outline: none;
}

.archive-switch span {
  color: var(--teal);
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  .archive-switch {
    width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .archive-switch span {
    font-size: 0.9rem;
  }
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(1.95rem, 4vw, 3.4rem);
  line-height: 0.96;
}

.hero__lede,
.section-heading__copy,
.hero__panel-list,
.results__count,
.info-card p,
.coach-tally__copy,
.coach-tally-card__meta,
.featured-card__coach,
.result-card p {
  color: var(--muted);
}

.hero__lede {
  max-width: 56ch;
  margin: 14px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero__notice {
  display: inline-flex;
  align-items: start;
  gap: 10px;
  max-width: 58ch;
  margin-top: 14px;
  padding: 11px 14px;
  border: 1px solid rgba(250, 198, 0, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(250, 198, 0, 0.12), rgba(255, 255, 255, 0.82));
  color: var(--primary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.hero__notice strong {
  flex: 0 0 auto;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__notice span {
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

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

.button--primary {
  border-color: rgba(25, 44, 52, 0.84);
  background: var(--primary);
  color: var(--white);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.7);
}

.hero__quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.quicknav__item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--primary);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.hero__panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 249, 0.9));
}

.hero__panel-label {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero__panel-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  font-size: 0.88rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stat-card,
.coach-tally-card,
.featured-card,
.filter-bar,
.table-shell,
.result-card,
.info-card {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: 0 12px 28px rgba(25, 44, 52, 0.05);
}

.stat-card {
  padding: 16px;
  border-radius: 18px;
}

.stat-card__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

.stat-card__value {
  display: block;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1;
  color: var(--primary);
}

.coach-tally,
.featured,
.results,
.architecture {
  margin-top: 18px;
  padding: 20px;
}

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

.section-heading h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.section-heading__copy {
  max-width: 42ch;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.embed-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.embed-intro__title {
  margin: 0;
  letter-spacing: -0.03em;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.04;
}

.embed-intro__copy {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.coach-tally__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.coach-tally__eyebrow,
.coach-tally__copy {
  margin: 0;
}

.coach-tally__eyebrow {
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.coach-tally__copy {
  font-size: 0.84rem;
}

.coach-tally__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.coach-tally__grid--embed {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coach-tally-card {
  position: relative;
  padding: 16px;
  border-radius: 18px;
  overflow: hidden;
}

.coach-tally-card[role="button"] {
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.coach-tally-card[role="button"]:hover,
.coach-tally-card[role="button"]:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 165, 148, 0.24);
  box-shadow: 0 18px 36px rgba(25, 44, 52, 0.1);
}

.coach-tally-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--teal), var(--orange));
}

.coach-tally-card__rank {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(25, 44, 52, 0.06);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coach-tally-card__name {
  margin: 12px 0 8px;
  font-size: 1rem;
  line-height: 1.2;
}

.coach-tally-card__count {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--primary);
}

.coach-tally-card__meta {
  margin: 10px 0 0;
  font-size: 0.82rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.featured-card {
  padding: 16px;
  border-radius: 18px;
}

.featured-card__event {
  margin: 0;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.featured-card__athlete {
  margin: 12px 0 8px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.featured-card__coach {
  margin: 0;
  font-size: 0.86rem;
}

.nc-filters-shell {
  position: sticky;
  z-index: 20;
  top: 8px;
  margin: 18px -12px 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(25, 44, 52, 0.08);
  backdrop-filter: blur(18px);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.nc-filter-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

.field input,
.field select {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  font-size: 0.9rem;
}

.field--search input {
  width: 100%;
  padding-left: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237d878e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
}

.field--year {
  width: min(220px, 100%);
}

.field--year select {
  width: 100%;
  min-height: 42px;
  font-weight: 700;
}

.nc-filter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 7px 3px 0;
}

.results__count {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.nc-filter-reset {
  padding: 5px 0;
  border: 0;
  color: var(--teal);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

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

.results__hint {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.coach-archive {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.results__more-shell {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.results__more-shell[hidden],
.results__more[hidden] {
  display: none;
}

.results__more {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 20px rgba(25, 44, 52, 0.08);
}

.coach-archive-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 251, 0.94));
  box-shadow: 0 16px 34px rgba(25, 44, 52, 0.07);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.coach-archive-card__button {
  width: 100%;
  padding: 18px;
  border: 0;
  position: relative;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.coach-archive-card__button:hover,
.coach-archive-card__button:focus-visible {
  background: rgba(0, 165, 148, 0.03);
}

@media (min-width: 980px) and (hover: hover) and (pointer: fine) {
  .coach-archive-card:hover,
  .coach-archive-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(0, 165, 148, 0.22);
    box-shadow:
      0 24px 48px rgba(25, 44, 52, 0.12),
      0 0 0 1px rgba(0, 165, 148, 0.08);
  }

  .coach-archive-card__button:hover,
  .coach-archive-card__button:focus-visible {
    transform: translateY(-2px);
    background:
      linear-gradient(180deg, rgba(0, 165, 148, 0.05), rgba(250, 198, 0, 0.04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  }
}

.coach-archive-card__head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.coach-archive-card__eyebrow {
  margin: 0 0 8px;
  color: var(--slate);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.coach-archive-card__head h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.coach-archive-card__total {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(25, 44, 52, 0.92);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.coach-archive-card__medals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.medal-chip {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.medal-chip span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.medal-chip strong {
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.medal-chip--gold {
  border-color: rgba(250, 198, 0, 0.34);
  background:
    radial-gradient(140px 54px at 12% 0%, rgba(255, 255, 255, 0.58), transparent 58%),
    linear-gradient(145deg, rgba(255, 244, 194, 0.98), rgba(250, 198, 0, 0.54) 52%, rgba(214, 155, 0, 0.3) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -10px 20px rgba(170, 114, 0, 0.08),
    0 10px 22px rgba(250, 198, 0, 0.14);
  color: #6f5100;
}

.medal-chip--gold::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.22) 38%, transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 34%);
  pointer-events: none;
}

.medal-chip--gold span,
.medal-chip--gold strong {
  position: relative;
  z-index: 1;
}

.medal-chip--gold strong {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.medal-chip--silver {
  background: linear-gradient(180deg, rgba(125, 135, 142, 0.18), rgba(125, 135, 142, 0.08));
  color: #445058;
}

.medal-chip--bronze {
  background: linear-gradient(180deg, rgba(208, 101, 22, 0.18), rgba(208, 101, 22, 0.08));
  color: #8b4308;
}

.coach-archive-card__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.coach-archive-card__group {
  min-height: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.coach-archive-card__group span {
  display: block;
  margin-bottom: 8px;
  color: var(--slate);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coach-archive-card__group p {
  margin: 0;
  color: var(--primary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.table-shell {
  margin-top: 12px;
  overflow: hidden;
  border-radius: 18px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table th,
.results-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(25, 44, 52, 0.08);
  vertical-align: top;
}

.results-table th {
  background: rgba(25, 44, 52, 0.04);
  color: var(--slate);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.results-table tbody tr:hover {
  background: rgba(0, 165, 148, 0.03);
}

.results-table tbody tr.is-clickable {
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}

.results-table tbody tr.is-clickable:hover,
.results-table tbody tr.is-clickable:focus-visible {
  background: rgba(0, 165, 148, 0.06);
}

.coach-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.coach-label__prefix {
  color: var(--slate);
  font-size: 0.84rem;
}

.coach-label__name {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(0, 165, 148, 0.35);
  text-underline-offset: 0.18em;
}

.coach-count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(25, 44, 52, 0.92);
  color: var(--white);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-cards {
  display: none;
  gap: 10px;
  margin-top: 12px;
}

.result-card {
  padding: 16px;
  border-radius: 16px;
}

.result-card.is-clickable {
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.result-card.is-clickable:hover,
.result-card.is-clickable:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 165, 148, 0.24);
  box-shadow: 0 18px 36px rgba(25, 44, 52, 0.1);
}

.result-card__topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--slate);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.22;
}

.result-card p {
  margin: 0;
  font-size: 0.86rem;
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.info-card {
  padding: 16px;
  border-radius: 18px;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 0.96rem;
  color: var(--primary);
}

.info-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.empty-state {
  padding: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-disclaimer {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(0, 165, 148, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 249, 247, 0.9));
  box-shadow: 0 12px 24px rgba(25, 44, 52, 0.05);
}

.page-disclaimer h2 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-disclaimer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.page-disclaimer--embed {
  margin-top: 14px;
  border-radius: 16px;
}

.coach-modal[hidden] {
  display: none;
}

.coach-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}

.coach-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 12, 0.5);
  backdrop-filter: blur(8px);
}

.coach-modal__dialog {
  position: relative;
  width: min(840px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  color-scheme: light;
  border: 1px solid rgba(25, 44, 52, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(640px 260px at 0% 0%, rgba(250, 198, 0, 0.16), transparent 48%),
    radial-gradient(520px 280px at 100% 0%, rgba(0, 165, 148, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 249, 249, 0.98) 100%);
  box-shadow: 0 32px 80px rgba(8, 11, 12, 0.22);
  color: var(--primary);
}

.coach-modal__close {
  position: sticky;
  top: 16px;
  z-index: 2;
  float: right;
  margin: 16px 16px 0 0;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(25, 44, 52, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(25, 44, 52, 0.08);
}

.coach-modal__hero,
.coach-modal__results {
  padding: 24px;
}

.coach-modal__hero {
  border-bottom: 1px solid rgba(25, 44, 52, 0.08);
}

.coach-modal__hero .eyebrow {
  color: var(--orange);
}

.coach-modal__hero h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.coach-modal__copy,
.coach-modal__results-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.coach-modal__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.coach-modal__share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(25, 44, 52, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(25, 44, 52, 0.06);
}

.coach-modal__share:hover,
.coach-modal__share:focus-visible {
  transform: translateY(-1px);
}

.coach-modal__share:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.coach-modal__share--instagram {
  border-color: rgba(208, 101, 22, 0.2);
  background:
    linear-gradient(135deg, rgba(250, 198, 0, 0.18), rgba(208, 101, 22, 0.16), rgba(0, 165, 148, 0.14));
  color: #7b3c0d;
}

.coach-modal__share--photo {
  border-color: rgba(0, 165, 148, 0.2);
  background: linear-gradient(135deg, rgba(0, 165, 148, 0.15), rgba(255, 255, 255, 0.92));
  color: #0f4c54;
}

.coach-modal__share--ghost {
  background: rgba(255, 255, 255, 0.58);
  box-shadow: none;
}

.coach-modal__share--studio {
  border-color: rgba(25, 44, 52, 0.16);
  background: linear-gradient(135deg, rgba(25, 44, 52, 0.09), rgba(255, 255, 255, 0.94));
}

.coach-modal__share--icon {
  min-width: 36px;
  width: 36px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

.coach-modal__template-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(25, 44, 52, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.coach-modal__template-chip--format {
  flex-direction: column;
  gap: 1px;
  min-width: 104px;
  min-height: 44px;
  padding: 5px 12px 4px;
  line-height: 1;
}

.coach-modal__template-chip-copy {
  display: block;
}

.coach-modal__template-chip-meta {
  display: block;
  font-size: 0.47rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.56;
  text-transform: none;
}

.coach-modal__template-chip:hover,
.coach-modal__template-chip:focus-visible {
  transform: translateY(-1px);
}

.coach-modal__template-chip.is-active {
  border-color: rgba(0, 165, 148, 0.28);
  background: linear-gradient(135deg, rgba(250, 198, 0, 0.18), rgba(0, 165, 148, 0.16));
  color: #114049;
  box-shadow: 0 10px 20px rgba(25, 44, 52, 0.08);
}

.coach-modal__photo-note {
  margin: 10px 0 0;
  color: rgba(25, 44, 52, 0.72);
  font-size: 0.74rem;
  line-height: 1.45;
}

.coach-modal__studio {
  padding: 24px;
  border-top: 1px solid rgba(25, 44, 52, 0.08);
  border-bottom: 1px solid rgba(25, 44, 52, 0.08);
  background:
    radial-gradient(520px 180px at 100% 0%, rgba(0, 165, 148, 0.07), transparent 55%),
    linear-gradient(180deg, rgba(245, 249, 248, 0.98), rgba(255, 255, 255, 0.98));
}

.coach-modal__studio-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.coach-modal__studio-eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.coach-modal__studio-head h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary);
}

.coach-modal__studio-head p {
  margin: 8px 0 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.coach-modal__studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 20px;
  align-items: start;
}

.coach-modal__studio-preview-shell {
  padding: 16px;
  border: 1px solid rgba(25, 44, 52, 0.1);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(242, 247, 246, 0.95));
  box-shadow: 0 20px 34px rgba(25, 44, 52, 0.1);
}

.coach-modal__studio-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #f5f7f7;
  box-shadow: 0 18px 32px rgba(25, 44, 52, 0.14);
}

.coach-modal__studio-controls {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(25, 44, 52, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 32px rgba(25, 44, 52, 0.08);
}

.coach-modal__studio-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.coach-modal__theme-switcher {
  display: grid;
  gap: 10px;
}

.coach-modal__theme-label {
  margin: 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coach-modal__theme-options {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
}

.coach-modal__theme-options .coach-modal__template-chip {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 10px;
  font-size: clamp(0.62rem, 1.5vw, 0.74rem);
}

.coach-modal__theme-options .coach-modal__template-chip--format {
  min-height: 44px;
  padding: 5px 8px 4px;
}

.coach-modal__theme-options .coach-modal__template-chip-copy,
.coach-modal__theme-options .coach-modal__template-chip-meta {
  width: 100%;
  text-align: center;
}

.coach-modal__theme-options .coach-modal__template-chip-meta {
  font-size: clamp(0.42rem, 1vw, 0.47rem);
}

.coach-modal__preset-switcher {
  display: grid;
  gap: 10px;
}

.coach-modal__preset-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.coach-modal__preset-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(25, 44, 52, 0.08);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 140ms ease, background 140ms ease;
}

.coach-modal__preset-toggle[aria-expanded="true"] .coach-modal__preset-toggle-icon {
  transform: rotate(45deg);
  background: rgba(0, 165, 148, 0.12);
}

.coach-modal__preset-panel[hidden] {
  display: none;
}

.coach-modal__preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.coach-modal__preset-chip {
  position: relative;
  min-height: 94px;
  padding: 0;
  border: 1px solid rgba(25, 44, 52, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background-color: #d7dedf;
  background-position: center;
  background-size: cover;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(25, 44, 52, 0.08);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.coach-modal__preset-chip:hover,
.coach-modal__preset-chip:focus-visible {
  transform: translateY(-1px);
}

.coach-modal__preset-chip.is-active {
  border-color: rgba(0, 165, 148, 0.44);
  box-shadow: 0 16px 28px rgba(0, 165, 148, 0.14);
}

.coach-modal__preset-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 44, 52, 0.04), rgba(25, 44, 52, 0.34));
}

.coach-modal__preset-chip-label {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  text-shadow: 0 2px 8px rgba(8, 11, 12, 0.28);
}

.coach-modal__studio-controls .coach-modal__photo-note {
  margin-top: -2px;
}

.coach-modal__studio-controls .coach-modal__logo-note {
  margin: -2px 0 0;
  color: rgba(25, 44, 52, 0.72);
  font-size: 0.74rem;
  line-height: 1.45;
}

.coach-modal__studio-control {
  display: grid;
  gap: 8px;
}

.coach-modal__studio-control span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coach-modal__studio-control input[type="range"] {
  width: 100%;
  accent-color: var(--orange);
}

.coach-modal__studio-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.coach-modal__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.coach-modal__stat {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(25, 44, 52, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 22px rgba(25, 44, 52, 0.06);
  overflow: hidden;
}

.coach-modal__stat-label {
  display: block;
  color: var(--slate);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coach-modal__stat-value {
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.coach-modal__stat.is-gold {
  border-color: rgba(250, 198, 0, 0.34);
  background:
    radial-gradient(150px 58px at 14% 0%, rgba(255, 255, 255, 0.6), transparent 56%),
    linear-gradient(145deg, rgba(255, 246, 204, 0.98), rgba(250, 198, 0, 0.34) 54%, rgba(214, 155, 0, 0.18) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 -10px 18px rgba(170, 114, 0, 0.06),
    0 14px 26px rgba(250, 198, 0, 0.14);
}

.coach-modal__stat.is-gold::before {
  content: "";
  position: absolute;
  inset: -20% auto -20% -40%;
  width: 45%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  pointer-events: none;
  opacity: 0.72;
}

.coach-modal__stat.is-gold .coach-modal__stat-label,
.coach-modal__stat.is-gold .coach-modal__stat-value {
  color: #8f6a00;
  position: relative;
  z-index: 1;
}

.coach-modal__stat.is-silver {
  border-color: rgba(125, 135, 142, 0.24);
  background: linear-gradient(180deg, rgba(125, 135, 142, 0.12), rgba(255, 255, 255, 0.92));
}

.coach-modal__stat.is-silver .coach-modal__stat-label,
.coach-modal__stat.is-silver .coach-modal__stat-value {
  color: #51616a;
}

.coach-modal__stat.is-bronze {
  border-color: rgba(208, 101, 22, 0.28);
  background: linear-gradient(180deg, rgba(208, 101, 22, 0.14), rgba(255, 255, 255, 0.92));
}

.coach-modal__stat.is-bronze .coach-modal__stat-label,
.coach-modal__stat.is-bronze .coach-modal__stat-value {
  color: #9c4b0d;
}

.coach-modal__stat.is-slate {
  border-color: rgba(25, 44, 52, 0.1);
  background: linear-gradient(180deg, rgba(25, 44, 52, 0.06), rgba(255, 255, 255, 0.92));
}

@media (prefers-reduced-motion: no-preference) {
  .coach-modal__stat.is-gold::before {
    animation: coach-modal-gold-shimmer 3.4s ease-in-out infinite;
  }
}

@keyframes coach-modal-gold-shimmer {
  0% {
    transform: translateX(-140%) skewX(-22deg);
    opacity: 0;
  }

  18% {
    opacity: 0.72;
  }

  52% {
    transform: translateX(320%) skewX(-22deg);
    opacity: 0.4;
  }

  100% {
    transform: translateX(320%) skewX(-22deg);
    opacity: 0;
  }
}

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

.coach-modal__results-head h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.coach-modal__list {
  display: grid;
  gap: 10px;
}

.coach-modal__item {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(120px, 0.5fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(25, 44, 52, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.coach-modal__item-athlete {
  color: var(--primary);
  font-size: 0.98rem;
  font-weight: 700;
}

.coach-modal__item-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coach-modal__item-badge.is-gold {
  background: rgba(250, 198, 0, 0.2);
  color: #8f6a00;
}

.coach-modal__item-badge.is-silver,
.coach-modal__item-badge.is-slate {
  background: rgba(125, 135, 142, 0.16);
  color: #51616a;
}

.coach-modal__item-badge.is-bronze {
  background: rgba(208, 101, 22, 0.18);
  color: #9c4b0d;
}

.coach-modal__item-year {
  color: #5c6870;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coach-modal__item-event {
  color: #31424a;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: right;
}

body.is-coach-modal-open {
  overflow: hidden;
}

.embed-mode .site-shell {
  width: min(100%, 1120px);
  padding: 0;
}

.embed-mode .coach-tally {
  margin-top: 0;
  margin-bottom: 14px;
  padding: 16px;
}

.embed-mode .coach-tally__header {
  margin-bottom: 12px;
}

.embed-mode .coach-tally__grid--embed .coach-tally-card {
  padding: 14px;
}

.embed-mode .coach-tally-card__name {
  font-size: 0.94rem;
}

.embed-mode .coach-tally-card__count {
  font-size: 1.2rem;
}

.embed-mode .embed-results {
  margin-top: 0;
  padding: 16px;
  border-radius: 24px;
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(25, 44, 52, 0.06);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.84em;
}

@media (max-width: 1040px) {
  .hero__content,
  .section-heading,
  .embed-intro,
  .coach-tally__grid,
  .coach-archive-card__grid,
  .featured-grid,
  .stats,
  .architecture-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }

  .embed-intro {
    align-items: start;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .stats {
    display: none;
  }

  .coach-archive {
    margin-inline: -20px;
  }
}

@media (max-width: 780px) {
  :root {
    font-size: 13px;
  }

  .site-shell {
    width: calc(100vw - 18px);
    max-width: calc(100vw - 18px);
    padding-top: 10px;
    padding-bottom: 26px;
  }

  .hero,
  .coach-tally,
  .featured,
  .results,
  .architecture {
    padding: 16px;
    border-radius: 20px;
  }

  .hero__nav {
    flex-direction: column;
    align-items: start;
    margin-bottom: 18px;
  }

  .hero h1 {
    max-width: none;
  }

  .nc-filters-shell {
    position: static;
    margin: 16px -7px 10px;
    padding: 8px;
  }

  .field--year {
    width: 100%;
  }

  .table-shell {
    display: none;
  }

  .mobile-cards {
    display: grid;
  }

  .embed-mode .coach-tally,
  .embed-mode .embed-results {
    padding: 14px 12px;
    border-radius: 18px;
  }

  .coach-archive {
    margin-inline: -16px;
  }

  .embed-mode .coach-archive {
    margin-inline: -12px;
  }

  .coach-modal {
    padding: 10px;
  }

  .coach-modal__dialog {
    border-radius: 22px;
  }

  .coach-modal__hero,
  .coach-modal__studio,
  .coach-modal__results {
    padding: 18px;
  }

  .coach-modal__studio-layout {
    grid-template-columns: 1fr;
  }

  .coach-modal__studio-head {
    flex-direction: column;
    align-items: start;
  }

  .coach-modal__stats,
  .coach-modal__item {
    grid-template-columns: 1fr;
  }

  .coach-archive-card__medals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .coach-modal__results-head {
    align-items: start;
  }

  .coach-modal__item-event {
    text-align: left;
  }

  .coach-archive-card__head {
    flex-direction: column;
    align-items: start;
    gap: 8px;
    padding-right: 92px;
  }

  .coach-archive-card__total {
    position: absolute;
    top: 16px;
    right: 16px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(25, 44, 52, 0.08);
  }

  .coach-archive-card__grid .coach-archive-card__group:nth-child(3),
  .coach-archive-card__grid .coach-archive-card__group:nth-child(4) {
    display: none;
  }
}

@media (max-width: 720px) {
  .coach-modal__studio-layout {
    gap: 12px;
  }

  .coach-modal__studio-preview-shell {
    position: sticky;
    top: 10px;
    z-index: 3;
    padding: 10px 12px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 247, 0.96));
    box-shadow: 0 16px 28px rgba(25, 44, 52, 0.12);
    backdrop-filter: blur(10px);
  }

  .coach-modal__studio-canvas {
    width: auto;
    max-width: 100%;
    max-height: min(34vh, 300px);
    margin-inline: auto;
    border-radius: 14px;
    box-shadow: 0 12px 22px rgba(25, 44, 52, 0.12);
  }

  .coach-modal__studio-controls {
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
  }

  .coach-modal__studio-actions {
    gap: 8px;
  }

  .coach-modal__theme-switcher,
  .coach-modal__preset-switcher,
  .coach-modal__studio-control {
    gap: 7px;
  }

  .coach-modal__studio-control span,
  .coach-modal__theme-label {
    font-size: 0.72rem;
  }

  .coach-modal__studio-hint,
  .coach-modal__studio-controls .coach-modal__photo-note,
  .coach-modal__studio-controls .coach-modal__logo-note {
    font-size: 0.76rem;
    line-height: 1.45;
  }
}
