/* ==========================================================================
   pilots.php — page-only additions to the price-board system.
   Nothing here restyles a shared component; it adds the few structures this
   page needs: the on-page index, grouped ledger rows, the amenities list,
   the coordinates box, and a scroll wrapper so a wide ledger scrolls inside
   its board instead of the page.
   ========================================================================== */

/* The frequency strip sits under the page head's lede, then the index. */
.pagehead .freqs { margin-top: 1.6rem; }
.index { margin-top: 1.1rem; }
.index ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem .5rem; }
.index a { display: inline-flex; align-items: baseline; gap: .5rem; min-height: 2.75rem; padding: .5rem .8rem; border: 1px solid var(--navy-line); color: var(--on-navy); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.index a:hover { border-color: var(--sky); background: var(--navy-deep); }
.index .stencil { font-size: .95rem; color: var(--sky); letter-spacing: .06em; }

/* Secondary line inside a ledger or kv value: the unit, the source, the phone. */
.ledger .sub, .kv .sub { display: block; font-family: var(--font-mono); font-size: .72rem; font-weight: 400; letter-spacing: .01em; color: var(--paint-soft); margin-top: .15rem; }
.ledger .r .sub { text-align: right; }

/* Wide ledgers scroll inside their board, never the page. */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.scroll .ledger .r { white-space: nowrap; }

/* Grouped rows: the procedure name as a rule across the minimums ledger. */
.ledger .grp th { padding-top: 1.1rem; font-size: 1.05rem; letter-spacing: .04em; color: var(--paint); border-bottom: var(--frame) solid var(--navy); }
.ledger .grp th small { display: block; font-family: var(--font-mono); font-size: .72rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--paint-soft); margin-top: .2rem; }
.ledger .grp:first-child th { padding-top: .6rem; }
.mins th[scope="row"] { font-family: var(--font-mono); font-size: .9rem; letter-spacing: 0; text-transform: none; color: var(--paint); }

/* Both runway ends: the end numbers read as headings, the obstacle row wraps. */
.ends thead th { font-size: 1.2rem; letter-spacing: .04em; }
.ends thead th:first-child { font-size: .92rem; color: var(--paint-soft); }
.ends th[scope="row"] { width: 11rem; }
@media (max-width: 520px) { .ends th[scope="row"] { width: auto; font-size: .82rem; } }

/* Nearby fields: identifier large, name beneath it, weather with its phone. */
.near th[scope="row"] { font-family: var(--font-mono); font-size: 1.05rem; letter-spacing: 0; text-transform: none; }
.near th[scope="row"] a { color: var(--navy); text-decoration: none; }
.near th[scope="row"] a:hover { text-decoration: underline; }
.near th[scope="row"] small { display: block; font-family: var(--font-text); font-weight: 400; font-size: .8rem; color: var(--paint-soft); margin-top: .1rem; max-width: 22ch; }
.near td { font-size: .92rem; }

/* Amenities the airport lists: two short columns, no icons. */
.amen { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
.amen li { padding: .55rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: .02em; line-height: 1.15; }
.amen li small { display: block; font-family: var(--font-text); font-weight: 400; font-size: .82rem; color: var(--paint-soft); letter-spacing: 0; margin-top: .15rem; }
@media (max-width: 560px) { .amen { grid-template-columns: 1fr; } }

/* The lighting remark: the pullout quote sits beside its facts. */
.board .two { gap: 1.5rem 2rem; }
.pullout { max-width: 34ch; }

/* The reference point: one copyable line, then the rest. */
.coords { display: grid; gap: .9rem; }
.coords__val { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem .9rem; border: var(--frame) solid var(--navy); }
.coords__val .num { font-size: clamp(1.05rem, .9rem + .7vw, 1.35rem); font-weight: 700; }
.coords__copy { min-height: 2.75rem; padding: .4rem .9rem; border: var(--frame) solid var(--navy); background: var(--navy); color: var(--on-navy); font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.coords__copy:hover { background: var(--navy-deep); }
.coords__copy[hidden] { display: none; }

/* The three plate renders: tall figures, each a link to its PDF. */
.plateset { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.plateset a { display: block; }
.plateset img { width: 100%; height: auto; border: var(--frame) solid var(--navy); background: #fff; }
.plateset figcaption b { color: var(--paint); font-weight: 700; }

/* The attended flip sign has room to breathe inside its board. */
.board .flip { margin-top: 1rem; }
