/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0b0e14;
  --ink-light: #1a2030;
  --paper: #f6f4ef;
  --paper-warm: #ede9e1;
  --accent: #c9451a;
  --accent-light: #e05a2b;
  --gold: #c8a84b;
  --gold-light: #e2c77a;
  --muted: #7a7d86;
  --border: rgba(11,14,20,0.12);
  --border-strong: rgba(11,14,20,0.22);
  --card-bg: #ffffff;
  --section-alt: #f0ede6;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body: 'DM Sans', system-ui, sans-serif;
  --ff-mono: 'DM Mono', 'Courier New', monospace;

  --nav-h: 64px;
  --max-w: 1180px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(11,14,20,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .3s;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
  flex-shrink: 0;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  padding: 6px 10px;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: #fff;
  margin: 4px 0; transition: .3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #c9451a 0%, transparent 70%);
  top: -150px; left: -150px;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #c8a84b 0%, transparent 70%);
  bottom: -100px; right: -100px;
  opacity: 0.2;
}
.hero-orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #3a5aac 0%, transparent 70%);
  top: 40%; left: 50%; transform: translate(-50%,-50%);
  opacity: 0.15;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 860px;
}
.hero-badge {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  background: rgba(200,168,75,0.12);
  border: 1px solid rgba(200,168,75,0.3);
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: 28px;
}
.hero-title {
  display: flex; flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}
.hero-title-sub {
  font-family: var(--ff-display);
  font-size: clamp(18px, 3vw, 26px);
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.hero-title-main {
  font-family: var(--ff-display);
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 900;
  line-height: 0.95;
  color: #fff;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: rgba(255,255,255,0.5);
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: 0.04em;
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto; margin-right: auto;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 36px;
  border-radius: 4px;
  transition: background .2s, transform .2s;
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 36px;
  border-radius: 4px;
  border: 2px solid var(--accent);
  transition: border-color .2s, color .2s, transform .2s;
}
.btn-secondary:hover { border-color: var(--accent-light); color: var(--accent-light); transform: translateY(-2px); }

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.3);
  font-size: 11px; letter-spacing: 0.14em;
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(1.3); opacity: 0.8; }
}

/* ===== SECTIONS ===== */
.section { padding: 96px 24px; }
.container { max-width: var(--max-w); margin: 0 auto; }
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}
.section-title.centered { text-align: center; }
.section-sub { color: var(--muted); font-size: 16px; margin-bottom: 56px; }
.section-sub.centered { text-align: center; }

/* ===== INTRO ===== */
.intro { background: var(--paper); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.intro-text .section-title { margin-bottom: 24px; }
.intro-text p {
  color: #3a3d46;
  font-size: 16px;
  margin-bottom: 18px;
  line-height: 1.8;
}
.intro-text em { font-style: italic; color: var(--accent); }
.intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 8px;
}
.stat-card {
  background: var(--ink);
  border-radius: 8px;
  padding: 32px 24px;
  display: flex; flex-direction: column;
  gap: 8px;
  color: #fff;
}
.stat-number {
  font-family: var(--ff-display);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #fff 20%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  text-transform: uppercase;
}

/* ===== CHAPTERS ===== */
.chapters { background: var(--section-alt); }
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.chapter-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  cursor: pointer;
}
.chapter-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(201,69,26,0.1);
  transform: translateY(-3px);
}
.chapter-num {
  font-family: var(--ff-mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
}
.chapter-body { flex: 1; }
.chapter-body h3 {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.chapter-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}
.chapter-topics {
  list-style: none;
  display: flex; flex-direction: column; gap: 4px;
}
.chapter-topics li {
  font-size: 12.5px;
  color: #50535e;
  padding-left: 14px;
  position: relative;
}
.chapter-topics li::before {
  content: '■';
  position: absolute; left: 0;
  font-size: 7px;
  color: var(--gold);
  top: 4px;
}
.chapter-arrow {
  font-size: 20px;
  color: var(--muted);
  flex-shrink: 0;
  transition: color .2s, transform .2s;
}
.chapter-card:hover .chapter-arrow { color: var(--accent); transform: translateX(4px); }

/* ===== PILLARS ===== */
.concepts { background: var(--ink); color: #fff; }
.concepts .section-title { color: #fff; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.pillar {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 32px 28px;
  transition: background .25s, border-color .25s;
}
.pillar:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(200,168,75,0.3);
}
.pillar-icon {
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.pillar h3 {
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}
.pillar p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; }

/* ===== CTA ===== */
.cta { background: var(--paper-warm); }
.cta-box {
  background: var(--ink);
  border-radius: 12px;
  padding: 64px 56px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,69,26,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.cta-box h2 {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}
.cta-box p {
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  margin: 0 auto 36px;
  font-size: 16px;
  position: relative;
}
.cta-btns {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  position: relative;
}

/* ===== FOOTER ===== */
.footer {
  background: #07090e;
  color: rgba(255,255,255,0.55);
  padding: 64px 24px 32px;
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 12px;
}
.footer-tagline { font-size: 14px; line-height: 1.6; }
.footer h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 13px;
}

/* ===== CHAPTER PAGE LAYOUT ===== */
.chapter-hero {
  background: var(--ink);
  color: #fff;
  padding: calc(var(--nav-h) + 64px) 24px 64px;
  position: relative;
  overflow: hidden;
}
.chapter-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(201,69,26,0.18) 0%, transparent 55%);
}
.chapter-hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  position: relative; z-index: 1;
}
.chapter-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.chapter-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}
.chapter-hero p {
  color: rgba(255,255,255,0.55);
  max-width: 640px;
  font-size: 16px;
  line-height: 1.7;
}

.chapter-nav {
  display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap;
}
.chapter-nav a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 18px;
  border-radius: 4px;
  transition: all .2s;
}
.chapter-nav a:hover, .chapter-nav a.active { color: #fff; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }

/* ===== CHAPTER CONTENT ===== */
.chapter-content {
  padding: 80px 24px;
  background: var(--paper);
}
.chapter-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
.chapter-sidebar {
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.sidebar-title {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sidebar-links a {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 4px;
  display: block;
  transition: color .2s, background .2s;
  border-left: 2px solid transparent;
}
.sidebar-links a:hover { color: var(--ink); background: var(--section-alt); border-color: var(--accent); }
.sidebar-links a.active { color: var(--accent); border-color: var(--accent); background: rgba(201,69,26,0.06); }

.chapter-body-content { min-width: 0; }

/* Sections */
.content-section { margin-bottom: 72px; }
.content-section:last-child { margin-bottom: 0; }

.content-section h2 {
  font-family: var(--ff-display);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
  line-height: 1.2;
}
.content-section h3 {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  margin-top: 36px;
  color: var(--ink);
}
.content-section p {
  font-size: 15.5px;
  line-height: 1.8;
  color: #2a2e38;
  margin-bottom: 16px;
}
.content-section ul, .content-section ol {
  padding-left: 20px;
  margin-bottom: 20px;
}
.content-section li {
  font-size: 15px;
  line-height: 1.75;
  color: #3a3e4a;
  margin-bottom: 6px;
}

/* Definition cards */
.def-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.def-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  border-top: 3px solid var(--accent);
  transition: box-shadow .2s;
}
.def-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.def-card h4 {
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}
.def-card p { font-size: 13.5px; color: #4a4e5a; line-height: 1.7; margin: 0; }

/* Step cards */
.step-list { display: flex; flex-direction: column; gap: 20px; margin: 28px 0; }
.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: box-shadow .2s, border-color .2s;
}
.step-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.07); border-color: rgba(201,69,26,0.2); }
.step-num {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(201,69,26,0.08);
  border: 1px solid rgba(201,69,26,0.2);
  padding: 4px 10px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.step-body h4 {
  font-weight: 700; font-size: 16px; margin-bottom: 8px; color: var(--ink);
}
.step-body p { font-size: 14px; color: #4a4e5a; line-height: 1.75; margin-bottom: 10px; }
.step-note {
  background: rgba(200,168,75,0.07);
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  color: #5a4a20;
  line-height: 1.65;
}
.step-note strong { color: #3a3010; }

/* Rule cards */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.rule-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  transition: box-shadow .2s;
}
.rule-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.rule-num {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}
.rule-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.rule-card p { font-size: 13px; color: #4a4e5a; line-height: 1.7; margin: 0; }

/* Callout */
.callout {
  background: var(--section-alt);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin: 32px 0;
}
.callout strong { color: var(--accent); display: block; font-size: 13px; letter-spacing: 0.08em; margin-bottom: 10px; text-transform: uppercase; }
.callout p { font-size: 14.5px; color: #2a2e38; line-height: 1.75; margin: 0; }
.callout ul { margin: 10px 0 0; padding-left: 18px; }
.callout li { font-size: 14px; color: #2a2e38; margin-bottom: 4px; }

/* Warn box */
.warn-box {
  background: rgba(201,69,26,0.06);
  border: 1px solid rgba(201,69,26,0.2);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 32px 0;
}
.warn-box strong { display: block; color: var(--accent); font-size: 13px; letter-spacing: 0.08em; margin-bottom: 12px; text-transform: uppercase; }
.warn-box ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.warn-box li {
  font-size: 14px; color: #4a2010; line-height: 1.65;
  padding-left: 18px; position: relative;
}
.warn-box li::before { content: '◆'; position: absolute; left: 0; font-size: 8px; color: var(--accent); top: 4px; }

/* Tags list */
.tag-list {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0;
}
.tag {
  background: var(--section-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 13px;
  color: #3a3e4a;
  font-weight: 500;
}

/* LinkedIn post list */
.post-list { display: flex; flex-direction: column; gap: 16px; margin: 28px 0; }
.post-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: box-shadow .2s, border-color .2s;
}
.post-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); border-color: rgba(10,102,194,0.3); }
.post-num {
  font-family: var(--ff-mono);
  font-size: 22px;
  font-weight: 500;
  color: rgba(10,102,194,0.4);
  flex-shrink: 0;
  width: 36px;
  line-height: 1;
  padding-top: 2px;
}
.post-body h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.post-body a { color: rgb(10,102,194); font-size: 12px; word-break: break-all; }
.post-body a:hover { text-decoration: underline; }

/* Agent cards */
.agent-list { display: flex; flex-direction: column; gap: 16px; margin: 28px 0; }
.agent-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 28px;
  transition: box-shadow .2s, border-color .2s;
}
.agent-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.08); border-color: rgba(201,69,26,0.25); }
.agent-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.agent-card a { color: var(--accent); font-size: 12px; word-break: break-all; display: block; margin-bottom: 10px; }
.agent-card a:hover { text-decoration: underline; }
.agent-card p { font-size: 13.5px; color: #4a4e5a; line-height: 1.7; margin-bottom: 10px; }
.agent-uses {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* County grid */
.county-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin: 20px 0;
}
.county-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #3a3e4a;
  transition: border-color .2s, color .2s;
}
.county-item:hover { border-color: var(--accent); color: var(--accent); }

/* Cities alpha list */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px;
  margin: 20px 0;
}
.city-item {
  font-size: 13.5px;
  color: #3a3e4a;
  padding: 6px 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all .15s;
}
.city-item:hover { background: var(--section-alt); }

/* Rule index list */
.rule-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin: 20px 0;
}
.rule-index-item {
  font-size: 13.5px;
  color: #3a3e4a;
  padding: 8px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rule-index-item::before { content: '✓'; color: var(--accent); font-size: 11px; flex-shrink: 0; }

/* Checklist */
.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px; color: #2a2e38; line-height: 1.7;
}
.checklist li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* Category header */
.category-header {
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 20px 28px;
  margin: 36px 0 20px;
}
.category-header h3 {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.category-header p { font-size: 13px; color: rgba(255,255,255,0.5); margin: 4px 0 0; }

/* Prev/Next nav */
.chapter-pagination {
  display: flex; justify-content: space-between; gap: 20px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.pagination-link {
  display: flex; flex-direction: column; gap: 4px;
  flex: 1; max-width: 300px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  transition: border-color .2s, box-shadow .2s;
}
.pagination-link.next { align-items: flex-end; text-align: right; margin-left: auto; }
.pagination-link:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(201,69,26,0.08); }
.pagination-dir { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.pagination-title { font-size: 15px; font-weight: 700; color: var(--ink); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .chapters-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .chapter-inner { grid-template-columns: 1fr; }
  .chapter-sidebar { position: static; }
}

@media (max-width: 640px) {
  .section { padding: 64px 20px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 28px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(11,14,20,0.98);
    padding: 16px 24px 24px;
    gap: 2px;
  }
  .nav-toggle { display: flex; flex-direction: column; }
  .def-grid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
}
