/* ==========================================================================
   机场维度 (jichangwd.world) - 现代科技杂志门户视觉框架
   配色：护眼浅灰褐底色 (#f6f4f1) + 深墨褐主强调 (#6b4423 / #b4692e) + 暗夜节点拓扑看板 (#1a1412)
   技术：纯原生 CSS，零外部框架，支持 file:// 相对路径与秒开渲染
   ========================================================================== */

:root {
  --bg-page: #f6f4f1;
  --bg-surface: #ffffff;
  --bg-subtle: #ede9e3;
  --bg-tint: #f5efe8;
  --bg-emerald-soft: #f5ede0;
  --bg-warn: #fffbeb;

  --ink-dark: #1a1412;
  --ink-panel: #241c18;
  --ink-panel-light: #332722;

  --text-primary: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #78716c;

  --brand-primary: #6b4423;
  --brand-hover: #533319;
  --brand-emerald: #d97706;
  --brand-cyan: #c28448;
  --brand-soft: #decab5;

  --border-light: #e3ddd5;
  --border-medium: #cbc0b3;
  --border-warn: #fde68a;
  --warn-text: #92400e;
  --success-text: #6b4423;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 3px rgba(26, 20, 18, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 20, 18, 0.09);

  --container-max: 1220px;
  --article-max: 800px;

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
}

a:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  color: var(--text-primary);
  line-height: 1.32;
  margin-top: 0;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.9rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.4rem;
}

code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: var(--bg-subtle);
  padding: 0.14rem 0.4rem;
  border-radius: 4px;
  color: var(--ink-dark);
}

pre {
  background: var(--ink-dark);
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: var(--radius-sm);
}

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

.section {
  padding: 2.5rem 0;
}

.section-tight {
  padding: 1.75rem 0;
}

.section-surface {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-light);
}

.section-header h2 {
  margin-bottom: 0.2rem;
}

.section-header p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 0.35rem;
}

.more-link {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================================
   Header & Magazine Masthead
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink-dark);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo:hover {
  color: var(--brand-primary);
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-emerald) 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(107, 68, 35, 0.28);
}

.logo-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.72rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-primary);
  background: var(--bg-tint);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.btn-icon:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--bg-tint);
}

.nav-toggle {
  display: none;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--bg-subtle);
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* ==========================================================================
   Hero Split Showcase + Dynamic Global Node Topology Map
   ========================================================================== */
.hero-magazine {
  background: linear-gradient(135deg, #16110f 0%, #261d19 58%, #36261d 100%);
  color: #faf7f2;
  padding: 2.5rem 0 2.75rem;
  border-bottom: 3px solid #c28448;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
}

.hero-magazine h1 {
  color: #ffffff;
  font-size: clamp(1.7rem, 2.7vw, 2.25rem);
  margin-bottom: 0.9rem;
}

.hero-magazine .hero-lead {
  color: #d6cfc7;
  font-size: 1rem;
  margin-bottom: 1.35rem;
}

.hero-magazine .hero-lead strong {
  color: #fcd34d;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.78rem;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.16);
  color: #fde68a;
  border: 1px solid rgba(217, 119, 6, 0.4);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: liveDot 2s infinite;
}

@keyframes liveDot {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.hero-note {
  font-size: 0.83rem;
  color: #c7beb5;
  background: rgba(20, 15, 13, 0.65);
  border-left: 3px solid #d97706;
  padding: 0.55rem 0.85rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Interactive Dynamic Node Map + Multi-Country Sidebar */
.node-hub-panel {
  background: rgba(20, 15, 13, 0.92);
  border: 1px solid rgba(217, 119, 6, 0.32);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
}

.node-hub-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(214, 207, 199, 0.16);
  font-size: 0.84rem;
}

.node-hub-title {
  color: #fef3c7;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.node-hub-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 0.9rem;
  align-items: stretch;
}

@media (max-width: 680px) {
  .node-hub-grid {
    grid-template-columns: 1fr;
  }
}

.map-stage {
  position: relative;
  background: radial-gradient(circle at 55% 45%, #2d221c 0%, #140f0d 100%);
  border: 1px solid rgba(224, 159, 90, 0.22);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.map-stage svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-land {
  fill: #352822;
  stroke: #544036;
  stroke-width: 0.9;
}

.map-arc {
  fill: none;
  stroke: rgba(245, 158, 11, 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  animation: routeFlow 2.6s linear infinite;
  transition: stroke 0.25s ease, stroke-width 0.25s ease;
}

.map-arc.active {
  stroke: #f59e0b;
  stroke-width: 2.4;
}

@keyframes routeFlow {
  to {
    stroke-dashoffset: -20;
  }
}

.map-node-pulse {
  fill: none;
  stroke: #e09f5a;
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  animation: nodeRadar 2.4s ease-out infinite;
}

.map-node-group.active .map-node-pulse {
  stroke: #fbbf24;
  stroke-width: 2;
}

@keyframes nodeRadar {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(2.8); opacity: 0; }
}

.map-node-dot {
  fill: #e09f5a;
  cursor: pointer;
  transition: r 0.2s ease, fill 0.2s ease;
}

.map-node-group.active .map-node-dot {
  fill: #fbbf24;
}

.map-node-label {
  fill: #d6cfc7;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.map-node-group.active .map-node-label {
  fill: #ffffff;
  font-weight: 800;
}

.map-origin-dot {
  fill: #38bdf8;
}

.country-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.country-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.country-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.38rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(214, 207, 199, 0.22);
  background: rgba(51, 39, 34, 0.72);
  color: #e7e2dc;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.country-btn:hover {
  border-color: #f59e0b;
  color: #ffffff;
}

.country-btn.active {
  background: #6b4423;
  border-color: #fbbf24;
  color: #ffffff;
}

.country-detail-card {
  background: rgba(34, 26, 22, 0.94);
  border: 1px solid rgba(224, 159, 90, 0.25);
  border-radius: var(--radius-md);
  padding: 0.72rem 0.8rem;
  font-size: 0.81rem;
  color: #d6cfc7;
  flex: 1;
}

.country-detail-card h3 {
  color: #fde68a;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.country-detail-card p {
  color: #d6cfc7;
  font-size: 0.79rem;
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

.country-brands-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.4rem;
}

.country-brand-link {
  display: inline-block;
  padding: 0.16rem 0.48rem;
  border-radius: 4px;
  background: rgba(217, 119, 6, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.42);
  color: #fde68a;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
}

.country-brand-link:hover {
  background: #f59e0b;
  color: #1a1412;
  text-decoration: none;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.58rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: #ffffff;
}

.btn-emerald {
  background: #f59e0b;
  color: #1a1412;
  font-weight: 700;
}

.btn-emerald:hover {
  background: #fbbf24;
  color: #1a1412;
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-sm {
  padding: 0.36rem 0.75rem;
  font-size: 0.84rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.18rem 0.54rem;
  border-radius: 999px;
  line-height: 1.35;
}

.badge-blue {
  background: var(--bg-tint);
  color: var(--brand-primary);
  border: 1px solid var(--brand-soft);
}

.badge-gray {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.badge-warn {
  background: var(--bg-warn);
  color: var(--warn-text);
  border: 1px solid var(--border-warn);
}

.badge-green {
  background: var(--bg-emerald-soft);
  color: var(--success-text);
  border: 1px solid var(--brand-soft);
}

/* ==========================================================================
   Editorial Quick Strip & Top-3 Spotlight (Anti-Repetition Layout)
   ========================================================================== */
.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .quick-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .quick-strip {
    grid-template-columns: 1fr;
  }
}

.quick-strip-item {
  border-top: 3px solid var(--brand-primary);
  background: var(--bg-surface);
  padding: 1rem 1.1rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.quick-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 0.25rem;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 960px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
}

.spotlight-lead {
  border: 2px solid var(--brand-primary);
  background: linear-gradient(180deg, #f5efe8 0%, #ffffff 35%);
}

/* Grids & Cards (for inner topic pages & hubs) */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

@media (max-width: 960px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.airport-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.airport-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-primary);
  white-space: nowrap;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0.65rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.89rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.38rem 0;
  margin: 0;
  border-bottom: 1px dashed var(--border-light);
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.spec-val {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

.pros-cons-mini {
  font-size: 0.87rem;
  margin-bottom: 0.9rem;
}

.pros-cons-mini p {
  margin-bottom: 0.4rem;
}

.card-footer-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding-top: 0.45rem;
}

.coupon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.36rem 0.68rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--brand-cyan);
  background: #fbf6ef;
  color: var(--brand-hover);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.coupon-pill:hover {
  background: var(--bg-tint);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* ==========================================================================
   Matrix Tables (Modern Dark-Teal Header + Interactive Filter Bar)
   ========================================================================== */
.matrix-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  align-items: center;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.91rem;
}

th, td {
  padding: 0.78rem 0.92rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

thead th {
  background: var(--ink-panel);
  color: #e2e8f0;
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

tbody tr:nth-child(even) {
  background: #fbfaf8;
}

tbody tr:hover {
  background: var(--bg-tint);
}

tr:last-child td {
  border-bottom: none;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--bg-tint);
  border: 1px solid var(--brand-soft);
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 0.84rem;
  font-family: var(--font-mono);
}

.rank-num.top3 {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

/* ==========================================================================
   Magazine Two-Column Layout (Asymmetrical Feed + Sticky Sidebar)
   ========================================================================== */
.magazine-grid {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 960px) {
  .magazine-grid {
    grid-template-columns: 1fr;
  }
}

.topic-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 600px) {
  .topic-pills-grid {
    grid-template-columns: 1fr;
  }
}

.topic-row-link {
  display: flex;
  flex-direction: column;
  padding: 0.9rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.topic-row-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.topic-row-link strong {
  color: var(--text-primary);
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.topic-row-link span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.editorial-feed {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.35rem 1.25rem;
  margin-bottom: 1.75rem;
}

.feed-row {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.feed-row:last-child {
  border-bottom: none;
}

.feed-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.feed-row h3 {
  margin: 0;
  font-size: 1.02rem;
}

.feed-row p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tab-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.tab-panel.hidden {
  display: none;
}

/* Native Details/Summary Accordion FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
}

details.faq-item summary {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--brand-primary);
}

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

details.faq-item p {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
}

/* Callouts & Breadcrumbs */
.callout {
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
}

.callout-info {
  background: var(--bg-tint);
  border-color: var(--brand-soft);
}

.callout-warn {
  background: var(--bg-warn);
  border-color: var(--border-warn);
  color: var(--warn-text);
}

.callout-warn p,
.callout-warn li {
  color: var(--warn-text);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.95rem 0 0.25rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--brand-primary);
}

/* Article + Sticky Sidebar Layout */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--article-max)) minmax(260px, 1fr);
  gap: 2rem;
  padding: 1.5rem 0 3rem;
  align-items: start;
}

@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

.article-main {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .article-main {
    padding: 1.2rem;
  }
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.25rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: sticky;
  top: 84px;
}

@media (max-width: 960px) {
  .article-sidebar {
    position: static;
  }
}

.sidebar-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-box.sidebar-accent {
  background: linear-gradient(180deg, #1a1412 0%, #2a201b 100%);
  color: #faf7f2;
  border-color: rgba(217, 119, 6, 0.4);
}

.sidebar-box.sidebar-accent h3 {
  color: #fde68a;
  border-bottom-color: rgba(214, 207, 199, 0.2);
}

.sidebar-box.sidebar-accent p {
  color: #d6cfc7;
}

.sidebar-box h3 {
  font-size: 0.98rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.89rem;
}

.sidebar-links li {
  margin-bottom: 0.5rem;
}

.sidebar-links li:last-child {
  margin-bottom: 0;
}

/* Compare Tool Controls */
.compare-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin-bottom: 1.25rem;
}

.compare-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.94rem;
  background: var(--bg-surface);
  color: var(--text-primary);
}

.compare-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-tint);
  color: var(--brand-primary);
  border: 1px solid var(--brand-soft);
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
}

.chip button {
  border: none;
  background: none;
  color: var(--brand-primary);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.15rem;
}

/* Search Modal */
.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(26, 20, 18, 0.68);
  padding: 4rem 1rem 1rem;
  align-items: flex-start;
  justify-content: center;
}

.search-modal.open {
  display: flex;
}

.search-panel {
  width: 100%;
  max-width: 640px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
}

.search-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.5rem;
}

.search-result-item {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
}

.search-result-item:hover {
  background: var(--bg-tint);
  text-decoration: none;
}

.search-result-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.search-result-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--ink-dark);
  color: #cbd5e1;
  padding: 2.75rem 0 2rem;
  margin-top: 2rem;
  border-top: 3px solid var(--brand-primary);
}

.site-footer h3,
.site-footer h4 {
  color: #ffffff;
  font-size: 0.98rem;
  margin-bottom: 0.8rem;
}

.site-footer p {
  color: #94a3b8;
  font-size: 0.89rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.89rem;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #fde68a;
}

.footer-bottom {
  border-top: 1px solid var(--ink-panel-light);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.83rem;
  color: #94a3b8;
}

/* ==========================================================================
   Article Related Reading, Prev/Next Pager & Guided Reading Paths
   ========================================================================== */
.related-reading-box {
  margin-top: 2rem;
  padding: 1.2rem 1.25rem;
  background: var(--bg-tint);
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius-md);
}

.related-reading-box h2,
.related-reading-box h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--ink-dark);
}

.related-reading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.91rem;
}

@media (max-width: 640px) {
  .related-reading-grid {
    grid-template-columns: 1fr;
  }
}

.related-reading-grid li {
  margin: 0;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border-medium);
}

.article-pager {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 640px) {
  .article-pager {
    grid-template-columns: 1fr;
  }
}

.pager-card {
  display: flex;
  flex-direction: column;
  padding: 0.9rem 1rem;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.pager-card:hover {
  border-color: var(--brand-primary);
  background: var(--bg-tint);
  transform: translateY(-1px);
  text-decoration: none;
}

.pager-card-next {
  text-align: right;
}

@media (max-width: 640px) {
  .pager-card-next {
    text-align: left;
  }
}

.pager-dir {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.25rem;
}

.pager-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.pager-hub-bar {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.reading-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 860px) {
  .reading-paths {
    grid-template-columns: 1fr;
  }
}

.reading-path-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.reading-path-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
}

.reading-path-card ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.87rem;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--brand-soft);
  background: var(--ink-dark);
  color: #fde68a;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  display: inline-flex;
}

.back-to-top:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

/* Header Contact Button & Professional Contact Modal */
.btn-contact {
  border-color: var(--brand-soft);
  background: var(--bg-tint);
  color: var(--brand-primary);
}

.btn-contact:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.contact-panel {
  max-width: 680px;
}

.contact-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem 1.05rem;
  background: linear-gradient(135deg, #1a1412 0%, #2c211c 100%);
  color: #faf7f2;
  border-bottom: 2px solid #c28448;
}

.contact-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fde68a;
  margin-bottom: 0.25rem;
}

.contact-modal-header h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.contact-modal-header p {
  color: #d6ccc2;
  font-size: 0.86rem;
  margin-bottom: 0;
  line-height: 1.55;
}

.contact-modal-header #contact-close-btn {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.contact-modal-header #contact-close-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.contact-channels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--bg-page);
}

@media (max-width: 620px) {
  .contact-channels-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .header-actions .btn-icon {
    padding: 0.38rem 0.62rem;
    font-size: 0.8rem;
  }
}

.contact-channel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.05rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.contact-tag {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.contact-handle {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink-dark);
  background: var(--bg-subtle);
  padding: 0.42rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 0.6rem;
  word-break: break-all;
}

.contact-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
  line-height: 1.55;
}

.contact-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-gmail {
  background: #6b4423;
  color: #ffffff;
  border-color: #6b4423;
}

.btn-gmail:hover {
  background: #533319;
  border-color: #533319;
  color: #ffffff;
  text-decoration: none;
}

.btn-tlg {
  background: #0f6292;
  color: #ffffff;
  border-color: #0f6292;
}

.btn-tlg:hover {
  background: #0b4c73;
  border-color: #0b4c73;
  color: #ffffff;
  text-decoration: none;
}

.contact-modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-modal-footer a {
  font-weight: 600;
  white-space: nowrap;
}
