/* Layout: photo-led pages; full-bleed hero and bands, content on a 72rem column; tail numbers and rates set like instrument placards. */
:root {
  /* Navy and gray, taken from the club logo (navy field, steel-gray wings). */
  --bg: #f3f4f7;
  --surface: #ffffff;
  --ink: #151a2d;
  --muted: #5b6275;
  --line: #d8dbe4;
  --accent: #26327f;        /* logo navy */
  --accent-strong: #1a2360;
  --accent-ink: #ffffff;
  --tint: #e6e9f3;
  --steel: #6b7281;         /* wing gray */
  --hero-ink: #ffffff;
  --warn-bg: #fff1d6;
  --warn-ink: #8a4b00;
  --warn-line: #e9b65c;
  --shadow: 0 1px 2px rgba(21,26,45,.06), 0 8px 24px rgba(21,26,45,.07);

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.5rem, 1.6rem + 4vw, 4.4rem);
  --radius: 10px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1120; --surface: #151b2f; --ink: #e7e9f2; --muted: #a2a8bc; --line: #262d47;
    --accent: #9aa8f5; --accent-strong: #bcc6ff; --accent-ink: #0d1120; --tint: #1c2342; --steel: #9aa1b2;
    --warn-bg: #3a2909; --warn-ink: #f3c56f; --warn-line: #8a6420;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1120; --surface: #151b2f; --ink: #e7e9f2; --muted: #a2a8bc; --line: #262d47;
  --accent: #9aa8f5; --accent-strong: #bcc6ff; --accent-ink: #0d1120; --tint: #1c2342; --steel: #9aa1b2;
  --warn-bg: #3a2909; --warn-ink: #f3c56f; --warn-line: #8a6420;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: .005em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 600; }
p { margin: 0; }
.prose > * + * { margin-top: 1em; }
.prose { max-width: 65ch; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.eyebrow { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: var(--step--1); color: var(--accent); }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .02em; }
.select { user-select: all; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.stack { display: grid; gap: 1.25rem; }
.section-head { display: grid; gap: .6rem; margin-bottom: 2rem; max-width: 46rem; }
.section-head-wide { max-width: none; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; background: var(--surface); padding: .5rem 1rem; }


/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-logo { width: 110px; height: auto; flex: none; }
@media (max-width: 480px) { .brand-logo { width: 76px; } .brand-name { font-size: 1.1rem; } .brand { gap: .45rem; } .nav-mobile summary { padding: .4rem .75rem; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer-logo { width: 200px; max-width: 100%; height: auto; margin-bottom: .8rem; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .01em; white-space: nowrap; }
.brand-sub { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); letter-spacing: .06em; }
.nav-desktop { display: flex; align-items: center; gap: 1.5rem; white-space: nowrap; }
.nav-desktop a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding-block: .3rem; border-bottom: 2px solid transparent; }
.nav-desktop a:not(.btn):hover, .nav-desktop a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; font-weight: 600; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile nav { position: absolute; right: 0; top: calc(100% + .5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; min-width: 15rem; padding: .4rem; }
.nav-mobile nav a { color: var(--ink); text-decoration: none; padding: .65rem .8rem; border-radius: 6px; }
.nav-mobile nav a:hover, .nav-mobile nav a[aria-current="page"] { background: var(--tint); }
@media (max-width: 960px) { .nav-desktop { display: none; } .nav-mobile { display: block; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; text-decoration: none; border-radius: 999px; padding: .8rem 1.4rem; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn-light { background: #ffffff; color: #151a2d; }
.btn-light:hover { background: #e6e9f3; color: #151a2d; }
.btn-outline-light { border-color: rgba(255,255,255,.75); color: #ffffff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #ffffff; }
.btn-small { padding: .45rem 1rem; font-size: var(--step--1); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Home hero (photo always dark, so its text colors are fixed) */
.hero { position: relative; color: var(--hero-ink); background: #141b3f; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,19,52,.84) 0%, rgba(14,19,52,.55) 45%, rgba(14,19,52,.05) 80%); }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(4rem, 10vw, 8rem); display: grid; gap: 1.4rem; }
.hero h1 { max-width: 16ch; color: #ffffff; }
.nowrap { white-space: nowrap; }
.hero p { max-width: 36rem; font-size: var(--step-1); color: rgba(255,255,255,.9); }
.hero .eyebrow { color: #c3cdf2; }
@media (max-width: 640px) {
  .hero::after { background: linear-gradient(180deg, rgba(14,19,52,.55) 0%, rgba(14,19,52,.86) 100%); }
  .hero img { object-position: 70% 40%; }
}

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.fact { padding: 1.4rem 1.2rem; border-left: 1px solid var(--line); display: grid; gap: .2rem; }
.fact:first-child { border-left: 0; }
.fact-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.fact-label { color: var(--muted); font-size: var(--step--1); }
.fact-unit { font-size: .6em; font-weight: 600; letter-spacing: .02em; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-left: 0; border-top: 1px solid var(--line); padding: .9rem .25rem; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: baseline; gap: .8rem; }
  .fact:first-child { border-top: 0; }
  .fact-value { font-size: 1.6rem; }
}

/* Three-up explainer */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; }
.trio > div { display: grid; gap: .5rem; align-content: start; padding-top: 1rem; border-top: 3px solid var(--accent); }
.trio p { color: var(--muted); }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Aircraft cards */
.planes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }
@media (max-width: 760px) { .planes { grid-template-columns: 1fr; } }
.plane-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.plane-card:hover { color: var(--ink); border-color: var(--accent); }
.plane-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.plane-card-body { padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: .35rem; }
.plane-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.tail { font-family: var(--font-mono); font-weight: 500; letter-spacing: .06em; font-size: .95rem; color: var(--steel); }
.rate { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.rate small { font-family: var(--font-body); color: var(--muted); font-size: .8rem; }
.plane-card p { color: var(--muted); }

/* Split feature */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split-rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
@media (max-width: 820px) { .split, .split-rev { grid-template-columns: 1fr; } }
.split-top { align-items: start; }
.sticky-fig { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 5.5rem); }
@media (max-width: 860px) { .sticky-fig { position: static; } }
.photo-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
figure { margin: 0; }
figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .6rem; }

/* Info panels */
.panels { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }
@media (max-width: 760px) { .panels { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .7rem; align-content: start; }
.panel-accent { background: var(--tint); border-color: transparent; }
.kv { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: .45rem 1.25rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* Page header (inner pages) */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1rem; }
/* Member pages: eyebrow and heading on one line, with less space around them. */
.page-head-compact { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1.25rem; row-gap: .25rem; padding-block: clamp(1.75rem, 4vw, 2.75rem) 0; }
.page-head-compact h1 { font-size: var(--step-3); }
.page-head-compact .eyebrow a { color: inherit; text-decoration: none; }
.page-head-compact .eyebrow a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.contact-list li { overflow-wrap: anywhere; }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
@media (max-width: 560px) { .wide-only { display: none; } }
.form.contacts-form { max-width: none; }
.search-row { display: flex; gap: .75rem; max-width: 40rem; }
.search-row input { flex: 1; min-width: 0; }
.with-filters { display: grid; grid-template-columns: minmax(0, 1fr) 14rem; gap: 1.5rem; align-items: start; }
.filters summary { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); cursor: pointer; }
.filters[open] summary { margin-bottom: 1rem; }
.filters fieldset + fieldset { margin-top: 1.25rem; }
.filters .btn { margin-top: 1.25rem; }
@media (max-width: 860px) { .with-filters { grid-template-columns: 1fr; } .filters { order: -1; } }
@media (max-width: 560px) { .contacts-form th, .contacts-form td { padding: .7rem .55rem; } .contacts-form td.use { white-space: normal; } .contacts-form th { font-size: .8rem; } }
.tag { display: inline-block; padding: .05rem .55rem; border-radius: 999px; font-size: .85em; font-weight: 600; white-space: nowrap; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.tag-new { background: var(--tint); border-color: transparent; color: var(--accent); }
.tag-converted { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.form.activity-form { max-width: none; }
.activity-list .message-text { margin: .3rem 0 0; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
/* Slack archive */
.form .search-row select { width: auto; flex: 0 1 12rem; min-width: 0; }
@media (max-width: 560px) { .search-row { flex-wrap: wrap; } .search-row input { flex-basis: 100%; } .form .search-row select { flex: 1 1 0; } }
.channel-table th.num, .channel-table td.num { text-align: right; }
.channel-table .tag { margin-left: .3rem; }
.message-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.message { overflow-wrap: anywhere; scroll-margin-top: 5rem; }
.message:target { background: var(--tint); border-radius: var(--radius); outline: .5rem solid var(--tint); }
.message-meta { margin: 0; }
.message-meta a { color: var(--muted); }
.message .message-text { margin: .2rem 0 0; }
.message-text pre { margin: .4rem 0; padding: .6rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); white-space: pre-wrap; }
.message-text code { font-family: var(--font-mono); font-size: .9em; }
.message-files { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .5rem; }
.message-files img { display: block; max-width: min(100%, 28rem); height: auto; border-radius: var(--radius); margin-bottom: .2rem; }
.reactions { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 0; }
.reaction { padding: .05rem .5rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85em; }
.message-replies { display: inline-block; margin-top: .3rem; font-weight: 600; }
.excerpt mark { background: var(--tint); color: inherit; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; color: var(--muted); background: var(--bg); }
td.num { font-family: var(--font-mono); white-space: nowrap; }
.br-sm { display: none; }
@media (max-width: 560px) {
  th, td { padding: .75rem .8rem; }
  td.num { white-space: normal; }
  td.num .per { display: block; }
  td.num .per-slash { display: none; }
  .br-sm { display: inline; }
  .select { overflow-wrap: anywhere; }
}
@media (max-width: 359px) {
  .hero .eyebrow { letter-spacing: .04em; font-size: .72rem; }
  .hero h1 .nowrap { white-space: normal; }
}
.note { font-size: var(--step--1); color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0,1fr); gap: 1rem; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--accent); }
.steps h3 { font-size: var(--step-1); margin-bottom: .2rem; }
.steps p { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: .6rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] summary { margin-bottom: .6rem; }
.faq p { color: var(--muted); }

/* Fleet detail */
.aircraft { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .aircraft { grid-template-columns: 1fr; } }
.aircraft + .aircraft { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.placard { display: inline-flex; align-items: baseline; gap: .6rem; background: var(--ink); color: var(--bg); border-radius: 6px; padding: .55rem .9rem; font-family: var(--font-mono); }
.placard strong { font-size: 1.35rem; font-weight: 500; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); margin: 0; }
.specs div { padding: .7rem 1rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.specs div:nth-child(2n) { border-right: 0; }
.specs dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--font-display); font-weight: 600; }
.specs dd { margin: 0; font-weight: 500; }
@media (max-width: 420px) { .specs { grid-template-columns: 1fr; } .specs div { border-right: 0; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.checklist li { padding-left: 1.5rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: .65rem; height: .65rem; border-radius: 2px; border: 2px solid var(--accent); }

/* History timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 7rem minmax(0,1fr); gap: 1.5rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.timeline .when { font-family: var(--font-mono); color: var(--accent); font-weight: 500; }
.timeline h3 { font-size: var(--step-1); margin-bottom: .3rem; }
.timeline p { color: var(--muted); max-width: 60ch; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: .3rem; } }
.posters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .posters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.posters a { display: grid; gap: .5rem; text-decoration: none; color: var(--ink); }
.posters img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; border-radius: 6px; box-shadow: var(--shadow); }
.posters span { font-size: var(--step--1); color: var(--muted); }
.posters strong { display: block; color: var(--ink); font-weight: 600; }

/* Resource lists */

/* CTA band */
.cta { background: var(--accent); color: var(--accent-ink); }
.cta h2 { color: var(--accent-ink); }
.cta p { opacity: .92; max-width: 46rem; }
.cta .wrap { display: grid; gap: 1.2rem; }
.cta .btn-light { background: var(--accent-ink); color: var(--accent); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; padding-block: 3rem 2rem; }
.footer-grid p + p { margin-top: .7rem; }
.footer-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.footer-label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--ink); }
.footer-links { list-style: none; padding: 0; margin: .7rem 0 0; display: grid; gap: .35rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Archive lightbox (the backdrop is always dark, so its text colors are fixed) */
.lightbox { border: 0; padding: 0; background: transparent; color: #f2f6f7; max-width: min(94vw, 56rem); max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 13, 32, .94); }
.lightbox figure { display: grid; justify-items: center; gap: .8rem; }
.lightbox img { max-height: 76vh; width: auto; max-width: 100%; border-radius: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.5); background: #1b2a31; }
.lightbox figcaption { color: #dbe6e8; text-align: center; max-width: 40rem; margin: 0; font-size: var(--step-0); }
.lb-controls { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1rem; }
.lb-count { font-family: var(--font-mono); font-size: var(--step--1); color: #b7c7cb; min-width: 4.5rem; text-align: center; }
.lightbox button { font: inherit; font-weight: 600; cursor: pointer; border-radius: 999px; padding: .55rem 1.1rem; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #ffffff; }
.lightbox button:hover { background: rgba(255,255,255,.18); }
.lb-close { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 1rem); right: calc(env(safe-area-inset-right, 0px) + 1rem); }

/* sign logo: a faint light edge keeps its dark outline from sinking into dark backgrounds */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-sign { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .35)); }
}
:root[data-theme="dark"] .logo-sign { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .35)); }

/* A button that looks like a link (email reveal) */
.link-button { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--accent-strong); }

/* Forms */
.form { display: grid; gap: 1.25rem; max-width: 40rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field > label, .form legend { font-weight: 600; }
.field .note, .form legend .note { font-weight: 400; }
.form input[type="text"], .form input[type="search"], .form input[type="date"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form select, .form textarea {
  font: inherit; color: var(--ink); background: var(--surface); width: 100%;
  border: 1px solid var(--line); border-radius: 6px; padding: .6rem .75rem; }
.form textarea { min-height: 9rem; resize: vertical; }
.form select { min-height: calc(1.6em + 1.2rem + 2px); } /* match the text inputs: line-height + padding + border */
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .45rem; min-width: 0; }
.form legend { padding: 0; margin-bottom: .35rem; }
.choice { display: flex; align-items: baseline; gap: .55rem; }
.choice input { accent-color: var(--accent); flex: none; }
.choice input[type="text"] { padding: .3rem .6rem; flex: 1; width: auto; min-width: 0; }
.form .btn { justify-self: start; font: inherit; font-weight: 600; cursor: pointer; }
.form .btn:disabled { opacity: .6; cursor: progress; }
.optional { color: var(--muted); font-weight: 400; }
/* Membership questions only apply when "Yes" is chosen; works without JS. */
.form:has(#interest-no:checked) .membership-only, .form:not(:has([name="interest"]:checked)) .membership-only { display: none; }
/* Static map on /contact (site/images/hangar-map.png, rendered from OpenStreetMap tiles) */
.map { margin: .25rem 0 0; }
.map img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.map figcaption { font-size: .75rem; color: var(--muted); margin-top: .3rem; }
.map figcaption a { color: inherit; }

.form-status:empty { display: none; }
.form-status { padding: .8rem 1rem; border-radius: 6px; background: var(--tint); }
.form-status.error { background: var(--warn-bg); color: var(--warn-ink); }
