/* =========================================================
   住宅 IP 配置教程 · static site
   Design system + layout + components
   ========================================================= */

:root {
  --bg: #f6f8fc;
  --paper: #ffffff;
  --paper-soft: #fbfcff;
  --ink: #0b1528;
  --ink-2: #233149;
  --muted: #63708a;
  --muted-2: #8d99ad;
  --line: #e3e8f1;
  --line-strong: #d3dbe9;

  --blue: #1f5eff;
  --blue-deep: #0c3ca8;
  --blue-soft: #eef4ff;
  --cyan: #06a7c9;
  --amber: #e58b00;
  --amber-soft: #fff7e7;
  --green: #0b8f63;
  --green-soft: #ebfaf3;
  --red: #d92d3f;
  --red-soft: #fff1f2;

  --shadow-sm: 0 1px 2px rgba(12, 25, 50, 0.04), 0 6px 18px rgba(12, 25, 50, 0.04);
  --shadow-md: 0 18px 44px -20px rgba(17, 39, 82, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1200px;

  --font: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 600px at 88% -8%, rgba(31, 94, 255, 0.11), transparent 62%),
    radial-gradient(900px 520px at -6% 16%, rgba(6, 167, 201, 0.08), transparent 58%),
    linear-gradient(180deg, #f8faff 0%, #f6f8fc 36%, #f6f8fc 100%);
}

::selection {
  background: rgba(31, 94, 255, 0.18);
  color: var(--ink);
}

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

/* <picture> 只做格式协商，不参与布局 */
picture {
  display: contents;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding-left: 1.2em;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  visibility: hidden;
  transition: top 0.2s ease, visibility 0.2s ease;
}

.skip-link:focus {
  top: 0;
  visibility: visible;
}

:focus-visible {
  outline: 3px solid rgba(31, 94, 255, 0.32);
  outline-offset: 3px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 255, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(248, 250, 255, 0.94);
  border-color: rgba(219, 227, 240, 0.9);
  box-shadow: 0 10px 30px -24px rgba(13, 31, 66, 0.32);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 50%),
    linear-gradient(145deg, #1b54f0, #0a2d81);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 18px -10px rgba(31, 94, 255, 0.8);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand-copy small {
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 4px;
}

.main-nav a {
  position: relative;
  color: #53617a;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.header-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 11.5px;
  white-space: nowrap;
}

.header-time .icon {
  width: 14px;
  height: 14px;
}

.read-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
}

.read-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #18b8d8);
  border-radius: 0 2px 2px 0;
  transition: width 0.08s linear;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn-sm {
  min-height: 36px;
  padding: 0 15px;
  font-size: 12.5px;
}

.btn-lg {
  min-height: 48px;
  padding: 0 22px;
  font-size: 14.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #2567ff 0%, #1147d6 100%);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(31, 94, 255, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -14px rgba(31, 94, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line-strong);
  color: var(--ink-2);
}

.btn-ghost:hover {
  background: #fff;
  border-color: #c2cde0;
  transform: translateY(-1px);
}

.btn-light {
  background: #fff;
  color: #0c1730;
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.4);
}

.btn-light:hover {
  transform: translateY(-1px);
  background: #f2f6ff;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 62px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 94, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 94, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 76% 72% at 72% 42%, #000 24%, transparent 76%);
  mask-image: radial-gradient(ellipse 76% 72% at 72% 42%, #000 24%, transparent 76%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -210px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(6, 167, 201, 0.17), transparent 64%);
  filter: blur(8px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.94fr);
  align-items: center;
  gap: 64px;
}

.hero-copy > * {
  animation: rise 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy > :nth-child(1) { animation-delay: 0.02s; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.1s; }
.hero-copy > :nth-child(4) { animation-delay: 0.14s; }
.hero-copy > :nth-child(5) { animation-delay: 0.18s; }
.hero-copy > :nth-child(6) { animation-delay: 0.22s; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 94, 255, 0.12);
}

.hero h1 {
  margin: 15px 0 20px;
  color: var(--ink);
  font-size: clamp(52px, 6.2vw, 82px);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
}

.gradient-text {
  padding-bottom: 0.08em;
  background: linear-gradient(105deg, #194fE6 4%, #1f5eff 36%, #0aa6cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .h1-subline {
  font-size: 0.9em;
  white-space: nowrap;
}

.hero-sub {
  max-width: 540px;
  color: #58667f;
  font-size: 16.5px;
  line-height: 1.9;
}

.hero-sub strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #dde5f2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #4e5d76;
  font-size: 11.5px;
  font-weight: 550;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-chips .icon {
  width: 13px;
  height: 13px;
  color: #7f8da4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-footnote {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 16px;
  color: #8b97aa;
  font-size: 11.5px;
  line-height: 1.7;
}

.hero-footnote .icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
}

.hero-visual {
  position: relative;
  animation: rise 0.85s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.route-card {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(6, 167, 201, 0.2), transparent 60%),
    linear-gradient(150deg, #0d1b37 0%, #0a152a 62%, #081222 100%);
  box-shadow:
    0 34px 70px -28px rgba(8, 20, 44, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff;
}

.route-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.route-card > * {
  position: relative;
  z-index: 1;
}

.route-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #91a4c4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.route-tag {
  padding: 3px 7px;
  border: 1px solid rgba(245, 194, 107, 0.28);
  border-radius: 999px;
  background: rgba(245, 194, 107, 0.08);
  color: #f5c26b;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}

.route-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 2px;
}

.route-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #a9c0ff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.route-icon .icon {
  width: 18px;
  height: 18px;
}

.route-icon--local { color: #8dafff; }
.route-icon--hop { color: #62e3f4; border-color: rgba(98, 227, 244, 0.18); background: rgba(98, 227, 244, 0.07); }
.route-icon--key { color: #ffc45c; border-color: rgba(255, 196, 92, 0.22); background: rgba(255, 196, 92, 0.08); }
.route-icon--target { color: #6ee7b7; border-color: rgba(110, 231, 183, 0.18); background: rgba(110, 231, 183, 0.07); }

.route-copy .route-name {
  color: #f4f7ff;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.route-copy p {
  margin-top: 2px;
  color: #8ea1bf;
  font-size: 10.5px;
  line-height: 1.5;
}

.route-copy em {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(98, 227, 244, 0.1);
  color: #62e3f4;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 600;
  vertical-align: 2px;
  letter-spacing: 0.02em;
}

.route-copy .em-amber {
  background: rgba(255, 196, 92, 0.12);
  color: #ffc45c;
}

.route-link {
  width: 1px;
  height: 13px;
  margin-left: 21px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04));
}

.route-step--key {
  margin: 2px -8px;
  padding: 10px 8px;
  border: 1px solid rgba(245, 194, 107, 0.18);
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(245, 194, 107, 0.075), rgba(245, 194, 107, 0.02));
}

.route-pulse {
  width: 7px;
  height: 7px;
  margin-left: auto;
  margin-right: 3px;
  border-radius: 50%;
  background: #f5c26b;
  box-shadow: 0 0 0 0 rgba(245, 194, 107, 0.55);
  animation: routePulse 2.4s infinite;
}

.route-card-foot {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #eab95e;
  font-size: 10.5px;
  line-height: 1.65;
}

.route-card-foot .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
  animation: rise 0.9s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-stats div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border: 1px solid rgba(218, 227, 240, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.92);
}

.hero-stats strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-stats span {
  color: var(--muted-2);
  font-size: 10px;
}

/* ---------- journey strip ---------- */

.journey {
  border-top: 1px solid rgba(222, 230, 242, 0.9);
  border-bottom: 1px solid rgba(222, 230, 242, 0.9);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
}

.journey-inner {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 54px;
  overflow-x: auto;
  scrollbar-width: none;
}

.journey-inner::-webkit-scrollbar {
  display: none;
}

.journey-item {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  flex: none;
  padding: 6px 9px;
  border-radius: 8px;
  color: #4d5b73;
  transition: background 0.18s ease, color 0.18s ease;
}

.journey-item:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.journey-item b {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.journey-item span {
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.journey-arrow {
  flex: none;
  display: grid;
  place-items: center;
  color: #c3ccda;
}

.journey-arrow .icon {
  width: 12px;
  height: 12px;
}

/* ---------- page shell + toc ---------- */

.page-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  align-items: start;
  gap: 56px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 24px 96px;
}

.toc {
  position: sticky;
  top: 96px;
  min-width: 0;
}

.toc-card {
  padding: 17px 15px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #7d899e;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.toc-head b {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.toc-progress {
  height: 3px;
  margin: 9px 0 11px;
  overflow: hidden;
  border-radius: 3px;
  background: #edf1f8;
}

.toc-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), #18b8d8);
  transition: width 0.12s linear;
}

.toc-nav {
  display: grid;
  gap: 2px;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #526079;
  font-size: 12.3px;
  line-height: 1.4;
  transition: background 0.16s ease, color 0.16s ease;
}

.toc-link span {
  width: 15px;
  flex: none;
  color: #a0abbd;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.toc-link:hover {
  background: #f5f8fd;
  color: var(--ink);
}

.toc-link.is-active {
  background: var(--blue-soft);
  box-shadow: inset 2px 0 0 var(--blue);
  color: var(--blue-deep);
  font-weight: 650;
}

.toc-link.is-active span {
  color: var(--blue);
}

.toc-help {
  position: relative;
  overflow: hidden;
  margin-top: 13px;
  padding: 15px;
  border-radius: 16px;
  background:
    radial-gradient(240px 140px at 100% 0%, rgba(6, 167, 201, 0.24), transparent 70%),
    linear-gradient(145deg, #0e2450, #0a1830);
  color: #fff;
  box-shadow: 0 18px 36px -24px rgba(8, 22, 52, 0.6);
}

.toc-help-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #8fb0ff;
}

.toc-help-icon .icon {
  width: 14px;
  height: 14px;
}

.toc-help strong {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
}

.toc-help p {
  margin-top: 3px;
  color: #a8bbd8;
  font-size: 10.5px;
  line-height: 1.65;
}

.toc-help a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 9px;
  color: #f5c26b;
  font-size: 10.5px;
  font-weight: 600;
}

.toc-help a .icon {
  width: 11px;
  height: 11px;
}

/* ---------- chapters ---------- */

.content {
  min-width: 0;
}

.chapter,
.step,
.section-block[id] {
  scroll-margin-top: 94px;
}

.chapter {
  padding: 8px 0 68px;
}

.chapter + .chapter {
  margin-top: 12px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.chapter-head {
  margin-bottom: 34px;
}

.chapter-kicker {
  margin-bottom: 9px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.chapter h2 {
  margin-bottom: 11px;
  color: var(--ink);
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.23;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.chapter-lead {
  max-width: 740px;
  color: #5c6a83;
  font-size: 15.2px;
  line-height: 1.9;
}

.chapter-lead code {
  white-space: normal;
}

.focus-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border-left: 4px solid #e5a12f;
  border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, #fff7e4 0%, #fffdf7 100%);
  box-shadow: 0 10px 26px -24px rgba(150, 100, 0, 0.45);
}

.focus-label {
  flex: none;
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e5a12f;
  color: #fff;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.focus-banner p {
  color: #5b3a00;
  font-size: 15.2px;
  font-weight: 700;
  line-height: 1.85;
}

.section-block {
  margin: 36px 0;
}

.block-head {
  margin-bottom: 15px;
}

.block-head h3,
.section-block > h3 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.42;
  letter-spacing: -0.02em;
}

.block-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.mini-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- tables ---------- */

.table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(12, 25, 50, 0.03);
  scrollbar-width: thin;
}

.table-wrap + .table-wrap {
  margin-top: 14px;
}

.table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: left;
}

.table-wrap th {
  padding: 10px 14px;
  border-bottom: 1px solid #dfe7f4;
  background: #f1f5fc;
  color: #31456a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.5;
  white-space: nowrap;
}

.table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f8;
  color: #3d4c64;
  font-size: 13.2px;
  line-height: 1.7;
  vertical-align: top;
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap tbody tr:hover td {
  background: #fbfdff;
}

.table-wrap td strong {
  color: var(--ink);
  font-weight: 650;
}

.table-wrap td code {
  font-size: 11.5px;
}

.table-wrap a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(31, 94, 255, 0.26);
  text-underline-offset: 3px;
}

.table-wrap a:hover {
  text-decoration-color: var(--blue);
}

.table-wrap--compact table {
  min-width: 420px;
}

.table-links table {
  min-width: 720px;
}

.link-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-cell a {
  flex: 1;
  min-width: 0;
  color: #1946a3;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.link-cell a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(31, 94, 255, 0.3);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 5px 8px;
  border: 1px solid #dfe6f1;
  border-radius: 7px;
  background: #f8faff;
  color: #5d6c85;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.copy-btn .icon {
  width: 11px;
  height: 11px;
}

.copy-btn:hover {
  border-color: #c8d8f5;
  background: #eef4ff;
  color: var(--blue);
}

.copy-btn.is-copied {
  border-color: #b9e9d8;
  background: var(--green-soft);
  color: var(--green);
}

/* ---------- callouts ---------- */

.callout {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 16px 0;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f6f8fc;
  color: #3c4b64;
  font-size: 13.4px;
  line-height: 1.82;
}

.callout-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
}

.callout-icon .icon {
  width: 17px;
  height: 17px;
}

.callout-body {
  min-width: 0;
}

.callout-title {
  margin: 0 0 3px !important;
  color: inherit;
  font-size: 12.4px;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

.callout p {
  margin: 0;
}

.callout p + p {
  margin-top: 5px;
}

.callout ul,
.callout ol {
  margin: 5px 0 0;
  padding-left: 18px;
}

.callout li + li {
  margin-top: 3px;
}

.callout code {
  font-size: 0.88em;
}

.callout--success {
  border-color: #cbeade;
  background: #effaf5;
  color: #245847;
}

.callout--success .callout-icon,
.callout--success .callout-title {
  color: #07845b;
}

.callout--warn {
  border-color: #f2dfb8;
  background: #fff9ed;
  color: #6f5421;
}

.callout--warn .callout-icon,
.callout--warn .callout-title {
  color: #a96400;
}

.callout--danger {
  border-color: #f5d2d7;
  background: #fff3f4;
  color: #6f303a;
}

.callout--danger .callout-icon,
.callout--danger .callout-title {
  color: #bd2538;
}

.callout--key {
  border-color: #d3e1ff;
  background: #eef4ff;
  color: #29476f;
}

.callout--key .callout-icon,
.callout--key .callout-title {
  color: #1b4fb8;
}

.callout--neutral {
  border-color: #e2e9f5;
  background: #f6f8fc;
  color: #4b5a72;
}

.callout--neutral .callout-icon,
.callout--neutral .callout-title {
  color: #5c7093;
}

.step-body > .callout:first-child {
  margin-top: 0;
}

.referral-card {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid #d9e4f8;
  border-radius: 16px;
  background: linear-gradient(135deg, #f2f7ff, #fff);
  box-shadow: 0 12px 28px -26px rgba(20, 50, 110, 0.35);
}

.referral-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.referral-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e9f2ff;
  color: var(--blue);
}

.referral-icon .icon {
  width: 17px;
  height: 17px;
}

.referral-kicker {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.referral-head h3 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.4;
}

.referral-text {
  margin: 10px 0 12px;
  color: #5f6e86;
  font-size: 12.8px;
  line-height: 1.75;
}

.referral-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #dbe6f8;
  border-radius: 10px;
  background: #fff;
}

.referral-link a {
  flex: 1;
  min-width: 0;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11.4px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.referral-link a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.referral-disclaimer {
  margin-top: 11px;
  padding: 8px 10px;
  border-left: 3px solid #e5a12f;
  border-radius: 0 7px 7px 0;
  background: #fff8e8;
  color: #6f5421;
  font-size: 11.4px;
  line-height: 1.7;
}

.referral-disclaimer strong {
  color: #9a5c00;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  min-width: 0;
  gap: 15px;
  margin-top: 12px;
}

.step {
  position: relative;
  min-width: 0;
  padding: 23px 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(12, 25, 50, 0.025);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--blue), #19b8d6);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.step:hover {
  border-color: #d5e1f4;
  box-shadow: var(--shadow-md);
}

.step:hover::before {
  opacity: 1;
}

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

.step-index {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #d6e3ff;
  border-radius: 12px;
  background: linear-gradient(145deg, #f2f6ff, #e5eeff);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.step-heading {
  min-width: 0;
}

.step-label {
  display: block;
  margin-bottom: 2px;
  color: #939eb1;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.step h3 {
  color: var(--ink);
  font-size: 19.5px;
  font-weight: 750;
  line-height: 1.38;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.step-body {
  min-width: 0;
  color: #35435b;
  font-size: 14.3px;
  line-height: 1.9;
}

.step-body > p,
.step-body > ul,
.step-body > ol {
  max-width: 740px;
}

.step-body p {
  margin: 0 0 8px;
}

.step-body p:last-child {
  margin-bottom: 0;
}

.step-body strong {
  color: var(--ink);
  font-weight: 650;
}

.step-body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(31, 94, 255, 0.28);
  text-underline-offset: 3px;
}

.step-body a:hover {
  text-decoration-color: var(--blue);
}

.step-body ul,
.step-body ol {
  margin: 8px 0 10px;
  padding-left: 19px;
}

.step-body li {
  margin: 3px 0;
}

.step-body li::marker {
  color: #7c9df0;
}

.step-body code,
.chapter-lead code,
.material-meta code {
  padding: 1px 5px;
  border: 1px solid #e2e9f4;
  border-radius: 5px;
  background: #f4f7fc;
  color: #17458f;
  font-family: var(--mono);
  font-size: 0.85em;
  overflow-wrap: anywhere;
}

kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 5px;
  border: 1px solid #d5deeb;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
  color: #3d4c64;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 1px 0 #edf1f7;
}

.inline-note {
  padding: 6px 10px;
  border-left: 3px solid #e5a12f;
  border-radius: 0 6px 6px 0;
  background: #fff9ed;
  color: #7a5417;
  font-size: 13px;
}

.latency-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0 15px;
}

.latency-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #5f6d84;
  font-size: 10.5px;
}

.latency-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.latency-dot--fast { background: #11a36e; box-shadow: 0 0 0 3px rgba(17, 163, 110, 0.1); }
.latency-dot--ok { background: #e0a019; box-shadow: 0 0 0 3px rgba(224, 160, 25, 0.1); }
.latency-dot--bad { background: #d33a4c; box-shadow: 0 0 0 3px rgba(211, 58, 76, 0.1); }

/* ---------- screenshots ---------- */

.shot {
  margin: 18px 0 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 36px -26px rgba(13, 34, 74, 0.3);
}

.shot-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #0b1528;
  line-height: 0;
  cursor: zoom-in;
}

.shot-frame img {
  width: 100%;
  height: auto;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.shot-frame:hover img {
  transform: scale(1.008);
}

.shot-zoom {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 17, 34, 0.78);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  backdrop-filter: blur(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.shot-zoom .icon {
  width: 11px;
  height: 11px;
}

.shot-frame:hover .shot-zoom,
.shot-frame:focus-visible .shot-zoom {
  opacity: 1;
  transform: translateY(0);
}

.shot figcaption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 9px 3px 2px;
  color: #66748b;
  font-size: 11.7px;
  line-height: 1.6;
}

.fig-label {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.fig-note {
  margin-left: auto;
  color: #98a4b7;
  font-size: 10px;
}

.shot--medium {
  max-width: 720px;
}

.shot--narrow {
  max-width: 580px;
  margin-right: auto;
  margin-left: auto;
}

.shot-stack {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.shot-stack .shot {
  margin-top: 0;
}

.ip-check-list {
  display: grid;
  gap: 16px;
  margin: 18px 0 20px;
}

.ip-check {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #f9fbff, #fff);
}

.ip-check-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ip-check-num {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #d6e3ff;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.ip-check h4 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.ip-check-head p {
  margin-top: 2px;
  color: #708097;
  font-size: 12.4px;
  line-height: 1.7;
}

.ip-check-site {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.ip-check-site > span {
  flex: none;
  color: #96a2b5;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.ip-check-site a {
  flex: 1;
  min-width: 0;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.ip-check-site a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ip-check-criteria {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.ip-check-criteria li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e8eef8;
  border-radius: 8px;
  background: #fff;
  color: #3e4d65;
  font-size: 13px;
  line-height: 1.65;
}

.ip-check-criteria strong {
  color: var(--ink);
  font-weight: 700;
}

.criteria-check {
  width: 18px;
  height: 18px;
  flex: none;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.criteria-check .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.5;
}

.ip-check .callout {
  margin: 10px 0;
}

.ip-check .shot {
  margin-right: auto;
  margin-left: auto;
}

.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 13px;
  margin-top: 18px;
}

.shot-grid .shot {
  margin-top: 0;
}

/* ---------- principle flow ---------- */

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1.13fr) 28px minmax(0, 1fr);
  align-items: stretch;
  margin: 24px 0 18px;
}

.flow-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 122px;
  padding: 16px 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 26px -24px rgba(17, 39, 82, 0.35);
}

.flow-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 7px;
  border-radius: 10px;
  background: #eef3ff;
  color: var(--blue);
}

.flow-icon .icon {
  width: 17px;
  height: 17px;
}

.flow-index {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: #eef4ff;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.flow-node strong {
  color: var(--ink);
  font-size: 13.3px;
  font-weight: 700;
  line-height: 1.4;
}

.flow-node small {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10.2px;
  line-height: 1.5;
}

.flow-node--hop {
  border-color: #d8e5ff;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.flow-node--hop .flow-index {
  background: #e7f0ff;
  color: #1552c9;
}

.flow-node--key {
  padding-top: 25px;
  border-color: #f0d397;
  background: linear-gradient(180deg, #fffaf0, #fff);
  box-shadow: 0 14px 30px -24px rgba(190, 122, 0, 0.45);
}

.flow-node--key .flow-index {
  background: #fff1d0;
  color: #9a5c00;
}

.flow-node--key strong {
  color: #7b4b00;
}

.flow-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e9a21f;
  color: #fff;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 4px 10px -4px rgba(170, 105, 0, 0.5);
}

.flow-node--target {
  border-color: #c8e9de;
  background: linear-gradient(180deg, #f4fdf9, #fff);
}

.flow-node--target .flow-icon {
  background: #e9f9f2;
  color: #0b8f63;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: #b9c5d8;
}

.flow-arrow .icon {
  width: 16px;
  height: 16px;
}

.principle-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 15px 0 17px;
}

.principle-notes p {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.64);
  color: #4f5d75;
  font-size: 12.2px;
  line-height: 1.7;
}

.note-dot {
  width: 20px;
  height: 20px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
}

.note-dot--blue { background: #eaf1ff; color: var(--blue); }
.note-dot--amber { background: #fff1d5; color: #9a5c00; }

/* ---------- materials ---------- */

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

.material-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(12, 25, 50, 0.025);
}

.material-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.material-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
}

.material-icon .icon {
  width: 17px;
  height: 17px;
}

.material-icon--blue { background: #edf3ff; color: #2058d8; }
.material-icon--cyan { background: #e9f9fc; color: #0786a7; }
.material-icon--amber { background: #fff6e4; color: #ac6b00; }

.material-num {
  color: #b4becd;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.material-card h4 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.material-card > p {
  margin-top: 4px;
  color: #68758b;
  font-size: 11.7px;
  line-height: 1.7;
}

.material-meta {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed #e5ebf5;
}

.material-meta span {
  display: block;
  margin-bottom: 3px;
  color: #9aa6b8;
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.material-meta code,
.material-meta strong {
  display: block;
  color: #3b4b64;
  font-size: 10.3px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* ---------- ui map / verify / layer flow ---------- */

.ui-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.ui-map-item {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fbff;
}

.ui-map-item span {
  display: block;
  margin-bottom: 4px;
  color: #8b98ab;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.ui-map-item strong {
  display: block;
  color: var(--ink-2);
  font-size: 12.4px;
  line-height: 1.45;
}

.ui-map-item small {
  display: block;
  margin-top: 2px;
  color: #7f8ca1;
  font-size: 10.2px;
  line-height: 1.55;
}

.verify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 14px 0;
}

.verify-grid div {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f9fbff;
}

.verify-grid span {
  display: block;
  margin-bottom: 3px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.verify-grid strong {
  display: block;
  color: var(--ink);
  font-size: 13.2px;
  line-height: 1.4;
}

.verify-grid small {
  display: block;
  margin-top: 3px;
  color: #7a879b;
  font-size: 10.5px;
  line-height: 1.6;
}

.layer-flow {
  display: flex;
  align-items: stretch;
  gap: 7px;
  margin: 16px 0 24px;
}

.layer {
  flex: 1;
  min-width: 0;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.layer-label {
  display: block;
  margin-bottom: 4px;
  color: #97a3b5;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.layer strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.layer small {
  display: block;
  margin-top: 2px;
  color: #7b889d;
  font-size: 10px;
  line-height: 1.5;
}

.layer--accent {
  border-color: #d2e1ff;
  background: #f3f7ff;
}

.layer--accent strong { color: #1746a2; }
.layer--target { border-color: #cbeade; background: #f3fcf8; }
.layer--target strong { color: #0a7652; }

.layer-arrow {
  display: grid;
  place-items: center;
  color: #bcc7d8;
}

.layer-arrow .icon {
  width: 14px;
  height: 14px;
}

/* ---------- split IP line ---------- */

.split-line {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin-top: 14px;
  padding: 15px;
  overflow-x: auto;
  border-radius: 15px;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(6, 167, 201, 0.2), transparent 65%),
    #0c1730;
  scrollbar-width: thin;
}

.split-part {
  position: relative;
  flex: 1;
  min-width: 115px;
  padding: 9px 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
}

.split-part--1 { box-shadow: inset 0 2px 0 #5b8cff; }
.split-part--2 { box-shadow: inset 0 2px 0 #22d3ee; }
.split-part--3 { box-shadow: inset 0 2px 0 #fbbf24; }
.split-part--4 { box-shadow: inset 0 2px 0 #34d399; }

.split-num {
  position: absolute;
  top: 6px;
  right: 7px;
  color: #869bbd;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
}

.split-part code {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 11.5px;
  line-height: 1.5;
  white-space: nowrap;
}

.split-part small {
  display: block;
  margin-top: 2px;
  color: #8fa3c2;
  font-size: 9.5px;
}

.split-colon {
  align-self: center;
  color: #5e7394;
  font-family: var(--mono);
  font-size: 16px;
}

/* ---------- tun panel ---------- */

.tun-panel {
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(12, 25, 50, 0.03);
}

.tun-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid #edf1f8;
}

.tun-row:last-child {
  border-bottom: 0;
}

.tun-switch {
  position: relative;
  width: 42px;
  height: 23px;
  flex: none;
  border-radius: 999px;
  background: #16a36f;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.tun-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tun-row > div {
  min-width: 0;
}

.tun-row strong {
  display: block;
  color: var(--ink);
  font-size: 12.8px;
  line-height: 1.4;
}

.tun-row small {
  display: block;
  margin-top: 1px;
  color: #7d8a9e;
  font-size: 10.5px;
  line-height: 1.55;
}

.tun-status,
.tun-route {
  margin-left: auto;
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tun-status {
  background: var(--green-soft);
  color: var(--green);
}

.tun-route {
  background: #fff5e2;
  color: #9c6000;
}

.tun-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: #eef3ff;
  color: var(--blue);
}

.tun-icon .icon {
  width: 16px;
  height: 16px;
}

/* ---------- login order ---------- */

.order-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f9fbff;
}

.order-step {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.order-step > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 6px 12px -7px rgba(31, 94, 255, 0.7);
}

.order-step--accent > span {
  background: #e59a12;
  box-shadow: 0 6px 12px -7px rgba(190, 120, 0, 0.7);
}

.order-step strong {
  display: block;
  color: var(--ink);
  font-size: 12.8px;
  line-height: 1.4;
}

.order-step small {
  display: block;
  margin-top: 1px;
  color: #7e8b9f;
  font-size: 10.2px;
  line-height: 1.5;
}

.order-arrow {
  flex: none;
  display: grid;
  place-items: center;
  color: #bcc7d8;
}

.order-arrow .icon {
  width: 14px;
  height: 14px;
}

/* ---------- FAQ ---------- */

.faq-list {
  margin-top: 4px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 3px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

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

.faq-num {
  width: 28px;
  flex: none;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.faq-q {
  flex: 1;
  color: var(--ink-2);
  font-size: 14.2px;
  font-weight: 600;
  line-height: 1.55;
  transition: color 0.18s ease;
}

.faq-item summary:hover .faq-q {
  color: var(--blue);
}

.faq-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f8faff;
  color: #8c99ad;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.faq-icon .icon {
  width: 13px;
  height: 13px;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.faq-a {
  padding: 0 30px 18px 41px;
  color: #58667d;
  font-size: 13.2px;
  line-height: 1.9;
}

.faq-a p {
  margin: 0 0 7px;
}

.faq-a ul {
  margin: 5px 0 8px;
  padding-left: 17px;
}

.faq-a li + li {
  margin-top: 3px;
}

.faq-a a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(31, 94, 255, 0.26);
  text-underline-offset: 3px;
}

.faq-a code {
  padding: 1px 4px;
  border: 1px solid #e2e9f4;
  border-radius: 4px;
  background: #f4f7fc;
  color: #17458f;
  font-family: var(--mono);
  font-size: 0.85em;
}

.faq-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbff;
}

.faq-footer p {
  color: #6c7a90;
  font-size: 12px;
  line-height: 1.7;
}

.faq-footer .btn {
  flex: none;
  min-height: 34px;
}

/* ---------- daily checklist ---------- */

.daily-panel {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.daily-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.daily-head h3 {
  color: var(--ink);
  font-size: 19px;
  font-weight: 750;
  line-height: 1.4;
}

.daily-head p {
  margin-top: 2px;
  color: #7d8a9e;
  font-size: 11.5px;
}

.check-score {
  display: flex;
  align-items: baseline;
  gap: 3px;
  flex: none;
}

.check-score strong {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.check-score span {
  color: #9aa6b8;
  font-family: var(--mono);
  font-size: 10px;
}

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 17px 0;
}

.check-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcff;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.check-item:hover {
  border-color: #cfdcf1;
  background: #f8faff;
}

.check-item input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  width: 20px;
  height: 20px;
  flex: none;
  display: grid;
  place-items: center;
  border: 2px solid #cbd6e6;
  border-radius: 6px;
  background: #fff;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.check-box .icon {
  width: 11px;
  height: 11px;
  color: #fff;
  opacity: 0;
  stroke-width: 2.6;
}

.check-item input:focus-visible + .check-box {
  outline: 3px solid rgba(31, 94, 255, 0.28);
  outline-offset: 2px;
}

.check-copy {
  min-width: 0;
}

.check-copy strong {
  display: block;
  color: #34435c;
  font-size: 12.2px;
  font-weight: 600;
  line-height: 1.45;
  transition: color 0.18s ease;
}

.check-copy small {
  display: block;
  margin-top: 1px;
  color: #95a1b3;
  font-size: 10px;
  line-height: 1.5;
}

.check-item.is-checked {
  border-color: #c3eadc;
  background: #f0fbf6;
}

.check-item.is-checked .check-box {
  border-color: var(--green);
  background: var(--green);
}

.check-item.is-checked .check-box .icon {
  opacity: 1;
}

.check-item.is-checked .check-copy strong {
  color: #16684e;
}

.check-item.is-checked .check-copy small {
  color: #6e9889;
}

.daily-footer {
  display: flex;
  align-items: center;
  gap: 13px;
}

.daily-bar {
  flex: 1;
  height: 5px;
  overflow: hidden;
  border-radius: 4px;
  background: #edf2f8;
}

.daily-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #15a574, #4ed4a5);
  transition: width 0.25s ease;
}

.text-btn {
  flex: none;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px dashed #c8d2e2;
  background: none;
  color: #8b97aa;
  font-size: 10.5px;
  cursor: pointer;
}

.text-btn:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.help-card {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: 23px;
  border-radius: var(--radius);
  background:
    radial-gradient(480px 220px at 100% 0%, rgba(6, 167, 201, 0.23), transparent 65%),
    linear-gradient(145deg, #0d1c39, #091426);
  color: #fff;
  box-shadow: 0 24px 50px -30px rgba(8, 20, 44, 0.65);
}

.help-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.help-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.help-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: none;
  border: 1px solid rgba(245, 194, 107, 0.24);
  border-radius: 10px;
  background: rgba(245, 194, 107, 0.1);
  color: #f5c26b;
}

.help-icon .icon {
  width: 17px;
  height: 17px;
}

.help-head h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.help-head p {
  margin-top: 2px;
  color: #a7b9d5;
  font-size: 11.5px;
  line-height: 1.7;
}

.help-sub {
  margin: 17px 0 7px;
  color: #c7d4e7;
  font-size: 11.5px;
}

.help-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.help-list li > span {
  color: #f5c26b;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  line-height: 2;
}

.help-list strong {
  display: block;
  color: #edf3ff;
  font-size: 11.8px;
  font-weight: 600;
  line-height: 1.5;
}

.help-list small {
  display: block;
  margin-top: 1px;
  color: #8fa3c2;
  font-size: 10px;
  line-height: 1.55;
}

.help-card .btn {
  margin-top: 15px;
  min-height: 40px;
  padding: 0 15px;
  font-size: 12px;
}

.help-card .btn.is-copied {
  background: #c9f6e4;
  color: #075b40;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 42px 0 19px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.72fr 1fr;
  gap: 42px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.footer-brand > p {
  max-width: 350px;
  color: #7b889d;
  font-size: 11.5px;
  line-height: 1.8;
}

.footer-col h4 {
  margin-bottom: 9px;
  color: #8b98ac;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  width: fit-content;
  margin: 5px 0;
  color: #596880;
  font-size: 12px;
  line-height: 1.6;
  transition: color 0.16s ease;
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-col p {
  margin: 5px 0;
  color: #7b889d;
  font-size: 11.5px;
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #edf1f8;
  color: #9aa6b8;
  font-size: 10.5px;
}

/* ---------- lightbox + back top ---------- */

.lightbox {
  max-width: min(1180px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.lightbox::backdrop {
  background: rgba(4, 10, 23, 0.86);
  backdrop-filter: blur(8px);
}

.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 82vh;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
  color: #c7d5ea;
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.18s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: #0c1730;
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(8, 20, 44, 0.6);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.back-top .icon {
  width: 17px;
  height: 17px;
}

.back-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-top:hover {
  background: var(--blue);
}

/* ---------- animations ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes routePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 194, 107, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(245, 194, 107, 0); }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .hero-inner {
    gap: 42px;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  }

  .page-shell {
    grid-template-columns: 208px minmax(0, 1fr);
    gap: 40px;
  }

  .header-inner {
    gap: 26px;
  }

  .main-nav {
    gap: 20px;
  }
}

@media (max-width: 980px) {
  .hero {
    padding: 64px 0 48px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-visual {
    width: 100%;
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
  }

  .hero-sub {
    max-width: 620px;
  }

  .page-shell {
    display: block;
    padding-top: 34px;
  }

  .toc {
    position: sticky;
    top: 72px;
    z-index: 60;
    margin: 0 0 22px;
    padding: 6px 0;
    background: linear-gradient(180deg, rgba(246, 248, 252, 0.98), rgba(246, 248, 252, 0.9));
    backdrop-filter: blur(12px);
  }

  .toc-card {
    position: relative;
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 24px -20px rgba(12, 31, 70, 0.4);
  }

  .toc-card::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 8px;
    bottom: 6px;
    width: 24px;
    border-radius: 0 6px 6px 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 72%);
    pointer-events: none;
  }

  .toc-head {
    display: none;
  }

  .toc-head b,
  .toc-progress {
    display: none;
  }

  .toc-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
  }

  .toc-nav::-webkit-scrollbar {
    display: none;
  }

  .toc-link {
    flex: none;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f4f7fd;
    white-space: nowrap;
    font-size: 10.2px;
  }

  .toc-link span {
    width: auto;
    font-size: 8px;
  }

  .toc-link.is-active {
    border-color: #cfdfff;
    background: var(--blue-soft);
    box-shadow: none;
  }

  .toc-help {
    display: none;
  }

  .chapter,
  .step,
  .section-block[id] {
    scroll-margin-top: 126px;
  }

  .chapter {
    padding-bottom: 54px;
  }

  .chapter + .chapter {
    padding-top: 50px;
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .header-time {
    display: none;
  }

  .header-inner {
    min-height: 66px;
  }

  .hero h1 {
    font-size: clamp(50px, 8.6vw, 70px);
  }

  .chapter h2 {
    font-size: 32px;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 48px 0 38px;
  }

  .hero h1 {
    margin: 12px 0 16px;
    font-size: clamp(45px, 11vw, 58px);
  }

  .hero-sub {
    font-size: 15.2px;
    line-height: 1.85;
  }

  .hero-chips {
    margin-top: 18px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-visual {
    max-width: 100%;
  }

  .hero-stats div {
    padding: 8px 6px;
  }

  .journey-inner {
    min-height: 48px;
  }

  .page-shell {
    padding: 28px 20px 70px;
  }

  .toc {
    top: 68px;
  }

  .chapter h2 {
    font-size: 29px;
  }

  .chapter-lead {
    font-size: 14.2px;
  }

  .block-head h3,
  .section-block > h3 {
    font-size: 18.5px;
  }

  .step {
    padding: 19px 17px;
    border-radius: 16px;
  }

  .step::before {
    top: 20px;
    bottom: 20px;
  }

  .step-head {
    gap: 11px;
  }

  .step-index {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 12px;
  }

  .step h3 {
    font-size: 17.5px;
  }

  .step-body {
    font-size: 13.8px;
  }

  .material-grid,
  .ui-map,
  .verify-grid,
  .principle-notes,
  .checklist {
    grid-template-columns: 1fr;
  }

  .flow {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 22px 0 16px;
  }

  .flow-node {
    min-height: 0;
    padding: 14px 12px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 10px;
  }

  .flow-node--key {
    padding: 22px 12px 14px;
  }

  .flow-icon,
  .flow-index {
    margin: 0;
  }

  .flow-node strong {
    font-size: 13.5px;
  }

  .flow-node small {
    margin: 0 0 0 auto;
    text-align: right;
  }

  .flow-arrow {
    height: 24px;
    transform: rotate(90deg);
  }

  .layer-flow {
    flex-direction: column;
    gap: 0;
  }

  .layer {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    padding: 10px 12px;
  }

  .layer-label {
    width: 43px;
    flex: none;
    margin: 0;
  }

  .layer strong {
    flex: none;
  }

  .layer small {
    margin: 0 0 0 auto;
    text-align: right;
  }

  .layer-arrow {
    height: 20px;
    transform: rotate(90deg);
  }

  .shot {
    padding: 6px;
    border-radius: 13px;
  }

  .shot-grid {
    grid-template-columns: 1fr;
  }

  .shot figcaption {
    padding: 8px 2px 2px;
    font-size: 11px;
  }

  .fig-note {
    display: none;
  }

  .order-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }

  .order-step {
    flex: none;
  }

  .order-arrow {
    height: 16px;
    transform: rotate(90deg);
  }

  .split-line {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 12px;
  }

  .split-colon {
    display: none;
  }

  .split-part {
    min-width: 0;
  }

  .table-wrap table,
  .table-wrap--compact table {
    min-width: 0;
  }

  .table-links table {
    min-width: 680px;
  }

  .table-wrap th {
    padding: 8px 10px;
    font-size: 10.4px;
  }

  .table-wrap td {
    padding: 9px 10px;
    font-size: 12.1px;
    line-height: 1.65;
  }

  .daily-panel {
    padding: 17px;
  }

  .daily-head h3 {
    font-size: 17.5px;
  }

  .daily-footer {
    flex-wrap: wrap;
  }

  .daily-bar {
    flex-basis: 100%;
  }

  .help-card {
    padding: 19px;
  }

  .faq-q {
    font-size: 13.4px;
  }

  .faq-a {
    padding: 0 3px 16px 38px;
    font-size: 12.8px;
  }

  .faq-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
  }

  .back-top {
    right: 15px;
    bottom: 15px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    gap: 10px;
  }

  .hero h1 {
    font-size: clamp(42px, 13.2vw, 52px);
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .route-card {
    padding: 17px 14px 14px;
    border-radius: 20px;
  }

  .route-icon {
    width: 36px;
    height: 36px;
  }

  .route-copy .route-name {
    font-size: 12.8px;
  }

  .hero-stats {
    gap: 6px;
  }

  .hero-stats strong {
    font-size: 17px;
  }

  .hero-stats span {
    font-size: 9px;
  }

  .page-shell {
    padding: 24px 16px 62px;
  }

  .toc-nav {
    gap: 5px;
  }

  .toc-link {
    padding: 5px 8px;
    font-size: 10.2px;
  }

  .chapter h2 {
    font-size: 27px;
  }

  .step {
    padding: 17px 14px;
  }

  .step-head {
    align-items: flex-start;
  }

  .step-body {
    font-size: 13.6px;
  }

  .callout {
    padding: 11px 12px;
    font-size: 12.8px;
  }

  .table-wrap th {
    padding: 9px 11px;
  }

  .table-wrap td {
    padding: 10px 11px;
    font-size: 12.6px;
  }

  .copy-btn span {
    display: none;
  }

  .copy-btn {
    width: 28px;
    height: 28px;
    justify-content: center;
    padding: 0;
  }

  .split-line {
    gap: 3px;
    padding: 10px;
  }

  .split-part {
    min-width: 98px;
    padding: 8px 7px;
  }

  .split-part code {
    font-size: 10px;
  }

  .help-card {
    padding: 17px;
  }

  .help-head h3 {
    font-size: 16.5px;
  }

  .help-card .btn {
    width: 100%;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }
}

@media (hover: none) {
  .shot-zoom {
    top: 8px;
    right: 8px;
    bottom: auto;
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- print ---------- */

@media print {
  body {
    background: #fff;
  }

  body::before,
  .site-header,
  .journey,
  .toc,
  .hero-visual,
  .hero-actions,
  .hero-footnote,
  .back-top,
  .lightbox,
  .site-footer {
    display: none !important;
  }

  .hero {
    padding: 0 0 22px;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .page-shell {
    display: block;
    padding: 0;
  }

  .chapter,
  .chapter + .chapter {
    padding: 22px 0;
    border-top: 1px solid #ddd;
    break-inside: avoid;
  }

  .step,
  .shot,
  .callout,
  .material-card,
  .daily-panel,
  .help-card {
    box-shadow: none;
    break-inside: avoid;
  }

  .step {
    border-color: #ccc;
  }

  .shot-frame:hover img {
    transform: none;
  }

  details > div {
    display: block !important;
  }
}
