@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=DM+Mono:wght@400;500&family=Inter:wght@400;500;600&display=swap');

:root {
  --doc-bg: #0c0c0b;
  --doc-surface: #151513;
  --doc-surface-2: #1b1a17;
  --doc-text: #f1eee8;
  --doc-muted: #aaa49a;
  --doc-gold: #c9a96e;
  --doc-gold-soft: rgba(201, 169, 110, .13);
  --doc-border: rgba(241, 238, 232, .11);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body.doc-body {
  margin: 0;
  color: var(--doc-text);
  background:
    radial-gradient(circle at 85% 4%, rgba(201, 169, 110, .08), transparent 28rem),
    var(--doc-bg);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.7;
}
* { box-sizing: border-box; }
a { color: inherit; }
.doc-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.doc-nav {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--doc-border);
  background: rgba(12, 12, 11, .88);
  backdrop-filter: blur(16px);
}
.doc-nav__inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.doc-brand {
  margin-right: auto; text-decoration: none; letter-spacing: .22em;
  font-size: .92rem; font-weight: 600;
}
.doc-brand span { color: var(--doc-gold); }
.doc-nav__links { display: flex; align-items: center; gap: 22px; }
.doc-nav__links a { color: var(--doc-muted); font-size: .78rem; text-decoration: none; }
.doc-nav__links a:hover, .doc-nav__links a[aria-current="page"] { color: var(--doc-text); }
.doc-nav__cta {
  border: 1px solid var(--doc-gold) !important; border-radius: 999px;
  color: var(--doc-gold) !important; padding: 7px 14px;
}
.doc-menu {
  display: none; border: 0; background: none; color: var(--doc-text);
  font-size: 1.3rem; cursor: pointer;
}
.doc-hero { padding: 86px 0 54px; border-bottom: 1px solid var(--doc-border); }
.doc-eyebrow {
  color: var(--doc-gold); font-family: "DM Mono", monospace; font-size: .7rem;
  letter-spacing: .18em; text-transform: uppercase;
}
.doc-hero h1 {
  max-width: 850px; margin: 12px 0 18px;
  font: 600 clamp(2.7rem, 7vw, 5.7rem)/.93 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.035em;
}
.doc-hero__lead { max-width: 760px; color: var(--doc-muted); font-size: 1.02rem; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 26px; color: var(--doc-muted); font-size: .76rem; }
.alpha-notice {
  margin-top: 28px; padding: 16px 18px; border: 1px solid rgba(201, 169, 110, .35);
  border-radius: 8px; background: var(--doc-gold-soft); color: #d9d2c5; font-size: .83rem;
}
.alpha-notice strong { color: var(--doc-gold); }
.doc-search { position: relative; max-width: 720px; margin-top: 30px; }
.doc-search input {
  width: 100%; border: 1px solid var(--doc-border); border-radius: 8px;
  background: var(--doc-surface); color: var(--doc-text); padding: 16px 46px 16px 17px;
  font: inherit;
}
.doc-search input:focus { outline: 1px solid var(--doc-gold); border-color: var(--doc-gold); }
.doc-search span { position: absolute; right: 17px; top: 14px; color: var(--doc-gold); }
.doc-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 64px; padding: 58px 0 90px; }
.doc-toc { align-self: start; position: sticky; top: 100px; }
.doc-toc strong {
  display: block; margin-bottom: 13px; color: var(--doc-muted);
  font-family: "DM Mono", monospace; font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
}
.doc-toc a {
  display: block; padding: 7px 0 7px 13px; border-left: 1px solid var(--doc-border);
  color: var(--doc-muted); font-size: .78rem; line-height: 1.35; text-decoration: none;
}
.doc-toc a:hover { color: var(--doc-gold); border-color: var(--doc-gold); }
.doc-content { min-width: 0; }
.doc-section { padding: 0 0 52px; margin-bottom: 52px; border-bottom: 1px solid var(--doc-border); }
.doc-section:last-child { border: 0; }
.doc-section[hidden] { display: none; }
.doc-section h2 {
  margin: 0 0 20px; font: 600 clamp(1.9rem, 4vw, 2.7rem)/1.05 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.02em;
}
.doc-section h3 { margin: 30px 0 10px; font-size: 1rem; }
.doc-section p, .doc-section li { color: var(--doc-muted); font-size: .9rem; }
.doc-section strong { color: var(--doc-text); }
.doc-section ul, .doc-section ol { padding-left: 20px; }
.doc-section li + li { margin-top: 7px; }
.doc-section a { color: var(--doc-gold); }
.doc-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.doc-card { padding: 20px; border: 1px solid var(--doc-border); border-radius: 8px; background: var(--doc-surface); }
.doc-card h3 { margin: 0 0 8px; }
.doc-card p { margin: 0; font-size: .83rem; }
.doc-callout {
  padding: 16px 18px; margin: 20px 0; border-left: 2px solid var(--doc-gold);
  background: var(--doc-gold-soft); color: var(--doc-muted); font-size: .86rem;
}
.doc-callout strong { color: var(--doc-gold); }
.doc-table-wrap { overflow-x: auto; margin: 22px 0; }
.doc-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.doc-table th, .doc-table td { padding: 12px 13px; border: 1px solid var(--doc-border); text-align: left; vertical-align: top; }
.doc-table th { color: var(--doc-text); background: var(--doc-surface-2); }
.doc-table td { color: var(--doc-muted); }
.doc-faq details { border-top: 1px solid var(--doc-border); padding: 16px 0; }
.doc-faq summary { color: var(--doc-text); cursor: pointer; font-weight: 500; }
.doc-faq details p { margin: 10px 0 0; }
.doc-empty { display: none; padding: 32px; border: 1px solid var(--doc-border); color: var(--doc-muted); }
.doc-footer { border-top: 1px solid var(--doc-border); padding: 40px 0; }
.doc-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.doc-footer h2, .doc-footer h3 { margin: 0 0 12px; }
.doc-footer h2 { font-size: 1rem; letter-spacing: .16em; }
.doc-footer h3 { color: var(--doc-muted); font: 500 .65rem "DM Mono", monospace; letter-spacing: .13em; text-transform: uppercase; }
.doc-footer p, .doc-footer a { display: block; color: var(--doc-muted); font-size: .76rem; text-decoration: none; margin: 6px 0; overflow-wrap: anywhere; }
.doc-footer a:hover { color: var(--doc-gold); }
.doc-footer__bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--doc-border); display: flex; justify-content: space-between; gap: 15px; }

@media (max-width: 820px) {
  .doc-menu { display: block; }
  .doc-nav__links {
    display: none; position: absolute; inset: 72px 0 auto; padding: 18px 20px 24px;
    flex-direction: column; align-items: flex-start; background: #10100f; border-bottom: 1px solid var(--doc-border);
  }
  .doc-nav__links.open { display: flex; }
  .doc-layout { grid-template-columns: 1fr; gap: 36px; }
  .doc-toc { position: static; column-count: 2; }
  .doc-toc strong { column-span: all; }
  .doc-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .doc-shell { width: min(100% - 28px, 1180px); }
  .doc-hero { padding-top: 56px; }
  .doc-card-grid, .doc-footer__grid { grid-template-columns: 1fr; }
  .doc-toc { column-count: 1; }
  .doc-footer__bottom { flex-direction: column; }
}
