.space-page { background: #fff; color: #203653; }
.space-page .skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px; color: #203653; background: #fff; }
.space-page .skip-link:focus { top: 12px; }
.space-page [hidden] { display: none !important; }
.space-page :focus-visible { outline: 3px solid #c39a45; outline-offset: 5px; }
.space-page .site-nav [aria-current="page"]::after { transform: scaleX(1); }
.space-wrap { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.space-page h1, .space-page h2, .space-page h3, .space-page h4 { line-height: 1.18; }
.space-page h2 { font-size: 34px; color: #12243a; margin-bottom: 18px; }
.space-page h3 { font-size: 26px; }
.space-page p { color: #596878; }
.space-page a:not(.button):not(.brand):not(.footer-brand):not(.site-nav a):hover { text-decoration: underline; text-underline-offset: 4px; }
.space-eyebrow { font-size: 12px; font-weight: 800; text-transform: uppercase; color: #087c82 !important; margin-bottom: 12px; }
.space-intro { padding-top: 114px; padding-bottom: 28px; }
.space-intro h1 { font-size: 56px; margin-bottom: 12px; }
.intro-baseline { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.intro-baseline p { font-size: 22px; margin-bottom: 14px; color: #203653; }
.intro-baseline a { font-size: 14px; color: #087c82; font-weight: 700; white-space: nowrap; }
.space-summary { max-width: 1000px; font-size: 16px; margin-bottom: 0; }
.planet-explorer { background: #12191d; color: #fff; padding: 28px 0 22px; }
.explorer-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.explorer-heading h2 { color: #fff; font-size: 24px; margin: 0; }
.planet-explorer .space-eyebrow { color: #7ed0c9 !important; margin-bottom: 6px; }
.explorer-count { color: #a8babf; font-size: 14px; font-variant-numeric: tabular-nums; }
.planet-options { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 10px; margin-bottom: 26px; }
.planet-option { position: relative; color: #e0e7e9; background: #080c0f; border: 1px solid #3e494d; border-radius: 6px; padding: 0 0 9px; cursor: pointer; overflow: hidden; transition: border-color .2s, transform .2s; min-width: 0; }
.planet-option img { width: 100%; height: 70px; object-fit: cover; }
.planet-option strong { display: block; font-size: 14px; margin-top: 4px; }
.planet-option .planet-index { display: block; font-size: 10px; color: #acbcc0; }
.planet-option[aria-pressed="true"] { border-color: #e4c270; box-shadow: inset 0 -3px #e4c270; }
.planet-option[aria-pressed="true"] strong { color: #f5dca3; }
.planet-player { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.4fr); gap: 36px; align-items: center; }
.planet-visual { margin: 0; min-width: 0; }
.planet-visual img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: contain; background: #000; border-radius: 4px; }
.planet-visual figcaption { display: flex; justify-content: space-between; gap: 12px; color: #9cabb1; font-size: 11px; margin-top: 9px; }
.planet-heading { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.planet-heading h3 { font-size: 34px; color: #fff; margin: 0; }
.audio-kind { display: inline-block; color: #a8e1d9; border-left: 2px solid #72bfb5; padding-left: 12px; font-size: 12px; font-weight: 700; }
.planet-detail { min-width: 0; }
.planet-detail h4 { font-size: 20px; margin: 0 0 8px; color: #f1e3c5; }
.planet-detail p { color: #c1cbcf; font-size: 14px; margin-bottom: 10px; }
#audio-description { min-height: 66px; }
#audio-waveform { display: block; width: 100%; height: 48px; margin: 10px 0; }
#planet-audio { display: block; width: 100%; height: 42px; }
.player-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; font-size: 11px; color: #aabac0; }
.planet-detail .audio-credit { font-size: 11px; margin-bottom: 3px; }
.source-link { color: #91d9d1; font-size: 12px; font-weight: 700; }
#audio-error { color: #ffb5a6; margin-top: 12px; }
.sound-context { border-top: 1px solid #394449; margin-top: 24px; padding-top: 14px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; font-size: 12px; }
.sound-context > p { color: #becbd0; margin: 0; }
.sound-context strong { color: #f1e3c5; }
.space-page summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.sound-context summary { padding-top: 0; }
.sound-method { padding-top: 8px; }
.sound-method p { color: #becbd0; }
.sound-method a { display: inline-block; margin: 0 18px 10px 0; color: #91d9d1; }
.sound-method code { font-size: 11px; overflow-wrap: anywhere; }
.mission-section { padding-block: 56px; }
.section-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: start; margin-bottom: 22px; max-width: none; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading p { font-size: 17px; }
.mission-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.mission-options button { --accent: #197e86; --tint: #edf7f7; border: 1px solid #c8d9de; border-top: 3px solid var(--accent); border-radius: 6px; background: var(--tint); text-align: left; color: #203653; padding: 22px 18px; cursor: pointer; transition: transform .2s, box-shadow .2s; min-width: 0; }
.mission-options button:nth-child(2) { --accent: #a47721; --tint: #fbf5e6; }
.mission-options button:nth-child(3) { --accent: #b05248; --tint: #fbefec; }
.mission-options button:nth-child(4) { --accent: #537350; --tint: #edf4ed; }
.mission-options button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.mission-options button span { display: block; font-size: 12px; color: #596878; }
.mission-options button .mission-number { color: var(--accent); font-weight: 800; margin-bottom: 16px; }
.mission-options button strong { display: block; font-size: 19px; line-height: 1.3; margin-bottom: 7px; }
.mission-narrative { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; padding: 34px 0; min-height: 320px; }
.mission-narrative h3 { margin-bottom: 12px; max-width: 470px; }
.mission-narrative p { font-size: 15px; }
.validation-note { border-left: 3px solid #c39a45; padding-left: 14px; font-size: 13px !important; margin-bottom: 0; }
.workflow { list-style: none; margin: 0; padding: 0; }
.workflow li { display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px solid #e0e6e7; }
.workflow li:first-child { padding-top: 0; }
.workflow li > span { font-size: 13px; color: #087c82; font-weight: 800; padding-top: 3px; }
.workflow strong { font-size: 16px; }
.workflow p { margin: 4px 0 0; font-size: 14px; }
.mission-calculator { border: 1px solid #d3dfe0; border-radius: 6px; padding: 28px; background: #fff; }
.calculator-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
.calculator-heading h3 { font-size: 25px; margin: 0; }
.reset-control { background: transparent; border: 0; border-bottom: 1px solid #168b91; color: #087c82; font-size: 13px; font-weight: 700; padding: 8px 0; cursor: pointer; white-space: nowrap; }
.calculator-layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1fr); gap: 48px; }
#mission-controls { min-width: 0; }
#mission-controls label { display: flex; justify-content: space-between; gap: 15px; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
#mission-controls output { color: #087c82; white-space: nowrap; font-variant-numeric: tabular-nums; }
.range-control { margin-bottom: 24px; }
.range-control input { width: 100%; accent-color: #168b91; cursor: pointer; margin: 0; height: 22px; }
.range-limits { display: flex; justify-content: space-between; font-size: 11px; color: #6b7880; }
.select-control { margin-bottom: 24px; }
.select-control select { width: 100%; color: #203653; font: inherit; background: #fff; border: 1px solid #afc2c8; border-radius: 4px; padding: 10px 12px; }
.budget-results { padding-left: 34px; border-left: 1px solid #d3dfe0; }
.budget-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 16px 0 28px; }
.budget-stats span { display: block; font-size: 12px; color: #596878; }
.budget-stats strong { display: block; font-size: 34px; color: #203653; font-variant-numeric: tabular-nums; margin-top: 6px; white-space: nowrap; }
.budget-stats div:nth-child(2) strong { color: #087c82; }
.budget-stats small { font-size: 14px; font-weight: 500; }
.data-bar-label { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; margin: 15px 0 6px; }
.data-bar { height: 9px; background: #edf1f2; border-radius: 2px; overflow: hidden; }
.data-bar span { display: block; height: 100%; background: #168b91; transition: width .15s; }
.data-bar .raw-bar { width: 100%; background: #728695; }
.budget-status { padding: 12px 0; margin-top: 12px; font-weight: 750; color: #087c82; font-size: 14px; }
.budget-status.over-budget { color: #a13c31; }
#budget-tradeoff { font-size: 13px; }
.calculator-disclaimer { font-size: 12px; border-top: 1px solid #dce4e5; padding-top: 12px; }
.budget-method { border-top: 1px solid #d3dfe0; font-size: 13px; }
.budget-method p { max-width: 960px; }
.brief-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding-top: 18px; }
.brief-actions .button { font-size: 14px; min-height: 46px; }
.brief-actions .text-link { font-size: 14px; }
#brief-status { font-size: 12px; color: #087c82; }
.local-note { font-size: 12px; margin: 18px 0 0; }
.space-pathway { background: #edf4f2; padding: 44px 0; }
.pathway-items { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin-top: 32px; }
.pathway-items article { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 26px; border: 1px solid #bbdcd5; border-top: 3px solid #168b91; border-radius: 6px; background: #e0f2ef; transition: transform 220ms ease, box-shadow 220ms ease; }
.pathway-items article:nth-child(2) { border-color: #e4d5ab; border-top-color: #c39a45; background: #fbefcf; }
.pathway-items article:nth-child(3) { border-color: #e5c7c1; border-top-color: #ad4d43; background: #f8e3df; }
.pathway-items article:focus-within { outline: 2px solid #168b91; outline-offset: 4px; box-shadow: 0 12px 24px rgba(18,36,58,.12); }
.pathway-items article > span { font-size: 12px; font-weight: 800; color: #596878; }
.pathway-items h3 { font-size: 23px; margin: 12px 0; }
.pathway-items p { font-size: 14px; }
.pathway-items a { margin-top: auto; align-self: flex-start; font-weight: 700; color: #087c82; font-size: 13px; }
.space-sources { padding-block: 40px; }
.space-sources h2 { font-size: 24px; }
.space-sources p { font-size: 13px; max-width: 850px; }
.space-sources details { border-top: 1px solid #d3dfe0; font-size: 14px; }
.space-sources li { margin-bottom: 14px; }
.space-sources a { color: #087c82; text-decoration: underline; text-underline-offset: 3px; }
.space-sources li small { display: block; color: #596878; margin-top: 3px; }
@media (hover:hover) and (pointer:fine) {
  .planet-option:hover { transform: translateY(-3px); border-color: #c39a45; }
  .mission-options button:hover { transform: translateY(-4px) scale(1.015); }
  .pathway-items article:hover { z-index: 1; transform: translateY(-4px) scale(1.025); box-shadow: 0 12px 24px rgba(18,36,58,.14); }
}
@media (max-width: 1000px) {
  .space-wrap { width: calc(100% - 44px); }
  .planet-options { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .planet-option img { height: 74px; object-fit: contain; background: #000; }
  .planet-player { gap: 24px; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
  .planet-visual figcaption { flex-direction: column; gap: 3px; }
  .mission-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .calculator-layout { gap: 24px; }
  .budget-results { padding-left: 24px; }
  .budget-stats strong { font-size: 28px; }
  .intro-baseline { align-items: flex-start; }
}
@media (max-width: 880px) {
  .pathway-items { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .space-wrap { width: calc(100% - 36px); }
  .space-intro { padding-top: 98px; padding-bottom: 24px; }
  .space-intro h1 { font-size: 38px; }
  .intro-baseline { display: block; }
  .intro-baseline p { font-size: 20px; margin-bottom: 6px; }
  .intro-baseline a { display: inline-block; margin-bottom: 14px; white-space: normal; }
  .space-summary { font-size: 14px; }
  .explorer-heading h2 { font-size: 22px; }
  .explorer-count { display: none; }
  .planet-options { gap: 7px; margin-bottom: 20px; }
  .planet-option img { height: 50px; }
  .planet-option strong { font-size: 11px; }
  .planet-option .planet-index { font-size: 9px; }
  .planet-player { grid-template-columns: 1fr; gap: 20px; }
  .planet-visual img { max-height: 230px; aspect-ratio: 16 / 9; }
  .planet-visual figcaption { flex-direction: row; font-size: 10px; }
  .planet-heading h3 { font-size: 28px; }
  #audio-description { min-height: 88px; }
  .sound-context { grid-template-columns: 1fr; gap: 14px; }
  .mission-section { padding-block: 36px; }
  .space-page h2 { font-size: 28px; }
  .section-heading, .mission-narrative, .calculator-layout, .pathway-items { grid-template-columns: 1fr; gap: 22px; }
  .section-heading p { font-size: 15px; }
  .mission-options { gap: 12px; }
  .mission-options button { padding: 16px 12px; }
  .mission-options button strong { font-size: 16px; }
  .mission-options button span { font-size: 11px; }
  .mission-options button .mission-number { margin-bottom: 10px; }
  .mission-narrative { padding-block: 28px; }
  .mission-calculator { padding: 20px 16px; }
  .calculator-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .calculator-heading h3 { font-size: 23px; }
  .budget-results { padding: 22px 0 0; border-left: 0; border-top: 1px solid #d3dfe0; }
  .budget-stats strong { font-size: 30px; }
  .budget-stats small { display: block; }
  .range-control:last-child { margin-bottom: 0; }
  .brief-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .brief-actions .text-link { align-self: flex-start; }
  .space-pathway { padding: 32px 0; }
  .pathway-items { gap: 28px; }
  .pathway-items article { padding: 22px; }
  .space-sources h2 { font-size: 24px; }
}
@media (max-width: 380px) {
  .budget-stats strong { font-size: 26px; }
  .mission-options { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .space-page *, .space-page *::before, .space-page *::after { scroll-behavior: auto; transition: none !important; }
  .planet-option:hover, .mission-options button:hover, .pathway-items article:hover { transform: none; }
}
