/* Pakistan 2026 — The State of the Ship
   Design tokens, layout and components. Charts follow the palette validated in assets/charts.js. */

:root {
  color-scheme: dark;
  --bg: #050d0a;
  --bg-2: #08140f;
  --panel: #0e1a15;
  --panel-2: #12221b;
  --ink: #f1f5f1;
  --ink-2: #b6c3bb;
  --muted: #7d8c84;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --grid: #1c2b24;
  --axis: #2c3d35;
  --brand: #2fd98f;
  --brand-ink: #04130c;
  --brand-soft: rgba(47, 217, 143, 0.12);
  --gold: #e9c463;
  --sea: #071a1c;
  --land: #13241d;
  --land-2: #0f1d17;
  --glow: rgba(47, 217, 143, 0.35);

  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --neutral: #4a5952;
  --seq-0: #12314f; --seq-1: #184f95; --seq-2: #256abf; --seq-3: #3987e5; --seq-4: #86b6ef; --seq-5: #cde2fb;

  --good: #0ca30c; --warn: #fab219; --serious: #ec835a; --critical: #d03b3b;
  --good-ink: #5fd65f; --critical-ink: #ff8f86;

  --display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r: 18px;
  --r-s: 10px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f2e9;
  --bg-2: #efece1;
  --panel: #fbfaf4;
  --panel-2: #f3f1e7;
  --ink: #0c1a14;
  --ink-2: #44534b;
  --muted: #76827b;
  --line: rgba(12, 26, 20, 0.11);
  --line-2: rgba(12, 26, 20, 0.2);
  --grid: #e3e0d4;
  --axis: #c4c1b3;
  --brand: #0a7d47;
  --brand-ink: #ffffff;
  --brand-soft: rgba(10, 125, 71, 0.1);
  --gold: #9a6d08;
  --sea: #e3ecea;
  --land: #e9e6d9;
  --land-2: #dedbcd;
  --glow: rgba(10, 125, 71, 0.25);

  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #4a3aa7; --s8: #e34948;
  --neutral: #b9b6a8;
  --seq-0: #cde2fb; --seq-1: #86b6ef; --seq-2: #3987e5; --seq-3: #256abf; --seq-4: #184f95; --seq-5: #0d366b;
  --good-ink: #006300; --critical-ink: #b3261e;
  --shadow: 0 30px 70px -40px rgba(12, 26, 20, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@view-transition { navigation: auto; }
/* Page-in fade. No transform on <body>: a transformed body stops position:fixed children
   (top bar, chapter menu, map popup, back-to-top) from sticking to the screen. */
body { animation: page-in 0.6s var(--ease); }
@keyframes page-in { from { opacity: 0; } }
main { animation: main-in 0.6s var(--ease); }
@keyframes main-in { from { transform: translateY(8px); } }

a { color: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.shell { width: min(1220px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); margin-inline: auto; }

/* ---------- ambient background ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora::before, .aurora::after {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(120px); opacity: 0.22;
}
.aurora::before { background: radial-gradient(circle, #14a56a, transparent 60%); top: -35vmax; right: -20vmax; animation: drift 26s ease-in-out infinite alternate; }
.aurora::after { background: radial-gradient(circle, #1e5fae, transparent 60%); bottom: -45vmax; left: -25vmax; opacity: 0.14; animation: drift 34s ease-in-out infinite alternate-reverse; }
:root[data-theme="light"] .aurora::before { opacity: 0.16; }
:root[data-theme="light"] .aurora::after { opacity: 0.08; }
@keyframes drift { to { transform: translate3d(-6vmax, 5vmax, 0) scale(1.1); } }

/* ---------- top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(1.4);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand svg { width: 30px; height: 30px; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; line-height: 1.05; display: block; }
.brand small { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; }
.top .shell { width: min(1560px, 100% - 40px); }
.nav-wrap { position: relative; flex: 1; min-width: 0; display: flex; --ml: 0px; --mr: 0px; }
.nav-wrap.can-left { --ml: 56px; }
.nav-wrap.can-right { --mr: 56px; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 var(--ml), #000 calc(100% - var(--mr)), transparent); }
.nav .shrt, .nav.short .full { display: none; }
.nav.short .shrt { display: inline; }
.nav.short a { padding-inline: 9px; }
.nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: none; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink);
  font: 600 18px/1 var(--body); cursor: pointer; padding: 0 0 2px;
}
.nav-arrow:hover { background: var(--panel-2); border-color: var(--brand); }
.nav-arrow.l { left: 0; }
.nav-arrow.r { right: 0; }
.nav-wrap.can-left .nav-arrow.l, .nav-wrap.can-right .nav-arrow.r { display: grid; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; padding: 7px 8px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-size: 13px; font-weight: 500; color: var(--ink-2); transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--ink); background: var(--line); }
.nav a[aria-current="page"] { color: var(--brand-ink); background: var(--brand); }
.top-btn {
  flex: none; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink); font: 600 13px var(--body); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s, border-color 0.2s;
}
.top-btn:hover { background: var(--line); }
.top-btn svg { width: 16px; height: 16px; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), var(--gold)); }

/* ---------- full-screen chapter menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(22px); opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
  overflow-y: auto; padding: 84px 0 60px;
}
.menu.open { opacity: 1; visibility: visible; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.progress.busy { animation: busy 1.1s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes busy { from { transform: translateX(-45%) scaleX(0.45); } to { transform: translateX(100%) scaleX(0.45); } }
.menu-grid a.going { border-color: var(--brand); background: var(--panel-2); }
.menu-grid a.going::after {
  content: ""; position: absolute; top: 20px; right: 20px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line-2); border-top-color: var(--brand); animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.chap.going, .pager a.going { border-color: var(--brand); }
.menu-grid a {
  position: relative;
  display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none;
  background: var(--panel); transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
  opacity: 0; transform: translateY(14px);
}
.menu.open .progress.busy { animation: busy 1.1s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes busy { from { transform: translateX(-45%) scaleX(0.45); } to { transform: translateX(100%) scaleX(0.45); } }
.menu-grid a.going { border-color: var(--brand); background: var(--panel-2); }
.menu-grid a.going::after {
  content: ""; position: absolute; top: 20px; right: 20px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line-2); border-top-color: var(--brand); animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.chap.going, .pager a.going { border-color: var(--brand); }
.menu-grid a {
  position: relative; opacity: 1; transform: none; transition-delay: calc(var(--i) * 28ms); }
.menu-grid a:hover { border-color: var(--brand); background: var(--panel-2); transform: translateY(-3px); }
.menu-grid .n { font: 500 11px var(--mono); letter-spacing: 0.14em; color: var(--brand); }
.menu-grid h3 { margin: 6px 0 4px; font: 700 21px/1.15 var(--display); letter-spacing: -0.015em; }
.menu-grid p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.menu-close { position: fixed; top: 12px; right: max(20px, calc((100vw - 1220px) / 2)); }

/* ---------- type ---------- */
.eyebrow { font: 500 11.5px var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 7.2vw, 104px); font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 54px); font-weight: 650; }
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 650; letter-spacing: -0.015em; line-height: 1.15; }
h4 { font-size: 17px; font-weight: 650; letter-spacing: -0.005em; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lede { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose ul { padding-left: 1.1em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.grad { background: linear-gradient(100deg, var(--brand), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num { font-variant-numeric: tabular-nums; }
.small { font-size: 13.5px; color: var(--muted); }

/* ---------- sections ---------- */
main { padding-top: 62px; }
section { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
section.tight { padding: clamp(36px, 5vw, 64px) 0; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(26px, 4vw, 48px); max-width: 900px; }
.sec-head .lede { margin: 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- chapter header ---------- */
.chapter { padding: clamp(60px, 9vw, 130px) 0 clamp(30px, 4vw, 56px); position: relative; overflow: hidden; }
.chapter .big-n {
  position: absolute; right: -0.04em; top: 0.02em; font: 800 clamp(180px, 34vw, 460px)/0.8 var(--display);
  letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px var(--line-2); pointer-events: none; user-select: none; opacity: 0.6;
}
.chapter h1 { font-size: clamp(40px, 6.4vw, 92px); margin: 18px 0 22px; max-width: 13ch; position: relative; }
.chapter .lede { position: relative; }
.asof { margin-top: 26px; display: inline-flex; gap: 10px; align-items: center; font: 500 11.5px var(--mono); letter-spacing: 0.08em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; position: relative; }
.asof i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--glow); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.kpi {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px 18px;
  display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.kpi:hover { transform: translateY(-3px); border-color: var(--line-2); }
.kpi .k { font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.kpi .v { font: 650 clamp(30px, 3.2vw, 42px)/1 var(--display); letter-spacing: -0.03em; }
.kpi .v small { font: 600 0.45em var(--body); letter-spacing: 0; color: var(--ink-2); margin-left: 3px; }
.kpi .d { font-size: 13px; color: var(--muted); line-height: 1.4; }
.kpi .d b { color: var(--ink-2); font-weight: 600; }

/* status chips: icon + label, never colour alone */
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.tag::before { content: ""; width: 14px; height: 14px; flex: none; background: center / contain no-repeat; }
.tag.good::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%230ca30c'/%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tag.warn::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1l7.5 13.5h-15z' fill='%23fab219'/%3E%3Cpath d='M8 6v4.2M8 12.2v.3' stroke='%23111' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tag.serious::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='1' width='14' height='14' rx='3' fill='%23ec835a'/%3E%3Cpath d='M8 4.2v4.6M8 11.2v.4' stroke='%23111' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tag.critical::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 1h6l4 4v6l-4 4H5l-4-4V5z' fill='%23d03b3b'/%3E%3Cpath d='M5.6 5.6l4.8 4.8M10.4 5.6l-4.8 4.8' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tag.info::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7.2' fill='none' stroke='%237d8c84' stroke-width='1.6'/%3E%3Cpath d='M8 7.2v4M8 4.6v.3' stroke='%237d8c84' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ---------- figures (charts) ---------- */
.fig { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 2.4vw, 30px); margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fig h3 { font-size: clamp(18px, 1.7vw, 22px); }
.fig .sub { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.chart { position: relative; width: 100%; min-width: 0; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--body); fill: var(--ink-2); }
.chart .t-muted { fill: var(--muted); }
.chart .t-strong { fill: var(--ink); font-weight: 600; }
.chart .gridl { stroke: var(--grid); stroke-width: 1; }
.chart .axisl { stroke: var(--axis); stroke-width: 1; }
.chart .mark { transition: opacity 0.2s, filter 0.2s; outline: none; }
.chart .mark:hover, .chart .mark:focus-visible { filter: brightness(1.18); }
.chart .hit { fill: transparent; cursor: default; outline: none; }
.chart .grow { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.chart .growy { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1.1s var(--ease); }
.chart .growy.neg { transform-origin: 50% 0; }
.chart.in .grow, .chart.in .growy { transform: none; }
.chart .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.6s var(--ease); }
.chart.in .draw { stroke-dashoffset: 0; }
.chart .fade { opacity: 0; transition: opacity 0.7s 0.5s; }
.chart.in .fade { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); margin: 2px 0 10px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.legend i.ln { height: 3px; width: 16px; border-radius: 2px; }
.fig-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.fig-foot a { color: var(--ink-2); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.fig-foot a:hover { color: var(--brand); }
details.tbl { margin-top: 8px; font-size: 13px; }
details.tbl summary { cursor: pointer; color: var(--ink-2); font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.tbl summary::-webkit-details-marker { display: none; }
details.tbl summary::before { content: "+"; font-size: 14px; line-height: 1; }
details.tbl[open] summary::before { content: "–"; }
details.tbl table { margin-top: 10px; }

.tip {
  position: fixed; z-index: 80; pointer-events: none; background: var(--ink); color: var(--bg);
  padding: 9px 12px; border-radius: 10px; font-size: 13px; line-height: 1.35; max-width: 280px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s;
}
.tip.on { opacity: 1; transform: none; }
.tip b { display: block; font-size: 15px; font-weight: 650; }
.tip span { opacity: 0.72; }
.tip .row { display: flex; align-items: center; gap: 8px; }
.tip .row i { width: 12px; height: 3px; border-radius: 2px; flex: none; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td b { font-weight: 600; }
details.tbl table { border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; display: table; }
details.tbl th, details.tbl td { padding: 7px 12px; font-size: 13px; }

/* ---------- layout helpers ---------- */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.split.rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.stack { display: grid; gap: 16px; }
.sticky { position: sticky; top: 92px; }
@media (max-width: 900px) {
  .grid2, .grid3, .split, .split.rev { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
}

/* ---------- cards & callouts ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 2.2vw, 28px); }
.card h4 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.callout { border-left: 2px solid var(--brand); padding: 4px 0 4px 22px; margin: 26px 0; max-width: 68ch; }
.callout p { font: 500 clamp(19px, 1.8vw, 24px)/1.35 var(--display); letter-spacing: -0.012em; color: var(--ink); margin: 0; }
.callout small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

.check { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.check-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.check-head h4 { font-size: 18px; }
.check-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check-body > div { padding: 18px 22px; border-right: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.check-body > div:last-child { border-right: 0; }
.check-body h5 { margin: 0 0 8px; font: 500 10.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.check-body p:last-child { margin: 0; }
@media (max-width: 900px) { .check-body { grid-template-columns: 1fr; } .check-body > div { border-right: 0; border-bottom: 1px solid var(--line); } }

.pill { display: inline-block; font: 500 11px var(--mono); letter-spacing: 0.06em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill.v { border-color: var(--brand); color: var(--brand); }

/* ---------- references ---------- */
.ref { font: 500 10px var(--mono); vertical-align: super; line-height: 0; margin-left: 2px; white-space: nowrap; }
.ref a { color: var(--brand); text-decoration: none; padding: 0 1px; }
.ref a:hover { text-decoration: underline; }
.srclist { display: grid; gap: 10px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.srclist li { display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; scroll-margin-top: 90px; }
.srclist li:target { background: var(--brand-soft); }
.srclist .i { font: 500 11.5px var(--mono); color: var(--brand); padding-top: 2px; }
.srclist a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-2); overflow-wrap: anywhere; }
.srclist small { display: block; color: var(--muted); }

/* ---------- timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--brand), var(--line-2)); }
.tl { position: relative; padding: 0 0 22px; }
.tl::before { content: ""; position: absolute; left: -26px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brand); }
.tl.hot::before { background: var(--critical); border-color: var(--critical); }
.tl.calm::before { background: var(--brand); }
.tl time { font: 500 11.5px var(--mono); letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.tl h4 { margin: 3px 0 4px; }
.tl p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 62ch; }

/* ---------- hero ---------- */
.hero { min-height: calc(100svh - 62px); display: grid; align-items: center; padding: 40px 0 0; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 20px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.6vw, 100px); margin: 22px 0 24px; }
.hero h1 em { font-style: normal; }
.hero-map { position: relative; aspect-ratio: 1000 / 1027; max-height: 78svh; justify-self: center; width: 100%; }
.hero-map svg { width: 100%; height: 100%; overflow: visible; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 15px var(--body); text-decoration: none; border: 1px solid var(--line-2); color: var(--ink); cursor: pointer; background: transparent;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { box-shadow: 0 14px 40px -12px var(--glow); }
.btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-map { max-height: 60svh; order: -1; } }

.ticker { border-block: 1px solid var(--line); margin-top: 40px; overflow: hidden; background: color-mix(in srgb, var(--panel) 60%, transparent); }
.ticker-in { display: flex; gap: 0; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker-in { animation-play-state: paused; }
.ticker-in div { display: flex; align-items: baseline; gap: 10px; padding: 14px 28px; border-right: 1px solid var(--line); white-space: nowrap; }
.ticker-in span { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ticker-in b { font: 650 19px var(--display); letter-spacing: -0.01em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- waterline ---------- */
.water { border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); overflow: hidden; background: var(--panel); position: relative; }
.water-up, .water-down { padding: clamp(22px, 3vw, 40px); }
.water-down { background: linear-gradient(180deg, color-mix(in srgb, #0d3a66 38%, var(--panel)), color-mix(in srgb, #06162b 60%, var(--panel))); position: relative; }
:root[data-theme="light"] .water-down { background: linear-gradient(180deg, #cfe2f5, #b4cfea); }
.waves { display: block; width: 200%; max-width: none; height: 46px; margin-bottom: -1px; animation: wave 9s linear infinite; }
.waves path { fill: color-mix(in srgb, #0d3a66 38%, var(--panel)); }
:root[data-theme="light"] .waves path { fill: #cfe2f5; }
@keyframes wave { to { transform: translateX(-50%); } }
.water h3 { margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.buoys { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.buoy { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 45%, transparent); }
.buoy b { display: block; font: 650 26px/1.1 var(--display); letter-spacing: -0.02em; }
.buoy span { font-size: 13.5px; color: var(--ink-2); line-height: 1.35; display: block; margin-top: 4px; }
:root[data-theme="light"] .buoy { background: rgba(255, 255, 255, 0.6); }

/* ---------- chapter cards on home ---------- */
.chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.chap {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; min-height: 220px; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.3s;
}
.chap::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 65%); opacity: 0; transition: opacity 0.5s; }
.chap:hover { transform: translateY(-5px); border-color: var(--brand); }
.chap:hover::after { opacity: 1; }
.chap .n { font: 500 11px var(--mono); letter-spacing: 0.16em; color: var(--brand); }
.chap h3 { font-size: 25px; }
.chap p { font-size: 14.5px; color: var(--ink-2); margin: 0; flex: 1; }
.chap .go { font: 600 13px var(--body); display: inline-flex; gap: 8px; align-items: center; color: var(--ink); position: relative; z-index: 1; }
.chap .go svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.chap:hover .go svg { transform: translateX(5px); }
.chap .stat { font: 650 34px/1 var(--display); letter-spacing: -0.03em; }

/* ---------- map page ---------- */
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.map-stage { background: var(--sea); border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); position: relative; overflow: hidden; }
.map-stage svg { display: block; width: 100%; height: auto; }
.map-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; align-items: center; }
.map-tools .lab { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.seg { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 500 13px var(--body); cursor: pointer; transition: all 0.2s; }
.seg:hover { color: var(--ink); border-color: var(--ink-2); }
.seg[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.map-side { display: grid; gap: 12px; max-height: calc(100svh - 110px); position: sticky; top: 84px; }
.map-side .card { padding: 16px; }
.city-search { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); padding: 0 12px; font: 400 14px var(--body); }
.city-list { list-style: none; margin: 10px 0 0; padding: 0; overflow-y: auto; max-height: 46svh; display: grid; gap: 2px; }
.city-list button { width: 100%; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 500 14px var(--body); cursor: pointer; text-align: left; }
.city-list button:hover, .city-list button:focus-visible { background: var(--line); }
.city-list small { color: var(--muted); font: 400 12px var(--mono); }
.map-legend { position: absolute; left: 14px; bottom: 14px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12px; color: var(--ink-2); max-width: 260px; }
.map-legend .ramp { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin: 6px 0 4px; gap: 2px; }
.map-legend .ramp i { flex: 1; }
.map-legend .ends { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--muted); }
.map-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
@media (max-width: 1000px) { .map-layout { grid-template-columns: 1fr; } .map-side { position: static; max-height: none; } }

.pk-map .prov { fill: var(--land); stroke: color-mix(in srgb, var(--brand) 42%, var(--bg)); stroke-width: 1; cursor: pointer; transition: fill 0.35s, filter 0.25s; outline: none; }
.pk-map .prov:hover, .pk-map .prov:focus-visible, .pk-map .prov.sel { filter: brightness(1.25) drop-shadow(0 0 10px var(--glow)); }
:root[data-theme="light"] .pk-map .prov:hover, :root[data-theme="light"] .pk-map .prov.sel { filter: brightness(0.94) drop-shadow(0 0 8px var(--glow)); }
.pk-map .nb { fill: var(--land-2); stroke: var(--line-2); stroke-width: 0.6; opacity: 0.55; }
.pk-map .outline { fill: none; stroke: var(--brand); stroke-width: 1.4; stroke-linejoin: round; pointer-events: none; }
.pk-map .disputed { stroke: var(--line-2); stroke-width: 0.8; }
.pk-map .lbl { font: 600 12.5px var(--body); fill: var(--ink); pointer-events: none; text-anchor: middle; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }
.pk-map .lbl.s { font-size: 9.5px; font-weight: 500; fill: var(--ink-2); }
.pk-map .lbl.p { font: 650 16px var(--display); letter-spacing: 0.01em; }
.pk-map .lbl.nbl { font: 500 11px var(--mono); letter-spacing: 0.22em; fill: var(--muted); stroke: none; text-transform: uppercase; }
.pk-map .lbl.seal { font: italic 500 12px var(--body); fill: var(--muted); stroke: none; letter-spacing: 0.1em; }
.pk-map .city { cursor: pointer; outline: none; }
.pk-map .city circle.dot { fill: var(--gold); stroke: var(--bg); stroke-width: 1.5; transition: r 0.2s; }
.pk-map .city circle.halo { fill: var(--gold); opacity: 0.18; transform-box: fill-box; transform-origin: center; animation: halo 3s ease-out infinite; }
.pk-map .city:hover circle.dot, .pk-map .city:focus-visible circle.dot, .pk-map .city.sel circle.dot { r: 7; fill: #fff; }
.pk-map .city text { font: 500 12px var(--body); fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 2.6px; stroke-linejoin: round; pointer-events: none; }
@keyframes halo { 0% { transform: scale(0.6); opacity: 0.35; } 100% { transform: scale(2.4); opacity: 0; } }

/* sheet (map popup) */
.sheet-bg { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.sheet-bg.open { opacity: 1; visibility: visible; }
.sheet {
  position: fixed; z-index: 71; top: 0; right: 0; height: 100%; width: min(520px, 100%); background: var(--panel);
  border-left: 1px solid var(--line-2); box-shadow: var(--shadow); transform: translateX(104%); transition: transform 0.5s var(--ease);
  overflow-y: auto; padding: 26px clamp(20px, 3vw, 32px) 40px;
}
.sheet.open { transform: none; }
.sheet .x { position: sticky; top: 0; float: right; z-index: 2; }
.sheet h2 { font-size: clamp(30px, 4vw, 44px); margin: 8px 0 6px; }
.sheet .one { color: var(--ink-2); font-size: 15.5px; margin-bottom: 18px; }
.sheet-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.sheet-stats div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.sheet-stats span { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.sheet-stats b { display: block; font: 650 22px/1.15 var(--display); letter-spacing: -0.02em; margin-top: 3px; }
.sheet-stats small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.sheet h4 { margin: 20px 0 8px; font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sheet ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: 14.5px; }
.sheet li { margin-bottom: 7px; }
.bar-mini { display: grid; grid-template-columns: 96px 1fr 62px; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; }
.bar-mini .trk { height: 8px; border-radius: 4px; background: var(--grid); overflow: hidden; }
.bar-mini .trk i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--s1); transform-origin: 0 50%; animation: growx 0.9s var(--ease) both; }
.bar-mini.me { color: var(--ink); font-weight: 600; }
.bar-mini:not(.me) .trk i { background: var(--neutral); }
.bar-mini b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
@keyframes growx { from { transform: scaleX(0); } }

/* ---------- pillars ---------- */
.pillars { background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); padding: clamp(16px, 2.4vw, 30px); }
.pillars svg { display: block; width: 100%; height: auto; }
.pillars text { font-family: var(--body); fill: var(--ink-2); }
.pillars .col rect, .pillars .col path { transition: all 0.9s var(--ease); }
.pillars .stone { fill: var(--panel-2); stroke: var(--line-2); stroke-width: 1; }
.pillars .cap { fill: var(--ink); }
.pillars .wire { stroke: var(--critical); stroke-width: 2; fill: none; stroke-dasharray: 5 5; opacity: 0; transition: opacity 0.6s 0.5s; animation: dash 1.2s linear infinite; }
.pillars.after .wire { opacity: 1; }
.pillars .aft { opacity: 0; transition: opacity 0.6s 0.4s; }
.pillars.after .aft { opacity: 1; }
.pillars .bef { transition: opacity 0.4s; }
.pillars.after .bef { opacity: 0; }
@keyframes dash { to { stroke-dashoffset: -20; } }

/* ---------- problem / fix ---------- */
.diag { display: grid; gap: 14px; }
.dx { display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.dx .no { display: grid; place-items: center; font: 700 30px var(--display); color: var(--brand); border-right: 1px solid var(--line); }
.dx > div { padding: 22px 24px; }
.dx .prob { border-right: 1px solid var(--line); }
.dx h4 { font-size: 19px; margin-bottom: 8px; }
.dx h5 { margin: 0 0 8px; font: 500 10.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.dx p, .dx li { font-size: 15px; color: var(--ink-2); }
.dx ul { margin: 0; padding-left: 1.1em; }
.dx li { margin-bottom: 6px; }
.dx p:last-child { margin: 0; }
@media (max-width: 900px) { .dx { grid-template-columns: 1fr; } .dx .no { justify-content: start; padding: 14px 24px 0; border: 0; } .dx .prob { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- slider tool ---------- */
.tool { display: grid; gap: 18px; }
.tool label { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.tool label b { color: var(--ink); font: 650 20px var(--display); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--grid); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--brand); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); border: 3px solid var(--panel); cursor: grab; }
.tool-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tool-out div { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.tool-out span { font-size: 12.5px; color: var(--muted); display: block; line-height: 1.3; }
.tool-out b { font: 650 clamp(22px, 2.4vw, 30px) var(--display); letter-spacing: -0.02em; display: block; margin-top: 4px; }
@media (max-width: 700px) { .tool-out { grid-template-columns: 1fr; } }

/* ---------- waffle ---------- */
.waffle { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; max-width: 560px; }
.waffle i { aspect-ratio: 1; border-radius: 50%; background: var(--neutral); opacity: 0; transform: scale(0.4); transition: opacity 0.5s, transform 0.5s var(--ease); transition-delay: calc(var(--i) * 8ms); }
.waffle.in i { opacity: 1; transform: none; }
.waffle i.a { background: var(--s2); }
.waffle i.b { background: var(--s1); }

/* ---------- prev / next ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.pager a { padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; background: var(--panel); transition: border-color 0.3s, transform 0.4s var(--ease); display: block; }
.pager a:hover { border-color: var(--brand); transform: translateY(-3px); }
.pager small { font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pager b { display: block; font: 650 clamp(22px, 2.6vw, 32px)/1.1 var(--display); letter-spacing: -0.02em; margin-top: 6px; }
.pager a.nx { text-align: right; }
@media (max-width: 700px) { .pager { grid-template-columns: 1fr; } .pager a.nx { text-align: left; } }

footer { border-top: 1px solid var(--line); padding: 44px 0 60px; margin-top: 40px; color: var(--muted); font-size: 13.5px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
footer a { color: var(--ink-2); text-decoration: none; display: block; padding: 2px 0; }
footer a:hover { color: var(--brand); }
footer h5 { margin: 0 0 10px; font: 500 10.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 800px) { footer .cols { grid-template-columns: 1fr; } }

/* ---------- on-page rail ---------- */
.rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 20; display: grid; gap: 10px; }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-decoration: none; font: 500 11px var(--mono); color: var(--muted); }
.rail a span { opacity: 0; transform: translateX(6px); transition: all 0.25s; background: var(--panel); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.rail a i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--muted); transition: all 0.25s; flex: none; }
.rail a:hover span { opacity: 1; transform: none; }
.rail a.on i { background: var(--brand); border-color: var(--brand); transform: scale(1.35); }
@media (max-width: 1340px) { .rail { display: none; } }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; z-index: 45; right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom));
  width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(12px); color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.9);
  transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0.3s, background 0.2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); color: var(--brand-ink); }
.to-top:hover .arc { stroke: var(--brand-ink); }
.to-top svg { display: block; width: 100%; height: 100%; fill: none; }
.to-top .trk { stroke: var(--line-2); stroke-width: 2; }
.to-top .arc { stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: 24px 24px; }
.to-top path { stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 700px) { .to-top { width: 48px; height: 48px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); } }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 700px) {
  body { font-size: 16px; }
  .brand small { display: none; }
  .nav-wrap { display: none; }
  .top-in { justify-content: space-between; }
  th, td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
@media print {
  .top, .menu, .rail, .aurora, .pager, .sheet, .sheet-bg, .to-top { display: none !important; }
  body { background: #fff; color: #000; }
  .rv { opacity: 1; transform: none; }
}
