/* Work Health Lab public design system
   RASX supplies engineering/interaction patterns; this file owns public brand styling. */

:root {
  color-scheme: light;

  --whl-paper: #f6f3ec;
  --whl-paper-strong: #fffdf8;
  --whl-ink: #171713;
  --whl-ink-soft: #56564f;
  --whl-ink-faint: #77776f;
  --whl-rule: #d8d3c7;
  --whl-rule-strong: #aaa498;

  --whl-accent: #315c4d;
  --whl-accent-hover: #24483c;
  --whl-accent-soft: #e2ebe5;

  --whl-positive: #315c4d;
  --whl-caution: #8a6528;
  --whl-critical: #9c4039;
  --whl-evidence: #455c72;

  --whl-font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --whl-font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --whl-font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --whl-content: 72rem;
  --whl-reading: 46rem;

  --whl-space-1: .375rem;
  --whl-space-2: .625rem;
  --whl-space-3: 1rem;
  --whl-space-4: 1.5rem;
  --whl-space-5: 2.25rem;
  --whl-space-6: 3.5rem;
  --whl-space-7: 5.5rem;

  --whl-radius-sm: .375rem;
  --whl-radius-md: .625rem;
  --whl-radius-lg: .875rem;
}

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

html {
  background: var(--whl-paper);
  color: var(--whl-ink);
}

body {
  margin: 0;
  background: var(--whl-paper);
  color: var(--whl-ink);
  font-family: var(--whl-font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--whl-accent);
  text-underline-offset: .18em;
}

a:hover {
  color: var(--whl-accent-hover);
}

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

button,
input,
select,
textarea,
a {
  outline-offset: .2rem;
}

:focus-visible {
  outline: .18rem solid var(--whl-accent);
}

.whl-shell {
  width: min(calc(100% - 2rem), var(--whl-content));
  margin-inline: auto;
}

.whl-reading {
  width: min(100%, var(--whl-reading));
}

.whl-section {
  padding-block: var(--whl-space-6);
  border-top: 1px solid var(--whl-rule);
}

.whl-section:first-child {
  border-top: 0;
}

.whl-kicker {
  margin: 0 0 var(--whl-space-2);
  color: var(--whl-accent);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.whl-display {
  margin: 0;
  max-width: 18ch;
  font-family: var(--whl-font-display);
  font-size: clamp(2.5rem, 7vw, 5.75rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .98;
}

.whl-title {
  margin: 0;
  max-width: 24ch;
  font-family: var(--whl-font-display);
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.04;
}

.whl-lede {
  max-width: 52rem;
  margin: var(--whl-space-4) 0 0;
  color: var(--whl-ink-soft);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.whl-rule {
  border: 0;
  border-top: 1px solid var(--whl-rule);
  margin-block: var(--whl-space-5);
}

.whl-step {
  display: grid;
  grid-template-columns: minmax(2.5rem, 4rem) minmax(0, 1fr);
  gap: var(--whl-space-4);
  padding-block: var(--whl-space-5);
  border-top: 1px solid var(--whl-rule);
}

.whl-step-number {
  color: var(--whl-ink-faint);
  font-family: var(--whl-font-mono);
  font-size: .8rem;
  letter-spacing: .08em;
}

.whl-step h2,
.whl-step h3 {
  margin-top: 0;
  font-family: var(--whl-font-display);
  font-weight: 500;
}

.whl-field {
  display: grid;
  gap: .45rem;
  margin-block: var(--whl-space-3);
}

.whl-field label,
.whl-label {
  font-size: .875rem;
  font-weight: 700;
}

.whl-field small {
  color: var(--whl-ink-soft);
}

.whl-input,
.whl-select,
.whl-textarea {
  width: 100%;
  min-height: 3rem;
  padding: .75rem .875rem;
  border: 1px solid var(--whl-rule-strong);
  border-radius: var(--whl-radius-sm);
  background: var(--whl-paper-strong);
  color: var(--whl-ink);
}

.whl-textarea {
  min-height: 8rem;
  resize: vertical;
}

.whl-button {
  min-height: 2.9rem;
  padding: .7rem 1.05rem;
  border: 1px solid var(--whl-accent);
  border-radius: var(--whl-radius-sm);
  background: var(--whl-accent);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  transition:
    background-color 120ms ease-out,
    border-color 120ms ease-out,
    transform 90ms ease-out;
}

.whl-button:hover {
  background: var(--whl-accent-hover);
  border-color: var(--whl-accent-hover);
}

.whl-button:active {
  transform: translateY(1px);
}

.whl-button--secondary {
  background: transparent;
  color: var(--whl-accent);
}

.whl-evidence {
  padding: var(--whl-space-4) 0 var(--whl-space-4) var(--whl-space-4);
  border-left: 2px solid var(--whl-evidence);
}

.whl-evidence__label {
  margin: 0 0 .35rem;
  color: var(--whl-evidence);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.whl-evidence p:last-child {
  margin-bottom: 0;
}

.whl-result {
  padding-block: var(--whl-space-5);
  border-block: 1px solid var(--whl-ink);
}

.whl-result__eyebrow {
  color: var(--whl-ink-faint);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.whl-result__headline {
  margin: .6rem 0;
  max-width: 24ch;
  font-family: var(--whl-font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
}

.whl-note {
  padding: var(--whl-space-3) var(--whl-space-4);
  border: 1px solid var(--whl-rule);
  border-radius: var(--whl-radius-sm);
  background: color-mix(in srgb, var(--whl-paper-strong) 78%, transparent);
}

.whl-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--whl-space-4);
}

.whl-grid > * {
  min-width: 0;
}

.whl-span-5 { grid-column: span 5; }
.whl-span-7 { grid-column: span 7; }
.whl-span-12 { grid-column: 1 / -1; }

.whl-source-line {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .8rem;
  color: var(--whl-ink-faint);
  font-size: .78rem;
}

.whl-source-line strong {
  color: var(--whl-ink-soft);
}

.whl-print-only {
  display: none;
}

@media (max-width: 48rem) {
  .whl-shell {
    width: min(calc(100% - 1.25rem), var(--whl-content));
  }

  .whl-section {
    padding-block: var(--whl-space-5);
  }

  .whl-step {
    grid-template-columns: 1fr;
    gap: var(--whl-space-2);
  }

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

  .whl-span-5,
  .whl-span-7,
  .whl-span-12 {
    grid-column: auto;
  }
}

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

@media (prefers-contrast: more) {
  :root {
    --whl-rule: #aaa498;
    --whl-rule-strong: #706d65;
    --whl-ink-soft: #393934;
  }
}

@media print {
  :root {
    --whl-paper: #fff;
    --whl-paper-strong: #fff;
    --whl-ink: #000;
    --whl-ink-soft: #333;
    --whl-rule: #bbb;
  }

  .whl-no-print {
    display: none !important;
  }

  .whl-print-only {
    display: block;
  }

  .whl-shell {
    width: 100%;
  }
}


/* Homepage structure */

.whl-skip-link {
  position: absolute;
  left: var(--whl-space-3);
  top: var(--whl-space-3);
  z-index: 100;
  padding: .55rem .75rem;
  background: var(--whl-ink);
  color: var(--whl-paper-strong);
  transform: translateY(-180%);
}

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

.whl-masthead {
  border-bottom: 1px solid var(--whl-rule);
  background: color-mix(in srgb, var(--whl-paper) 94%, transparent);
}

.whl-masthead__inner {
  min-height: 4.75rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--whl-space-4);
}

.whl-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--whl-ink);
  font-weight: 800;
  text-decoration: none;
}

.whl-brand__mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--whl-ink);
  border-radius: 50%;
  font-size: .65rem;
  letter-spacing: .06em;
}

.whl-nav {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.whl-nav a,
.whl-nav-cta {
  color: var(--whl-ink-soft);
  font-size: .88rem;
  font-weight: 650;
  text-decoration: none;
}

.whl-nav a:hover,
.whl-nav-cta:hover {
  color: var(--whl-ink);
}

.whl-nav-cta {
  color: var(--whl-accent);
  text-decoration: underline;
  text-underline-offset: .22em;
}

.whl-hero {
  padding-block: clamp(4rem, 10vw, 8rem);
}

.whl-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(17rem, .7fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: end;
}

.whl-hero__copy {
  min-width: 0;
}

.whl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: var(--whl-space-5);
}

.whl-hero__evidence {
  margin-top: var(--whl-space-5);
  padding-top: var(--whl-space-3);
  border-top: 1px solid var(--whl-rule);
}

.whl-hero__model {
  padding-top: var(--whl-space-4);
  border-top: 1px solid var(--whl-ink);
}

.whl-hero__question {
  margin: 0 0 var(--whl-space-4);
  font-family: var(--whl-font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.12;
}

.whl-mini-flow {
  list-style: none;
  margin: 0;
  padding: 0;
}

.whl-mini-flow li {
  display: grid;
  grid-template-columns: 2.35rem 1fr;
  gap: .75rem;
  padding-block: .7rem;
  border-top: 1px solid var(--whl-rule);
}

.whl-mini-flow span {
  color: var(--whl-ink-faint);
  font-family: var(--whl-font-mono);
  font-size: .72rem;
}

.whl-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, .7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: var(--whl-space-5);
}

.whl-section-heading > p {
  margin: 0;
  color: var(--whl-ink-soft);
  line-height: 1.65;
}

.whl-router {
  border-top: 1px solid var(--whl-ink);
}

.whl-router__item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: var(--whl-space-3);
  align-items: center;
  min-height: 6.75rem;
  padding-block: var(--whl-space-3);
  border-bottom: 1px solid var(--whl-rule);
  color: var(--whl-ink);
  text-decoration: none;
}

.whl-router__item:hover {
  color: var(--whl-accent);
}

.whl-router__number {
  color: var(--whl-ink-faint);
  font-family: var(--whl-font-mono);
  font-size: .75rem;
}

.whl-router__item strong,
.whl-router__item small {
  display: block;
}

.whl-router__item strong {
  margin-bottom: .2rem;
  font-family: var(--whl-font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
}

.whl-router__item small {
  color: var(--whl-ink-soft);
  font-size: .92rem;
}

.whl-compare-section {
  background: var(--whl-paper-strong);
}

.whl-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-block: 1px solid var(--whl-ink);
}

.whl-compare > section {
  padding: var(--whl-space-5);
}

.whl-compare > section + section {
  border-left: 1px solid var(--whl-rule);
}

.whl-compare__label {
  margin: 0 0 .5rem;
  color: var(--whl-ink-faint);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.whl-compare h3 {
  margin: 0 0 var(--whl-space-4);
  font-family: var(--whl-font-display);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 500;
}

.whl-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.whl-checklist li {
  position: relative;
  padding: .72rem 0 .72rem 1.5rem;
  border-top: 1px solid var(--whl-rule);
}

.whl-checklist li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--whl-accent);
}

.whl-checklist--muted li::before {
  content: "—";
  color: var(--whl-ink-faint);
}

.whl-tool-list {
  border-top: 1px solid var(--whl-ink);
}

.whl-tool-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--whl-space-4);
  padding-block: var(--whl-space-4);
  border-bottom: 1px solid var(--whl-rule);
}

.whl-tool-row h3 {
  margin: .3rem 0 .25rem;
  font-family: var(--whl-font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 500;
}

.whl-tool-row p {
  margin: 0;
  max-width: 48rem;
  color: var(--whl-ink-soft);
}

.whl-tool-row__status,
.whl-tool-row__type {
  color: var(--whl-ink-faint);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.whl-tool-row__type {
  align-self: center;
  color: var(--whl-accent);
}

.whl-planner-section {
  background: var(--whl-accent-soft);
}

.whl-planner-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(22rem, 1.1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.whl-planner-copy .whl-lede {
  margin-bottom: var(--whl-space-4);
}

.whl-plain-list {
  margin: 0 0 var(--whl-space-4);
  padding-left: 1.2rem;
}

.whl-plain-list li {
  margin-block: .35rem;
}

.whl-plan-preview {
  background: var(--whl-paper-strong);
  border: 1px solid var(--whl-rule-strong);
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.whl-plan-preview header {
  display: flex;
  justify-content: space-between;
  gap: var(--whl-space-3);
  padding-bottom: var(--whl-space-3);
  border-bottom: 1px solid var(--whl-ink);
  font-size: .82rem;
}

.whl-plan-preview__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .65rem;
  color: var(--whl-ink-faint);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.whl-plan-preview section {
  padding-block: var(--whl-space-3);
  border-top: 1px solid var(--whl-rule);
}

.whl-plan-preview section:first-of-type {
  border-top: 0;
}

.whl-plan-preview section p {
  margin: .2rem 0;
}

.whl-plan-preview ul {
  margin: .4rem 0 0;
  padding-left: 1.1rem;
}

.whl-plan-preview__label {
  color: var(--whl-ink-faint);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.whl-plan-preview__review {
  background: color-mix(in srgb, var(--whl-accent-soft) 52%, transparent);
  padding-inline: var(--whl-space-3);
}

.whl-model-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--whl-ink);
}

.whl-model-flow li {
  min-width: 0;
  padding: var(--whl-space-4) var(--whl-space-3);
  border-right: 1px solid var(--whl-rule);
}

.whl-model-flow li:last-child {
  border-right: 0;
}

.whl-model-flow span,
.whl-model-flow strong,
.whl-model-flow small {
  display: block;
}

.whl-model-flow span {
  margin-bottom: var(--whl-space-4);
  color: var(--whl-ink-faint);
  font-family: var(--whl-font-mono);
  font-size: .7rem;
}

.whl-model-flow strong {
  margin-bottom: .4rem;
  font-family: var(--whl-font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

.whl-model-flow small {
  color: var(--whl-ink-soft);
  line-height: 1.45;
}

.whl-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--whl-ink);
  margin-bottom: var(--whl-space-5);
}

.whl-evidence-grid article {
  padding: var(--whl-space-4);
}

.whl-evidence-grid article + article {
  border-left: 1px solid var(--whl-rule);
}

.whl-evidence-grid__number {
  color: var(--whl-ink-faint);
  font-family: var(--whl-font-mono);
  font-size: .72rem;
}

.whl-evidence-grid h3 {
  margin: var(--whl-space-4) 0 .4rem;
  font-family: var(--whl-font-display);
  font-size: 1.55rem;
  font-weight: 500;
}

.whl-evidence-grid p {
  margin: 0;
  color: var(--whl-ink-soft);
}

.whl-explore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--whl-ink);
}

.whl-explore-grid a {
  display: grid;
  gap: .35rem;
  padding: var(--whl-space-4);
  border-bottom: 1px solid var(--whl-rule);
  color: var(--whl-ink);
  text-decoration: none;
}

.whl-explore-grid a:nth-child(odd) {
  border-right: 1px solid var(--whl-rule);
}

.whl-explore-grid strong {
  font-family: var(--whl-font-display);
  font-size: 1.45rem;
  font-weight: 500;
}

.whl-explore-grid span {
  color: var(--whl-ink-soft);
}

.whl-final-cta {
  background: var(--whl-ink);
  color: var(--whl-paper-strong);
}

.whl-final-cta .whl-kicker,
.whl-final-cta .whl-lede {
  color: #d7d2c7;
}

.whl-final-cta .whl-button--secondary {
  border-color: var(--whl-paper-strong);
  color: var(--whl-paper-strong);
}

.whl-final-cta .whl-button--secondary:hover {
  background: var(--whl-paper-strong);
  color: var(--whl-ink);
}

.whl-final-cta__inner {
  display: flex;
  justify-content: space-between;
  gap: var(--whl-space-5);
  align-items: end;
}

.whl-footer {
  padding-block: var(--whl-space-5);
  background: var(--whl-ink);
  color: #d7d2c7;
  border-top: 1px solid #3a3934;
}

.whl-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: var(--whl-space-4);
  align-items: end;
}

.whl-footer p {
  margin: .2rem 0 0;
  color: #aaa69e;
  font-size: .85rem;
}

@media (max-width: 64rem) {
  .whl-masthead__inner {
    grid-template-columns: 1fr auto;
  }

  .whl-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-bottom: var(--whl-space-3);
  }

  .whl-hero__grid,
  .whl-planner-grid {
    grid-template-columns: 1fr;
  }

  .whl-hero__model {
    max-width: 38rem;
  }

  .whl-model-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .whl-model-flow li:nth-child(3) {
    border-right: 0;
  }

  .whl-model-flow li:nth-child(-n+3) {
    border-bottom: 1px solid var(--whl-rule);
  }
}

@media (max-width: 48rem) {
  .whl-masthead__inner {
    min-height: auto;
    padding-block: .9rem;
  }

  .whl-nav {
    display: none;
  }

  .whl-nav-cta {
    text-align: right;
  }

  .whl-section-heading,
  .whl-compare,
  .whl-evidence-grid,
  .whl-explore-grid {
    grid-template-columns: 1fr;
  }

  .whl-compare > section {
    padding-inline: 0;
  }

  .whl-compare > section + section,
  .whl-evidence-grid article + article,
  .whl-explore-grid a:nth-child(odd) {
    border-left: 0;
    border-right: 0;
  }

  .whl-compare > section + section,
  .whl-evidence-grid article + article {
    border-top: 1px solid var(--whl-rule);
  }

  .whl-router__item {
    grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  }

  .whl-tool-row {
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .whl-tool-row__type {
    justify-self: start;
  }

  .whl-model-flow {
    grid-template-columns: 1fr;
  }

  .whl-model-flow li,
  .whl-model-flow li:nth-child(3) {
    border-right: 0;
    border-bottom: 1px solid var(--whl-rule);
  }

  .whl-model-flow li:last-child {
    border-bottom: 0;
  }

  .whl-final-cta__inner,
  .whl-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Computed data pages */

.whl-data-hero {
  padding-bottom: var(--whl-space-6);
}

.whl-data-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--whl-ink);
  border-bottom: 1px solid var(--whl-rule);
}

.whl-data-table {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
  background: var(--whl-paper-strong);
}

.whl-data-table th,
.whl-data-table td {
  padding: 1rem .85rem;
  border-bottom: 1px solid var(--whl-rule);
  text-align: left;
  vertical-align: top;
}

.whl-data-table th {
  color: var(--whl-ink-faint);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.whl-data-table td:first-child {
  max-width: 24rem;
  font-family: var(--whl-font-display);
  font-size: 1.05rem;
}

.whl-data-table td strong,
.whl-data-table td small {
  display: block;
}

.whl-data-table td small {
  margin-top: .15rem;
  color: var(--whl-ink-faint);
  font-size: .72rem;
}

.whl-data-table__change {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.whl-data-method {
  margin-top: var(--whl-space-5);
  max-width: var(--whl-reading);
}

@media (max-width: 48rem) {
  .whl-data-table th,
  .whl-data-table td {
    padding: .8rem .7rem;
  }
}


/* Calculator pages */

.whl-tool-hero {
  padding-bottom: var(--whl-space-6);
}

.whl-tool-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(24rem, 1.2fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.whl-calculator {
  display: grid;
  gap: var(--whl-space-4);
}

.whl-tool-result {
  min-width: 0;
}

.whl-tool-result__empty {
  margin-top: 0;
}

.whl-form-errors {
  border-color: var(--whl-critical);
}

.whl-form-errors ul {
  margin: .5rem 0 0;
  padding-left: 1.2rem;
}

.whl-schedule-table {
  min-width: 34rem;
}

.whl-schedule-table td:first-child {
  font-family: var(--whl-font-sans);
  font-size: 1rem;
}

@media (max-width: 56rem) {
  .whl-tool-layout {
    grid-template-columns: 1fr;
  }
}


.whl-tool-row--link {
  color: var(--whl-ink);
  text-decoration: none;
}

.whl-tool-row--link:hover h3 {
  color: var(--whl-accent);
}


.whl-adjustment-list {
  border-top: 1px solid var(--whl-ink);
}

.whl-adjustment-item {
  padding-block: var(--whl-space-4);
  border-bottom: 1px solid var(--whl-rule);
}

.whl-adjustment-item h3 {
  margin: 0 0 .35rem;
  font-family: var(--whl-font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.whl-adjustment-item p {
  margin: 0;
  max-width: 44rem;
  color: var(--whl-ink-soft);
}


.whl-explore-grid__item {
  display: grid;
  gap: .35rem;
  padding: var(--whl-space-4);
  border-bottom: 1px solid var(--whl-rule);
}

.whl-explore-grid__item:nth-child(odd) {
  border-right: 1px solid var(--whl-rule);
}

.whl-explore-grid__item strong {
  font-family: var(--whl-font-display);
  font-size: 1.45rem;
  font-weight: 500;
}

.whl-explore-grid__item span {
  color: var(--whl-ink-soft);
}

.whl-explore-grid__item--muted {
  background: color-mix(in srgb, var(--whl-paper) 55%, transparent);
}

@media (max-width: 48rem) {
  .whl-explore-grid__item:nth-child(odd) {
    border-right: 0;
  }
}


.whl-tool-result__section {
  margin-top: var(--whl-space-5);
}

.whl-question-list {
  margin: 0 0 var(--whl-space-5);
  padding: 0;
  list-style: none;
  counter-reset: whl-question;
  border-top: 1px solid var(--whl-ink);
}

.whl-question-list li {
  counter-increment: whl-question;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: .75rem;
  padding-block: var(--whl-space-3);
  border-bottom: 1px solid var(--whl-rule);
}

.whl-question-list li::before {
  content: counter(whl-question, decimal-leading-zero);
  color: var(--whl-ink-faint);
  font-family: var(--whl-font-mono);
  font-size: .72rem;
  padding-top: .2rem;
}

/* Shared data navigation and a native, keyboard-accessible mobile menu. */
.whl-mobile-menu { display: none; }
.whl-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: 1.5rem;
}
.whl-footer__links a {
  color: #d7d2c7;
  padding-block: .65rem;
  text-underline-offset: .2em;
}
@media (max-width: 48rem) {
  .whl-mobile-menu {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
  }
  .whl-mobile-menu summary {
    cursor: pointer;
    width: fit-content;
    padding: .7rem 1rem;
    border: 1px solid var(--whl-rule);
    border-radius: .25rem;
    font-weight: 650;
  }
  .whl-mobile-menu__links {
    display: grid;
    margin-top: .75rem;
  }
  .whl-mobile-menu__links a {
    color: var(--whl-ink);
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--whl-rule);
    text-decoration: none;
  }
  .whl-footer__links { flex-direction: column; }
}


/* Research pages */

.whl-research-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--whl-space-4);
  align-items: center;
  padding: var(--whl-space-5) 0;
  border-block: 1px solid var(--whl-ink);
  color: var(--whl-ink);
  text-decoration: none;
}

.whl-research-feature:hover {
  color: var(--whl-accent);
}

.whl-research-feature strong,
.whl-research-feature small {
  display: block;
}

.whl-research-feature strong {
  font-family: var(--whl-font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
}

.whl-research-feature small {
  margin-top: .35rem;
  color: var(--whl-ink-soft);
}

.whl-research-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.5rem;
  margin-top: var(--whl-space-5);
  padding-block: var(--whl-space-3);
  border-block: 1px solid var(--whl-rule);
  color: var(--whl-ink-soft);
  font-size: .9rem;
}

.whl-research-meta strong {
  color: var(--whl-ink);
  font-variant-numeric: tabular-nums;
}

.whl-research-section {
  background: var(--whl-paper-strong);
}

.whl-research-method {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--whl-ink);
}

.whl-research-method article {
  padding: var(--whl-space-4);
}

.whl-research-method article + article {
  border-left: 1px solid var(--whl-rule);
}

.whl-research-method h3 {
  margin: 0 0 .5rem;
  font-family: var(--whl-font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.whl-research-method p {
  margin: 0;
  color: var(--whl-ink-soft);
}

.whl-research-table td:first-child {
  width: 5rem;
  max-width: none;
  font-family: var(--whl-font-mono);
  font-size: .9rem;
}

.whl-research-table td:nth-child(2) {
  min-width: 18rem;
  font-family: var(--whl-font-display);
  font-size: 1.05rem;
}

.whl-research-table td:nth-child(2) small {
  font-family: var(--whl-font-mono);
}

@media (max-width: 48rem) {
  .whl-research-method {
    grid-template-columns: 1fr;
  }

  .whl-research-method article + article {
    border-left: 0;
    border-top: 1px solid var(--whl-rule);
  }
}
