/* Airport diagram maker (/gifts/airport/): on top of the shared maker look (/gifts/globes/maker.css). */

.ap [hidden] { display: none !important; }
.ap .wm-seg button { padding: 6px 8px; white-space: normal; line-height: 1.25; }
.ap-chips { margin-top: 10px; }
.ap-chips .wm-chip, .ap-mono .wm-chip, .ap-codes .wm-chip { font-size: 0.76rem; padding: 5px 10px; }
.ap-chips .wm-chip b { font-weight: 700; letter-spacing: 0.04em; margin-right: 2px; }

/* the map: the airfield, the plaque's outline in ochre */
.ap .ap-mapwrap { max-width: none; position: relative; margin-top: 10px; }
.ap .ap-map { aspect-ratio: 4 / 3.3; cursor: crosshair; }

/* the runways found */
.ap-runways { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8rem; color: var(--muted); }
.ap-runways:empty { display: none; }
.ap-runways b { color: var(--ink); font-weight: 700; letter-spacing: 0.03em; }

/* the code: a short field and the codes the airport list knows */
.ap-coderow { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.ap .ap-code { flex: 0 0 9.5em; margin-top: 0; }
.ap .ap-code input { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.ap-codes { margin: 0 0 4px; }
.ap-codes:empty { display: none; }

.ap-turn { display: flex; gap: 6px; margin-top: 8px; }
.ap-turn .wm-btn { flex: 1 1 0; justify-content: center; }
.ap-turn .wm-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); }

.ap .wm-check-inline { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 0.86rem; cursor: pointer; }
.ap .wm-check-inline input { accent-color: var(--gold); }
.ap-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ap .ap-row .wm-seg { display: inline-flex; }

/* the palettes, with their filaments as dots */
.ap-pal button { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ap-dots { display: flex; gap: 2px; }
.ap-dots i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.ap-mono { margin-top: 10px; }
.ap-mono .wm-chip i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.ap-swatches { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 0.78rem; color: var(--muted); }
.ap-swatches li { display: flex; align-items: center; gap: 6px; }
.ap-swatches i { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }

.ap-warn { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ap-warn:empty { display: none; }
.ap-warn li { font-size: 0.78rem; line-height: 1.4; color: #f3d38a; background: rgba(217, 177, 74, 0.1); border-radius: 8px; padding: 7px 9px; }

/* the logbook */
.ap-h3 { margin: 18px 0 8px; font-size: 0.92rem; }
.ap-log { display: flex; gap: 8px; }
.ap-log input {
    flex: 1 1 auto; min-width: 0; border: 0; border-radius: 9px; background: var(--field); color: var(--ink);
    font: inherit; padding: 8px 10px; text-transform: uppercase; letter-spacing: 0.06em;
}
.ap-log input::placeholder { text-transform: none; letter-spacing: 0; color: var(--muted); }

@media (max-width: 560px) {
    .ap .wm-stagebar .wm-btn span { display: none; }
    .ap .ap-code { flex-basis: 100%; }
}
