:root {
  color-scheme: light;
  --bg: #f4f3ec;
  --surface: #fffef8;
  --ink: #28392e;
  --muted: #59675c;
  --line: #d5decd;
  --accent: #306445;
  --soft: #e4ecdd;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17231d;
  --surface: #203027;
  --ink: #e4eddb;
  --muted: #b0bfab;
  --line: #425346;
  --accent: #b0d898;
  --soft: #2d4031;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.55 system-ui,
    sans-serif;
}
main {
  max-width: 850px;
  margin: auto;
  padding: 24px 34px 70px;
}
.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.mast strong {
  font-size: 18px;
}
button {
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 10px;
}
button:hover {
  background: var(--soft);
}
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.intro {
  margin-bottom: 26px;
}
h1 {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.5px;
  margin: 0 0 5px;
}
.intro > p {
  margin: 0;
  color: var(--muted);
}
.intro .conclusion {
  margin-top: 14px;
  color: var(--ink);
  font-size: 14px;
}
.conclusion strong {
  color: var(--accent);
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline > li {
  display: grid;
  grid-template-columns: 90px 30px 1fr;
  position: relative;
  scroll-margin-top: 20px;
}
.when {
  display: flex;
  flex-direction: column;
  padding-top: 19px;
  font-variant-numeric: tabular-nums;
}
.when > span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.when strong {
  font-size: 20px;
  font-weight: 600;
}
.track {
  position: relative;
  display: flex;
  justify-content: center;
}
.track:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline > li:first-child .track:after {
  top: 32px;
}
.timeline > li:last-child .track:after {
  bottom: calc(100% - 34px);
}
.dot {
  position: absolute;
  top: 30px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  z-index: 1;
}
.lesson {
  padding: 18px 20px 20px;
  margin-left: 10px;
  border-bottom: 1px solid var(--line);
}
h2 {
  font-size: 17px;
  font-weight: 620;
  margin: 0 0 5px;
  line-height: 1.35;
}
.lesson p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 550px;
}
.phase {
  display: block;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 6px;
}
.milestone .lesson {
  background: var(--soft);
  border-radius: 10px;
  border-bottom: 0;
  margin-top: 5px;
  margin-bottom: 5px;
}
.milestone .dot {
  width: 14px;
  height: 14px;
  top: 28px;
}
.specialty .lesson {
  border-bottom: 0;
  padding-bottom: 10px;
}
.lesson .hours {
  margin-top: 9px;
  color: var(--accent);
  font-size: 12px;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
  font-size: 13px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}
details p {
  margin: 18px 0;
}
.assumptions {
  margin: 20px 0;
}
.assumptions > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
td,
th {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
th {
  color: var(--muted);
  font-weight: 500;
}
td:last-child,
th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
a {
  color: var(--accent);
}
[v-cloak] {
  display: none;
}
#startup {
  padding: 30px;
}
@media (max-width: 600px) {
  main {
    padding: 18px 18px 45px;
  }
  .mast {
    margin-bottom: 22px;
  }
  h1 {
    font-size: 22px;
  }
  .intro > p {
    font-size: 13px;
  }
  .timeline > li {
    grid-template-columns: 62px 18px 1fr;
  }
  .when strong {
    font-size: 17px;
  }
  .lesson {
    margin-left: 7px;
    padding: 18px 10px;
  }
  .lesson h2 {
    font-size: 15px;
  }
  .lesson p {
    font-size: 12px;
  }
  .assumptions > div {
    grid-template-columns: 90px 1fr;
    gap: 8px;
  }
}

.population-key {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px;
}
.population-key strong {
  font-weight: 500;
}
.lesson-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.population-rate {
  white-space: nowrap;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  color: var(--accent);
}
.population-rate:hover {
  text-decoration: underline;
}
.population-basis {
  margin-top: 30px;
  scroll-margin-top: 20px;
}
.evidence {
  padding-left: 18px;
}
.evidence li {
  margin: 12px 0;
}
.population-notes {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.population-notes h3 {
  font-size: 13px;
  margin: 0;
}
.population-notes h3 span {
  font-weight: 400;
  color: var(--accent);
  white-space: nowrap;
}
.population-notes p {
  margin: 5px 0 0;
  color: var(--muted);
}
@media (max-width: 600px) {
  .lesson-heading {
    display: block;
  }
  .population-rate {
    display: inline-block;
    margin: 0 0 5px;
    font-size: 12px;
  }
}

.progression-factors {
  margin: 30px 0;
  scroll-margin-top: 20px;
}
.progression-factors > p {
  font-size: 13px;
  color: var(--muted);
}
.factor-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}
.factor-list > li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.factor-heading {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: baseline;
}
.factor-heading h3 {
  margin: 0;
  font-size: 14px;
}
.factor-age {
  color: var(--accent);
  font-size: 14px;
  white-space: nowrap;
}
.factor-list p {
  margin: 5px 0;
  font-size: 12px;
  color: var(--muted);
}
.factor-example {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
}
.factor-example > span:last-child {
  color: var(--accent);
  text-align: right;
}
.factor-note {
  font-size: 12px;
}
@media (max-width: 600px) {
  .factor-example {
    display: block;
  }
  .factor-example > span {
    display: block;
  }
  .factor-example > span:last-child {
    text-align: left;
    margin-top: 4px;
  }
}
