@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 100; font-display: swap; src: url("/assets/fonts/archivo-latin-100-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/archivo-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/archivo-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/archivo-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/archivo-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/archivo-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/archivo-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/archivo-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/archivo-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/archivo-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/archivo-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/archivo-latin-900-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #e9edf0;
  --fg-light-base-body: #121c24;
  --fg-light-base-heading: #121c24;
  --fg-light-base-muted: #45515c;
  --fg-light-base-link: #1b6a34;
  --fg-light-base-inverse: #121c24;
  --bg-light-card: #ffffff;
  --fg-light-card-body: #121c24;
  --fg-light-card-heading: #121c24;
  --fg-light-card-muted: #45515c;
  --fg-light-card-link: #1b6a34;
  --fg-light-card-inverse: #121c24;
  --bg-light-elevated: #dfe5ea;
  --fg-light-elevated-body: #121c24;
  --fg-light-elevated-heading: #121c24;
  --fg-light-elevated-muted: #45515c;
  --fg-light-elevated-link: #1b6a34;
  --fg-light-elevated-inverse: #121c24;
  --brand-light-accent: #23803f;
  --brand-light-accent-hover: #1b6634;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #23803f;
  --border-light-default: #74808b;
  --border-light-subtle: #cbd3da;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

/* Results-tracking dashboard: a left rail on a cool-gray canvas,
   white readout panels, leaf-green meters, Archivo with tabular figures. */

:root {
  --face: 'Archivo', 'Segoe UI', Arial, sans-serif;
  --leaf: var(--brand-light-accent);
  --leaf-deep: var(--brand-light-accent-hover);
  --leaf-tint: color-mix(in srgb, var(--brand-light-accent) 14%, var(--bg-light-card));
  --leaf-track: color-mix(in srgb, var(--brand-light-accent) 22%, var(--bg-light-elevated));
  --edge: var(--border-light-subtle);
  --edge-strong: var(--border-light-default);
  --rail-w: 15.5rem;
  --pad: clamp(1rem, 3vw, 2rem);
  --read: 40rem;
  --round: 4px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body.dash {
  margin: 0;
  font-family: var(--face);
  font-size: 1rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums lining-nums;
}

h1,
h2,
h3,
h4 {
  font-family: var(--face);
  margin: 0;
  line-height: 1.18;
}

h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

/* ---------- Rail (header) ---------- */

.rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem var(--pad);
  border-bottom: 1px solid var(--edge);
  position: relative;
  z-index: 20;
}

.rail-id {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  min-width: 0;
  text-decoration: none;
}

.rail-id .site-logo {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.rail-id-name {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
}

.rail-routes {
  display: none;
}

.rail-switch {
  flex: none;
  position: relative;
}

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--edge-strong);
  border-radius: var(--round);
  font-weight: 600;
  font-size: 0.92rem;
}

.site-menu .menu-icon {
  width: 1rem;
  height: 0.75rem;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 70% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 40% 2px no-repeat;
}

.site-menu[open] > summary {
  background: var(--leaf-tint);
}

.site-menu > ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  width: min(18rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: var(--bg-light-card);
  border: 1px solid var(--edge-strong);
  border-radius: var(--round);
}

.site-menu > ul a {
  display: block;
  padding: 0.7rem 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.site-menu > ul a:hover {
  border-left-color: var(--leaf);
  background: var(--leaf-tint);
}

@media (min-width: 64rem) {
  body.dash {
    display: grid;
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    min-height: 100vh;
  }

  .rail {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.75rem;
    padding: 1.5rem 1.1rem;
    border-bottom: 0;
    border-right: 1px solid var(--edge);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }

  .rail-id {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .rail-id .site-logo {
    width: 2.5rem;
    height: 2.5rem;
  }

  .rail-routes {
    display: block;
  }

  .rail-switch {
    display: none;
  }

  .rail-routes .site-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.15rem;
  }

  .rail-routes .site-nav a {
    display: block;
    padding: 0.6rem 0.7rem;
    border-left: 3px solid var(--edge);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
  }

  .rail-routes .site-nav a:hover {
    border-left-color: var(--leaf);
    background: var(--leaf-tint);
    text-decoration: underline;
  }
}

/* ---------- Pane ---------- */

.pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.pane-view {
  flex: 1;
  width: 100%;
  max-width: 68rem;
  padding: 0 var(--pad) 3rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}

.breadcrumbs li + li::before {
  content: '/';
  margin: 0 0.4rem;
  color: var(--fg-muted);
}

.breadcrumbs a {
  display: inline-block;
  padding: 0.35rem 0;
}

/* ---------- Pane footer ---------- */

.pane-foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 1.5rem;
  align-items: center;
  padding: 1.1rem var(--pad);
  border-top: 1px solid var(--edge);
}

.pane-foot-meter {
  display: block;
  height: 4px;
  width: 6rem;
  background: var(--leaf);
  border-radius: 2px;
}

.pane-foot-say,
.pane-foot-name {
  margin: 0;
  font-size: 0.9rem;
}

.pane-foot-say {
  font-weight: 600;
}

@media (min-width: 48rem) {
  .pane-foot {
    grid-template-columns: auto 1fr auto;
  }
}

/* ---------- Shared body copy ---------- */

.copy {
  max-width: var(--read);
}

.copy > * + * {
  margin-top: 1rem;
}

.copy p,
.copy ul,
.copy ol {
  margin-bottom: 0;
}

.copy h2 {
  margin-top: 2.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--edge-strong);
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  font-weight: 700;
}

.copy h3 {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.copy ul,
.copy ol {
  padding-left: 1.3rem;
}

.copy li + li {
  margin-top: 0.3rem;
}

.copy strong {
  font-weight: 700;
}

.copy table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
}

.copy th,
.copy td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--edge);
}

.copy th {
  font-weight: 700;
  border-bottom: 2px solid var(--leaf);
  white-space: nowrap;
}

.copy td:nth-child(2) {
  font-weight: 700;
  text-align: right;
}

.copy figure {
  margin: 1.5rem 0;
}

.copy figure img {
  display: block;
  border-radius: var(--round);
}

.photo-hero {
  margin: 0 0 1.5rem;
}

.photo-hero img {
  display: block;
  width: 100%;
  max-height: 24rem;
  object-fit: cover;
  border-radius: var(--round);
}

.copy section[data-section][style] {
  padding: clamp(1rem, 4vw, 2.5rem);
  margin-top: 2rem;
  border-radius: var(--round);
}

.copy section[data-section][style] > .bg-surface-card {
  padding: 1.1rem 1.25rem 1.3rem;
  border-radius: var(--round);
  max-width: 34rem;
}

.copy section[data-section][style] > .bg-surface-card > * + * {
  margin-top: 0.9rem;
}

.copy section[data-section][style] h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ---------- Sheet heads (inner pages) ---------- */

.sheet-head {
  margin-top: 1rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.25rem 1.1rem;
  border: 1px solid var(--edge);
  border-radius: var(--round);
}

.sheet-meter {
  display: block;
  margin-top: 0.9rem;
  height: 6px;
  width: 100%;
  max-width: 18rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--leaf) 0 62%, var(--leaf-track) 62% 100%);
}

.sheet-meter--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  height: auto;
  background: none;
}

.sheet-meter--pair span {
  height: 6px;
  border-radius: 3px;
  background: var(--leaf);
}

.sheet-meter--pair span + span {
  background: var(--leaf-track);
}

/* Ranked list: compact leaderboard rows */

.copy--rank ol {
  list-style: none;
  padding: 0;
  counter-reset: rank;
  border: 1px solid var(--edge);
  border-radius: var(--round);
  background: var(--bg-light-card);
}

.copy--rank ol > li {
  counter-increment: rank;
  position: relative;
  margin: 0;
  padding: 0.5rem 0.75rem 0.5rem 3.25rem;
  border-bottom: 1px solid var(--edge);
}

.copy--rank ol > li:last-child {
  border-bottom: 0;
}

.copy--rank ol > li::before {
  content: counter(rank);
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  font-weight: 800;
  color: var(--leaf-deep);
}

.copy--rank ol > li:first-child {
  background: var(--leaf-tint);
}

/* Profile: notes column at wide sizes */

@media (min-width: 72rem) {
  .copy--profile {
    max-width: none;
    columns: 2 22rem;
    column-gap: 2.5rem;
  }

  .copy--profile > * {
    break-inside: avoid;
  }

  .copy--profile h2 {
    break-after: avoid;
  }

  .copy--profile > :first-child,
  .copy--profile h2 {
    margin-top: 0;
  }

  .copy--profile > * + * {
    margin-top: 1rem;
  }
}

.copy--versus {
  max-width: 52rem;
}

.copy--versus > p,
.copy--versus > ul,
.copy--versus > ol,
.copy--versus > h2,
.copy--versus > h3 {
  max-width: var(--read);
}

/* Children panel on ranked lists */

.kids {
  margin-top: 2.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--edge);
  border-radius: var(--round);
  max-width: 52rem;
}

.kids h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.kids ul {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.4rem 1.25rem;
}

.kids a {
  display: block;
  padding: 0.45rem 0 0.45rem 0.7rem;
  border-left: 3px solid var(--leaf);
  font-weight: 600;
}

/* ---------- Home board ---------- */

.board-top {
  margin-top: 1.25rem;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid var(--edge);
  border-radius: var(--round);
}

.board-head {
  display: grid;
  gap: 0.9rem;
}

.board-say h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.board-lede {
  max-width: 36rem;
  font-size: 1.05rem;
}

.board-lede .display-line {
  margin: 0 0 0.5rem;
}

.board-lede .display-line:last-child {
  margin-bottom: 0;
}

@media (min-width: 56rem) {
  .board-head {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: end;
    gap: 2rem;
  }
}

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

.readout {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 0.75rem 0.9rem;
  border-radius: var(--round);
  border-bottom: 3px solid var(--leaf);
}

.readout dd {
  margin: 0;
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
}

.readout dt {
  margin-top: 0.35rem;
  font-size: 0.86rem;
}

@media (min-width: 40rem) {
  .readouts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.lanes {
  margin: 1rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 48rem) {
  .lanes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lane {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--edge);
  border-radius: var(--round);
  text-decoration: none;
}

.lane:hover {
  border-color: var(--leaf);
}

.lane:hover .lane-name {
  text-decoration: underline;
}

.lane:focus-visible {
  outline: 2px solid var(--focus-light-ring);
  outline-offset: 2px;
}

.lane-name {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
}

.lane-meter {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--leaf);
}

.lane-count {
  font-size: 0.88rem;
}

/* ---------- About: method flow and tags ---------- */

.flow {
  margin-bottom: 2rem;
  padding: 1.1rem 1.25rem 1.25rem;
  border: 1px solid var(--edge);
  border-radius: var(--round);
}

.flow-h {
  font-size: 1.1rem;
  font-weight: 700;
}

.flow-steps {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 48rem) {
  .flow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .flow-step {
    position: relative;
  }

  .flow-step + .flow-step::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 50%;
    width: 1.25rem;
    height: 2px;
    background: var(--leaf);
  }
}

.flow-step {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--round);
  border-top: 3px solid var(--leaf);
  font-size: 0.9rem;
}

.flow-step-name {
  font-weight: 700;
  font-size: 1rem;
}

.tags {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--leaf);
  border-radius: 999px;
  font-size: 0.85rem;
  background: var(--leaf-tint);
}

.tags--links {
  margin-top: 2rem;
}

.tag--link {
  padding: 0;
}

.tag--link a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  font-weight: 600;
}

/* ---------- Contact ---------- */

.ask {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 60rem) {
  .ask {
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    align-items: start;
  }
}

.ask-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem;
  border: 1px solid var(--edge);
  border-radius: var(--round);
}

.ask-row {
  display: grid;
  gap: 0.3rem;
}

.ask-row label {
  font-size: 0.88rem;
  font-weight: 700;
}

.ask-hint {
  font-weight: 400;
}

.ask-row input,
.ask-row textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.65rem;
  font: inherit;
  color: var(--fg-light-card-body);
  background: var(--bg-light-card);
  border: 1px solid var(--edge-strong);
  border-radius: var(--round);
}

.ask-row textarea {
  resize: vertical;
}

.ask-row input:focus-visible,
.ask-row textarea:focus-visible {
  outline: 2px solid var(--focus-light-ring);
  outline-offset: 1px;
}

.ask-go {
  justify-self: start;
  min-height: 2.75rem;
  padding: 0.5rem 1.4rem;
  font: inherit;
  font-weight: 700;
  color: var(--brand-light-on-accent);
  background: var(--leaf);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.ask-go:hover {
  background: var(--leaf-deep);
}

/* ---------- Thank you ---------- */

.done-meter {
  display: block;
  height: 8px;
  margin-bottom: 1rem;
  border-radius: 4px;
  background: var(--leaf);
}

@media (prefers-reduced-motion: no-preference) {
  .done-meter {
    animation: fill 900ms ease-out both;
    transform-origin: left center;
  }

  @keyframes fill {
    from {
      transform: scaleX(0.15);
    }
    to {
      transform: scaleX(1);
    }
  }
}
