:root {
  --color-canvas: #f7f4ee;
  --color-panel: #f0ebe2;
  --color-mist: #dcebe7;
  --color-ink: #18232f;
  --color-muted: #64707d;
  --color-line: #ded6ca;
  --color-accent: #0f8f83;
  --color-accent-strong: #0b6f67;
  --color-ruby: #b7445c;
  --color-gold: #c8912d;
  --shadow-soft: 0 24px 80px rgba(24, 35, 47, 0.1);
  --site-header-height: 62px;
}

/* Wind-component lesson */
.wind-controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wind-controls .descent-field > span:first-child {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
}

.wind-controls .descent-field em {
  color: #74838e;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 500;
}

.wind-reference-field {
  grid-column: 1 / -1;
}

.wind-field-note {
  display: block;
  margin-top: 0.3rem;
  color: #60707c;
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.35;
}

.wind-profile {
  align-content: center;
  gap: 0.2rem;
}

.wind-profile figcaption {
  max-width: 35rem;
  color: #60707c;
  font-size: 0.68rem;
  line-height: 1.4;
  text-align: center;
}

.wind-runway {
  fill: #40464d;
  stroke: #6b747c;
  stroke-width: 2;
}

.wind-runway-centreline {
  stroke: #cbd1d5;
  stroke-dasharray: 15 12;
  stroke-width: 2.5;
}

.wind-runway-number {
  fill: white;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

.wind-north-indicator text {
  fill: #59636d;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.wind-north-indicator line,
.wind-north-indicator path {
  fill: none;
  stroke: #59636d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

#wind-arrow path {
  fill: #e0524d;
}

#wind-cross-arrow path {
  fill: #2f8fca;
}

#wind-along-arrow path {
  fill: #34a66f;
}

.wind-vector {
  filter: drop-shadow(0 0 1px rgb(255 255 255 / 90%));
  marker-end: url(#wind-arrow);
  stroke: #e0524d;
  stroke-width: 3.5;
}

.wind-component {
  filter: drop-shadow(0 0 1px rgb(255 255 255 / 90%));
  stroke-dasharray: 6 4;
  stroke-width: 3;
}

.wind-component--cross {
  marker-end: url(#wind-cross-arrow);
  stroke: #2f8fca;
}

.wind-component--along {
  marker-end: url(#wind-along-arrow);
  stroke: #34a66f;
}

.wind-angle-arc {
  fill: none;
  stroke: #2f8fca;
  stroke-width: 2.5;
}

.wind-vector-centre {
  fill: #59636d;
}

.wind-vector-label,
.wind-component-label,
.wind-angle-label {
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.wind-angle-label {
  fill: #236b98;
  paint-order: stroke fill;
  stroke: #fafcfd;
  stroke-linejoin: round;
  stroke-width: 5px;
}

.wind-legend-card rect {
  stroke: none;
}

.wind-legend-card text {
  fill: white;
  stroke: none;
}

.wind-legend-card--wind rect {
  fill: #b83b36;
}

.wind-legend-card--cross rect {
  fill: #236b98;
}

.wind-legend-card--along rect {
  fill: #26764f;
}

.wind-reference-result.is-below-reference {
  background: #edf7f0;
}

.wind-reference-result.is-below-reference strong,
.wind-reference-result.is-below-reference small {
  color: #245c35;
}

.wind-reference-result.is-above-reference {
  background: #fff0ed;
}

.wind-reference-result.is-above-reference strong,
.wind-reference-result.is-above-reference small {
  color: #873927;
}

.wind-estimates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wind-estimates > div {
  min-width: 0;
  border-right: 1px solid #b8c5ce;
  padding: 0.85rem 1rem;
}

.wind-estimates > div:last-child {
  border-right: 0;
}

.wind-estimates > div.is-active {
  background: #eaf2f7;
  box-shadow: inset 0 -3px #28688d;
}

.wind-estimates span,
.wind-estimates strong,
.wind-estimates small {
  display: block;
}

.wind-mental-current {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #b8c5ce;
  background: #fafcfd;
  padding: 0.65rem 1rem;
  color: #526573;
  font-size: 0.74rem;
}

.wind-mental-current strong {
  color: #173f5d;
}

.wind-mental-note {
  border-top: 1px solid #d4dde3;
  color: #60707c;
  padding: 0.5rem 1rem;
  font-size: 0.68rem;
}

.wind-estimates span {
  color: #60707c;
  font-size: 0.68rem;
  font-weight: 700;
}

.wind-estimates strong {
  margin-top: 0.12rem;
  color: #173f5d;
  font-size: 1.25rem;
  font-weight: 700;
}

.wind-estimates small {
  margin-top: 0.18rem;
  color: #526573;
  font-size: 0.68rem;
}

.wind-reference-note {
  width: min(100%, 76rem);
  margin: 0.65rem auto 0;
  color: #526573;
  font-size: 0.68rem;
  line-height: 1.45;
}

@media (max-width: 36rem) {
  .wind-controls {
    grid-template-columns: 1fr 1fr;
  }

  .wind-reference-field {
    grid-column: 1 / -1;
  }

  .wind-profile {
    padding-inline: 0.25rem;
  }

  .wind-vector-label,
  .wind-component-label,
  .wind-angle-label {
    font-size: 16px;
  }

  .wind-runway-number {
    font-size: 27px;
  }

  .wind-estimates {
    grid-template-columns: 1fr;
  }

  .wind-estimates > div {
    border-right: 0;
    border-bottom: 1px solid #b8c5ce;
  }

  .wind-estimates > div:last-child {
    border-bottom: 0;
  }

  .wind-mental-current {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }
}

@media print {
  .wind-reference-note {
    width: 100%;
  }
}

/* Aircraft forces lesson */
.forces-workspace {
  display: grid;
  grid-template-columns: minmax(17rem, 0.55fr) minmax(34rem, 1.45fr);
  border-bottom: 1px solid #b8c5ce;
}

.forces-controls {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  border-right: 1px solid #b8c5ce;
  padding: 1rem;
}

.forces-angle-control {
  display: grid;
  gap: 0.45rem;
  color: #364653;
  font-size: 0.74rem;
  font-weight: 650;
}

.forces-angle-control > span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.forces-angle-control output {
  color: #28688d;
  font-size: 0.9rem;
  font-weight: 700;
}

.forces-angle-control input {
  width: 100%;
  accent-color: #28688d;
}

.forces-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
}

.forces-presets button {
  min-height: 2.2rem;
  border: 1px solid #9eafba;
  border-radius: 0.2rem;
  cursor: pointer;
  background: white;
  color: #344957;
  padding: 0.35rem 0.45rem;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  font-weight: 650;
}

.forces-presets button span {
  margin-left: 0.18rem;
  color: #72818b;
  font-weight: 550;
}

.forces-presets button:hover,
.forces-presets button.is-active {
  border-color: #173f5d;
  background: #173f5d;
  color: white;
}

.forces-presets button:hover span,
.forces-presets button.is-active span {
  color: #dce8ef;
}

.forces-assumptions {
  border-top: 1px solid #d4dde3;
  padding-top: 0.75rem;
  color: #526573;
  font-size: 0.68rem;
  line-height: 1.45;
}

.forces-assumptions strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #173f5d;
  font-size: 0.72rem;
}

.forces-assumptions var {
  color: #173f5d;
  font-style: normal;
  font-weight: 700;
}

.forces-assumptions sub {
  font-size: 0.72em;
}

.forces-assumptions ul {
  margin: 0;
  padding-left: 1rem;
}

.forces-diagram {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 0.25rem;
  margin: 0;
  background: #fafcfd;
  padding: 0.6rem 0.9rem;
}

.forces-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.forces-diagram figcaption {
  color: #60707c;
  font-size: 0.68rem;
  line-height: 1.4;
  text-align: center;
}

#forces-arrow-lift path { fill: #2f6fa3; }
#forces-arrow-weight path { fill: #c9413a; }
#forces-arrow-thrust path { fill: #2f7d57; }
#forces-arrow-drag path { fill: #b46f22; }

[data-forces-flight-group] {
  transform-box: view-box;
  transition: transform 180ms ease;
}

.forces-horizon {
  stroke: #aebbc4;
  stroke-width: 2;
}

.forces-horizon-label,
.forces-flight-path-label,
.forces-angle-label {
  fill: #657681;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.forces-reference-circle {
  fill: none;
  stroke: #d4dee4;
  stroke-dasharray: 9 8;
  stroke-width: 2;
}

.forces-aircraft-image {
  filter: drop-shadow(0 2px 2px rgb(24 49 65 / 0.18));
}

.forces-aircraft-cg {
  fill: #f3c65d;
  stroke: white;
  stroke-width: 2;
}

.forces-vector {
  stroke-width: 4;
}

.forces-vector--lift { stroke: #2f6fa3; }
.forces-vector--weight { stroke: #c9413a; }
.forces-vector--thrust { stroke: #2f7d57; }
.forces-vector--drag { stroke: #b46f22; }

.forces-vector-label {
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  paint-order: stroke fill;
  stroke: #fafcfd;
  stroke-linejoin: round;
  stroke-width: 5px;
}

.forces-vector-label--lift { fill: #245b88; }
.forces-vector-label--weight { fill: #a7332e; }
.forces-vector-label--thrust { fill: #246645; }
.forces-vector-label--drag { fill: #945515; }

#forces-arrow-weight-component path {
  fill: #c9413a;
}

.forces-weight-components {
  transform-box: view-box;
  transition: transform 180ms ease;
}

.forces-weight-component {
  fill: none;
  stroke: #c9413a;
  stroke-dasharray: 5 4;
  stroke-width: 2.5;
}

.forces-weight-component--construction {
  stroke-width: 2;
}

.forces-aft-weight-component {
  fill: none;
  stroke: #c9413a;
  stroke-width: 3;
}

.forces-aft-component-label {
  fill: #a7332e;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  paint-order: stroke fill;
  stroke: #fafcfd;
  stroke-linejoin: round;
  stroke-width: 5px;
}

.forces-component-label {
  fill: #a7332e;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  paint-order: stroke fill;
  stroke: #fafcfd;
  stroke-linejoin: round;
  stroke-width: 5px;
}

.forces-angle-arc {
  fill: none;
  stroke: #77529a;
  stroke-width: 3;
}

.forces-angle-label {
  fill: #684489;
  font-size: 14px;
  paint-order: stroke fill;
  stroke: #fafcfd;
  stroke-linejoin: round;
  stroke-width: 5px;
  letter-spacing: 0;
}

.forces-diagram-formula-box {
  fill: rgb(255 255 255 / 0.94);
  stroke: #9fb2be;
  stroke-width: 1.5;
}

.forces-diagram-formula-heading,
.forces-diagram-formula,
.forces-diagram-formula-values {
  fill: #203744;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
}

.forces-diagram-formula-heading {
  fill: #5e727f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.forces-diagram-formula {
  font-size: 13px;
  font-weight: 700;
}

.forces-diagram-formula-values {
  fill: #526573;
  font-size: 11px;
  font-weight: 600;
}

.forces-formula-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.forces-formula-card {
  min-width: 0;
  border-right: 1px solid #b8c5ce;
  padding: 1rem;
}

.forces-formula-card:last-child {
  border-right: 0;
}

.forces-formula-card > span {
  color: #28688d;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.forces-formula-card h3 {
  margin: 0.2rem 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.forces-formula-card code {
  display: block;
  border-left: 3px solid #87a8bc;
  background: #f3f6f8;
  color: #233744;
  padding: 0.48rem 0.55rem;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
}

.forces-formula-card code + code {
  margin-top: 0.25rem;
}

.forces-formula-card p {
  margin-top: 0.65rem;
  border: 1px solid #c8d7df;
  background: #f8fbfc;
  color: #173f5d;
  padding: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.forces-aircraft-credit {
  margin: -0.35rem 0 0;
  color: #74828b;
  font-size: 0.62rem;
  line-height: 1.4;
  text-align: right;
}

.forces-aircraft-credit a {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

@media (max-width: 64rem) {
  .forces-workspace {
    grid-template-columns: 1fr;
  }

  .forces-controls {
    grid-template-columns: minmax(14rem, 1fr) minmax(18rem, 1fr);
    border-right: 0;
    border-bottom: 1px solid #b8c5ce;
  }

  .forces-assumptions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 52rem) {
  .forces-formula-grid {
    grid-template-columns: 1fr;
  }

  .forces-formula-card {
    border-right: 0;
    border-bottom: 1px solid #b8c5ce;
  }

  .forces-formula-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 36rem) {
  .forces-controls {
    grid-template-columns: 1fr;
  }

  .forces-assumptions {
    grid-column: auto;
  }

  .forces-diagram {
    padding-inline: 0.2rem;
  }

  .forces-vector-label {
    font-size: 16px;
  }
}

@media print {
  .forces-controls {
    display: none;
  }

  .forces-workspace {
    grid-template-columns: 1fr;
  }
}

/* Propeller aerodynamics lesson */
.propeller-workspace {
  display: grid;
  grid-template-columns: minmax(19rem, 0.65fr) minmax(36rem, 1.35fr);
  border-bottom: 1px solid #b8c5ce;
}

.propeller-controls {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  border-right: 1px solid #b8c5ce;
  padding: 1rem;
}

.propeller-control {
  display: grid;
  gap: 0.35rem;
  color: #364653;
  font-size: 0.72rem;
  font-weight: 650;
}

.propeller-control > span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.propeller-control output {
  color: #28688d;
  font-weight: 700;
}

.propeller-control input {
  width: 100%;
  accent-color: #28688d;
}

.propeller-presets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  border-top: 1px solid #d4dde3;
  margin-top: 0.2rem;
  padding-top: 0.8rem;
}

.propeller-presets button {
  min-height: 2.75rem;
  border: 1px solid #9eafba;
  border-radius: 0.2rem;
  cursor: pointer;
  background: white;
  color: #344957;
  padding: 0.35rem 0.5rem;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
}

.propeller-presets button strong,
.propeller-presets button span {
  display: block;
}

.propeller-presets button strong {
  font-size: 0.72rem;
}

.propeller-presets button span {
  margin-top: 0.14rem;
  color: #6a7b87;
  font-size: 0.61rem;
  font-weight: 500;
}

.propeller-presets button:hover,
.propeller-presets button.is-active {
  border-color: #173f5d;
  background: #173f5d;
  color: white;
}

.propeller-presets button:hover span,
.propeller-presets button.is-active span {
  color: #dce8ef;
}

.propeller-simulation {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 0.25rem;
  margin: 0;
  background: #fafcfd;
  padding: 0.75rem 0.9rem;
}

.propeller-simulation svg {
  display: block;
  width: 100%;
  height: auto;
}

.propeller-simulation figcaption {
  color: #60707c;
  font-size: 0.68rem;
  line-height: 1.4;
  text-align: center;
}

#prop-arrow-red path {
  fill: #c9413a;
}

#prop-arrow-blue path {
  fill: #2f6fa3;
}

#prop-arrow-green path {
  fill: #2f7d57;
}

#prop-arrow-gold path {
  fill: #a97011;
}

.propeller-diagram-heading {
  fill: #5b6a75;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.propeller-spinner {
  fill: #e8edf0;
  fill-opacity: 0.68;
  stroke: #9aa8b2;
  stroke-width: 1.5;
}

.propeller-spinner-hub {
  fill: #aeb9c0;
  fill-opacity: 0.72;
  stroke: #f8fafb;
  stroke-width: 1.5;
}

.propeller-rotation-vector {
  stroke: #2f6fa3;
  stroke-width: 3.5;
}

.propeller-thrust-arrow,
.propeller-relative-vector {
  stroke: #c9413a;
  stroke-width: 4;
}

.propeller-torque-arrow,
.propeller-tas-vector {
  fill: none;
  stroke: #2f7d57;
  stroke-width: 3.5;
}

.propeller-total-reaction-arrow {
  stroke: #a97011;
  stroke-width: 4;
}

.propeller-force-guide {
  stroke: #b8c5ce;
  stroke-dasharray: 6 5;
  stroke-width: 1.5;
}

.propeller-force-origin {
  fill: #42535f;
}

.propeller-dynamic-force {
  transition: opacity 120ms ease;
}

.propeller-thrust-label,
.propeller-torque-label,
.propeller-reaction-label,
.propeller-vector-label {
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  paint-order: stroke fill;
  stroke: #fafcfd;
  stroke-linejoin: round;
  stroke-width: 4px;
}

.propeller-vector-label--rotation {
  fill: #245b88;
}

.propeller-thrust-label,
.propeller-vector-label--relative {
  fill: #a7332e;
}

.propeller-torque-label,
.propeller-vector-label--tas {
  fill: #246645;
}

.propeller-reaction-label {
  fill: #8a5c0b;
}

.propeller-plane-line {
  stroke: #2f6fa3;
  stroke-dasharray: 5 5;
  stroke-width: 2;
}

.propeller-blade-element {
  fill: #e5b454;
  fill-opacity: 0.86;
  stroke: #936617;
  stroke-width: 2;
}

.propeller-blade-assembly {
  transform-box: view-box;
  transition: transform 220ms ease;
}

.propeller-blade-pivot {
  fill: #80570f;
  stroke: #fff8e8;
  stroke-width: 2;
}

.propeller-chord-line {
  stroke: #3a4650;
  stroke-width: 2.5;
}

.propeller-angle {
  fill: none;
  stroke-width: 3;
}

.propeller-angle--helix {
  stroke: #2f6fa3;
}

.propeller-angle--blade {
  stroke: #b47a16;
}

.propeller-angle--aoa {
  stroke: #b7445c;
}

.propeller-angle-legend text {
  fill: white;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.propeller-angle-chip--helix {
  fill: #2f6fa3;
}

.propeller-angle-chip--blade {
  fill: #a97011;
}

.propeller-angle-chip--aoa {
  fill: #a33c52;
}

.descent-page .propeller-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.propeller-change-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.propeller-change-grid > div {
  min-width: 0;
  border-right: 1px solid #b8c5ce;
  padding: 0.85rem 1rem;
}

.propeller-change-grid > div:last-child {
  border-right: 0;
}

.propeller-change-grid strong,
.propeller-change-grid span {
  display: block;
}

.propeller-change-grid strong {
  color: #173f5d;
  font-size: 0.78rem;
}

.propeller-change-grid span {
  margin-top: 0.3rem;
  color: #526573;
  font-size: 0.72rem;
  line-height: 1.45;
}

.propeller-model-note {
  width: min(100%, 76rem);
  margin: 0.65rem auto 0;
  color: #526573;
  font-size: 0.68rem;
  line-height: 1.45;
}

@media (max-width: 64rem) {
  .propeller-workspace {
    grid-template-columns: 1fr;
  }

  .propeller-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid #b8c5ce;
  }

  .propeller-presets {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 52rem) {
  .propeller-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .descent-page .propeller-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .propeller-results .descent-result {
    border-right: 1px solid #b8c5ce;
    border-bottom: 1px solid #b8c5ce;
  }

  .propeller-results .descent-result:nth-child(even) {
    border-right: 0;
  }

  .propeller-results .descent-result:last-child {
    border-bottom: 0;
  }

  .propeller-change-grid {
    grid-template-columns: 1fr;
  }

  .propeller-change-grid > div {
    border-right: 0;
    border-bottom: 1px solid #b8c5ce;
  }

  .propeller-change-grid > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 36rem) {
  .propeller-controls,
  .propeller-presets,
  .descent-page .propeller-results {
    grid-template-columns: 1fr;
  }

  .propeller-presets {
    grid-column: auto;
  }

  .propeller-results .descent-result {
    border-right: 0;
  }

  .propeller-simulation {
    padding-inline: 0.25rem;
  }

  .propeller-vector-label,
  .propeller-thrust-label,
  .propeller-torque-label,
  .propeller-reaction-label {
    font-size: 15px;
  }

  .propeller-angle-legend text {
    font-size: 14px;
  }
}

@media print {
  .propeller-controls {
    display: none;
  }

  .propeller-workspace {
    grid-template-columns: 1fr;
  }

  .propeller-model-note {
    width: 100%;
  }
}

/* Descent lesson navigation and separated modules */
.descent-lesson-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 76rem);
  border: 1px solid var(--descent-line, #b8c5ce);
  border-radius: 0.3rem;
  margin: 0.6rem auto 0;
  background: white;
}

.descent-lesson-nav a {
  border-right: 1px solid var(--descent-line, #b8c5ce);
  color: #526573;
  padding: 0.55rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 650;
  text-align: center;
}

.descent-lesson-nav a:last-child {
  border-right: 0;
}

.descent-lesson-nav a:hover {
  background: #f3f6f8;
  color: #173f5d;
}

.descent-lesson-nav a.is-active {
  background: #e3ebf1;
  color: #173f5d;
  box-shadow: inset 0 -3px #28688d;
}

.descent-controls--distance .descent-field--angle {
  grid-column: 1 / -1;
}

.descent-page .descent-controls--rate {
  grid-template-columns: 1fr;
}

.descent-page .descent-results--distance,
.descent-page .descent-results--rate {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.descent-unit-note {
  margin-top: 0.55rem !important;
  color: #536773 !important;
  font-size: 0.69rem !important;
}

.descent-learning-step code + code {
  margin-top: 0.35rem;
}

.descent-mental-divisors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  margin-top: 0.4rem;
}

.descent-mental-divisors span {
  border: 1px solid #c8d2da;
  background: white;
  color: #435560;
  padding: 0.35rem 0.25rem;
  font-size: 0.62rem;
  font-weight: 650;
  text-align: center;
}

.descent-rule-control {
  display: grid;
  grid-template-columns: auto 13rem;
  align-items: center;
  gap: 0.65rem;
  color: #435560;
  font-size: 0.68rem;
  font-weight: 650;
}

.descent-rule-control span {
  white-space: nowrap;
}

.descent-rule-control output {
  color: #28688d;
  font-weight: 700;
}

.descent-rule-control input {
  width: 100%;
  accent-color: #28688d;
}

.descent-simulation-controls {
  display: flex;
  gap: 0.65rem;
}

.descent-simulation-controls label {
  display: grid;
  grid-template-columns: auto 8.5rem;
  align-items: center;
  gap: 0.45rem;
  color: #435560;
  font-size: 0.65rem;
  font-weight: 650;
}

.descent-simulation-controls label > span {
  white-space: nowrap;
}

.descent-simulation-controls output {
  color: #28688d;
  font-weight: 700;
}

.descent-simulation-controls input {
  width: 100%;
  accent-color: #28688d;
}

.descent-rule-explanation {
  display: grid;
  align-content: center;
  gap: 0.75rem;
  background: #fafcfd;
  padding: 1rem;
}

.descent-rule-explanation > p {
  color: #526573;
  font-size: 0.73rem;
  line-height: 1.5;
}

.descent-rule-explanation > p strong {
  color: #173f5d;
}

.descent-rule-explanation > p code {
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-weight: 650;
}

.descent-rule-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.descent-rule-comparison > div {
  border: 1px solid #c8d2da;
  background: white;
  padding: 0.65rem;
}

.descent-rule-comparison span,
.descent-rule-comparison strong,
.descent-rule-comparison code {
  display: block;
}

.descent-rule-comparison span {
  color: #60707c;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.descent-rule-comparison strong {
  margin-top: 0.2rem;
  color: #173f5d;
  font-size: 1rem;
  font-weight: 700;
}

.descent-rule-comparison code {
  margin-top: 0.25rem;
  color: #526573;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 0.65rem;
}

.descent-rule-difference {
  border-left: 3px solid #c06a35;
  background: #fff3e7;
  color: #6c3c22 !important;
  padding: 0.45rem 0.55rem;
  font-weight: 650;
}

.descent-factor-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.descent-factor-steps > div {
  display: grid;
  min-width: 0;
  align-content: center;
  border: 1px solid #c8d2da;
  background: white;
  padding: 0.55rem;
}

.descent-factor-steps span,
.descent-factor-steps strong,
.descent-factor-steps code {
  display: block;
}

.descent-factor-steps span {
  color: #60707c;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.descent-factor-steps strong {
  margin-top: 0.18rem;
  color: #173f5d;
  font-size: 0.95rem;
  font-weight: 700;
}

.descent-factor-steps code {
  margin-top: 0.18rem;
  color: #526573;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 0.66rem;
  font-weight: 650;
}

.descent-factor-summary {
  border-left: 3px solid #28688d;
  background: #eaf2f7;
  color: #344f61 !important;
  padding: 0.5rem 0.6rem;
}

.descent-factor-summary strong {
  display: block;
  color: #173f5d;
}

.descent-page .descent-practice-layout--single {
  grid-template-columns: minmax(20rem, 1fr) minmax(20rem, 1fr);
}

.descent-page .descent-practice-answer--single {
  grid-template-columns: minmax(12rem, 1fr) auto;
}

@media (max-width: 52rem) {
  .descent-simulation-controls {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .descent-simulation-controls label {
    grid-template-columns: auto 1fr;
  }

  .descent-page .descent-results--distance,
  .descent-page .descent-results--rate {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .descent-page .descent-results--distance .descent-result,
  .descent-page .descent-results--rate .descent-result {
    border-right: 1px solid #b8c5ce;
    border-bottom: 0;
  }

  .descent-page .descent-results--distance .descent-result:last-child,
  .descent-page .descent-results--rate .descent-result:last-child {
    border-right: 0;
  }

  .descent-page .descent-practice-layout--single {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 36rem) {
  .descent-rule-control {
    width: 100%;
    grid-template-columns: auto 1fr;
  }

  .descent-simulation-controls {
    grid-template-columns: 1fr;
  }

  .descent-page .descent-results--distance,
  .descent-page .descent-results--rate {
    grid-template-columns: 1fr;
  }

  .descent-page .descent-results--distance .descent-result,
  .descent-page .descent-results--rate .descent-result {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #b8c5ce;
  }

  .descent-page .descent-results--distance .descent-result:last-child,
  .descent-page .descent-results--rate .descent-result:last-child {
    border-bottom: 0;
  }

  .descent-rule-comparison,
  .descent-page .descent-practice-answer--single {
    grid-template-columns: 1fr;
  }

  .descent-factor-steps {
    grid-template-columns: 1fr;
  }
}

@media print {
  .descent-lesson-nav,
  .descent-rule-control,
  .descent-simulation-controls {
    display: none !important;
  }
}

/* Standalone descent-planning lesson */
.descent-page,
.descent-page h1,
.descent-page h2,
.descent-page h3,
.descent-page button,
.descent-page input {
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
}

.descent-page {
  --descent-navy: #173f5d;
  --descent-navy-dark: #102f47;
  --descent-blue: #28688d;
  --descent-ink: #18232d;
  --descent-muted: #60707c;
  --descent-line: #b8c5ce;
  --descent-line-soft: #d4dde3;
  --descent-soft: #f3f6f8;
  min-height: calc(100vh - var(--site-header-height));
  background: #e9eef2;
  color: var(--descent-ink);
  padding: 0.75rem 1.25rem 3rem;
}

.descent-page-header,
.descent-section {
  width: min(100%, 76rem);
  margin-inline: auto;
}

.descent-page-header {
  border: 1px solid var(--descent-navy-dark);
  border-radius: 0.35rem;
  background: var(--descent-navy-dark);
  color: white;
  padding: 1.5rem 1.75rem 1.6rem;
}

.descent-page-header p,
.descent-section-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.descent-page-header p {
  margin-bottom: 0.3rem;
  color: #a9c3d3;
}

.descent-page-header h1 {
  max-width: none;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.descent-section {
  overflow: hidden;
  border: 1px solid var(--descent-line);
  border-radius: 0.3rem;
  margin-top: 0.75rem;
  background: white;
  box-shadow: 0 1px 2px rgb(16 47 71 / 7%);
}

.descent-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--descent-line);
  background: var(--descent-soft);
  padding: 0.65rem 0.85rem;
}

.descent-section-kicker {
  margin-bottom: 0.12rem;
  color: var(--descent-blue);
}

.descent-section-heading h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.descent-section-heading > p {
  max-width: 31rem;
  color: var(--descent-muted);
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: right;
}

.descent-workspace {
  display: grid;
  grid-template-columns: minmax(19rem, 0.75fr) minmax(25rem, 1.25fr);
  border-bottom: 1px solid var(--descent-line);
}

.descent-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  align-content: start;
  border-right: 1px solid var(--descent-line);
  padding: 1rem;
}

.descent-field {
  display: block;
  min-width: 0;
  color: #364653;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
}

.descent-input-wrap {
  display: flex;
  align-items: center;
  min-height: 2.45rem;
  border: 1px solid #9eafba;
  border-radius: 0.22rem;
  margin-top: 0.28rem;
  background: white;
}

.descent-input-wrap:focus-within {
  border-color: var(--descent-blue);
  box-shadow: 0 0 0 3px rgb(40 104 141 / 13%);
}

.descent-input-wrap input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--descent-ink);
  padding: 0.48rem 0.55rem;
  font-size: 0.93rem;
  font-weight: 600;
}

.descent-input-wrap small {
  min-width: 3.25rem;
  border-left: 1px solid var(--descent-line-soft);
  color: var(--descent-muted);
  padding: 0.54rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
}

.descent-angle-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  margin-top: 0.3rem;
}

.descent-angle-presets button,
.descent-secondary-button,
.descent-primary-button {
  border: 1px solid #9eafba;
  border-radius: 0.2rem;
  cursor: pointer;
  background: white;
  color: #344957;
  font-size: 0.66rem;
  font-weight: 650;
}

.descent-angle-presets button {
  min-height: 1.65rem;
  padding: 0.2rem 0.35rem;
}

.descent-angle-presets button:hover,
.descent-angle-presets button.is-active {
  border-color: var(--descent-navy);
  background: var(--descent-navy);
  color: white;
}

.descent-profile {
  display: grid;
  min-width: 0;
  min-height: 15rem;
  place-items: center;
  margin: 0;
  background: #fafcfd;
  padding: 0.6rem 1rem;
}

.descent-profile svg,
.descent-rule-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.descent-diagram-ground,
.descent-diagram-height,
.descent-rule-base,
.descent-rule-rise {
  stroke: #8295a3;
  stroke-width: 2;
}

.descent-diagram-height {
  stroke-dasharray: 5 4;
}

.descent-diagram-path,
.descent-rule-slope {
  stroke: var(--descent-blue);
  stroke-width: 4;
}

.descent-diagram-point {
  fill: var(--descent-navy);
}

.descent-diagram-angle,
.descent-rule-angle {
  fill: none;
  stroke: #c06a35;
  stroke-width: 3;
}

.descent-diagram-label,
.descent-diagram-caption,
.descent-rule-diagram text {
  fill: #455764;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.descent-diagram-label--accent,
.descent-rule-degree {
  fill: var(--descent-blue) !important;
  font-weight: 700 !important;
}

.descent-diagram-caption {
  fill: #778894;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.descent-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.descent-result {
  min-height: 5.35rem;
  border-right: 1px solid var(--descent-line);
  padding: 0.75rem 0.85rem;
}

.descent-result:last-child {
  border-right: 0;
}

.descent-result > span,
.descent-result > strong,
.descent-result > small {
  display: block;
}

.descent-result > span {
  color: var(--descent-muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.descent-result > strong {
  margin-top: 0.22rem;
  color: var(--descent-navy-dark);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.descent-result > small {
  margin-top: 0.32rem;
  color: var(--descent-blue);
  font-size: 0.66rem;
  font-weight: 600;
}

.descent-error {
  border-top: 1px solid #e0c7a9;
  margin: 0;
  background: #fff3e7;
  color: #7a3d1c;
  padding: 0.6rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.descent-learning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.descent-learning-step {
  min-width: 0;
  border-right: 1px solid var(--descent-line);
  padding: 1rem;
}

.descent-learning-step:last-child {
  border-right: 0;
}

.descent-step-number {
  color: #88a6ba;
  font-size: 0.75rem;
  font-weight: 700;
}

.descent-learning-step h3 {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.descent-learning-step > p:not(.descent-formula-name) {
  margin-top: 0.45rem;
  color: var(--descent-muted);
  font-size: 0.73rem;
  line-height: 1.45;
}

.descent-formula-name {
  margin: 0.65rem 0 0.18rem;
  color: var(--descent-muted);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.descent-learning-step code,
.descent-rule-working code {
  display: block;
  overflow-wrap: anywhere;
  border-left: 3px solid #87a8bc;
  background: var(--descent-soft);
  color: #233744;
  padding: 0.48rem 0.55rem;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 0.71rem;
  font-weight: 600;
  line-height: 1.4;
}

.descent-learning-step > code:first-of-type {
  margin-top: 0.65rem;
}

.descent-rule-layout {
  display: grid;
  grid-template-columns: minmax(24rem, 1.2fr) minmax(18rem, 0.8fr);
}

.descent-rule-diagram {
  margin: 0;
  border-right: 1px solid var(--descent-line);
  padding: 0.9rem 1.1rem 0.75rem;
}

.descent-rule-diagram figcaption {
  color: var(--descent-muted);
  font-size: 0.68rem;
  line-height: 1.4;
  text-align: center;
}

.descent-rule-working {
  display: grid;
  align-content: center;
  gap: 0.55rem;
  background: #fafcfd;
  padding: 1rem;
}

.descent-rule-working span {
  display: block;
  margin-bottom: 0.16rem;
  color: var(--descent-muted);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.descent-practice .descent-section-heading {
  background: #e3ebf1;
}

.descent-secondary-button,
.descent-primary-button {
  min-height: 2rem;
  padding: 0.4rem 0.7rem;
}

.descent-secondary-button:hover {
  border-color: var(--descent-navy);
  color: var(--descent-navy);
}

.descent-primary-button {
  align-self: end;
  border-color: var(--descent-navy);
  background: var(--descent-navy);
  color: white;
}

.descent-primary-button:hover {
  background: var(--descent-navy-dark);
}

.descent-practice-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 0.7fr) minmax(25rem, 1.3fr);
}

.descent-scenario {
  display: grid;
  align-items: center;
  border-right: 1px solid var(--descent-line);
  background: #fafcfd;
  padding: 1rem;
}

.descent-scenario p {
  color: #354754;
  font-size: 0.82rem;
  line-height: 1.55;
}

.descent-scenario strong {
  color: var(--descent-navy);
  font-weight: 700;
}

.descent-practice-answer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.7rem;
  align-items: end;
  padding: 1rem;
}

.descent-practice-feedback {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  border-top: 1px solid var(--descent-line);
  padding: 0.62rem 0.85rem;
  font-size: 0.74rem;
  line-height: 1.4;
}

.descent-practice-feedback[hidden] {
  display: none;
}

.descent-practice-feedback strong {
  min-width: 7rem;
}

.descent-practice-feedback span {
  color: #455764;
}

.descent-practice-feedback.is-correct {
  border-top-color: #a8c7b4;
  background: #edf7f0;
  color: #245c35;
}

.descent-practice-feedback.is-incorrect,
.descent-practice-feedback.is-incomplete {
  border-top-color: #e0c7a9;
  background: #fff3e7;
  color: #7a3d1c;
}

@media (max-width: 52rem) {
  .descent-workspace,
  .descent-rule-layout,
  .descent-practice-layout {
    grid-template-columns: 1fr;
  }

  .descent-controls,
  .descent-rule-diagram,
  .descent-scenario {
    border-right: 0;
    border-bottom: 1px solid var(--descent-line);
  }

  .descent-profile {
    min-height: 0;
  }

  .descent-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .descent-result:nth-child(2) {
    border-right: 0;
  }

  .descent-result:nth-child(-n + 2) {
    border-bottom: 1px solid var(--descent-line);
  }

  .descent-learning-grid {
    grid-template-columns: 1fr;
  }

  .descent-learning-step {
    border-right: 0;
    border-bottom: 1px solid var(--descent-line);
  }

  .descent-learning-step:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 36rem) {
  .descent-page {
    padding: 0.4rem 0.4rem 2rem;
  }

  .descent-page-header {
    padding: 1.2rem 1rem 1.3rem;
  }

  .descent-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
  }

  .descent-section-heading > p {
    text-align: left;
  }

  .descent-controls {
    grid-template-columns: 1fr 1fr;
    padding: 0.75rem;
  }

  .descent-result {
    min-height: 5rem;
    padding: 0.65rem;
  }

  .descent-result > strong {
    font-size: 1.1rem;
  }

  .descent-diagram-label,
  .descent-rule-diagram text {
    font-size: 19px;
  }

  .descent-diagram-caption {
    font-size: 14px;
  }

  .descent-practice-answer {
    grid-template-columns: 1fr 1fr;
  }

  .descent-primary-button {
    grid-column: 1 / -1;
  }
}

@media print {
  @page descent-lesson {
    size: A4 portrait;
    margin: 10mm;
  }

  .descent-page {
    page: descent-lesson;
    min-height: 0;
    background: white;
    padding: 0;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .descent-page-header,
  .descent-section {
    width: 100%;
    box-shadow: none;
  }

  .descent-page-header {
    border-radius: 0;
  }

  .descent-section {
    break-inside: avoid;
  }

  .descent-angle-presets,
  .descent-practice,
  .site-header,
  #bmc-wbtn {
    display: none !important;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-canvas);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--color-accent);
  color: white;
}

.app-body {
  min-height: 100vh;
  background: var(--color-canvas);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #274a64;
  background: #102f47;
}

.site-nav,
.hero-inner,
.apps-section {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.nav-links,
.pulse-heading,
.section-heading,
.filter-list,
.app-card-top,
.app-card-footer {
  display: flex;
  align-items: center;
}

.brand-link {
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-links {
  gap: 1.75rem;
  color: #d7e2e9;
  font-size: 0.875rem;
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: white;
}

.nav-action {
  border-radius: 0.375rem;
  background: var(--color-accent);
  color: white;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 143, 131, 0.22);
  transition: background 0.2s ease;
}

.nav-action:hover {
  background: var(--color-accent-strong);
}

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-wash {
  position: absolute;
  inset: 0 0 auto;
  height: 18rem;
  background: linear-gradient(135deg, var(--color-mist), transparent 62%);
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: end;
  padding-block: 4.5rem;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1.25rem;
  border: 1px solid var(--color-line);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-muted);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(24, 35, 47, 0.06);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 48rem;
  font-size: clamp(2.8rem, 7vw, 4rem);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 42rem;
  margin-top: 1.5rem;
  color: var(--color-muted);
  font-size: 1.125rem;
  line-height: 1.75;
}

.pulse-panel {
  display: grid;
  gap: 0.75rem;
  border: 1px solid var(--color-line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.pulse-heading {
  justify-content: space-between;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.pulse-heading span:last-child {
  border-radius: 0.375rem;
  background: var(--color-mist);
  color: var(--color-accent);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
}

.pulse-grid,
.app-grid {
  display: grid;
  gap: 1rem;
}

.pulse-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.pulse-grid div {
  border-radius: 0.375rem;
  background: var(--color-panel);
  padding: 1rem;
}

.pulse-grid span,
.pulse-grid small {
  display: block;
}

.pulse-grid span {
  font-size: 1.5rem;
  font-weight: 750;
}

.pulse-grid small {
  color: var(--color-muted);
  font-size: 0.75rem;
}

.apps-section {
  padding-bottom: 4rem;
}

.section-heading {
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--color-line);
  padding-top: 2rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: 1.5rem;
  font-weight: 750;
}

.section-heading p {
  margin-top: 0.5rem;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.filter-list {
  gap: 0.5rem;
}

.filter-list span {
  border: 1px solid var(--color-line);
  border-radius: 0.375rem;
  color: var(--color-muted);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.filter-list .is-active {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: white;
}

.app-grid {
  grid-template-columns: 1fr;
}

.app-card {
  border: 1px solid var(--color-line);
  border-radius: 0.5rem;
  background: white;
  padding: 1.25rem;
  box-shadow: 0 8px 22px rgba(24, 35, 47, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(24, 35, 47, 0.1);
}

.app-card-top,
.app-card-footer {
  justify-content: space-between;
  gap: 1rem;
}

.app-card-top {
  margin-bottom: 2rem;
}

.app-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 0.5rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 750;
}

.app-icon-teal {
  background: var(--color-accent);
}

.app-icon-ruby {
  background: var(--color-ruby);
}

.app-icon-gold {
  background: var(--color-gold);
}

.app-icon-ink {
  background: var(--color-ink);
}

.status-pill {
  border-radius: 0.375rem;
  background: var(--color-panel);
  color: var(--color-muted);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.app-card h3 {
  font-size: 1.125rem;
  font-weight: 750;
}

.app-card p {
  min-height: 3rem;
  margin-top: 0.5rem;
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.app-card-footer {
  border-top: 1px solid var(--color-line);
  margin-top: 1.25rem;
  padding-top: 1rem;
}

.app-card-footer span:first-child {
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.app-card-footer span:last-child {
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 750;
}

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

@media (min-width: 64rem) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    padding-block: 5rem;
  }

  .app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 47.9375rem) {
  .nav-links {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

.site-header,
.home-page,
.home-page h1,
.home-page h2,
.home-page h3 {
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
}

.site-header .nav-links {
  display: flex;
}

.home-welcome {
  display: grid;
  min-height: calc(100vh - var(--site-header-height));
  place-items: center;
  background: #e9eef2;
  color: #102f47;
  padding: 2rem;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  text-align: center;
}

.home-welcome h1 {
  max-width: none;
  font-family: inherit;
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}

.home-page {
  --home-navy: #173f5d;
  --home-navy-dark: #102f47;
  --home-blue: #28688d;
  --home-ink: #18232d;
  --home-muted: #60707c;
  --home-line: #b8c5ce;
  --home-soft: #f3f6f8;
  min-height: calc(100vh - var(--site-header-height));
  background: #e9eef2;
  color: var(--home-ink);
  padding: 0.85rem 1.25rem 3rem;
}

.home-masthead,
.home-library {
  width: min(100%, 76rem);
  margin-inline: auto;
}

.home-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  align-items: end;
  min-height: 15rem;
  overflow: hidden;
  border: 1px solid var(--home-navy-dark);
  border-radius: 0.35rem;
  background: var(--home-navy-dark);
  color: white;
  padding: 2.75rem 3rem;
}

.home-kicker,
.home-library-heading > p,
.home-resource-type {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-kicker {
  margin-bottom: 0.55rem;
  color: #a9c3d3;
}

.home-intro h1 {
  max-width: none;
  font-size: clamp(2.75rem, 7vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.home-intro > p:last-child {
  max-width: 32rem;
  margin-top: 1.15rem;
  color: #d7e2e9;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
}

.home-index {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 4.2rem;
  border-left: 1px solid #48677d;
  padding-left: 1.5rem;
}

.home-index-number {
  color: #8fb2c8;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
}

.home-index small,
.home-index strong {
  display: block;
}

.home-index small {
  margin-bottom: 0.12rem;
  color: #a9c3d3;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-index strong {
  font-size: 1rem;
  font-weight: 650;
}

.home-library {
  margin-top: 0.85rem;
}

.home-library-heading {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  border-bottom: 1px solid var(--home-line);
  padding: 0.65rem 0.1rem;
}

.home-library-heading > p {
  color: var(--home-blue);
}

.home-library-heading h2 {
  color: var(--home-ink);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
}

.home-resource {
  display: grid;
  grid-template-columns: minmax(17rem, 0.75fr) minmax(26rem, 1.25fr);
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 0.3rem;
  margin-top: 0.85rem;
  background: white;
  box-shadow: 0 1px 2px rgb(16 47 71 / 7%);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.home-resource:hover {
  border-color: #7892a4;
  box-shadow: 0 8px 24px rgb(16 47 71 / 10%);
  transform: translateY(-1px);
}

.home-resource:focus-visible {
  outline: 3px solid rgb(40 104 141 / 28%);
  outline-offset: 3px;
}

.home-resource-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-height: 15rem;
  padding: 1.8rem;
}

.home-resource-type {
  color: var(--home-blue);
}

.home-resource-copy h3 {
  margin-top: 0.38rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.home-resource-description {
  max-width: 26rem;
  margin-top: 0.8rem;
  color: var(--home-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.home-resource-link {
  margin-top: auto;
  color: var(--home-blue);
  font-size: 0.82rem;
  font-weight: 650;
}

.home-resource-link span {
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 150ms ease;
}

.home-resource:hover .home-resource-link span {
  transform: translateX(0.18rem);
}

.home-resource-preview {
  align-self: stretch;
  border-left: 1px solid var(--home-line);
  background: var(--home-soft);
  padding: 1.45rem;
}

.home-preview-title,
.home-preview-group,
.home-preview-row {
  border: 1px solid #a9b7c2;
}

.home-preview-title {
  background: var(--home-navy);
  color: white;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.home-preview-group {
  border-top: 0;
  background: #e3ebf1;
  color: #273c4c;
  padding: 0.35rem 0.7rem;
  font-size: 0.65rem;
  font-weight: 650;
}

.home-preview-row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  border-top: 0;
  background: white;
  color: #2c3943;
  font-size: 0.64rem;
  line-height: 1.38;
}

.home-preview-row strong,
.home-preview-row span {
  padding: 0.55rem 0.65rem;
}

.home-preview-row strong {
  border-right: 1px solid #c8d2da;
  background: #f3f6f8;
  font-weight: 650;
}

.home-preview-row span {
  font-weight: 500;
}

.home-transfer-address {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
  border: 1px solid #a9b7c2;
  border-top: 0;
  background: white;
  color: var(--home-muted);
  padding: 1.55rem 0.8rem;
  font-size: clamp(0.85rem, 2vw, 1.15rem);
}

.home-transfer-address strong {
  color: var(--home-navy);
  font-size: 1.4em;
  letter-spacing: 0.04em;
}

@media (max-width: 46rem) {
  .home-page {
    padding: 0.45rem 0.45rem 2rem;
  }

  .home-masthead {
    grid-template-columns: 1fr;
    min-height: 18rem;
    padding: 2rem 1.35rem 1.35rem;
  }

  .home-intro h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .home-index {
    align-self: end;
    min-height: auto;
    border-top: 1px solid #48677d;
    border-left: 0;
    margin-top: 2rem;
    padding: 1rem 0 0;
  }

  .home-resource {
    grid-template-columns: 1fr;
  }

  .home-resource-copy {
    min-height: 13rem;
    padding: 1.35rem;
  }

  .home-resource-preview {
    border-top: 1px solid var(--home-line);
    border-left: 0;
    padding: 0.8rem;
  }

  .home-preview-row {
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }
}

.aero-shell {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  min-height: calc(100dvh - var(--site-header-height));
  background: #f5f7f4;
}

.aero-sidebar {
  position: sticky;
  top: var(--site-header-height);
  align-self: start;
  display: flex;
  height: calc(100dvh - var(--site-header-height));
  min-height: calc(100dvh - var(--site-header-height));
  flex-direction: column;
  gap: 1.25rem;
  border-right: 1px solid #d8ded8;
  background: #10292c;
  color: white;
  padding: 1.25rem;
}

.aero-sidebar h1 {
  font-size: 2.2rem;
}

.aero-sidebar p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.aero-kicker {
  margin: 0 0 0.35rem;
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aero-sidebar .aero-kicker {
  color: #8ddfd6;
}

.aero-tabs {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  flex: 1;
}

.aero-tabs button,
.secondary-action {
  border: 1px solid transparent;
  border-radius: 0.45rem;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.aero-tabs button {
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  padding: 0.8rem 0.9rem;
  text-align: left;
}

.aero-tabs button:hover,
.aero-tabs button.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.aero-workspace {
  min-width: 0;
  padding: 1rem 1.25rem 1.25rem;
}

.tool-panel {
  display: none;
}

.tool-panel.is-active {
  display: block;
}

.tool-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tool-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
}

.aero-status,
.secondary-action {
  border-radius: 0.45rem;
  background: #dff4ed;
  color: #0f766e;
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
}

.aero-card-grid,
.result-grid,
.tool-split {
  display: grid;
  gap: 1rem;
}

.aero-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aero-card,
.mini-tool,
.metric-card,
.checklist-list,
.wb-layout {
  border: 1px solid #d8ded8;
  border-radius: 0.55rem;
  background: white;
  box-shadow: 0 10px 30px rgba(16, 41, 44, 0.06);
}

.aero-card {
  min-height: 11rem;
  cursor: pointer;
  padding: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.aero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(16, 41, 44, 0.1);
}

.aero-card-featured {
  border-color: #84cfc5;
  background: linear-gradient(145deg, #e8f7f2, #ffffff 70%);
}

.aero-card h3,
.mini-tool h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.aero-card p {
  margin-top: 0.75rem;
  color: #5e6f70;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tool-grid {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.tool-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-panel label,
.mini-tool label {
  display: grid;
  gap: 0.35rem;
  color: #425456;
  font-size: 0.85rem;
  font-weight: 750;
}

.tool-panel input,
.tool-panel select,
.tool-panel textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5d1;
  border-radius: 0.45rem;
  background: #fbfcfa;
  color: #10292c;
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.75rem;
}

.tool-panel input:focus,
.tool-panel select:focus,
.tool-panel textarea:focus {
  border-color: #0f766e;
  outline: 3px solid rgba(15, 118, 110, 0.14);
}

.result-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  padding: 1rem;
}

.metric-card span {
  display: block;
  color: #5e6f70;
  font-size: 0.85rem;
  font-weight: 750;
}

.metric-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #0f766e;
  font-size: 2rem;
}

.tool-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-tool {
  padding: 1rem;
}

.mini-tool h3 {
  margin-bottom: 1rem;
}

.result-main {
  color: #0f766e;
  font-size: 1.75rem;
  font-weight: 850;
  line-height: 1.15;
}

.result-sub {
  margin-top: 0.35rem;
  color: #5e6f70;
  line-height: 1.45;
}

.checklist-list {
  overflow: hidden;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.secondary-action.primary {
  background: #0f766e;
  color: white;
}

.checklist-item {
  display: grid;
  grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  border-bottom: 1px solid #e6ebe7;
  cursor: pointer;
  padding: 0.9rem 1rem;
}

.checklist-item.is-hidden {
  border-bottom-style: dashed;
}

.checklist-item:last-child {
  border-bottom: 0;
}

.checklist-item strong {
  color: #10292c;
}

.checklist-item span {
  color: #445b5d;
  font-weight: 750;
}

.checklist-item.is-hidden strong,
.checklist-item.is-hidden span {
  visibility: hidden;
}

.checklist-item.is-hidden.has-visible-system strong {
  visibility: visible;
}

.checklist-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.wb-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: 1rem;
  padding: 1rem;
}

.aero-table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.aero-table th,
.aero-table td {
  border-bottom: 1px solid #e6ebe7;
  padding: 0.45rem;
  text-align: right;
}

.aero-table th:first-child,
.aero-table td:first-child {
  text-align: left;
}

.aero-table tr:last-child td {
  border-bottom: 0;
  font-weight: 850;
}

#wbCanvas {
  width: 100%;
  height: 24rem;
  border: 1px solid #e0e6e1;
  border-radius: 0.45rem;
  background: white;
}

.mini-tool.wide {
  grid-column: 1 / -1;
}

.profile-result-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.65fr) minmax(20rem, 1.35fr);
  gap: 1rem;
  margin-top: 1rem;
}

.profile-points {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.profile-point-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.8fr 0.8fr auto;
  gap: 0.65rem;
  align-items: end;
  border: 1px solid #e0e6e1;
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.profile-notes {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  color: #445b5d;
  font-size: 0.9rem;
  line-height: 1.45;
}

.profile-notes div {
  border-left: 3px solid #0f766e;
  background: #f0faf6;
  padding: 0.55rem 0.7rem;
}

#profileCanvas {
  width: 100%;
  height: 24rem;
  border: 1px solid #e0e6e1;
  border-radius: 0.45rem;
  background: white;
}

.planner-heading {
  align-items: center;
}

.planner-intro {
  max-width: 46rem;
  margin-top: 0.65rem;
  color: #5e6f70;
  line-height: 1.5;
}

.planner-actions,
.planner-section-heading,
.planner-trip-header,
.planner-route-heading,
.planner-output-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.planner-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.planner-save-state {
  color: #5e6f70;
  font-size: 0.78rem;
  font-weight: 700;
}

.planner-fixed-field {
  display: grid;
  align-content: center;
  min-height: 4.5rem;
  border: 1px solid #cbd5d1;
  border-radius: 0.45rem;
  background: #eef4f0;
  padding: 0.6rem 0.75rem;
}

.planner-fixed-field span,
.planner-fixed-field small {
  color: #5e6f70;
  font-size: 0.72rem;
  font-weight: 750;
}

.planner-fixed-field strong {
  margin-block: 0.1rem;
  color: #10292c;
  font-size: 1.05rem;
}

.planner-notice {
  border: 1px solid #e6c880;
  border-radius: 0.55rem;
  background: #fff9e8;
  color: #705418;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.planner-section,
.planner-trip,
.flight-sheet {
  border: 1px solid #d8ded8;
  border-radius: 0.65rem;
  background: white;
  box-shadow: 0 10px 30px rgba(16, 41, 44, 0.05);
}

.planner-section {
  margin-bottom: 1rem;
  padding: 1rem;
}

.planner-section-heading {
  margin-bottom: 1rem;
}

.planner-section-heading > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.planner-section-heading span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: #dff4ed;
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 850;
}

.planner-section-heading h3,
.planner-trip-header h4,
.planner-route-heading h5 {
  margin: 0;
}

.planner-section-heading > p,
.planner-route-heading p {
  color: #5e6f70;
  font-size: 0.82rem;
}

.planner-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.planner-metric {
  border: 1px solid #e0e6e1;
  border-radius: 0.5rem;
  background: #f8faf7;
  padding: 0.75rem;
}

.planner-metric span,
.planner-metric strong {
  display: block;
}

.planner-metric span {
  color: #5e6f70;
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.planner-metric strong {
  margin-top: 0.25rem;
  font-size: 1.1rem;
}

.planner-metric.is-ok {
  border-color: #8cd2bd;
  background: #eefaf5;
}

.planner-metric.is-bad {
  border-color: #e3a3b0;
  background: #fff0f3;
  color: #9b3047;
}

.planner-trips {
  display: grid;
  gap: 1rem;
}

.planner-trip {
  overflow: hidden;
}

.planner-trip-header {
  border-bottom: 1px solid #dfe5e0;
  background: #f3f7f3;
  padding: 0.85rem 1rem;
}

.planner-trip-header span {
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planner-trip-header h4 {
  margin-top: 0.15rem;
  font-size: 1.25rem;
}

.planner-airports {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem;
}

.planner-airport {
  min-width: 0;
  border: 1px solid #dfe5e0;
  border-radius: 0.55rem;
  padding: 0.8rem;
}

.planner-airport legend {
  color: #10292c;
  padding-inline: 0.35rem;
  font-size: 0.86rem;
  font-weight: 850;
}

.planner-airport-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.planner-field-wide {
  grid-column: span 2;
}

.planner-trip-settings {
  border-block: 1px solid #e5eae6;
  background: #fafbf9;
  margin: 0;
  padding: 1rem;
}

.planner-route-heading {
  align-items: flex-end;
  padding: 1rem 1rem 0.65rem;
}

.planner-route-heading h5 {
  font-size: 1rem;
}

.planner-route-heading p {
  margin-top: 0.2rem;
}

.planner-route {
  display: grid;
  gap: 0.55rem;
  padding: 0 1rem 1rem;
}

.planner-route-row {
  display: grid;
  grid-template-columns: 2rem minmax(9rem, 1.2fr) repeat(3, minmax(5.25rem, 0.55fr)) minmax(9rem, 1.2fr) 2.25rem;
  gap: 0.55rem;
  align-items: end;
}

.planner-destination-route-row {
  border-top: 1px solid #dfe5e0;
  padding-top: 0.55rem;
}

.planner-destination-leg-label {
  align-self: center;
  color: #5e6f70;
  font-size: 0.78rem;
  font-weight: 750;
}

.route-number {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  background: #edf1ed;
  color: #5e6f70;
  font-size: 0.75rem;
  font-weight: 800;
}

.icon-action {
  width: 2.25rem;
  height: 2.65rem;
  border: 1px solid #e0c6cb;
  border-radius: 0.45rem;
  background: #fff6f7;
  color: #9b3047;
  cursor: pointer;
  font-size: 1.3rem;
}

.planner-trip-calculated {
  border-top: 1px solid #dfe5e0;
  padding: 1rem;
}

.planner-inline-results {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.75rem;
  color: #425456;
  font-size: 0.82rem;
}

.planner-inline-results .is-warning {
  color: #9a5d0b;
  font-weight: 700;
}

.planner-envelope {
  max-width: 44rem;
  margin-top: 1rem;
}

.wb-envelope-figure {
  min-width: 0;
  border: 1px solid #dfe5e0;
  border-radius: 0.5rem;
  background: white;
  margin: 0;
  padding: 0.7rem;
}

.wb-envelope-figure figcaption {
  margin-bottom: 0.35rem;
  color: #10292c;
  font-size: 0.85rem;
  font-weight: 850;
}

.wb-envelope-svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
}

.envelope-grid line {
  stroke: #dde5df;
  stroke-width: 1;
}

.envelope-grid text,
.axis-label,
.envelope-polygons text,
.envelope-point text {
  fill: #4b5f60;
}

.envelope-polygons polygon {
  fill: rgba(15, 118, 110, 0.07);
  stroke: #10292c;
  stroke-width: 2.5;
}

.envelope-polygons .category-u {
  fill: rgba(200, 145, 45, 0.08);
}

.envelope-point circle {
  fill: #0f766e;
  stroke: white;
  stroke-width: 2;
}

.envelope-point.is-bad circle {
  fill: #b7445c;
}

.planner-output {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.navplan-print-set,
.planning-print-set {
  display: grid;
  gap: 1rem;
}

.planning-print-set {
  margin-top: 1rem;
}

.navplan-print-set {
  overflow-x: auto;
}

.navplan-form {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  width: 100%;
  min-width: 62rem;
  aspect-ratio: 1.94 / 1;
  border: 3px solid #111;
  background: white;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
  container-type: inline-size;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.navplan-title {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-bottom: 2px solid #111;
  padding: 0.25rem 0.45rem;
  font-size: 1.65cqw;
  font-style: italic;
  letter-spacing: 0.04em;
}

.navplan-title strong:last-child {
  text-align: right;
}

.navplan-details {
  display: grid;
  grid-template-columns: 0.78fr 0.98fr 0.45fr 0.78fr 0.45fr 0.95fr 0.72fr 0.9fr 0.72fr 1fr 0.5fr 0.85fr;
  grid-auto-rows: minmax(1.65rem, auto);
}

.navplan-details > div {
  display: flex;
  align-items: center;
  min-width: 0;
  border-right: 1.5px solid #111;
  border-bottom: 1.5px solid #111;
  padding: 0.08rem 0.25rem;
  font-size: 1.15cqw;
  font-weight: 700;
}

.navplan-details > div:nth-child(12),
.navplan-details > div:nth-child(22),
.navplan-details > div:nth-child(32) {
  border-right: 0;
}

.navplan-details .nav-label {
  background: #d3d3d3;
  font-weight: 850;
}

.navplan-details .nav-span-3 {
  grid-column: span 3;
}

.navplan-times {
  display: grid;
  grid-template-columns: 6.4% 5.1% 22.4% repeat(6, 5.5% 5.5166667%);
  min-height: 1.7rem;
  border-bottom: 3px solid #111;
  background: #444;
  color: white;
  font-size: 0.9cqw;
  font-weight: 700;
}

.navplan-times > div {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border-right: 1.5px solid #111;
  padding: 0.06rem 0.18rem;
  white-space: nowrap;
}

.navplan-times > .nav-time-entry,
.navplan-times > .nav-cs-heading {
  justify-content: center;
  background: white;
  color: #111;
  font-size: inherit;
}

.navplan-log {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.navplan-log col.freq { width: 6.4%; }
.navplan-log col.cs { width: 5.1%; }
.navplan-log col.checkpoint { width: 22.4%; }
.navplan-log col.mc { width: 5%; }
.navplan-log col.dist { width: 5.6%; }
.navplan-log col.alt { width: 5.5%; }
.navplan-log col.eet { width: 5.7%; }
.navplan-log col.total-eet { width: 6.5%; }
.navplan-log col.eto { width: 5.5%; }
.navplan-log col.ato { width: 5.8%; }
.navplan-log col.fuel-remaining { width: 6.5%; }
.navplan-log col.remarks { width: 20%; }

.navplan-log th,
.navplan-log td {
  overflow: hidden;
  border-right: 1.5px solid #111;
  border-bottom: 1px solid #111;
  padding: 0 0.14rem;
  font-size: 0.88cqw;
  text-align: left;
  white-space: nowrap;
}

.navplan-log th {
  height: 1.5rem;
  background: #e7e7e7;
  font-size: 0.98cqw;
  font-weight: 500;
}

.navplan-log .nav-departure-row th:nth-child(-n + 3) {
  background: #d9dde0;
  font-weight: 850;
}

.navplan-log thead {
  height: 1.5rem;
}

.navplan-log tbody {
  height: calc(100% - 1.5rem);
}

.navplan-log tbody tr {
  height: 6.25%;
}

.navplan-log tbody td {
  height: 6.25%;
  line-height: 1.1;
  vertical-align: middle;
}

.navplan-log tbody tr:nth-child(even) {
  background: #e9e9e9;
}

.navplan-log tbody tr.nav-marker {
  font-weight: 850;
}

.navplan-log tbody tr.nav-aerodrome {
  font-weight: 850;
}

.navplan-log th:nth-child(11),
.navplan-log td:nth-child(11) {
  border-right-width: 3px;
}

.navplan-page-number {
  position: absolute;
  right: 0.3rem;
  bottom: 0.15rem;
  font-size: 0.55rem;
}

.planner-output-heading {
  padding-top: 1rem;
}

.planner-output-heading > p {
  color: #5e6f70;
  font-weight: 750;
}

.flight-sheet {
  overflow: hidden;
  padding: 1.1rem;
}

.flight-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 3px solid #10292c;
  padding-bottom: 0.7rem;
}

.flight-sheet-header p {
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flight-sheet-header h2 {
  margin-top: 0.15rem;
  font-size: 1.65rem;
}

.flight-sheet-number {
  border-radius: 0.35rem;
  background: #10292c;
  color: white;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.flight-sheet-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #dfe5e0;
  border-radius: 0.4rem;
  margin: 0.8rem 0;
  overflow: hidden;
}

.flight-sheet-meta div {
  border-bottom: 1px solid #dfe5e0;
  border-right: 1px solid #dfe5e0;
  padding: 0.5rem 0.6rem;
}

.flight-sheet-meta div:nth-child(4n) {
  border-right: 0;
}

.flight-sheet-meta div:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.flight-sheet-meta dt {
  color: #5e6f70;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.flight-sheet-meta dd {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.flight-sheet-section {
  margin-top: 1rem;
}

.flight-sheet-section h3,
.print-table-block h3,
.print-table-block h4 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.print-table th,
.print-table td {
  border: 1px solid #cfd8d2;
  padding: 0.38rem 0.45rem;
  text-align: right;
}

.print-table th:first-child,
.print-table td:first-child,
.navlog-table th,
.navlog-table td {
  text-align: left;
}

.print-table th {
  background: #edf2ee;
  color: #344b4d;
  font-size: 0.66rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.print-table .total td {
  border-top: 2px solid #10292c;
  font-weight: 850;
}

.profile-marker td {
  background: #e7f6f1;
  color: #0b6f67;
  font-weight: 850;
}

.print-two-column,
.print-wb-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.print-wb-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(15rem, 1.3fr);
  align-items: start;
}

.print-status,
.print-warning,
.sheet-note,
.flight-sheet-footer {
  margin-top: 0.4rem;
  color: #5e6f70;
  font-size: 0.7rem;
  line-height: 1.4;
}

.print-status.is-ok {
  color: #0b6f67;
}

.print-status.is-bad,
.print-warning {
  color: #9b3047;
  font-weight: 800;
}

.sheet-alert {
  border: 1px solid #d68194;
  border-radius: 0.35rem;
  background: #fff0f3;
  color: #8b2940;
  padding: 0.5rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.flight-sheet-footer {
  border-top: 1px solid #dfe5e0;
  margin-top: 1rem;
  padding-top: 0.5rem;
}

@media (max-width: 68rem) {
  .aero-shell {
    grid-template-columns: 1fr;
  }

  .aero-sidebar {
    position: static;
    height: auto;
    min-height: auto;
    gap: 1rem;
  }

  .aero-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .aero-tabs button {
    text-align: center;
  }

  .aero-card-grid,
  .result-grid,
  .tool-split,
  .wb-layout,
  .profile-result-grid {
    grid-template-columns: 1fr;
  }

  .profile-point-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planner-airports,
  .print-two-column,
  .print-wb-layout {
    grid-template-columns: 1fr;
  }

  .planner-airport-grid,
  .planner-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planner-route-row {
    grid-template-columns: 2rem repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 42rem) {
  .aero-workspace {
    padding: 0.85rem;
  }

  .aero-tabs,
  .tool-grid.two,
  .tool-grid.three,
  .tool-grid.four,
  .profile-point-row {
    grid-template-columns: 1fr;
  }

  .checklist-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .planner-heading,
  .planner-section-heading,
  .planner-route-heading,
  .planner-output-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .planner-actions {
    justify-content: flex-start;
  }

  .planner-airport-grid,
  .planner-summary-grid,
  .planner-route-row,
  .flight-sheet-meta {
    grid-template-columns: 1fr;
  }

  .route-number {
    display: none;
  }

  .flight-sheet-meta div,
  .flight-sheet-meta div:nth-child(4n),
  .flight-sheet-meta div:nth-last-child(-n + 4) {
    border: 0;
    border-bottom: 1px solid #dfe5e0;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 8mm;
  }

  @page navplan-page {
    size: A4 portrait;
    margin: 8mm;
  }

  @page planning-page {
    size: A4 landscape;
    margin: 8mm;
  }

  body,
  .app-body,
  .aero-shell,
  .aero-workspace {
    background: white !important;
  }

  .site-header,
  .aero-sidebar,
  .planner-heading,
  .no-print,
  [data-tool-panel]:not([data-tool-panel="planner"]) {
    display: none !important;
  }

  .aero-shell,
  .aero-workspace,
  [data-tool-panel="planner"] {
    display: block !important;
    min-height: 0;
    padding: 0;
  }

  .planner-output {
    display: block;
    margin: 0;
  }

  body.print-navplans .planning-print-set,
  body.print-planning .navplan-print-set {
    display: none !important;
  }

  body:not(.print-navplans):not(.print-planning) .navplan-print-set {
    display: none !important;
  }

  .navplan-print-set,
  .planning-print-set {
    display: block;
    margin: 0;
    overflow: visible;
  }

  body.print-navplans .navplan-print-set {
    display: block;
  }

  .navplan-form {
    width: 200mm;
    height: 100mm;
    min-width: 0;
    margin: 0 0 5mm;
    aspect-ratio: auto;
    break-inside: avoid;
    break-after: auto;
  }

  .navplan-form:last-child {
    margin-bottom: 0;
  }

  .navplan-form .navplan-details {
    grid-auto-rows: minmax(1.15rem, auto);
  }

  .navplan-form .navplan-details > div {
    padding: 0.02rem 0.1rem;
    font-size: 1.18cqw;
  }

  .navplan-form .navplan-details .nav-label {
    font-size: 0.85cqw;
  }

  .navplan-form .navplan-times {
    min-height: 1.15rem;
    font-size: 0.78cqw;
    font-weight: 650;
  }

  .navplan-form .navplan-times > div {
    padding: 0.02rem 0.08rem;
  }

  .navplan-form .navplan-log th {
    height: 1.1rem;
    padding-inline: 0.08rem;
    font-size: 0.78cqw;
  }

  .navplan-form .navplan-log thead {
    height: 1.1rem;
  }

  .navplan-form .navplan-log tbody {
    height: calc(100% - 1.1rem);
  }

  .navplan-form .navplan-log tbody td {
    padding-inline: 0.08rem;
    font-size: 1.3cqw;
  }

  .navplan-form .navplan-log .nav-departure-row th:nth-child(-n + 3) {
    font-size: 1.2cqw;
  }

  .navplan-form .navplan-log col.freq { width: 6%; }
  .navplan-form .navplan-log col.cs { width: 5.1%; }
  .navplan-form .navplan-log col.checkpoint { width: 20.4%; }
  .navplan-form .navplan-log col.mc { width: 4.8%; }
  .navplan-form .navplan-log col.dist { width: 5.3%; }
  .navplan-form .navplan-log col.alt { width: 5.2%; }
  .navplan-form .navplan-log col.eet { width: 8%; }
  .navplan-form .navplan-log col.total-eet { width: 8%; }
  .navplan-form .navplan-log col.eto { width: 5.2%; }
  .navplan-form .navplan-log col.ato { width: 5.5%; }
  .navplan-form .navplan-log col.fuel-remaining { width: 8.5%; }
  .navplan-form .navplan-log col.remarks { width: 18%; }

  .planning-sheet {
    page: planning-page;
  }

  .flight-sheet {
    position: relative;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    break-after: page;
    margin: 0;
    overflow: visible;
    padding: 0;
  }

  .flight-sheet:last-child {
    break-after: auto;
  }

  .flight-sheet-section,
  .print-table-block,
  .print-table tr {
    break-inside: avoid;
  }

  .flight-sheet-header h2 {
    font-size: 15pt;
  }

  .flight-sheet-section {
    margin-top: 2mm;
  }

  .print-table {
    font-size: 6.5pt;
  }

  .print-table th,
  .print-table td {
    padding: 0.8mm 1.2mm;
  }

  .flight-sheet-header {
    padding-bottom: 2mm;
  }

  .flight-sheet-header p,
  .flight-sheet-number {
    font-size: 7pt;
  }

  .flight-sheet-meta {
    margin: 2mm 0;
  }

  .flight-sheet-meta div {
    padding: 1.2mm 1.5mm;
  }

  .flight-sheet-meta dt {
    font-size: 5.5pt;
  }

  .flight-sheet-meta dd {
    font-size: 7.5pt;
  }

  .flight-sheet-section h3,
  .print-table-block h3,
  .print-table-block h4 {
    margin-bottom: 1mm;
    font-size: 8pt;
  }

  .print-wb-layout {
    grid-template-columns: 1fr 1fr 1.1fr;
    gap: 2mm;
  }

  .planning-sheet .wb-envelope-svg {
    max-height: 44mm;
  }

  .flight-sheet-footer,
  .sheet-note,
  .print-status,
  .print-warning {
    font-size: 5.5pt;
  }

  .planning-sheet {
    min-height: 192mm;
    padding-bottom: 5mm;
  }

  .planning-sheet .flight-sheet-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    margin-top: 0;
  }

  .wb-envelope-figure {
    padding: 1mm;
  }

.wb-envelope-figure figcaption {
    margin-bottom: 1mm;
    font-size: 7pt;
  }
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/source-sans-3-variable-03b1eb16.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

/* Compact operations-manual layout for VFR Voice */
.voice-document {
  min-height: 100%;
  background: #e9eef2;
}

.voice-body,
.voice-page,
.voice-page h1,
.voice-page h2,
.voice-page h3,
.voice-page h4,
.voice-page button,
.voice-page input {
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
}

.voice-body {
  min-height: 100vh;
  margin: 0;
  background: #e9eef2;
}

.voice-body > main {
  min-height: calc(100vh - var(--site-header-height));
  padding: 0.75rem 0 2.5rem;
}

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

.voice-page {
  --voice-navy: #173f5d;
  --voice-navy-dark: #102f47;
  --voice-blue: #28688d;
  --voice-ink: #18232d;
  --voice-muted: #60707c;
  --voice-line: #c8d2da;
  --voice-line-strong: #a9b7c2;
  --voice-soft: #f3f6f8;
  --voice-group: #e3ebf1;
  width: min(100% - 1.5rem, 90rem);
  margin: 0 auto;
  color: var(--voice-ink);
  font-weight: 400;
}

.voice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.7rem;
  border: 1px solid var(--voice-navy-dark);
  border-radius: 0.35rem;
  background: var(--voice-navy-dark);
  color: white;
  padding: 0.7rem 0.85rem;
}

.voice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.voice-header h1 {
  max-width: none;
  color: white;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.voice-actions button,
.voice-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.05rem;
  border: 1px solid #8fa6b6;
  border-radius: 0.2rem;
  background: transparent;
  color: white;
  padding: 0.42rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.voice-actions a:hover {
  border-color: white;
  background: rgb(255 255 255 / 9%);
}

.voice-actions button,
.voice-actions [data-print-voice] {
  border-color: white;
  background: white;
  color: var(--voice-navy-dark);
}

.voice-actions [data-print-voice]:hover {
  background: #eef4f7;
}

.voice-section {
  overflow: hidden;
  border: 1px solid var(--voice-line-strong);
  border-radius: 0.3rem;
  background: white;
  margin-top: 0.65rem;
  box-shadow: 0 1px 2px rgb(16 47 71 / 7%);
}

.voice-section > h2,
.voice-section-title-row {
  margin: 0;
  background: var(--voice-navy);
  color: white;
  padding: 0.46rem 0.65rem;
}

.voice-section > h2,
.voice-section-title-row h2 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.2;
}

.voice-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.voice-table {
  border-top: 0;
}

.voice-call-row {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  border-bottom: 1px solid var(--voice-line);
}

.voice-call-row:last-child {
  border-bottom: 0;
}

.voice-call-title {
  border-right: 1px solid var(--voice-line);
  background: var(--voice-soft);
  padding: 0.44rem 0.58rem;
  font-size: 0.77rem;
  font-weight: 650;
  line-height: 1.35;
}

.voice-call-content {
  min-width: 0;
  padding: 0.36rem 0.58rem 0.42rem;
}

.voice-line-label {
  display: block;
  margin-bottom: 0.08rem;
  color: var(--voice-muted);
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.voice-structure {
  color: var(--voice-ink);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.38;
}

.voice-call-content .radio-call {
  margin-top: 0.14rem;
  color: #2c3943;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 450;
  line-height: 1.46;
}

.voice-call-content .radio-call mark {
  border-radius: 0.12rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0.035rem 0.12rem;
}

.voice-call-content .radio-call mark.station { background: #deebf2; color: #174f70; }
.voice-call-content .radio-call mark.identity { background: #f5edc9; color: #655307; }
.voice-call-content .radio-call mark.situation { background: #e9edef; color: #37434c; }
.voice-call-content .radio-call mark.intention { background: #f8e3d7; color: #8a431c; }
.voice-call-content .radio-call mark.alert { background: #f8d8dc; color: #9b1c29; }

.voice-call-note {
  margin-top: 0.2rem;
  color: var(--voice-muted);
  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1.4;
}

.voice-group-row {
  border-bottom: 1px solid var(--voice-line-strong);
  background: var(--voice-group);
  color: #273c4c;
  padding: 0.29rem 0.58rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
}

.radio-airport-search input,
.voice-page .radio-airport-search input {
  width: 15rem;
  height: 1.8rem;
  border: 1px solid #89a2b3;
  border-radius: 0.2rem;
  outline: none;
  background: white;
  color: var(--voice-ink);
  font-size: 0.7rem;
  font-weight: 400;
  padding: 0.28rem 0.5rem;
}

.radio-airport-search input:focus,
.voice-page .radio-airport-search input:focus {
  border-color: white;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 25%);
}

.radio-airport-list {
  display: grid;
  gap: 0;
}

.voice-page .radio-airport {
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--voice-line);
  border-radius: 0;
  background: white;
}

.voice-page .radio-airport[hidden] {
  display: none;
}

.voice-page .radio-airport:last-child {
  border-bottom: 0;
}

.voice-page .radio-airport summary {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) 1.5rem;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.55rem;
  border-left: 3px solid transparent;
  cursor: pointer;
  padding: 0.38rem 0.55rem 0.38rem 0.5rem;
  list-style: none;
}

.voice-page .radio-airport summary::-webkit-details-marker {
  display: none;
}

.voice-page .radio-airport summary:hover {
  background: #f5f8fa;
}

.voice-page .radio-airport[open] summary {
  border-left-color: var(--voice-blue);
  background: #edf3f7;
}

.voice-page .airport-code {
  color: var(--voice-blue);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.voice-page .radio-airport summary strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
}

.voice-page .radio-airport summary small {
  display: block;
  margin-top: 0.04rem;
  color: var(--voice-muted);
  font-size: 0.63rem;
  font-weight: 400;
  line-height: 1.3;
}

.voice-page .radio-airport summary i {
  color: #597080;
  font-size: 0.95rem;
  font-style: normal;
  text-align: center;
  transition: transform 0.15s ease;
}

.voice-page .radio-airport[open] summary i {
  transform: rotate(45deg);
}

.voice-page .airport-detail {
  display: grid;
  grid-template-columns: 19rem minmax(0, 1fr);
  border-top: 1px solid var(--voice-line);
}

.voice-page .airport-notes,
.voice-page .airport-examples {
  padding: 0;
}

.voice-page .airport-notes {
  border-right: 1px solid var(--voice-line);
  background: #f7f8f9;
  padding: 0.55rem 0.7rem;
}

.voice-page .airport-detail h3 {
  margin-bottom: 0.28rem;
  color: #42525e;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.voice-page .airport-notes ul {
  margin: 0;
  padding-left: 1rem;
  list-style: disc outside;
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.45;
}

.voice-page .airport-notes li::marker {
  color: var(--voice-blue);
  font-size: 0.8em;
}

.voice-page .airport-notes li + li {
  margin-top: 0.16rem;
}

.voice-page .airport-examples > .voice-call-row {
  padding: 0;
}

.voice-page .airport-examples .voice-call-row {
  grid-template-columns: 8.25rem minmax(0, 1fr);
}

.voice-page .airport-warning {
  border: 0;
  border-top: 1px solid #e0c7a9;
  border-left: 4px solid #b95b24;
  margin: 0;
  background: #fff3e7;
  color: #62351f;
  padding: 0.38rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.4;
}

.voice-page .radio-no-results {
  border: 0;
  border-radius: 0;
  color: var(--voice-muted);
  padding: 1rem;
  font-size: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 42rem) {
  .voice-body > main {
    padding: 0.35rem 0 1.5rem;
  }

  .voice-page {
    width: min(100% - 0.7rem, 90rem);
  }

  .voice-header {
    align-items: center;
    flex-direction: row;
    gap: 0.5rem;
    min-height: 3.15rem;
    padding: 0.55rem 0.6rem;
  }

  .voice-header h1 {
    font-size: 1.3rem;
  }

  .voice-actions {
    width: auto;
  }

  .voice-actions > * {
    flex: initial;
  }

  .voice-section-title-row {
    align-items: stretch;
    flex-direction: column;
    gap: 0.35rem;
  }

  .radio-airport-search input,
  .voice-page .radio-airport-search input {
    width: 100%;
  }

  .voice-call-row,
  .voice-page .airport-examples .voice-call-row {
    grid-template-columns: 1fr;
  }

  .voice-call-title {
    border-right: 0;
    border-bottom: 1px solid var(--voice-line);
    padding-block: 0.32rem;
  }

  .voice-page .airport-detail {
    grid-template-columns: 1fr;
  }

  .voice-page .airport-notes {
    border-right: 0;
    border-bottom: 1px solid var(--voice-line);
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 6mm;
  }

  .voice-document,
  .voice-body {
    background: white !important;
  }

  .voice-body > main {
    min-height: 0;
    padding: 0;
  }

  .voice-page {
    width: auto;
    margin: 0;
    color: #000;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .voice-header {
    border: 0;
    border-bottom: 0.6mm solid #1f4e78;
    border-radius: 0;
    background: white;
    color: #17212b;
    padding: 0 0 2mm;
  }

  .voice-header h1 {
    color: #17212b;
    font-size: 16pt;
  }

  .no-print,
  .radio-no-results,
  #bmc-wbtn {
    display: none !important;
  }

  .voice-section {
    border: 0.25mm solid #777;
    border-radius: 0;
    margin-top: 2.5mm;
    box-shadow: none;
    break-inside: auto;
  }

  .voice-section--keep {
    break-inside: avoid;
  }

  .voice-section > h2,
  .voice-section-title-row {
    padding: 1.2mm 1.8mm;
    break-after: avoid;
  }

  .voice-section > h2,
  .voice-section-title-row h2 {
    font-size: 8.6pt;
  }

  .voice-table {
    border-top-width: 0.25mm;
  }

  .voice-call-row {
    grid-template-columns: 31mm minmax(0, 1fr);
    border-bottom: 0.2mm solid #aaa;
    break-inside: avoid;
  }

  .voice-call-title {
    border-right: 0.2mm solid #aaa;
    padding: 1.2mm 1.5mm;
    font-size: 6.5pt;
  }

  .voice-call-content {
    padding: 1mm 1.5mm 1.2mm;
  }

  .voice-line-label {
    margin-bottom: 0;
    font-size: 4.4pt;
  }

  .voice-structure {
    font-size: 5.9pt;
    line-height: 1.25;
  }

  .voice-call-content .radio-call {
    margin-top: 0.4mm;
    font-size: 6.2pt;
    font-weight: 450;
    line-height: 1.3;
  }

  .voice-call-content .radio-call mark {
    padding: 0.1mm 0.35mm;
  }

  .voice-call-note {
    margin-top: 0.6mm;
    font-size: 5.2pt;
    line-height: 1.25;
  }

  .voice-group-row {
    padding: 0.8mm 1.5mm;
    font-size: 6pt;
    break-after: avoid;
  }

  .voice-page .radio-airport {
    border-bottom: 0.2mm solid #777;
    break-inside: avoid;
  }

  .voice-page .radio-airport summary {
    grid-template-columns: 16mm minmax(0, 1fr) 0;
    min-height: 0;
    border-left: 0;
    padding: 1mm 1.5mm;
  }

  .voice-page .radio-airport summary i {
    display: none;
  }

  .voice-page .radio-airport summary strong {
    font-size: 6.5pt;
  }

  .voice-page .radio-airport summary small {
    font-size: 5.2pt;
  }

  .voice-page .airport-detail {
    grid-template-columns: 47mm minmax(0, 1fr);
  }

  .voice-page .airport-notes {
    padding: 1.5mm 2mm;
  }

  .voice-page .airport-detail h3 {
    margin-bottom: 0.8mm;
    font-size: 5.5pt;
  }

  .voice-page .airport-notes ul,
  .voice-page .airport-warning {
    font-size: 5.9pt;
    line-height: 1.35;
  }

  .voice-page .airport-examples .voice-call-row {
    grid-template-columns: 24mm minmax(0, 1fr);
  }

  .voice-page .airport-warning {
    padding: 1mm 1.5mm;
  }
}

@media (max-width: 36rem) {
  .site-nav {
    width: min(100% - 1rem, 72rem);
    gap: 0.45rem;
  }

  .brand-link {
    font-size: 0.86rem;
  }

  .site-header .nav-links {
    gap: 0.5rem;
    font-size: 0.68rem;
  }
}

/* Deployment polish: keyboard access, active navigation, and a script-free
   support link that does not hand every visit to a third party. */
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  border-radius: 0.25rem;
  background: white;
  color: #102f47;
  padding: 0.55rem 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 18px rgb(0 0 0 / 20%);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header .nav-links {
  min-width: 0;
  overflow: visible;
}

.site-header .nav-link {
  border-radius: 0.2rem;
  padding: 0.35rem 0.45rem;
}

.site-header .nav-link:hover,
.site-header .nav-link[aria-current="page"] {
  background: rgb(255 255 255 / 12%);
  color: white;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 0.2rem;
  cursor: pointer;
  padding: 0.35rem 0.45rem;
  color: #d7e2e9;
  list-style: none;
  white-space: nowrap;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary:hover,
.nav-dropdown[open] > summary,
.nav-dropdown.is-current > summary {
  background: rgb(255 255 255 / 12%);
  color: white;
}

.nav-dropdown > summary svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 150ms ease;
}

.nav-dropdown[open] > summary svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  z-index: 30;
  display: grid;
  width: 15rem;
  overflow: hidden;
  border: 1px solid #9badb9;
  border-radius: 0.3rem;
  background: white;
  color: #253b4a;
  padding-block: 0.3rem;
  box-shadow: 0 14px 34px rgb(10 31 46 / 28%);
}

.site-header .nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 0.8rem;
  color: #253b4a;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.site-header .nav-dropdown-menu a:hover {
  background: #edf3f7;
  color: #102f47;
}

.site-header .nav-dropdown-menu a[aria-current="page"] {
  border-left: 3px solid #28688d;
  background: #e3edf3;
  color: #173f5d;
  padding-left: calc(0.8rem - 3px);
  font-weight: 700;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #e6b94e;
  outline-offset: 3px;
}

/* Temporary cross-device text transfer. */
.transfer-page {
  min-height: calc(100vh - var(--site-header-height));
  background: #e9eef2;
  color: #18232d;
  padding: clamp(1rem, 4vw, 3.5rem) 1rem 5rem;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
}

.transfer-panel {
  width: min(100%, 46rem);
  border: 1px solid #a9b7c2;
  border-radius: 0.4rem;
  margin-inline: auto;
  background: white;
  padding: clamp(1.25rem, 5vw, 3rem);
  box-shadow: 0 12px 36px rgb(16 47 71 / 10%);
}

.transfer-panel--compact {
  width: min(100%, 38rem);
}

.transfer-heading {
  border-bottom: 1px solid #c8d2da;
  padding-bottom: 1.5rem;
}

.transfer-kicker {
  margin: 0 0 0.4rem;
  color: #28688d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.transfer-heading h1 {
  margin: 0;
  color: #102f47;
  font-size: clamp(2.15rem, 7vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.transfer-heading > p:last-child {
  max-width: 37rem;
  margin: 0.8rem 0 0;
  color: #60707c;
  font-size: 1rem;
  line-height: 1.5;
}

.transfer-form,
.transfer-short-url,
.transfer-content {
  margin-top: 1.5rem;
}

.transfer-field label,
.transfer-short-url > label {
  display: block;
  margin-bottom: 0.4rem;
  color: #273c4c;
  font-size: 0.82rem;
  font-weight: 700;
}

.transfer-field textarea,
.transfer-short-url input {
  width: 100%;
  border: 1px solid #91a3b0;
  border-radius: 0.3rem;
  background: #fbfcfd;
  color: #18232d;
  font: inherit;
}

.transfer-field textarea {
  display: block;
  min-height: 13rem;
  resize: vertical;
  padding: 0.85rem;
  line-height: 1.5;
}

.transfer-field > p,
.transfer-short-url > p {
  margin: 0.35rem 0 0;
  color: #60707c;
  font-size: 0.75rem;
}

.transfer-primary-button,
.transfer-primary-link,
.transfer-copy-button,
.transfer-copy-text-button {
  border: 0;
  border-radius: 0.3rem;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.transfer-primary-button,
.transfer-primary-link {
  display: inline-flex;
  justify-content: center;
  margin-top: 1rem;
  background: #176f68;
  color: white;
  padding: 0.72rem 1rem;
}

.transfer-primary-button:hover,
.transfer-primary-link:hover {
  background: #0b5c56;
}

.transfer-privacy-note {
  border-left: 4px solid #c8912d;
  margin-top: 1.75rem;
  background: #fff8e8;
  color: #59451f;
  padding: 0.8rem 0.95rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.transfer-privacy-note p {
  margin: 0.2rem 0 0;
}

.transfer-errors {
  border: 1px solid #d09aa6;
  border-left: 4px solid #a93650;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  background: #fff1f4;
  color: #72263a;
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
}

.transfer-errors ul {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
}

.transfer-short-url > div {
  display: flex;
}

.transfer-short-url input {
  min-width: 0;
  border-radius: 0.3rem 0 0 0.3rem;
  padding: 0.72rem;
  color: #173f5d;
  font-weight: 700;
}

.transfer-copy-button,
.transfer-copy-text-button {
  background: #173f5d;
  color: white;
  padding: 0.65rem 0.9rem;
  white-space: nowrap;
}

.transfer-copy-button {
  border-radius: 0 0.3rem 0.3rem 0;
}

.transfer-copy-button:hover,
.transfer-copy-text-button:hover {
  background: #102f47;
}

.transfer-content {
  border: 1px solid #b8c5ce;
  border-radius: 0.3rem;
  background: #f3f6f8;
}

.transfer-content-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #b8c5ce;
  padding: 0.55rem 0.7rem;
}

.transfer-content-heading h2 {
  margin: 0;
  color: #273c4c;
  font-size: 0.82rem;
  font-weight: 700;
}

.transfer-copy-text-button {
  padding: 0.42rem 0.65rem;
  font-size: 0.74rem;
}

.transfer-content pre {
  max-height: 28rem;
  overflow: auto;
  margin: 0;
  background: white;
  padding: 1rem;
  font: 0.93rem/1.55 "Source Sans 3", Arial, Helvetica, sans-serif;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.transfer-content .transfer-primary-link {
  margin: 0.75rem;
}

.transfer-secondary-link {
  display: inline-block;
  margin-top: 1.35rem;
  color: #28688d;
  font-size: 0.85rem;
  font-weight: 700;
}

.transfer-secondary-link:hover {
  text-decoration: underline;
}

.flash-stack {
  position: fixed;
  top: calc(var(--site-header-height) + 0.75rem);
  right: 0.75rem;
  z-index: 40;
  width: min(calc(100% - 1.5rem), 28rem);
}

.flash-message {
  border: 1px solid #91a3b0;
  border-radius: 0.3rem;
  margin: 0;
  background: white;
  color: #273c4c;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 8px 24px rgb(16 47 71 / 16%);
  font: 0.85rem/1.4 "Source Sans 3", Arial, Helvetica, sans-serif;
}

.flash-message--alert {
  border-color: #c77c8d;
  color: #72263a;
}

@media (max-width: 36rem) {
  .transfer-page {
    padding: 0.5rem 0.5rem 4.5rem;
  }

  .transfer-panel {
    padding: 1.25rem 1rem;
  }

  .transfer-short-url > div {
    align-items: stretch;
    flex-direction: column;
    gap: 0.45rem;
  }

  .transfer-short-url input,
  .transfer-copy-button {
    border-radius: 0.3rem;
  }
}

.support-link {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  border: 1px solid #315b78;
  border-radius: 999px;
  background: #102f47;
  color: white;
  padding: 0.55rem 0.9rem;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 650;
  box-shadow: 0 6px 22px rgb(16 47 71 / 24%);
  transition: background 150ms ease, transform 150ms ease;
}

.support-link:hover {
  background: #173f5d;
  transform: translateY(-1px);
}

@media (max-width: 36rem) {
  .site-nav {
    min-width: 0;
  }

  .brand-link {
    flex: 0 0 auto;
  }

  .support-link {
    right: 0.65rem;
    bottom: 0.65rem;
    width: 2.75rem;
    justify-content: center;
    padding-inline: 0;
  }

  .support-link span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .skip-link,
  .support-link {
    display: none !important;
  }
}

/* Minimal greeting shown inside the standard site shell. */
.home-greeting {
  display: grid;
  width: 100%;
  min-height: calc(100vh - var(--site-header-height));
  min-height: calc(100dvh - var(--site-header-height));
  place-items: center;
  overflow: hidden;
  background: #fff;
  padding: clamp(2rem, 8vw, 6rem);
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
}

.home-greeting-text {
  margin: 0;
  color: #102f47;
  font: italic 350 clamp(2.65rem, 6vw, 4.5rem) / 1.2 "Source Sans 3", Arial, Helvetica, sans-serif;
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
}

.home-greeting-text.is-writing {
  animation: write-greeting 2s cubic-bezier(0.42, 0, 0.2, 1) 120ms both;
}

@keyframes write-greeting {
  from {
    clip-path: inset(-20% 100% -25% -8%);
  }

  to {
    clip-path: inset(-20% -8% -25% -8%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-greeting-text.is-writing {
    animation: none;
    clip-path: none;
  }
}
