/* sing-box for Apple — static site styles */
:root {
  --paper: #f4f0e7;
  --paper-2: #ece5d8;
  --paper-3: #e4dac9;
  --card: #fffdf8;
  --ink: #14231e;
  --ink-soft: #46564e;
  --ink-mute: #6d7a73;
  --forest: #0d3b2e;
  --forest-deep: #08261e;
  --forest-soft: #155742;
  --lime: #d7f36b;
  --lime-deep: #b9d94b;
  --orange: #f06b3f;
  --orange-soft: #ffd9c9;
  --line: rgba(20, 35, 30, 0.14);
  --line-strong: rgba(20, 35, 30, 0.26);
  --line-light: rgba(255, 255, 255, 0.16);
  --font-sans: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --font-mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 22px 60px rgba(20, 35, 30, 0.1);
  --max-display: 4.75rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[id] { scroll-margin-top: 88px; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(215, 243, 107, 0.2), transparent 30rem),
    radial-gradient(circle at 92% 20%, rgba(240, 107, 63, 0.07), transparent 26rem);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.25em; padding-left: 1.2em; }
li { margin-bottom: 0.45em; }
strong { font-weight: 700; color: var(--ink); }
::selection { background: var(--lime); color: var(--forest-deep); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.032em;
  color: var(--ink);
}

h1, .display-xl {
  font-size: clamp(2.75rem, 5.1vw, 4rem);
  line-height: 1.04;
}

h2, .section-title {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.12;
}

h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.1rem; }

.shell {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

.nowrap { white-space: nowrap; }

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

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(244, 240, 231, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 5px;
  box-shadow: 0 5px 16px rgba(20, 35, 30, 0.08);
}

.brand-text { display: flex; align-items: baseline; gap: 8px; }
.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.brand-sub {
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 0.91rem;
  font-weight: 600;
}
.site-nav > a {
  position: relative;
  text-decoration: none;
  padding: 8px 0;
  color: var(--ink-soft);
}
.site-nav > a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 1px;
  height: 2px;
  background: var(--forest);
  transition: right 0.22s ease;
}
.site-nav > a:hover,
.site-nav > a[aria-current="page"] { color: var(--ink); }
.site-nav > a:hover::after,
.site-nav > a[aria-current="page"]::after { right: 0; }

.nav-rank {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--paper) !important;
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--forest);
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-rank::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex: 0 0 auto;
}
.nav-rank:hover { background: var(--forest-soft); transform: translateY(-1px); }
.site-nav .nav-rank::after { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 17px; height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-2.5px) rotate(-45deg); }

.mobile-rank {
  display: none;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--forest-deep);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Mobile menu */
@media (max-width: 860px) {
  .header-inner { min-height: 66px; gap: 12px; }
  .brand-sub { display: none; }
  .site-nav {
    position: fixed;
    top: 66px; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 14px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(20, 35, 30, 0.12);
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .site-nav > a::after { display: none; }
  .site-nav .nav-rank {
    margin-top: 14px;
    justify-content: center;
    border-bottom: 0;
    padding: 12px 16px;
    font-size: 0.95rem;
  }
  .menu-toggle { display: block; margin-left: 2px; }
  .header-actions { margin-left: auto; gap: 8px; }
  .mobile-rank { display: inline-flex; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding: 10px 0; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .site-nav {
    position: static;
    display: flex;
    order: 3;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 5px 0 0;
    padding: 8px 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    box-shadow: none;
  }
  html:not(.js) .site-nav > a { padding: 4px 0; border: 0; font-size: 0.8rem; }
  html:not(.js) .site-nav .nav-rank { display: none; }
}

/* Shared layout */
.section { padding: 104px 0; border-top: 1px solid var(--line); }
.section--tight { padding: 76px 0; }
.section--dark {
  background: var(--forest);
  color: var(--paper);
  border-top-color: var(--line-light);
}
.section--dark h2,
.section--dark h3 { color: var(--paper); }
.section--paper { background: var(--paper-2); }
.section--flush { border-top: 0; padding-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 52px;
  align-items: start;
  margin-bottom: 46px;
}
.section-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
}
.section-title { max-width: 760px; }
.section-lede {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.85;
  max-width: 44ch;
  padding-top: 8px;
}
.section--dark .section-lede { color: rgba(244, 240, 231, 0.7); }
.section--dark .section-index { color: rgba(244, 240, 231, 0.48); border-top-color: var(--line-light); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.35;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.btn--primary:hover { background: var(--forest-soft); border-color: var(--forest-soft); }
.btn--light { background: var(--paper); color: var(--forest); border-color: var(--paper); }
.btn--light:hover { background: var(--lime); border-color: var(--lime); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.4); }
.btn--orange { background: var(--orange); color: var(--forest-deep); border-color: var(--orange); }
.btn--orange:hover { background: #ff865e; border-color: #ff865e; }
.btn--block { width: 100%; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 59, 46, 0.3);
  padding-bottom: 1px;
}
.text-link:hover { border-bottom-color: var(--forest); }

/* Home hero */
.hero {
  padding: 74px 0 78px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  gap: 52px;
  align-items: center;
}
.hero-title { max-width: 10.5em; }
.hero-title .accent { color: var(--forest-soft); }
.hero-title .thin {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.055em;
}
.hero-lede {
  margin-top: 26px;
  max-width: 30em;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 27px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}
.hero-facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts span::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--forest-soft);
  border-radius: 50%;
}
.hero-facts span:first-child::before { background: var(--orange); }

.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 30px;
  background:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(145deg, #114936 0%, #08271f 78%);
  background-size: 36px 36px, 36px 36px, 100% 100%;
  box-shadow: 0 30px 70px rgba(8, 38, 30, 0.2);
  overflow: hidden;
}
.hero-stage::before {
  content: "";
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  left: -18%; bottom: -28%;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.94;
}
.hero-stage::after {
  content: "";
  position: absolute;
  width: 32%;
  aspect-ratio: 1;
  right: -10%; top: -12%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
}
.stage-panel {
  position: absolute;
  inset: 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: rgba(244, 240, 231, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transform: rotate(-2.5deg);
  transition: transform 0.45s ease;
  z-index: 2;
  box-shadow: 0 18px 40px rgba(8, 38, 30, 0.18);
}
.hero-stage:hover .stage-panel { transform: rotate(0deg); }
.stage-panel img {
  width: 44%;
  max-width: 230px;
  filter: drop-shadow(0 16px 18px rgba(20, 35, 30, 0.18));
}
.stage-word {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.stage-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--forest-deep);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1;
  box-shadow: 0 9px 24px rgba(8, 38, 30, 0.2);
}
.stage-chip--a { top: 8%; left: 7%; }
.stage-chip--b { top: 13%; right: 6%; }
.stage-chip--c { bottom: 10%; left: 5%; }
.stage-chip--d { bottom: 7%; right: 7%; background: var(--lime); color: var(--forest-deep); border-color: var(--lime); }

.hero-bottom {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 54px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.hero-bottom .line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.hero-bottom strong { color: var(--forest); }

/* Platform cards */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.platform-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 rgba(20, 35, 30, 0.025);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.platform-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.platform-top {
  min-height: 170px;
  border-radius: 14px;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.platform-top::before {
  content: "";
  position: absolute;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}
.platform-card:nth-child(2) .platform-top { background: #dfe8d9; }
.platform-card:nth-child(3) .platform-top { background: #e7ddcf; }
.platform-name {
  margin-top: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.platform-name h3 { letter-spacing: -0.025em; }
.platform-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.platform-copy { margin-top: 10px; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.8; }
.platform-links {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.88rem;
}
.platform-links a { color: var(--forest); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(13, 59, 46, 0.26); }
.platform-links a:hover { border-bottom-color: var(--forest); }

/* Pure CSS device sketches */
.device {
  position: relative;
  z-index: 1;
  border: 2px solid var(--forest);
  background: var(--paper);
  box-shadow: 0 14px 26px rgba(20, 35, 30, 0.12);
}
.device--phone {
  width: 78px;
  height: 142px;
  border-radius: 17px;
  transform: rotate(-7deg);
}
.device--phone::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 24px; height: 4px;
  margin-left: -12px;
  border-radius: 9px;
  background: var(--forest);
}
.device--phone::after {
  content: "SFI";
  position: absolute;
  inset: 42px 10px 20px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--forest);
  letter-spacing: 0.08em;
}
.device--mac {
  width: 172px;
  height: 106px;
  border-radius: 9px;
  transform: rotate(4deg);
}
.device--mac::before {
  content: "SFM";
  position: absolute;
  inset: 10px 10px 18px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--forest);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.1em;
}
.device--mac::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -11px;
  width: 52px; height: 9px;
  margin-left: -26px;
  border-radius: 0 0 5px 5px;
  background: var(--forest);
}
.device--tv {
  width: 176px;
  height: 108px;
  border-radius: 8px;
  transform: rotate(-3deg);
}
.device--tv::before {
  content: "SFT";
  position: absolute;
  inset: 9px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--forest);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 21px;
  letter-spacing: 0.12em;
}
.device--tv::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -11px;
  width: 42px; height: 9px;
  margin-left: -21px;
  border-radius: 0 0 6px 6px;
  background: var(--forest);
}

/* Configuration split */
.config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 70px;
  align-items: center;
}
.config-copy h2 { max-width: 12em; }
.config-copy p { color: var(--ink-soft); margin-top: 18px; max-width: 34em; }
.config-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.config-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  margin: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.config-list li span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-mute);
  padding-top: 3px;
}
.config-list strong { display: block; color: var(--ink); font-size: 0.96rem; }
.config-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.profile-panel {
  position: relative;
  padding: 22px;
  border-radius: 24px;
  background: var(--forest);
  color: var(--paper);
  box-shadow: 0 30px 70px rgba(8, 38, 30, 0.2);
  overflow: hidden;
}
.profile-panel::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -90px; top: -80px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.13;
}
.profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-light);
  position: relative;
}
.profile-head span:first-child { font-weight: 700; font-size: 0.94rem; }
.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(215, 243, 107, 0.12);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}
.profile-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.profile-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.86rem;
}
.profile-row:last-of-type { border-bottom: 0; }
.profile-row span:first-child { color: rgba(244, 240, 231, 0.62); }
.profile-row strong { color: var(--paper); font-weight: 600; font-size: 0.86rem; }
.profile-row .dot-ok {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.profile-row .dot-ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.profile-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.76rem;
  color: rgba(244, 240, 231, 0.7);
}
.profile-foot strong { color: var(--lime); font-family: var(--font-mono); font-size: 0.72rem; }

/* Airport feature */
.rank-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 50px;
  align-items: center;
  padding: 56px;
  border-radius: 28px;
  background: var(--forest);
  color: var(--paper);
  overflow: hidden;
}
.rank-feature::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -150px; bottom: -230px;
  border: 1px solid rgba(215, 243, 107, 0.25);
  border-radius: 50%;
}
.rank-feature::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  right: -70px; top: -160px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.9;
}
.rank-feature__copy { position: relative; z-index: 1; }
.rank-feature__copy h2 { max-width: 10em; color: var(--paper); }
.rank-feature__copy p {
  max-width: 30em;
  margin-top: 20px;
  color: rgba(244, 240, 231, 0.7);
}
.rank-feature__copy .btn { margin-top: 28px; }
.rank-feature__side {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.055);
}
.rank-feature__side > p { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--lime); }
.rank-stats { display: grid; gap: 17px; }
.rank-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.11); }
.rank-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.rank-stat strong {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--paper);
}
.rank-stat span { color: rgba(244, 240, 231, 0.6); font-size: 0.78rem; text-align: right; }

/* Download strip */
.download-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.download-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.2s ease;
}
.download-row:last-child { border-bottom: 0; }
.download-row:hover { background: var(--paper); }
.download-row__label { font-weight: 700; font-size: 0.98rem; }
.download-row__label span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-mute);
  font-weight: 400;
  margin-top: 3px;
}
.download-row__meta { color: var(--ink-soft); font-size: 0.88rem; }
.download-row__go {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--forest);
  white-space: nowrap;
  border-bottom: 1px solid rgba(13, 59, 46, 0.3);
}

/* Article cards */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.article-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-art {
  position: relative;
  min-height: 172px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #dce5d2;
}
.article-art::before {
  content: "";
  position: absolute;
  width: 170px; height: 170px;
  right: 8%; top: -38%;
  border: 1px solid rgba(20, 35, 30, 0.24);
  border-radius: 50%;
}
.article-art::after {
  content: "";
  position: absolute;
  width: 120px; height: 120px;
  right: 21%; bottom: -45%;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.45);
}
.article-card:nth-child(2) .article-art { background: #e8d9c9; }
.article-card:nth-child(3) .article-art { background: #d8e3e0; }
.article-card:nth-child(4) .article-art { background: #e4e4c9; }
.article-num {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.4vw, 4.55rem);
  font-weight: 700;
  line-height: 0.9;
  color: var(--forest);
  letter-spacing: -0.06em;
}
.article-art .art-label {
  position: absolute;
  top: 18px; right: 20px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: rgba(20, 35, 30, 0.58);
  letter-spacing: 0.1em;
}
.article-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.article-title { font-size: clamp(1.32rem, 2vw, 1.58rem); line-height: 1.28; letter-spacing: -0.022em; }
.article-card:hover .article-title { color: var(--forest-soft); }
.article-excerpt { margin-top: 11px; color: var(--ink-soft); font-size: 0.91rem; line-height: 1.75; }
.article-footer {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 21px 46px 21px 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink-mute);
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer { padding: 0 60px 22px 0; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.85; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* Closing call */
.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 38px 0 0;
  border-top: 1px solid var(--line);
}
.closing h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.closing .closing-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 0 auto; }

/* Footer */
.site-footer { padding: 48px 0 40px; background: var(--paper-2); border-top: 1px solid var(--line); }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-brand img { width: 32px; height: 32px; object-fit: contain; }
.footer-brand span { font-size: 0.98rem; font-weight: 800; letter-spacing: -0.025em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 9px 22px; font-size: 0.84rem; }
.footer-nav a { text-decoration: none; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--forest); }
.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

/* Page hero */
.page-hero {
  padding: 62px 0 58px;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 26px; color: var(--ink-mute); font-size: 0.76rem; }
.breadcrumbs a { text-decoration: none; color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--forest); }
.breadcrumbs span[aria-hidden] { color: var(--line-strong); }
.page-hero h1 { max-width: 10em; }
.page-hero .lede { max-width: 34em; margin-top: 22px; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.85; }
.page-hero--split .page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); gap: 58px; align-items: end; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.chip--accent { background: var(--lime); border-color: var(--lime); color: var(--forest-deep); }

.release-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--paper);
  box-shadow: 0 24px 60px rgba(8, 38, 30, 0.16);
}
.release-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-light); }
.release-card__head p { font-family: var(--font-mono); font-size: 0.69rem; color: rgba(244, 240, 231, 0.58); margin: 0 0 4px; }
.release-card__head strong { display: block; color: var(--paper); font-size: 1.3rem; letter-spacing: -0.02em; }
.release-card__head .chip { border-color: rgba(255,255,255,0.3); color: var(--paper); flex: 0 0 auto; }
.release-rows { padding-top: 8px; }
.release-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.release-row:last-child { border-bottom: 0; }
.release-row span:first-child { color: rgba(244, 240, 231, 0.54); }
.release-row span:last-child { color: var(--paper); text-align: right; }

/* Download cards */
.download-stack { display: grid; gap: 18px; }
.download-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 26px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.download-card__icon {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 17px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.02em;
}
.download-card:nth-child(2) .download-card__icon { background: #dce5d2; }
.download-card:nth-child(3) .download-card__icon { background: #e9d8cc; }
.download-card h2 { font-size: clamp(1.55rem, 2.5vw, 2rem); }
.download-card__sub { margin-top: 8px; color: var(--ink-soft); font-size: 0.92rem; }
.spec-list { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 17px; color: var(--ink-mute); font-family: var(--font-mono); font-size: 0.68rem; }
.spec-list span { display: inline-flex; align-items: center; gap: 6px; }
.spec-list span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--forest-soft); }
.download-card__side { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.download-card__side .btn { width: 100%; }
.download-card__side .small-note { color: var(--ink-mute); font-size: 0.69rem; text-align: center; font-family: var(--font-mono); }

.file-list { margin-top: 18px; border-top: 1px solid var(--line); }
.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.87rem;
}
.file-row:hover .file-name { color: var(--forest); }
.file-name { font-weight: 700; }
.file-meta { color: var(--ink-mute); font-family: var(--font-mono); font-size: 0.68rem; white-space: nowrap; }
.file-row .file-action { color: var(--forest); font-weight: 700; font-size: 0.76rem; white-space: nowrap; }

.code-block {
  position: relative;
  margin: 20px 0 0;
  padding: 16px 58px 16px 17px;
  border-radius: 12px;
  background: var(--forest-deep);
  color: var(--lime);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
}
.copy-btn {
  position: absolute;
  top: 8px; right: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: var(--paper);
  font-size: 0.64rem;
  cursor: pointer;
}
.copy-btn:hover { background: rgba(255,255,255,0.15); }

.notice-inline {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid var(--orange);
  background: rgba(240, 107, 63, 0.07);
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.8;
}
.notice-inline strong { color: var(--ink); }

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.anchor-nav a {
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.76rem;
  color: var(--ink-soft);
  background: rgba(255,255,255,0.26);
}
.anchor-nav a:hover { border-color: var(--forest); color: var(--forest); }

/* Ranking */
.rank-page-hero {
  background: var(--forest);
  color: var(--paper);
  padding: 68px 0 62px;
  position: relative;
  overflow: hidden;
}
.rank-page-hero::before {
  content: "";
  position: absolute;
  width: 540px; height: 540px;
  right: -200px; bottom: -330px;
  border-radius: 50%;
  border: 1px solid rgba(215, 243, 107, 0.26);
}
.rank-page-hero::after {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  right: 6%; top: -185px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.9;
}
.rank-page-hero .breadcrumbs { color: rgba(244, 240, 231, 0.55); position: relative; z-index: 1; }
.rank-page-hero .breadcrumbs a { color: rgba(244, 240, 231, 0.8); }
.rank-page-hero .breadcrumbs span[aria-hidden] { color: rgba(244, 240, 231, 0.3); }
.rank-page-hero .hero-grid { position: relative; z-index: 1; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); align-items: end; }
.rank-page-hero h1 { color: var(--paper); max-width: 8em; }
.rank-page-hero .lede { color: rgba(244, 240, 231, 0.7); max-width: 34em; margin-top: 22px; font-size: 1.02rem; }
.rank-page-hero .chip { border-color: rgba(255,255,255,0.22); color: rgba(244, 240, 231, 0.78); }
.rank-page-hero .chip--accent { border-color: var(--lime); color: var(--forest-deep); }
.rank-hero-note {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255,255,255,0.05);
}
.rank-hero-note p { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--lime); margin-bottom: 13px; }
.rank-hero-note strong { display: block; color: var(--paper); font-family: var(--font-display); font-size: clamp(2.7rem, 5vw, 4.2rem); line-height: 1; font-weight: 700; }
.rank-hero-note span { display: block; margin-top: 7px; color: rgba(244, 240, 231, 0.6); font-size: 0.78rem; }
.rank-hero-note .note-divider { height: 1px; background: rgba(255,255,255,0.12); margin: 18px 0; }

.rank-section { padding: 84px 0; }
.compare-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}
.compare-table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 0.85rem; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare-table th {
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  white-space: nowrap;
}
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td:first-child { font-family: var(--font-mono); color: var(--ink-mute); font-size: 0.72rem; }
.compare-table .cell-strong { font-weight: 700; color: var(--ink); }
.compare-table .cell-price { font-family: var(--font-mono); font-size: 0.78rem; white-space: nowrap; }
.compare-table .score-cell { font-weight: 700; color: var(--forest); }

.featured-airport {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(220px, 0.44fr);
  gap: 34px;
  padding: 36px;
  margin-top: 18px;
  background: var(--forest);
  color: var(--paper);
  border-radius: 26px;
  position: relative;
  overflow: hidden;
}
.featured-airport::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  right: -180px; top: -200px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.12;
}
.featured-rank {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 26px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.featured-rank .top-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--lime); }
.featured-rank .big-rank {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 7vw, 4.75rem);
  line-height: 0.9;
  color: var(--paper);
  letter-spacing: -0.07em;
  margin: 12px 0;
}
.featured-rank .score { font-family: var(--font-mono); font-size: 0.74rem; color: rgba(244, 240, 231, 0.62); }
.featured-rank .score strong { color: var(--lime); font-size: 1rem; }
.featured-body { position: relative; z-index: 1; }
.featured-body h2 { color: var(--paper); font-size: clamp(2rem, 3.5vw, 2.8rem); }
.featured-body .featured-desc { margin-top: 12px; color: rgba(244, 240, 231, 0.72); font-size: 0.92rem; max-width: 30em; }
.featured-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.featured-tags span {
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: rgba(244, 240, 231, 0.76);
  font-size: 0.68rem;
}
.featured-aside {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding-left: 30px;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.featured-price { font-family: var(--font-mono); font-size: 0.7rem; color: rgba(244, 240, 231, 0.55); }
.featured-price strong { display: block; margin-top: 5px; color: var(--paper); font-family: var(--font-display); font-size: clamp(2rem, 3.2vw, 2.7rem); line-height: 1; letter-spacing: -0.04em; }
.featured-aside .airport-cta { width: 100%; min-height: 48px; }

.airport-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.airport-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 100%;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.airport-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.airport-head { display: flex; align-items: flex-start; gap: 12px; }
.airport-rank {
  flex: 0 0 auto;
  width: 35px; height: 35px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-mute);
}
.airport-title { flex: 1; min-width: 0; }
.airport-title h3 { font-size: 1.38rem; line-height: 1.2; }
.airport-title p { margin: 3px 0 0; font-size: 0.72rem; color: var(--ink-mute); font-family: var(--font-mono); }
.airport-score {
  flex: 0 0 auto;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--ink-mute);
  line-height: 1.2;
}
.airport-score strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--forest); }
.airport-desc { margin: 15px 0 0; color: var(--ink-soft); font-size: 0.87rem; line-height: 1.75; min-height: 4.6em; }
.airport-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  margin: 17px 0 0;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.airport-spec { display: flex; flex-direction: column; gap: 1px; }
.airport-spec dt { font-size: 0.64rem; color: var(--ink-mute); font-family: var(--font-mono); }
.airport-spec dd { margin: 0; font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.airport-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 17px; }
.airport-price { font-family: var(--font-mono); font-size: 0.64rem; color: var(--ink-mute); line-height: 1.4; }
.airport-price strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.55rem; letter-spacing: -0.03em; line-height: 1.15; }
.airport-card .airport-cta { flex: 0 0 auto; }

/* The only airport card button. Text only, no icon, no arrow. */
.airport-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 9px;
  background: var(--orange);
  color: var(--forest-deep);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--orange);
  transition: background 0.2s ease, transform 0.2s ease;
}
.airport-cta:hover { background: #ff865e; border-color: #ff865e; transform: translateY(-1px); }

.criteria-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.criterion {
  padding: 23px;
  background: var(--paper-2);
  border-radius: 16px;
  border: 1px solid transparent;
}
.criterion .num { font-family: var(--font-mono); font-size: 0.69rem; color: var(--ink-mute); }
.criterion h3 { margin-top: 16px; font-size: 1.18rem; letter-spacing: -0.015em; }
.criterion p { margin-top: 8px; color: var(--ink-soft); font-size: 0.84rem; line-height: 1.75; }

.checklist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.55);
}
.check-item span { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-mute); padding-top: 2px; }
.check-item strong { display: block; font-size: 0.92rem; }
.check-item p { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.7; }
.risk-note { margin-top: 22px; font-size: 0.78rem; color: var(--ink-mute); line-height: 1.8; padding-left: 14px; border-left: 2px solid var(--orange); }
.rank-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; padding: 24px; border-radius: 16px; background: var(--paper-2); }
.rank-cta p { margin: 0; font-weight: 700; }
.rank-cta .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Article pages */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}
.read-progress span { display: block; height: 100%; width: 0; background: var(--orange); }
.article-hero { padding: 58px 0 46px; border-bottom: 1px solid var(--line); }
.article-hero h1 { max-width: 14em; text-wrap: balance; }
.article-deck { margin-top: 23px; max-width: 42em; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.9; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 27px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta span::before { content: ""; width: 4px; height: 4px; background: var(--forest-soft); border-radius: 50%; }
.article-meta span:first-child::before { background: var(--orange); }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 66px;
  align-items: start;
  padding: 56px 0 80px;
}
.prose { max-width: 720px; font-size: 1rem; line-height: 1.95; color: var(--ink); }
.prose > p:first-of-type { font-size: 1.06rem; color: var(--ink-soft); }
.prose h2 { font-size: clamp(1.7rem, 2.9vw, 2.25rem); margin: 2.2em 0 0.65em; line-height: 1.2; }
.prose h2:first-of-type { margin-top: 0.2em; }
.prose h3 { font-size: 1.24rem; margin: 1.8em 0 0.55em; line-height: 1.35; }
.prose p { margin-bottom: 1.28em; }
.prose ul, .prose ol { margin: 0 0 1.35em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.55em; }
.prose li::marker { color: var(--forest-soft); }
.prose blockquote {
  margin: 1.8em 0;
  padding: 18px 22px;
  background: var(--paper-2);
  border-left: 3px solid var(--forest);
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.85;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--paper-3);
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--forest);
  word-break: break-word;
}
.prose pre {
  position: relative;
  margin: 1.7em 0;
  padding: 19px;
  border-radius: 12px;
  background: var(--forest-deep);
  color: #d9e6dc;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.75;
}
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; word-break: normal; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.86rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--paper-2); font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-mute); font-weight: 500; }
.prose .article-note {
  margin: 1.8em 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.prose .article-note strong { color: var(--ink); }
.article-aside { position: sticky; top: 100px; }
.toc {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.6);
}
.toc p { margin: 0 0 12px; font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-mute); letter-spacing: 0.06em; }
.toc a { display: block; padding: 7px 0; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.5; text-decoration: none; border-bottom: 1px solid rgba(20,35,30,0.07); }
.toc a:last-child { border-bottom: 0; }
.toc a:hover { color: var(--forest); }
.aside-rank {
  display: block;
  margin-top: 14px;
  padding: 18px;
  border-radius: 16px;
  background: var(--forest);
  color: var(--paper);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.aside-rank::after { content: ""; position: absolute; width: 110px; height: 110px; right: -55px; top: -60px; border-radius: 50%; background: var(--lime); opacity: 0.18; }
.aside-rank span { display: block; font-family: var(--font-mono); font-size: 0.64rem; color: var(--lime); letter-spacing: 0.07em; }
.aside-rank strong { display: block; margin-top: 6px; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; color: var(--paper); }
.aside-rank p { margin: 7px 0 0; color: rgba(244,240,231,0.65); font-size: 0.76rem; line-height: 1.6; }

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 2.4em 0;
  padding: 24px;
  border-radius: 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.article-cta h3 { font-size: 1.25rem; margin: 0; }
.article-cta p { margin: 5px 0 0; font-size: 0.84rem; color: var(--ink-soft); }
.article-cta .btn { flex: 0 0 auto; }
.article-related { padding: 62px 0; border-top: 1px solid var(--line); }
.article-related h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-card { padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; }
.related-card:hover { border-color: var(--line-strong); }
.related-card span { font-family: var(--font-mono); font-size: 0.65rem; color: var(--ink-mute); }
.related-card strong { display: block; margin-top: 8px; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.35; }

/* Sitemap page */
.sitemap-main { padding: 68px 0 90px; }
.sitemap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 38px; }
.sitemap-group { padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.sitemap-group h2 { font-size: 1.35rem; }
.sitemap-group ul { list-style: none; padding: 0; margin: 16px 0 0; }
.sitemap-group li { margin: 0; border-bottom: 1px solid var(--line); }
.sitemap-group li:last-child { border-bottom: 0; }
.sitemap-group a { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; text-decoration: none; font-size: 0.88rem; }
.sitemap-group a:hover { color: var(--forest); }
.sitemap-group small { color: var(--ink-mute); font-family: var(--font-mono); font-size: 0.64rem; }

/* 404 */
.error-page { min-height: 64vh; display: grid; place-items: center; padding: 80px 0; text-align: center; }
.error-page h1 { font-size: clamp(3rem, 8vw, 4.75rem); }
.error-page p { max-width: 26em; margin: 18px auto 0; color: var(--ink-soft); }
.error-page .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* Responsive */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr); gap: 38px; }
  .section-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; }
  .section-lede { grid-column: auto; padding-top: 0; }
  .config-grid { gap: 42px; }
  .rank-feature { padding: 42px; gap: 36px; }
  .featured-airport { grid-template-columns: 118px minmax(0, 1fr) minmax(190px, 0.4fr); gap: 24px; padding: 30px; }
  .featured-aside { padding-left: 22px; }
  .airport-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .criteria-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-card { grid-template-columns: 58px minmax(0, 1fr); }
  .download-card__side { grid-column: 2; flex-direction: row; align-items: center; }
  .download-card__side .btn { width: auto; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 42px; }
}

@media (max-width: 860px) {
  .shell { width: calc(100% - 40px); }
  .section { padding: 76px 0; }
  .section--tight { padding: 60px 0; }
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .section-lede { padding-top: 0; }
  .hero { padding: 46px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-copy { max-width: 680px; }
  .hero-title { max-width: 12em; }
  .hero-stage { max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-bottom { margin-top: 38px; flex-wrap: wrap; gap: 10px 16px; }
  .hero-bottom .line { display: none; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-top { min-height: 150px; }
  .config-grid { grid-template-columns: 1fr; gap: 32px; }
  .config-copy h2 { max-width: 12em; }
  .profile-panel { max-width: 560px; }
  .rank-feature { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
  .rank-feature__side { max-width: 460px; }
  .rank-feature__copy h2 { max-width: 10em; }
  .article-grid { grid-template-columns: 1fr; }
  .article-art { min-height: 148px; }
  .article-title { font-size: 1.42rem; }
  .closing { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-meta { flex-direction: column; gap: 7px; }
  .page-hero { padding: 44px 0 46px; }
  .page-hero--split .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .release-card { max-width: 560px; }
  .download-card { grid-template-columns: 1fr; gap: 18px; }
  .download-card__icon { width: 54px; height: 54px; }
  .download-card__side { grid-column: auto; flex-direction: column; align-items: stretch; }
  .download-card__side .btn { width: 100%; }
  .rank-page-hero { padding: 46px 0 48px; }
  .rank-page-hero::after { width: 240px; height: 240px; right: -96px; top: -170px; opacity: 0.82; }
  .rank-page-hero .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .rank-page-hero h1 { max-width: 8em; }
  .rank-hero-note { max-width: 460px; }
  .rank-section { padding: 64px 0; }
  .featured-airport { grid-template-columns: 92px minmax(0, 1fr); gap: 20px; padding: 26px; }
  .featured-aside { grid-column: 1 / -1; padding-left: 0; padding-top: 20px; border-left: 0; border-top: 1px solid rgba(255,255,255,0.15); flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .featured-aside .airport-cta { width: auto; min-width: 150px; }
  .criteria-grid { grid-template-columns: 1fr 1fr; }
  .download-row { grid-template-columns: 1fr auto; gap: 7px 16px; padding: 19px 20px; }
  .download-row__meta { grid-column: 1; }
  .download-row__go { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .article-hero { padding: 44px 0 36px; }
  .article-layout { grid-template-columns: 1fr; gap: 34px; padding: 38px 0 60px; }
  .article-aside { position: static; order: 2; }
  .toc { display: none; }
  .aside-rank { margin-top: 0; max-width: 440px; }
  .prose { max-width: none; }
  .related-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .article-cta { align-items: flex-start; flex-direction: column; }
  .article-cta .btn { width: 100%; }
}

@media (max-width: 560px) {
  .hero-brand { display: block; }
  .shell { width: calc(100% - 28px); }
  .brand-name { font-size: 1.08rem; }
  .brand-mark { width: 34px; height: 34px; }
  .section { padding: 62px 0; }
  .section--tight { padding: 48px 0; }
  h1, .display-xl { font-size: clamp(2.45rem, 12vw, 3.55rem); }
  h2, .section-title { font-size: clamp(1.9rem, 9vw, 2.7rem); }
  .hero { padding-top: 38px; }
  .hero-lede { font-size: 1rem; margin-top: 20px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { gap: 8px 12px; font-size: 0.68rem; }
  .hero-stage { border-radius: 22px; }
  .stage-panel { inset: 10%; border-radius: 18px; }
  .stage-chip { min-height: 31px; padding: 6px 10px; font-size: 0.64rem; }
  .stage-word { font-size: 0.62rem; letter-spacing: 0.1em; }
  .hero-bottom { font-size: 0.8rem; }
  .section-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 30px; }
  .section-index { border-top: 0; padding-top: 0; font-size: 0.7rem; }
  .section-lede { grid-column: auto; font-size: 0.94rem; }
  .platform-card { padding: 16px; }
  .platform-top { min-height: 140px; }
  .profile-panel { padding: 18px; }
  .profile-foot { flex-direction: column; align-items: flex-start; gap: 7px; }
  .rank-feature { padding: 24px 20px; border-radius: 22px; }
  .rank-feature__copy h2 { max-width: 10em; }
  .rank-feature__copy .btn { width: 100%; }
  .rank-feature__side { padding: 20px; }
  .rank-stat strong { font-size: 2.4rem; }
  .download-row { grid-template-columns: 1fr; gap: 5px; }
  .download-row__go { grid-column: auto; grid-row: auto; justify-self: start; margin-top: 3px; }
  .article-body { padding: 19px; }
  .article-art { min-height: 132px; }
  .closing { padding-top: 28px; }
  .closing .closing-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .closing .closing-actions .btn { width: 100%; }
  .footer-nav { gap: 8px 16px; }
  .footer-meta { font-size: 0.66rem; }
  .breadcrumbs { margin-bottom: 20px; font-size: 0.7rem; }
  .page-hero .lede { font-size: 0.98rem; }
  .page-hero-meta { gap: 7px; }
  .chip { font-size: 0.64rem; padding: 5px 9px; }
  .release-card { padding: 20px; }
  .download-card { padding: 20px; }
  .file-row { flex-wrap: wrap; gap: 3px 10px; }
  .file-row .file-action { margin-left: auto; }
  .code-block { padding: 15px 15px 46px; font-size: 0.72rem; }
  .copy-btn { top: auto; bottom: 9px; right: 9px; }
  .rank-hero-note { padding: 18px; }
  .featured-airport { grid-template-columns: 1fr; gap: 18px; padding: 22px; border-radius: 20px; }
  .featured-rank { flex-direction: row; align-items: flex-end; gap: 12px; padding: 0 0 16px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .featured-rank .big-rank { margin: 0; font-size: 4rem; }
  .featured-rank .top-label { align-self: flex-start; padding-top: 5px; }
  .featured-rank .score { margin-left: auto; text-align: right; }
  .featured-aside { flex-direction: column; align-items: stretch; }
  .featured-aside .airport-cta { width: 100%; }
  .airport-grid { grid-template-columns: 1fr; }
  .airport-card { padding: 19px; }
  .airport-desc { min-height: 0; }
  .airport-foot { align-items: center; }
  .airport-cta { min-height: 42px; padding: 10px 15px; }
  .criteria-grid { grid-template-columns: 1fr; gap: 10px; }
  .criterion { padding: 19px; }
  .checklist-grid { grid-template-columns: 1fr; }
  .rank-cta { align-items: flex-start; flex-direction: column; }
  .rank-cta .actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .rank-cta .actions .btn { width: 100%; }
  .article-hero h1 { max-width: 14em; text-wrap: balance; }
  .article-deck { font-size: 0.98rem; }
  .prose { font-size: 0.96rem; line-height: 1.9; }
  .prose h2 { font-size: 1.62rem; }
  .prose pre { font-size: 0.7rem; padding: 15px; }
  .article-cta { padding: 19px; }
  .related-card { padding: 17px; }
  .error-page .actions { display: grid; width: 100%; }
  .error-page .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print */
@media print {
  .site-header, .site-footer, .article-aside, .read-progress { display: none !important; }
  body { background: #fff; }
  .article-layout { display: block; }
  .prose { max-width: none; }
}

.brand-mark,
.footer-brand img { object-fit: contain; }
.download-card__icon--app { padding: 0; overflow: hidden; background: transparent; }
.download-card__icon--app img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.section-more { margin-top: 26px; }
