:root {
  --docs-bg: #f7f9fc;
  --docs-surface: #ffffff;
  --docs-subtle: #f3f6fb;
  --docs-code: #101828;
  --docs-code-text: #d0d5dd;
}

.docs-page {
  background: var(--docs-bg);
}

.docs-hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--oaim-line);
  background: var(--docs-surface);
}

.docs-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  align-items: end;
}

.docs-hero h1 {
  max-width: 660px;
  margin: 0 0 18px;
  color: var(--oaim-ink);
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.docs-lead {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--oaim-slate);
  font-size: 17px;
  line-height: 1.75;
}

.docs-hero-note {
  padding: 20px;
  border: 1px solid var(--oaim-line);
  border-radius: 10px;
  color: var(--oaim-slate);
  background: var(--docs-subtle);
  font-size: 13px;
  line-height: 1.65;
}

.docs-hero-note b {
  display: block;
  margin-bottom: 8px;
  color: var(--oaim-ink);
  font-size: 14px;
}

.docs-main {
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  gap: 56px;
  padding: 52px 0 88px;
}

.docs-toc {
  position: sticky;
  top: 108px;
  align-self: start;
  padding-left: 12px;
  border-left: 1px solid var(--oaim-line);
}

.docs-toc-label {
  display: block;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.docs-toc a {
  display: block;
  margin: 2px 0;
  padding: 8px 0 8px 12px;
  border-left: 2px solid transparent;
  color: var(--oaim-slate);
  font-size: 14px;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}

.docs-toc a:hover,
.docs-toc a:focus-visible {
  border-left-color: var(--oaim-blue);
  color: var(--oaim-blue);
  outline: none;
}

.docs-section {
  margin-bottom: 24px;
  padding: 32px;
  border: 1px solid var(--oaim-line);
  border-radius: 12px;
  background: var(--docs-surface);
}

.docs-section h2 {
  margin: 0 0 14px;
  color: var(--oaim-ink);
  font-size: 26px;
  line-height: 1.25;
}

.docs-section > p {
  margin: 0 0 16px;
  color: var(--oaim-slate);
  font-size: 15px;
  line-height: 1.75;
}

.docs-section > p:last-child {
  margin-bottom: 0;
}

.docs-inline-code {
  padding: 2px 6px;
  border: 1px solid #dfe7f5;
  border-radius: 4px;
  color: var(--oaim-blue-strong);
  background: #f3f7ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .9em;
}

.docs-code {
  position: relative;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid #1d2939;
  border-radius: 9px;
  background: var(--docs-code);
}

.docs-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: #98a2b3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.docs-code-head span::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--oaim-mint);
  content: "";
}

.docs-copy {
  min-height: 40px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  color: #e4e7ec;
  background: rgba(255,255,255,.06);
  font-size: 12px;
  cursor: pointer;
}

.docs-copy:hover { background: rgba(255,255,255,.14); }
.docs-code pre { margin: 0; padding: 22px 20px; overflow-x: auto; color: var(--docs-code-text); font: 13px/1.8 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.docs-code .tag { color: #7cc4ff; }
.docs-code .attr { color: #c4b5fd; }
.docs-code .val { color: #9fe870; }

.docs-table-wrap { overflow-x: auto; margin: 18px 0 0; }
.docs-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.docs-table thead { background: var(--oaim-blue); }
.docs-table th { padding: 12px 14px; border-bottom: 0; color: #fff; text-align: left; font-weight: 700; white-space: nowrap; }
.docs-table td { padding: 15px 14px; border-bottom: 1px solid var(--oaim-line); color: var(--oaim-slate); vertical-align: top; line-height: 1.6; }
.docs-table tbody tr:hover { background: #f8fbff; }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-table td:first-child { color: var(--oaim-ink); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 13px; }
.docs-table td:nth-child(2) { color: var(--oaim-ink); white-space: nowrap; }
.docs-required, .docs-optional { display: inline-flex; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.docs-required { color: #b42318; background: #fff1f0; }
.docs-optional { color: #067647; background: #ecfdf3; }

.docs-list { margin: 0; padding: 0; list-style: none; }
.docs-list li { position: relative; margin: 12px 0; padding-left: 20px; color: var(--oaim-slate); font-size: 14px; line-height: 1.7; }
.docs-list li::before { position: absolute; top: 9px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--oaim-blue); content: ""; }

.docs-faq details { margin: 10px 0; padding: 0 18px; border-left: 3px solid var(--oaim-blue); border-radius: 0 8px 8px 0; background: var(--docs-subtle); }
.docs-faq details:last-child { margin-bottom: 0; }
.docs-faq summary { padding: 18px 30px 18px 0; color: var(--oaim-ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.docs-faq p { margin: 0; padding: 0 0 18px; color: var(--oaim-slate); font-size: 14px; line-height: 1.7; }

@media (max-width: 900px) {
  .docs-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .docs-hero-note { max-width: 520px; }
  .docs-main { grid-template-columns: 1fr; gap: 24px; }
  .docs-toc { position: static; display: flex; gap: 14px; overflow-x: auto; padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--oaim-line); }
  .docs-toc-label { display: none; }
  .docs-toc a { flex: 0 0 auto; padding: 0 0 7px; border-left: 0; border-bottom: 2px solid transparent; }
  .docs-toc a:hover, .docs-toc a:focus-visible { border-bottom-color: var(--oaim-blue); }
}

@media (max-width: 640px) {
  .docs-hero { padding: 58px 0 42px; }
  .docs-hero h1 { font-size: 36px; }
  .docs-lead { font-size: 16px; }
  .docs-main { padding: 32px 0 60px; }
  .docs-section { padding: 24px 18px; border-radius: 9px; }
  .docs-section h2 { font-size: 22px; }
  .docs-code pre { padding: 18px 16px; font-size: 12px; }
}

/* Direction 1: calm reading surface for implementation work. */
.docs-page { overflow-x: hidden; background: #fff; }
.docs-hero { padding: 72px 0 54px; background: #fff; }
.docs-hero h1 { font-size: 46px; line-height: 1.18; letter-spacing: 0; }
.docs-hero-note { border-radius: 8px; background: #f5f8fd; }
.docs-main { grid-template-columns: 176px minmax(0, 760px); gap: 52px; padding: 48px 0 80px; }
.docs-toc { top: 96px; padding-left: 0; border-left: 0; }
.docs-toc a { padding-left: 0; }
.docs-section { margin-bottom: 0; padding: 34px 0; border: 0; border-top: 1px solid var(--oaim-line); border-radius: 0; background: transparent; }
.docs-section:first-child { padding-top: 0; border-top: 0; }
.docs-section h2 { font-size: 24px; letter-spacing: 0; }
.docs-code { border-radius: 7px; }
.docs-table thead { background: #1d2939; }
.docs-faq details { border-radius: 0 6px 6px 0; }
.docs-copy:focus-visible, .docs-toc a:focus-visible { outline: 3px solid rgba(36,107,254,.24); outline-offset: 3px; }
@media (max-width: 900px) { .docs-main { grid-template-columns: 1fr; gap: 28px; }.docs-toc { padding-left: 0; scrollbar-width: none; }.docs-toc::-webkit-scrollbar { display: none; } }
@media (max-width: 640px) { .docs-hero { padding: 52px 0 36px; }.docs-hero h1 { font-size: 32px; }.docs-main { padding: 28px 0 60px; }.docs-section { padding: 28px 0; }.docs-section h2 { font-size: 22px; }.docs-hero-note { padding: 16px; }.docs-toc { gap: 12px; }.docs-toc a { font-size: 13px; } }

/* Direction 2 + 3: documentation should scan like a work surface. */
.docs-hero { border-bottom-color: #dbe4f0; }.docs-hero-inner { align-items: center; }.docs-hero-note { border-color: #dbe4f0; }.docs-main { max-width: 1120px; }.docs-toc a { min-height: 36px; display: flex; align-items: center; }.docs-section h2 { font-weight: 700; }.docs-section > p { max-width: 710px; }.docs-code { border-color: #253248; }.docs-table-wrap { border: 1px solid var(--oaim-line); border-radius: 7px; }.docs-table th { font-size: 13px; }.docs-table td { padding-block: 14px; }.docs-faq details { background: #f8fbff; }
