:root {
  --accent: #8b2338; --accent-soft: #f8edf0; --text: #17191d;
  --muted: #667085; --subtle: #98a1ad; --line: #e6e8ec;
  --surface: #fff; --page: #f7f8fa; --amber-bg: #fff7e8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--page); color: var(--text); font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; } button { cursor: pointer; } a { color: inherit; }
.topbar { height: 64px; position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--accent); color: white; font-size: 15px; font-weight: 750; }
.brand-name { font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.search-trigger { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #4b5563; font-size: 12px; }
.search-trigger:hover { border-color: #c7a2aa; color: var(--accent); }
.search-trigger > span:first-child { font-size: 18px; line-height: 1; }
.search-trigger kbd { margin-left: 8px; padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--subtle); background: #fafafa; font-size: 10px; }
.mobile-menu { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.mobile-menu span { width: 15px; height: 1.5px; background: #374151; }
.site-layout { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 248px minmax(0,1fr); }
.sidebar { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; padding: 28px 16px 24px; background: var(--surface); border-right: 1px solid var(--line); }
.side-nav { display: grid; gap: 24px; }
.nav-group { display: grid; gap: 4px; }
.nav-group-label { padding: 0 10px 7px; color: var(--subtle); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nav-link { width: 100%; display: flex; align-items: center; min-height: 38px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: #4b5563; text-align: left; font-size: 12px; font-weight: 500; transition: background .15s,color .15s; }
.nav-link:hover { background: #f5f6f8; color: var(--text); }
.nav-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.nav-index { display: none; }
.main-content { width: 100%; max-width: 1120px; min-width: 0; margin: 0 auto; padding: 36px clamp(24px,5vw,72px) 64px; }
.breadcrumb { margin-bottom: 12px; color: var(--accent); font-size: 11px; font-weight: 650; }
.breadcrumb:empty { display: none; }
.page-header { margin: 0 0 28px; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.page-header[hidden] { display: none; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.page-kicker { margin-bottom: 7px; } .page-kicker .kicker-line { display: none; }
.page-header h1 { margin: 0; color: var(--text); font-size: clamp(28px,3.3vw,40px); font-weight: 730; letter-spacing: -.045em; line-height: 1.15; }
.page-header .page-deck { max-width: 720px; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.page-meta { display: none; } .page-content { min-height: 300px; }
.page-content h2 { margin: 34px 0 12px; color: var(--text); font-size: 21px; font-weight: 700; letter-spacing: -.025em; line-height: 1.3; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { margin: 24px 0 8px; color: var(--text); font-size: 15px; font-weight: 680; letter-spacing: -.015em; }
.page-content h4 { margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.page-content p { margin: 0 0 13px; color: #475467; }
.page-content p.lead { max-width: 820px; color: #344054; font-size: 15px; line-height: 1.75; }
.page-content ul, .page-content ol { margin: 8px 0 18px; padding-left: 21px; color: #475467; }
.page-content li { margin: 6px 0; padding-left: 3px; } .page-content li::marker { color: var(--accent); }
.page-content strong { color: #242833; font-weight: 650; }
.page-content a { color: var(--accent); text-decoration: underline; text-decoration-color: #d9b8c0; text-underline-offset: 3px; }
.home-intro { margin: 20px 0 26px; } .home-intro .home-description { margin: 0; color: var(--muted); font-size: 15px; }
.home-sections { display: grid; gap: 12px; max-width: 780px; }
.section-card { width: 100%; display: grid; grid-template-columns: 38px minmax(0,1fr) 24px; align-items: center; gap: 16px; padding: 19px 20px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--text); text-align: left; transition: border-color .15s,transform .15s,box-shadow .15s; }
.section-card:hover { border-color: #d3aeb7; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16,24,40,.05); }
.section-card-index { color: var(--subtle); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.section-card-content { display: grid; gap: 3px; }
.section-card-content strong { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.section-card-content span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.section-card-arrow { color: var(--accent); font-size: 18px; text-align: right; }
.content-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 15px 0 24px; }
.info-card { min-width: 0; padding: 17px 18px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.card-label { display: block; margin-bottom: 7px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.info-card h3 { margin: 0 0 6px; font-size: 15px; } .info-card p { margin: 0; font-size: 13px; }
.callout { margin: 18px 0; padding: 14px 16px; border: 1px solid #eadfca; border-left: 3px solid #c08b37; border-radius: 8px; background: var(--amber-bg); }
.callout strong { display: block; margin-bottom: 4px; color: #79551c; font-size: 13px; } .callout p { margin: 0; color: #66563c; font-size: 12px; }
.callout.review { border-color: #eadfca; border-left-color: #c08b37; background: var(--amber-bg); } .callout.review strong { color: #79551c; }
.callout.success { border-color: #d7eadc; border-left-color: #399261; background: #edf7f0; }
.tag { display: inline-flex; padding: 3px 7px; border-radius: 5px; font-size: 10px; font-weight: 650; }
.tag.review { background: var(--amber-bg); color: #93621d; } .tag.source { background: #edf7f0; color: #28734b; } .tag.neutral { background: #f0f1f3; color: #667085; }
.table-wrap { overflow-x: auto; margin: 14px 0 20px; border: 1px solid var(--line); border-radius: 9px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 12px; }
thead th { padding: 11px 13px; background: #f7f8fa; color: #667085; text-align: left; font-size: 10px; font-weight: 700; }
tbody td { padding: 11px 13px; border-top: 1px solid var(--line); color: #475467; vertical-align: top; }
tbody tr:hover td { background: #fbfbfc; } td.role-cell { color: var(--accent); font-weight: 700; white-space: nowrap; } td.code-cell { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 11px; }
.table-note { margin-top: -8px; color: var(--muted); font-size: 11px; }
.steps { display: grid; gap: 0; margin: 15px 0 22px; }
.step { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 12px; padding: 0 0 18px; }
.step-number { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; }
.step-body { padding-top: 2px; } .step-body strong { display: block; margin-bottom: 3px; font-size: 13px; } .step-body p { margin: 0; font-size: 12px; }
.checklist { list-style: none !important; padding: 0 !important; margin: 12px 0 20px !important; }
.checklist li { position: relative; padding-left: 25px; } .checklist li:before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--accent); font-weight: 700; }
.resource-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 14px 0 22px; }
.resource-card { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px; background: white; text-decoration: none; }
.resource-card:hover { border-color: #d3aeb7; } .resource-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-size: 14px; }
.resource-text { min-width: 0; } .resource-text strong { display: block; margin-bottom: 2px; font-size: 12px; } .resource-text span { display: block; color: var(--muted); font-size: 11px; }
.resource-card.pending { cursor: default; background: #fafafa; } .resource-pending { color: var(--subtle) !important; font-size: 10px !important; }
.page-nav-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--line); }
.page-nav-btn { display: flex; flex-direction: column; gap: 3px; max-width: 48%; padding: 8px 0; border: 0; background: transparent; text-align: left; }
.page-nav-btn:hover strong { color: var(--accent); } .page-nav-btn.next { margin-left: auto; text-align: right; }
.page-nav-btn small { color: var(--subtle); font-size: 10px; } .page-nav-btn strong { color: #344054; font-size: 12px; }
.page-footer { margin-top: 22px; color: var(--subtle); font-size: 10px; } .page-footer span { display: none; }
.search-layer { position: fixed; inset: 0; z-index: 80; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 24px; background: rgba(16,24,40,.35); }
.search-layer.open { display: flex; } .search-dialog { width: min(600px,100%); max-height: 76vh; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 24px 70px rgba(16,24,40,.18); }
.search-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 21px 14px; }
.search-dialog-head h2 { margin: 4px 0 0; font-size: 20px; font-weight: 720; letter-spacing: -.03em; }
.close-search { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--muted); font-size: 18px; }
.search-input-wrap { display: flex; align-items: center; gap: 9px; margin: 0 21px; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 8px; }
.search-input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-input-wrap > span { color: var(--muted); font-size: 17px; } .search-input-wrap input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.search-meta { display: flex; justify-content: space-between; gap: 10px; padding: 11px 22px 7px; color: var(--subtle); font-size: 10px; }
.search-results { max-height: 43vh; overflow: auto; padding: 0 12px 12px; }
.search-result { display: block; width: 100%; padding: 11px 9px; border: 0; border-top: 1px solid #f0f1f3; background: white; text-align: left; }
.search-result:hover { background: #f8f8fa; } .search-result small { display: block; margin-bottom: 2px; color: var(--accent); font-size: 10px; font-weight: 650; }
.search-result strong { display: block; color: var(--text); font-size: 13px; } .search-result span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.empty-search { padding: 20px 9px; color: var(--muted); font-size: 12px; } .mobile-scrim { display: none; }
@media (max-width: 900px) { .site-layout { grid-template-columns: 220px minmax(0,1fr); } .sidebar { padding-left: 12px; padding-right: 12px; } }
@media (max-width: 700px) {
  .topbar { height: 60px; padding: 0 14px; } .brand-name { font-size: 13px; } .brand-mark { width: 28px; height: 28px; }
  .search-trigger { width: 36px; justify-content: center; padding: 0; } .search-trigger > span:nth-child(2), .search-trigger kbd { display: none; }
  .mobile-menu { display: flex; } .site-layout { display: block; min-height: calc(100vh - 60px); }
  .sidebar { position: fixed; z-index: 60; top: 60px; left: 0; bottom: 0; width: min(300px,86vw); height: auto; padding: 22px 14px; transform: translateX(-105%); transition: transform .22s ease; background: white; box-shadow: 10px 0 30px rgba(16,24,40,.1); }
  body.nav-open .sidebar { transform: translateX(0); }
  .mobile-scrim { position: fixed; z-index: 50; inset: 60px 0 0; background: rgba(16,24,40,.28); } body.nav-open .mobile-scrim { display: block; }
  .main-content { padding: 26px 18px 42px; } .page-header { margin-bottom: 22px; padding-bottom: 18px; }
  .page-header h1 { font-size: 31px; } .page-header .page-deck { font-size: 13px; }
  .content-grid, .resource-grid { grid-template-columns: 1fr; } .section-card { grid-template-columns: 28px minmax(0,1fr) 20px; gap: 11px; padding: 16px 14px; }
  .section-card-content strong { font-size: 15px; } .section-card-content span { font-size: 11px; } .home-intro { margin-top: 8px; }
  .page-content h2 { font-size: 19px; margin-top: 29px; } .page-content p.lead { font-size: 14px; }
  .page-nav-bottom { margin-top: 30px; } .search-layer { padding-top: 8vh; } .search-dialog-head { padding: 17px 16px 12px; }
  .search-input-wrap { margin: 0 16px; } .search-meta { padding-left: 17px; padding-right: 17px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
