:root {
  --bg: #fff;
  --surface: #FFFFFF;
  --surface-alt: #edf3fa;
  --surface-glass: rgba(255, 255, 255, 0.86);
  --ink: #10243e;
  --ink-secondary: #334155;
  --muted: #64748B;
  --accent: #254caa;
  --accent-soft: #EFF6FF;
  --accent-hover: #1D4ED8;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.16);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 14px 32px -8px rgba(15, 23, 42, 0.11), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --pass-bg: #ECFDF5;
  --pass-ink: #047857;
  --pass-dot: #10B981;
  --tight-bg: #FFFBEB;
  --tight-ink: #B45309;
  --tight-dot: #F59E0B;
  --fail-bg: #FEF2F2;
  --fail-ink: #B91C1C;
  --fail-dot: #EF4444;
  --fare-bg: #F5F3FF;
  --fare-ink: #6D28D9;
  --fare-dot: #8B5CF6;
  --info-bg: #F0F9FF;
  --info-ink: #0369A1;
  --info-dot: #0EA5E9;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #FFF;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.15rem;
}

/* Frosted Glass Sticky Header */
.site-header {
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.8rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
  color: #FFF;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  color: var(--ink-secondary);
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.nav-links a:hover {
  background: var(--surface-alt);
  color: var(--ink);
  text-decoration: none;
}
.nav-links a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

main { padding: 1.75rem 0 3.5rem; }

/* Modern Split Editorial Hero */
.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: center;
}
.hero-media {
  margin: 0;
}
.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  background: var(--surface-alt);
}
.hero-caption {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.45rem;
  line-height: 1.4;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 3.1vw, 2.3rem);
  line-height: 1.15;
  font-weight: 800;
}
h2 {
  margin: 1.85rem 0 0.85rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.25;
  font-weight: 800;
}
h3 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.lead {
  color: var(--ink-secondary);
  font-size: 1.02rem;
  margin: 0;
  max-width: 64ch;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.hero-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
}

/* Tool Workspace Card */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
}
.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
  align-items: center;
}
.preset-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-right: 0.25rem;
}
.btn-chip {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.44rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.btn-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.84rem; font-weight: 700; color: var(--ink); }
.field input, .field select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: flex-end;
  padding: 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.toggle-group {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  gap: 2px;
}
.toggle-group button {
  border: 0;
  background: transparent;
  padding: 0.42rem 0.78rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 7px;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}
.toggle-group button[aria-pressed="true"] {
  background: var(--ink);
  color: #FFF;
  box-shadow: var(--shadow-sm);
}

.error-banner {
  background: var(--fail-bg);
  color: var(--fail-ink);
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Summary KPI Strip */
.summary-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.stat-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}
.stat-num { font-size: 1.4rem; font-weight: 800; line-height: 1.15; color: var(--ink); }
.stat-label { font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-top: 0.25rem; }

/* Airline Verdict & Directory Cards */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: 1rem;
}
.airline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.airline-card:hover {
  transform: none;
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}
.airline-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
}
.airline-name { font-weight: 800; font-size: 1.05rem; margin: 0; line-height: 1.25; }
.airline-region {
  display: inline-block;
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.15rem;
}

/* Semantic Status Pills with Indicator Dots */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  white-space: normal;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.badge-pass { background: var(--pass-bg); color: var(--pass-ink); }
.badge-pass::before { background: var(--pass-dot); }
.badge-tight { background: var(--tight-bg); color: var(--tight-ink); }
.badge-tight::before { background: var(--tight-dot); }
.badge-fail { background: var(--fail-bg); color: var(--fail-ink); }
.badge-fail::before { background: var(--fail-dot); }
.badge-fare_blocked { background: var(--fare-bg); color: var(--fare-ink); }
.badge-fare_blocked::before { background: var(--fare-dot); }
.badge-unverified_numeric { background: var(--info-bg); color: var(--info-ink); }
.badge-unverified_numeric::before { background: var(--info-dot); }

.spec-line {
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
}
.verdict-text { font-size: 0.88rem; color: var(--ink-secondary); margin: 0; line-height: 1.5; }
.card-meta {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--surface-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  gap: 0.5rem;
}

/* Editorial Content Sections & Figures */
.content-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
}
.content-section ul, .content-section ol {
  padding-left: 1.25rem;
}
.content-section li {
  margin-bottom: 0.55rem;
  color: var(--ink-secondary);
}
.content-section p {
  color: var(--ink-secondary);
}
.diagram-card {
  margin: 1.35rem 0;
  padding: 0.85rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.diagram-svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.diagram-caption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.65rem;
  padding: 0 0.25rem;
}

.editorial-figure {
  margin: 1.35rem 0;
}
.editorial-figure img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}
.editorial-figure figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.callout {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
  color: var(--ink);
}
.callout-warn {
  border-left-color: var(--tight-dot);
  background: var(--tight-bg);
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--surface);
}
th, td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: var(--surface-alt);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-secondary);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #F8FAFC; }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Compact navigation with "More guides" disclosure */
.nav-links { align-items: center; }
.nav-more { position: relative; }
.nav-more summary {
  list-style: none;
  cursor: pointer;
  color: var(--ink-secondary);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  user-select: none;
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: " ▾"; font-size: 0.75em; }
.nav-more details[open] summary, .nav-more summary:hover { background: var(--surface-alt); color: var(--ink); }
.nav-more details.is-current summary { background: var(--accent-soft); color: var(--accent); }
.nav-more summary:focus-visible, .airline-picker summary:focus-visible, .card-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-more-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 250px;
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
}
.nav-more-list a { display: block; border-radius: 8px; padding: 0.5rem 0.7rem; }

.tool-title { margin-top: 0; }
.field-hint { font-size: 0.82rem; color: var(--muted); margin: -0.4rem 0 1rem; }
.btn-small { padding: 0.3rem 0.65rem; font-size: 0.78rem; }

/* Airline picker */
.picker-field { flex: 1 1 260px; min-width: 0; }
.airline-picker { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.airline-picker summary { cursor: pointer; padding: 0.6rem 0.8rem; font-weight: 600; font-size: 0.92rem; overflow-wrap: anywhere; }
.picker-body { padding: 0.25rem 0.8rem 0.8rem; border-top: 1px solid var(--border); }
.picker-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }
.picker-group { border: 0; margin: 0.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.2rem 0.75rem; }
.picker-group legend { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 0.25rem; }
.picker-item { display: flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; padding: 0.2rem 0; cursor: pointer; }
.picker-item input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
.picker-hint { font-size: 0.8rem; color: var(--muted); margin: 0.6rem 0 0; }

/* Result cards */
.stat-dims { font-size: 1rem; overflow-wrap: anywhere; }
.result-fail { border-left: 4px solid var(--fail-dot); }
.result-fare_blocked { border-left: 4px solid var(--fare-dot); }
.result-tight { border-left: 4px solid var(--tight-dot); }
.result-pass { border-left: 4px solid var(--pass-dot); }
.verdict-note { font-size: 0.8rem; color: var(--muted); margin: 0; }
.card-details { font-size: 0.86rem; }
.card-details summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 0.84rem; }
.card-details[open] summary { margin-bottom: 0.5rem; }
.card-details .verdict-text { margin-bottom: 0.4rem; }
.quote-list { margin: 0.4rem 0; padding-left: 1.1rem; color: var(--ink-secondary); font-size: 0.86rem; }
.quote-list li { margin-bottom: 0.35rem; }
.source-line { font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere; }
.spec-line, .verdict-text, .airline-name { overflow-wrap: anywhere; }

.show-all-row { grid-column: 1 / -1; display: flex; justify-content: center; padding: 0.5rem 0; }

/* Link grid & log */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.75rem; margin: 1rem 0 0.5rem; }
.link-card { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-alt); color: var(--ink); }
.link-card:hover { border-color: var(--accent); text-decoration: none; }
.link-card span { font-size: 0.78rem; color: var(--muted); overflow-wrap: anywhere; }
.log-list li { margin-bottom: 0.7rem; }
.log-list time { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.82rem; color: var(--muted); }
.row-current td { background: var(--accent-soft); }
.hero-media .diagram-card { margin: 0; }
.footer-links { margin-top: 0.6rem; line-height: 1.9; }
.notfound { text-align: center; padding: 3rem 1.5rem; }
.notfound .lead { margin: 0 auto 1.5rem; }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.notfound-actions a { text-decoration: none; }

@media (max-width: 860px) {
  .nav-more { position: static; }
  .nav-more-list { left: 0.75rem; right: 0.75rem; top: calc(100% - 2px); min-width: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 540px) {
  .hero, .tool-card, .content-section { padding: 1.1rem; border-radius: var(--radius); }
  .header-inner { padding: 0.6rem 0; }
  .nav-links a, .nav-more summary { padding: 0.32rem 0.55rem; font-size: 0.82rem; }
  .toggle-group { flex-wrap: wrap; }
  .controls-row .field { flex: 1 1 100%; }
  .summary-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  th, td { padding: 0.6rem 0.65rem; }
  .results-grid { grid-template-columns: 1fr; }
  .controls-row { padding: 0.8rem; }
}

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

/* Wayfinding: one shared system for the checker, reference pages and tools. */
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-size: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.site-header {
  background: var(--surface);
  border-color: #bfccdc;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header-inner { flex-wrap: nowrap; min-height: 4.15rem; padding: .45rem clamp(.875rem, 3vw, 2.5rem); gap: .5rem 1rem; }
.brand { font-size: clamp(.92rem, 2vw, 1.25rem); line-height: 1.15; }
.brand-mark { width: 1.85rem; height: 1.85rem; flex: 0 0 auto; background: none; box-shadow: none; color: var(--ink); }
.nav-links { flex-wrap: nowrap; }
.nav-links a, .nav-more summary { border-radius: 5px; padding: .55rem .75rem; }
.nav-more summary::after { content: ""; display: inline-block; margin: 0 .12rem .16rem .42rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; width: .42rem; height: .42rem; transform: rotate(45deg); transition: transform .18s ease; }
.nav-more details[open] summary::after { transform: translateY(.24rem) rotate(225deg); }
.nav-more-list { border-radius: 6px; }
main.container { padding-inline: clamp(.875rem, 3vw, 2.5rem); }
.hero {
  padding: clamp(1.5rem, 4.5vw, 4.25rem) 0 clamp(1.5rem, 4vw, 3rem);
  margin: 0 0 1.65rem;
  border: 0;
  border-bottom: 1px solid #a5b8cf;
  border-radius: 0;
  box-shadow: none;
}
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(1.35rem, 4vw, 3.75rem); }
.hero h1 { font-size: clamp(2.35rem, 4vw, 4.1rem); line-height: 1.04; letter-spacing: -.053em; word-spacing: .025em; margin: 0 0 1rem; text-wrap: balance; }
.hero-home h1 { font-size: clamp(3.05rem, 7.3vw, 7rem); text-wrap: unset; line-height: .96; max-width: 8ch; }
.hero .lead { max-width: 37ch; margin-bottom: .8rem; font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: var(--ink-secondary); }
.hero-context { color: var(--muted); font-size: .84rem; margin: 1.2rem 0 0; }
.hero-img { border-radius: 0; border: 0; }
.hero-home .hero-img { aspect-ratio: 1.23; }
.hero-caption { max-width: 54ch; font-size: .78rem; }
.hero-cta { margin-top: .7rem; display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; font-size: 1.05rem; border-bottom: 2px solid currentColor; padding-block: .35rem; }
.hero-cta:hover { text-decoration: none; }
.hero-cta svg { transition: transform .2s ease; }
.hero-cta:hover svg { transform: translateX(3px); }
.content-section { padding: clamp(1.25rem, 3vw, 2.4rem) 0; border: 0; box-shadow: none; border-radius: 0; border-bottom: 1px solid var(--border); }
.content-section h2, .tool-heading h2 { font-size: clamp(1.55rem, 3vw, 2.55rem); line-height: 1.13; letter-spacing: -.045em; text-wrap: balance; }
.content-section > p, .content-section > ul, .content-section > ol { max-width: 75ch; }
.content-section a:not(.link-card) { text-decoration: underline; text-underline-offset: .15em; overflow-wrap: anywhere; }
.table-wrap { border-radius: 5px; }
th { background: #e6eff9; color: var(--ink); letter-spacing: .015em; }
.diagram-card { max-width: 100%; }
.link-grid { grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr)); }
.link-card { background: white; border-radius: 5px; transition: border-color .2s ease, background .2s ease; }
.link-card:hover { background: var(--surface-alt); }
.tool-card { box-shadow: none; border-radius: 8px; border-color: #cad6e4; }
.tool-card[data-checker] { padding: 0; border: 0; background: transparent; }
.tool-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin: 0 0 1rem; }
.tool-heading h2 { margin: 0; }
.tool-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.btn-chip { border-radius: 5px; min-height: 2.5rem; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s ease; }
.btn-chip:active, .toggle-group button:active { transform: translateY(1px); }
.btn-chip:disabled { opacity: .5; cursor: not-allowed; }
.btn-share { color: var(--accent); }
.checker-entry { padding: clamp(.8rem, 2vw, 1.5rem); border: 1px solid #abbdd3; border-radius: 8px; }
.checker-fields { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.field { min-width: 0; }
.field :is(input, select) { border-radius: 5px; min-width: 0; font-size: 1rem; min-height: 2.65rem; }
.controls-row { border: 0; border-top: 1px solid #d1dcea; padding: 1rem 0 0; border-radius: 0; background: white; margin-bottom: 0; }
.toggle-group { border-radius: 6px; max-width: 100%; }
.toggle-group button { border-radius: 4px; min-height: 2.45rem; }
.toggle-group button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.share-message { font-weight: 600; color: var(--accent); overflow-wrap: anywhere; }
.share-message:not(:empty) { margin-top: .7rem; }
.share-message input { max-width: 95%; }
.results-panel { margin-top: 1.1rem; padding: clamp(.8rem, 2vw, 1.6rem); background: var(--surface-alt); border-radius: 8px; }
.results-panel h3 { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.04em; }
.results-scope { margin: .35rem 0 1rem; max-width: 76ch; font-size: .91rem; color: var(--ink-secondary); }
.results-panel .stat-box { background: rgba(255,255,255,.65); }
.summary-bar { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.results-panel .results-grid { grid-template-columns: 1fr; align-items: start; gap: .45rem; }
.airline-card { gap: .45rem; min-width: 0; box-shadow: none; border-radius: 6px; padding: .95rem; }
.airline-card:hover { box-shadow: none; }
.airline-card-head { flex-wrap: wrap; align-items: baseline; }
.airline-card-head > * { min-width: 0; max-width: 100%; }
.badge { border-radius: 4px; overflow-wrap: anywhere; }
.badge::before { flex-shrink: 0; }
.badge-conditional { background: #e7effa; color: #203c78; }
.badge-conditional::before { background: var(--accent); }
.result-conditional { border-left: 4px solid var(--accent); }
.spec-alternate { display: block; }
.condition-field { font-weight: 650; font-size: .875rem; margin: .25rem 0; max-width: 35rem; }
.card-meta { flex-wrap: wrap; justify-content: start; gap: .4rem 1rem; }
.picker-group { grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); min-inline-size: 0; }
.picker-item { overflow-wrap: anywhere; }
.picker-item input { flex: 0 0 auto; }
.results-panel .airline-card { animation: result-in .24s both; }
@keyframes result-in { from { opacity: .75; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }
@media (min-width: 770px) {
  .results-panel .airline-card { display: grid; grid-template-columns: minmax(10rem, .35fr) minmax(0, 1fr); gap: .3rem 1.1rem; }
  .results-panel .airline-card-head { grid-row: 1 / span 4; flex-direction: column; justify-content: flex-start; gap: .55rem; border-right: 1px solid var(--border); padding-right: .8rem; }
  .results-panel .airline-card > :not(.airline-card-head) { grid-column: 2; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
  .checker-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.15rem; }
  .hero-home h1 { max-width: none; }
  .hero-home .hero-img { aspect-ratio: 1.5; object-position: center; }
  .header-inner { min-height: 3.5rem; }
  .nav-links a, .nav-more summary { padding: .55rem .3rem; }
  .nav-links > li:first-child { display: none; }
  .nav-links { gap: .25rem; }
  .checker-fields > :nth-child(n+4) { grid-column: span 1; }
  .controls-row .field { flex-basis: auto; }
  .controls-row .picker-field { flex-basis: 100%; }
}
@media (max-width: 360px) {
  .brand { font-size: .82rem; gap: .25rem; }
  .brand-mark { width: 1.45rem; }
  .nav-links a, .nav-more summary { font-size: .78rem; }
  .hero-home h1 { font-size: 2.65rem; }
  .form-grid:not(.checker-fields) { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .site-header, .site-footer, .tool-actions, .preset-row, .controls-row { display: none; }
  body { color: #000; }
  .airline-card, figure { break-inside: avoid; }
  .table-wrap { overflow: visible; }
}
