:root {
  --docs-ink: #181818;
  --docs-muted: #5f5f5f;
  --docs-faint: #767676;
  --docs-line: #dedede;
  --docs-soft: #f5f5f5;
  --docs-paper: #ffffff;
  --docs-sidebar: 276px;
  --docs-header: 58px;
  --docs-reading: 820px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--docs-header) + 20px); }
body.docs-ready {
  --lime: #222222;
  margin: 0;
  color: var(--docs-ink);
  background: var(--docs-paper);
  font-family: Inter, "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.docs-ready a { color: inherit; text-underline-offset: 3px; }
.docs-ready a:hover { color: #000; }
.docs-ready button,
.docs-ready input { font: inherit; }
.docs-ready a:focus-visible,
.docs-ready button:focus-visible,
.docs-ready input:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.docs-ready > .topbar,
.docs-ready > .hero,
.docs-ready > .page-hero,
.docs-ready > .footer,
.docs-ready > .subpage-footer,
.docs-ready .reader-tools { display: none !important; }

.docs-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: var(--docs-header);
  display: grid;
  grid-template-columns: var(--docs-sidebar) 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--docs-line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.docs-brand {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 22px;
  border-right: 1px solid var(--docs-line);
  text-decoration: none;
  white-space: nowrap;
}

.docs-brand strong { font-size: .92rem; letter-spacing: .04em; }
.docs-brand span { color: var(--docs-muted); font-size: .73rem; }
.docs-current {
  margin: 0;
  min-width: 0;
  padding: 0 26px;
  overflow: hidden;
  color: var(--docs-muted);
  font-size: .78rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-menu {
  display: none;
  width: 38px;
  height: 38px;
  margin-left: 10px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--docs-ink);
  cursor: pointer;
}
.docs-menu svg,
.docs-search-wrap svg { width: 19px; height: 19px; }

.docs-shell { min-height: 100vh; padding-top: var(--docs-header); }
.docs-sidebar {
  position: fixed;
  inset: var(--docs-header) auto 0 0;
  z-index: 60;
  width: var(--docs-sidebar);
  padding: 18px 14px 24px;
  overflow-y: auto;
  border-right: 1px solid var(--docs-line);
  background: #fafafa;
}

.docs-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 2px 19px;
}
.docs-search-wrap > svg {
  position: absolute;
  left: 10px;
  color: var(--docs-faint);
  pointer-events: none;
}
.docs-search {
  width: 100%;
  height: 38px;
  padding: 0 42px 0 36px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  color: var(--docs-ink);
  background: white;
  font-size: .78rem;
}
.docs-search::placeholder { color: #777; }
.docs-search-wrap kbd {
  position: absolute;
  right: 8px;
  padding: 1px 5px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  color: #666;
  background: #f7f7f7;
  font: 600 .62rem/1.4 inherit;
}

.docs-nav-group + .docs-nav-group { margin-top: 22px; }
.docs-nav { display: grid; gap: 4px; }
.docs-nav-label {
  padding: 0 10px 7px;
  color: #666;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.docs-nav a {
  display: block;
  padding: 7px 10px;
  border-radius: 5px;
  color: #4d4d4d;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease;
}
.docs-nav a[hidden] { display: none !important; }
.docs-nav a:hover { color: #111; background: #eeeeee; }
.docs-nav a[aria-current] { color: #111; background: #e8e8e8; font-weight: 700; }
.docs-sidebar-note {
  margin: 28px 10px 0;
  padding-top: 16px;
  border-top: 1px solid var(--docs-line);
  color: #555;
  font-size: .65rem;
  line-height: 1.7;
}

.docs-content {
  width: calc(100% - var(--docs-sidebar));
  margin-left: var(--docs-sidebar);
  padding: 44px clamp(28px, 6vw, 92px) 70px;
}
.docs-page-meta,
.docs-on-page,
.docs-ready #main-content,
.docs-pager {
  width: min(100%, var(--docs-reading));
  margin-inline: auto;
}
.docs-page-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--docs-line);
  color: var(--docs-faint);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.docs-on-page {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--docs-line);
  color: #555;
  font-size: .72rem;
}
.docs-on-page[hidden] { display: none; }
.docs-on-page span { color: #666; font-weight: 700; }
.docs-on-page a { color: #333; text-decoration-color: #aaa; }

.docs-ready #main-content { padding: 0 0 48px; }
.docs-ready #main-content > .section[hidden] { display: none !important; }
.docs-ready #main-content > .section {
  width: 100%;
  margin: 0;
  padding: 46px 0 0;
}
.docs-ready #main-content > .docs-bundle-section + .docs-bundle-section {
  margin-top: 58px;
  padding-top: 58px;
  border-top: 1px solid var(--docs-line);
}
.docs-ready .section-head,
.docs-ready .page-section-head {
  display: block;
  margin: 0 0 34px;
  padding: 0;
  cursor: default;
}
.docs-ready .section-no,
.docs-ready .section-index {
  margin-bottom: 10px;
  padding: 0;
  color: var(--docs-faint);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.docs-ready .section h2,
.docs-ready .page-section h2 {
  max-width: 760px;
  margin: 0;
  color: #111;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: -.035em;
}
.docs-ready .lede,
.docs-ready .lead,
.docs-ready .page-section .lead {
  max-width: 720px;
  margin-top: 18px;
  color: #505050;
  font-size: 1rem;
  line-height: 1.85;
}
.docs-ready p { color: #3f3f3f; }
.docs-ready h3 { color: #1b1b1b; line-height: 1.45; letter-spacing: -.015em; }
.docs-ready small,
.docs-ready .muted { color: var(--docs-muted); }
.docs-ready .kicker,
.docs-ready .eyebrow-label,
.docs-ready .issue-number { color: #555; }

.docs-ready .card,
.docs-ready .panel,
.docs-ready .issue-card,
.docs-ready .phase,
.docs-ready .strategy-tab,
.docs-ready .strategy-detail,
.docs-ready .adjacent-gateway-card,
.docs-ready .thesis-banner,
.docs-ready .model-shell,
.docs-ready .plan-shell {
  border: 1px solid var(--docs-line);
  border-radius: 7px;
  color: var(--docs-ink);
  background: white;
  box-shadow: none;
}
.docs-ready .card-dark,
.docs-ready .panel-dark,
.docs-ready .strategy-detail,
.docs-ready .decision,
.docs-ready .architecture,
.docs-ready .adjacent-gateway-card {
  color: var(--docs-ink) !important;
  border: 1px solid #d5d5d5 !important;
  background: var(--docs-soft) !important;
  background-color: var(--docs-soft) !important;
  box-shadow: none !important;
}
.docs-ready .card-dark :is(h2, h3, h4, p, li, strong, b, small, span, a),
.docs-ready .panel-dark :is(h2, h3, h4, p, li, strong, b, small, span, a),
.docs-ready .strategy-detail :is(h2, h3, h4, p, li, strong, b, small, span, a),
.docs-ready .decision :is(h2, h3, h4, p, li, strong, b, small, span, a),
.docs-ready .architecture :is(h2, h3, h4, p, li, strong, b, small, span, a),
.docs-ready .adjacent-gateway-card :is(h2, h3, h4, p, li, strong, b, small, span, a) {
  color: var(--docs-ink) !important;
}
.docs-ready .card-dark.metric .label,
.docs-ready .card-dark.metric .source { color: #4f4f4f !important; }
.docs-ready .gateway-button {
  color: #222 !important;
  border-color: #bdbdbd !important;
  background: #fff !important;
}
.docs-ready .gateway-button:hover { border-color: #555 !important; background: #ededed !important; }
.docs-ready .axis { color: #555 !important; }
.docs-ready .check b,
.docs-ready .partner-card .stage {
  color: #fff !important;
  background: #1b1b1b !important;
}
.docs-ready .seg-saas { background: #cfcfcf !important; }
.docs-ready .legend span:nth-child(3)::before { border-color: #999 !important; background: #cfcfcf !important; }
.docs-ready .cell.hot { border-color: #777 !important; background: #e3e3e3 !important; }
.docs-ready .cell.warm { border-color: #aaa !important; background: #efefef !important; }
.docs-ready .cell.cool { border-color: #d0d0d0 !important; background: #f8f8f8 !important; }
.docs-ready .card-dark .muted,
.docs-ready .panel-dark .muted,
.docs-ready .strategy-detail .muted,
.docs-ready .decision .muted,
.docs-ready .architecture .muted,
.docs-ready .adjacent-gateway-card .muted { color: #4f4f4f !important; }
.docs-ready .panel-dark,
.docs-ready .strategy-detail,
.docs-ready .adjacent-gateway-card {
  color: var(--docs-ink) !important;
  background: var(--docs-soft) !important;
  background-color: var(--docs-soft) !important;
  border-color: #d5d5d5;
}
.docs-ready .panel-dark p,
.docs-ready .strategy-detail p,
.docs-ready .adjacent-gateway-card p { color: #444; }
.docs-ready .panel-dark .eyebrow-label,
.docs-ready .panel-dark [style*="color"] { color: #555 !important; }
.docs-ready .card,
.docs-ready .panel,
.docs-ready .issue-card { padding: 22px; }

.docs-ready .grid-4,
.docs-ready .grid-3,
.docs-ready .grid-2,
.docs-ready .layout-2,
.docs-ready .layout-3,
.docs-ready .layout-4,
.docs-ready .issue-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.docs-ready .thesis { grid-template-columns: 1fr; }
.docs-ready .thesis > div { padding: 24px; }
.docs-ready .thesis .yes {
  color: var(--docs-ink);
  background: var(--docs-soft);
}
.docs-ready .thesis .yes p { color: #3f3f3f; }
.docs-ready .thesis .yes .kicker { color: #555 !important; }
.docs-ready .big-statement { font-size: clamp(1.2rem, 2.5vw, 1.55rem); line-height: 1.55; }

.docs-ready .pill,
.docs-ready .signal,
.docs-ready .gate {
  border: 1px solid #d2d2d2;
  color: #333;
  background: #f3f3f3;
}
.docs-ready .pill.recommended,
.docs-ready .signal.recommended {
  color: #222 !important;
  border-color: #cfcfcf !important;
  background: #ededed !important;
}
.docs-ready .pill::before { background: #555; }
.docs-ready .strategy-tab {
  min-height: 0;
  padding: 18px;
}
.docs-ready .strategy-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.docs-ready .strategy-tab:hover { border-color: #8c8c8c; box-shadow: none; }
.docs-ready .strategy-tab[aria-pressed="true"] { border-color: #111; background: #f3f3f3; box-shadow: inset 3px 0 0 #111; }
.docs-ready .strategy-tab .strategy-letter { color: #fff; background: #222; }
.docs-ready .strategy-detail-grid { grid-template-columns: 1fr; }
.docs-ready .strategy-detail h3 { font-size: 1.45rem; }
.docs-ready .strategy-metric { border-color: #d4d4d4; background: white; }
.docs-ready .strategy-metric small { color: #666; }
.docs-ready .issue-meta div,
.docs-ready .plan-summary div { background: #f2f2f2; }

.docs-ready .plan-toolbar,
.docs-ready .month-control { background: #fafafa; }
.docs-ready .filter-button,
.docs-ready .view-button {
  border-color: #d0d0d0;
  border-radius: 5px;
  color: #444;
  background: white;
}
.docs-ready .filter-button:hover,
.docs-ready .view-button:hover,
.docs-ready .filter-button[aria-pressed="true"],
.docs-ready .view-button[aria-pressed="true"] {
  color: white;
  border-color: #222;
  background: #222;
}
.docs-ready .month-control input { accent-color: #222; }
.docs-ready .month-now { border-radius: 4px; color: white; background: #222; }
.docs-ready .gantt-header { background: #ededed; }
.docs-ready .gantt-cell { background: white; }
.docs-ready .gantt-cell.current-month { background: #efefef; }
.docs-ready .task-bar.done { background: #555; }
.docs-ready .task-bar.active { background: #111; outline-color: #c8c8c8; }
.docs-ready .task-bar.upcoming { background: #bcbcbc; }
.docs-ready .task-status-text.done,
.docs-ready .task-status-text.active,
.docs-ready .task-status-text.upcoming { color: #555; }
.docs-ready .wbs-group h3 { color: #333; }

.docs-ready table { font-size: .82rem; }
.docs-ready th { color: #333; background: #f4f4f4; }
.docs-ready .table-wrap,
.docs-ready .gantt-viewport { border: 1px solid var(--docs-line); border-radius: 5px; overflow-x: auto; }
.docs-ready .fit-meter i { background: #ddd; }
.docs-ready .fit-meter i.on { background: #333; }

.docs-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--docs-line);
}
.docs-pager-link {
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--docs-line);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease;
}
.docs-pager-link:hover { border-color: #999; background: #fafafa; }
.docs-pager-link.next { text-align: right; }
.docs-pager-link small { display: block; color: #666; font-size: .67rem; }
.docs-pager-link strong { display: block; margin-top: 4px; font-size: .82rem; }
.docs-overlay { display: none; }

@media (max-width: 960px) {
  .docs-header { grid-template-columns: 54px 1fr auto; }
  .docs-menu { display: grid; }
  .docs-brand { padding: 0 12px; border-right: 0; }
  .docs-brand span { display: none; }
  .docs-current { max-width: 38vw; padding: 0 14px; }
  .docs-sidebar {
    width: min(86vw, 320px);
    transform: translateX(-102%);
    transition: transform .2s ease;
    box-shadow: 12px 0 30px rgba(0, 0, 0, .08);
  }
  .docs-menu-open .docs-sidebar { transform: translateX(0); }
  .docs-overlay {
    position: fixed;
    inset: var(--docs-header) 0 0;
    z-index: 55;
    display: block;
    border: 0;
    background: rgba(0, 0, 0, .24);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .docs-menu-open .docs-overlay { opacity: 1; pointer-events: auto; }
  .docs-content { width: 100%; margin-left: 0; padding-inline: clamp(20px, 6vw, 54px); }
}

@media (max-width: 640px) {
  body.docs-ready { font-size: 15px; }
  .docs-content { padding: 28px 18px 48px; }
  .docs-on-page {
    flex-wrap: nowrap;
    margin-inline: -18px;
    padding-inline: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .docs-on-page::-webkit-scrollbar { display: none; }
  .docs-on-page span,
  .docs-on-page a { flex: 0 0 auto; }
  .docs-on-page a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid #d3d3d3;
    border-radius: 5px;
    text-decoration: none;
    background: #fafafa;
  }
  .docs-current { max-width: 42vw; font-size: .7rem; }
  .docs-ready #main-content > .section { padding-top: 34px; }
  .docs-ready #main-content > .docs-bundle-section + .docs-bundle-section { margin-top: 42px; padding-top: 42px; }
  .docs-ready .section h2,
  .docs-ready .page-section h2 { font-size: 1.85rem; }
  .docs-ready .grid-4,
  .docs-ready .grid-3,
  .docs-ready .grid-2,
  .docs-ready .layout-2,
  .docs-ready .layout-3,
  .docs-ready .layout-4,
  .docs-ready .issue-grid,
  .docs-ready .strategy-tabs,
  .docs-ready .strategy-metrics,
  .docs-ready .plan-summary { grid-template-columns: 1fr; }
  .docs-ready .month-control { grid-template-columns: 1fr; }
  .docs-ready .month-now { justify-self: start; }
  .docs-pager { grid-template-columns: 1fr; }
  .docs-pager-link.next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .docs-sidebar,
  .docs-overlay,
  .docs-nav a,
  .docs-pager-link { transition: none; }
}

@media print {
  .docs-header,
  .docs-sidebar,
  .docs-overlay,
  .docs-page-meta,
  .docs-pager { display: none !important; }
  .docs-shell { padding: 0; }
  .docs-content { width: 100%; margin: 0; padding: 0; }
  .docs-ready #main-content > .section[hidden] { display: block !important; }
  .docs-ready #main-content > .section { break-before: page; }
}

/* Editorial type system: five sizes, two weights. */
body.docs-ready,
body.docs-ready button,
body.docs-ready input {
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
}

body.docs-ready * {
  font-size: 16px !important;
  font-weight: 400 !important;
}

body.docs-ready :is(h1, h2, h3, h4, h5, h6, strong, b, th, summary),
body.docs-ready :is(.docs-brand strong, .docs-nav a[aria-current], .value, .big-number, .strategy-letter, .check b, .stage) {
  font-weight: 700 !important;
}

.docs-ready :is(p, li, button, input, label, td, .lede, .lead, .page-section .lead, .big-statement, .model-caption, .formula) {
  font-size: 16px !important;
}

.docs-ready :is(
  small, .kicker, .signal, .pill, .gate, .section-no, .section-index,
  .docs-brand, .docs-brand strong, .docs-brand span, .docs-current, .docs-search,
  .docs-search-wrap kbd, .docs-nav, .docs-nav a, .docs-sidebar-note, .docs-page-meta,
  .docs-on-page, .docs-pager-link small, .source, .footnote, .label, .time,
  .eyebrow-label, .issue-number, .role, .axis, .cite, .unit, th, td
) {
  font-size: 14px !important;
}

.docs-ready :is(h3, h4, .strategy-detail h3, .decision h3, .wbs-group h3) {
  font-size: 18px !important;
  line-height: 1.5;
}

.docs-ready .section h2,
.docs-ready .page-section h2 {
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  letter-spacing: -.02em;
}

.docs-ready :is(.value, .big-number, .big-number span) {
  font-size: 36px !important;
  font-weight: 700 !important;
  line-height: 1.25;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.docs-ready :is(.section-no, .section-index, .docs-page-meta, .docs-nav-label, .kicker, .signal, .eyebrow-label, .issue-number) {
  letter-spacing: 0;
  text-transform: none;
}

.docs-on-page { display: block; }
.docs-on-page details { width: 100%; }
.docs-on-page summary {
  min-height: 36px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #333;
  font-size: 14px;
}
.docs-on-page ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  margin: 8px 0 6px;
  padding-left: 24px;
}
.docs-on-page li { padding-left: 4px; font-size: 14px; }
.docs-on-page a { font-size: 14px; }
.docs-ready .panel-dark .issue-number { color: #555 !important; }

@media (max-width: 640px) {
  .docs-on-page {
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
  .docs-on-page ol { grid-template-columns: 1fr; }
  .docs-on-page a {
    min-height: 0;
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: underline;
  }
}
