:root {
  color-scheme: light;
  --ink: #172b32;
  --muted: #50646a;
  --paper: #f7f7f2;
  --teal: #11675f;
  --line: #d9e2df;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    1rem/1.65 'Inter',
    system-ui,
    sans-serif;
}
a {
  color: var(--teal);
  text-underline-offset: 0.2em;
}
a:hover {
  color: #8a3625;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid #b14c19;
  outline-offset: 4px;
}
header,
main,
footer {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}
.brand span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}
.skip {
  position: absolute;
  top: -100px;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 0;
  z-index: 10;
}
.hero {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 70px;
  padding: 76px 0 54px;
  align-items: center;
}
.eyebrow,
.small-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 800;
  color: var(--teal);
}
h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin: 20px 0;
}
h1 em {
  color: var(--teal);
  font-style: normal;
}
.lead {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 630px;
}
.tag {
  display: inline-block;
  font-size: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 6px 12px;
  margin: 10px 0 26px;
}
.primary,
.secondary {
  display: inline-block;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--teal);
}
.primary {
  color: white;
  background: var(--teal);
}
.primary:hover {
  background: #084d47;
  color: white;
}
.hero .primary {
  display: table;
}
.secondary {
  color: var(--teal);
  background: white;
}
.hero-note {
  background: #173f3b;
  color: #fff;
  border-radius: 14px;
  padding: 32px;
  border-top: 7px solid #d8b16d;
}
.number {
  color: #d8c192;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}
.hero-note h2 {
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 18px 0;
}
.hero-note figure {
  margin: 16px 0;
}
.hero-note img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: white;
}
.hero-note figcaption {
  font-size: 0.7rem;
  color: #deebe7;
  margin-top: 10px;
}
.hero-note p {
  color: #deebe7;
}
.hero-note a {
  color: #f2dbaf;
}
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
  border-block: 1px solid var(--line);
  padding: 19px 0;
  font-size: 0.88rem;
  font-weight: 700;
}
.section-nav a {
  text-decoration: none;
}
.objectives {
  display: flex;
  align-items: baseline;
  gap: 45px;
  padding: 28px 0 0;
}
.objectives h2 {
  font-size: 1rem;
  flex-shrink: 0;
}
.objectives ul {
  color: var(--muted);
  margin: 0;
}
.section {
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}
.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 12px 0;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 10px 0;
}
.section-heading > p:last-child {
  color: var(--muted);
}
.selectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.selectors button {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 18px;
  text-align: left;
  border-radius: 10px;
  font-weight: 800;
}
.selectors button span {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
}
.selectors button[aria-pressed='true'] {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.detail {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 36px;
}
.detail-grid p {
  margin-top: 6px;
}
.pitfall {
  background: #fff5e7;
  padding: 16px;
  border-left: 3px solid #a45420;
}
details {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  margin-top: 14px;
}
summary {
  padding: 18px 22px;
  font-weight: 700;
  cursor: pointer;
}
details > p {
  margin: 0;
  padding: 0 22px 20px;
}
.route-label {
  display: inline-block;
  color: var(--teal);
  min-width: 100px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.prompt {
  color: var(--muted);
  font-style: italic;
}
.callout {
  margin-top: 24px;
  background: #e7efec;
  padding: 20px 24px;
  border-radius: 10px;
}
.callout strong {
  display: block;
}
.differentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.differentials article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.differentials p {
  color: var(--muted);
}
.table-scroll {
  overflow-x: auto;
  padding: 0 18px 18px;
}
table {
  border-collapse: collapse;
  min-width: 600px;
  width: 100%;
  font-size: 0.9rem;
}
caption {
  text-align: left;
  padding: 10px 0;
  font-weight: 700;
}
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}
fieldset {
  min-width: 0;
  border: 1px solid var(--line);
  background: white;
  padding: 22px;
  border-radius: 10px;
  margin: 26px 0;
}
legend {
  font-weight: 800;
  padding: 0 8px;
  max-width: 100%;
}
.answer {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 9px 12px;
  margin: 6px 0;
  border-radius: 6px;
  background: #f3f6f4;
  cursor: pointer;
}
.answer:has(input:checked) {
  background: #dbece5;
}
.answer input {
  accent-color: var(--teal);
}
.feedback {
  border-left: 3px solid var(--teal);
  margin-top: 16px;
  padding: 12px 16px;
  background: #edf5f1;
}
.feedback.incorrect {
  border-color: #a45420;
  background: #fff5e7;
}
.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
#quiz-result {
  font-weight: 800;
}
.references {
  font-size: 0.93rem;
}
.references li {
  padding: 7px 0;
  overflow-wrap: anywhere;
}
.editorial {
  color: var(--muted);
  font-size: 0.85rem;
}
footer {
  padding: 32px 0;
  font-size: 0.85rem;
}
[hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  header,
  main,
  footer {
    width: calc(100% - 32px);
  }
  header {
    align-items: start;
    font-size: 0.8rem;
  }
  .brand {
    font-size: 1.05rem;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 38px 0;
  }
  .hero-note h2 {
    font-size: 1.5rem;
  }
  .objectives {
    display: block;
  }
  .selectors {
    gap: 6px;
  }
  .selectors button {
    padding: 12px 8px;
    font-size: 0.85rem;
  }
  .selectors button span {
    font-size: 0.73rem;
  }
  .detail {
    padding: 22px;
  }
  .detail-grid,
  .differentials {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 42px 0;
  }
  .route-label {
    display: block;
  }
  fieldset {
    padding: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  body {
    background: white;
    color: black;
    font-size: 10pt;
  }
  header,
  .skip,
  .hero .primary,
  .section-nav,
  .selectors,
  .quiz-actions,
  footer > a {
    display: none;
  }
  header,
  main,
  footer {
    width: 100%;
  }
  .hero {
    padding: 10px 0;
    gap: 20px;
  }
  h1 {
    font-size: 28pt;
  }
  .section {
    padding: 20px 0;
  }
  .hero-note {
    color: black;
    background: white;
    border: 1px solid #777;
  }
  .hero-note h2 {
    font-size: 20pt;
  }
  .hero-note p,
  .hero-note a {
    color: black;
  }
  .differentials {
    display: block;
  }
  .detail,
  fieldset,
  .differentials article {
    break-inside: avoid;
  }
  details {
    display: block;
  }
  details > * {
    display: block;
  }
}
