/* ==========================================================================
   AeroPlanet — design system & site styles
   ========================================================================== */

:root {
--navy: #0b3d63;
--navy-dark: #082c48;
--sky: #1c6ea4;
--accent: #e0792e;
--accent-dark: #c2621f;
--bg: #f6f8fb;
--surface: #ffffff;
--text: #182634;
--muted: #5c6b7a;
--border: #e3e8ee;
--radius: 12px;
--shadow: 0 2px 10px rgba(15, 40, 70, 0.08);
--shadow-hover: 0 10px 24px rgba(15, 40, 70, 0.14);
--max-width: 1180px;
font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: var(--text);
background: var(--bg);
line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

/* ---------------- Inline content links (2026-09-14) ------------------- */
/* The base `a { color: inherit; }` rule above is right for navigation,
   buttons, and icon-toggle buttons (heart/flag) — those already have
   their own explicit color via a class, e.g. .btn-accent, .main-nav > a,
   .fav-btn — so this can't just override the bare `a` selector without
   also recoloring the header nav and every button. What it CAN'T do is
   tell a visitor a plain link inside a paragraph, list item, or table
   cell is actually clickable — it just reads as ordinary text (an NTSB
   case number, a "View docket" phrase, a stat number linking to a
   drill-down page). This makes THOSE specific inline/content links bold
   and a standard hyperlink blue, leaving headings/titles (listing card
   titles, etc.), nav, footer, and every button/icon-toggle button exactly
   as they already look — those all reach their own <a> through a more
   specific class selector, which still wins over this. Scoped to `main`
   (every page's shared header.php/footer.php wrap their content in
   `<main>`) so it can never reach the footer's own "General inquiries:
   info@aeroplanet.com" mailto link, which sits in a <p> on the footer's
   dark background — this blue is tuned for light backgrounds. */
main p a, main li a, main td a, main dd a {
color: #1a56db;
font-weight: 700;
}
main p a:hover, main li a:hover, main td a:hover, main dd a:hover { text-decoration: underline; }
/* Breadcrumbs ("Home / Aircraft for Sale") are a <p> so the rule above
   would otherwise catch them too — they're navigation, not content, and
   several pages show them against the dark .category-hero/.static-hero
   background where this blue reads poorly. Their own color rules already
   win by specificity (a class always beats a bare tag chain); this just
   also cancels the bold. */
.breadcrumb a { font-weight: normal; }
.wrap {
max-width: var(--max-width);
margin: 0 auto;
padding: 0 20px;
}
.narrow { max-width: 760px; }

/* Buttons */
.btn {
display: inline-block;
padding: 12px 22px;
border-radius: 999px;
font-weight: 600;
font-size: 0.95rem;
border: 2px solid transparent;
cursor: pointer;
transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef3f8; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 10px; }
.btn:disabled, .btn:disabled:hover {
opacity: 0.5;
cursor: not-allowed;
transform: none;
background: transparent;
color: var(--muted);
border-color: var(--border);
}

/* ---------------- Header ---------------- */
.site-header {
background: var(--surface);
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
z-index: 50;
}
.header-inner {
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 12px;
padding-bottom: 12px;
gap: 16px;
}
.brand-logo { height: 68px; width: auto; }
.nav-utility-row {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.site-hist-nav-group { display: flex; gap: 6px; }
.site-hist-nav {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-hist-nav:hover { background: rgba(28,110,164,0.08); border-color: var(--sky); color: var(--sky); }
.nav-toggle {
display: none;
flex-direction: column;
justify-content: center;
gap: 5px;
width: 40px;
height: 40px;
background: none;
border: none;
cursor: pointer;
}
.nav-toggle span {
display: block;
height: 2px;
background: var(--navy);
border-radius: 2px;
}
.main-nav {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 16px;
font-weight: 600;
font-size: 0.95rem;
}
.main-nav > a { color: var(--text); padding: 6px 0; }
.main-nav > a:hover { color: var(--sky); }
/* "You are here" — only the nav item for the page you're actually on gets
   this highlight (set by main.js comparing each link's target to the
   current URL). "Submit a Listing" (.nav-cta) is a plain text link like
   the rest of the nav — no border/pill/background of its own — so it now
   shares this exact same current-page treatment. */
.main-nav > a.is-current,
.nav-dropdown-toggle.is-current {
color: var(--sky);
background: rgba(28, 110, 164, 0.1);
border-radius: 999px;
padding: 6px 14px;
}
/* Unconditionally suppress the browser's own default outline on this link
   (not just on :focus) — testing showed it can persist even outside the
   states :focus/:focus-visible report — and re-enable a clean one only
   for real keyboard focus below. */
.nav-cta { outline: none; }
.nav-cta:focus-visible {
outline: 2px solid var(--navy);
outline-offset: 3px;
border-radius: 4px;
}

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
display: flex;
align-items: center;
gap: 6px;
background: none;
border: none;
font: inherit;
font-weight: 600;
color: var(--text);
cursor: pointer;
padding: 6px 0;
}
.nav-dropdown-toggle:hover { color: var(--sky); }
.nav-dropdown-menu {
display: none;
position: absolute;
top: 100%;
left: 0;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 10px;
box-shadow: var(--shadow-hover);
min-width: 240px;
padding: 8px;
margin-top: 8px;
}
.nav-dropdown-menu a {
display: block;
padding: 9px 12px;
border-radius: 6px;
font-weight: 500;
color: var(--text);
}
.nav-dropdown-menu a:hover { background: var(--bg); color: var(--sky); }
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }

/* ---------------- Hero ---------------- */
.hero {
background: linear-gradient(135deg, var(--navy), var(--sky));
color: #fff;
padding: 64px 0 72px;
}
.hero-inner { text-align: center; }
.hero h1 {
font-size: clamp(1.8rem, 4vw, 3rem);
max-width: 780px;
margin: 0 auto 0.4em;
}
.hero-sub {
font-size: 1.1rem;
color: #dceaf6;
max-width: 620px;
margin: 0 auto 2em;
}
.hero-search {
display: flex;
flex-wrap: wrap;
gap: 10px;
background: #fff;
padding: 10px;
border-radius: 14px;
max-width: 760px;
margin: 0 auto;
box-shadow: var(--shadow-hover);
}
.hero-search-select,
.hero-search-input {
border: none;
outline: none;
font: inherit;
padding: 10px 12px;
color: var(--text);
background: transparent;
}
.hero-search-select { border-right: 1px solid var(--border); flex: 0 0 auto; }
.hero-search-input { flex: 1 1 220px; min-width: 0; }

/* ---------------- Aircraft Research promo (homepage) ------------------
   Sits directly under the hero — this is now ~90% of the site's traffic
   (2026-09-21), so it gets its own first-class, above-the-fold placement
   rather than just a nav link. Deliberately a different accent treatment
   (amber, not the hero's navy/sky) so it reads as a distinct, equally
   prominent feature rather than a continuation of the marketplace search
   above it. Same amber language as .listing-history-callout /
   .not-faa-badge elsewhere on the site, so "FAA/NTSB records" content
   stays visually consistent sitewide. */
.research-promo {
background: linear-gradient(135deg, #fff4e8, #ffe6c7);
border-bottom: 1px solid var(--border);
padding: 24px 0;
}
.research-promo-inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 28px;
flex-wrap: wrap;
}
.research-promo-text { flex: 1 1 360px; min-width: 0; }
.research-promo-eyebrow {
display: inline-block;
background: var(--accent);
color: #fff;
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
padding: 4px 10px;
border-radius: 999px;
margin-bottom: 10px;
}
.research-promo-text h2 { font-size: 1.5rem; margin: 0 0 6px; color: var(--navy); }
.research-promo-text p { margin: 0; color: #6b4a24; max-width: 560px; font-size: 0.95rem; }
.research-promo-form {
display: flex;
gap: 8px;
background: #fff;
padding: 8px;
border-radius: 12px;
box-shadow: var(--shadow-hover);
flex: 0 0 auto;
}
.research-promo-form input {
border: none;
outline: none;
font: inherit;
padding: 10px 14px;
min-width: 220px;
color: var(--text);
}

/* ---------------- Category grid ---------------- */
.categories-section, .featured-section { padding: 56px 0; }
.section-title { font-size: 1.6rem; margin-bottom: 28px; }
.section-title-row { display: flex; justify-content: space-between; align-items: center; }

.category-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 20px;
}
.category-card {
background: var(--surface);
border-radius: var(--radius);
overflow: hidden;
box-shadow: var(--shadow);
transition: box-shadow 0.15s ease, transform 0.15s ease;
display: flex;
flex-direction: column;
}
.category-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.category-card-icon {
height: 90px;
display: flex;
align-items: center;
justify-content: center;
font-size: 2.4rem;
color: #fff;
}
.category-card-body { padding: 18px 20px 20px; }
.category-card-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.category-card-body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; }
.category-card-count {
display: inline-block;
font-size: 0.8rem;
font-weight: 700;
color: var(--sky);
background: #eaf3fa;
padding: 4px 10px;
border-radius: 999px;
}

/* ---------------- Listing cards / grid ---------------- */
.listing-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 22px;
}

/* ---------------- Grid / List view toggle ---------------- */
.view-toggle { display: flex; gap: 8px; margin: 0 0 14px; }
.view-toggle-btn {
font-size: 0.82rem;
font-weight: 600;
padding: 6px 14px;
border-radius: 999px;
border: 1px solid #dbe4ee;
background: #fff;
color: var(--muted);
cursor: pointer;
}
.view-toggle-btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------------- Globe view (js/listing-globe.js) ---------------- */
/* A fixed height is required, not just a nice-to-have: the globe renderer
   sizes its WebGL canvas from this element's own box on first show, and it
   has to already be a real, laid-out size (not 0x0, which is what an
   unsized flex/grid child would compute to). */
.listing-globe {
position: relative;
height: 560px;
max-height: 70vh;
border-radius: var(--radius);
overflow: hidden;
background: radial-gradient(ellipse at 50% 35%, #0f4068 0%, #082c48 60%, #061d30 100%);
box-shadow: var(--shadow);
cursor: grab;
}
.listing-globe:active { cursor: grabbing; }
@media (max-width: 640px) {
.listing-globe { height: 420px; }
}
.listing-globe-error {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: #cfe0ef;
padding: 0 24px;
margin: 0;
}

/* globe.gl's own hover tooltip — plain HTML string we hand it, styled to
   match the rest of the site rather than its unstyled default. */
.listing-globe-tooltip {
background: rgba(8, 44, 72, 0.92);
color: #fff;
padding: 8px 12px;
border-radius: 8px;
font-size: 0.82rem;
line-height: 1.4;
max-width: 220px;
box-shadow: var(--shadow);
}
.listing-globe-tooltip em { color: var(--accent); font-style: normal; }

/* Click-a-pin flyout — a bottom sheet rather than something anchored over
   the clicked point's exact screen position, since that position moves
   every single frame as the globe keeps rotating/the visitor drags it. */
.listing-globe-flyout {
position: absolute;
left: 0;
right: 0;
bottom: 0;
max-height: 60%;
background: var(--surface);
border-radius: 16px 16px 0 0;
box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
padding: 16px 18px 18px;
transform: translateY(100%);
transition: transform 0.2s ease;
display: flex;
flex-direction: column;
gap: 10px;
}
.listing-globe-flyout.is-open { transform: translateY(0); }
.listing-globe-flyout-close {
position: absolute;
top: 8px;
right: 10px;
border: none;
background: none;
font-size: 1.3rem;
line-height: 1;
color: var(--muted);
cursor: pointer;
padding: 4px 8px;
}
.listing-globe-flyout-title { font-weight: 700; color: var(--navy); padding-right: 24px; }
.listing-globe-flyout-list {
display: flex;
flex-direction: column;
gap: 8px;
overflow-y: auto;
}
.listing-globe-flyout-item {
display: flex;
align-items: center;
gap: 12px;
border: 1px solid var(--border);
border-radius: 10px;
padding: 8px;
color: var(--text);
}
.listing-globe-flyout-item:hover { border-color: var(--sky); }
.listing-globe-flyout-item-img {
flex: 0 0 64px;
width: 64px;
height: 48px;
border-radius: 6px;
overflow: hidden;
background: #eef3f8;
display: flex;
align-items: center;
justify-content: center;
}
.listing-globe-flyout-item-img img { width: 100%; height: 100%; object-fit: cover; }
.listing-globe-flyout-item-noimg { font-size: 0.65rem; color: var(--muted); text-align: center; }
.listing-globe-flyout-item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.listing-globe-flyout-item-title {
font-weight: 600;
font-size: 0.9rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.listing-globe-flyout-item-price { font-size: 0.85rem; color: var(--accent-dark); font-weight: 600; }

/* Condensed row layout — same .listing-card markup, just reflowed. Every
   card type (native listings, registry cards) uses this automatically
   since it targets the shared classes, not a per-card-type class. */
.listing-grid.list-view { display: flex; flex-direction: column; gap: 10px; }
.listing-grid.list-view .listing-card { flex-direction: row; align-items: center; }
.listing-grid.list-view .listing-card:hover { transform: none; }
.listing-grid.list-view .listing-card-img {
width: 130px;
min-width: 130px;
aspect-ratio: 4 / 3;
}
.listing-grid.list-view .listing-card-img .badge,
.listing-grid.list-view .listing-card-img .registry-photo-overlay,
.listing-grid.list-view .listing-card-fav { display: none; }
.listing-grid.list-view .listing-card-tag { margin: 0 0 0 auto; }
.listing-grid.list-view .listing-card-body {
flex-direction: row;
align-items: center;
flex-wrap: wrap;
gap: 6px 18px;
padding: 10px 18px;
}
.listing-grid.list-view .listing-card-subtype { margin: 0; min-width: 110px; }
.listing-grid.list-view .listing-card-body h3 { margin: 0; font-size: 0.98rem; }
.listing-grid.list-view .listing-card-price,
.listing-grid.list-view .listing-card-meta { margin: 0; }
.listing-grid.list-view .listing-card-location { margin: 0 0 0 auto; }
.listing-grid.list-view .registry-external-links { margin-top: 0; }
@media (max-width: 640px) {
.listing-grid.list-view .listing-card { flex-direction: column; align-items: stretch; }
.listing-grid.list-view .listing-card-img { width: 100%; min-width: 0; aspect-ratio: 3 / 2; }
.listing-grid.list-view .listing-card-location { margin-left: 0; }
}
.listing-card {
background: var(--surface);
border-radius: var(--radius);
overflow: hidden;
box-shadow: var(--shadow);
transition: box-shadow 0.15s ease, transform 0.15s ease;
display: flex;
flex-direction: column;
}
.listing-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.listing-card-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.listing-card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge {
position: absolute;
top: 10px;
left: 10px;
font-size: 0.72rem;
font-weight: 700;
padding: 4px 10px;
border-radius: 999px;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.badge-featured { background: var(--accent); color: #fff; }
.listing-card-img.no-photo {
display: flex;
align-items: center;
justify-content: center;
background: #eef3f8;
color: var(--muted);
font-size: 0.85rem;
}
.listing-card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.listing-card-subtype {
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.03em;
color: var(--sky);
margin-bottom: 6px;
}
.listing-card-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.listing-card-price { font-weight: 700; font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; }
.listing-card-meta { color: var(--muted); font-size: 0.86rem; margin-bottom: 4px; }
.listing-card-location { color: var(--muted); font-size: 0.86rem; margin-bottom: 0; margin-top: auto; }
/* Small, muted-text tag (same styling as .listing-card-location) identifying
   a card's source — "Community Listing", "FAA Registry" — placed at the
   bottom of the card body instead of overlaid on the photo, so it no longer
   covers part of the image. Sits right after the location line; on cards
   with no location line (FAA Registry stubs) it's simply the last line. */
.listing-card-tag { color: var(--muted); font-size: 0.86rem; margin: 2px 0 0; }

/* "Records Available: FAA / NTSB" line, shown under the tag above only
   when the listing resolved to a real FAA-verified aircraft and/or that
   aircraft has an NTSB accident/incident on file (see
   listings_attach_aircraft_record_flags() in api/listings_store.php) —
   each badge links to that specific section of the aircraft's Aircraft
   Research page. Rendered as <button> elements, not <a>, deliberately:
   the whole card is already one big <a> (or, in list/grid JS-built
   cards, wraps everything the same way), and a nested <a> inside an <a>
   is invalid HTML that real browsers mis-parse (the outer link silently
   closes early) — same reason the existing favorite-heart control next
   to each photo is a <button>, not a link. A delegated click handler
   (search.php's own inline script, and js/main.js) intercepts
   ".records-badge" clicks, stops them from bubbling to the card's own
   link, and navigates to data-href itself instead. */
.listing-card-records {
color: var(--muted);
font-size: 0.86rem;
margin: 4px 0 0;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 6px;
}
.records-badge {
display: inline-block;
background: none;
border: 1px solid var(--accent);
border-radius: 4px;
padding: 1px 7px;
font-family: inherit;
font-size: 0.74rem;
font-weight: 700;
line-height: 1.5;
color: var(--accent-dark);
cursor: pointer;
}
.records-badge:hover, .records-badge:focus-visible {
background: var(--accent);
color: #fff;
outline: none;
}

/* ---------------- FAA Registry results (link-out model, not a listing) --- */
.registry-toggle-row {
background: #f4f7fb;
border: 1px solid #dbe4ee;
border-radius: var(--radius);
padding: 12px 16px;
margin: 10px 0 18px;
}
/* Overrides ".search-filter-form label"'s display:flex/flex-direction:column
   (meant for the Keyword/Category/etc. selects, stacking their text above
   their control) which otherwise also catches this label, stretches the
   checkbox to the label's full width in the cross axis, and centers its
   drawn glyph inside that stretched box — same underlying conflict
   ".auth-remember" below already works around for the "Remember me"
   checkbox. !important for the same reason it's used there: guarantees
   this wins regardless of any future reordering of the generic rule. */
.registry-toggle-label {
display: flex !important;
flex-direction: row !important;
align-items: center;
gap: 8px;
font-weight: 600;
font-size: 0.92rem;
cursor: pointer;
}
.registry-toggle-note { color: var(--muted); font-size: 0.8rem; margin: 6px 0 0; }
.registry-photo-overlay {
position: absolute;
left: 0;
right: 0;
bottom: 0;
background: rgba(15, 23, 42, 0.68);
color: #fff;
font-size: 0.68rem;
text-align: center;
padding: 5px 8px;
line-height: 1.25;
}
.registry-external-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.registry-external-link {
font-size: 0.76rem;
font-weight: 600;
color: var(--navy);
background: #eef3f8;
border: 1px solid #dbe4ee;
border-radius: 999px;
padding: 5px 11px;
text-decoration: none;
}
.registry-external-link:hover { background: #dbe4ee; }
/* List view packs several of these pills into one narrow card row — a
   touch smaller/tighter, and (unlike grid view, where a card is wide
   enough that this never comes up) forced to one line per pill so a
   long site name like "Search on AircraftForSale.com (Paste N #)"
   can't wrap internally and look broken. Scoped to list-view only —
   applying nowrap in grid view too would make that same long pill
   overflow the narrower grid card instead of just wrapping normally. */
.listing-grid.list-view .registry-external-link { font-size: 0.7rem; padding: 4px 9px; white-space: nowrap; }

/* ---------------- Industry news (live feed) ---------------- */
.news-section { padding: 8px 0 24px; }
.section-subtitle { color: var(--muted); font-size: 0.88rem; }

/* ---------------- Home page: main content + news sidebars ---------------- */
.home-main-section { padding-bottom: 56px; }
.home-layout {
display: grid;
grid-template-columns: 240px 1fr 240px;
grid-template-areas: "news-left main news-right";
gap: 28px;
align-items: start;
}
.home-main-col { grid-area: main; }
.home-main-col .categories-section { margin-bottom: 44px; }
.home-layout .news-sidebar:first-child { grid-area: news-left; }
.home-layout .news-sidebar:last-child { grid-area: news-right; }
.news-sidebar { position: sticky; top: 90px; }
.news-sidebar-title {
font-size: 0.78rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--muted);
margin-bottom: 14px;
}
.news-list {
display: flex;
flex-direction: column;
gap: 14px;
}
.news-card {
display: flex;
align-items: flex-start;
gap: 12px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 14px 16px;
box-shadow: var(--shadow);
transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.news-card-thumb {
width: 64px;
height: 64px;
flex: 0 0 64px;
object-fit: cover;
border-radius: 8px;
background: var(--bg);
}
.news-card-body {
display: flex;
flex-direction: column;
gap: 6px;
min-width: 0;
}
.news-card-source {
font-size: 0.72rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.03em;
color: var(--sky);
}
.news-card h3 { font-size: 1rem; margin: 0; }
.news-card-date { font-size: 0.8rem; color: var(--muted); }
.news-loading, .news-empty {
color: var(--muted);
font-size: 0.9rem;
}

/* ---------------- Live jobs (category page) ---------------- */
/* Sits below the native (sample + user-submitted) listing grid, so it
   needs its own top spacing rather than relying on a following heading. */
.live-jobs-section { margin-top: 36px; margin-bottom: 12px; }
.live-jobs-section .listing-grid { margin-top: 20px; }
.sample-postings-title { margin-top: 8px; }

/* ---------------- CTA banner ---------------- */
.cta-banner { background: var(--navy-dark); color: #fff; padding: 48px 0; }
.cta-banner-inner {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 20px;
}
.cta-banner-inner h2 { margin-bottom: 6px; }
.cta-banner-inner p { color: #cfe0ee; margin: 0; }

/* ---------------- Category page ---------------- */
.category-hero { color: #fff; padding: 48px 0 40px; }
.category-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.category-hero-desc { color: #eaf2fa; max-width: 640px; margin: 0; }
.breadcrumb { color: rgba(255,255,255,0.85); font-size: 0.85rem; margin-bottom: 12px; }
.breadcrumb a { text-decoration: underline; }
.static-hero .breadcrumb, .listing-detail .breadcrumb { color: var(--muted); }
.static-hero .breadcrumb a, .listing-detail .breadcrumb a { color: var(--sky); }

.category-body { padding: 40px 0 64px; }
.filter-bar { margin-bottom: 28px; }
.filter-input {
width: 100%;
padding: 12px 16px;
border: 1px solid var(--border);
border-radius: 10px;
font: inherit;
margin-bottom: 14px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
border: 1px solid var(--border);
background: var(--surface);
padding: 7px 14px;
border-radius: 999px;
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
color: var(--text);
}
.chip:hover { border-color: var(--sky); color: var(--sky); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }
.aircraft-filter-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.aircraft-filter-row label {
display: flex;
flex-direction: column;
gap: 4px;
font-weight: 600;
font-size: 0.85rem;
color: var(--text);
}
.aircraft-filter-row select {
padding: 8px 10px;
border: 1px solid var(--border);
border-radius: 6px;
font: inherit;
background: var(--surface);
min-width: 200px;
}

.price-sort-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; align-items: flex-end; }
/* Low/High always render as one adjacent pair — this wrapper is a single
   flex item within .price-sort-row (or, on Search Listings, within
   .search-filter-form via the display:contents group around it), so
   wrapping at narrow widths moves the whole pair together instead of
   splitting Low onto one line and High onto the next. */
.price-range-group { display: flex; gap: 14px; }
.year-range-group { display: flex; gap: 14px; }
.price-sort-row label,
.price-range-group label {
display: flex;
flex-direction: column;
gap: 4px;
font-weight: 600;
font-size: 0.85rem;
color: var(--text);
}
.price-sort-row input,
.price-sort-row select {
padding: 8px 10px;
border: 1px solid var(--border);
border-radius: 6px;
font: inherit;
background: var(--surface);
min-width: 140px;
}
.price-sort-row select#filterSortSelect { min-width: 190px; }
.geo-sort-notice {
background: #fff6e8;
border: 1px solid #f0d8ab;
color: #7a5210;
padding: 10px 14px;
border-radius: 8px;
margin-top: 10px;
font-size: 0.85rem;
}

/* ---------------- Search Listings page ---------------- */
.search-filter-form {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: 16px;
margin-bottom: 32px;
padding: 20px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius);
}
.search-filter-form label {
display: flex;
flex-direction: column;
gap: 6px;
font-weight: 600;
font-size: 0.88rem;
color: var(--text);
flex: 1 1 150px;
min-width: 140px;
}
.search-filter-form label#searchWithinGroup {
flex: 0 1 180px;
max-width: 200px;
}
.search-filter-form input,
.search-filter-form select {
padding: 9px 10px;
border: 1px solid var(--border);
border-radius: 6px;
font: inherit;
background: var(--surface);
}
.search-filter-form .search-filter-group { display: contents; }
.search-filter-form .search-filter-actions {
flex: 0 0 auto;
display: flex;
gap: 10px;
}
.search-filter-form button,
.search-filter-form .btn { align-self: flex-end; }
.search-notice {
background: #fff6e8;
border: 1px solid #f0d8ab;
color: #7a5210;
padding: 12px 16px;
border-radius: 8px;
margin-bottom: 20px;
font-size: 0.9rem;
}
.results-count { color: var(--muted); margin-bottom: 16px; }
.listing-card-distance {
color: var(--sky);
font-weight: 700;
font-size: 0.82rem;
margin-bottom: 4px;
}

/* ---------------- Aircraft Research page ---------------- */
/* All four report accordions on aircraft-research.php share this one wide
   .wrap (site's normal --max-width) so their outer cards line up at the
   same width — the N-Number lookup, Safety & Maintenance Record, and
   Deregistered/Out-of-Service Aircraft sections wrap their own narrower
   form/content in .safety-search-narrow below so THEIR reading width still
   looks the same as before this was widened; only Safety History Search
   (whose results table has ten columns) and Deregistered/Out-of-Service
   Aircraft's results table use the full wide width, for their results
   areas specifically. */
.aircraft-research-wrap { max-width: var(--max-width); }
/* Moved here from the hero banner above (2026-09-14 feedback: it wasn't
   noticeable up there against the hero's gradient background) — sits
   directly above the first accordion instead, right-aligned so it reads as
   a page-level action rather than part of any one search panel. */
.aircraft-research-reset-row { display: flex; justify-content: flex-end; margin: 0 0 14px; }
.aircraft-research-accordion {
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
margin-bottom: 20px;
overflow: hidden;
}
.aircraft-research-accordion summary {
list-style: none;
cursor: pointer;
padding: 18px 46px 18px 22px;
display: flex;
flex-direction: column;
gap: 4px;
position: relative;
}
.aircraft-research-accordion summary::-webkit-details-marker { display: none; }
.aircraft-research-accordion summary::after {
content: "+";
position: absolute;
top: 16px;
right: 22px;
font-size: 1.3rem;
color: var(--muted);
line-height: 1;
}
.aircraft-research-accordion[open] summary::after { content: "\2212"; }
.aircraft-research-accordion summary:hover { background: var(--bg); }
.aircraft-research-accordion[open] summary { border-bottom: 1px solid var(--border); }
.accordion-title { font-weight: 700; font-size: 1.08rem; color: var(--text); }
.accordion-desc { color: var(--muted); font-size: 0.86rem; }
.accordion-body { padding: 22px; }
.print-report-btn { margin-bottom: 18px; }
/* Inside the merged Search/Clear Filters/Print Report/Export to CSV row
   (.safety-search-actions below), the Print Report button sits alongside
   buttons that have no bottom margin — without this override its own
   18px margin-bottom would shrink its stretched flex height and make it
   look like a different size than its neighbors. */
.safety-search-actions .print-report-btn { margin-bottom: 0; }
.aircraft-research-form {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: 16px;
margin-bottom: 28px;
padding: 20px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius);
}
.aircraft-research-form label {
display: flex;
flex-direction: column;
gap: 6px;
font-weight: 600;
font-size: 0.88rem;
color: var(--text);
flex: 1 1 180px;
min-width: 160px;
}
.aircraft-research-form input {
padding: 9px 10px;
border: 1px solid var(--border);
border-radius: 6px;
font: inherit;
background: var(--surface);
}
.aircraft-research-or { color: var(--muted); font-size: 0.85rem; padding-bottom: 10px; }
.aircraft-research-form button { align-self: flex-end; }
.aircraft-research-intro { color: var(--muted); }
.aircraft-research-candidates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.aircraft-research-candidates li a {
display: block;
padding: 12px 16px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--surface);
}
.aircraft-research-candidates li a:hover { border-color: var(--sky); }
.aircraft-research-result {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 24px;
box-shadow: var(--shadow);
}
.aircraft-research-header h2 { margin-bottom: 4px; }
.aircraft-research-subheader { color: var(--muted); margin-bottom: 10px; }
.aircraft-research-asof { color: var(--muted); font-size: 0.82rem; margin-left: 8px; }
.aircraft-status-badge {
display: inline-block;
padding: 4px 12px;
border-radius: 999px;
font-size: 0.8rem;
font-weight: 700;
}
.status-good { background: #e3f6e9; color: #1c7a3d; }
.status-bad { background: #fbe4e4; color: #a3312f; }
.status-warn { background: #fff2df; color: #8a5a10; }
.status-neutral { background: #eceff2; color: var(--muted); }
.aircraft-spec-strip {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
gap: 14px;
margin: 18px 0 6px;
padding: 16px 0;
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
}
.aircraft-spec-strip > div { display: flex; flex-direction: column; gap: 2px; }
.aircraft-spec-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.aircraft-spec-note { color: var(--muted); font-size: 0.82rem; margin-bottom: 20px; }
.aircraft-research-history { margin-bottom: 20px; }
.aircraft-research-history h3 { font-size: 1rem; margin-bottom: 8px; }
.aircraft-research-history ul { margin: 0; padding-left: 20px; color: var(--text); }
.aircraft-research-history li { margin-bottom: 4px; }
.aircraft-research-full-record { margin-bottom: 20px; border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; }
.aircraft-research-full-record summary { cursor: pointer; font-weight: 600; }
.aircraft-research-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.aircraft-research-table th, .aircraft-research-table td {
text-align: left;
padding: 8px 6px;
border-bottom: 1px solid var(--border);
font-size: 0.9rem;
}
.aircraft-research-table th { color: var(--muted); font-weight: 600; width: 45%; }
.aircraft-research-disclaimer { color: var(--muted); font-size: 0.82rem; }

.aircraft-research-ntsb, .aircraft-research-sdr, .aircraft-research-aids { margin-bottom: 20px; }

/* NTSB "stub" aircraft page (ntsb-stub-aircraft.php) — an aircraft with no
   FAA registration record at all, shown from NTSB's own data only. Reuses
   .aircraft-research-result / .aircraft-research-header / .aircraft-event-*
   above for everything shared with aircraft-research.php; these are just
   the pieces unique to this page. */
.not-faa-badge {
display: inline-flex;
align-items: center;
gap: 8px;
background: #fff4e8;
border: 1px solid var(--accent);
color: var(--accent-dark);
padding: 8px 14px;
border-radius: 999px;
font-size: 0.82rem;
font-weight: 700;
margin-bottom: 18px;
}
.stub-kv-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 14px 24px;
margin: 18px 0 24px;
padding: 16px 0;
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
}
.stub-kv-grid dt { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 2px; }
.stub-kv-grid dd { margin: 0; font-weight: 600; }
.stub-not-available-card {
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 18px 20px;
margin: 20px 0;
}
.stub-not-available-card h3 { margin-top: 0; font-size: 1rem; }
.stub-not-available-card .note-box { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.not-applicable-list { color: var(--muted); font-size: 0.9rem; margin: 0; padding-left: 20px; }
.not-applicable-list li { margin-bottom: 4px; }

/* aircraft-ntsb-trends.php — per-row source tag distinguishing an
   FAA-registered aircraft from an NTSB-only ("stub") one in the blended
   event list. */
.ntsb-trends-source-tag {
display: inline-block;
padding: 2px 8px;
border-radius: 999px;
font-size: 0.72rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.02em;
margin-right: 6px;
}
.ntsb-trends-source-faa { background: #eceff2; color: var(--muted); }
.ntsb-trends-source-stub { background: #fff4e8; color: var(--accent-dark); }
.aircraft-research-ntsb h3, .aircraft-research-sdr h3, .aircraft-research-aids h3 { font-size: 1rem; margin-bottom: 8px; }
.aircraft-research-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.aircraft-research-events li { position: relative; border: 1px solid var(--border); border-radius: 8px; padding: 10px 44px 10px 14px; font-size: 0.92rem; }
/* Deep-linked from aircraft-group-detail.php's AIDS report list (e.g.
   aircraft-research.php?ref=...#aids-<report_number>) — a brief highlight
   so a visitor landing partway down a long event list can see which entry
   they were sent to, same idea as any other same-page anchor jump.
   scroll-margin-top (2026-09-18 feedback: the native anchor jump was
   scrolling the target <li> to the very top of the viewport, which sits
   right under .site-header's sticky bar and hides both that bar's own
   space AND the "Reported Incidents (FAA AIDS)" <h3> immediately above the
   list — so the visitor landed on the item with no idea what section
   they're even in. 140px clears the sticky header (~93px: 68px logo +
   12px top/bottom padding + 1px border) plus the h3 heading and its
   spacing above the list, so the heading stays visible above the
   highlighted item after the jump. Only needs to be on the :target rule
   itself, not every <li> — it's consulted only for the element actually
   being scrolled to. */
.aircraft-research-events li:target {
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent);
scroll-margin-top: 140px;
}
.aircraft-event-meta { color: var(--muted); font-size: 0.85rem; }
/* Full as-filed FAA AIDS record (2026-09-18) — every stored field for one
   report, shown as a compact label/value grid under its summary line.
   Deliberately its own class rather than reusing .stub-kv-grid: that one
   carries a top/bottom border and page-level margin meant for a standalone
   section, which would double up against .aircraft-research-events li's
   own card border/padding here. */
.aids-report-detail-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 8px 20px;
margin: 10px 0 0;
}
.aids-report-detail-grid dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 1px; }
.aids-report-detail-grid dd { margin: 0; font-size: 0.88rem; }
/* Section headings breaking one AIDS report's full detail into General
   Information / Aircraft Information / Pilot In Command / Event Remarks
   (2026-09-19 feedback — matches asip.faa.gov's own per-report page
   layout). First one sits right under the summary line with no extra
   border; later ones get a thin top rule so each section reads as its own
   group rather than everything running together. */
.aids-report-section-heading {
margin: 14px 0 0;
padding-top: 10px;
border-top: 1px solid var(--border);
font-size: 0.76rem;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--muted);
font-weight: 700;
}
.aids-report-detail-grid + .aids-report-section-heading { margin-top: 14px; }
.aircraft-research-events li > .aids-report-section-heading:first-of-type { margin-top: 10px; padding-top: 0; border-top: none; }
.aids-report-remarks { margin: 10px 0 0; font-size: 0.88rem; line-height: 1.5; }
.aircraft-event-cause { margin: 6px 0 0; font-size: 0.88rem; }
.aircraft-event-link { margin: 6px 0 0; font-size: 0.82rem; color: var(--muted); }
.aircraft-event-docket { margin: 6px 0 0; }
.aircraft-event-docket-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.aircraft-event-docket-list li { border: none; padding: 0; font-size: 0.85rem; }
.aircraft-event-docket-ext { color: var(--muted); font-size: 0.75rem; }
.aircraft-event-docket-source { color: var(--muted); }

/* Docket photo thumbnails (aircraft-research.php) — a plain link into
   ntsb-report-viewer.php's full docket viewer (2026-09-14), same as every
   other docket item; just rendered as an image instead of a text link. */
.aircraft-event-docket-photos { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.aircraft-event-docket-photo-thumb {
display: inline-block;
border: 1px solid var(--border);
border-radius: 6px;
padding: 0;
width: 72px;
height: 72px;
overflow: hidden;
background: var(--bg);
flex-shrink: 0;
}
.aircraft-event-docket-photo-thumb:hover { border-color: var(--accent); }
.aircraft-event-docket-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aircraft-match-possible { color: var(--muted); font-weight: 400; font-size: 0.82rem; cursor: help; text-decoration: underline dotted; }
.aircraft-research-empty-note { color: var(--muted); font-size: 0.9rem; }

.safety-stats-filters {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
gap: 16px;
margin: 18px 0 22px;
padding: 20px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius);
/* Shared label-row height for Year / Manufacturer / Model below — see
   the long note above .year-range-filter for why. align-items switched
   from the default "stretch" to "flex-start" so each field's own height
   is purely intrinsic (top-anchored) instead of being stretched to
   match the tallest sibling, which is what let the fixed-height grid
   rows below line up predictably. */
--field-head-h: 24px;
}
.safety-stats-filters label {
display: flex;
flex-direction: column;
gap: 6px;
font-weight: 600;
font-size: 0.88rem;
color: var(--text);
flex: 1 1 180px;
min-width: 160px;
}
.safety-stats-filters select {
padding: 9px 10px;
border: 1px solid var(--border);
border-radius: 6px;
font: inherit;
background: var(--surface);
}
.safety-stats-filters label.safety-stats-private-toggle {
flex-direction: row;
align-items: center;
gap: 8px;
font-weight: 500;
flex: 0 0 auto;
align-self: flex-end;
padding-bottom: 9px; /* roughly lines up with the adjacent <select> baseline */
}
.safety-stats-private-toggle input[type="checkbox"] {
width: 16px;
height: 16px;
margin: 0;
}
/* Year range + "All Years" checkbox (2026-09-14, reflowed 2026-09-14) —
   used by both Search for Deregistered and Out-of-Service Aircraft's Year
   filter and Search for Safety and Maintenance Records' Year filter,
   replacing a single exact-year <select> with a From/To range so either
   can match a span of years at once, same idea as Search for Aircraft by
   Safety History's own Year From/To (.safety-search-range below), just
   laid out to sit alongside each panel's other .safety-stats-filters label
   siblings. The "All Years" checkbox originally sat on its own row below
   the From/To inputs, which made this whole control three lines tall
   against every sibling field's two — leaving a ragged gap at the bottom
   of the filter bar (2026-09-14 feedback). Putting it on the same line as
   the "Year" legend instead keeps this control two lines tall like
   everything else next to it. `justify-content: space-between` originally
   spread "Year" and the checkbox to opposite edges of this (fairly wide)
   box — which pushed "All Years" over next to the following Manufacturer
   field instead of next to "Year", visually reading as if it belonged to
   Manufacturer rather than to its own Year row (2026-09-14 feedback).
   flex-start instead keeps the checkbox snug against "Year", so the two
   read together as one group with Manufacturer clearly starting after. */
.year-range-filter {
display: grid;
grid-template-rows: var(--field-head-h) auto;
row-gap: 6px;
font-weight: 600;
font-size: 0.88rem;
color: var(--text);
flex: 1 1 260px;
min-width: 240px;
}
.year-range-filter-head {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 14px;
}
.year-range-filter-legend { display: block; }
/* Selector prefixed with ".safety-stats-filters label" (not just
   ".year-range-filter-all") on purpose — same fix, same reason, as
   ".safety-stats-filters label.safety-stats-private-toggle" above. A bare
   single-class ".year-range-filter-all" rule is LOWER specificity than the
   generic ".safety-stats-filters label" rule (one class vs. one class +
   one type), so the generic rule's flex-direction: column, font-weight:
   600, font-size: 0.88rem, and flex: 1 1 180px/min-width: 160px all kept
   winning regardless of what this rule declared — an earlier attempt at
   this same fix added flex-direction: row here without also raising this
   selector's specificity, which is why it had no visible effect
   (2026-09-15 feedback: "still showing the same"). Matching the
   established ".safety-stats-filters label.X" pattern used for the
   private-aircraft checkbox above is what actually makes every property
   below win. */
.safety-stats-filters label.year-range-filter-all {
flex-direction: row;
align-items: center;
gap: 6px;
font-weight: 500;
font-size: 0.85rem;
white-space: nowrap;
flex: 0 0 auto;
min-width: 0;
}
.year-range-filter-all input[type="checkbox"] { width: 16px; height: 16px; margin: 0; }
.year-range-filter-inputs { display: flex; gap: 10px; }
.year-range-filter-inputs label {
display: flex;
flex-direction: column;
gap: 4px;
font-weight: 500;
flex: 1 1 auto;
}
.year-range-filter-inputs input {
padding: 9px 10px;
border: 1px solid var(--border);
border-radius: 6px;
font: inherit;
background: var(--surface);
width: 100%;
}
.year-range-filter-inputs input:disabled { background: var(--bg); color: var(--muted); }
/* Manufacturer/Model fields on the Safety & Maintenance Record and
   Deregistered panels (2026-09-15/16 feedback) — a plain "Manufacturer"
   or "Model" label used to sit directly in .safety-stats-filters, so its
   text started at the very top of the row, level with "Year"/"All Years"
   rather than with "From"/"To" one row down, and its <select> ended up a
   row higher than the From/To boxes beside it.
   Two earlier attempts fixed this by putting an invisible spacer above
   the label and trying to make its RENDERED height happen to match the
   real Year head row: first repeating just the "Year" text (too short),
   then repeating the full checkbox+"All Years" markup (byte-for-byte
   identical markup, but a disabled checkbox still rendered ~3px taller
   than the real enabled one in testing, so the spacer ended up 24px vs.
   the real row's ~21px — the "still off" report). Matching two separately
   rendered boxes by content is inherently fragile.
   This version doesn't try to match anything: .year-range-filter and
   these two field wraps are each a 2-row CSS grid whose first row is
   `var(--field-head-h)` — one fixed value, declared once on
   .safety-stats-filters — so the spacer is simply told to be that height
   rather than asked to render the same as something else. Same
   row-gap (6px) as .year-range-filter between the two rows, so row 2
   (the label+select) starts at the exact same offset from the top as
   .year-range-filter-inputs does. The spacer itself can now be a single
   empty div — no replicated checkbox needed — because a grid item with no
   explicit height stretches to fill its (fixed-height) row by default. */
.manufacturer-field-wrap,
.model-field-wrap {
display: grid;
grid-template-rows: var(--field-head-h) auto;
row-gap: 6px;
flex: 1 1 180px;
min-width: 160px;
}
.field-head-spacer { visibility: hidden; }
.safety-stats-filters .manufacturer-field-wrap label,
.safety-stats-filters .model-field-wrap label {
/* gap: 4px (not the generic ".safety-stats-filters label" rule's 6px)
   to match .year-range-filter-inputs label's own gap — the other half of
   the same few-px mismatch: "Manufacturer"/"Model" were sitting 2px
   further from their <select> than "From"/"To" sit from their <input>s. */
gap: 4px;
flex: 0 1 auto;
min-width: 0;
}
.safety-stats-panel {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 24px;
box-shadow: var(--shadow);
}
.safety-stats-panel h3 { margin: 0 0 14px; }
.safety-stats-placeholder { color: var(--muted); margin: 0; }
.safety-stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 14px;
margin-bottom: 14px;
padding-bottom: 18px;
border-bottom: 1px solid var(--border);
}
.safety-stats-grid > div { display: flex; flex-direction: column; gap: 2px; }
.safety-stat-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.safety-stat-value { font-size: 1.1rem; font-weight: 700; }
.safety-stats-breakdown { color: var(--text); font-size: 0.88rem; margin: 0 0 14px; }
.safety-stats-disclaimer { color: var(--muted); font-size: 0.8rem; margin: 0; }

.safety-search-form {
margin: 20px 0 22px;
}
.safety-search-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 28px 32px;
}
.safety-search-field {
border: none;
padding: 0;
margin: 0;
min-width: 0;
}
/* Spans both grid columns as its own full-width row — used for Subcategory,
   which sits between the Year/Fleet-count row and the Manufacturer/Model
   row without splitting that pair across two different rows. */
.safety-search-field-wide { grid-column: 1 / -1; }
.safety-search-field-wide select {
padding: 9px 10px;
border: 1px solid var(--border);
border-radius: 6px;
font: inherit;
background: var(--surface);
max-width: 320px;
width: 100%;
box-sizing: border-box;
}
.safety-search-field legend {
font-weight: 600;
font-size: 0.88rem;
color: var(--text);
padding: 0 0 8px;
}
/* Year fieldset's "All Years" checkbox (2026-09-15) replaced its plain
   <legend>Year</legend> with the shared .year-range-filter-head component
   (same one the Safety & Maintenance Record and Deregistered panels use)
   so all three panels look and behave the same way — this fieldset just
   needs its own bottom spacing before .safety-search-range below, since
   here .year-range-filter-head isn't nested inside .year-range-filter
   (whose flex gap normally provides that spacing) — matching the 8px the
   plain <legend> above used to have. */
.safety-search-field .year-range-filter-head { margin-bottom: 8px; }
.safety-search-range { display: flex; gap: 10px; }
.safety-search-range label {
display: flex;
flex-direction: column;
gap: 4px;
font-size: 0.8rem;
color: var(--muted);
flex: 1 1 0;
}
.safety-search-range input,
.safety-search-typefilter {
padding: 9px 10px;
border: 1px solid var(--border);
border-radius: 6px;
font: inherit;
background: var(--surface);
width: 100%;
box-sizing: border-box;
}
.safety-search-typefilter { margin-bottom: 6px; font-size: 0.85rem; }
.safety-search-multiselect {
width: 100%;
border: 1px solid var(--border);
border-radius: 6px;
font: inherit;
font-size: 0.85rem;
background: var(--surface);
}
.safety-search-multiselect option:checked {
background: var(--sky) linear-gradient(0deg, var(--sky) 0%, var(--sky) 100%);
color: #fff;
}
.safety-search-hint { color: var(--muted); font-size: 0.74rem; margin: 6px 0 0; }
.safety-search-private-toggle {
display: flex;
align-items: center;
gap: 8px;
margin-top: 10px;
font-weight: 500;
font-size: 0.85rem;
color: var(--text);
}
.safety-search-private-toggle input[type="checkbox"] {
width: 16px;
height: 16px;
margin: 0;
}
.safety-search-actions {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 12px;
margin-top: 28px;
padding-top: 20px;
border-top: 1px solid var(--border);
}
/* .aircraft-research-wrap is wide (site's normal --max-width, see above) so
   all four accordion cards line up at the same width. Search for Aircraft
   by Safety History and Search for Deregistered and Out-of-Service Aircraft
   both have wide, many-column results tables and want that full width for
   their results areas specifically — .safety-search-narrow (wrapping just
   the intro text and filter form in those two sections, and the ENTIRE
   body content of the N-Number lookup and Safety & Maintenance Record
   sections, which have no wide results table to gain from the extra room)
   keeps that narrower-content reading width the same as it was before this
   page's wrap was widened to fit the Safety History Search table. A fixed
   100vw/negative-margin "breakout" was tried first for that section instead
   of a wider shared wrap, but a wrapping <details> element needs
   overflow:hidden for its rounded corners (see .aircraft-research-accordion
   below), which silently clipped that breakout right back down to the
   narrow width instead of actually widening anything — hence widening the
   shared wrap itself rather than trying to escape a narrow one. */
.safety-search-narrow { max-width: 720px; margin: 0 auto; }
.safety-search-results { margin-top: 4px; }
/* table-layout:fixed + wrapping cells (instead of the nowrap+horizontal-
   scroll every other results table on the site uses) so all 12 columns are
   always visible on screen at once, at any window width, with nothing
   needing a sideways scroll to see — the wider .safety-search-results-inner
   above just means less wrapping is needed on a typical monitor, not that
   wrapping is required to fit. The column-width split below is the same
   proportions used for the printed version of this table.
   IMPORTANT: table-layout:fixed sizes EVERY column from these nth-child
   rules alone — a column with no rule here gets squeezed to near-zero
   width instead of just being left "auto," which then forces its text to
   wrap onto many lines and balloons every row's height (with the row's
   other, short-content cells left looking stranded in a sea of blank
   space thanks to the default middle vertical-align — the "results are
   spread way too far apart" bug reported 2026-09-22 after the FAA AIDS
   Reports/% AIDS per Aircraft columns were added here without updating
   these widths). Adding or removing a column from the results table in
   aircraft-research.php means updating BOTH this list's percentages
   (still need to sum to 100%) AND the nth-child index of every rule below
   it. */
.safety-search-results table {
width: 100%;
border-collapse: collapse;
font-size: 0.88rem;
table-layout: fixed;
}
.safety-search-results th,
.safety-search-results td {
text-align: left;
padding: 9px 10px;
border-bottom: 1px solid var(--border);
white-space: normal;
overflow-wrap: break-word;
}
.safety-search-results th { color: var(--muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.03em; }
.safety-search-results table th:nth-child(1) { width: 6%; } /* Year */
.safety-search-results table th:nth-child(2) { width: 11%; } /* Manufacturer */
.safety-search-results table th:nth-child(3) { width: 12%; } /* Model */
.safety-search-results table th:nth-child(4) { width: 8%; } /* Total Ever Registered */
.safety-search-results table th:nth-child(5) { width: 9%; } /* NTSB Accidents & Incidents */
.safety-search-results table th:nth-child(6) { width: 8%; } /* Aircraft w/ Fatality */
.safety-search-results table th:nth-child(7) { width: 8%; } /* % Aircraft w/ NTSB Event */
.safety-search-results table th:nth-child(8) { width: 8%; } /* % Aircraft w/ Fatality Event */
.safety-search-results table th:nth-child(9) { width: 7%; } /* SDR Reports */
.safety-search-results table th:nth-child(10) { width: 8%; } /* % SDRs per Aircraft */
.safety-search-results table th:nth-child(11) { width: 7%; } /* FAA AIDS Reports */
.safety-search-results table th:nth-child(12) { width: 8%; } /* % AIDS per Aircraft */
.safety-search-results-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.safety-search-note { color: var(--muted); font-size: 0.8rem; margin: 10px 0 0; }
/* aircraft-group-detail.php's four drill-down tables (fleet/fleet-fatal,
   ntsb/ntsb-fatal, sdr, aids — behind the clickable stat numbers on
   aircraft-research.php). Deliberately its own class rather than reusing
   .safety-search-results, since that class's th:nth-child widths are tuned
   to its own fixed 10-column table and these four tables don't share a
   column count. table-layout stays auto (not fixed) so each column sizes
   to its actual content instead of splitting evenly / cramming long values
   — that's what "wider to accommodate the values" means here, rather than
   a hardcoded width. N-Number stays left-aligned in every variant since
   it's the anchor column readers scan down; every other short, single-
   value column (codes, dates, counts, damage) is centered so the table
   reads as a clean grid. The --sdr variant overrides that for its
   Defective Part / Nature of Condition / Remarks columns, which hold
   free-text sentences — centering wrapped paragraph text is unreadable,
   so those three stay left-aligned like normal prose. */
.group-detail-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.group-detail-table th,
.group-detail-table td {
padding: 12px 16px;
border-bottom: 1px solid var(--border);
text-align: center;
white-space: normal;
overflow-wrap: break-word;
}
.group-detail-table th {
color: var(--muted);
font-size: 0.76rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.group-detail-table th:first-child,
.group-detail-table td:first-child { text-align: left; }
.group-detail-table--sdr th:nth-child(3), .group-detail-table--sdr td:nth-child(3),
.group-detail-table--sdr th:nth-child(4), .group-detail-table--sdr td:nth-child(4),
.group-detail-table--sdr th:nth-child(5), .group-detail-table--sdr td:nth-child(5) { text-align: left; }
/* Search for Deregistered and Out-of-Service Aircraft results table —
   deliberately its own class rather than reusing .safety-search-results,
   since that class's th:nth-child rules above are tuned to its own
   12-column table and would misassign widths against this table's 8
   columns. Same table-layout/wrap/print approach as .safety-search-results
   throughout (see the @media print block near the end of this file, which
   applies to both classes) — including the same "every column needs an
   explicit width rule here, summing to 100%, or it gets squeezed and
   balloons every row's height" gotcha called out in that block's comment
   above. */
.dereg-results { margin-top: 4px; }
/* NTSB Accident History cell — a real link into ntsb-report-viewer.php
   only when a mirrored docket actually exists for it (2026-09-14; see
   aircraft-research.php's ntsbCell). Bold on top of the normal link
   color/underline so it visually stands out from a same-column cell that
   has accident history but no docket yet (plain text, unstyled). */
.dereg-ntsb-docket-link { font-weight: 700; }
.dereg-results table {
width: 100%;
border-collapse: collapse;
font-size: 0.88rem;
table-layout: fixed;
}
.dereg-results th,
.dereg-results td {
text-align: left;
padding: 9px 10px;
border-bottom: 1px solid var(--border);
white-space: normal;
overflow-wrap: break-word;
}
.dereg-results th { color: var(--muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.03em; }
.dereg-results table th:nth-child(1) { width: 9%; } /* N-Number */
.dereg-results table th:nth-child(2) { width: 13%; } /* Manufacturer */
.dereg-results table th:nth-child(3) { width: 13%; } /* Model */
.dereg-results table th:nth-child(4) { width: 6%; } /* Year */
.dereg-results table th:nth-child(5) { width: 11%; } /* Registration Status */
.dereg-results table th:nth-child(6) { width: 16%; } /* NTSB Accident History */
.dereg-results table th:nth-child(7) { width: 18%; } /* FAA AIDS History */
.dereg-results table th:nth-child(8) { width: 14%; } /* FAA Data Last Updated */

/* ---------------- Aircraft Research page: FAQ (2026-09-18) -------------- */
/* Sits below the four search accordions, inside the same
   .aircraft-research-wrap so it lines up at the same width. Deliberately
   its own class rather than reusing .aircraft-research-accordion — that
   class is targeted directly by the print-report JS (see the
   "querySelectorAll('.aircraft-research-accordion.printing')" walk near
   the end of this page's inline script), and FAQ items have no Print
   Report button of their own to trigger it, so keeping them a separate
   class avoids any chance of getting swept into that logic later. */
.aircraft-research-faq { margin-top: 8px; }
.aircraft-research-faq .section-title { font-size: 1.4rem; margin-bottom: 18px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
overflow: hidden;
}
.faq-item summary {
list-style: none;
cursor: pointer;
padding: 16px 46px 16px 20px;
font-weight: 600;
position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
content: "+";
position: absolute;
top: 14px;
right: 20px;
font-size: 1.2rem;
color: var(--muted);
line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { background: var(--bg); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-answer { padding: 16px 20px; color: var(--text); }
.faq-answer p { margin: 0; }

/* ---------------- Listing detail ---------------- */
.listing-detail { padding: 32px 0 64px; }
.listing-detail-grid {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 36px;
align-items: start;
}
.listing-detail-img { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.listing-detail h1 { font-size: 1.7rem; }
.listing-detail-location { color: var(--muted); margin-bottom: 18px; }
.listing-detail-makemodel { color: var(--sky); font-weight: 600; margin: 2px 0 8px; }
.spec-table { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 24px; }
.spec-row { display: flex; justify-content: space-between; padding: 10px 16px; font-size: 0.92rem; }
.spec-row:nth-child(odd) { background: #fbfcfe; }
.spec-key { color: var(--muted); }
.spec-value { font-weight: 600; }

/* Listing detail page — outbound link to this exact airframe's Aircraft
   Research page (registration/N-number history + NTSB/SDR/FAA AIDS
   records), shown whenever the listing resolved to a catalog `aircraft`
   row (listings.aircraft_id — see listing_aircraft_match.php). Reuses the
   same amber accent treatment as .not-faa-badge above so it reads as part
   of the same "FAA/NTSB records" visual language sitewide. */
.listing-history-callout {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
flex-wrap: wrap;
background: #fff4e8;
border: 1px solid var(--accent);
border-radius: 10px;
padding: 14px 16px;
margin-bottom: 24px;
}
.listing-history-callout p { margin: 0; font-size: 0.88rem; color: var(--accent-dark); }
.listing-history-callout a {
font-weight: 700;
color: var(--accent-dark);
white-space: nowrap;
text-decoration: underline;
}

/* Submit a Listing — "you need an account" notice, swapped in for the
   form itself by js/main.js once it confirms the visitor isn't logged
   in. Same amber accent language as .listing-history-callout above. */
.login-required-notice {
background: #fff4e8;
border: 1px solid var(--accent);
border-radius: 10px;
padding: 18px 20px;
margin-bottom: 24px;
}
.login-required-notice p { margin: 0 0 14px; color: var(--accent-dark); font-size: 0.95rem; }
.login-required-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.listing-detail-description { color: var(--text); }
.sample-disclaimer {
font-size: 0.82rem;
color: var(--muted);
border-left: 3px solid var(--border);
padding-left: 12px;
font-style: italic;
}
.listing-detail-sidebar { position: sticky; top: 90px; }
.price-card, .contact-card, .amazon-gear-widget {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
margin-bottom: 18px;
}
.price-card-price { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 2px; }
.price-card-subtype { color: var(--muted); font-size: 0.88rem; margin: 0; }
.contact-card h3 { font-size: 1rem; margin-bottom: 10px; }
.contact-card p { margin-bottom: 4px; font-size: 0.92rem; color: var(--muted); }

/* "Pilot Gear We Recommend" — Amazon Associates sidebar widget
   (api/partials/amazon-gear-widget.php). Shares the .price-card/
   .contact-card box treatment above (background/border/radius/padding/
   margin-bottom, via the combined selector above) so it reads as just
   another sidebar card, not a bolted-on ad unit. */
.amazon-gear-widget h3 { font-size: 1rem; margin-bottom: 10px; }
.amazon-gear-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.amazon-gear-link { display: flex; align-items: center; gap: 10px; color: inherit; }
.amazon-gear-link:hover .amazon-gear-title { text-decoration: underline; }
.amazon-gear-thumb { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 4px; }
.amazon-gear-text { display: flex; flex-direction: column; min-width: 0; }
.amazon-gear-title { font-weight: 600; color: var(--sky); }
.amazon-gear-blurb { margin-top: 2px; font-size: 0.85rem; color: var(--muted); }
.amazon-gear-disclosure { margin: 0; font-size: 0.74rem; color: var(--muted); font-style: italic; }

.related-section { margin-top: 56px; }

/* ---------------- User-submitted photo gallery (api/listing.php) -------- */
.user-photo-grid {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 20px;
}
.user-photo-main {
display: block;
flex: 1 1 100%;
aspect-ratio: 3 / 2;
border-radius: var(--radius);
overflow: hidden;
}
.user-photo-thumb {
display: block;
flex: 0 0 calc(25% - 6px);
aspect-ratio: 4 / 3;
border-radius: 8px;
overflow: hidden;
}
.user-photo-main img, .user-photo-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.user-photo-main, .user-photo-thumb { cursor: zoom-in; }
.user-photo-none {
display: flex;
align-items: center;
justify-content: center;
aspect-ratio: 3 / 2;
background: #eef3f8;
color: var(--muted);
border-radius: var(--radius);
margin-bottom: 20px;
font-size: 0.95rem;
}

/* ---------------- Static pages / forms ---------------- */
.static-hero { background: var(--navy); color: #fff; padding: 44px 0; }
.static-hero h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.static-body { padding: 44px 0 64px; }
.static-body p { color: var(--text); font-size: 1.02rem; }

.contact-form { display: flex; flex-direction: column; gap: 16px; margin: 28px 0; }
.contact-form label { font-weight: 600; font-size: 0.92rem; display: flex; flex-direction: column; gap: 6px; }
/* Wraps a label's leading text (and, where present, its req-star) as one
   flex item — see the comment in submit-listing.html/edit-listing.php for
   why this wrapper exists at all. */
.contact-form .field-label-text { display: inline-block; }
/* Red required-field marker. Static fields (Category, Title, Country, …)
   render this always-visible; conditionally-required fields (Manufacturer,
   the aircraft spec fields, Price/Rate, State/ZIP, …) start hidden and are
   toggled alongside `required` by the same JS in js/main.js that shows/
   hides those fields per category — see wireAircraftFields(),
   wireAircraftSpecFields(), wirePriceFields() and
   wireCountryLocationFields(). */
.req-star { color: #b3261e; font-weight: 700; margin-left: 3px; }
.form-note .req-star { margin-left: 0; margin-right: 2px; }
/* Groups a few related fields (e.g. State + ZIP, shown only for US
   listings) with the same rhythm as the form's own field spacing, so
   showing/hiding the group (via JS toggling this to display:none) doesn't
   disturb the gap around it. */
.contact-form .field-group { display: flex; flex-direction: column; gap: 16px; }
.contact-form .checkbox-inline {
flex-direction: row;
align-items: center;
gap: 8px;
font-weight: 500;
}
.contact-form .checkbox-inline input[type="checkbox"] {
width: auto;
padding: 0;
border: none;
}
.contact-form .field-section-label {
font-weight: 600;
font-size: 0.92rem;
margin: 0;
}
/* "Show more options" / "Back to main list" (Other Manufacturers toggle
   — see wireAircraftFields() in js/main.js) and any similar plain-link
   button inside the listing form. */
.contact-form .link-toggle-btn {
align-self: flex-start;
background: none;
border: none;
padding: 0;
margin-top: -6px;
font-weight: 600;
font-size: 0.85rem;
color: var(--sky);
cursor: pointer;
}
.contact-form .link-toggle-btn:hover { text-decoration: underline; }
#priceCurrencyWrap { margin-top: -4px; }
.input-with-adornment {
display: flex;
align-items: stretch;
}
.input-with-adornment .input-adornment {
display: flex;
align-items: center;
padding: 0 12px;
border: 1px solid var(--border);
border-right: none;
border-radius: 8px 0 0 8px;
background: var(--bg);
color: var(--muted);
font-weight: 600;
}
.input-with-adornment input {
border-radius: 0 8px 8px 0 !important;
flex: 1;
min-width: 0;
}
.contact-form input, .contact-form select, .contact-form textarea {
font: inherit;
padding: 11px 14px;
border: 1px solid var(--border);
border-radius: 8px;
font-weight: 400;
}
.contact-form button { align-self: flex-start; }
.form-note { color: var(--muted); font-size: 0.85rem; font-style: italic; }
.field-hint { color: var(--muted); font-size: 0.82rem; margin-top: -8px; }
.field-hint-warn { color: #9c2b2b; font-weight: 600; }
.contact-form input[type="file"] {
border: 1px dashed var(--border);
padding: 14px;
background: #fbfcfe;
}
.form-error {
background: #fdecec;
border: 1px solid #f3b9b9;
color: #9c2b2b;
padding: 14px 18px;
border-radius: 8px;
margin-bottom: 20px;
font-size: 0.92rem;
}
.form-error a { text-decoration: underline; }
/* Honeypot: positioned off-screen rather than display:none, since some
   spam bots specifically skip fields hidden that way. Invisible and
   unreachable by keyboard/screen-reader users either way. */
.hp-field {
position: absolute;
left: -5000px;
width: 1px;
height: 1px;
overflow: hidden;
}
.contact-details p { font-size: 0.98rem; }

.form-success {
background: #eaf7f1;
border: 1px solid #a9dcc4;
color: #14603f;
padding: 14px 18px;
border-radius: 8px;
margin-bottom: 20px;
font-size: 0.92rem;
}
.form-hint { color: var(--muted); font-size: 0.85rem; margin-top: -10px; }

/* ---------------- Auth (log in / register / password reset) ------------ */
/* flex-basis:100% forces this onto its own new line within .main-nav (now
   flex-wrap:wrap above) — the rest of the nav keeps its own line, and
   margin-left:auto/justify-content:flex-end here right-aligns this one's
   own contents (name / My Account / Log Out) on that new line, matching
   where the account controls already sit today. */
.auth-nav {
display: flex;
align-items: center;
gap: 14px;
flex-basis: 100%;
justify-content: flex-end;
margin-top: 6px;
}
.auth-nav a { font-weight: 600; }
.auth-nav .auth-nav-name { color: var(--muted); font-weight: 500; }
.auth-page { padding: 44px 0 72px; }
.auth-card {
max-width: 440px;
margin: 0 auto;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 32px 30px;
box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.4rem; margin-bottom: 6px; }
.auth-card-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; }
.auth-card .contact-form { margin: 0 0 4px; gap: 14px; }
.auth-card-footer { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 18px; }
.auth-remember { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.auth-remember input { width: auto; }

/* ---------------- Favorite button ---------------- */
.fav-btn {
background: none;
border: none;
cursor: pointer;
font-size: 1.4rem;
line-height: 1;
color: var(--muted);
padding: 4px;
}
.fav-btn:hover { color: var(--accent); }
.fav-btn.is-active { color: var(--accent); }

/* ---------------- Save NTSB event button ---------------- */
/* Same idea as .fav-btn (an icon toggle button, active state tinted with
   --accent) but a flag glyph instead of a heart, and pinned to the top
   corner of its <li> in the Accident & Incident History list rather than
   inline with the text, since that list already has dense per-event
   metadata that a floated button would crowd. */
.save-event-btn {
position: absolute;
top: 8px;
right: 10px;
background: none;
border: none;
cursor: pointer;
font-size: 1.2rem;
line-height: 1;
color: var(--muted);
padding: 4px;
}
.save-event-btn:hover { color: var(--accent); }
.save-event-btn.is-active { color: var(--accent); }
.listing-detail-title-row {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
}
.listing-detail-title-row h1 { margin-bottom: 0; }
.listing-card-fav {
position: absolute;
top: 8px;
right: 8px;
background: rgba(255,255,255,0.9);
border-radius: 999px;
width: 34px;
height: 34px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.1rem;
}
.owner-controls {
background: #eef3f8;
border-radius: 8px;
padding: 10px 14px;
font-size: 0.9rem;
color: var(--text);
}

/* ---------------- Account dashboard ---------------- */
.account-page { padding: 40px 0 72px; }
.account-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.account-tabs { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.account-tabs a {
padding: 9px 16px;
border-radius: 999px;
border: 1px solid var(--border);
font-weight: 600;
font-size: 0.9rem;
color: var(--text);
}
.account-tabs a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.account-list { display: flex; flex-direction: column; gap: 14px; }
.account-row {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 16px 20px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
flex-wrap: wrap;
}
.account-row-main h3 { font-size: 1rem; margin-bottom: 4px; }
.account-row-meta { color: var(--muted); font-size: 0.85rem; }
.account-row-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.account-row-actions a, .account-row-actions button.link-btn {
font-weight: 600;
font-size: 0.88rem;
background: none;
border: none;
cursor: pointer;
color: var(--sky);
padding: 0;
}
.account-row-actions .link-btn-danger { color: #9c2b2b; }
.status-pill { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 4px 10px; border-radius: 999px; }
.status-pending { background: #fdf3e3; color: #9a6a12; }
.status-approved { background: #eaf7f1; color: #14603f; }
.status-rejected { background: #fdecec; color: #9c2b2b; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-dark); color: #cfe0ee; padding: 48px 0 20px; margin-top: 40px; }
.footer-grid {
display: grid;
grid-template-columns: 1.6fr 1fr 1fr 1fr;
gap: 30px;
padding-bottom: 32px;
border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo { height: 96px; width: auto; margin-bottom: 14px; background: #fff; padding: 10px 16px; border-radius: 8px; }
.footer-brand p { color: #a9c2d6; font-size: 0.9rem; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.footer-col a { display: block; color: #a9c2d6; font-size: 0.9rem; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 18px; font-size: 0.82rem; color: #7c99b0; }
.footer-social { margin-top: 14px; display: flex; gap: 10px; }
.social-link {
display: inline-flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.08);
color: #a9c2d6;
transition: background 0.15s ease, color 0.15s ease;
}
.social-link:hover { background: var(--sky); color: #fff; }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
.listing-detail-grid { grid-template-columns: 1fr; }
.listing-detail-sidebar { position: static; }
.footer-grid { grid-template-columns: 1fr 1fr; }
.user-photo-thumb { flex: 0 0 calc(33.333% - 6px); }
.home-layout {
grid-template-columns: 1fr;
grid-template-areas: "main" "news-left" "news-right";
}
.news-sidebar { position: static; }
.news-list { flex-direction: row; flex-wrap: wrap; }
.news-list .news-card { flex: 1 1 260px; }
}

@media (max-width: 720px) {
.nav-toggle { display: flex; }
.main-nav {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
background: var(--surface);
border-bottom: 1px solid var(--border);
flex-direction: column;
align-items: stretch;
padding: 12px 20px 20px;
gap: 4px;
}
.main-nav.is-open { display: flex; }
.nav-dropdown-menu { position: static; box-shadow: none; border: none; margin-top: 4px; display: none; }
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }
.nav-cta { display: inline-block; width: fit-content; }
/* Homepage hero search — kept to ONE line on mobile (2026-09-14; used to
   switch to flex-direction: column here, stacking the Category select,
   the text input, and the Search button into three full-width rows —
   visitor-reported as "extremely large" on an iPhone, since that's three
   separate ~44px-tall touch targets plus gaps and padding stacked on top
   of each other). Every piece shrinks instead: the Category select gets
   a hard max-width (it's the one native form control whose text can't be
   resized/wrapped, so capping its box and letting the browser's own
   picker clip/ellipsize the option text is the only way to keep it from
   pushing the input and button off no matter how long a category name
   is), the input claims whatever's left via flex:1 1 auto/min-width:0,
   and every piece's padding/font-size comes down a notch so three
   controls' combined width actually fits a ~375-414px-wide phone screen
   without wrapping. */
.hero-search { flex-wrap: nowrap; padding: 6px; gap: 6px; }
.hero-search-select {
border-right: 1px solid var(--border);
border-bottom: none;
max-width: 34%;
padding: 9px 6px;
font-size: 0.8rem;
}
.hero-search-input { padding: 9px 6px; font-size: 0.9rem; }
.hero-search .btn { flex: 0 0 auto; padding: 9px 14px; font-size: 0.85rem; white-space: nowrap; }
/* .research-promo-text's flex-basis (360px) sets a starting WIDTH in the
   desktop row layout below — switching to column here would silently
   reinterpret that same basis as a forced 360px HEIGHT instead, leaving
   a large blank gap under the text before the form. flex: none turns
   that off so the block just sizes to its actual content. */
.research-promo-inner { flex-direction: column; justify-content: center; gap: 18px; text-align: center; }
.research-promo-text { flex: none; }
.research-promo-form { width: 100%; }
.research-promo-form input { flex: 1 1 auto; min-width: 0; }
.cta-banner-inner { flex-direction: column; text-align: center; }
.footer-grid { grid-template-columns: 1fr; }
.brand-logo { height: 52px; }
}

/* ---------------- Listing photo lightbox (js/main.js) -------------------
   Click any image in a .user-photo-grid (api/listing.php's real-listing
   photo gallery) to open it full-size here, with Prev/Next to cycle
   through every photo on that listing and an X (or Esc, or clicking the
   dark backdrop) to close back to the listing page. Built/injected by JS
   only when a gallery is present, so this never shows up empty. */
.lightbox-overlay {
position: fixed;
inset: 0;
z-index: 1000;
background: rgba(11, 20, 30, 0.92);
display: flex;
align-items: center;
justify-content: center;
}
.lightbox-overlay[hidden] { display: none; }
body.lightbox-open { overflow: hidden; }
.lightbox-img {
/* ~50% larger than before (1200px/85vh cap), still bounded so it never
   runs past a standard screen or under the close/prev/next controls. */
max-width: min(97vw, 1800px);
max-height: 92vh;
object-fit: contain;
border-radius: 6px;
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
position: fixed;
border: none;
background: rgba(255, 255, 255, 0.12);
color: #fff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.15s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-close {
top: 20px;
right: 20px;
width: 44px;
height: 44px;
border-radius: 50%;
font-size: 1.6rem;
line-height: 1;
}
.lightbox-prev, .lightbox-next {
top: 50%;
transform: translateY(-50%);
width: 52px;
height: 52px;
border-radius: 50%;
font-size: 2rem;
line-height: 1;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
position: fixed;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
color: #fff;
background: rgba(255, 255, 255, 0.12);
padding: 4px 14px;
border-radius: 999px;
font-size: 0.85rem;
margin: 0;
}
@media (max-width: 640px) {
.lightbox-prev, .lightbox-next { width: 42px; height: 42px; font-size: 1.6rem; }
.lightbox-close { width: 38px; height: 38px; font-size: 1.4rem; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
/* Low/High stay paired on one row even on narrow screens — they shrink
   to share the available width instead of wrapping onto separate lines. */
.price-range-group input { min-width: 0; flex: 1 1 0; }
}

/* ---------------- Aircraft Research — "Print Report" ----------------
   Triggered per-accordion from aircraft-research.php's inline script,
   which adds .printing to whichever <details> the click came from right
   before calling window.print(). Everything else on the page (site
   header/nav, footer, hero banner, the other two accordions, and the
   filter form/buttons inside the one being printed) is hidden here so
   what actually comes out is just that section's results, laid out on a
   standard 8.5x11 (letter) page. Nothing below affects the on-screen
   layout — it's all gated behind @media print. */
@media print {
@page { size: letter; margin: 0.5in; }
body { background: #fff; }
.site-header, .site-footer, .static-hero, .no-print { display: none !important; }
main { padding: 0; }
/* The page's shared wrap caps everything on screen so the filter forms
   look right (see .safety-search-narrow) — but at print time that leaves
   most of a landscape page's extra width unused (the Safety History
   Search and Deregistered/Out-of-Service Aircraft reports both print
   landscape; see the JS-driven @page swap near the end of the inline
   <script>). Drop the constraint for print so each report fills the
   actual printable page width, whatever that page's size/orientation
   turns out to be. */
.aircraft-research-wrap { max-width: none; padding: 0; }
.aircraft-research-accordion { border: none; margin: 0; }
.aircraft-research-accordion:not(.printing) { display: none !important; }
.aircraft-research-accordion.printing { display: block !important; }
.aircraft-research-accordion.printing summary {
cursor: default;
padding: 0 0 12px;
margin-bottom: 18px;
border-bottom: 2px solid #000;
}
.aircraft-research-accordion.printing summary::after { display: none; }
.aircraft-research-accordion.printing .accordion-body { padding: 0; }
.aircraft-research-accordion.printing .accordion-body > *:not(.print-report-area) { display: none !important; }
.print-report-area { display: block !important; }
/* Avoid splitting a results-table row, or a single N-Number-lookup event
   card, across a page break where that can be helped. */
.safety-search-results table tr,
.dereg-results table tr,
.aircraft-research-events li {
break-inside: avoid;
}
/* The Safety History Search results table has 12 columns, and the
   Deregistered/Out-of-Service Aircraft table 8 — both comfortably wide on
   screen (with their own horizontal scrollbar via
   .safety-search-results-wrap), but there's no scrolling on a printed
   page. table-layout:fixed + a small font + allowing header/cell text to
   wrap keeps every column on the page instead of the tail end of the
   table silently getting clipped off the right edge. */
.safety-search-results-wrap { border: none; overflow: visible; }
/* table-layout:fixed (not auto) is the important part here — it's what
   guarantees the table's total width can never exceed the page no matter
   how long a header word is, so nothing on the right edge silently gets
   clipped off. The trade-off is that a long single word occasionally
   wraps mid-word; hyphens:auto softens that where the browser's print
   engine supports it, and it's a fully legible, non-lossy compromise
   either way. */
.safety-search-results table,
.dereg-results table {
table-layout: fixed;
width: 100%;
font-size: 0.62rem;
}
.safety-search-results th, .safety-search-results td,
.dereg-results th, .dereg-results td {
white-space: normal;
overflow-wrap: break-word;
hyphens: auto;
padding: 4px 3px;
}
.safety-search-results th, .dereg-results th { letter-spacing: normal; }
/* The Safety History Search and Deregistered/Out-of-Service Aircraft
   reports both print in landscape (letter-landscape gives them
   meaningfully more usable width — 10in vs 7.5in at 0.5in margins — for
   their wide, many-column tables) while sections 1 and 2 stay portrait.
   CSS "named pages" (@page plus a `page:` property to scope a different
   size to one element) is the standards-track way to do this, but
   Chromium's print engine does not honor it — it only ever applies a
   single @page size to the whole print job. So the actual orientation
   switch is done in JS, right before window.print() is called: see the
   "Print Report" buttons script near the end of this page's inline
   <script>, which swaps a dedicated <style> tag's @page rule to
   landscape only when the report being printed is one of these two.
   Nothing here sets the page size itself. */
/* Landscape's extra width means these tables no longer need to be quite
   as cramped as the portrait fallback size above. */
.safety-search-results.print-report-area table,
.dereg-results.print-report-area table {
font-size: 0.75rem;
}
}

/* NTSB docket report viewer (ntsb-report-viewer.php) — a dedicated full-page
   layout, not the usual .wrap/nav content column, since the point is an
   uninterrupted, continuously-scrolling reading surface. Deliberately no
   styling here for a download/print/open button — see that page's own
   header comment for why. */
.ntsb-report-viewer-body {
background: var(--text);
margin: 0;
}
.ntsb-report-bar {
position: sticky;
top: 0;
z-index: 5;
display: flex;
align-items: center;
gap: 14px;
padding: 10px 16px;
background: var(--text);
color: #fff;
border-bottom: 1px solid rgba(255,255,255,0.15);
}
.ntsb-report-back {
color: #fff;
text-decoration: none;
font-size: 0.9rem;
flex-shrink: 0;
opacity: 0.85;
}
.ntsb-report-back:hover { opacity: 1; text-decoration: underline; }
.ntsb-report-title {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 0.92rem;
font-weight: 600;
}
.ntsb-report-progress {
flex-shrink: 0;
font-size: 0.82rem;
color: rgba(255,255,255,0.75);
}
.ntsb-report-save-group { display: flex; flex-shrink: 0; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* .save-event-btn's base rules (icon-only, absolutely positioned) are
   built for the Accident & Incident History list on aircraft-research.php
   — this dark, sticky bar needs its own look: a normal inline pill button
   with its label, not just the flag icon, and light-on-dark coloring
   instead of the light-page --muted/--accent pair. */
.save-event-btn-bar {
position: static;
flex-shrink: 0;
font-size: 0.82rem;
color: rgba(255,255,255,0.85);
background: rgba(255,255,255,0.12);
border: 1px solid rgba(255,255,255,0.25);
border-radius: 999px;
padding: 5px 12px;
white-space: nowrap;
}
.save-event-btn-bar:hover { color: #fff; background: rgba(255,255,255,0.2); }
.save-event-btn-bar.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }
.ntsb-report-pages {
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
padding: 20px 12px 60px;
}
.ntsb-report-page canvas {
display: block;
max-width: 100%;
height: auto;
box-shadow: 0 2px 10px rgba(0,0,0,0.35);
background: #fff;
}
.ntsb-report-loading {
color: #fff;
text-align: center;
padding: 40px 0;
}
.ntsb-report-source {
text-align: center;
color: rgba(255,255,255,0.7);
font-size: 0.82rem;
padding: 0 16px 30px;
margin: 0;
}
.ntsb-report-source a { color: #fff; }

/* Full-docket viewer (ntsb-report-viewer.php, reworked 2026-09-14) — each
   document in the docket is its own section stacked in #ntsbReportPages
   (.ntsb-report-pages above already lays that out as a centered flex
   column), separated with a rule so it's visually obvious where one
   document ends and the next begins during a long continuous scroll. */
.ntsb-report-doc {
width: 100%;
max-width: 1000px;
padding-top: 20px;
border-top: 1px solid rgba(255,255,255,0.15);
}
.ntsb-report-doc:first-child { padding-top: 0; border-top: none; }
.ntsb-report-doc-label {
color: #fff;
font-size: 0.92rem;
font-weight: 600;
text-align: center;
margin: 0 0 12px;
padding: 0 12px;
}
.ntsb-report-doc-ext { color: rgba(255,255,255,0.6); font-weight: 400; font-size: 0.78rem; }
.ntsb-report-pdf-pages { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ntsb-report-photo {
display: block;
max-width: 100%;
max-height: 85vh;
margin: 0 auto;
box-shadow: 0 2px 10px rgba(0,0,0,0.35);
background: #fff;
}
.ntsb-report-video {
display: block;
max-width: 100%;
margin: 0 auto;
background: #000;
}
.ntsb-report-unviewable {
color: rgba(255,255,255,0.85);
text-align: center;
background: rgba(255,255,255,0.06);
border: 1px solid rgba(255,255,255,0.15);
border-radius: 8px;
padding: 20px;
margin: 0 12px;
}
.ntsb-report-unviewable a { color: #fff; }

/* "Select documents, then Download Selected as one ZIP" (2026-09-16) — a
   deliberate, opt-in exception to this page's own no-download rule (see
   the file header comment): nothing changes about how any ONE document is
   read, this is purely an additional bulk-export action the visitor has
   to actively choose into via the checkboxes below. */
.ntsb-report-select-bar {
position: sticky;
z-index: 4;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px;
padding: 8px 16px;
background: rgba(255,255,255,0.06);
color: rgba(255,255,255,0.9);
border-bottom: 1px solid rgba(255,255,255,0.15);
font-size: 0.85rem;
}
.ntsb-report-select-all {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
cursor: pointer;
}
.ntsb-report-select-all input { width: 16px; height: 16px; margin: 0; }
.ntsb-report-select-count { flex: 1 1 auto; color: rgba(255,255,255,0.65); }
.ntsb-report-download-btn {
flex-shrink: 0;
color: #fff;
background: rgba(255,255,255,0.12);
border: 1px solid rgba(255,255,255,0.3);
padding: 6px 14px;
font-size: 0.85rem;
}
.ntsb-report-download-btn:hover:not(:disabled) { background: rgba(255,255,255,0.22); }
.ntsb-report-download-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ntsb-report-doc-label {
position: relative;
}
.ntsb-report-doc-select {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
cursor: pointer;
}
.ntsb-report-doc-select input { width: 16px; height: 16px; margin: 0; vertical-align: middle; }
/* Visually hidden but still readable by screen readers — used here so
   each document's checkbox has a real accessible label ("Select ... for
   download") without printing that whole sentence next to every
   checkbox. */
.sr-only {
position: absolute;
width: 1px; height: 1px;
padding: 0; margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}

/* Server-rendered CSV/plain-text documents (docket_doc_kind 'text') and
   client-rendered XLSX tables (SheetJS, vendor/xlsx/ — 'spreadsheet') share
   this look: a plain light table dropped onto the otherwise dark reading
   surface, same idea as the white PDF-page canvases/photos above. */
.ntsb-report-table-wrap {
max-width: 100%;
overflow-x: auto;
background: #fff;
border-radius: 6px;
margin: 0 12px;
}
.ntsb-report-csv-table, .ntsb-report-xlsx-table {
border-collapse: collapse;
width: 100%;
font-size: 0.85rem;
}
.ntsb-report-csv-table td, .ntsb-report-xlsx-table td, .ntsb-report-xlsx-table th {
border: 1px solid var(--border);
padding: 6px 10px;
text-align: left;
white-space: nowrap;
}
.ntsb-report-xlsx-table th { background: var(--bg); font-weight: 600; }
.ntsb-report-xlsx-sheet-title {
color: rgba(255,255,255,0.85);
font-size: 0.82rem;
font-weight: 600;
margin: 16px 12px 6px;
}
.ntsb-report-xlsx-sheet-title:first-child { margin-top: 0; }
.ntsb-report-text {
max-width: 100%;
overflow-x: auto;
background: #fff;
border-radius: 6px;
margin: 0 12px;
padding: 14px 16px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 0.82rem;
white-space: pre-wrap;
word-break: break-word;
}
.ntsb-report-doc-note {
color: rgba(255,255,255,0.6);
font-size: 0.78rem;
text-align: center;
margin: 8px 12px 0;
}
.ntsb-report-doc-note a { color: #fff; }
.ntsb-report-tiff-canvas {
display: block;
max-width: 100%;
height: auto;
margin: 0 auto 12px;
box-shadow: 0 2px 10px rgba(0,0,0,0.35);
background: #fff;
}

/* ---------------------------------------------------------------------
 * Guides section (2026-09-23) — templates/guide-index.html,
 * templates/guide-post.html. Reuses .static-hero/.static-body/.narrow/
 * .breadcrumb from the existing static-page pattern; these are the
 * guide-specific additions only.
 * --------------------------------------------------------------------- */
.guides-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 20px;
}
.guide-card {
display: flex;
flex-direction: column;
gap: 8px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
box-shadow: var(--shadow);
text-decoration: none;
color: var(--text);
transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.guide-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.guide-card-date { color: var(--muted); font-size: 0.8rem; }
.guide-card-title { font-size: 1.1rem; margin: 0; color: var(--navy); }
.guide-card-dek { color: var(--text); font-size: 0.92rem; margin: 0; flex-grow: 1; }
.guide-card-readmore { color: var(--sky); font-weight: 600; font-size: 0.9rem; }

.guide-post-meta { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-top: 6px; }

.guide-post-body h2 { color: var(--navy); font-size: 1.3rem; margin: 32px 0 12px; }
.guide-post-body p { color: var(--text); font-size: 1.02rem; line-height: 1.65; margin: 0 0 16px; }
.guide-post-body ul { margin: 0 0 16px; padding-left: 22px; }
.guide-post-body li { color: var(--text); font-size: 1.02rem; line-height: 1.6; margin-bottom: 6px; }
.guide-post-body a { color: var(--sky); font-weight: 600; }

.guide-stat-table-wrap { overflow-x: auto; margin: 0 0 20px; }
.guide-stat-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.guide-stat-table th, .guide-stat-table td {
border: 1px solid var(--border);
padding: 8px 12px;
text-align: left;
white-space: nowrap;
}
.guide-stat-table th { background: var(--bg); font-weight: 600; color: var(--navy); }

.guide-cta-box {
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 24px;
margin: 28px 0;
text-align: center;
}
.guide-cta-box h3 { color: var(--navy); margin: 0 0 8px; }
.guide-cta-box p { color: var(--muted); margin: 0 0 16px; }
.guide-cta-box .btn { margin: 0 6px; }

/* ---------------------------------------------------------------------
 * Owner/Buyer Aircraft Reviews (2026-09-23) — reviews.php, the "Owner &
 * Buyer Reviews" teaser box on aircraft-research.php, and the My Reviews
 * tab on account.php (which reuses .account-list/.account-row/
 * .status-pill already defined above). These are the review-specific
 * additions only.
 * --------------------------------------------------------------------- */
.review-stars { color: #d99a2b; letter-spacing: 1px; font-size: 1rem; }
.review-stars-lg { font-size: 1.4rem; }

.reviews-teaser {
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px 24px;
margin-top: 18px;
}
.reviews-teaser-heading { color: var(--navy); font-size: 1.05rem; margin: 0 0 8px; }
.reviews-teaser p { margin: 0 0 12px; }
.reviews-teaser p:last-child { margin-bottom: 0; }

.review-summary {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 14px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 18px 22px;
margin-bottom: 24px;
}
.review-summary-score { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.review-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.review-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px 24px;
}
.review-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.review-title { color: var(--navy); font-size: 1.02rem; }
.review-meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 10px; }
.review-body { color: var(--text); font-size: 0.98rem; line-height: 1.6; margin: 0; }

.review-comments { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.review-comment { padding: 10px 0; border-top: 1px solid var(--border); }
.review-comment:first-child { border-top: none; padding-top: 0; }
.review-comment-meta { color: var(--muted); font-size: 0.82rem; margin: 0 0 4px; }
.review-comment p:last-child { margin: 0; font-size: 0.94rem; }
.badge-reviewer {
background: var(--navy);
color: #fff;
font-size: 0.68rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.03em;
padding: 2px 8px;
border-radius: 999px;
}
.review-comment-form { display: flex; gap: 10px; margin-top: 12px; align-items: flex-start; flex-wrap: wrap; }
.review-comment-form textarea {
flex: 1 1 240px;
min-width: 0;
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 8px 12px;
font-family: inherit;
font-size: 0.92rem;
resize: vertical;
}

/* ---------------------------------------------------------------------
 * Aircraft Reviews directory (2026-09-23) — aircraft-reviews.php. A
 * filterable ~600-model list grouped by manufacturer; a model with
 * reviews is a solid accent-colored link with its rating badge, one
 * without is muted and invites the first review.
 * --------------------------------------------------------------------- */
.reviews-directory-sub { color: rgba(255,255,255,0.82); margin-top: 10px; max-width: 640px; }
.reviews-directory-controls { margin-bottom: 18px; }
.reviews-directory-filter {
width: 100%;
max-width: 420px;
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 10px 14px;
font-size: 0.95rem;
font-family: inherit;
}
.reviews-directory-jump {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 28px;
padding-bottom: 18px;
border-bottom: 1px solid var(--border);
}
.reviews-directory-jump a {
font-size: 0.78rem;
font-weight: 600;
color: var(--sky);
background: var(--bg);
border: 1px solid var(--border);
border-radius: 999px;
padding: 4px 10px;
text-decoration: none;
}
.reviews-directory-jump a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.reviews-directory-group { margin-bottom: 30px; scroll-margin-top: 90px; }
.reviews-directory-mfr {
font-size: 1.05rem;
color: var(--navy);
border-bottom: 1px solid var(--border);
padding-bottom: 8px;
margin-bottom: 12px;
}
.reviews-directory-models {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.model-review-link {
display: inline-flex;
flex-direction: column;
gap: 3px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 8px 14px;
text-decoration: none;
min-width: 150px;
}
.model-review-name { font-weight: 600; font-size: 0.92rem; }
.model-review-badge { font-size: 0.78rem; }
.model-review-link.has-reviews { border-color: var(--navy); }
.model-review-link.has-reviews .model-review-name { color: var(--navy); }
.model-review-link.has-reviews .model-review-badge { color: #d99a2b; }
.model-review-link.has-reviews:hover { background: var(--navy); }
.model-review-link.has-reviews:hover .model-review-name,
.model-review-link.has-reviews:hover .model-review-badge { color: #fff; }
.model-review-link.no-reviews { border-style: dashed; opacity: 0.72; }
.model-review-link.no-reviews .model-review-name { color: var(--muted); }
.model-review-link.no-reviews .model-review-badge-empty { color: var(--sky); }
.model-review-link.no-reviews:hover { opacity: 1; border-color: var(--sky); }
