:root {
  --ink: #18312c;
  --muted: #5e6e69;
  --paper: #fbfaf6;
  --forest: #173f35;
  --sage: #dbe8df;
  --orange: #d68146;
  --line: #dfe5df;
  --white: #fff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: #286c5b; text-underline-offset: 3px; }
div.document {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 54px;
}
div.documentwrapper { float: none; width: auto; grid-column: 1; }
div.bodywrapper { margin: 0; }
div.body { min-width: 0; max-width: 880px; padding: 52px 0 80px; }
div.sphinxsidebar {
  float: none;
  width: auto;
  margin: 0;
  padding: 42px 0;
  font-size: .9rem;
  grid-column: 2;
}
div.sphinxsidebarwrapper { position: sticky; top: 24px; }
div.sphinxsidebar h3 { margin-top: 1.5rem; color: var(--forest); font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; }
div.sphinxsidebar ul { list-style: none; padding: 0; }
div.sphinxsidebar li { margin: .55rem 0; }
div.sphinxsidebar a { color: var(--muted); text-decoration: none; }
div.related {
  width: 100%;
  background: var(--forest);
  color: var(--white);
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
}
div.related ul { min-height: 62px; display: flex; align-items: center; gap: 20px; }
div.related li.right { display: none; }
div.related a { color: var(--white); text-decoration: none; font-weight: 650; }
div.footer { display: none; }
h1 { display: none; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.05; letter-spacing: -.04em; color: var(--forest); }
.section > h2 { margin-top: 3.5rem; font-size: 1.8rem; letter-spacing: -.02em; }
.section > h3 { margin-top: 2.2rem; font-size: 1.25rem; }
.hero {
  padding: clamp(28px, 5vw, 62px);
  border-radius: 28px;
  color: white;
  background: radial-gradient(circle at 90% 0%, #2e6a59 0, transparent 38%), var(--forest);
  box-shadow: 0 24px 70px rgba(23, 63, 53, .16);
}
.hero h2 { color: white; margin: 14px 0 20px; max-width: 780px; }
.hero p { max-width: 700px; color: #e5efea; font-size: 1.1rem; }
.eyebrow { color: var(--orange); font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-block; padding: 11px 17px; border-radius: 999px; text-decoration: none; font-weight: 750; }
.button.primary { background: var(--orange); color: #1f281f; }
.button.secondary { border: 1px solid #719388; color: white; }
.metric-grid, .role-grid, .scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.metric, .role-grid article, .scenario-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.metric strong { display: block; color: var(--forest); font-size: 1.7rem; }
.metric span { color: var(--muted); font-size: .9rem; }
.flow { display: flex; align-items: stretch; gap: 8px; margin: 28px 0; }
.flow-step { flex: 1; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 16px; display: flex; gap: 10px; }
.flow-step b { display: grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--orange); color: white; }
.flow-step strong, .flow-step span { display: block; }
.flow-step span { font-size: .82rem; color: var(--muted); }
.flow-step strong { color: var(--ink); font-size: .95rem; margin-bottom: 4px; }
.flow-arrow { align-self: center; color: var(--orange); font-weight: 900; }
.page-intro { padding: 18px 0 24px; border-bottom: 1px solid var(--line); }
.page-intro h2 { margin: 10px 0 12px; }
.page-intro p { color: var(--muted); font-size: 1.1rem; max-width: 740px; }
.scenario-grid { grid-template-columns: repeat(2, 1fr); }
.scenario-grid span { color: var(--orange); font-size: .78rem; font-weight: 800; }
.scenario-grid h3, .role-grid h3 { margin: 6px 0; }
.scenario-grid p, .role-grid p { color: var(--muted); margin-bottom: 0; }
.role-grid { grid-template-columns: repeat(4, 1fr); }
.role-grid article > div { display: inline-block; padding: 4px 9px; border-radius: 999px; background: var(--sage); font-size: .72rem; font-weight: 800; }
.use-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.use-case-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.use-case-grid h3 { margin: 8px 0; color: var(--forest); font-size: 1.2rem; }
.use-case-grid h4 { margin: 18px 0 6px; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.use-case-grid p, .use-case-grid li { color: var(--muted); font-size: .9rem; }
.use-case-grid ul { margin: 8px 0 0; padding-left: 18px; }
.use-case-number { color: var(--orange); font-size: .75rem; font-weight: 850; letter-spacing: .08em; }
.mock-window { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: white; box-shadow: 0 18px 50px rgba(23,63,53,.08); margin: 24px 0; }
.mock-title { padding: 18px; font-weight: 800; background: var(--forest); color: white; }
.mock-title span { float: right; color: #bdd3cb; font-size: .8rem; }
.mock-filters, .mock-row { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.mock-filters span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .8rem; }
.mock-row { grid-template-columns: 1fr 1.3fr 1fr 1fr; }
.mock-row.head { background: #f1f5f1; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.pill { width: fit-content; padding: 3px 8px; border-radius: 999px; font-size: .72rem; }
.pill.amber { background: #f8e7d5; color: #824815; }
.pill.gray { background: #edf0ee; color: #58615d; }
.bar-demo { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 18px; margin: 24px 0; }
.bar-demo div { display: grid; grid-template-columns: 130px 1fr 70px; gap: 12px; align-items: center; margin: 12px 0; font-size: .82rem; }
.bar-demo i { width: var(--w); height: 18px; border-radius: 4px; background: linear-gradient(90deg, var(--forest), #65a08e); }
.admonition { margin: 28px 0; padding: 18px 20px; border: 0; border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; background: #f5ebdf; }
.admonition .admonition-title { margin: 0 0 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; font-size: .72rem; }
code, tt { color: var(--forest); background: var(--sage); }

@media (max-width: 820px) {
  div.document { display: block; width: min(100% - 28px, 760px); }
  div.sphinxsidebar { display: none; }
  div.body { padding-top: 28px; }
  .metric-grid, .role-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { display: grid; grid-template-columns: 1fr; }
  .flow-arrow { text-align: center; transform: rotate(90deg); }
}
@media (max-width: 540px) {
  .metric-grid, .role-grid, .scenario-grid { grid-template-columns: 1fr; }
  .use-case-grid { grid-template-columns: 1fr; }
  .mock-filters { grid-template-columns: 1fr; }
  .mock-row { grid-template-columns: 1fr 1fr; }
  .bar-demo div { grid-template-columns: 100px 1fr; }
  .bar-demo b { display: none; }
}
