/* ============================================================
   一份顶级机场 — Editorial Aviation Field Manual Stylesheet
   Archival paper + print ink + boarding-pass stamps (No AI clichés)
   ============================================================ */

:root {
  --bg: #f5f2eb;
  --surface: #fbf9f4;
  --surface-alt: #ede9df;
  --ink: #1b1917;
  --ink-soft: #57524b;
  --ink-faint: #847d73;
  --line: #d6cfc0;
  --line-strong: #1b1917;

  --forest: #175945;
  --forest-hover: #104233;
  --forest-soft: #e6f2ed;

  --vermilion: #c13527;
  --vermilion-soft: #fbece9;

  --ochre: #a86b10;
  --ochre-soft: #faf1de;

  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --radius: 4px;
  --shadow-print: 3px 3px 0 rgba(27, 25, 23, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(27, 25, 23, 0.045) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--vermilion);
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-alt);
  padding: 0.12em 0.4em;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Reading Progress Bar */
.reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--forest);
  z-index: 1000;
  transition: width 0.08s linear;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(245, 242, 235, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1.5px solid var(--line-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
}

.brand-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  font-size: 0.85rem;
  background: var(--surface);
}

.brand-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--forest);
  border-bottom-color: var(--forest);
}

.menu-toggle {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 5px 10px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* Home Two-Column Editorial Layout */
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 36px;
  padding-top: 28px;
  padding-bottom: 84px;
  align-items: start;
}

.home-main,
.content-section,
.airport-card,
.tool-card,
.checklist-box,
.table-scroll {
  min-width: 0;
  max-width: 100%;
}

.home-sidebar {
  position: sticky;
  top: 80px;
}

.toc-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-print);
}

.toc-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-nav a {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 8px;
  border-left: 2px solid transparent;
  line-height: 1.4;
}

.toc-nav a:hover,
.toc-nav a.is-current {
  color: var(--forest);
  border-left-color: var(--forest);
  background: var(--forest-soft);
  font-weight: 600;
}

/* Hero Boarding-Pass Masthead */
.hero-pass {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 28px;
  box-shadow: 5px 5px 0 rgba(27, 25, 23, 0.1);
}

.hero-pass-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-soft);
}

.hero-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.3;
  margin: 0 0 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.hero-lead strong {
  color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(181, 117, 20, 0.24) 62%);
}

.hero-jump-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-jump-bar a {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 3px;
  transition: border-color 0.15s, background 0.15s;
}

.hero-jump-bar a:hover {
  border-color: var(--ink);
  background: var(--surface-alt);
}

.hero-jump-bar a.jump-warn {
  color: var(--vermilion);
  border-color: rgba(193, 53, 39, 0.45);
  background: var(--vermilion-soft);
  font-weight: 600;
}

.hero-helper-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.helper-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  color: var(--forest);
  background: var(--forest-soft);
  border: 1px solid rgba(23, 89, 69, 0.35);
  padding: 4px 12px;
  border-radius: 3px;
}

.helper-btn:hover {
  background: var(--forest);
  color: #fff;
}

/* Interactive Tool Cards */
.tool-card {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-left: 5px solid var(--forest);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-print);
}

.tool-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--forest);
  margin-bottom: 4px;
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.tool-header h2 {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  margin: 0 0 6px;
}

.tool-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.matcher-controls {
  display: grid;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.control-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.chip-row,
.table-filters,
.risk-tabs,
.os-tabs,
.trouble-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  font-family: var(--font-sans);
  font-size: 0.83rem;
  padding: 5px 11px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.chip:hover {
  border-color: var(--ink);
}

.chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.matcher-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.matcher-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.match-ticket {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: 3px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticket-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ticket-code,
.flight-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 1px 6px;
  background: var(--ink);
  color: #fff;
  border-radius: 2px;
}

.ticket-name {
  font-size: 0.95rem;
  color: var(--ink);
}

.ticket-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--forest);
  font-weight: 600;
}

.ticket-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ticket-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.ticket-link {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

/* Content Sections */
.content-section {
  margin-bottom: 44px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--ink);
  color: #fff;
  border-radius: 2px;
  flex-shrink: 0;
}

.section-num.is-warn {
  background: var(--vermilion);
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 0;
  line-height: 1.3;
}

.content-section h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  margin: 22px 0 10px;
}

.editorial-note {
  background: var(--surface-alt);
  border-left: 3px solid var(--ink);
  padding: 11px 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.muted-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Buttons & Interactive Pills */
.btn-primary,
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: background 0.14s, color 0.14s;
}

.btn-primary {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.btn-primary:hover {
  background: var(--forest-hover);
  color: #fff;
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
  font-weight: 500;
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.82rem;
}

.coupon-pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--forest);
  background: var(--forest-soft);
  border: 1px dashed var(--forest);
  padding: 3px 7px;
  border-radius: 3px;
  cursor: pointer;
  white-space: normal;
  word-break: break-all;
  max-width: 100%;
  line-height: 1.35;
}

.coupon-pill:hover {
  background: var(--forest);
  color: #fff;
}

.compare-btn {
  font-size: 0.78rem;
  padding: 3px 8px;
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.compare-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.compare-btn[aria-pressed="true"] {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.go-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--forest);
  background: var(--forest-soft);
  border: 1px solid rgba(23, 89, 69, 0.45);
  padding: 3px 8px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.14s, color 0.14s;
}

.go-btn:hover,
.go-btn.is-solid {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.go-btn.is-solid:hover {
  background: var(--forest-hover);
  border-color: var(--forest-hover);
}

/* 404 Boarding-Pass Error Page */
.error-shell {
  max-width: 880px;
  padding-top: 44px;
  padding-bottom: 72px;
}

.error-pass {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-top: 5px solid var(--vermilion);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: 5px 5px 0 rgba(27, 25, 23, 0.1);
}

.error-pass-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.error-status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--vermilion);
  font-weight: 600;
}

.error-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 10px;
  line-height: 1.3;
}

.error-lead {
  margin: 0 0 22px;
  color: var(--ink-soft);
}

.error-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.error-nav-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: 3px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.14s, background 0.14s;
}

.error-nav-card:hover {
  border-color: var(--forest);
  background: var(--forest-soft);
  color: var(--ink);
}

.error-nav-card.is-primary {
  border-left-color: var(--forest);
}

.error-nav-card.is-warn {
  border-left-color: var(--vermilion);
}

.error-card-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.error-nav-card strong {
  font-family: var(--font-serif);
  font-size: 1rem;
}

.error-nav-card span:last-child {
  font-size: 0.83rem;
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Protected Contact Vault Frame */
.contact-vault {
  margin-top: 28px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-top: 4px solid var(--forest);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-print);
}

.vault-head h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 4px 0 6px;
}

.vault-desc {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.vault-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: 3px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vault-card.is-unlocked {
  border-left-color: var(--forest);
  background: var(--forest-soft);
}

.vault-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.vault-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  background: var(--ink);
  color: #fff;
  border-radius: 2px;
}

.vault-state {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.vault-card.is-unlocked .vault-state {
  color: var(--forest);
  font-weight: 600;
}

.vault-display {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px dashed var(--line);
  padding: 8px 10px;
  border-radius: 3px;
  word-break: break-all;
}

.vault-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Tables */
.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.search-box {
  flex: 1 1 240px;
}

.search-box input,
.risk-search {
  width: 100%;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

.search-box input:focus,
.risk-search:focus {
  outline: none;
  border-color: var(--forest);
}

.table-scroll {
  width: 100%;
  overflow: visible;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
  line-height: 1.5;
}

.data-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  padding: 9px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.data-table th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--ink);
  padding: 10px 8px;
  border-bottom: 1.5px solid var(--ink);
  vertical-align: middle;
  word-break: break-word;
  overflow-wrap: break-word;
}

.data-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Balanced column widths so tables fit 100% with zero horizontal scrolling */
#airportTable th:nth-child(1) { width: 17%; }
#airportTable th:nth-child(2) { width: 9%; }
#airportTable th:nth-child(3) { width: 16%; }
#airportTable th:nth-child(4) { width: 17%; }
#airportTable th:nth-child(5) { width: 9%; }
#airportTable th:nth-child(6) { width: 8%; }
#airportTable th:nth-child(7) { width: 12%; }
#airportTable th:nth-child(8) { width: 12%; }

.plan-table th:nth-child(1) { width: 20%; }
.plan-table th:nth-child(2) { width: 19%; }
.plan-table th:nth-child(3) { width: 12%; }
.plan-table th:nth-child(4) { width: 13%; }
.plan-table th:nth-child(5) { width: 26%; }
.plan-table th:nth-child(6) { width: 10%; }

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: rgba(23, 89, 69, 0.04);
}

.name-group {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.row-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 2px;
  flex-shrink: 0;
}

.airport-anchor {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.airport-anchor:hover {
  color: var(--forest);
  text-decoration: underline;
}

.cell-price {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest);
  white-space: normal;
  word-break: break-word;
}

.mono-cell {
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.cell-muted {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.cell-actions {
  vertical-align: middle;
}

.action-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.mini-link {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.tg-link {
  font-size: 0.82rem;
  white-space: nowrap;
}

.muted-dash {
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.table-empty {
  text-align: center;
  padding: 20px;
  background: var(--surface);
  border: 1px dashed var(--line);
  color: var(--ink-soft);
  margin-top: 10px;
}

/* Pre-payment Checklist */
.checklist-box {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-print);
}

.checklist-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.checklist-head h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 4px;
}

.checklist-sub {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.checklist-stamp {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 10px;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  color: var(--ink-soft);
}

.checklist-stamp.is-done {
  border-color: var(--forest);
  background: var(--forest-soft);
  color: var(--forest);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 10px;
}

.check-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.9rem;
}

.check-list input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--forest);
  flex-shrink: 0;
}

.check-list label:has(input:checked) {
  background: var(--forest-soft);
  border-color: rgba(23, 89, 69, 0.4);
}

.checklist-foot {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Risk & Runaway Archive */
.risk-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.risk-search {
  max-width: 280px;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 9px;
  max-height: 430px;
  overflow-y: auto;
  padding: 4px 2px 8px;
}

.risk-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--vermilion);
  border-radius: 3px;
  padding: 9px 11px;
}

.risk-item.is-warn,
.risk-item.is-high {
  border-left-color: var(--ochre);
}

.risk-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.risk-name {
  font-weight: 600;
  font-size: 0.87rem;
  line-height: 1.35;
}

.risk-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-dead {
  background: var(--vermilion-soft);
  color: var(--vermilion);
  border: 1px solid rgba(193, 53, 39, 0.35);
}

.badge-high {
  background: var(--vermilion);
  color: #fff;
}

.badge-warn {
  background: var(--ochre-soft);
  color: var(--ochre);
  border: 1px solid rgba(168, 107, 16, 0.35);
}

.risk-group-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* Risk Self-Checker */
.risk-checker {
  margin-top: 22px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-left: 5px solid var(--vermilion);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.risk-checker-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.risk-checker-head h3 {
  margin: 2px 0 4px;
}

.risk-checker-head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.risk-meter {
  min-width: 190px;
  padding: 8px 12px;
  border-radius: 3px;
  border: 1.5px solid var(--forest);
  background: var(--forest-soft);
  color: var(--forest);
}

.risk-meter[data-level="warn"] {
  border-color: var(--ochre);
  background: var(--ochre-soft);
  color: var(--ochre);
}

.risk-meter[data-level="danger"] {
  border-color: var(--vermilion);
  background: var(--vermilion-soft);
  color: var(--vermilion);
}

.meter-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.85;
}

.meter-value {
  font-size: 0.92rem;
}

.risk-symptoms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.symptom-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.87rem;
  cursor: pointer;
}

.symptom-item input {
  accent-color: var(--vermilion);
  width: 15px;
  height: 15px;
}

.risk-advice {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

/* Paper Callout */
.callout-paper {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--forest);
  padding: 22px 24px;
  border-radius: var(--radius);
}

.callout-paper h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.bullet-list,
.step-list {
  padding-left: 20px;
  margin: 10px 0 16px;
}

.bullet-list li,
.step-list li {
  margin-bottom: 6px;
}

/* Airport Detail Cards (1..30) */
.review-list {
  display: grid;
  gap: 24px;
}

.airport-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-print);
}

.airport-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.airport-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.airport-title-wrap h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.airport-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.airport-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.airport-meta-strip strong {
  color: var(--ink);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.spec-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 2px 7px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-soft);
}

.airport-desc p {
  margin: 0 0 10px;
  font-size: 0.93rem;
}

/* OS Client Tabs */
.os-panels {
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.os-panel {
  display: none;
}

.os-panel.is-active {
  display: block;
}

.os-panel ul {
  margin: 0;
  padding-left: 18px;
}

/* Card Grids */
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.info-card,
.scenario-card,
.pitfall-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.info-card h3,
.info-card h4,
.scenario-card h3,
.pitfall-col h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.info-card ul,
.scenario-card ul,
.pitfall-col ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.9rem;
}

.scenario-picks {
  font-size: 0.88rem;
  background: var(--bg);
  padding: 8px 10px;
  border-radius: 3px;
  margin: 8px 0;
}

.pitfall-col.is-danger {
  border-top: 3px solid var(--vermilion);
}

.pitfall-col.is-safe {
  border-top: 3px solid var(--forest);
}

.pitfall-col.is-warn {
  border-top: 3px solid var(--ochre);
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.faq-list summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--forest);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Coupons Grid */
.coupon-grid {
  display: grid;
  gap: 8px;
}

.coupon-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 3px;
}

.coupon-row-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.9rem;
}

.coupon-name {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.coupon-desc {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

/* Combo Box & Reader Poll */
.combo-box {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  padding: 18px 20px;
  border-radius: var(--radius);
  margin: 18px 0 24px;
}

.combo-box h3 {
  margin: 0 0 10px;
}

.poll-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ochre);
  padding: 20px 22px;
  border-radius: var(--radius);
}

.poll-box h3 {
  margin: 4px 0 12px;
}

.poll-options {
  display: grid;
  gap: 8px;
}

.poll-opt {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink);
  overflow: hidden;
}

.poll-opt:hover {
  border-color: var(--ink);
}

.poll-opt.is-picked {
  border-color: var(--forest);
  background: var(--forest-soft);
  font-weight: 600;
}

.poll-pct {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--forest);
}

.poll-foot {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* Blog Teasers & Archive & Article */
.post-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.post-teaser {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  padding: 16px 18px;
  border-radius: var(--radius);
}

.post-teaser:hover {
  border-color: var(--forest);
  color: var(--ink);
}

.post-teaser-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.post-teaser h3 {
  margin: 6px 0 8px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.post-teaser p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--ink-soft);
}

.archive-shell,
.article-shell {
  max-width: 820px;
  padding-top: 36px;
  padding-bottom: 72px;
}

.archive-header,
.article-header {
  padding-bottom: 20px;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--ink);
}

.archive-header h1,
.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 6px 0 12px;
  line-height: 1.3;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: flex;
  gap: 8px;
}

.article-lead {
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin: 0;
}

.archive-list {
  display: grid;
  gap: 20px;
}

.archive-item {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-print);
}

.archive-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.archive-item h2 {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  margin: 6px 0 10px;
}

.archive-item h2 a {
  color: var(--ink);
  text-decoration: none;
}

.archive-item h2 a:hover {
  color: var(--forest);
}

.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 26px 30px;
  border-radius: var(--radius);
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 26px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose blockquote {
  margin: 16px 0;
  padding: 10px 16px;
  background: var(--bg);
  border-left: 3px solid var(--forest);
  color: var(--ink-soft);
}

.prose table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.86rem;
}

.prose th,
.prose td {
  padding: 9px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: break-word;
}

.prose th {
  background: var(--surface-alt);
  font-weight: 700;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--forest);
  text-decoration: underline;
}

.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pillar-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-left: 5px solid var(--forest);
  border-radius: var(--radius);
  box-shadow: var(--shadow-print);
}

.pillar-cta h3 {
  font-family: var(--font-serif);
  margin: 4px 0 6px;
  font-size: 1.15rem;
}

.pillar-cta p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 500px;
}

.pillar-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-posts {
  margin-top: 28px;
}

.related-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--ink);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

/* Floating Comparison Dock & Dialog */
.compare-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: var(--ink);
  color: #fff;
  border-top: 2px solid var(--forest);
  padding: 10px 0;
}

.compare-dock-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.compare-dock-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.dock-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--forest);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
}

.compare-dock .btn-ghost {
  color: #e5e0d5;
  border-color: rgba(255, 255, 255, 0.3);
}

.compare-dock-actions {
  display: flex;
  gap: 8px;
}

.compare-dialog {
  width: min(920px, 94vw);
  max-height: 84vh;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: 8px 8px 0 rgba(27, 25, 23, 0.2);
}

.compare-dialog::backdrop {
  background: rgba(27, 25, 23, 0.55);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--surface-alt);
}

.dialog-header h3 {
  margin: 0;
  font-family: var(--font-serif);
}

.dialog-body {
  padding: 18px 20px;
  overflow: auto;
}

/* Footer */
.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--surface-alt);
  padding: 36px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line);
}

.footer-brand {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.footer-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 460px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--forest);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  background: var(--ink);
  color: #fff;
  font-size: 0.86rem;
  padding: 10px 16px;
  border-radius: var(--radius);
  border-left: 4px solid var(--forest);
  box-shadow: 4px 4px 0 rgba(27, 25, 23, 0.2);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1040px) {
  .home-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-sidebar {
    display: none;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 14px;
  }
  .menu-toggle {
    display: inline-block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1.5px solid var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px;
    gap: 10px;
  }
  .site-nav.is-open {
    display: flex;
  }
  .hero-pass,
  .error-pass,
  .contact-vault {
    padding: 18px 16px;
  }
  .tool-card,
  .airport-card,
  .prose {
    padding: 16px;
  }
  .card-grid-2,
  .card-grid-3,
  .matcher-results,
  .risk-grid,
  .risk-symptoms,
  .vault-grid,
  .error-nav-grid,
  .post-teaser-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .coupon-row {
    flex-wrap: wrap;
  }
  .risk-meter {
    min-width: 0;
    width: 100%;
  }
  .risk-search {
    max-width: 100%;
  }
  /* Stack wide tables into clean key-value cards on mobile — zero horizontal scroll */
  #airportTable thead,
  .plan-table thead {
    display: none;
  }
  #airportTable,
  #airportTable tbody,
  #airportTable tr,
  #airportTable td,
  .plan-table,
  .plan-table tbody,
  .plan-table tr,
  .plan-table td {
    display: block;
    width: 100%;
  }
  #airportTable tbody tr,
  .plan-table tbody tr {
    padding: 10px 12px;
    border-bottom: 2px solid var(--line);
  }
  #airportTable tbody tr:last-child,
  .plan-table tbody tr:last-child {
    border-bottom: none;
  }
  #airportTable td,
  .plan-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 0;
    text-align: right;
    border-bottom: 1px dashed var(--line);
  }
  #airportTable td:last-child,
  .plan-table td:last-child {
    border-bottom: none;
  }
  #airportTable td::before,
  .plan-table td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--ink-soft);
    text-align: left;
    flex-shrink: 0;
  }
  .name-group,
  .action-group {
    justify-content: flex-end;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
