:root {
  --ink: #0b1f33;
  --ink-2: #17324a;
  --muted: #607080;
  --paper: #f7f5f0;
  --paper-2: #efeae0;
  --card: #ffffff;
  --line: #e3ded4;
  --line-strong: #cfc7b9;
  --accent: #e85d2a;
  --accent-dark: #c4471b;
  --teal: #0f766e;
  --blue: #2563eb;
  --amber: #b45309;
  --violet: #7c3aed;
  --rose: #be123c;
  --sky: #0369a1;
  --orange: #c2410c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(11, 31, 51, 0.08);
  --shadow-sm: 0 8px 24px rgba(11, 31, 51, 0.06);
  --max: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(232, 93, 42, 0.22);
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(232, 93, 42, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.narrow {
  width: min(820px, calc(100% - 48px));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 14px;
}

.text-link:hover {
  color: var(--accent);
}

/* Top bar */
.topbar {
  background: var(--ink);
  color: #b8c7d6;
  font-size: 12px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 36px;
}

.topbar-links {
  display: flex;
  gap: 18px;
}

.topbar a {
  color: #d9e3ec;
}

.topbar a:hover {
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  position: relative;
  flex: 0 0 auto;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(11, 31, 51, 0.05);
}

.nav-link.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 10%, rgba(15, 118, 110, 0.28), transparent 38%),
    radial-gradient(circle at 12% 80%, rgba(232, 93, 42, 0.18), transparent 34%),
    var(--ink);
  color: #fff;
  padding: 78px 0 34px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero-lead {
  max-width: 680px;
  margin-top: 24px;
  color: #c9d6e2;
  font-size: 17px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-caption {
  margin-top: 24px;
  color: #8fa3b7;
  font-size: 12px;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 93, 42, 0.24);
}

.button.primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.button.ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(7, 22, 37, 0.72);
  padding: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.panel-label {
  margin-bottom: 16px;
  color: #8fa3b7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.stack-layer {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.stack-layer > span {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding-top: 2px;
}

.stack-layer strong {
  display: block;
  font-size: 15px;
  color: #fff;
}

.stack-layer small {
  display: block;
  margin-top: 3px;
  color: #9db0c2;
  font-size: 12px;
  line-height: 1.6;
}

.layer-1 {
  margin-right: 22px;
}

.layer-2 {
  margin-left: 22px;
  margin-right: 0;
}

.layer-3 {
  margin-right: 22px;
}

.stack-connector {
  width: 1px;
  height: 14px;
  margin-left: 32px;
  background: rgba(255, 255, 255, 0.18);
}

.panel-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  color: #8fa3b7;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 46px;
}

.stat {
  padding: 18px 20px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stat span {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  font-weight: 700;
}

.stat small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-tinted {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-note {
  max-width: 360px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 1px 0 rgba(11, 31, 51, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.card-date {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.article-card h3 {
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.article-card h3 a {
  display: block;
}

.article-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tag-opc-basics {
  color: var(--teal);
  background: #e4f3ef;
}

.tag-ai-native {
  color: var(--blue);
  background: #e8efff;
}

.tag-business {
  color: var(--amber);
  background: #fbf0dd;
}

.tag-operations {
  color: var(--violet);
  background: #f1e9ff;
}

.tag-cases {
  color: var(--rose);
  background: #ffe8ee;
}

.tag-policy {
  color: var(--sky);
  background: #e4f2fb;
}

.tag-trends {
  color: var(--orange);
  background: #ffeadf;
}

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.cat-index {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding-top: 4px;
}

.category-card h3 {
  font-size: 18px;
}

.category-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.cat-arrow {
  margin-left: auto;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  padding-top: 3px;
}

/* Split layout */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 44px;
  align-items: start;
}

.pick-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.pick-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.pick-cat {
  flex: 0 0 82px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.pick-list a {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.quick-box {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.quick-box .eyebrow {
  color: #ffb08f;
}

.quick-box h2 {
  font-size: 26px;
}

.quick-box > p:not(.eyebrow) {
  margin-top: 12px;
  color: #c9d6e2;
  font-size: 14px;
  line-height: 1.8;
}

.quick-links {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #e9f0f6;
  font-size: 14px;
  font-weight: 600;
}

.quick-links a:hover {
  color: #fff;
}

.quick-links a span {
  color: var(--accent);
}

/* CTA */
.cta-section {
  padding-top: 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 45%),
    #fff;
  box-shadow: var(--shadow-sm);
}

.cta-inner h2 {
  font-size: 28px;
}

.cta-inner p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-inner .button.ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: #fff;
}

/* Page hero */
.page-hero {
  padding: 66px 0 54px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 0%, rgba(15, 118, 110, 0.1), transparent 34%),
    var(--paper);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.04em;
}

.page-lead {
  max-width: 820px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.page-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.cat-hero {
  border-top: 6px solid var(--cat, var(--accent));
}

.cat-opc-basics {
  --cat: var(--teal);
}

.cat-ai-native {
  --cat: var(--blue);
}

.cat-business {
  --cat: var(--amber);
}

.cat-operations {
  --cat: var(--violet);
}

.cat-cases {
  --cat: var(--rose);
}

.cat-policy {
  --cat: var(--sky);
}

.cat-trends {
  --cat: var(--orange);
}

.other-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.other-cats a {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.other-cats a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* Article */
.article-page {
  padding: 36px 0 80px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 300px);
  gap: 54px;
  justify-content: center;
  align-items: start;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--accent-dark);
}

.article-header {
  margin-top: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin-top: 14px;
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.article-deck {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.article-meta span + span::before {
  content: "·";
  margin-right: 18px;
  color: var(--line-strong);
}

.key-points {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid #f0d4c7;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fff8f4;
}

.kp-title {
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.key-points ul {
  padding-left: 20px;
}

.key-points li {
  margin: 7px 0;
  font-size: 14px;
  line-height: 1.8;
}

.prose {
  padding-top: 30px;
  color: #24384b;
  font-size: 16.5px;
  line-height: 1.95;
}

.prose > p {
  margin: 0 0 20px;
}

.prose h2 {
  margin: 42px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 27px;
  letter-spacing: -0.03em;
}

.prose h3 {
  margin: 28px 0 12px;
  color: var(--ink);
  font-size: 20px;
}

.prose ul,
.prose ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.prose li {
  margin: 9px 0;
}

.prose li > ul,
.prose li > ol {
  margin: 6px 0;
}

.prose blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0;
  background: #eaf5f2;
  color: #1d4c47;
  font-size: 15px;
  line-height: 1.85;
}

.prose blockquote p {
  margin: 0;
}

.prose a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-color: rgba(196, 71, 27, 0.28);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

.prose strong {
  color: var(--ink);
}

.prose code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f1eee8;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.prose pre {
  overflow-x: auto;
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: #dbe7f0;
  font-size: 13px;
  line-height: 1.7;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.prose th,
.prose td {
  padding: 11px 13px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: #f1eee8;
  color: var(--ink);
  font-size: 12px;
}

.sources {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.sources h2 {
  font-size: 19px;
}

.sources-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.sources ol {
  margin-top: 12px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 13px;
}

.sources li {
  margin: 5px 0;
}

.sources a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.pn-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.pn-item span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pn-item strong {
  font-size: 14px;
  line-height: 1.55;
}

.pn-empty {
  display: block;
}

.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 34px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.author-box strong {
  font-size: 14px;
}

.author-box p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.article-sidebar {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toc {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.toc-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  border-left: 2px solid transparent;
  padding-left: 10px;
}

.toc a:hover {
  color: var(--ink);
  border-left-color: var(--accent);
}

.toc .toc-level-3 {
  padding-left: 22px;
  font-size: 12px;
}

.sidebar-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.sidebar-card h3 {
  font-size: 17px;
}

.related-list {
  list-style: none;
  margin-top: 12px;
}

.related-list li {
  border-top: 1px solid var(--line);
}

.related-list li:first-child {
  border-top: 0;
}

.related-list a {
  display: block;
  padding: 11px 0;
  font-size: 12.5px;
  line-height: 1.6;
}

.related-list a span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
}

.sidebar-cta {
  background:
    linear-gradient(145deg, rgba(232, 93, 42, 0.08), transparent 60%),
    #fff;
}

.sidebar-cta p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.sidebar-cta .text-link {
  display: inline-block;
  margin-top: 12px;
}

/* Static pages */
.page-prose {
  padding-top: 0;
}

.page-prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.faq-list h3 {
  margin: 30px 0 8px;
  color: var(--ink);
  font-size: 19px;
}

.faq-list p {
  margin: 0 0 16px;
  color: #30465a;
  font-size: 15px;
  line-height: 1.9;
}

.error-hero {
  min-height: 52vh;
  display: flex;
  align-items: center;
}

/* Sitemap */
.sitemap-meta {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 13px;
}

.sitemap-section {
  margin-bottom: 38px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.sitemap-section h2 {
  font-size: 23px;
}

.sitemap-section > p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.sitemap-list {
  list-style: none;
  margin-top: 14px;
}

.sitemap-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.sitemap-list li a {
  font-weight: 600;
}

.sitemap-list time {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  margin-top: 20px;
  background: #081827;
  color: #a9bacb;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.7fr));
  gap: 44px;
  padding: 56px 0 38px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 420px;
  color: #93a6b8;
  font-size: 12.5px;
  line-height: 1.85;
}

.footer-brand .footer-note {
  margin-top: 10px;
  color: #6f8498;
  font-size: 11px;
}

.footer-logo .brand-mark {
  background: #fff;
  color: var(--ink);
}

.footer-logo .brand-text strong {
  color: #fff;
}

.footer-logo .brand-text small {
  color: #8fa3b7;
}

.footer-grid h3 {
  margin-bottom: 14px;
  color: #e6eef5;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin: 8px 0;
}

.footer-grid a {
  color: #9db0c2;
  font-size: 12.5px;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-friends {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #6f8498;
  font-size: 12px;
}

.footer-friends-label {
  color: #8fa3b7;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-friends a {
  color: #9db0c2;
}

.footer-friends a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #6f8498;
  font-size: 10.5px;
}

.footer-bottom a {
  color: #9db0c2;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: relative;
  margin-left: auto;
}

.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary::after {
  content: "▾";
  margin-left: 6px;
  color: var(--accent);
  font-size: 10px;
}

.mobile-menu[open] summary {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: min(320px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-menu-panel .nav-link {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  padding: 9px 10px;
  border-radius: 6px;
}

.mobile-menu-panel .nav-link:hover {
  background: var(--paper);
}

.mobile-menu-panel .nav-link.active {
  background: #fff4ee;
  color: var(--accent-dark);
}

.mobile-menu-panel .nav-link.active::after {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-panel {
    max-width: 560px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-shell {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  }

  .footer-grid > div:last-child {
    grid-column: 2 / 4;
  }
}

@media (max-width: 820px) {
  .container,
  .narrow {
    width: min(var(--max), calc(100% - 32px));
  }

  .topbar-inner {
    min-height: 34px;
  }

  .topbar-links {
    display: none;
  }

  .header-inner {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 12px 0;
    min-height: 0;
  }

  .site-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    padding: 52px 0 26px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 8vw, 48px);
  }

  .hero-lead {
    font-size: 15.5px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 52px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .split-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px;
  }

  .article-shell {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .article-sidebar {
    position: static;
  }

  .toc {
    display: none;
  }

  .prose h2 {
    font-size: 24px;
  }

  .prev-next {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 40px 0 28px;
  }

  .footer-brand {
    grid-column: 1 / 3;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .cta-actions .button {
    width: 100%;
  }

  .pick-list li {
    flex-direction: column;
    gap: 4px;
  }

  .pick-cat {
    flex: none;
  }

  .article-card {
    padding: 20px;
  }

  .article-header h1 {
    font-size: 30px;
  }

  .article-meta span + span::before {
    content: none;
    margin: 0;
  }

  .sitemap-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
