/* Match the TFT heading faces. Center the cap-to-descender span in the line box. */
@font-face {
  font-family: "TFT Karbon";
  src: url("/fonts/karbon-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  ascent-override: 80%;
  descent-override: 34%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "TFT Karbon";
  src: url("/fonts/karbon-medium.woff") format("woff");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  ascent-override: 80%;
  descent-override: 34%;
  line-gap-override: 0%;
}
:root { --heading: "TFT Karbon", "Helvetica Neue", Helvetica, Arial, sans-serif }
#app :is(h1, h2, h3) { line-height: 1.2; letter-spacing: -.015em }
#app .pilot-intro h1 { font-weight: 400; line-height: 1.16; text-wrap: balance }
#app .button { line-height: 1.3; font-weight: 600; padding-block: .65em }
#app { max-width: 1320px; padding-top: 22px }

.pilot-intro {
  padding: clamp(26px, 5vw, 72px);
  margin: 12px 0 24px;
  color: var(--ink);
  background: var(--wash);
  border-top: 6px solid var(--gold);
}
.pilot-intro h1 { max-width: 24ch }
.pilot-intro p { margin: 16px 0 }
.pilot-intro a, .pilot-links a { display: inline-flex }

.pilot-bar, .pilot-nav, .pilot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px }
.pilot-bar { justify-content: space-between }
.pilot-bar select { width: auto }
.pilot-nav { border-bottom: 1px solid var(--line); padding: 12px 0; margin-bottom: 24px; justify-content: flex-start }
.pilot-nav a { font-size: 14px; text-transform: none; letter-spacing: normal }
.pilot-nav [aria-current] { color: var(--blue) }

.pilot-stack, .pilot-form { display: grid; gap: 16px }
.pilot-form, .pilot-editor { color: var(--ink); background: var(--raised); border: 1px solid var(--line) }
.pilot-form { padding: 20px }
.pilot-editor { padding: 12px; min-height: 135px }
.pilot-grid, .pilot-links { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)) }
.pilot-links a { padding: 18px; background: var(--surface); border-left: 4px solid var(--blue); color: var(--blue); font-weight: 700 }
.pilot-check { display: flex; align-items: center; gap: 8px }
.pilot-check input { width: auto }
.pilot-stack a:not(.button) { text-decoration: underline }
.pilot-muted { color: var(--slate) }
.pilot-title { margin-bottom: 14px }

#app { --error-ink: #861f30; --error-line: #ae2333; --error-fill: #fff0f1 }
.pilot-error, .screen-error { color: var(--error-ink); background: var(--error-fill); border-left: 4px solid var(--error-line); padding: 12px }
.field-error { color: var(--error-ink) }
.pp-workspace input[aria-invalid="true"] {
  color: var(--error-ink);
  background: var(--error-fill);
  border-color: var(--error-line);
  box-shadow: inset 0 0 0 1px var(--error-line);
}
.pp-workspace input[aria-invalid="true"]:focus { outline-color: var(--error-line) }

@media screen and (prefers-color-scheme: dark) {
  #app { --error-ink: #ffb8c1; --error-line: #ff8893; --error-fill: #471d26 }
}
@media print {
  .top, .pilot-nav, .pilot-bar, .no-print { display: none !important }
  #app { padding: 0 }
  .pilot-intro { background: white; color: black }
}
