/* ==========================================================================
   顶级机场博客 — 独立杂志精选风 (Independent Review Magazine)
   柔和灰白底色 · 饱满白卡层级 · 藏青 (#1B2A4A) & 珊瑚橙 (#E85D3F) 点缀
   ========================================================================== */

:root {
  --bg: #f3f4f7;
  --surface: #ffffff;
  --surface-alt: #f7f8fb;
  --ink: #182235;
  --ink-muted: #526075;
  --ink-faint: #8492a6;
  --border: #e4e7ee;
  --border-hover: #cfd6e3;

  --navy: #1b2a4a;
  --navy-hover: #243760;
  --navy-soft: #edf1f8;

  --accent: #e85d3f;
  --accent-hover: #d44d30;
  --accent-soft: #fef1ee;

  --safe: #188663;
  --safe-soft: #ebf8f3;
  --danger: #d9383a;
  --danger-soft: #fef0f0;
  --warn: #c47a14;
  --warn-soft: #fef6e8;

  --shadow-xs: 0 1px 2px rgba(24, 34, 53, 0.04);
  --shadow-sm: 0 2px 10px rgba(24, 34, 53, 0.05), 0 1px 2px rgba(24, 34, 53, 0.03);
  --shadow-md: 0 10px 30px rgba(24, 34, 53, 0.09), 0 2px 6px rgba(24, 34, 53, 0.04);
  --shadow-lg: 0 20px 48px rgba(24, 34, 53, 0.16);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

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

[data-theme="dark"] {
  --bg: #101520;
  --surface: #171e2d;
  --surface-alt: #1f283b;
  --ink: #eef2f8;
  --ink-muted: #9aa7bd;
  --ink-faint: #6b7890;
  --border: #273248;
  --border-hover: #394866;

  --navy: #dce5f5;
  --navy-hover: #ffffff;
  --navy-soft: rgba(143, 168, 216, 0.14);

  --accent: #f06e51;
  --accent-hover: #f58268;
  --accent-soft: rgba(240, 110, 81, 0.15);

  --safe: #34c293;
  --safe-soft: rgba(52, 194, 147, 0.14);
  --danger: #f06264;
  --danger-soft: rgba(240, 98, 100, 0.16);
  --warn: #ebb04d;
  --warn-soft: rgba(235, 176, 77, 0.15);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 22px 52px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
}

.page-narrow {
  max-width: 840px;
  padding-top: 36px;
  padding-bottom: 80px;
}

/* Reading Progress */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  z-index: 1000;
  transition: width 0.08s linear;
}

/* ==========================================================================
   Header — Magazine Top Navy Bar + Frosted White Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}

.masthead-top {
  background: #1b2a4a;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

[data-theme="dark"] .masthead-top {
  background: #0b0f18;
  border-bottom: 1px solid var(--border);
}

.masthead-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 12px;
}

.masthead-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.meta-sep { opacity: 0.4; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.2); }

.masthead-main {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .masthead-main {
  background: rgba(23, 30, 45, 0.92);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--ink); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: #ffffff;
  font-size: 18px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(232, 93, 63, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
}

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

.nav-link {
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.15s ease;
}
.nav-link:hover {
  color: var(--navy);
  background: var(--navy-soft);
  text-decoration: none;
}
.nav-link.is-active {
  background: var(--navy);
  color: #ffffff;
}
[data-theme="dark"] .nav-link.is-active {
  background: var(--accent);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
}

/* ==========================================================================
   Home 2-Column Magazine Layout
   ========================================================================== */
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 88px;
  align-items: stretch;
}

.home-content { min-width: 0; }

/* Editorial Feature Hero Card */
.editorial-lead {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 34px 26px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.editorial-lead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--accent) 100%);
}

.lead-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.kicker-tag {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 11px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.lead-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.8vw, 33px);
  font-weight: 900;
  line-height: 1.32;
  color: var(--navy);
  margin: 0 0 14px;
}

.lead-summary {
  font-size: 15.5px;
  color: var(--ink-muted);
  margin: 0 0 20px;
  max-width: 74ch;
  line-height: 1.8;
}
.lead-summary strong { color: var(--ink); }

.quick-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.quick-anchors a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  transition: all 0.15s ease;
}
.quick-anchors a:hover {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--navy-soft);
  text-decoration: none;
}
.quick-anchors a.anchor-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
}
.quick-anchors a.anchor-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}
.quick-anchors a.anchor-danger {
  background: var(--danger-soft);
  border-color: transparent;
  color: var(--danger);
  font-weight: 600;
}
.quick-anchors a.anchor-danger:hover {
  border-color: var(--danger);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.stat-cell {
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.stat-label {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* ==========================================================================
   Interactive Panels (Elevated Magazine Widgets)
   ========================================================================== */
.interactive-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 112px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.panel-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.panel-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.35;
}

.panel-desc {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 18px;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.quiz-step {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: var(--radius);
}

.quiz-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.step-no {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--navy);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}
[data-theme="dark"] .step-no { background: var(--accent); }

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.chip.is-selected {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
  box-shadow: 0 2px 6px rgba(27, 42, 74, 0.2);
}
[data-theme="dark"] .chip.is-selected {
  background: var(--accent);
  border-color: var(--accent);
}

.quiz-result-wrap {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

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

.quiz-result-title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
}

.quiz-tip {
  font-size: 12.5px;
  color: var(--navy);
  background: var(--navy-soft);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.quiz-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.quiz-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.quiz-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-hover);
}

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

.quiz-card-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}

.quiz-card-price {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 700;
}

.quiz-card-reason {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

.quiz-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
.content-section {
  margin-bottom: 42px;
  scroll-margin-top: 112px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.35;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  background: var(--navy-soft);
  color: var(--navy);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.section-index.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.editorial-note {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 16px;
}

/* Table Toolbar */
.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

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

.search-box input,
.risk-toolbar input,
.sort-box select,
.note-form input,
.note-form select,
.note-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 9px 13px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 13.5px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box input:focus,
.risk-toolbar input:focus,
.sort-box select:focus,
.note-form input:focus,
.note-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.filter-chips, .risk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s;
}
.filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.filter-btn.is-active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}
[data-theme="dark"] .filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.table-status-line, .risk-status-line {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

/* Data Tables (Clean Elevated Card Table) */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.data-table th {
  background: var(--surface-alt);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink-muted);
  padding: 11px 9px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-alt); }

.col-name { min-width: 132px; }
.rank-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy);
  background: var(--navy-soft);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  margin-right: 6px;
}
.airport-link {
  font-weight: 700;
  color: var(--ink);
}
.airport-link:hover { color: var(--accent); }

.col-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--navy);
  font-weight: 600;
}
.col-sub { font-size: 12px; color: var(--ink-muted); max-width: 136px; line-height: 1.45; }
.muted { color: var(--ink-faint); font-size: 12.5px; }
.muted-sm { color: var(--ink-muted); font-size: 13px; margin: 4px 0 0; }

.tg-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.tg-link:hover { color: var(--accent); }

.coupon-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 93, 63, 0.28);
  color: var(--accent);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.coupon-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.copy-hint { font-size: 11px; opacity: 0.85; }

.col-actions {
  white-space: nowrap;
  vertical-align: middle;
}
.col-actions .go-link,
.col-actions .compare-toggle {
  margin-right: 6px;
}

.go-link {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.go-link:hover {
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}
[data-theme="dark"] .go-link {
  background: var(--accent);
  color: #ffffff;
}
[data-theme="dark"] .go-link:hover {
  background: var(--accent-hover);
}

.coupon-card-btns,
.quiz-card-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* 404 Not Found Page */
.notfound {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.notfound-code {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 12px;
}
.notfound .page-lead {
  max-width: 54ch;
  margin: 0 auto 24px;
}
.notfound-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.notfound-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  text-align: left;
}
.notfound-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.notfound-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.notfound-card strong {
  font-size: 15px;
  color: var(--navy);
}
.notfound-card span {
  font-size: 13px;
  color: var(--ink-muted);
}
@media (max-width: 720px) {
  .notfound { padding: 30px 20px; }
  .notfound-grid { grid-template-columns: 1fr; }
}

#airportsTable td:nth-child(4),
#airportsTable td:nth-child(5),
#airportsTable td:nth-child(6) {
  white-space: nowrap;
}

.compare-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s;
}
.compare-toggle:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.compare-toggle.is-added {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}
[data-theme="dark"] .compare-toggle.is-added {
  background: var(--accent);
  border-color: var(--accent);
}

.detail-link { font-size: 12.5px; font-weight: 600; }

/* Checklist Card */
.checklist-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.checklist-head h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.checklist-progress {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  background: var(--navy-soft);
  color: var(--navy);
  border-radius: var(--radius-pill);
}
.checklist-progress.is-done {
  background: var(--safe-soft);
  color: var(--safe);
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.check-card {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}
.check-card:hover { border-color: var(--border-hover); }
.check-card input {
  margin-top: 4px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.check-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-muted);
}
.check-body strong { color: var(--ink); font-size: 14px; }
.check-card:has(input:checked) {
  border-color: var(--safe);
  background: var(--safe-soft);
}

/* Risk Archive */
.risk-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-height: 460px;
  overflow-y: auto;
  padding: 2px 4px 4px 2px;
}

.risk-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.risk-item.is-confirmed { border-top: 3px solid var(--danger); }
.risk-item.is-warning, .risk-item.is-high { border-top: 3px solid var(--warn); }

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

.risk-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
}

.risk-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  white-space: nowrap;
}

.risk-badge {
  font-size: 12px;
  font-weight: 600;
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}
.badge-confirmed { background: var(--danger-soft); color: var(--danger); }
.badge-high { background: var(--danger-soft); color: var(--danger); }
.badge-warning { background: var(--warn-soft); color: var(--warn); }

/* Callouts */
.two-col-callout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.callout-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.callout-box h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}
.callout-box p { font-size: 14px; color: var(--ink-muted); margin: 0 0 10px; }
.callout-box strong { color: var(--ink); }
.tight-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.tight-list li { margin-bottom: 6px; }

.bullet-columns {
  columns: 2;
  column-gap: 28px;
  padding: 18px 22px 18px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  font-size: 14px;
  margin: 14px 0 18px;
}
.bullet-columns li { margin-bottom: 8px; break-inside: avoid; }

/* Airport Review Cards */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.airport-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 112px;
  transition: box-shadow 0.2s ease;
}
.airport-card:hover { box-shadow: var(--shadow-md); }

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

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

.airport-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  background: var(--navy);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
[data-theme="dark"] .airport-num { background: var(--accent); }

.airport-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

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

.airport-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--ink-muted);
  background: var(--surface-alt);
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.airport-meta-bar strong { color: var(--ink); }

.airport-desc {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin: 0 0 16px;
  line-height: 1.8;
}

.airport-card .table-scroll {
  box-shadow: none;
  border-radius: var(--radius);
}

/* Steps & OS Grid */
.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.step-block h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}
.step-block ul, .step-block ol {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-muted);
}
.step-block strong { color: var(--ink); }
.step-block li { margin-bottom: 6px; }

.os-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.os-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: var(--radius);
}
.os-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.os-card ul {
  padding-left: 16px;
  margin: 0;
  font-size: 13px;
}

/* Privacy Grid */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.privacy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.privacy-card h4 { margin: 0 0 6px; font-size: 15px; color: var(--navy); }
.privacy-card p { margin: 0; font-size: 13.5px; color: var(--ink-muted); }

/* Interactive Troubleshooter */
.trouble-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.trouble-tab {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s;
}
.trouble-tab:hover { border-color: var(--navy); color: var(--navy); }
.trouble-tab.is-active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.trouble-body {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 18px 20px;
  border-radius: var(--radius);
}
.trouble-pane h4 { margin: 0 0 12px; font-size: 15.5px; color: var(--navy); }
.trouble-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.trouble-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}
.trouble-list input {
  margin-top: 4px;
  accent-color: var(--accent);
}
.trouble-list input:checked + span {
  text-decoration: line-through;
  color: var(--ink-faint);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-xs);
}
.faq-item summary {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--accent);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink-muted);
}

/* Scenarios */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.scenario-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.scenario-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.scenario-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}
.scenario-picks {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 14px;
}
.scenario-tip {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

/* Trap Grid */
.trap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--navy);
  padding: 20px 20px;
  box-shadow: var(--shadow-sm);
}
.trap-card.is-danger { border-top-color: var(--danger); }
.trap-card.is-safe { border-top-color: var(--safe); }
.trap-card.is-warn { border-top-color: var(--warn); }
.trap-card h3 { font-size: 16px; font-weight: 800; color: var(--navy); margin: 0 0 4px; }
.trap-card ul { padding-left: 18px; margin: 12px 0 0; font-size: 13.5px; color: var(--ink-muted); }
.trap-card strong { color: var(--ink); }
.trap-card li { margin-bottom: 6px; }

/* Coupons Grid */
.coupon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.coupon-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.coupon-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

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

.coupon-airport {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  min-width: 0;
  word-break: break-word;
}
.coupon-none {
  font-size: 12px;
  color: var(--ink-faint);
}
.coupon-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

/* Summary & Community */
.summary-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.summary-points {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-muted);
}
.summary-points strong { color: var(--ink); }
.summary-points li { margin-bottom: 7px; }

.combo-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.combo-box h4 { margin: 0 0 10px; font-size: 15px; color: var(--navy); }
.combo-box ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-muted); }
.combo-box strong { color: var(--ink); }
.combo-box li { margin-bottom: 6px; }

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  margin-top: 16px;
}

.poll-question {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
  margin-bottom: 12px;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poll-opt {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  text-align: left;
  transition: border-color 0.15s;
}
.poll-opt:hover { border-color: var(--accent); }
.poll-opt.is-picked { border-color: var(--accent); font-weight: 700; }
.poll-text, .poll-pct { position: relative; z-index: 1; }
.poll-pct { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 700; }
.poll-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background: var(--accent-soft);
  transition: width 0.4s ease;
}

.poll-meta {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 8px;
}

.note-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.note-form-row {
  display: grid;
  grid-template-columns: 1fr 124px;
  gap: 8px;
}
.note-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.note-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.note-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px;
}
.note-card-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.note-card-head strong { color: var(--navy); }

/* Right Sidebar TOC */
.home-sidebar { position: relative; }

.sidebar-sticky {
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
}

.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

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

.toc-link {
  font-size: 13px;
  color: var(--ink-muted);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.14s ease;
}
.toc-link:hover {
  color: var(--navy);
  background: var(--surface-alt);
  text-decoration: none;
}
.toc-link.is-active {
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-soft);
}

.sidebar-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-post-list a {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.45;
  display: block;
}
.sidebar-post-list a:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-sm { padding: 6px 14px; font-size: 12.5px; }
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(232, 93, 63, 0.25);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}
.btn-outline {
  background: var(--surface);
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #ffffff;
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-muted);
}
.btn-ghost:hover {
  color: var(--navy);
  border-color: var(--navy);
}

/* Floating Compare Bar & Modal */
.compare-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(780px, calc(100% - 24px));
  background: #1b2a4a;
  color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  padding: 12px 16px;
}

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

.compare-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.compare-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--accent);
  color: #ffffff;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

.compare-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compare-pill {
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.compare-pill button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}

.compare-bar .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 21, 32, 0.58);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: min(920px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
}
.modal-header h3 { margin: 0; font-size: 18px; color: var(--navy); }

.icon-btn {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.modal-body { padding: 20px 22px; }

/* Toast */
.toast {
  position: fixed;
  top: 86px;
  right: 22px;
  background: #1b2a4a;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 400;
}

/* ==========================================================================
   Blog Archive, Single Post & Home Knowledge Cards
   ========================================================================== */
.archive-header, .article-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 31px);
  color: var(--navy);
  margin: 0 0 12px;
  line-height: 1.35;
}

.page-lead { margin: 0; color: var(--ink-muted); }

.post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.post-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.post-row-meta, .article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.tag-chip {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy);
  background: var(--navy-soft);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.post-row-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.4;
}
.post-row-title a { color: var(--navy); }
.post-row-title a:hover { color: var(--accent); }
.post-row-summary { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-muted); }
.post-row-link { font-size: 13.5px; font-weight: 700; }

.breadcrumb {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
}

.article-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}
.article-toc summary {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}
.article-toc nav ul {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 13.5px;
}
.article-toc nav li { margin-bottom: 5px; }

.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  box-shadow: var(--shadow-sm);
}
.prose h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink-muted); }
.prose strong { color: var(--ink); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.prose th, .prose td {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}
.prose th { background: var(--surface-alt); color: var(--navy); font-weight: 700; }
.prose blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 26px 0;
}

.pillar-cta {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}
.pillar-cta-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.pillar-cta h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}
.pillar-cta p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-muted);
}
.pillar-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-posts { margin-top: 30px; }
.related-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 14px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.related-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.related-card-title { font-weight: 700; font-size: 14.5px; color: var(--navy); line-height: 1.45; }
.related-card-meta { font-size: 12px; color: var(--accent); font-weight: 600; }

.article-footer {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.home-article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.home-article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.home-article-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.45;
}
.home-article-card h3 a { color: var(--navy); }
.home-article-card h3 a:hover { color: var(--accent); }
.home-article-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.65;
}
.home-article-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-faint);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Footer — Deep Navy Editorial Anchor
   ========================================================================== */
.site-footer {
  background: #1b2a4a;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 40px;
}

[data-theme="dark"] .site-footer {
  background: #0b0f18;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 32px;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-note {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 46ch;
}

.footer-heading {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}
.footer-links a { color: rgba(255, 255, 255, 0.84); }
.footer-links a:hover { color: #ffffff; }
.footer-inline-link { color: rgba(255, 255, 255, 0.78); }
.footer-inline-link:hover { color: #ffffff; }

/* Standalone Legal/About Switcher & Protected Contact Frame */
.legal-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.legal-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.15s ease;
}
.legal-pill:hover {
  border-color: var(--navy);
  color: var(--navy);
  text-decoration: none;
}
.legal-pill.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}
[data-theme="dark"] .legal-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.contact-frame {
  margin: 22px 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.contact-frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.contact-frame-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.contact-frame-tip {
  font-size: 12.5px;
  color: var(--ink-faint);
}
.contact-frame-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-xs);
}
.contact-box-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 17px;
  flex-shrink: 0;
}
.contact-box-top strong {
  display: block;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 3px;
}
.contact-box-top p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}
.contact-masked {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  background: var(--surface-alt);
  border: 1px dashed var(--border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.contact-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--safe-soft);
  border: 1px solid rgba(24, 134, 99, 0.25);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
}
.contact-link {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  word-break: break-all;
}
@media (max-width: 720px) {
  .contact-frame-grid { grid-template-columns: 1fr; }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.16);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1040px) {
  .home-layout { grid-template-columns: 1fr; }
  .home-sidebar { display: none; }
  .quiz-grid, .quiz-cards, .trap-grid { grid-template-columns: 1fr; }
  .os-grid { grid-template-columns: repeat(2, 1fr); }
  .risk-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hide-sm { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px;
  }
  .site-nav.is-open { display: flex; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .checklist-grid, .two-col-callout, .privacy-grid, .scenario-grid, .coupon-grid, .summary-box, .community-grid, .footer-inner, .related-grid, .home-articles-grid {
    grid-template-columns: 1fr;
  }
  .bullet-columns { columns: 1; }
  .risk-grid, .os-grid { grid-template-columns: 1fr; }
  .editorial-lead, .prose, .interactive-panel { padding: 20px 18px; }
  .note-form-row { grid-template-columns: 1fr; }
  .coupon-card-btns { flex-wrap: wrap; }

  /* Mobile Card-Stacked Tables (zero horizontal swiping on phones) */
  .table-scroll {
    overflow-x: visible;
    border: none;
    background: transparent;
    box-shadow: none;
  }
  .data-table,
  .data-table tbody,
  .prose table,
  .prose table tbody {
    display: block;
    width: 100%;
  }
  .data-table thead,
  .prose table thead {
    display: none;
  }
  .data-table tbody tr,
  .prose table tbody tr {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-xs);
  }
  .airport-card .data-table tbody tr {
    background: var(--surface-alt);
  }
  .data-table tbody tr:last-child,
  .prose table tbody tr:last-child {
    margin-bottom: 0;
  }
  .data-table tbody tr:hover {
    background: var(--surface);
  }
  .airport-card .data-table tbody tr:hover {
    background: var(--surface-alt);
  }
  .data-table tbody td,
  .prose table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--border);
    text-align: right;
    white-space: normal !important;
    max-width: none !important;
    min-width: 0 !important;
    word-break: break-word;
  }
  .data-table tbody td:last-child,
  .prose table tbody td:last-child {
    border-bottom: none;
    padding-bottom: 2px;
  }
  .data-table tbody td::before,
  .prose table tbody td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-faint);
    text-align: left;
    flex-shrink: 0;
    min-width: 72px;
  }
  .prose table tbody td {
    flex-direction: column;
    text-align: left;
    gap: 4px;
  }
  .prose table tbody td::before {
    min-width: 0;
  }
  /* First cell as prominent card header */
  .data-table tbody td:first-child,
  .prose table tbody td:first-child {
    display: block;
    text-align: left;
    font-size: 14.5px;
    padding-top: 2px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
  }
  .data-table tbody td:first-child::before,
  .prose table tbody td:first-child::before {
    display: none;
  }
  .data-table tbody td.col-actions {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 10px;
  }
  .data-table tbody td.col-actions::before {
    margin-right: auto;
  }
  /* Keep Compare Modal table compact and scrollable inside modal */
  .modal-body .table-scroll {
    overflow-x: auto;
    border: 1px solid var(--border);
    background: var(--surface);
  }
  .modal-body .data-table { display: table; }
  .modal-body .data-table thead { display: table-header-group; }
  .modal-body .data-table tbody { display: table-row-group; }
  .modal-body .data-table tbody tr {
    display: table-row;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
  }
  .modal-body .data-table tbody td {
    display: table-cell;
    text-align: left;
    padding: 9px 10px;
    border-bottom: 1px solid var(--border);
  }
  .modal-body .data-table tbody td::before { display: none; }
}
