/* Public product roadmap (/roadmap/).Scoped with .rm- so no other editorial
   page changes. Night Shift 1.6 rules: crisp 1px hairlines, subtle surface
   elevation, zero neon glow, zero muddy olive washes, tabular numerals. */
.rm-page {
  --rm-well: light-dark(#eff1ec, #15161b);
  --rm-card: light-dark(#fcfdfb, #1b1d23);
  --rm-elevated: light-dark(#f6f7f4, #22252d);
  --rm-code-bg: light-dark(#ebede7, #252831);
  --rm-portrait-bg: light-dark(#e4e7df, #2a2d37);
  --rm-portrait-fg: light-dark(#4d5347, #c5c9d6);
}
.rm-hero {
  max-width: 1080px;
  padding: 28px 0 40px;
}
.rm-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font:
    11px/1.6 ui-monospace,
    monospace;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.rm-meta-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rm-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccff00;
  flex: none;
}
.rm-meta-dot-neutral {
  background: var(--muted);
}
.rm-notice {
  max-width: 820px;
  margin-top: 22px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--panel-line);
  border-radius: 0 12px 12px 0;
  background: var(--rm-card);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}
.rm-notice strong {
  color: var(--text);
  font-weight: 600;
}
.rm-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  padding-top: 36px;
}
.rm-toc ol {
  list-style: none;
  padding-left: 0;
  margin: 0 0 24px;
  counter-reset: rm-toc;
}
.rm-toc li {
  counter-increment: rm-toc;
  padding: 0;
  margin: 0;
}
.rm-toc li a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
  transition: color 140ms var(--ease);
}
.rm-toc li:last-child a {
  border-bottom: 0;
}
.rm-toc li a::before {
  content: "0" counter(rm-toc);
  font:
    10.5px/1 ui-monospace,
    monospace;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  flex: none;
}
.rm-toc li a:hover {
  color: var(--text);
}
.rm-toc li a:hover::before {
  color: var(--acid);
}
.rm-copy {
  min-width: 0;
  font-size: 16px;
  line-height: 1.75;
}
.rm-copy > section {
  scroll-margin-top: 32px;
}
.rm-copy code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--rm-code-bg);
  color: var(--text);
  overflow-wrap: anywhere;
}
.rm-lead-prose {
  max-width: 66ch;
}
/* Status pills: active Current Focus uses full-strength acid (#ccff00 / #171d04);
   subsequent waves step down cleanly in neutral hairline hierarchy. */
.rm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font:
    600 11px/1.15 ui-monospace,
    monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  flex: none;
}
.rm-pill-current {
  background: #ccff00;
  border: 1px solid #ccff00;
  color: #171d04;
}
.rm-pill-debut {
  background: var(--rm-elevated);
  border: 1px solid var(--panel-line);
  color: var(--text);
}
.rm-pill-post {
  background: transparent;
  border: 1px solid var(--panel-line);
  color: var(--prose);
}
.rm-pill-future {
  background: transparent;
  border: 1px dashed var(--panel-line);
  color: var(--muted);
}
/* At-a-glance 4-phase Bento index */
.rm-glance {
  margin: 0 0 48px;
}
.rm-section-kicker {
  font:
    11px/1.4 ui-monospace,
    monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.rm-glance-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
}
.rm-copy .rm-glance-head h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
.rm-glance-sub {
  font:
    11px/1.4 ui-monospace,
    monospace;
  color: var(--muted);
  margin: 0;
}
.rm-glance-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  overflow: hidden;
}
.rm-glance-grid li {
  margin: 0;
  padding: 0;
  background: var(--rm-card);
  display: flex;
}
.rm-glance-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 18px 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: background-color 140ms var(--ease);
}
.rm-glance-tile:hover {
  background: var(--rm-elevated);
}
.rm-glance-tile:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: -2px;
}
.rm-glance-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rm-phase-idx {
  font:
    600 12px/1 ui-monospace,
    monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.rm-glance-tile[data-status="current"] .rm-phase-idx {
  color: var(--acid);
}
.rm-glance-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}
.rm-glance-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
/* Why BotBento 3-column trade-off Bento matrix */
.rm-why {
  margin: 0 0 48px;
}
.rm-copy .rm-why h2,
.rm-copy .rm-gates h2 {
  font-size: clamp(24px, 2.5vw, 31px);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.rm-tradeoffs {
  list-style: none;
  margin: 22px 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.rm-tradeoffs li {
  margin: 0;
  padding: 20px 20px 22px;
  background: var(--rm-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rm-tradeoff-num {
  font:
    11px/1 ui-monospace,
    monospace;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.rm-tradeoffs strong {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--text);
}
.rm-tradeoffs p {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted);
}
.rm-synthesis {
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  background: var(--rm-well);
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--prose);
}
.rm-gates {
  padding-top: 32px;
  margin: 0 0 36px;
  border-top: 1px solid var(--line);
}
/* Connected Phase Timeline Cards */
.rm-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 34px;
}
.rm-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 26px;
  bottom: 26px;
  width: 1px;
  background: var(--line);
}
.rm-phase {
  position: relative;
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  background: var(--rm-card);
  padding: 26px 26px 24px;
  scroll-margin-top: 28px;
}
.rm-phase[data-status="current"] {
  border-color: light-dark(#2b35194d, #4c515f);
}
.rm-phase::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 31px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--panel-line);
  box-sizing: border-box;
}
.rm-phase[data-status="current"]::before {
  background: #ccff00;
  border-color: #ccff00;
}
.rm-phase[data-status="debut"]::before {
  border-color: var(--text);
}
.rm-phase-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.rm-phase-heading {
  min-width: 0;
  flex: 1 1 320px;
}
.rm-phase-tag {
  display: block;
  font:
    11px/1.2 ui-monospace,
    monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.rm-phase[data-status="current"] .rm-phase-tag {
  color: var(--acid);
}
.rm-copy .rm-phase-head h2 {
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.22;
  margin: 0;
  color: var(--text);
}
.rm-phase-intro {
  margin: 0 0 20px;
  max-width: 66ch;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--prose);
}
/* Capability Bento Grids (hairline-divided flat cells, zero nested shadows) */
.rm-cap-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.rm-cap-grid > li {
  margin: 0;
  padding: 18px 18px 20px;
  background: var(--rm-well);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.rm-cap-grid > li.rm-cap-wide {
  grid-column: 1 / -1;
}
.rm-cap-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rm-cap-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--rm-card);
  color: var(--text);
  flex: none;
}
.rm-cap-grid > li strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--text);
}
.rm-cap-grid > li p {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted);
}
.rm-cap-grid > li a {
  color: var(--text);
  text-decoration-color: var(--panel-line);
}
.rm-cap-grid > li a:hover {
  color: var(--acid);
}
.rm-principle {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--acid);
  background: var(--rm-well);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--prose);
}
.rm-principle strong {
  color: var(--text);
  font-weight: 600;
}
/* Visual Architecture Callouts (Pure HTML/SVG + Scoped CSS) */
.rm-arch-card {
  margin: 20px 0 0;
  padding: 20px;
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  background: var(--rm-well);
}
.rm-arch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 16px;
}
.rm-arch-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
}
.rm-arch-kicker {
  font:
    10.5px/1.3 ui-monospace,
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Callout 1: Provenance & Deterministic Filter Strip */
.rm-prov-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto minmax(0, 1.05fr);
  gap: 12px;
  align-items: stretch;
}
.rm-prov-lane {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--rm-card);
  min-width: 0;
}
.rm-prov-visual {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.rm-human-avatar {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--panel-line);
  background: var(--rm-portrait-bg);
  color: var(--rm-portrait-fg);
  overflow: hidden;
  flex: none;
}
.rm-bot-cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rm-botface-svg {
  display: block;
  width: 38px;
  height: 38px;
  flex: none;
}
.rm-prov-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rm-prov-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.rm-prov-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.rm-schema-chip {
  align-self: flex-start;
  font:
    11px/1.2 ui-monospace,
    monospace;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--rm-code-bg);
  color: var(--text);
}
.rm-prov-arrow {
  display: grid;
  place-items: center;
  color: var(--muted);
  padding: 0 2px;
}
.rm-filter-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  background: var(--rm-card);
  min-width: 0;
}
.rm-segmented {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  background: var(--rm-well);
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.rm-seg-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}
.rm-seg-item-active {
  background: var(--text);
  color: var(--bg);
}
.rm-seg-glyph-human {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  flex: none;
}
.rm-seg-glyph-bot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  border: 1.5px solid currentColor;
  transform: rotate(-6deg);
  flex: none;
}
.rm-arch-caption {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}
/* Callout 2: 3-Layer Open Source & Open-Web Bento Row */
.rm-layers-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.rm-layer-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--rm-card);
  min-width: 0;
}
.rm-layer-card[data-layer="directory"] {
  border-color: var(--panel-line);
}
.rm-layer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rm-layer-num {
  font:
    600 11px/1 ui-monospace,
    monospace;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.rm-layer-badge {
  font:
    600 10px/1.2 ui-monospace,
    monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--rm-well);
  color: var(--prose);
}
.rm-layer-card h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text);
}
.rm-layer-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--muted);
}
.rm-layer-spec {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font:
    11px/1.45 ui-monospace,
    monospace;
  color: var(--prose);
  overflow-wrap: anywhere;
}
.rm-layer-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  padding: 0 2px;
  min-width: 56px;
  text-align: center;
}
.rm-layer-bridge span {
  font:
    10px/1.2 ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
/* Footer follow-progress 2x2 Bento links */
.rm-sources {
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 32px;
}
.rm-copy .rm-sources h2 {
  font-size: 24px;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.rm-sources > p {
  max-width: 64ch;
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 20px;
}
.rm-links-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.rm-links-grid li {
  margin: 0;
  padding: 16px 18px;
  background: var(--rm-card);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.rm-links-grid strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.rm-links-grid a {
  color: var(--text);
  text-decoration-color: var(--panel-line);
}
.rm-links-grid a:hover {
  color: var(--acid);
}
.rm-copy .editorial-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
/* Responsive breakpoints: zero horizontal overflow at 1440, 768, 390, 320 */
@media (max-width: 1120px) {
  .rm-glance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rm-prov-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rm-prov-arrow {
    grid-column: 1 / -1;
    padding: 2px 0;
  }
  .rm-prov-arrow svg {
    transform: rotate(90deg);
  }
  .rm-filter-box {
    grid-column: 1 / -1;
  }
  .rm-layers-flow {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .rm-layer-bridge {
    flex-direction: row;
    min-width: 0;
    padding: 4px 0;
  }
  .rm-layer-bridge svg {
    transform: rotate(90deg);
  }
}
@media (max-width: 1000px) {
  .rm-layout {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 32px;
  }
  .rm-tradeoffs {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .rm-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 26px;
  }
  .rm-toc {
    position: static;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }
  .rm-timeline {
    padding-left: 0;
    gap: 20px;
  }
  .rm-timeline::before,
  .rm-phase::before {
    display: none;
  }
  .rm-phase {
    padding: 20px 18px;
  }
}
@media (max-width: 640px) {
  .rm-hero {
    padding: 18px 0 28px;
  }
  .rm-glance-grid,
  .rm-cap-grid,
  .rm-prov-flow,
  .rm-links-grid {
    grid-template-columns: 1fr;
  }
  .rm-arch-card {
    padding: 16px 14px;
  }
  .rm-phase {
    padding: 18px 15px;
    border-radius: 16px;
  }
  .rm-phase-head {
    gap: 10px;
  }
  .rm-synthesis {
    padding: 16px;
    font-size: 14.5px;
  }
}
@media (max-width: 360px) {
  .rm-phase {
    padding: 16px 13px;
  }
  .rm-cap-grid > li {
    padding: 15px 13px;
  }
  .rm-glance-tile {
    padding: 15px 14px;
  }
  .rm-botface-svg {
    width: 32px;
    height: 32px;
  }
  .rm-human-avatar {
    width: 38px;
    height: 38px;
  }
  .rm-seg-item {
    padding: 5px 9px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rm-toc li a,
  .rm-glance-tile {
    transition: none;
  }
}
/* Override .article-copy ul/ol left-gutter padding inside roadmap Bento grids */
.article-copy ul.rm-glance-grid,
.article-copy ul.rm-cap-grid,
.article-copy ul.rm-tradeoffs,
.article-copy ul.rm-links-grid,
.article-copy ul.rm-meta-strip,
.rm-copy ul.rm-glance-grid,
.rm-copy ul.rm-cap-grid,
.rm-copy ul.rm-tradeoffs,
.rm-copy ul.rm-links-grid {
  padding-left: 0;
  padding-inline-start: 0;
  margin-left: 0;
  list-style: none;
}
.article-copy ul.rm-glance-grid > li,
.article-copy ul.rm-cap-grid > li,
.article-copy ul.rm-tradeoffs > li,
.article-copy ul.rm-links-grid > li {
  margin-bottom: 0;
}
@media (max-width: 380px) {
  .rm-page .header {
    gap: 8px;
  }
  .rm-page .brand img {
    width: 124px;
    height: auto;
  }
  .rm-page .header nav {
    gap: 6px;
  }
  .rm-page .header nav .nav-cta {
    padding: 7px 10px;
    font-size: 12px;
  }
}
@media (max-width: 980px) {
  .rm-page .header .nav-detail {
    display: none;
  }
}
