:root {
  --navy: #16324f;
  --deep: #082334;
  --ink: #24323e;
  --muted: #516476;
  --line: #d7e0e6;
  --paper: #f7f9fa;
  --teal: #166d64;
  --light: #e7f2ee;
  --gold: #b5965b;
  --rust: #a83f28;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  line-height: 1.75;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button {
  min-height: 44px;
}
input,
textarea,
select {
  max-width: 100%;
}
a,
button,
input,
select,
textarea,
summary {
  outline-offset: 4px;
}
:focus-visible {
  outline: 3px solid var(--teal);
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1320px, calc(100% - 64px));
  margin-inline: auto;
}
.academy-header {
  min-height: 88px;
  padding: 20px max(32px, calc((100vw - 1320px) / 2));
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  min-width: max-content;
}
.wordmark strong {
  font-size: 20px;
  letter-spacing: 0.22em;
  line-height: 1.25;
  color: var(--navy);
}
.wordmark span {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.academy-nav {
  display: flex;
  gap: 28px;
}
.academy-nav a {
  font-size: 11px;
  letter-spacing: 0.07em;
  font-weight: 750;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}
.compact-nav {
  position: relative;
  display: none;
}
.compact-nav summary {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  padding: 10px 0;
  min-height: 44px;
}
.compact-nav nav {
  position: absolute;
  right: 0;
  top: 45px;
  z-index: 30;
  display: grid;
  background: white;
  border: 1px solid var(--line);
  min-width: 220px;
  box-shadow: 0 12px 35px #16324f1a;
  padding: 10px;
}
.compact-nav a {
  padding: 10px;
  font-size: 13px;
  text-decoration: none;
  color: var(--navy);
}
.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 40;
}
.skip:focus {
  top: 10px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--rust);
  line-height: 1.6;
  margin: 0 0 16px;
}
.link-arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.1em;
}
h1,
h2,
h3 {
  color: var(--navy);
}
h1 {
  font:
    400 clamp(39px, 4.6vw, 68px) / 1.08 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}
h2 {
  font:
    400 36px/1.2 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 25px 0 12px;
}
p {
  margin: 0 0 18px;
}
.hero-intro,
.library-hero > p:not(.eyebrow) {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.85;
  max-width: 740px;
}
.hero-links {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 48px;
  padding: 13px 19px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid var(--navy);
}
.primary {
  background: var(--navy);
  color: white;
}
.text-link {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}
.quiet-button {
  border: 0;
  border-bottom: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.library-hero {
  padding-block: 65px 35px;
}
.library-hero h1 {
  max-width: 960px;
}
.catalog-section {
  padding-block: 25px 65px;
}
.catalog-controls {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  padding: 22px 0;
  border-block: 1px solid var(--line);
}
.catalog-controls > div {
  flex: 1;
}
.catalog-controls .search-field {
  flex: 2;
}
.catalog-controls label,
label {
  display: block;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 8px;
}
.catalog-controls input,
.catalog-controls select,
select,
input[type="search"] {
  width: 100%;
  border: 1px solid #b6c6cf;
  background: white;
  color: var(--navy);
  padding: 11px 12px;
  font-size: 12px;
  border-radius: 2px;
  min-height: 44px;
}
.catalog-status {
  font-size: 11px;
  color: var(--muted);
  padding: 12px 0;
  margin: 0;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.catalog-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  padding: 24px;
  min-height: 260px;
  min-width: 0;
}
.card-meta {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--teal);
  font-size: 9px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.card-meta span:first-child {
  font-weight: 750;
}
.catalog-card h2 {
  font:
    400 25px/1.25 Georgia,
    serif;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.catalog-card h2 a {
  text-decoration: none;
}
.catalog-card h2 a:hover {
  text-decoration: underline;
}
.catalog-card > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 22px;
}
.card-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.card-bottom > span {
  font-size: 9px;
  color: var(--muted);
}
.card-bottom a {
  font-size: 11px;
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}
.empty-state {
  background: white;
  border: 1px solid var(--line);
  padding: 25px;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumbs {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 24px 0 15px;
  font-size: 10px;
  color: var(--muted);
  flex-wrap: wrap;
}
.breadcrumbs a {
  text-decoration: none;
  color: var(--navy);
}
.lesson-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 55px;
  padding: 18px 0 65px;
}
.lesson-aside {
  align-self: start;
  position: sticky;
  top: 25px;
  padding-top: 12px;
}
.lesson-aside .eyebrow {
  font-size: 9px;
  color: var(--teal);
}
.lesson-aside nav {
  display: grid;
  border-left: 1px solid var(--line);
}
.lesson-aside nav a {
  padding: 7px 13px;
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.lesson-aside nav a:hover {
  color: var(--teal);
  background: #ebf2ef;
}
.aside-download {
  display: inline-block;
  margin: 23px 0 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--navy);
}
.lesson {
  min-width: 0;
  max-width: 1030px;
}
.lesson-header {
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.lesson-header h1 {
  font-size: clamp(34px, 4vw, 56px);
  max-width: 1000px;
}
.lesson-intro {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tags span {
  padding: 5px 9px;
  background: #e5efec;
  color: #255c51;
  font-size: 9px;
}
.prerequisites {
  margin-top: 20px;
  padding: 14px 17px;
  background: #eef2f4;
  font-size: 10px;
  color: var(--muted);
}
.prerequisites > strong {
  display: block;
  color: var(--navy);
  font-size: 10px;
}
.prerequisites .related-links {
  margin-top: 6px;
}
.prerequisites .related-links a {
  font-size: 10px;
  padding: 5px 0;
  border: 0;
  background: transparent;
}
.lesson > section {
  padding: 20px 0 25px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.lesson > section > h2 {
  font-size: 30px;
  margin-bottom: 18px;
}
.lesson p,
.lesson li {
  font-size: 14px;
  line-height: 1.95;
}
.lesson ul,
.lesson ol {
  padding-left: 22px;
  margin: 10px 0 18px;
}
.lesson li {
  padding-left: 3px;
  margin: 10px 0;
}
.question-lead {
  font-size: 19px !important;
  line-height: 1.7 !important;
  color: var(--navy);
  font-weight: 600;
}
.formula {
  padding: 20px 22px;
  background: var(--deep);
  color: #e9f3f1;
  border-left: 3px solid var(--gold);
  font-family: "Cambria Math", Cambria, Georgia, serif;
  font-size: 17px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-bottom: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 12px;
  text-align: left;
  line-height: 1.7;
  margin: 15px 0;
}
caption {
  text-align: left;
  color: var(--navy);
  font-weight: 700;
  font-size: 11px;
  background: #eaf0f2;
  padding: 11px 14px;
}
thead {
  font-size: 10px;
  color: var(--muted);
  background: #f0f4f6;
}
th,
td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tbody th {
  color: var(--navy);
  font-weight: 650;
}
table tr:last-child > * {
  border-bottom: 0;
}
.example {
  background: white;
  border: 1px solid var(--line);
  padding: 25px;
}
.example h3 {
  font-size: 14px;
  margin-top: 22px;
}
.example .eyebrow {
  font-size: 9px !important;
}
.answer {
  background: var(--light);
  border-left: 3px solid var(--teal);
  padding: 17px 19px;
  margin-top: 23px;
  color: #22564b;
}
.answer strong {
  font-size: 15px;
  color: #124c40;
  line-height: 1.8;
}
.answer p {
  font-size: 13px !important;
  margin: 10px 0 0;
  line-height: 1.9;
}
.decision {
  background: var(--light);
  padding: 18px 20px;
  margin-top: 20px;
  color: #22564d;
}
.decision strong {
  display: block;
  font-size: 11px;
  color: #114c3f;
}
.decision p {
  font-size: 13px !important;
  margin: 6px 0 0;
}
.sources {
  list-style: none;
  padding-left: 0 !important;
}
.sources a {
  color: var(--teal);
  font-size: 12px;
}
.small {
  font-size: 11px !important;
  line-height: 1.8 !important;
  color: var(--muted);
}
.related-links {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
.related-links a {
  display: block;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.related-links a:hover {
  background: #edf4f0;
}
.lesson-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 35px 0 0;
}
.lesson-next a {
  text-decoration: none;
  font-size: 13px;
  line-height: 1.7;
  color: var(--navy);
}
.lesson-next small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  font-size: 9px;
  margin-bottom: 6px;
}
.code-details {
  border: 1px solid var(--line);
  padding: 0 18px;
  background: white;
  margin: 20px 0;
}
.code-details summary {
  min-height: 48px;
  padding: 12px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #102d40;
  color: #e6f0f5;
  padding: 20px;
  font:
    12px/1.8 Consolas,
    "Cascadia Code",
    monospace;
  overflow: auto;
}
pre.output {
  background: #edf3f4;
  color: #234457;
  border-left: 3px solid var(--teal);
}
.code-details h3 {
  font-size: 12px;
}
.explorer {
  background: white;
  border: 1px solid #bdcdd5;
  padding: 22px;
  margin-top: 22px;
  min-width: 0;
}
.explorer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.explorer-head h3 {
  font-size: 17px;
  margin: 0;
}
.explorer-head span {
  font-size: 9px;
  color: var(--teal);
  white-space: nowrap;
}
.explorer-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: 25px;
}
.explorer-fields {
  display: grid;
  gap: 19px;
}
.explorer-field label {
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 7px;
}
.explorer-field input,
.explorer-field textarea {
  width: 100%;
  padding: 10px 11px;
  background: #f8fafb;
  border: 1px solid #bdcbd5;
  color: var(--navy);
  font-size: 13px;
  border-radius: 2px;
}
.explorer-field textarea {
  font:
    12px/1.8 Consolas,
    monospace;
  min-height: 104px;
  resize: vertical;
}
.field-hint {
  display: block;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 5px;
}
.explorer form .button {
  width: 100%;
  margin-top: 21px;
  justify-content: center;
}
.explorer form .quiet-button {
  margin-top: 12px;
  min-height: 35px;
}
.explorer-results {
  min-width: 0;
}
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 19px;
}
.metric {
  border-bottom: 1px solid var(--line);
  padding: 0 0 13px;
  min-width: 0;
}
.metric span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.6;
}
.metric strong {
  display: block;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.4;
  margin: 7px 0 2px;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.metric:first-child strong {
  color: var(--teal);
}
.metric small {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.tool-note {
  background: #edf4f1;
  padding: 14px 16px;
  font-size: 10px !important;
  line-height: 1.9 !important;
  color: #295d52;
  margin: 18px 0 0;
}
.tool-warning {
  background: #fff1e6;
  border-left: 3px solid var(--rust);
  padding: 13px 15px;
  font-size: 11px !important;
  color: #8a3e24;
  line-height: 1.8 !important;
}
.tool-error {
  background: #fff1eb;
  border: 1px solid #e4c2b3;
  padding: 15px;
  font-size: 12px !important;
  color: #8c3426;
}
.result-table {
  overflow: auto;
  margin-top: 18px;
  max-height: 440px;
  border: 1px solid var(--line);
}
.result-table table {
  margin: 0;
  font-size: 10px;
  min-width: 330px;
}
.result-table td,
.result-table th {
  padding: 8px 10px;
}
.explorer-chart {
  border: 1px solid var(--line);
  padding: 15px 12px;
  background: #f8fafb;
  margin: 17px 0;
}
.explorer-chart figcaption {
  font-size: 10px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 7px;
}
.explorer-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.explorer-chart svg text {
  font:
    10px "Segoe UI",
    Arial,
    sans-serif;
  fill: #526577;
}
.explorer-chart .grid {
  stroke: #e1e9ed;
  stroke-width: 1;
}
.explorer-chart .axis {
  stroke: #94a7b5;
  stroke-width: 1;
}
.explorer-chart .series {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
}
.explorer-chart .fitted {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-dasharray: 5 4;
}
.explorer-chart .limit {
  fill: none;
  stroke: var(--rust);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}
.explorer-chart .point {
  fill: var(--teal);
  stroke: white;
  stroke-width: 1;
}
.explorer-chart p {
  font-size: 9px !important;
  line-height: 1.7 !important;
  color: var(--muted);
  margin: 8px 0 0;
}
.explorer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.explorer-footer p {
  font-size: 9px !important;
  line-height: 1.7 !important;
  color: var(--muted);
  margin: 0;
}
.explorer-footer button {
  font-size: 10px;
  color: var(--navy);
  border: 0;
  background: none;
  font-weight: 700;
  white-space: nowrap;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 0 50px;
}
.download-grid article {
  background: white;
  border: 1px solid var(--line);
  padding: 28px;
}
.download-grid h2 {
  font-size: 28px;
}
.download-grid p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.download-grid .button {
  font-size: 11px;
}
.reading-note {
  padding: 25px 0 60px;
  max-width: 900px;
}
.reading-note p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.95;
}
.handbook {
  max-width: 1000px;
}
.handbook-toc {
  padding: 20px 25px;
  border: 1px solid var(--line);
  background: white;
}
.handbook-toc summary {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.handbook-toc > div {
  columns: 2;
  column-gap: 40px;
  padding-top: 20px;
}
.handbook-toc h2 {
  font-size: 25px;
  break-after: avoid;
}
.handbook-toc li {
  font-size: 12px;
  line-height: 1.8;
  padding: 3px 0;
}
.handbook-toc a {
  color: var(--navy);
}
.handbook-chapter {
  padding: 55px 0;
  border-bottom: 2px solid var(--navy);
  scroll-margin-top: 20px;
}
.handbook-chapter .chapter-title {
  font-size: 40px;
  margin-bottom: 20px;
}
.handbook-chapter > section {
  margin-top: 30px;
}
.handbook-chapter section h2 {
  font-size: 25px;
}
.handbook-chapter p,
.handbook-chapter li {
  font-size: 14px;
  line-height: 1.95;
}
.handbook-chapter h3 {
  font-size: 16px;
}
.academy-footer {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  padding-block: 25px 35px;
  border-top: 1px solid var(--line);
}
.academy-footer strong {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--navy);
}
.academy-footer span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 3px;
}
.academy-footer nav {
  display: flex;
  gap: 23px;
  flex-wrap: wrap;
}
.academy-footer a {
  font-size: 10px;
  color: var(--navy);
  text-decoration: none;
}
.hub-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 65px;
  align-items: center;
  padding-block: 65px 55px;
}
.hub-brief {
  background: var(--deep);
  color: #c6d9e2;
  padding: 32px;
  border-top: 3px solid var(--gold);
}
.hub-brief .eyebrow {
  color: #d7c38d;
  font-size: 9px;
}
.hub-brief h2 {
  color: white;
  font-size: 31px;
  line-height: 1.4;
}
.hub-brief dl {
  display: grid;
  gap: 12px;
  border-block: 1px solid #395461;
  padding: 18px 0;
  margin: 22px 0;
}
.hub-brief dl > div {
  display: flex;
  gap: 18px;
  align-items: center;
}
.hub-brief dt {
  font-size: 29px;
  color: #ddc88f;
  font-weight: 600;
  line-height: 1.2;
  min-width: 44px;
}
.hub-brief dd {
  font-size: 11px;
  margin: 0;
}
.hub-brief > p:last-child {
  font-size: 10px;
  line-height: 1.9;
  margin: 0;
}
.chapter-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.chapter-nav a {
  font-size: 11px;
  font-weight: 700;
  padding: 17px 10px 17px 0;
  color: var(--navy);
  text-decoration: none;
}
.question-finder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  padding-block: 50px;
  border-bottom: 1px solid var(--line);
}
.question-finder > div > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.9;
  max-width: 450px;
  color: var(--muted);
}
.recommendation {
  background: var(--light);
  padding: 17px 20px;
  margin-top: 17px;
  color: #24584f;
  font-size: 12px;
}
.recommendation strong {
  display: block;
  color: #124f42;
  font-size: 14px;
}
.recommendation p {
  font-size: 12px;
  line-height: 1.9;
  margin: 8px 0;
}
.recommendation a {
  display: block;
  font-size: 11px;
  font-weight: 650;
  margin: 8px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: flex-end;
  margin-bottom: 25px;
}
.section-heading > p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 450px;
  margin: 0;
}
.learning-routes {
  padding-block: 50px;
}
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.route-grid article {
  border-top: 3px solid var(--teal);
  background: white;
  padding: 24px;
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.route-grid article > span {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--teal);
  font-weight: 750;
}
.route-grid h3 {
  font:
    400 26px/1.3 Georgia,
    serif;
  letter-spacing: -0.02em;
  margin: 16px 0;
}
.route-grid ol {
  padding-left: 19px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.route-grid li {
  padding: 5px 0;
}
.route-grid a {
  color: var(--navy);
  text-decoration: none;
}
.route-grid a:hover {
  text-decoration: underline;
}
.playbook-preview {
  padding-block: 15px 60px;
}
.economics-band {
  background: #eaf0f2;
  border-block: 1px solid var(--line);
  padding: 50px 0;
}
.economics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.economic-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.economic-fields label {
  font-size: 11px;
  min-height: 40px;
}
.economic-fields input {
  width: 100%;
  border: 1px solid #b6c6d0;
  background: white;
  color: var(--navy);
  padding: 10px 12px;
  font-size: 17px;
  font-weight: 600;
}
.economics-grid form > .quiet-button {
  margin-top: 20px;
}
.economic-result {
  background: white;
  border-top: 3px solid var(--teal);
  padding: 27px;
}
.economic-result .net-value {
  display: block;
  font-size: 42px;
  line-height: 1.3;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.economic-result dl {
  font-size: 11px;
  margin: 20px 0;
}
.economic-result dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.economic-result dt {
  color: var(--muted);
}
.economic-result dd {
  color: var(--navy);
  font-weight: 700;
  text-align: right;
  margin: 0;
}
.economic-result p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.economic-result .decision p {
  color: #24584f;
  font-size: 11px !important;
}
.economics-note {
  max-width: 900px;
  margin-top: 22px;
}
.pilot-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 70px;
  padding-block: 55px;
}
.pilot-layout > div > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.pilot-layout select {
  margin-bottom: 18px;
}
.pilot-layout > div > .button {
  width: 100%;
  justify-content: space-between;
}
.pilot-output {
  background: white;
  border: 1px solid var(--line);
  padding: 28px;
}
.pilot-output h3 {
  font:
    400 29px/1.3 Georgia,
    serif;
  margin: 0 0 22px;
}
.pilot-output .plan-step {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.plan-step small {
  font-size: 9px;
  color: var(--teal);
  letter-spacing: 0.05em;
}
.plan-step h4 {
  font-size: 13px;
  color: var(--navy);
  margin: 7px 0;
}
.plan-step p {
  font-size: 12px !important;
  line-height: 1.9 !important;
  color: var(--muted);
  margin: 0;
}
.closing-callout {
  padding-block: 20px 60px;
}
.closing-callout > p:not(.eyebrow) {
  max-width: 730px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}
@media (max-width: 1100px) {
  .catalog-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hub-hero {
    gap: 35px;
  }
  .hub-hero h1 {
    font-size: 53px;
  }
  .lesson-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 30px;
  }
  .explorer-layout {
    grid-template-columns: 1fr;
  }
  .explorer-fields {
    grid-template-columns: 1fr 1fr;
  }
  .explorer-field:has(textarea) {
    grid-column: 1/-1;
  }
  .explorer form .button {
    max-width: 260px;
  }
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .question-finder {
    gap: 40px;
  }
  .section-heading {
    gap: 35px;
  }
  .route-grid h3 {
    font-size: 23px;
  }
  .download-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pilot-layout {
    gap: 35px;
  }
}
@media (max-width: 850px) {
  .academy-nav {
    display: none;
  }
  .compact-nav {
    display: block;
  }
  .lesson-layout {
    grid-template-columns: 1fr;
  }
  .lesson-aside {
    position: static;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--line);
  }
  .lesson-aside nav {
    display: flex;
    flex-wrap: wrap;
    border: 0;
    gap: 3px 14px;
  }
  .lesson-aside nav a {
    padding: 4px 0;
    font-size: 10px;
  }
  .lesson-aside .eyebrow {
    margin-bottom: 8px;
  }
  .aside-download {
    margin-top: 13px;
  }
  .hub-hero {
    grid-template-columns: 1fr 1fr;
  }
  .hub-hero h1 {
    font-size: 46px;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    max-width: 700px;
    margin-top: 16px;
  }
  .hub-brief {
    padding: 24px;
  }
  .hub-brief h2 {
    font-size: 27px;
  }
  .hero-intro {
    font-size: 15px;
  }
  .route-grid {
    grid-template-columns: 1fr;
  }
  .route-grid article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 25px;
  }
  .route-grid article > span {
    grid-column: 1/-1;
  }
  .route-grid h3 {
    font-size: 27px;
  }
  .economics-grid {
    gap: 25px;
  }
  .pilot-layout {
    grid-template-columns: 1fr;
  }
  .pilot-layout > div:first-child {
    max-width: 650px;
  }
}
@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .academy-header {
    min-height: 79px;
    padding: 17px 18px;
    gap: 20px;
  }
  .wordmark strong {
    font-size: 16px;
  }
  .wordmark span {
    font-size: 8px;
  }
  .compact-nav summary {
    font-size: 11px;
  }
  h1 {
    font-size: 41px;
  }
  h2 {
    font-size: 29px;
  }
  .library-hero {
    padding: 40px 0 22px;
  }
  .library-hero > p:not(.eyebrow),
  .hero-intro {
    font-size: 15px;
  }
  .hero-links {
    gap: 19px;
    margin-top: 22px;
  }
  .button {
    font-size: 11px;
    padding: 12px 15px;
  }
  .catalog-controls {
    flex-wrap: wrap;
    gap: 17px;
  }
  .catalog-controls .search-field {
    flex: 1 0 100%;
  }
  .catalog-controls > div {
    min-width: 120px;
  }
  .catalog-controls .quiet-button {
    min-width: 90px;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .catalog-card {
    padding: 23px;
    min-height: 220px;
  }
  .catalog-card h2 {
    font-size: 26px;
  }
  .card-meta {
    margin-bottom: 15px;
  }
  .breadcrumbs {
    padding-top: 20px;
    font-size: 9px;
    gap: 8px;
  }
  .lesson-layout {
    gap: 22px;
    padding-top: 8px;
  }
  .lesson-header h1 {
    font-size: 36px;
  }
  .lesson-intro {
    font-size: 15px;
  }
  .lesson p,
  .lesson li {
    font-size: 13px;
    line-height: 1.95;
  }
  .lesson > section > h2 {
    font-size: 27px;
  }
  .lesson > section {
    padding: 16px 0 22px;
  }
  .question-lead {
    font-size: 17px !important;
  }
  .formula {
    font-size: 16px;
    padding: 17px;
    line-height: 1.9;
  }
  th,
  td {
    padding: 9px 10px;
    font-size: 11px;
  }
  .example {
    padding: 19px;
  }
  .answer {
    padding: 14px;
  }
  .lesson-next {
    gap: 18px;
  }
  .lesson-next a {
    font-size: 11px;
  }
  .related-links a {
    font-size: 11px;
  }
  .explorer {
    padding: 17px;
  }
  .explorer-head {
    gap: 12px;
  }
  .explorer-head h3 {
    font-size: 15px;
  }
  .explorer-head span {
    white-space: normal;
    text-align: right;
    max-width: 80px;
    font-size: 8px;
  }
  .explorer-fields {
    gap: 16px;
  }
  .explorer-field label {
    font-size: 10px;
  }
  .explorer-field input {
    font-size: 13px;
    padding: 9px;
  }
  .explorer form .button {
    max-width: none;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .metric strong {
    font-size: 23px;
  }
  .metric span {
    font-size: 8px;
  }
  .explorer-footer {
    align-items: flex-start;
    gap: 15px;
  }
  .explorer-footer button {
    font-size: 9px;
    white-space: normal;
    min-width: 80px;
  }
  .tool-note {
    font-size: 10px !important;
  }
  .download-grid {
    grid-template-columns: 1fr;
    padding-bottom: 30px;
  }
  .download-grid article {
    padding: 23px;
  }
  .download-grid h2 {
    font-size: 27px;
  }
  .handbook-toc > div {
    columns: 1;
  }
  .handbook-chapter .chapter-title {
    font-size: 32px;
  }
  .handbook-chapter p,
  .handbook-chapter li {
    font-size: 13px;
  }
  .handbook-chapter {
    padding-top: 38px;
  }
  .handbook-chapter section h2 {
    font-size: 25px;
  }
  .academy-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }
  .academy-footer nav {
    gap: 15px;
  }
  .academy-footer a {
    font-size: 9px;
  }
  .hub-hero {
    grid-template-columns: 1fr;
    padding: 40px 0 30px;
    gap: 26px;
  }
  .hub-hero h1 {
    font-size: 45px;
  }
  .hub-brief h2 {
    font-size: 29px;
  }
  .hub-brief dl {
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
  }
  .hub-brief dl > div {
    display: block;
  }
  .hub-brief dd {
    font-size: 9px;
    line-height: 1.6;
    margin-top: 7px;
  }
  .hub-brief dt {
    font-size: 31px;
  }
  .chapter-nav {
    grid-template-columns: 1fr 1fr;
  }
  .chapter-nav a {
    font-size: 10px;
    padding: 13px 12px 13px 0;
  }
  .question-finder {
    grid-template-columns: 1fr;
    padding-block: 33px;
    gap: 20px;
  }
  .question-finder h2 br {
    display: none;
  }
  .learning-routes {
    padding-block: 35px;
  }
  .route-grid article {
    display: block;
  }
  .route-grid h3 {
    font-size: 27px;
  }
  .route-grid ol {
    margin-bottom: 0;
  }
  .playbook-preview {
    padding-bottom: 35px;
  }
  .economics-band {
    padding: 35px 0;
  }
  .economics-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .economic-fields {
    gap: 17px;
  }
  .economic-fields label {
    font-size: 10px;
    min-height: 47px;
  }
  .economic-fields input {
    font-size: 15px;
    padding: 9px;
  }
  .economic-result {
    padding: 22px;
  }
  .economic-result .net-value {
    font-size: 37px;
  }
  .pilot-layout {
    padding-block: 36px;
    gap: 25px;
  }
  .pilot-output {
    padding: 22px;
  }
  .closing-callout {
    padding-bottom: 40px;
  }
  .closing-callout h2 {
    font-size: 32px;
  }
  .reading-note {
    padding-bottom: 40px;
  }
  .reading-note p {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  .academy-header,
  .academy-footer,
  .skip,
  .lesson-aside,
  .breadcrumbs,
  .lesson-next,
  .catalog-controls,
  .explorer,
  .hero-links,
  .prerequisites,
  .button,
  .compact-nav,
  .chapter-nav,
  .question-finder,
  .economics-band,
  .pilot-layout,
  .card-bottom {
    display: none !important;
  }
  .wrap {
    width: 100%;
    max-width: none;
  }
  .lesson-layout {
    display: block;
    padding: 0;
  }
  .lesson {
    max-width: none;
  }
  .lesson-header h1 {
    font-size: 30px;
  }
  .lesson > section,
  .handbook-chapter {
    break-inside: auto;
  }
  .handbook-chapter {
    break-before: page;
    border: 0;
    padding-top: 0;
  }
  .formula,
  .answer,
  .example,
  table,
  .decision {
    break-inside: avoid;
  }
  details.code-details > *,
  details.handbook-toc > * {
    display: block !important;
  }
  details.code-details {
    content-visibility: visible;
  }
  pre {
    font-size: 9px;
    color: black;
    background: #f4f4f4;
    padding: 12px;
  }
  .lesson p,
  .lesson li,
  .handbook-chapter p,
  .handbook-chapter li {
    font-size: 11px;
    line-height: 1.7;
  }
  .sources a {
    font-size: 10px;
  }
  .library-hero {
    padding: 0 0 20px;
  }
  .handbook-toc > div {
    columns: 2;
  }
  .catalog-grid {
    grid-template-columns: 1fr 1fr;
  }
  .catalog-card {
    break-inside: avoid;
  }
  h2 {
    font-size: 24px;
  }
  .formula {
    background: #f0f3f5;
    color: black;
    font-size: 14px;
  }
}

#explorer-form > .quiet-button {
  margin-left: 12px;
}

.explorer-footer button:disabled,
#pilot-download:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.explorer-results[data-state="stale"] {
  min-height: 130px;
}
.pilot-window {
  display: block;
  margin: 18px 0;
}
.pilot-window input {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: white;
}
.pilot-window small {
  display: block;
  color: var(--muted);
}
