:root {
  color-scheme: light;
  --navy-950: #061a33;
  --navy-900: #061a33;
  --navy-800: #123b61;
  --blue-600: #078bfc;
  --blue-500: #078bfc;
  --blue-100: #1a4a72;
  --blue-050: #0e3153;
  --ink: #ffffff;
  --muted: #c2d2e2;
  --line: rgba(7, 139, 252, 0.5);
  --surface: #123b61;
  --canvas: #061a33;
  --danger: #b42318;
  --shadow: none;
  --radius-lg: 0;
  --radius-md: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(13, 23, 39, 0.025) 49.8% 50.2%, transparent 50.2%),
    var(--canvas);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

button,
input {
  font: inherit;
}

button,
label,
input[type="checkbox"],
input[type="radio"] {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 0.5rem;
  z-index: 20;
  transform: translateY(-180%);
  border-radius: 0;
  background: white;
  color: var(--navy-900);
  padding: 0.65rem 0.9rem;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: white;
  border-bottom: 4px solid var(--blue-500);
}

.header-inner {
  width: min(1384px, calc(100% - 3.5rem));
  min-height: 108px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--blue-500);
  border-radius: 0;
  color: var(--blue-500);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.brand-wordmark {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.header-label {
  color: white;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: right;
}

.run-rail {
  display: none;
}

.run-rail span {
  background: var(--blue-500);
}

.run-rail span:nth-child(n + 5) {
  opacity: calc(1 - (var(--n, 0) * 0));
  background: #52c8ff;
}

.page-shell {
  width: min(1384px, calc(100% - 3.5rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.intro {
  max-width: 1040px;
  margin-bottom: 2.25rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.35rem;
  color: var(--blue-500);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--navy-900);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

h1 span {
  color: transparent;
  -webkit-text-stroke: 2px var(--blue-500);
}

.intro-copy {
  max-width: 650px;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--navy-900);
  background: var(--navy-900);
}

.mode-tab {
  min-height: 76px;
  border: 0;
  border-radius: var(--radius-md);
  background: white;
  color: var(--ink);
  padding: 0.9rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.mode-tab:hover {
  background: var(--blue-050);
  transform: none;
}

.mode-tab:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(0, 169, 244, 0.28);
  outline-offset: 2px;
}

.mode-tab span,
.mode-tab small {
  display: block;
}

.mode-tab span {
  font-weight: 800;
}

.mode-tab small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.mode-tab.is-active {
  border-color: var(--blue-500);
  background: var(--navy-900);
  color: white;
  box-shadow: inset 0 -6px 0 var(--blue-500);
}

.mode-tab.is-active small {
  color: #c7d9eb;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  align-items: start;
  gap: 1.5rem;
}

.input-card,
.summary-card,
.result-card,
.method-note {
  border: 1px solid var(--navy-900);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.input-card,
.summary-card {
  padding: clamp(1rem, 2.4vw, 1.5rem);
}

.summary-card {
  position: sticky;
  top: 1rem;
  overflow: hidden;
  border-color: var(--navy-900);
  background: linear-gradient(145deg, var(--blue-500) 0%, #0a76d5 100%);
  color: white;
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.card-heading h2,
.method-note h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: 1.25rem;
  line-height: 1.15;
}

.text-button,
.secondary-button {
  border: 0;
  background: transparent;
  color: var(--blue-600);
  font-weight: 800;
  cursor: pointer;
}

.text-button {
  padding: 0.2rem;
}

.secondary-button {
  width: 100%;
  min-height: 44px;
  margin-top: 0.65rem;
  border: 1px solid var(--navy-900);
  border-radius: 0;
  background: var(--blue-050);
  padding: 0.65rem 0.8rem;
}

.field-group,
.field,
.splits-fieldset,
.format-fieldset {
  margin: 0 0 1rem;
}

.field {
  display: block;
}

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

.compact-grid {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
}

.field-label,
.splits-fieldset legend,
.format-fieldset legend {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--navy-900);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--navy-900);
  border-radius: 0;
  background: white;
  color: var(--navy-900);
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

input[type="text"]:focus,
input[type="number"]:focus {
  border-color: var(--navy-900);
  background: white;
  box-shadow: inset 0 -5px 0 var(--blue-500);
  outline: none;
}

.field-help {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  gap: 1px;
  border: 1px solid var(--navy-900);
  border-radius: 0;
  background: var(--navy-900);
  padding: 0;
}

.segmented label,
.checkbox-row label {
  position: relative;
  cursor: pointer;
}

.segmented input,
.checkbox-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: grid;
  min-height: 38px;
  place-items: center;
  border-radius: 0;
  background: white;
  color: #4d6276;
  font-size: 0.9rem;
  font-weight: 700;
}

.segmented input:checked + span {
  background: var(--blue-050);
  color: var(--navy-900);
  box-shadow: inset 0 -5px 0 var(--blue-500);
}

.segmented input:focus-visible + span,
.checkbox-row input:focus-visible + span {
  outline: 3px solid rgba(0, 169, 244, 0.28);
  outline-offset: 1px;
}

.splits-fieldset,
.format-fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
}

.split-input-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.split-input-grid label span {
  display: block;
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.split-input-grid input {
  min-height: 42px;
  padding: 0.55rem;
}

.checkbox-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.checkbox-row span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--navy-900);
  border-radius: 0;
  background: white;
  color: #4d6276;
  font-size: 0.88rem;
  font-weight: 800;
}

.checkbox-row input:checked + span {
  border-color: var(--navy-900);
  background: var(--blue-100);
  color: var(--navy-900);
  box-shadow: inset 0 -5px 0 var(--blue-500);
}

.form-error {
  margin: 0;
  border-radius: 0;
  background: #fff0ee;
  color: var(--danger);
  padding: 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.summary-title {
  margin: 0;
  color: white;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.08;
}

.summary-card .section-kicker {
  color: white;
}

.summary-context {
  margin: 0.35rem 0 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

.headline-result {
  border: 1px solid white;
  border-radius: 0;
  background: var(--navy-900);
  color: white;
  padding: 1rem;
}

.headline-result span,
.summary-stat span {
  display: block;
  color: #b8cbe0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.headline-result strong {
  display: block;
  margin-top: 0.15rem;
  color: white;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.headline-result strong.range-value {
  font-size: clamp(1.45rem, 4.6vw, 2.45rem);
  letter-spacing: -0.035em;
}

.headline-result small {
  display: block;
  margin-top: 0.45rem;
  color: #c7d9eb;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.summary-stat {
  border: 1px solid var(--navy-900);
  border-radius: 0;
  background: white;
  padding: 0.75rem;
}

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

.summary-stat strong {
  display: block;
  margin-top: 0.1rem;
  color: var(--navy-900);
  font-size: 1.06rem;
  font-variant-numeric: tabular-nums;
}

.consistency-note {
  margin: 0.7rem 0 0;
  border-left: 3px solid white;
  color: white;
  padding-left: 0.65rem;
  font-size: 0.8rem;
}

.consistency-note.is-warning {
  border-left-color: #d9a62e;
  color: #755915;
}

.results-section {
  margin-top: 1rem;
}

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

.result-card {
  min-width: 0;
  overflow: hidden;
  padding: 1.2rem;
}

.result-card.full-width {
  grid-column: 1 / -1;
}

.result-card h2 {
  margin: 0 0 0.2rem;
  color: var(--navy-900);
  font-size: 1.25rem;
}

.card-description {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.table-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
}

.data-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgba(13, 23, 39, 0.18);
  padding: 0.62rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.data-table td:first-child {
  color: var(--navy-900);
  font-weight: 800;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.training-table {
  min-width: 0;
  table-layout: fixed;
}

.training-table th:first-child,
.training-pace-row > td:first-child {
  width: 43%;
}

.rpe-detail-trigger {
  display: grid;
  width: 100%;
  min-height: 44px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--navy-900);
  border-radius: 0;
  background: var(--blue-050);
  color: var(--navy-900);
  padding: 0.45rem 0.55rem;
  text-align: left;
  cursor: pointer;
}

.rpe-detail-trigger:hover {
  background: var(--blue-100);
}

.rpe-detail-trigger.is-open {
  background: var(--navy-900);
  color: white;
}

.rpe-detail-title {
  display: block;
  min-width: 0;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: normal;
}

.rpe-detail-rpe {
  display: block;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 700;
}

.rpe-detail-trigger.has-secondary-rpe .rpe-detail-title {
  grid-column: 1 / -1;
}

.rpe-detail-trigger.has-secondary-rpe .rpe-detail-rpe {
  grid-column: 1;
  grid-row: 2;
}

.rpe-detail-trigger.has-secondary-rpe .rpe-detail-action {
  grid-column: 2;
  grid-row: 2;
}

.rpe-detail-action {
  flex: 0 0 auto;
  color: var(--blue-600);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rpe-detail-trigger.is-open .rpe-detail-action {
  color: white;
}

.rpe-detail-row td {
  padding: 0;
  background: var(--blue-050);
}

.rpe-detail-panel {
  border-left: 5px solid var(--blue-500);
  padding: 0.9rem;
}

.rpe-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}

.rpe-detail-item {
  min-width: 0;
}

.rpe-detail-item-wide {
  grid-column: 1 / -1;
}

.rpe-detail-item span {
  display: block;
  margin-bottom: 0.12rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.rpe-detail-item strong {
  display: block;
  color: var(--navy-900);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.pace-list {
  display: grid;
  gap: 0.22rem;
}

.pace-list span {
  display: block;
  color: #334a62;
  font-size: 0.86rem;
  white-space: nowrap;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.profile-card {
  border: 1px solid var(--navy-900);
  border-radius: 0;
  background: white;
  padding: 0.9rem;
}

.profile-card:nth-child(2) {
  border-color: var(--navy-900);
  background: var(--blue-050);
  box-shadow: inset 0 -6px 0 var(--blue-500);
}

.profile-card h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 0.95rem;
}

.profile-time {
  display: block;
  margin-top: 0.45rem;
  color: var(--blue-600);
  font-size: 1.35rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.profile-pace {
  margin: 0.35rem 0 0;
}

.method-note {
  margin-top: 1rem;
  box-shadow: 8px 8px 0 var(--blue-500);
  padding: 1.2rem;
}

.method-note p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 4px solid var(--blue-500);
  background: var(--navy-900);
  padding: 1.5rem 1rem;
  color: var(--navy-900);
  text-align: center;
}

.site-footer a {
  color: white;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

@media (max-width: 850px) {
  .workspace-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }

  .result-card.full-width {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .header-inner {
    width: min(100% - 1.25rem, 1160px);
    min-height: 68px;
  }

  .brand-wordmark {
    font-size: 0.82rem;
    letter-spacing: 0.09em;
  }

  .header-label {
    display: none;
  }

  .page-shell {
    width: min(100% - 1rem, 1160px);
    padding: 2rem 0 3rem;
  }

  .mode-tabs,
  .field-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .mode-tab {
    min-height: 68px;
  }

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

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .training-table th:first-child,
  .training-pace-row > td:first-child {
    width: 47%;
  }

  .rpe-detail-grid {
    grid-template-columns: 1fr;
  }

  .rpe-detail-item-wide {
    grid-column: auto;
  }

  .input-card,
  .summary-card,
  .result-card,
  .method-note {
    border-radius: 0;
  }
}

/* Required assessment identity and save gate */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.required-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

input[type="email"] {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  color: var(--navy-900);
  background: white;
  border: 1px solid var(--blue-500);
  border-radius: 0;
  font-size: 1rem;
  outline: none;
}

input[type="email"]:focus {
  border-color: var(--blue-500);
  box-shadow: inset 0 -5px 0 var(--blue-500);
}

input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: inset 0 -4px 0 var(--danger);
}

.contact-note,
.privacy-disclosure {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.contact-note {
  display: block;
  margin-top: 0.25rem;
}

.privacy-disclosure {
  margin: 0.25rem 0 0;
}

.privacy-disclosure summary {
  width: fit-content;
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.privacy-disclosure p {
  margin: 8px 0 0;
}

.marketing-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 16px;
  color: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.marketing-consent-row input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 0;
  accent-color: var(--blue-500);
}

.marketing-consent-row input[aria-invalid="true"] {
  outline: 3px solid var(--danger);
  outline-offset: 2px;
}

.format-fieldset[aria-invalid="true"] .checkbox-row {
  outline: 3px solid var(--danger);
  outline-offset: 3px;
}

.primary-button {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  color: white;
  background: var(--navy-900);
  border: 1px solid var(--blue-500);
  border-radius: 0;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--blue-500);
  color: var(--navy-900);
}

.primary-button:disabled {
  opacity: 0.68;
  cursor: wait;
}

@media (max-width: 620px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.time-entry {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--navy-900);
  background: white;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}

.time-entry-hms {
  width: fit-content;
  max-width: 100%;
  justify-content: flex-start;
}

.time-entry-hms input[type="text"].time-segment {
  flex: 0 0 3rem;
  width: 3rem;
  padding-inline: 0.125rem;
}

.time-entry-hms input[type="text"].time-segment-hours,
.time-entry-hms input[type="text"].time-segment-tenths {
  flex-basis: 2.75rem;
  width: 2.75rem;
}

.time-entry-hms .time-separator {
  margin-inline: 0.05rem;
}

.time-entry:focus-within {
  box-shadow: inset 0 -5px 0 var(--blue-500);
}

.time-entry[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: inset 0 -5px 0 rgba(180, 35, 24, 0.2);
}

input[type="text"].time-segment {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.55rem 0.2rem;
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

input[type="text"].time-segment:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
}

input[type="text"].time-segment::placeholder {
  color: rgba(13, 23, 39, 0.35);
  font-weight: 700;
}

.time-segment-hours,
.time-segment-tenths {
  flex-grow: 0.72 !important;
}

.time-separator {
  flex: 0 0 auto;
  color: var(--navy-900);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}

.split-time-field > span {
  display: block;
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.split-time-field .time-entry {
  min-height: 44px;
}

.split-time-field input[type="text"].time-segment {
  min-height: 42px;
  padding-inline: 0.1rem;
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.assessment-nav{display:flex;gap:1rem;flex-wrap:wrap;margin-bottom:1.5rem;border-bottom:1px solid var(--line);padding-bottom:1rem}
.assessment-nav a{color:#c2d2e2;font-size:1rem;font-weight:700;padding:.65rem .9rem;text-decoration:none;border:1px solid transparent}
.assessment-nav a[aria-current="page"]{color:white;border-color:#078bfc;background:#123b61}
.assessment-nav a:hover,.assessment-nav a:focus-visible{color:white;border-color:#078bfc}
/* Aerobic Capacity brand system */
:root {
  /* Transparent artwork keeps the wordmark flush with every branded surface. */
  --brand-wordmark-image: url("./aerobic-capacity-wordmark-transparent.png");
  --navy-950: #061a33;
  --navy-900: #061a33;
  --navy-800: #123b61;
  --blue-600: #078bfc;
  --blue-500: #078bfc;
  --blue-100: #1a4a72;
  --blue-050: #0e3153;
  --ink: #ffffff;
  --muted: #c2d2e2;
  --line: rgba(7, 139, 252, 0.5);
  --surface: #123b61;
  --canvas: #061a33;
  --shadow: none;
  --radius-lg: 0;
  --radius-md: 0;
}

body {
  background: var(--canvas);
}

.site-header {
  background: var(--navy-900);
  border-bottom: 1px solid var(--blue-500);
}

.header-inner {
  width: min(1160px, calc(100% - 2rem));
  min-height: 108px;
}

.brand {
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(220px, 27vw, 285px);
  aspect-ratio: 550 / 198;
  background-image: var(--brand-wordmark-image);
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
}

.header-label {
  color: white;
}

.page-shell {
  width: min(1160px, calc(100% - 2rem));
  padding: 3.25rem 0 4rem;
}

.intro {
  max-width: 1000px;
  margin-bottom: 2.25rem;
}

.eyebrow {
  color: var(--blue-500);
  font-size: 0.875rem;
  letter-spacing: 0.24em;
}

h1,
h1 span {
  color: white;
  -webkit-text-stroke: 0;
}

h1 {
  max-width: 980px;
  margin-top: 1.55rem;
  font-size: clamp(3.8rem, 8.2vw, 7.2rem);
  line-height: 0.82;
  letter-spacing: -0.065em;
}

.title-line {
  display: block;
  max-width: 100%;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: normal;
}

.intro-copy {
  max-width: 760px;
  margin-top: 1.75rem;
  color: white;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.45;
}

.mode-tabs {
  gap: 1px;
  border: 1px solid var(--blue-500);
  background: var(--blue-500);
}

.mode-tab {
  background: var(--navy-800);
  color: white;
}

.mode-tab:hover {
  background: var(--blue-050);
}

.mode-tab.is-active {
  background: var(--navy-900);
  box-shadow: inset 0 -5px 0 var(--blue-500);
}

.workspace-grid,
.results-grid {
  gap: 1.25rem;
}

.input-card,
.summary-card,
.result-card,
.method-note {
  border: 1px solid var(--blue-500);
  border-radius: 0;
  box-shadow: none;
}

.input-card,
.result-card {
  background: var(--navy-800);
  color: white;
}

.summary-card {
  background: var(--navy-800);
  color: white;
}

.summary-card .section-kicker {
  color: var(--blue-500);
}

.summary-card::before {
  display: none;
}

.secondary-button {
  border: 1px solid var(--blue-500);
  border-radius: 0;
  background: var(--navy-900);
  color: white;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.secondary-button:hover {
  background: var(--blue-500);
}

.segmented,
.checkbox-row span,
input[type="text"],
input[type="number"] {
  border-radius: 0;
}

.headline-result {
  border: 1px solid var(--blue-500);
  border-radius: 0;
  background: var(--navy-900);
}

.headline-result span,
.headline-result small {
  color: white;
}

.summary-stat {
  border: 1px solid var(--blue-500);
  border-radius: 0;
}

.result-card h2,
.card-heading h2 {
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.profile-card {
  border: 1px solid var(--blue-500);
  border-radius: 0;
}

.profile-card:nth-child(2) {
  background: var(--navy-800);
  box-shadow: inset 0 -6px 0 var(--blue-500);
}

.method-note {
  background: var(--navy-800);
  color: white;
}

.method-note h2,
.method-note p {
  color: white;
}

.site-footer {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  border-top: 1px solid var(--blue-500);
  background: var(--navy-900);
  color: white;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  display: block;
  width: 190px;
  aspect-ratio: 550 / 198;
  background-image: var(--brand-wordmark-image);
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
}

.footer-copy {
  padding-left: 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Dark Aerobic Capacity assessment palette */
.title-assessment {
  color: var(--blue-500);
}

.mode-tab small,
.card-description,
.field-help,
.split-time-field > span,
.method-note p {
  color: var(--muted);
}

.input-card .section-kicker,
.summary-card .section-kicker {
  color: var(--muted);
}

.mode-tab.is-active small {
  color: #cfe4f7;
}

.card-heading h2,
.result-card h2,
.field-label,
.splits-fieldset legend,
.format-fieldset legend {
  color: white;
}

.text-button {
  border-bottom: 1px solid var(--blue-500);
  color: white;
}

.secondary-button:hover {
  background: var(--blue-500);
  color: var(--navy-900);
}

.finish-method {
  margin-bottom: 1rem;
}

.finish-method > .field-label {
  display: block;
  margin-bottom: 0.45rem;
}

.finish-method-option {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue-500);
  background: white;
  color: var(--navy-900);
  padding: 0.65rem 0.75rem;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}

.finish-method-option strong {
  font-size: 0.875rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.finish-method-option.is-active {
  background: var(--navy-900);
  color: white;
  box-shadow: inset 0 -4px 0 var(--blue-500);
}

.finish-time-field {
  margin-bottom: 1rem;
}

.segmented {
  border-color: var(--blue-500);
  background: var(--blue-500);
}

.segmented span,
.checkbox-row span,
.time-entry,
input[type="text"],
input[type="number"] {
  border-color: var(--blue-500);
  background: white;
  color: var(--navy-900);
}

input[type="text"]:focus,
input[type="number"]:focus {
  border-color: var(--blue-500);
}

.segmented input:checked + span,
.checkbox-row input:checked + span {
  border-color: var(--blue-500);
  background: var(--blue-500);
  color: var(--navy-900);
  box-shadow: none;
}

.summary-stat {
  background: var(--navy-900);
}

.summary-stat span,
.data-table th,
.rpe-detail-item span {
  color: var(--muted);
}

.summary-stat strong,
.data-table td,
.data-table td:first-child,
.pace-list span {
  color: white;
}

.data-table th,
.data-table td {
  border-bottom-color: rgba(7, 139, 252, 0.42);
}

.rpe-detail-trigger {
  border-color: var(--blue-500);
  background: var(--navy-900);
  color: white;
}

.rpe-detail-trigger:hover {
  background: var(--blue-050);
}

.rpe-detail-trigger.is-open {
  background: var(--blue-500);
  color: var(--navy-900);
}

.rpe-detail-trigger.is-open .rpe-detail-action {
  color: var(--navy-900);
}

.rpe-detail-row td,
.rpe-detail-panel {
  background: var(--navy-900);
}

.rpe-detail-item strong {
  color: white;
}

.profile-card,
.profile-card:nth-child(2) {
  border-color: var(--blue-500);
  background: var(--navy-900);
}

.profile-card h3 {
  color: white;
}

.consistency-note.is-warning {
  border-left-color: #ffd166;
  color: #ffe5a3;
}

@media (max-width: 620px) {
  .header-inner {
    width: min(100% - 1.5rem, 1160px);
    min-height: 92px;
  }

  .brand-logo {
    width: 210px;
  }

  .table-scroll {
    overflow-x: visible;
  }

  .data-table {
    min-width: 0;
    table-layout: fixed;
  }

  .data-table th,
  .data-table td {
    padding: 0.55rem 0.3rem;
    overflow-wrap: break-word;
  }

  .data-table th {
    font-size: 0.75rem;
    letter-spacing: 0.025em;
  }

  .target-table th:nth-child(1),
  .target-table td:nth-child(1) {
    width: 18%;
  }

  .target-table th:nth-child(2),
  .target-table td:nth-child(2) {
    width: 25%;
  }

  .target-table th:nth-child(3),
  .target-table td:nth-child(3) {
    width: 57%;
  }

  .summary-table th:first-child,
  .summary-table td:first-child {
    width: 55%;
  }

  .summary-table th:last-child,
  .summary-table td:last-child {
    width: 45%;
  }

  .comparison-table th:first-child,
  .comparison-table td:first-child {
    width: 18%;
  }

  .comparison-table th:nth-child(2),
  .comparison-table td:nth-child(2),
  .comparison-table th:nth-child(3),
  .comparison-table td:nth-child(3) {
    width: 41%;
  }

  .comparison-summary-table th:first-child,
  .comparison-summary-table td:first-child {
    width: 44%;
  }

  .comparison-summary-table th:nth-child(2),
  .comparison-summary-table td:nth-child(2),
  .comparison-summary-table th:nth-child(3),
  .comparison-summary-table td:nth-child(3) {
    width: 28%;
  }

  .training-table th:first-child,
  .training-pace-row > td:first-child {
    width: 45%;
  }

  .training-table th:last-child,
  .training-pace-row > td:last-child {
    width: 55%;
  }

  .pace-list span {
    font-size: 0.8rem;
    white-space: normal;
  }

  .rpe-detail-trigger {
    gap: 0.35rem;
    padding-inline: 0.4rem;
  }

  .rpe-detail-action {
    letter-spacing: 0.02em;
  }

  .page-shell {
    width: min(100% - 1.5rem, 1160px);
    padding-top: 2.5rem;
  }

  h1 {
    font-size: clamp(3.05rem, 15.2vw, 4.7rem);
  }

  .title-assessment {
    font-size: 0.84em;
    line-height: 1;
    letter-spacing: -0.075em;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.5rem;
  }

  .footer-copy {
    padding: 0;
    border-left: 0;
    text-align: center;
  }
}

/* Assessment audit refinements */
.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;
}

.mode-tab {
  background: var(--navy-900);
}

.mode-tab.is-active {
  background: var(--navy-800);
  box-shadow: inset 0 -5px 0 var(--blue-500);
}

.mode-tab:hover {
  background: var(--blue-050);
}

.text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.segmented span,
.checkbox-row span {
  min-height: 44px;
}

.split-time-field input[type="text"].time-segment {
  min-height: 44px;
}

.calculated-time {
  display: flex;
  width: fit-content;
  min-width: 13rem;
  min-height: 48px;
  align-items: center;
  border: 1px solid var(--blue-500);
  background: var(--navy-900);
  color: white;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.summary-copy-button {
  width: 100%;
  min-height: 44px;
  margin-top: 0.8rem;
  border: 1px solid white;
  background: var(--navy-900);
  color: white;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.summary-copy-button:hover {
  border-color: var(--blue-500);
  background: var(--blue-500);
  color: var(--navy-900);
}

.mode-tab:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--blue-500);
}

.time-entry:focus-within {
  outline: 2px solid white;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--blue-500);
}

.segmented input:focus-visible + span,
.checkbox-row input:focus-visible + span {
  outline: 2px solid white;
  outline-offset: -3px;
  box-shadow: inset 0 0 0 5px var(--blue-500);
}

.splits-fieldset[aria-invalid="true"] .split-input-grid {
  outline: 3px solid var(--danger);
  outline-offset: 3px;
}

.rpe-detail-title {
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .header-inner {
    min-height: 76px;
  }

  .brand-logo {
    width: 176px;
  }

  .page-shell {
    width: min(100% - 1rem, 1160px);
    padding-top: 1.25rem;
  }

  .intro {
    margin-bottom: 1.25rem;
  }

  .eyebrow {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
  }

  h1 {
    margin-top: 0.7rem;
    font-size: clamp(2.55rem, 12.5vw, 3.6rem);
    line-height: 0.86;
    letter-spacing: -0.055em;
  }

  .title-assessment {
    font-size: 1em;
    line-height: 0.9;
    letter-spacing: -0.06em;
  }

  .intro-copy {
    margin-top: 0.9rem;
    font-size: 1rem;
    line-height: 1.4;
  }

  .mode-tabs {
    margin-bottom: 1rem;
  }

  .mode-tab {
    min-height: 64px;
  }

  .finish-method-option {
    min-height: 56px;
    padding: 0.6rem;
  }

  .finish-method-option strong {
    font-size: 0.8125rem;
  }

  .field-help,
  .card-description,
  .pace-list span {
    font-size: 0.875rem;
  }

  .split-time-field > span {
    font-size: 0.8125rem;
  }

  .target-table th:first-child,
  .target-table td:first-child {
    width: 24%;
  }

  .target-table th:last-child,
  .target-table td:last-child {
    width: 76%;
  }

  .rpe-detail-title {
    font-size: 0.82rem;
  }

  .calculated-time {
    width: 100%;
    min-width: 0;
  }
}
