:root {
  --ink: #0f1b2d;
  --text: #344256;
  --muted: #5a6577;
  --line: #e3e8ef;
  --line-strong: #cbd4e0;
  --soft: #f4f7fb;
  --accent: #1d63d8;
  --accent-dark: #164fb0;
  --accent-soft: #eaf1fd;
  --navy: #0b1f3a;
  --navy-2: #13294a;
  --ok: #157043;
  --ok-soft: #e8f6ee;
  --warn: #8a5100;
  --warn-soft: #fff6e3;
  --bad: #b42318;
  --bad-soft: #fdeceb;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font: 400 17px/1.7 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { color: var(--ink); letter-spacing: -0.015em; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: #eef2f7;
  color: var(--ink);
  border-radius: 5px;
  padding: 0.12em 0.4em;
  overflow-wrap: anywhere;
}

kbd {
  font: 600 0.84em/1 Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.2em 0.5em;
  white-space: nowrap;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  background: var(--ink);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: #ffffff; }

.topbar { background: var(--navy); color: #c9d4e3; font-size: 13.5px; line-height: 1.4; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar p { margin: 0; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; color: #ffffff; font-weight: 600; text-decoration: none; }
.topbar a svg { width: 14px; height: 14px; }
.topbar a:hover { text-decoration: underline; }
.topbar :focus-visible { outline-color: #8fb4f5; }

.site-header { position: sticky; top: 0; z-index: 40; background: #ffffff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 70px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo img { width: 34px; height: 34px; }
.logo-light, .logo-light:hover { color: #ffffff; }

.site-nav { display: flex; align-items: center; gap: 18px; flex: 1; justify-content: flex-end; }
.nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-list > li { position: relative; }
.nav-list > li > a, .sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink);
  font: 500 15px/1.2 Inter, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.nav-list > li > a:hover, .sub-toggle:hover { background: var(--soft); color: var(--accent-dark); }
.nav-list > li > a[aria-current="page"], .sub-toggle.is-active { color: var(--accent); font-weight: 600; }
.chevron { width: 12px; height: 12px; transition: transform 0.15s ease; }
.sub-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  z-index: 45;
  width: 340px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 27, 45, 0.12);
}
.has-sub.is-open .sub-menu { display: block; }
.sub-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; line-height: 1.45; }
.sub-menu a:hover { background: var(--soft); }
.sub-menu strong { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.sub-menu span { display: block; font-size: 13.5px; color: var(--muted); }
.sub-menu a[aria-current="page"] strong { color: var(--accent); }

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: 600 15px Inter, system-ui, sans-serif;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font: 600 15px/1 Inter, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #ffffff; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn[data-state="copied"] { background: var(--ok); border-color: var(--ok); }
.btn[data-state="selected"] { background: var(--navy); border-color: var(--navy); }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn-white { background: #ffffff; border-color: #ffffff; color: var(--accent-dark); }
.btn-white:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-dark); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #ffffff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #ffffff; color: #ffffff; }
.header-cta { min-height: 40px; font-size: 14.5px; }

.pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.post-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 36px 0 48px; }
.post-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.post-hero h1 { margin: 10px 0 14px; font-size: 42px; line-height: 1.14; font-weight: 800; letter-spacing: -0.025em; }
.post-hero .lede { margin: 0 0 22px; color: var(--muted); font-size: 18.5px; line-height: 1.6; }
.post-kicker { margin: 0; }
.post-hero-media { margin: 0; }
.post-hero-media img { width: 100%; border-radius: 12px; box-shadow: 0 1px 2px rgba(15, 27, 45, 0.08), 0 10px 28px rgba(15, 27, 45, 0.1); }
.post-hero-plain { padding: 56px 0 72px; }
.post-hero-plain h1 { margin-top: 6px; }
.post-hero-plain > .container > p { max-width: 640px; }
.notfound-code { margin: 0; font-weight: 700; color: var(--accent-dark); font-size: 15px; }

.crumbs ol { display: flex; flex-wrap: wrap; margin: 0 0 16px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "\203A"; margin: 0 9px; color: #94a3b8; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

.byline { display: flex; align-items: center; gap: 12px; }
.byline-avatar { width: 42px; height: 42px; flex: none; }
.byline p { margin: 0; line-height: 1.45; }
.byline-name { color: var(--ink); font-size: 15px; font-weight: 600; }
.byline-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 14px; }
.byline-meta span { display: inline-flex; align-items: center; gap: 6px; }
.byline-meta svg { width: 15px; height: 15px; }

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  padding-top: 44px;
  padding-bottom: 72px;
}
.post-body { max-width: 760px; min-width: 0; }
.post-body > :first-child { margin-top: 0; }
.post-body h2 { margin: 52px 0 16px; font-size: 29px; line-height: 1.25; font-weight: 700; }
.post-body h3 { margin: 32px 0 10px; font-size: 21px; line-height: 1.35; font-weight: 700; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 22px; padding-left: 24px; }
.post-body ol { padding-left: 34px; }
.post-body li { margin: 0 0 8px; }
.post-body li::marker { color: var(--accent); }
.post-body strong { color: var(--ink); font-weight: 600; }

.summary-box {
  margin: 0 0 28px;
  padding: 22px 26px;
  border: 1px solid #cfdcf6;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 17.5px;
}
.summary-box p { margin: 0; }

.toc-box { display: none; margin: 0 0 32px; border: 1px solid var(--line); border-radius: 10px; background: #ffffff; }
.toc-box summary { padding: 14px 18px; font-weight: 700; color: var(--ink); cursor: pointer; }
.toc-box ol { margin: 0; padding: 0 18px 16px 40px; font-size: 15.5px; }
.toc-box li { margin: 0 0 6px; }
.toc-box a { text-decoration: none; }
.toc-box a:hover { text-decoration: underline; }

.ip-card { display: flex; align-items: center; gap: 14px; margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #ffffff; }
.ip-card-logo { width: 40px; height: 40px; object-fit: contain; flex: none; }
.ip-card-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ip-card-label { font-size: 13px; color: var(--muted); }
.ip-card code { background: none; padding: 0; font-size: 18px; font-weight: 600; }
.ip-card-port { font-size: 13.5px; color: var(--muted); }
.ip-card-port b { color: var(--ink); }
.ip-card .btn { margin-left: auto; }

.callout { display: flex; gap: 14px; margin: 26px 0; padding: 16px 20px; border: 1px solid; border-radius: 10px; font-size: 16px; line-height: 1.6; }
.callout-icon { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.callout-body p { margin: 0; }
.callout-body .callout-title { margin-bottom: 4px; font-weight: 700; color: var(--ink); }
.callout-note { background: var(--accent-soft); border-color: #cfdcf6; }
.callout-note .callout-icon { color: var(--accent); }
.callout-headsup { background: var(--warn-soft); border-color: #f1d9a6; }
.callout-headsup .callout-icon { color: var(--warn); }
.callout-tip { background: var(--ok-soft); border-color: #bfe3cd; }
.callout-tip .callout-icon { color: var(--ok); }

.post-body ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 18px 0 26px; }
.post-body ol.steps li { counter-increment: step; position: relative; margin: 0; padding: 4px 0 18px 54px; }
.post-body ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
}
.post-body ol.steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--line); }

.post-body ul.checklist { list-style: none; padding: 0; }
.post-body ul.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.post-body ul.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 7px;
  height: 12px;
  border: solid var(--ok);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

dl.spec { display: grid; grid-template-columns: minmax(150px, 210px) 1fr; margin: 18px 0 26px; border-top: 1px solid var(--line); font-size: 16px; }
dl.spec dt, dl.spec dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
dl.spec dt { padding-right: 18px; font-weight: 600; color: var(--ink); }

.table-wrap { margin: 24px 0 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.table-wrap:focus-visible { outline-offset: 2px; }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table-wrap caption { caption-side: bottom; padding: 10px 16px; text-align: left; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); background: #fbfcfe; }
.table-wrap thead th { background: var(--navy); color: #ffffff; font-weight: 600; font-size: 14px; text-align: left; padding: 12px 16px; }
.table-wrap tbody th { text-align: left; color: var(--ink); font-weight: 600; }
.table-wrap td, .table-wrap tbody th { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tbody tr:nth-child(even) { background: #f8fafc; }
.table-wrap td code { white-space: nowrap; }
.table-wrap table.table-wide { min-width: 720px; font-size: 14px; }
.table-wrap table.table-wide th, .table-wrap table.table-wide td { padding-left: 12px; padding-right: 12px; }
.table-wrap table.table-wide tbody th { min-width: 120px; }
.yes, .no { display: inline-block; margin-right: 6px; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.yes { background: var(--ok-soft); color: var(--ok); }
.no { background: var(--bad-soft); color: var(--bad); }

.post-body figure { margin: 30px 0; }
.post-body figure img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.post-body figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }

.entry { margin: 26px 0; padding: 24px 26px 18px; border: 1px solid var(--line); border-radius: 12px; }
.entry-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.entry-head img { width: 48px; height: 48px; object-fit: contain; padding: 4px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); }
.entry-head h3 { margin: 0; font-size: 22px; }
.entry-head p { margin: 0; color: var(--muted); font-size: 15px; }
.rank { margin-left: auto; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #ffffff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.rank.second { background: var(--navy); }
.entry .ip-card { background: var(--soft); }
.post-body .entry-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 4px; font-size: 15px; font-weight: 600; }
.entry-links a { text-decoration: none; }
.entry-links a:hover { text-decoration: underline; }

.faq h3 { margin: 0; padding: 20px 0 8px; border-top: 1px solid var(--line); font-size: 19px; }
.faq h2 + h3 { border-top: 0; padding-top: 4px; }
.faq h2.faq-group { margin-top: 44px; }
.faq h2.faq-group:first-child { margin-top: 0; }

.post-body ul.outbound { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.post-body ul.outbound li { margin: 0; }
.post-body ul.outbound a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.post-body ul.outbound a:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }

.cta-box { margin: 52px 0 32px; padding: 28px 30px; border-radius: 14px; background: var(--navy); color: #d5deea; }
.cta-box p { margin: 0 0 16px; }
.cta-box .cta-title { margin: 0 0 6px; color: #ffffff; font-size: 23px; font-weight: 700; letter-spacing: -0.015em; }
.cta-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--navy-2); }
.cta-row img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.cta-rank { padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #ffffff; font-size: 13px; font-weight: 700; }
.cta-name { color: #ffffff; font-weight: 600; min-width: 92px; }
.cta-row code { background: none; color: #dbe7fb; padding: 0; font-size: 15.5px; }
.cta-row .btn { margin-left: auto; }
.cta-box :focus-visible { outline-color: #9fc0f7; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.post-nav a:hover { border-color: var(--accent); background: var(--accent-soft); }
.post-nav span { font-size: 13.5px; color: var(--muted); }
.post-nav strong { color: var(--ink); font-size: 16px; line-height: 1.4; }
.post-nav-next { grid-column: 2; text-align: right; }

.sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.widget { padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff; }
.widget-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--ink); }
.widget-toc { position: sticky; top: 92px; }
.widget-toc ol { margin: 0; padding: 0; list-style: none; font-size: 14.5px; line-height: 1.45; }
.widget-toc li { margin: 0; }
.widget-toc a { display: block; padding: 7px 10px 7px 12px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; }
.widget-toc a:hover { color: var(--ink); background: var(--soft); }
.widget-toc a.is-active { border-left-color: var(--accent); color: var(--accent-dark); font-weight: 600; background: var(--accent-soft); }
.widget-ip { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.widget-ip img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.widget-ip div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.widget-ip span { font-size: 14px; font-weight: 600; color: var(--ink); }
.widget-ip code { background: none; padding: 0; font-size: 13.5px; color: var(--muted); }
.widget-ip .btn { margin-left: auto; }
.widget-note { margin: 12px 0 10px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.status-row { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--soft); font-size: 13.5px; }
.status-row + .status-row { margin-top: 8px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; flex: none; }
.status-row[data-live="true"] .status-dot { background: #16a34a; }
.status-name { font-weight: 600; color: var(--ink); }
.status-value { margin-left: auto; color: var(--muted); }
.widget-latest ul { margin: 0; padding: 0; list-style: none; }
.widget-latest li + li { border-top: 1px solid var(--line); }
.widget-latest a { display: flex; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; }
.widget-latest img { width: 76px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
.widget-latest strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.35; }
.widget-latest small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.widget-latest a:hover strong { color: var(--accent-dark); text-decoration: underline; }

.related { padding: 56px 0 64px; background: var(--soft); border-top: 1px solid var(--line); }
.related h2 { margin: 0 0 24px; font-size: 28px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.post-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.post-card a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #ffffff; color: var(--text); text-decoration: none; transition: border-color 0.15s ease; }
.post-card a:hover { border-color: #a9c3ef; }
.post-card a:hover strong { color: var(--accent-dark); }
.post-card img { width: 100%; aspect-ratio: 600 / 315; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.post-card strong { color: var(--ink); font-size: 18px; line-height: 1.35; }
.post-card-excerpt { font-size: 15px; line-height: 1.55; color: var(--muted); }
.post-card-date { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 13.5px; color: var(--muted); }
.post-card-date svg { width: 14px; height: 14px; }

.discord-strip { background: var(--accent); color: #ffffff; }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.strip-inner p { margin: 0; font-weight: 600; }
.strip-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.discord-strip :focus-visible { outline-color: #ffffff; }

.site-footer { background: var(--navy); color: #c2cede; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2.1fr repeat(4, 1fr); gap: 36px; padding-top: 56px; padding-bottom: 44px; }
.footer-brand p { margin: 14px 0 0; line-height: 1.6; max-width: 380px; }
.footer-brand .footer-disclosure { color: #ffffff; font-weight: 600; }
.site-footer h2 { margin: 6px 0 14px; color: #ffffff; font-size: 15px; letter-spacing: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0 0 9px; }
.site-footer a { color: #d9e2ee; text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #9fc0f7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13.5px; color: #a9b8cc; }
.footer-bottom p { margin: 0; padding: 18px 0 22px; }

@media (min-width: 1100px) {
  .has-sub:hover .sub-menu { display: block; }
}

@media (max-width: 1099px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post-body { width: 100%; max-width: 780px; margin: 0 auto; }
  .sidebar { display: none; }
  .toc-box { display: block; }
  .header-inner { gap: 16px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 8px 24px 20px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(15, 27, 45, 0.08);
  }
  .site-header.nav-open .site-nav { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a, .sub-toggle { display: flex; width: 100%; padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .sub-toggle { justify-content: space-between; }
  .sub-menu { position: static; width: auto; padding: 4px 0 8px 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .sub-menu a { padding: 8px 4px; }
  .header-cta { align-self: flex-start; }
  .post-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .post-hero { padding: 26px 0 32px; }
  .post-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .post-hero h1 { font-size: 34px; }
  .post-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .container { padding: 0 16px; }
  .topbar p { display: none; }
  .topbar-inner { justify-content: center; }
  .site-nav { padding: 6px 16px 18px; }
  .logo { font-size: 16.5px; }
  .post-hero h1 { font-size: 29px; }
  .post-hero .lede { font-size: 17px; }
  .post-layout { padding-top: 28px; padding-bottom: 48px; }
  .post-body h2 { font-size: 24px; margin-top: 40px; }
  .post-body h3 { font-size: 19px; }
  .summary-box { padding: 18px; font-size: 16.5px; }
  .ip-card { flex-wrap: wrap; }
  .ip-card .btn { width: 100%; }
  .entry { padding: 18px 16px 12px; }
  .entry-head { align-items: flex-start; }
  .entry-head > div { min-width: 0; }
  dl.spec { grid-template-columns: minmax(0, 1fr); }
  dl.spec dt { padding-bottom: 0; border-bottom: 0; }
  dl.spec dd { padding-top: 4px; }
  .cta-box { padding: 22px 16px; }
  .cta-row { flex-wrap: wrap; }
  .cta-row .btn { width: 100%; }
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav-next { grid-column: auto; }
  .post-grid-four { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding-top: 40px; }
  .related { padding: 40px 0 48px; }
  .related h2 { font-size: 24px; }
  .strip-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
