/* PilotBuddy design decisions, 2026-09-19. See docs/design-decisions.md. */
@font-face{font-family:Jost;src:url('brand/jost-regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Jost;src:url('brand/jost-medium.ttf') format('truetype');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:Jost;src:url('brand/jost-semibold.ttf') format('truetype');font-style:normal;font-weight:600;font-display:swap}
:root{--type-caption:.75rem;--type-label:.875rem;--type-body:1rem;--type-section:1.25rem;--type-title:1.75rem;--type-metric:2.5rem;--ink:#262626;--muted:#666666;--text-inverse:#ffffff;--button-orange:#b84f1b;--button-secondary:#e9e9e6}
html body{font-family:Jost,sans-serif;font-size:var(--type-body);font-weight:400;line-height:1.5;color:var(--ink)}
body :is(button,input,select,textarea,code,pre){font-family:inherit}
body :is(h1,h2){font-size:var(--type-title);font-weight:600;line-height:1.25}
body h3{font-size:var(--type-section);font-weight:600;line-height:1.3}
body h4{font-size:var(--type-body);font-weight:600;line-height:1.35}
body :is(strong,b,th){font-weight:600}body small{font-size:var(--type-caption)}
body :is(label,.label){font-size:var(--type-label);font-weight:500}
body :is(button,.primary,.secondary){font-size:var(--type-label);font-weight:500}
body :is(input,select,textarea){font-size:var(--type-body);color:var(--ink)}
body .pb-wordmark{font-family:Jost,sans-serif;font-size:var(--type-title);font-weight:600;letter-spacing:-.025em}
body .top{height:72px}body aside{top:72px;height:calc(100vh - 72px);padding:16px 18px}
body .shell{min-height:calc(100vh - 194px)}body main{padding:24px 32px 32px;margin:0 auto}
body .head{margin-bottom:18px}body .card{padding:20px;margin-bottom:14px}
body .grid{gap:14px}body .field{gap:5px}body .button-row{margin-top:18px}
body :is(.primary,.secondary,.okay,.reconsider,.sky){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:8px 16px;border:1px solid transparent;border-radius:6px;font-size:var(--type-label);font-weight:500;line-height:1.4;text-decoration:none}
body .primary{background:var(--button-orange);color:var(--text-inverse)}
body :is(.secondary,.sky,.okay,.reconsider){background:var(--button-secondary);color:var(--ink)}
body .primary:hover:not(:disabled){background:#9e4215}body :is(.secondary,.sky,.okay,.reconsider):hover:not(:disabled){background:#deded9}
body button:disabled{opacity:.55;cursor:not-allowed}
body :is(button,a):focus-visible{outline:2px solid var(--button-orange);outline-offset:3px}
/* Navigation uses underlines, never filled selection blocks. */
body aside .steps>.step{background:transparent!important;border-radius:0;min-height:44px;padding:8px 6px;font-size:var(--type-body);font-weight:500;color:var(--text-inverse)}
body aside .steps>.step.active{background:transparent!important;color:var(--orange)}
body aside .steps>.step.active .chapter-label{text-decoration:underline;text-decoration-color:var(--orange);text-underline-offset:7px;text-decoration-thickness:2px}
body aside :is(.member-nav,#planMenu .step){background:transparent!important;border-radius:0;padding:6px 0;font-size:var(--type-label);font-weight:400;color:var(--text-inverse);line-height:1.5}
body aside :is(.member-nav.active,#planMenu .step.active){background:transparent!important;color:var(--orange)!important;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px}
body aside #planMenu{padding-left:51px!important}body aside [id$="Menu"]{margin-bottom:8px;line-height:1.5}
body aside .step:disabled{color:var(--text-inverse);opacity:.4;text-decoration:none}
body aside .nav-icon{flex-basis:28px}body aside .nav-icon svg{width:28px;height:28px}
body aside .side-note{font-size:var(--type-caption);margin-top:20px;padding-top:12px}
body #systemStatus .cloud-sync{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:12px 32px;margin:0;border-top:1px solid var(--line);font-size:var(--type-caption);color:var(--muted)}
body #systemStatus .cloud-sync button{font-size:var(--type-caption);min-height:32px;padding:6px 12px}
body:has(#cloudAuth:not([hidden]))>#systemStatus,body:has(#onboard:not(.hidden))>#systemStatus{display:none}
body #trainingPanel .train-title{margin-bottom:16px}body #trainingPanel .train-title h2{font-size:var(--type-title)}
body #trainingPanel :is(label,.helper){font-weight:400}body #trainingPanel label{font-weight:500}
body .route{font-size:var(--type-label);font-variant-numeric:tabular-nums}
body :is(.metric strong,.train-metric strong){font-size:var(--type-title);font-weight:600;font-variant-numeric:tabular-nums}
@media(max-width:850px){body aside{position:static;top:auto;height:auto;padding:12px 14px}body main{padding:20px 16px 24px}body #systemStatus .cloud-sync{padding:12px 16px}body .card{padding:16px}body .top .pb-wordmark{font-size:var(--type-title)}}
@media(pointer:coarse){body :is(button,.primary,.secondary,.sky,.okay,.reconsider){min-height:44px}body #systemStatus .cloud-sync button{min-height:44px}}
/* Profile and planning refinements: compact controls and minimal non-data ink. */
.airport-picker{position:relative}#homeAirportOptions{position:absolute;top:76px;left:0;right:0;z-index:8;max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:6px;background:white;box-shadow:0 6px 18px #0002}#homeAirportOptions [role=option]{padding:9px 12px;cursor:pointer;font-size:var(--type-label)}#homeAirportOptions [role=option]:hover,#homeAirportOptions [aria-selected=true]{background:#f1f1ee;color:var(--button-orange)}
.formula-help{position:relative;margin:0 0 12px;font-size:var(--type-caption)}.formula-help summary{cursor:pointer;color:var(--button-orange);text-decoration:underline;width:fit-content}.formula-popover{position:absolute;z-index:9;top:26px;left:0;width:min(440px,calc(100vw - 80px));max-height:380px;overflow:auto;background:white;border:1px solid var(--line);border-radius:8px;padding:14px;box-shadow:0 5px 20px #0002}.formula-popover p{margin:8px 0}.environment-card .metar,.environment-card #weather .check{background:transparent;border:0;border-radius:0;box-shadow:none;padding:6px 0}.environment-card .slider{background:#f3f3ef}.environment-card #environmentHelp{display:block;margin-top:4px;font-weight:400;max-width:52ch}.review-notifications{border-left:3px solid var(--button-orange);background:#fff6ee;padding:12px 16px;margin-bottom:16px}.review-link{display:block;text-align:left;background:none;border:0;padding:6px 0;color:var(--button-orange);text-decoration:underline;cursor:pointer}.review-badge{display:inline-grid;place-items:center;margin-left:8px;border-radius:50%;width:18px;height:18px;background:var(--button-orange);color:white;font-size:12px;font-weight:600}.review-badge[hidden]{display:none}

/* Keep Mission labels and controls aligned despite unequal helper-text lengths. */
#missionScreen .grid>.field{align-content:start;grid-auto-rows:max-content;min-width:0}
#missionScreen .grid>.field>:is(label,.label){white-space:nowrap}
#missionScreen .grid>.field>:is(input,select,.seg){min-height:48px}

/* Consistent field alignment and readable four-phase lesson progress. */
#profileForm .grid>.field{align-content:start;grid-auto-rows:max-content;min-width:0}
#profileForm .grid>.field>:is(input,select){height:48px;min-width:0}
#profileForm .airport-picker>input[type=hidden]{display:none}
.airport-options{position:absolute;top:76px;left:0;right:0;z-index:8;max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:6px;background:#fff;box-shadow:0 6px 18px #0002}
.airport-options [role=option]{padding:9px 12px;cursor:pointer;font-size:var(--type-label)}
.airport-options [role=option]:hover,.airport-options [aria-selected=true]{background:#f1f1ee;color:var(--button-orange)}
#dispatchScreen input[type=checkbox]{appearance:none;flex:0 0 20px;width:20px;height:20px;padding:0;border:1px solid #888;border-radius:3px;background:#fff;display:grid;place-content:center}
#dispatchScreen input[type=checkbox]:checked{background:#fff;border-color:#888;color:var(--orange)}
#dispatchScreen input[type=checkbox]:checked::after{content:'✓';color:var(--orange);font-size:20px;font-weight:600;line-height:1}
#dispatchScreen input[type=checkbox]:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.lesson-phases{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;width:100%}
.lesson-phase{position:relative;background:#666;isolation:isolate;text-align:center;min-height:30px;display:grid;place-items:center;overflow:hidden}
.lesson-phase::before{content:'';position:absolute;inset:0 auto 0 0;width:var(--phase-progress);background:#b64b0c;z-index:-1}
.lesson-phase span{color:#fff;font-size:var(--type-label);font-weight:500;white-space:nowrap}
.profile-switch-row{margin-top:24px}.profile-switch-row .secondary{background:#e5e5e5;color:#303030}
#profileSwitchDialog{max-width:520px;width:calc(100% - 32px);border:1px solid var(--line);border-radius:10px;padding:26px;color:var(--ink);background:white}
#profileSwitchDialog::backdrop{background:#0007}#profileSwitchDialog h2{margin-top:0}#profileSwitchDialog .button-row{justify-content:flex-end}
