/* Self-service new-airline page (SPEC §M-03 T13d).
 *
 * Same discipline as the airport statistics page above: the measure is
 * the single centred reading column every page gets from base.html's
 * `main`, and every box sizes to its own content rather than being
 * stretched to the column. The form is deliberately narrow — it is two
 * fields, not a document — because a wide form reads as "many fields"
 * and this one's job is to look answerable in five seconds.
 *
 * No map-shell dark tokens, for the same reason pages.css never imports
 * them: this page is read, not hovered.
 */

:root {
  --na-ok: #17663a;
  --na-bad: #a3251f;
  --na-live: var(--accent);
}

.na-form,
.na-watch {
  max-width: 34rem;
}

/* Two fields, stacked, each labelled above its control, so the form reads
 * top-to-bottom without a table pretending to be a form. */
.na-form .na-field {
  display: block;
  margin: 0 0 0.9rem;
}

.na-form .na-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.na-form select,
.na-form input[type="text"] {
  font: inherit;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  max-width: 18rem;
}

.na-form button {
  font: inherit;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.na-form button[disabled] {
  opacity: 0.55;
  cursor: progress;
}

/* The status line reserves its own height so the button does not jump
 * when a message arrives under it. */
#na_status {
  min-height: 1.3rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

#na_status[data-tone="ok"] {
  color: var(--na-ok);
}

#na_status[data-tone="bad"] {
  color: var(--na-bad);
}

#na_status[data-tone="live"] {
  color: var(--na-live);
}

#na_status[data-tone="warn"] {
  color: #8a6100;
}

/* The step ladder: four real phases plus the terminal `Enabling`, drawn
 * as one state per marker rather than a percentage bar, because one
 * carrier's fetch measured 18 s to 1 858 s and any percentage of that
 * would be fiction. `is-done` and `is-active` are the only two states
 * the driver ever sets, and both are driven from the server payload. */
.na-ladder {
  margin: 1.25rem 0 0;
  padding-left: 1.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.na-ladder[hidden] {
  display: none;
}

.na-ladder li {
  margin: 0.2rem 0;
}

.na-ladder li.is-done {
  color: var(--na-ok);
}

.na-ladder li.is-active {
  color: var(--na-live);
  font-weight: 600;
}

.na-ladder .na-ladder__enable.is-done {
  color: var(--na-ok);
  font-weight: 600;
}

.na-ok {
  font-weight: 600;
}

.na-figure {
  margin: 1rem 0 1.5rem;
  max-width: 48rem;
}

.na-figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* There is deliberately **no** rule for the "New player?" offer here.
 *
 * The offer is injected into a player type-ahead, and no page that loads
 * this stylesheet contains one — `create.html` is a plain two-field form.
 * The row is styled in `shell.css`, the stylesheet the map shell (left
 * rail, gated intro, pop-over) actually loads. Sitting here is precisely
 * what made the landing-page offer render in browser-default blue with an
 * underline for its whole life: the rule existed, and every file that
 * needed it failed to load it. A checker that only read *this* file saw the
 * rule and reported it styled; the browser never saw it. */
