/* /docs/ (lab/pages/p_docs.py, 2026-10-23). The docs engine's markup (sidebar, rendered markdown, page nav, search)
   restyled for the world shell: light type on the dark glass, the neon accent for links and the active page. Replaces
   public/docs/docs.css, which is no longer loaded. Nothing here is sticky (Saife, 2026-10-23). */
.erp .dx .lwrap { max-width: 1440px; }
.erp .dx__top { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(22px, 2.6vw, 34px); }
.erp .dx__tag { font: 500 11.5px/1 var(--sc-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--neon-soft); white-space: nowrap; }
.erp .dx__crumb { flex: 1; min-width: 0; font-size: 13px; color: rgb(233 228 247 / .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erp .dx__crumb .sep { opacity: .5; padding: 0 4px; }
.erp .dx__search, .erp .dx__menu { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; cursor: pointer; font: 500 13.5px/1 inherit; font-family: inherit;
  color: rgb(233 228 247 / .78); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .16); border-radius: 12px; transition: border-color .2s, color .2s; }
.erp .dx__search { min-width: 240px; }
.erp .dx__search:hover, .erp .dx__menu:hover { border-color: var(--neon); color: #f4f3ef; }
.erp .dx__search .lbl { flex: 1; text-align: left; }
.erp .dx__search kbd { font: 500 11px/1 var(--sc-font-mono); padding: 3px 7px; border-radius: 5px; border: 1px solid rgb(255 255 255 / .2); color: rgb(233 228 247 / .6); }
.erp .dx__menu { display: none; }

.erp .dx__shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(32px, 4.5vw, 72px); align-items: start; }
.erp .dx .toc { display: none !important; }
.erp .dx .sidebar { padding: 0 20px 0 0; border-right: 1px solid rgb(255 255 255 / .1); }
.erp .nav-section { margin-bottom: 4px; }
.erp .nav-sec-btn { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border: 0; background: none; cursor: pointer; border-radius: 10px; text-align: left; color: #f4f3ef; font-family: inherit; transition: background .2s; }
.erp .nav-sec-btn:hover { background: rgb(255 255 255 / .06); }
.erp .nav-sec-btn .ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; font-size: 13px; background: rgb(154 107 255 / .14); border: 1px solid rgb(154 107 255 / .3); }
.erp .nav-sec-btn .lbl { flex: 1; font: 600 14.5px/1.3 var(--sc-font-display); letter-spacing: -.01em; }
.erp .nav-sec-btn .chev { font-size: 11px; color: rgb(233 228 247 / .55); transition: transform .25s var(--ease); }
.erp .nav-section.collapsed .chev { transform: rotate(-90deg); }
.erp .nav-section.collapsed .nav-group, .erp .nav-section.collapsed .nav-links { display: none; }
.erp .nav-group { margin: 6px 0 2px; padding-left: 10px; }
.erp .nav-group-lbl { padding: 8px 10px 4px; font: 500 11px/1.2 var(--sc-font-mono); letter-spacing: .08em; text-transform: uppercase; color: rgb(233 228 247 / .5); }
.erp .nav-links { list-style: none; margin: 0 0 0 14px; padding: 0 0 0 10px; border-left: 1px solid rgb(255 255 255 / .1); }
.erp .nav-links a { display: flex; align-items: center; min-height: 40px; padding: 6px 10px; border-radius: 8px; font-size: 14px; line-height: 1.35; color: rgb(233 228 247 / .72); text-decoration: none; transition: background .18s, color .18s; }
.erp .nav-links a:hover { background: rgb(255 255 255 / .06); color: #f4f3ef; }
.erp .nav-links a.active { background: rgb(154 107 255 / .16); color: #f4f3ef; font-weight: 600; box-shadow: inset 2px 0 0 var(--neon); }

/* the page */
.erp .dx .content { min-width: 0; }
.erp .doc-body { min-width: 0; max-width: 78ch; overflow-wrap: break-word; color: rgb(233 228 247 / .84); }
.erp .doc-body.dx-in { animation: dx-rise .5s var(--ease) both; }
@keyframes dx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.erp .doc-body h1 { margin: 0 0 16px; font: 600 clamp(30px, 3.2vw, 46px)/1.1 var(--sc-font-display); letter-spacing: -.03em; color: #f4f3ef; }
.erp .doc-body h2 { margin: clamp(52px, 5vw, 72px) 0 18px; padding-top: 24px; border-top: 1px solid rgb(244 243 239 / .16); font: 600 clamp(22px, 2vw, 28px)/1.2 var(--sc-font-display); letter-spacing: -.02em; color: #f4f3ef; }
.erp .doc-body h3 { margin: 36px 0 12px; font: 600 19px/1.3 var(--sc-font-display); letter-spacing: -.01em; color: #f4f3ef; }
.erp .doc-body h4, .erp .doc-body h5, .erp .doc-body h6 { margin: 28px 0 8px; font: 600 16px/1.3 var(--sc-font-display); color: #f4f3ef; }
.erp .doc-body p { margin: 0 0 16px; font-size: 16px; line-height: 1.7; }
.erp .doc-body h1 + p { font-size: 18.5px; color: rgb(233 228 247 / .78); margin-bottom: 28px; }
.erp .doc-body strong { color: #f4f3ef; font-weight: 600; }
.erp .doc-body a.link { color: var(--neon-soft); text-decoration: underline; text-underline-offset: 3px; }
.erp .doc-body ul, .erp .doc-body ol { margin: 0 0 18px; padding-left: 24px; font-size: 16px; line-height: 1.7; }
.erp .doc-body li { margin: 6px 0; }
.erp .doc-body hr { border: 0; border-top: 1px solid rgb(244 243 239 / .16); margin: 48px 0; }
.erp .doc-body img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid rgb(255 255 255 / .16); margin: 20px 0; }
.erp .doc-body code { font-family: var(--sc-font-mono); font-size: .88em; padding: 2px 6px; border-radius: 5px; background: rgb(154 107 255 / .14); border: 1px solid rgb(154 107 255 / .28); color: var(--lavender, #d9d2ff); }
.erp .doc-body pre { max-width: 100%; overflow-x: auto; margin: 20px 0; padding: 18px 20px; border-radius: 12px; background: #07080d; border: 1px solid rgb(255 255 255 / .14); }
.erp .doc-body pre code { display: block; padding: 0; background: none; border: 0; color: rgb(238 242 251 / .88); font-size: 13.5px; line-height: 1.75; white-space: pre; }
.erp .doc-body .table-wrap { max-width: 100%; overflow-x: auto; margin: 24px 0; border: 1px solid rgb(255 255 255 / .14); border-radius: 12px; }
/* a table wider than the phone fades at the edge with more to show (site docs.js adds tw-r / tw-l) */
.erp .doc-body .table-wrap.tw-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
.erp .doc-body .table-wrap.tw-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent); }
.erp .doc-body .table-wrap.tw-l.tw-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
.erp .doc-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.erp .doc-body th, .erp .doc-body td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgb(255 255 255 / .08); color: rgb(233 228 247 / .8); }
.erp .doc-body thead th { font: 500 11.5px/1.3 var(--sc-font-mono); letter-spacing: .06em; text-transform: uppercase; color: rgb(233 228 247 / .6); background: rgb(255 255 255 / .04); }
.erp .doc-body tbody tr:last-child td { border-bottom: 0; }
.erp .doc-body td code { white-space: nowrap; }
.erp .doc-body blockquote { margin: 22px 0; padding: 14px 20px; border-radius: 10px; background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .12); color: rgb(233 228 247 / .82); }
.erp .doc-body blockquote p { margin: 4px 0; }
.erp .callout { position: relative; margin: 22px 0; padding: 14px 18px 14px 48px; border-radius: 10px; border: 1px solid; font-size: 15px; }
.erp .callout::before { position: absolute; left: 16px; top: 14px; font-size: 17px; line-height: 1.3; }
.erp .callout p { margin: 4px 0; font-size: 15px; }
.erp .callout .ttl { display: block; font-weight: 600; margin-bottom: 4px; }
.erp .callout.note { background: rgb(154 107 255 / .12); border-color: rgb(154 107 255 / .35); color: #e4dcff; }
.erp .callout.tip { background: rgb(74 222 128 / .1); border-color: rgb(74 222 128 / .32); color: #c8f5d8; }
.erp .callout.warning { background: rgb(240 178 122 / .12); border-color: rgb(240 178 122 / .4); color: #f7d9bb; }
.erp .callout.danger { background: rgb(255 143 132 / .12); border-color: rgb(255 143 132 / .4); color: #ffd0cb; }
.erp .callout.info { background: rgb(96 165 250 / .12); border-color: rgb(96 165 250 / .35); color: #cfe3ff; }
.erp .callout.note::before { content: "\1F4A1"; } .erp .callout.tip::before { content: "\2705"; } .erp .callout.warning::before { content: "\26A0\FE0F"; }
.erp .callout.danger::before { content: "\26D4"; } .erp .callout.info::before { content: "\2139\FE0F"; }
.erp .doc-body .badge { display: inline-block; vertical-align: middle; padding: 2px 8px; border-radius: 5px; font: 500 11px/1.5 var(--sc-font-mono); letter-spacing: .08em; text-transform: uppercase; background: rgb(154 107 255 / .16); color: var(--lavender, #d9d2ff); border: 1px solid rgb(154 107 255 / .3); }
.erp .doc-body .badge.role { background: rgb(96 165 250 / .14); color: #cfe3ff; border-color: rgb(96 165 250 / .32); }
.erp .doc-body .badge.plan { background: rgb(240 178 122 / .14); color: #f7d9bb; border-color: rgb(240 178 122 / .36); }
.erp .doc-body p > a.link:only-child[href^="/architecture/"] { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: rgb(154 107 255 / .22); border: 1px solid rgb(154 107 255 / .5); color: #f4f3ef; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.erp .doc-body p > a.link:only-child[href^="/architecture/"]::after { content: "\2192"; }

.erp .page-nav { display: flex; gap: 20px; margin-top: 72px; padding-top: 36px; border-top: 1px solid rgb(244 243 239 / .16); max-width: 78ch; }
.erp .page-nav a { flex: 1; min-width: 0; padding: 18px 20px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .14); background: rgb(255 255 255 / .04); text-decoration: none; transition: border-color .25s; }
.erp .page-nav a:hover { border-color: var(--neon); }
.erp .page-nav a.next { text-align: right; }
.erp .page-nav .dir { font: 500 11px/1.2 var(--sc-font-mono); letter-spacing: .08em; text-transform: uppercase; color: rgb(233 228 247 / .55); }
.erp .page-nav .ttl { margin-top: 8px; font: 600 16px/1.3 var(--sc-font-display); color: #f4f3ef; }
.erp .edit-note { margin: 28px 0 0; font: 500 11.5px/1.4 var(--sc-font-mono); letter-spacing: .06em; color: rgb(233 228 247 / .45); }
.erp .doc-loading { padding: 32px 0; color: rgb(233 228 247 / .6); }
.erp .dx-close { padding: 0; background: none; }

/* search */
.search-overlay { position: fixed; inset: 0; z-index: 120; display: none; align-items: flex-start; justify-content: center; padding: clamp(60px, 12vh, 120px) 20px; background: rgb(8 9 13 / .72); }
.search-overlay.open { display: flex; }
.search-box { width: 100%; max-width: 600px; overflow: hidden; border-radius: 16px; background: linear-gradient(160deg, #14161f, #0b0c12); border: 1px solid rgb(154 107 255 / .3); box-shadow: 0 30px 80px rgb(0 0 0 / .55); }
.search-box input { width: 100%; min-height: 56px; padding: 0 24px; border: 0; border-bottom: 1px solid rgb(255 255 255 / .1); background: none; color: #f4f3ef; font: 400 17px/1.4 inherit; font-family: inherit; outline: none; }
.search-box input::placeholder { color: rgb(233 228 247 / .5); }
.search-results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.search-results a { display: block; padding: 12px; border-radius: 10px; text-decoration: none; }
.search-results a:hover, .search-results a.sel { background: rgb(154 107 255 / .16); }
.search-results .r-ttl { font: 600 15px/1.3 var(--sc-font-display); color: #f4f3ef; }
.search-results .r-path { margin-top: 3px; font: 500 11px/1.3 var(--sc-font-mono); letter-spacing: .08em; text-transform: uppercase; color: rgb(233 228 247 / .5); }
.search-empty { padding: 32px; text-align: center; color: rgb(233 228 247 / .6); font-size: 14px; }
.sidebar-backdrop { display: none; }

@media (max-width: 960px) {
  .erp .dx__shell { grid-template-columns: minmax(0, 1fr); }
  .erp .dx__crumb { display: none; }
  .erp .dx__top { flex-wrap: wrap; }
  .erp .dx__tag { flex: 1; }
  .erp .dx__search { min-width: 0; } .erp .dx__search .lbl, .erp .dx__search kbd { display: none; }
  .erp .dx__menu { display: inline-flex; }
  .erp .dx .sidebar { display: none; border-right: 0; padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid rgb(255 255 255 / .12); }
  .erp .dx .sidebar.open { display: block; }
  .erp .page-nav { flex-direction: column; } .erp .page-nav a.next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .erp .doc-body.dx-in { animation: none; } }

/* variety pass 2026-10-25: a typed question lights the matching doc title in a grid of doc titles (Rippling typed prompt,
   https://www.rippling.com/). Titles are real docs pages and link to them. */
.erp .dx-find { padding-block: clamp(36px, 5vw, 72px) clamp(8px, 2vw, 24px); }
.erp .dx-ask__q { display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 0; padding: 18px 22px; border-radius: 16px; color: #f4f3ef;
  background: linear-gradient(180deg, rgb(36 29 62 / .9), rgb(14 11 26 / .94)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), 0 24px 50px -28px rgb(0 0 0 / .9); font: 500 clamp(18px, 1.8vw, 24px)/1.3 var(--sc-font-text); }
.erp .dx-ask__q svg { flex: none; color: #c9b6ff; }
.erp .dx-ask__q i { width: 2px; height: 1.2em; background: #c9b6ff; animation: dx-blink .9s steps(2) infinite; }
@keyframes dx-blink { 50% { opacity: 0; } }
.erp .dx-ask__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.erp .dx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vh, 34px) clamp(20px, 3vw, 44px); margin: clamp(40px, 6vh, 64px) 0 0; padding: 0; list-style: none; }
.erp .dx-grid a { display: block; padding: 4px 0; color: #8f88a6; font: 500 clamp(18px, 1.7vw, 24px)/1.25 var(--sc-font-display); letter-spacing: -.02em; text-decoration: none; transition: color .5s, transform .5s cubic-bezier(.16, 1, .3, 1); }
.erp .dx-grid a:hover, .erp .dx-grid a:focus-visible { color: #f4f3ef; }
.erp .dx-grid a.on { color: #fff; transform: translateX(8px); text-shadow: none; }
.erp .dx-grid a.on::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 12px; border-radius: 50%; background: #9a6bff; vertical-align: 2px; }
@media (max-width: 960px) { .erp .dx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .erp .dx-ask__q { padding: 14px 16px; } }
@media (prefers-reduced-motion: reduce) { .erp .dx-ask__q i { animation: none; } .erp .dx-grid a { transition: none; } }
