/*
MarsDocSync:
docs:
- docs/index.html
- docs/documentation-map.html
- docs/security-governance-guide.html
- docs/adoption-guide.html
- docs/quickstart.html
- docs/install-setup-reference.html
- docs/shell-integration-reference.html
- docs/auth-credentials-reference.html
- docs/cli-reference.html
- docs/workflows.html
- docs/harness-guide.html
- docs/target-lifecycle-reference.html
- docs/bundle-reference.html
- docs/guardrails-reference.html
- docs/operations-guide.html
- docs/models-guide.html
- docs/tools-mcp-guide.html
- docs/code-intel-reference.html
- docs/roles-guide.html
- docs/documentation-sync-guide.html
- docs/configuration-reference.html
- docs/observability-guide.html
- docs/troubleshooting-guide.html
- docs/safety-quality-guide.html
- docs/release-update-guide.html
- docs/integrations-validation-guide.html
- docs/planning-delivery-guide.html
- docs/dashboard-api-reference.html
- docs/files-state-reference.html
- docs/checks-evidence-guide.html
- README.md
- docs/product-specs/product-surface.md
- docs/product-specs/documentation-site.md
- docs/features/F-015-documentation-site-information-architecture.md
- docs/references/mdn-technical-writing.md
*/
:root {
  color-scheme: dark;
  --bg: #090807;
  --paper: #161311;
  --paper-strong: #211a16;
  --paper-soft: #120f0d;
  --ink: #f4ede5;
  --muted: #b9aaa0;
  --line: #3b302b;
  --line-strong: #654234;
  --teal: #4fb7aa;
  --teal-dark: #7dd8ce;
  --coral: #d46b38;
  --blue: #8ea9d8;
  --violet: #b7a0d9;
  --amber: #f2b84b;
  --soft-teal: #132a27;
  --soft-coral: #2c1812;
  --soft-blue: #151c29;
  --code: #060504;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal-dark);
}

a,
p,
li,
dd {
  overflow-wrap: break-word;
}

code,
kbd,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

code {
  color: #d9fff9;
  background: rgba(79, 183, 170, 0.12);
  border: 1px solid rgba(79, 183, 170, 0.28);
  border-radius: 4px;
  padding: 0.08rem 0.3rem;
  overflow-wrap: anywhere;
}

a[href^="http"] {
  overflow-wrap: anywhere;
}

pre {
  margin: 0;
  overflow-x: auto;
  background: var(--code);
  color: #fff8f0;
  border-radius: 8px;
  padding: 1rem;
  line-height: 1.55;
  border: 1px solid #2b221d;
}

pre code {
  background: transparent;
  border: 0;
  color: inherit;
  overflow-wrap: normal;
  padding: 0;
}

kbd {
  display: inline-block;
  min-width: 1.8rem;
  padding: 0.12rem 0.42rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--paper);
  text-align: center;
  font-weight: 800;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--bg);
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  padding: 0.55rem clamp(1rem, 3vw, 2rem);
  background: rgba(9, 8, 7, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #d46b38, #7b2d18);
  color: #fff7ef;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(242, 184, 75, 0.18), 0 10px 26px rgba(212, 107, 56, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
}

.top-nav {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.top-nav a,
.button {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  border-radius: 8px;
  padding: 0.35rem 0.62rem;
  text-decoration: none;
  font-weight: 750;
  color: var(--ink);
  white-space: nowrap;
}

.top-nav a:hover,
.top-nav a:focus,
.top-nav a[aria-current="page"] {
  background: var(--soft-coral);
  color: #fff5ee;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 0.42rem 0.72rem;
}

.section-nav-toggle {
  display: none;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 0.55rem 0.72rem;
  text-align: left;
}

.section-nav-toggle::after {
  content: "+";
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--teal-dark);
  font-weight: 900;
}

.sidebar.is-section-nav-open .section-nav-toggle::after {
  content: "-";
}

.layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 84px;
}

.sidebar-panel,
.side-nav {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.sidebar-panel {
  padding: 1rem;
}

.search-label {
  display: block;
  font-weight: 850;
  margin-bottom: 0.4rem;
}

.search-hint {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

input[type="search"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  padding: 0.5rem 0.7rem;
  color: var(--ink);
  font: inherit;
}

.side-nav {
  display: grid;
  margin-top: 1rem;
  padding: 0.5rem;
}

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 750;
  padding: 0.42rem 0.6rem;
  text-decoration: none;
}

.side-nav a:hover,
.side-nav a:focus,
.side-nav a.is-active {
  background: var(--soft-coral);
  color: #ffe8dd;
}

main {
  min-width: 0;
}

.hero {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  min-height: auto;
  padding: clamp(1.4rem, 3.5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #1a1512, #0f0d0b);
  box-shadow: var(--shadow);
}

.hero-copy {
  min-width: 0;
}

.compact-hero {
  min-height: auto;
  grid-template-columns: minmax(0, 1fr);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--coral);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.16;
  margin: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 860px;
  font-size: 2.35rem;
  letter-spacing: 0;
}

h2 {
  font-size: 1.5rem;
  letter-spacing: 0;
}

h3 {
  font-size: 1rem;
  letter-spacing: 0;
}

.lede {
  max-width: 820px;
  color: var(--muted);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.button.primary {
  background: var(--coral);
  color: #fff7ef;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--ink);
}

.hero-figure {
  margin: 0;
}

.hero-flow {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 1rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 12%, rgba(58, 198, 181, 0.14), transparent 34%),
    linear-gradient(145deg, #171210, #0d0b0a);
  box-shadow: var(--shadow);
}

.hero-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  padding: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
}

.hero-flow li:not(:last-child)::after {
  position: absolute;
  bottom: -1.15rem;
  left: 2rem;
  width: 2px;
  height: 1.15rem;
  background: linear-gradient(var(--coral), rgba(58, 198, 181, 0.75));
  content: "";
}

.hero-flow-index {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: var(--soft-coral);
  color: #ffe8dd;
  font-size: 0.76rem;
  font-weight: 900;
}

.hero-flow strong,
.hero-flow small {
  display: block;
}

.hero-flow strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.hero-flow small {
  margin-top: 0.18rem;
  color: var(--muted);
  line-height: 1.35;
}

.hero-figure figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.doc-section {
  min-width: 0;
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.doc-section > p {
  max-width: 900px;
  color: var(--muted);
}

.doc-section h2 + p,
.doc-section h3 + p {
  margin-top: 0.75rem;
}

.concept-grid,
.workflow-list,
.reference-grid,
.trust-grid,
.reader-grid,
.lane-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.reference-stack,
.step-list {
  min-width: 0;
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.concept-grid article,
.workflow-list article,
.trust-grid article,
.lane-grid article,
.reference-stack article,
.step-list li {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--paper-strong);
}

.concept-grid article:nth-child(3n + 1) {
  border-top: 4px solid var(--teal);
}

.concept-grid article:nth-child(3n + 2) {
  border-top: 4px solid var(--coral);
}

.concept-grid article:nth-child(3n + 3) {
  border-top: 4px solid var(--blue);
}

.concept-grid p,
.workflow-list p,
.trust-grid p,
.lane-grid p,
.reader-grid small {
  color: var(--muted);
}

.workflow-list pre {
  margin-top: 0.8rem;
}

.reference-stack dl {
  min-width: 0;
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.reference-stack dt {
  min-width: 0;
  color: var(--ink);
  font-weight: 850;
}

.reference-stack dd {
  min-width: 0;
  margin: 0;
  color: var(--muted);
}

.step-list {
  list-style: none;
  padding: 0;
}

.step-list li {
  counter-increment: step-counter;
}

.step-list {
  counter-reset: step-counter;
}

.step-list h3::before {
  content: counter(step-counter) ". ";
  color: var(--coral);
}

.code-card {
  position: relative;
  margin: 1rem 0;
}

.code-card pre {
  padding-right: 5.4rem;
}

.copy-button {
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.callout {
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--soft-teal);
  padding: 1rem;
}

.source-callout {
  border: 1px solid rgba(79, 183, 170, 0.42);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(19, 42, 39, 0.92), rgba(18, 15, 13, 0.92));
  padding: 1rem;
  overflow-wrap: anywhere;
}

.doc-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  border: 1px solid rgba(242, 184, 75, 0.34);
  border-radius: 999px;
  background: rgba(242, 184, 75, 0.1);
  color: #ffd98a;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  padding: 0.24rem 0.55rem;
  text-transform: uppercase;
}

.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-grid article {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.trust-grid h3,
.lane-grid h3 {
  margin-top: 0.1rem;
}

.reader-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reader-grid a {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 1rem;
  text-decoration: none;
}

.reader-grid a:hover,
.reader-grid a:focus {
  border-color: var(--coral);
  background: var(--soft-coral);
}

.reader-grid span {
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reader-grid strong {
  font-size: 1rem;
  line-height: 1.25;
}

.reader-grid small {
  font-size: 0.92rem;
  line-height: 1.45;
}

.lane-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wide-table {
  min-width: 0;
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #211a16;
  color: #ffdccd;
  font-size: 0.9rem;
  text-transform: uppercase;
}

tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.025);
}

td:first-child {
  font-weight: 750;
}

.wide-table td[data-label]::before {
  display: none;
}

.check-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.check-list li {
  margin: 0.45rem 0;
}

.reference-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: var(--paper-strong);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.reference-grid a:hover,
.reference-grid a:focus {
  border-color: var(--coral);
  background: var(--soft-coral);
}

.is-hidden {
  display: none !important;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .top-nav {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: visible;
  }

  .site-header.has-nav-toggle .top-nav {
    display: none;
  }

  .site-header.has-nav-toggle.is-nav-open .top-nav,
  .site-header:not(.has-nav-toggle) .top-nav {
    display: grid;
  }

  .top-nav a {
    justify-content: center;
    min-height: 44px;
    padding: 0.4rem 0.35rem;
    font-size: 0.9rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: static;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .trust-grid,
  .reader-grid,
  .lane-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .layout {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0.85rem;
  }

  main {
    width: 100%;
    max-width: 100%;
  }

  .sidebar {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.85rem;
  }

  .sidebar.has-section-toggle {
    display: grid;
    gap: 0.6rem;
  }

  .section-nav-toggle {
    display: flex;
  }

  .sidebar.has-section-toggle:not(.is-section-nav-open) .sidebar-panel,
  .sidebar.has-section-toggle:not(.is-section-nav-open) .side-nav {
    display: none;
  }

  .sidebar.has-section-toggle.is-section-nav-open .sidebar-panel {
    display: block;
  }

  .sidebar.has-section-toggle.is-section-nav-open .side-nav {
    display: grid;
    margin-top: 0;
  }

  .sidebar.has-section-toggle.is-section-nav-open .sidebar-panel,
  .sidebar.has-section-toggle.is-section-nav-open .side-nav {
    max-height: min(60dvh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .doc-section,
  .hero {
    width: 100%;
    max-width: calc(100vw - 1.7rem);
    padding: 1rem;
  }

  .sidebar-panel,
  .side-nav,
  .section-nav-toggle {
    max-width: calc(100vw - 1.7rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .code-card {
    display: grid;
    gap: 0.5rem;
  }

  .code-card pre {
    padding-right: 0.85rem;
  }

  .copy-button {
    position: static;
    justify-self: start;
  }

  pre {
    padding: 0.85rem;
    font-size: 0.88rem;
  }

  .sidebar-panel {
    padding: 0.85rem;
  }

  .side-nav,
  .concept-grid,
  .workflow-list,
  .reference-grid,
  .trust-grid,
  .reader-grid,
  .lane-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  h1 {
    font-size: 1.56rem;
    line-height: 1.12;
  }

  h2 {
    font-size: 1.18rem;
  }

  h3 {
    font-size: 0.98rem;
  }

  .lede {
    font-size: 0.95rem;
  }

  .js .wide-table {
    border: 0;
    overflow: visible;
  }

  .js .wide-table table,
  .js .wide-table thead,
  .js .wide-table tbody,
  .js .wide-table tr,
  .js .wide-table th,
  .js .wide-table td {
    display: block;
  }

  .js .wide-table table {
    min-width: 0;
  }

  .js .wide-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .js .wide-table tr {
    margin: 0 0 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-strong);
  }

  .js .wide-table td {
    padding: 0.48rem 0;
    border-bottom: 0;
    background: transparent !important;
    overflow-wrap: anywhere;
  }

  .js .wide-table td + td {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .js .wide-table td[data-label]::before {
    display: block;
    margin-bottom: 0.14rem;
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1.25;
    text-transform: uppercase;
  }
}

@media (max-width: 420px) {
  .layout {
    padding: 0.65rem;
  }

  .doc-section,
  .hero {
    padding: 0.85rem;
  }

  h1 {
    font-size: 1.48rem;
  }

  h2 {
    font-size: 1.12rem;
  }

  .top-nav a {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
