@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("assets/fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("assets/fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #17324d;
  --ink-deep: #10283e;
  --brand-panel: #17324d;
  --brand-panel-text: #ffffff;
  --brand-panel-muted: #e2eaf0;
  --bridge-surface: #167657;
  --body: #263c4c;
  --muted: #526574;
  --accent: #167657;
  --accent-strong: #0d6248;
  --accent-soft: #e2f0e9;
  --blue-soft: #eaf0f4;
  --canvas: #f5f7f8;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --line: #d5dfe4;
  --line-strong: #a9bbc5;
  --danger: #a22e38;
  --danger-soft: #fae9e9;
  --warning: #725217;
  --warning-soft: #f5efdc;
  --shadow: 0 16px 44px rgb(23 50 77 / 9%);
  --shadow-soft: 0 8px 24px rgb(23 50 77 / 7%);
  --radius: 12px;
  --radius-control: 8px;
  --content-width: 1200px;
  --page-gutter: clamp(20px, 5vw, 72px);
  --focus: #0b7657;
  font-family: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  accent-color: var(--accent);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

body,
button,
input,
select {
  font-family: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
}

button,
input,
select {
  font-size: inherit;
}

button,
a,
summary,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

button {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--brand-panel-text);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--blue-soft);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--blue-soft);
  border-radius: 10px;
  background: var(--line-strong);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.section-shell {
  width: min(var(--content-width), calc(100% - var(--page-gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--brand-panel-text);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgb(213 223 228 / 82%);
  background: rgb(245 247 248 / 96%);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  width: min(1380px, calc(100% - var(--page-gutter) * 2));
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 14px;
  font-weight: 750;
}

.brand-copy > span {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  color: var(--body);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.theme-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--blue-soft);
}

.theme-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.theme-icon-dark {
  display: none;
}

:root[data-theme="dark"] .theme-icon-light {
  display: none;
}

:root[data-theme="dark"] .theme-icon-dark {
  display: block;
}

.nav-link:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.nav-link:active,
.button:active {
  transform: translateY(1px);
}

.nav-link-strong {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.nav-link-strong:hover,
.nav-link-strong.is-current {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #ffffff;
}

.nav-link.is-current:not(.nav-link-strong) {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  min-height: 550px;
  align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(410px, 0.98fr);
  gap: clamp(36px, 6vw, 88px);
  padding-block: 66px 76px;
}

.hero-copy {
  max-width: 620px;
  animation: settle-in 620ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hero-kicker,
.section-index {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.045em;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 740;
  text-wrap: balance;
}

.hero h1 {
  max-width: none;
  margin-bottom: 19px;
  font-size: clamp(42px, 5vw, 68px);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.hero-lede {
  max-width: 52ch;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.button-light {
  border-color: rgb(255 255 255 / 45%);
  background: #ffffff;
  color: var(--ink);
}

.button-light:hover {
  border-color: #ffffff;
  background: #eaf0f4;
  color: var(--ink);
}

.text-link,
.footer-link,
.inline-project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 740;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.text-link:hover,
.footer-link:hover,
.inline-project-link:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.link-arrow {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  transform: rotate(45deg);
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.link-arrow-down {
  transform: rotate(135deg);
}

.link-arrow-up {
  transform: rotate(-45deg);
}

.route-visual {
  position: relative;
  overflow: hidden;
  padding: 22px 24px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 78%), rgb(234 240 244 / 78%)),
    var(--surface);
  box-shadow: var(--shadow);
  animation: settle-in 720ms 90ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.route-topline,
.route-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.route-topline {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.route-topline span:first-child {
  color: var(--ink);
  font-size: 13px;
}

.route-stages {
  position: relative;
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 13px 0;
  list-style: none;
}

.route-stages::before {
  position: absolute;
  top: 40px;
  bottom: 42px;
  left: 19px;
  width: 2px;
  background: var(--line-strong);
  content: "";
}

.route-stage {
  position: relative;
  display: grid;
  min-height: 104px;
  align-items: start;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 15px;
  padding: 13px 8px 13px 0;
}

.route-stage:nth-child(2) {
  margin-left: 22px;
}

.route-stage:nth-child(3) {
  margin-left: 44px;
}

.route-node {
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.route-stage h2 {
  margin: 0 0 2px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.route-stage p {
  max-width: 38ch;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.route-stage a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.route-stage a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.route-foot {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.route-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.route-legend i {
  width: 15px;
  height: 2px;
  background: var(--accent);
}

.objective-band {
  background: var(--brand-panel);
  color: #ffffff;
}

.objective-inner {
  display: grid;
  align-items: start;
  grid-template-columns: 0.8fr 1.2fr;
  column-gap: clamp(30px, 7vw, 100px);
  padding-block: 55px 58px;
}

.objective-inner h2 {
  grid-column: 1;
  max-width: 14ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.objective-inner > p:last-child {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  max-width: 68ch;
  margin: 0;
  color: var(--brand-panel-muted);
  font-size: 17px;
  line-height: 1.65;
}

.curriculum-section {
  padding-block: 94px 104px;
}

.section-heading {
  display: grid;
  gap: 13px;
  margin-bottom: 37px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 52px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.section-intro {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.curriculum-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(210px, 0.36fr) minmax(0, 1fr);
  gap: clamp(35px, 7vw, 100px);
}

.curriculum-rail {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 7px;
  padding-top: 9px;
}

.rail-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.rail-link {
  display: grid;
  min-height: 62px;
  align-items: center;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  color: var(--body);
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.rail-link:hover,
.rail-link.is-current {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.rail-link.is-current {
  box-shadow: var(--shadow-soft);
}

.rail-number,
.group-marker {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.rail-link.is-current .rail-number,
.group-heading .group-marker {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.rail-link strong,
.rail-link small {
  display: block;
}

.rail-link strong {
  font-size: 13px;
}

.rail-link small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.rail-note {
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr);
  gap: 12px;
  margin-top: 30px;
  padding: 4px 0;
}

.rail-note-line {
  border-radius: 3px;
  background: var(--accent);
}

.rail-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.module-groups {
  display: grid;
  gap: 48px;
}

.module-group {
  scroll-margin-top: 100px;
}

.group-heading {
  display: grid;
  align-items: center;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 13px;
  margin-bottom: 17px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
}

.group-heading h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.group-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.group-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.module-list {
  display: grid;
}

.module-stop {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 106px;
}

.module-stop:first-child {
  border-top: 1px solid var(--line);
}

.module-stop summary {
  display: grid;
  min-height: 80px;
  align-items: center;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  gap: 16px;
  padding: 13px 3px;
  cursor: pointer;
  list-style: none;
}

.module-stop summary::-webkit-details-marker,
.tip-item summary::-webkit-details-marker {
  display: none;
}

.module-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.module-icon img {
  display: block;
  width: 23px;
  height: 23px;
}

.module-stop[open] .module-icon {
  transform: translateY(-1px);
  border-color: #a8cfbd;
  background: var(--accent-soft);
}

.module-summary-copy {
  display: grid;
  gap: 4px;
}

.module-name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.module-type {
  color: var(--muted);
  font-size: 12px;
}

.module-expand {
  position: relative;
  width: 20px;
  height: 20px;
  justify-self: end;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.module-expand::before,
.module-expand::after {
  position: absolute;
  top: 8px;
  left: 5px;
  width: 8px;
  height: 1.5px;
  background: var(--ink);
  content: "";
  transition: transform 160ms ease;
}

.module-expand::after {
  transform: rotate(90deg);
}

.module-stop[open] .module-expand::after {
  transform: rotate(0);
}

.module-detail {
  padding: 0 38px 24px 59px;
  animation: detail-open 220ms ease both;
}

.module-detail > p {
  max-width: 70ch;
  margin: 0 0 20px;
  color: var(--body);
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-columns h4 {
  margin: 0 0 5px;
  color: var(--accent-strong);
  font-size: 13px;
}

.detail-columns p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.inline-project-link {
  margin-top: 19px;
  font-size: 13px;
}

.module-stop-featured {
  border-color: #b8d9c9;
  border-radius: var(--radius-control);
  background: rgb(226 240 233 / 42%);
}

.module-stop-featured summary {
  padding-inline: 12px;
}

.module-stop-featured .module-detail {
  padding-inline: 68px 38px;
}

.project-bridge {
  overflow: hidden;
  background: var(--bridge-surface);
  color: #ffffff;
}

.project-bridge-inner {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
  gap: clamp(42px, 9vw, 130px);
  padding-block: 76px;
}

.bridge-copy h2 {
  max-width: 13ch;
  margin: 0 0 15px;
  color: #ffffff;
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.bridge-copy > p:not(.section-index) {
  max-width: 56ch;
  margin-bottom: 25px;
  color: #edf8f2;
}

.bridge-steps {
  display: grid;
  gap: 0;
}

.bridge-steps > div {
  display: grid;
  align-items: baseline;
  grid-template-columns: 34px 1fr;
  column-gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid rgb(255 255 255 / 32%);
}

.bridge-steps > div:first-child {
  border-top: 1px solid rgb(255 255 255 / 32%);
}

.bridge-steps span {
  grid-row: 1 / span 2;
  color: #d2ede0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.bridge-steps strong {
  color: #ffffff;
  font-size: 17px;
}

.bridge-steps p {
  margin: 2px 0 0;
  color: #e3f3eb;
  font-size: 13px;
}

.site-footer {
  background: var(--ink-deep);
  color: #e2eaf0;
}

.footer-inner {
  display: grid;
  min-height: 116px;
  align-items: center;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 28px;
  padding-block: 22px;
}

.brand-footer {
  color: #ffffff;
}

.brand-footer:hover {
  color: #ffffff;
}

.brand-footer .brand-copy > span {
  color: #ced8df;
}

.footer-inner > p {
  max-width: 38ch;
  margin: 0;
  color: #ced8df;
  font-size: 13px;
}

.footer-inner > p strong {
  color: #ffffff;
}

.footer-link {
  color: #ffffff;
  white-space: nowrap;
}

.footer-link:hover {
  color: #b5e3cc;
}

/* Mi Finanzas */
.finance-hero {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: clamp(38px, 9vw, 130px);
  padding-block: 76px 65px;
}

.finance-hero-copy {
  max-width: 730px;
}

.finance-hero h1 {
  max-width: 17ch;
  margin: 0 0 20px;
  font-size: clamp(40px, 5.4vw, 66px);
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.finance-hero-copy > p:not(.section-index) {
  max-width: 58ch;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 17px;
}

.finance-hero-note {
  align-self: center;
  padding: 8px 0 8px 23px;
}

.note-rule {
  display: block;
  width: 38px;
  height: 3px;
  margin-bottom: 18px;
  background: var(--accent);
}

.finance-hero-note p {
  max-width: 29ch;
  margin-bottom: 15px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.4;
}

.note-caption {
  color: var(--muted);
  font-size: 12px;
}

.finance-jump {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.finance-jump a {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.finance-jump a:first-child {
  border-left: 1px solid var(--line);
}

.finance-jump a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.finance-jump span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.finance-section {
  padding-block: 88px 96px;
}

.budget-section {
  background: var(--canvas);
}

.finance-heading {
  margin-bottom: 35px;
}

.finance-heading h2 {
  max-width: 16ch;
  font-size: clamp(32px, 4vw, 48px);
}

.currency-row {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 12px;
  margin: -6px 0 24px;
}

.currency-row label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

select {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
}

select {
  padding: 9px 36px 9px 12px;
  cursor: pointer;
}

input[type="number"] {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  caret-color: var(--accent);
  font-variant-numeric: tabular-nums;
}

input::placeholder {
  color: #596c78;
  opacity: 1;
}

select:hover {
  border-color: var(--ink);
}

select:focus {
  border-color: var(--focus);
  outline: 3px solid rgb(11 118 87 / 18%);
  outline-offset: 1px;
}

.budget-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(38px, 8vw, 110px);
}

.budget-form {
  display: grid;
  gap: 29px;
}

.money-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.money-group legend {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.form-step {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid #b8d9c9;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
}

.field-intro {
  margin: 4px 0 18px 40px;
  color: var(--muted);
  font-size: 13px;
}

.field-row {
  display: grid;
  gap: 7px;
}

.income-group > .field-row {
  max-width: 430px;
}

.field-row > label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.money-input-wrap {
  display: flex;
  min-height: 46px;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 160ms ease, background-color 160ms ease, outline-color 160ms ease;
}

.money-input-wrap:hover {
  border-color: var(--ink);
}

.money-input-wrap:focus-within {
  border-color: var(--focus);
  outline: 3px solid rgb(11 118 87 / 18%);
  outline-offset: 1px;
}

.money-input-wrap.has-error {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.currency-symbol {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  pointer-events: none;
}

.money-input-wrap input[type="number"] {
  width: 0;
  min-height: 44px;
  flex: 1 1 auto;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.money-input-wrap input[type="number"]:focus {
  border-color: transparent;
  outline: none;
  outline-offset: 0;
}

.money-input-wrap input[type="number"][aria-invalid="true"] {
  border-color: transparent;
  background: transparent;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
}

.field-error {
  min-height: 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 650;
}

.field-error:not(:empty) {
  min-height: 1.25em;
}

.expense-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.8fr);
  gap: 17px 24px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}

.expense-category h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--accent-strong);
  font-size: 14px;
}

.expense-category .field-row {
  align-content: start;
}

.budget-results {
  position: sticky;
  top: 101px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
}

.results-heading {
  margin-bottom: 20px;
}

.results-heading h3 {
  margin: 0;
  font-size: 21px;
}

.budget-totals {
  display: grid;
  gap: 0;
  margin: 0 0 17px;
}

.budget-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.budget-totals dt {
  color: var(--muted);
  font-size: 13px;
}

.budget-totals dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.available-panel {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--blue-soft);
  transition: background-color 220ms ease, border-color 220ms ease;
}

.available-panel > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.available-panel output {
  color: var(--ink);
  font-size: clamp(29px, 3vw, 38px);
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.available-panel p {
  margin: 0;
  color: var(--body);
  font-size: 12px;
}

.available-panel[data-status="positive"] {
  border-color: #acd1bf;
  background: var(--accent-soft);
}

.available-panel[data-status="positive"] output {
  color: var(--accent-strong);
}

.available-panel[data-status="negative"] {
  border-color: #e6b9bc;
  background: var(--danger-soft);
}

.available-panel[data-status="negative"] output {
  color: var(--danger);
}

.form-notice {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.savings-section {
  background: var(--blue-soft);
}

.savings-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(36px, 7vw, 95px);
}

.savings-form {
  display: grid;
  gap: 20px;
  padding-top: 5px;
}

.savings-form .field-row {
  max-width: 390px;
}

.savings-progress-panel {
  min-width: 0;
  padding: clamp(22px, 4vw, 37px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.savings-amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 29px;
}

.savings-amounts > div {
  display: grid;
  gap: 6px;
}

.savings-amounts span,
.savings-summary span {
  color: var(--muted);
  font-size: 12px;
}

.savings-amounts strong {
  color: var(--ink);
  font-size: clamp(19px, 2.5vw, 28px);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.progress-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
}

.progress-label-row label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.progress-label-row output {
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

progress {
  display: block;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: #dce5e9;
  appearance: none;
}

progress::-webkit-progress-bar {
  border-radius: 2px;
  background: #dce5e9;
}

progress::-webkit-progress-value {
  border-radius: 2px;
  background: var(--accent);
  transition: width 380ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

progress::-moz-progress-bar {
  border-radius: 2px;
  background: var(--accent);
  transition: width 380ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.savings-message {
  min-height: 1.6em;
  margin: 16px 0 2px;
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 700;
}

.progress-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.consumption-section {
  background: var(--canvas);
}

.tips-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(210px, 0.45fr) minmax(0, 1.55fr);
  gap: clamp(38px, 9vw, 130px);
}

.tips-intro {
  position: sticky;
  top: 108px;
}

.tips-intro p {
  max-width: 33ch;
  color: var(--muted);
  font-size: 16px;
}

.tips-intro .text-link {
  margin-top: 8px;
}

.tip-list {
  border-top: 1px solid var(--line-strong);
}

.tip-item {
  border-bottom: 1px solid var(--line);
}

.tip-item summary {
  display: grid;
  min-height: 67px;
  align-items: center;
  grid-template-columns: 33px minmax(0, 1fr) 24px;
  gap: 13px;
  cursor: pointer;
  list-style: none;
}

.tip-number {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tip-item summary > span:nth-child(2) {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.tip-plus {
  position: relative;
  width: 20px;
  height: 20px;
  justify-self: end;
}

.tip-plus::before,
.tip-plus::after {
  position: absolute;
  top: 9px;
  left: 3px;
  width: 14px;
  height: 1.5px;
  background: var(--accent-strong);
  content: "";
  transition: transform 160ms ease;
}

.tip-plus::after {
  transform: rotate(90deg);
}

.tip-item[open] .tip-plus::after {
  transform: rotate(0);
}

.tip-item > p {
  max-width: 68ch;
  margin: -1px 38px 20px 46px;
  color: var(--muted);
  font-size: 14px;
}

.summary-section {
  background: var(--blue-soft);
}

.summary-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(35px, 7vw, 90px);
}

.summary-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.summary-table caption {
  padding: 17px 18px 13px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-align: left;
}

.summary-table th,
.summary-table td {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
}

.summary-table thead th {
  background: var(--canvas);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.summary-table tbody th {
  color: var(--body);
  font-weight: 650;
}

.summary-table td {
  color: var(--muted);
}

.summary-table td:last-child {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.summary-total th,
.summary-total td {
  background: var(--accent-soft);
  color: var(--accent-strong) !important;
  font-weight: 800 !important;
}

.summary-aside h3 {
  margin: 2px 0 7px;
  font-size: 21px;
}

.summary-aside-intro {
  max-width: 40ch;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.distribution-list {
  display: grid;
  gap: 13px;
  min-height: 74px;
}

.distribution-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  align-items: baseline;
}

.distribution-row span {
  color: var(--body);
  font-size: 12px;
}

.distribution-row strong {
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.distribution-row meter {
  width: 100%;
  height: 8px;
  grid-column: 1 / -1;
  appearance: none;
}

.distribution-row meter::-webkit-meter-bar {
  border: 0;
  border-radius: 2px;
  background: #d0dce1;
}

.distribution-row meter::-webkit-meter-optimum-value {
  border-radius: 2px;
  background: var(--accent);
}

.distribution-row meter::-moz-meter-bar {
  border-radius: 2px;
  background: var(--accent);
}

.distribution-empty {
  color: var(--muted);
  font-size: 13px;
}

.savings-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-block: 15px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.savings-summary strong {
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.privacy-mark {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 5px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.finance-close {
  background: var(--brand-panel);
  color: #ffffff;
}

.close-inner {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-block: 47px;
}

.close-inner h2 {
  max-width: 18ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 3.5vw, 43px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

@keyframes settle-in {
  from {
    transform: translateY(10px);
    opacity: 0.01;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes detail-open {
  from {
    transform: translateY(-3px);
    opacity: 0.4;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  :root {
    --page-gutter: clamp(20px, 4vw, 42px);
  }

  .hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    gap: 30px;
    padding-block: 58px 65px;
  }

  .hero h1 {
    font-size: clamp(40px, 5vw, 55px);
  }

  .route-visual {
    padding-inline: 19px;
  }

  .budget-layout {
    grid-template-columns: minmax(0, 1fr) minmax(275px, 0.75fr);
    gap: 38px;
  }

  .expense-category {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 82px;
  }

  .header-inner {
    min-height: 66px;
  }

  .menu-toggle {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }

  .menu-toggle-lines,
  .menu-toggle-lines::before,
  .menu-toggle-lines::after {
    display: block;
    width: 17px;
    height: 1.5px;
    background: currentColor;
    content: "";
  }

  .menu-toggle-lines {
    position: relative;
  }

  .menu-toggle-lines::before,
  .menu-toggle-lines::after {
    position: absolute;
    left: 0;
  }

  .menu-toggle-lines::before {
    top: -5px;
  }

  .menu-toggle-lines::after {
    top: 5px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: var(--page-gutter);
    left: var(--page-gutter);
    display: none;
    align-items: stretch;
    gap: 6px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: grid;
  }

  .nav-link {
    justify-content: flex-start;
    padding-inline: 13px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
    padding-block: 48px 52px;
  }

  .hero h1 {
    max-width: 13ch;
    font-size: clamp(42px, 9vw, 60px);
  }

  .route-visual {
    width: 100%;
    max-width: 580px;
    justify-self: center;
  }

  .objective-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-block: 40px 44px;
  }

  .objective-inner h2,
  .objective-inner > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .objective-inner h2 {
    max-width: 19ch;
    margin-bottom: 4px;
  }

  .objective-inner > p:last-child {
    max-width: 65ch;
    font-size: 16px;
  }

  .curriculum-section {
    padding-block: 68px 75px;
  }

  .section-heading {
    display: grid;
    gap: 13px;
    margin-bottom: 32px;
  }

  .section-intro {
    max-width: 58ch;
  }

  .curriculum-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 27px;
  }

  .curriculum-rail {
    position: relative;
    top: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .rail-title {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .rail-link {
    align-content: start;
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 5px;
  }

  .rail-number {
    width: 26px;
    height: 26px;
  }

  .rail-link strong {
    font-size: 11px;
    line-height: 1.25;
  }

  .rail-link small {
    font-size: 10px;
    line-height: 1.25;
  }

  .rail-note {
    display: none;
  }

  .module-groups {
    gap: 36px;
  }

  .project-bridge-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    padding-block: 56px;
  }

  .bridge-copy h2 {
    max-width: 17ch;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 20px;
    padding-block: 24px;
  }

  .footer-inner > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .finance-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 29px;
    padding-block: 54px 43px;
  }

  .finance-hero h1 {
    max-width: 17ch;
    font-size: clamp(40px, 8.5vw, 58px);
  }

  .finance-hero-note {
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr);
    align-items: start;
    gap: 0 14px;
    padding: 4px 0;
  }

  .note-rule {
    width: 4px;
    height: 100%;
    min-height: 50px;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .finance-hero-note p {
    max-width: 55ch;
    margin-bottom: 6px;
    font-size: 17px;
  }

  .finance-jump {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-jump a {
    min-height: 58px;
    border-bottom: 1px solid var(--line);
    padding-inline: 12px;
    font-size: 13px;
  }

  .finance-jump a:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .finance-jump a:nth-child(2n + 1) {
    border-left: 1px solid var(--line);
  }

  .finance-jump a:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .finance-section {
    padding-block: 65px 72px;
  }

  .budget-layout,
  .savings-layout,
  .tips-layout,
  .summary-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .currency-row {
    justify-content: flex-start;
    margin-top: -11px;
  }

  .budget-results,
  .tips-intro {
    position: relative;
    top: auto;
  }

  .budget-results {
    padding: 21px;
  }

  .expense-category {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .savings-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .tips-intro p {
    max-width: 60ch;
  }

  .tips-intro .text-link {
    margin-top: 0;
  }

  .summary-aside {
    max-width: 620px;
  }

  .close-inner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
    padding-block: 42px;
  }
}

@media (max-width: 480px) {
  :root {
    --page-gutter: 19px;
  }

  .brand-copy strong {
    font-size: 12px;
  }

  .brand-copy > span {
    font-size: 11px;
  }

  .hero {
    padding-block: 40px 45px;
  }

  .hero h1 {
    font-size: clamp(39px, 11.2vw, 51px);
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .route-visual {
    padding: 17px 15px 14px;
  }

  .route-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .route-stage {
    min-height: 110px;
    gap: 10px;
  }

  .route-stage:nth-child(2) {
    margin-left: 12px;
  }

  .route-stage:nth-child(3) {
    margin-left: 24px;
  }

  .route-stages::before {
    left: 19px;
  }

  .route-stage h2 {
    font-size: 16px;
  }

  .route-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .objective-inner h2 {
    font-size: 29px;
  }

  .section-heading h2 {
    font-size: 35px;
  }

  .curriculum-rail {
    gap: 3px;
  }

  .rail-link {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .rail-link small {
    display: none;
  }

  .group-heading {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .group-heading h3 {
    font-size: 19px;
  }

  .group-heading p {
    font-size: 12px;
  }

  .module-stop summary {
    min-height: 76px;
    grid-template-columns: 36px minmax(0, 1fr) 21px;
    gap: 10px;
  }

  .module-icon {
    width: 36px;
    height: 36px;
  }

  .module-icon img {
    width: 21px;
    height: 21px;
  }

  .module-name {
    font-size: 14px;
  }

  .module-detail {
    padding: 0 9px 20px 46px;
  }

  .detail-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .module-stop-featured summary {
    padding-inline: 9px;
  }

  .module-stop-featured .module-detail {
    padding-inline: 55px 14px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .footer-inner > p,
  .footer-link {
    grid-column: 1;
    grid-row: auto;
  }

  .footer-link {
    justify-self: start;
  }

  .finance-hero h1 {
    font-size: clamp(38px, 10.6vw, 48px);
  }

  .finance-hero-copy > p:not(.section-index) {
    font-size: 16px;
  }

  .finance-jump a {
    gap: 8px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .finance-heading h2 {
    font-size: 34px;
  }

  .currency-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .currency-row select {
    width: 100%;
  }

  .expense-category {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .expense-category h3 {
    grid-column: 1;
  }

  .savings-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .savings-form .field-row {
    max-width: none;
  }

  .savings-progress-panel {
    padding: 20px 17px;
  }

  .savings-amounts {
    gap: 12px;
  }

  .savings-amounts strong {
    font-size: 19px;
  }

  .tip-item summary {
    grid-template-columns: 26px minmax(0, 1fr) 20px;
    gap: 9px;
  }

  .tip-item summary > span:nth-child(2) {
    font-size: 14px;
  }

  .tip-item > p {
    margin-left: 35px;
    margin-right: 20px;
    font-size: 13px;
  }

  .summary-table {
    min-width: 510px;
  }

  .close-inner h2 {
    font-size: 31px;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e4edf2;
  --ink-deep: #0d1d2b;
  --brand-panel: #0d1d2b;
  --brand-panel-text: #f1f6f8;
  --brand-panel-muted: #e2eaf0;
  --bridge-surface: #155c44;
  --body: #d2dde3;
  --muted: #b2c0c9;
  --accent: #55bd8f;
  --accent-strong: #72d1a4;
  --accent-soft: #193b31;
  --blue-soft: #1a2d3b;
  --canvas: #132432;
  --surface: #1a2d3b;
  --surface-raised: #1d3140;
  --line: #354b59;
  --line-strong: #58707e;
  --danger: #ff9da4;
  --danger-soft: #40282e;
  --warning: #e7cb81;
  --warning-soft: #3a3424;
  --shadow: 0 16px 44px rgb(0 0 0 / 24%);
  --shadow-soft: 0 8px 24px rgb(0 0 0 / 18%);
  --focus: #78d9ad;
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] .site-header {
  border-bottom-color: var(--line);
  background: rgb(19 36 50 / 96%);
}

:root[data-theme="dark"] .module-icon,
:root[data-theme="dark"] .route-node,
:root[data-theme="dark"] .rail-number,
:root[data-theme="dark"] .group-marker {
  background: var(--surface);
}

:root[data-theme="dark"] .module-icon img {
  filter: brightness(0) invert(1);
}

:root[data-theme="dark"] .button-primary,
:root[data-theme="dark"] .nav-link-strong {
  color: var(--ink-deep);
}

:root[data-theme="dark"] .button-primary:hover,
:root[data-theme="dark"] .nav-link-strong:hover,
:root[data-theme="dark"] .nav-link-strong.is-current {
  color: var(--ink-deep);
}

:root[data-theme="dark"] .route-visual {
  background: linear-gradient(135deg, var(--surface), var(--blue-soft));
}

:root[data-theme="dark"] .route-node {
  border-color: var(--accent);
}

:root[data-theme="dark"] .objective-inner > p:last-child,
:root[data-theme="dark"] .bridge-copy > p:not(.section-index),
:root[data-theme="dark"] .bridge-steps p {
  color: #e2eaf0;
}

:root[data-theme="dark"] .module-stop-featured {
  background: rgb(25 59 49 / 68%);
}

:root[data-theme="dark"] .button-light {
  background: #e4edf2;
  color: #17324d;
}

:root[data-theme="dark"] .button-light:hover {
  background: #ffffff;
  color: #10283e;
}

:root[data-theme="dark"] input::placeholder {
  color: #b2c0c9;
}

:root[data-theme="dark"] .site-nav {
  border-color: var(--line);
  background: var(--surface);
}

:root[data-theme="dark"] .summary-table thead th {
  background: var(--canvas);
}

:root[data-theme="dark"] .available-panel {
  background: var(--blue-soft);
}

:root[data-theme="dark"] .available-panel[data-status="positive"] {
  background: var(--accent-soft);
}

:root[data-theme="dark"] .available-panel[data-status="negative"] {
  background: var(--danger-soft);
}

:root[data-theme="dark"] .summary-total th,
:root[data-theme="dark"] .summary-total td {
  background: var(--accent-soft);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
