/* RPGMotor Works brand guide, styled to the live Fulcrum app.
   Every value in the SHELL block is copied from Fulcrum's own stylesheet
   (rpg.fulcrum.marketing, 2026-11-02): sidebar, nav groups, active item,
   header, page title. The CONTENT block restyles the guide's components in
   Fulcrum's language: white 16px cards on #F7F6F2, Newsreader section heads,
   tracked uppercase labels, round buttons, Fulcrum tables. */
@import url("./tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: 24px; scrollbar-color: rgba(var(--str-rgb), .25) transparent; }
body {
  margin: 0; font-family: var(--font-text); background-color: var(--void); color: var(--text-1);
  font-size: 16px; line-height: 1.6; letter-spacing: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--azure); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; text-decoration: inherit; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; min-width: 0; overflow-wrap: break-word; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: rgba(var(--str-rgb), .25); border-radius: 2px; }
.sr-only, .sr-k, .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: -1px; }

/* ============================================================ SHELL (Fulcrum) */
.fx-app { display: flex; min-height: 100dvh; }
.fx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.sidebar-wrapper {
  position: sticky; top: 0; height: 100dvh; flex: none;
  display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(247,246,242,.25) transparent;
  width: 232px; padding: 18px 0 10px;
  background: #1b1c1a; border-right: 1px solid var(--glass-stroke);
  color-scheme: dark;
  --text-0: #f7f6f2; --text-1: #e4e2dc; --text-2: #b9b8b2; --text-3: #9a9992;
  --str-rgb: 247, 246, 242; --line: #f7f6f21a; --hover: #f7f6f212; --field: #f7f6f20f;
  --glass-stroke: #f7f6f21f; --hairline-strong: #f7f6f21f;
  color: #e4e2dc;
}
.sidebar-wrapper::-webkit-scrollbar { width: 4px; }
.sidebar-wrapper::-webkit-scrollbar-track { background: 0 0; }

.nav-brand { border-bottom: 1px solid var(--hairline-strong); padding: 0 20px 18px; }
.nav-brand a { display: block; }
.nav-logo { width: 100%; height: auto; object-fit: contain; object-position: left; }
.nav-brand .meta { margin-top: 12px; }
/* client logo first, a small "Powered by Fulcrum" under it */
.nav-brand .nav-logo { width: 100%; max-width: 191px; }
.nav-brand .powered { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 12px; font-weight: 500; letter-spacing: .02em; color: #9a9992; text-decoration: none; }
.nav-brand .powered img { height: 13px; width: auto; opacity: .9; transition: opacity .15s; }
.nav-brand .powered:hover { color: #f7f6f2; }
.nav-brand .powered:hover img { opacity: 1; }
.nav-brand .meta-k { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #b9b8b2; line-height: 18px; }
.nav-brand .meta-v { font-size: 13px; color: #f7f6f2; margin-top: 2px; line-height: 1.375; text-wrap: balance; }

.sb-search { padding: 12px 12px 8px; }
.sb-search label { position: relative; display: flex; align-items: center; }
.sb-search .sb-ico { position: absolute; left: 10px; color: #b9b8b2; pointer-events: none; }
.sb-search input {
  width: 100%; padding: 6px 24px 6px 28px; font-size: 12px; line-height: 19px;
  background: rgba(247,246,242,.03); border: 1px solid rgba(247,246,242,.05); border-radius: 4px;
  color: #efeee9;
}
.sb-search input::placeholder { color: #9a9992; }
.sb-search input:focus { outline: none; border-color: rgba(226,35,26,.3); }

.sb-nav { flex: 1; display: flex; flex-direction: column; }
.nav-section {
  letter-spacing: .14em; text-transform: uppercase; color: #b9b8b2; cursor: pointer;
  background: 0 0; border: 0; justify-content: space-between; align-items: center;
  width: 100%; padding: 20px 12px 8px; font-size: 12px; font-weight: 600; display: flex; line-height: 19px;
}
.nav-section:hover { color: #f7f6f2; }
.nav-section .truncate { white-space: normal; text-align: left; min-width: 0; }
.nav-section .ns-ico { color: #b9b8b2; flex: none; margin-left: 8px; }
.nav-section[aria-expanded="true"] .ns-ico .v { display: none; }

.nav-collapse { transition: grid-template-rows var(--motion-med) var(--ease-out), opacity var(--motion-med) var(--ease-soft); grid-template-rows: 1fr; display: grid; }
.nav-collapse[data-open=false] { opacity: 0; grid-template-rows: 0fr; }
.nav-collapse > .nav-collapse-inner { min-height: 0; overflow: hidden; }
.nav-collapse[data-open=false] > .nav-collapse-inner { visibility: hidden; transition: visibility 0s linear var(--motion-med); }

.nav-item {
  color: #f7f6f2; text-align: left; background: 0 0;
  border-left: 2px solid #0000; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  width: 100%; padding: 7px 20px; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 22px;
  position: relative; isolation: isolate; text-decoration: none;
  transition: color var(--motion-fast) var(--ease-soft), background-color var(--motion-fast) var(--ease-soft);
}
.nav-item { align-items: start; padding-top: 8px; padding-bottom: 8px; line-height: 20px; }
.nav-item .label { min-width: 0; white-space: normal; overflow-wrap: break-word; text-wrap: pretty; }
.nav-item .kbd { line-height: 20px; }
.nav-item:hover { color: #fff; background: var(--hover); }
.nav-item[aria-current=true] { color: #fff; }
.nav-item:before, .nav-item:after { content: ""; pointer-events: none; position: absolute; }
.nav-item:before { transform-origin: 50%; width: 2px; background: #ff6b61; top: 0; bottom: 0; left: -2px; transform: scaleY(0); transition: transform var(--motion-med) var(--ease-out); }
.nav-item:after { z-index: -1; opacity: 0; background: linear-gradient(90deg, #e2231a24, #0000 60%); inset: 0; transition: opacity var(--motion-med) var(--ease-out); }
.nav-item[aria-current=true]:before { transform: scaleY(1); }
.nav-item[aria-current=true]:after { opacity: 1; }
.nav-item .kbd { color: var(--text-3); letter-spacing: .04em; font-variant-numeric: tabular-nums; font-size: 12px; }
.nav-item[aria-current=true] .kbd { color: var(--text-1); }
.nav-item:focus-visible { outline: 2px solid #ff6b61; outline-offset: -2px; border-radius: 0; }

.nav-foot { border-top: 1px solid var(--hairline-strong); flex-direction: column; gap: 10px; margin-top: auto; padding: 12px 20px; display: flex; }
.nav-connect {
  display: flex; align-items: center; justify-content: center; height: 32px; border-radius: 8px;
  font-size: 12px; font-weight: 500; color: #f7f6f2; border: 1px solid rgba(247,246,242,.12); background: rgba(247,246,242,.03);
}
.nav-connect:hover { border-color: rgba(255,107,97,.5); color: #fff; }
.foot-k { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #9a9992; line-height: 18px; }
.foot-v { font-size: 12px; color: #b9b8b2; letter-spacing: .3px; line-height: 18px; margin-top: -8px; }

/* header */
.app-shell-header {
  position: sticky; top: 0; z-index: 30; flex: none;
  background: color-mix(in srgb, var(--ink-900) 62%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(27,28,26,.05);
  padding-top: env(safe-area-inset-top);
}
.hdr-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 24px; min-height: 85px; }
.hdr-mobile { display: none; }
.topnav-page-title {
  font-family: var(--font-display); font-optical-sizing: auto; font-size: 44px; font-weight: 400;
  letter-spacing: -.02em; line-height: 1.02; color: var(--text-0);
  white-space: normal; text-wrap: balance; overflow-wrap: break-word; padding: 10px 0; min-width: 0; flex: 1;
}
.hdr-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr-client { height: 26px; width: auto; margin-right: 8px; }
.hdr-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 12px; font-weight: 500; line-height: 19px;
  border-radius: 8px; border: 1px solid rgba(27,28,26,.05); background: rgba(27,28,26,.02); color: var(--body); white-space: nowrap;
  transition: color .15s, border-color .15s, background-color .15s;
}
.hdr-btn:hover { color: var(--azure); border-color: rgba(226,35,26,.2); background: rgba(226,35,26,.05); }

/* main panel */
.pr-page { flex: 1; min-width: 0; padding: 16px 24px 112px; }
.as-panel { max-width: none; }
.tab-pane { animation: uxPaneIn var(--motion-med) var(--ease-out); }
@keyframes uxPaneIn { 0% { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mobile-page-title { display: none; }

@media (max-width: 1279px) { .topnav-page-title { font-size: 34px; } }
@media (max-width: 1023px) { .topnav-page-title { font-size: 28px; } }

/* phones: Fulcrum's top bar (hamburger + wordmark) and full-screen drawer */
.pr-scrim, .drawer-close { display: none; }
@media (max-width: 767px) {
  .sidebar-wrapper {
    position: fixed; inset: 0; width: 100%; height: 100dvh; z-index: 400;
    padding: max(64px, calc(env(safe-area-inset-top) + 56px)) 0 calc(env(safe-area-inset-bottom) + 24px);
    transform: translateX(-102%); transition: transform var(--motion-med) var(--ease-out);
    border-right: 0; box-shadow: inset 0 1px rgba(247,246,242,.08);
  }
  .sidebar-wrapper.open { transform: none; }
  .sidebar-wrapper .nav-brand { padding: 0 24px 20px; }
  .sidebar-wrapper .sb-search { padding-left: 20px; padding-right: 20px; }
  .sidebar-wrapper .sb-search input { font-size: 16px; }
  .sidebar-wrapper .nav-section { padding: 16px 24px 8px; }
  .sidebar-wrapper .nav-item { border-left-width: 3px; gap: 16px; padding: 15px 24px; font-size: 16px; line-height: 22px; }
  .sidebar-wrapper .nav-item .kbd { line-height: 22px; }
  .sidebar-wrapper .nav-brand .nav-logo { max-width: 240px; }
  .drawer-close {
    position: fixed; top: calc(env(safe-area-inset-top) + 12px); right: 12px; z-index: 401;
    width: 36px; height: 36px; border-radius: 999px; display: none; place-items: center;
    background: rgba(247,246,242,.04); border: 1px solid rgba(247,246,242,.1); color: #d6d5cf; cursor: pointer;
  }
  .sidebar-wrapper.open ~ .drawer-close, body.drawer-open .drawer-close { display: grid; }
  .app-shell-header { background: color-mix(in srgb, var(--ink-900) 62%, transparent); }
  .hdr-row { min-height: 0; padding: 10px 16px; }
  .hdr-mobile { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
  .ham { width: 44px; height: 44px; margin-left: -8px; display: flex; align-items: center; justify-content: center; border: 0; background: none; border-radius: 12px; cursor: pointer; }
  .ham-icon { width: 32px; height: 32px; }
  .ham-bar { fill: var(--color-ink); transition: fill .15s; }
  .ham-bar-2 { fill: var(--azure); }
  .app-shell-logo { height: 24px; width: auto; }
  .topnav-page-title { display: none; }
  .hdr-btn span { display: none; }
  .hdr-btn { width: 40px; height: 40px; justify-content: center; padding: 0; border-radius: 12px; }
  .mobile-page-title {
    display: block; font-family: var(--font-display); font-optical-sizing: auto; color: var(--text-0);
    letter-spacing: -.02em; font-size: clamp(32px, 9vw, 46px); font-weight: 400; line-height: 1; margin: 8px 0 20px;
  }
  .pr-page { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
}

/* ============================================================ CONTENT (Fulcrum language) */
.as-panel { color: var(--body); font-size: 16px; }
.as-panel > h1, .page-n { display: none; }
.as-panel h2 {
  font-family: var(--font-display); font-optical-sizing: auto; font-size: 30px; font-weight: 400; line-height: 1.15;
  letter-spacing: -.02em; color: var(--text-0); margin: 48px 0 12px; max-width: none;
}
.as-panel h3 { font-family: var(--font-text); font-size: 17px; font-weight: 600; letter-spacing: -.005em; line-height: 1.35; color: var(--text-0); margin: 32px 0 8px; max-width: none; }
.as-panel h4 { font-family: var(--font-text); font-size: 15px; font-weight: 600; color: var(--text-0); margin: 20px 0 6px; }
.as-panel p { font-size: 15px; line-height: 1.6; color: var(--body); max-width: 92ch; margin: 0 0 12px; }
.as-panel ul, .as-panel ol { max-width: 92ch; margin: 0 0 16px; padding-left: 22px; color: var(--body); }
.as-panel li { font-size: 15px; line-height: 1.6; margin-bottom: 4px; }
.as-panel li::marker { color: var(--text-3); }
.as-panel a { color: var(--azure); }
.as-panel a:hover { color: var(--red-hover); text-decoration: underline; }
.as-panel b, .as-panel strong { color: var(--text-0); font-weight: 600; }
.as-panel p.figcap, .as-panel p.sw-note, .as-panel p.pg-more, .as-panel p.tm-source, .as-panel p.cfg-hint, .as-panel p.pv-intro { font-size: 12px; color: var(--text-2); max-width: none; }

/* the Fulcrum card: white, 1px #E4E2DC, 16px radius, no shadow */
.fx-card, .docflow, .sec-open, .quiz, .sw, .media, .card, .mark-wrap, .ask-hero, .home-list, .home-groups > div,
.cx-addr, .spec, .tone-g, .bulk, .logo-toolbar, .docblock, .pillar, .ladder, .sysblk {
  background: var(--glass-fill); border: 1px solid var(--glass-stroke); border-radius: 16px;
}

/* section opener = Fulcrum's "Pipeline Overview" block: lede + a small grey line */
.sec-open { padding: 20px 24px; margin: 8px 0 24px; }
.sec-open.bare { background: none; border: 0; border-radius: 0; padding: 0; margin: 2px 0 16px; }
.as-panel .sec-open.bare .sec-stat { margin: 0; }
.as-panel .sec-open-lede { font-size: 17px; line-height: 1.55; color: var(--text-0); max-width: 92ch; margin: 0; }
.as-panel .sec-stat {
  display: inline-flex; margin: 14px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2);
}

/* the guide copy sits in one card per document */
.docflow { padding: 24px 28px; margin: 0 0 24px; max-width: none; }
.docflow > :first-child { margin-top: 0 !important; }
.docflow.is-empty { display: contents; }
.as-panel .docflow hr.sec-rule, .as-panel hr.sec-rule { border: 0; border-top: 1px solid var(--line); margin: 32px 0 24px; }
.as-panel .docflow h2.doc-title, .as-panel .docflow h2.dh2 { font-size: 30px; margin: 0 0 16px; color: var(--text-0); }
.as-panel .docflow p.sec-label, .as-panel .docflow .doc-kicker {
  margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2);
}
.as-panel .docflow h2.sec-headline { margin: 0 0 12px; }
.as-panel .docflow h3.dh3 { font-size: 17px; margin: 28px 0 8px; padding-top: 0; border-top: 0; }
.as-panel .docflow h4.dh4 { font-size: 15px; margin: 20px 0 6px; }
.as-panel .docflow .standfirst { font-size: 17px; font-weight: 600; color: var(--text-0); line-height: 1.45; margin: 0 0 10px; }
.docflow .doc-band {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 40px -28px 24px; padding: 14px 28px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-700);
}
.docflow .doc-band-k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.docflow .doc-band-t { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--text-0); }

/* tables: Fulcrum's (12px DM Sans 600 heads, hairline rows, raised head) */
.as-table-scroll, .docflow .kv-wrap { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--glass-stroke); border-radius: 12px; background: var(--glass-fill); }
table.as-table, .docflow table.kv { width: 100%; border-collapse: collapse; font-size: 13px; }
table.as-table th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--body); padding: 12px 12px; white-space: nowrap;
  background: var(--ink-700); border-bottom: 1px solid var(--line);
}
table.as-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; color: var(--body); font-size: 13px; }
table.as-table tr:last-child td { border-bottom: 0; }
table.as-table tbody tr:hover, table.as-table tr:hover td { background: rgba(var(--str-rgb), .02); }
.docflow table.kv th, .docflow table.kv td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); line-height: 1.5; font-size: 14px; }
.docflow table.kv tr:last-child > * { border-bottom: 0; }
.docflow table.kv tr:first-child > * { border-top: 0; }
.docflow table.kv th { width: 28%; min-width: 9rem; font-weight: 600; color: var(--text-0); background: var(--ink-700); white-space: normal; }
.docflow table.kv td { color: var(--body); }

/* definition rows */
.docflow dl.terms { margin: 12px 0 20px; border: 1px solid var(--glass-stroke); border-radius: 12px; overflow: hidden; }
.docflow dl.terms .term { display: grid; grid-template-columns: minmax(7rem, 22%) minmax(0, 1fr); gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.docflow dl.terms .term:last-child { border-bottom: 0; }
.docflow dl.terms dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-0); line-height: 1.6; }
.docflow dl.terms.principles dt { color: var(--azure); }
.docflow dl.terms dd { margin: 0; }
.docflow dl.terms dd p { margin: 0 0 6px; }
.docflow dl.terms dd p:last-child { margin-bottom: 0; }
.docflow dl.terms .term > dd:only-child { grid-column: 1 / -1; }

/* Fulcrum chips (status pills) for the short sets */
.docflow ul.tagset { list-style: none; padding: 0; margin: 10px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.docflow ul.tagset li, .chip {
  margin: 0; padding: 2px 10px; font-size: 12px; font-weight: 500; line-height: 18px; border-radius: 999px;
  color: var(--red-ink); background: rgba(226,35,26,.08); border: 1px solid rgba(226,35,26,.25);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.docflow blockquote.example { margin: 8px 0 16px; padding: 12px 16px; border-left: 2px solid var(--azure); background: rgba(27,28,26,.02); color: var(--text-0); font-size: 15px; border-radius: 0 8px 8px 0; }
.docflow p.example-strong { margin: 8px 0; padding: 10px 14px; background: rgba(226,35,26,.06); font-weight: 600; color: var(--text-0); border-radius: 8px; }
.docflow ul { margin: 6px 0 18px; }
.docflow ul ul { margin: 4px 0 8px; }

/* rules / subpanels */
.rules { display: block; margin: 0 0 20px; }
.rules.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.rule { padding: 14px 0; border-top: 1px solid var(--line); }
.rule-t { font-size: 17px; font-weight: 600; color: var(--text-0); margin: 0 0 4px; }
.rule-b p:last-child { margin-bottom: 0; }
.subpanel { margin: 28px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.subpanel-h { margin-top: 0 !important; }
.docsub { font-size: 12px !important; font-weight: 600 !important; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2) !important; margin: 16px 0 6px !important; }
.spec-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin: 0 0 20px; }
.spec-card { padding: 14px 16px; border: 1px solid var(--glass-stroke); border-radius: 16px; background: var(--glass-fill); }
.spec-card .k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.spec-card .v { font-size: 15px; font-weight: 600; color: var(--text-0); margin-top: 4px; }
.as-flag { margin: 20px 0; padding: 16px 20px; background: rgba(217,138,11,.06); border: 1px solid rgba(217,138,11,.3); border-radius: 12px; }
.as-flag b { display: block; color: var(--text-0); font-weight: 600; margin-bottom: 4px; }
.as-flag p { margin: 0; }
.tm-reg { color: var(--color-good); font-weight: 600; }
.tm-pend { color: var(--color-warn); font-weight: 600; }

/* guidance documents (pillars, ladder, systems, scripts) */
.doc-h2 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.docblock { padding: 24px 28px; margin: 0 0 24px; }
.docblock > .pillar, .docblock > .ladder, .docblock > .sysblk { border: 0; padding: 0; background: none; border-radius: 0; }
.pillar { margin: 20px 0; padding-top: 16px; border-top: 1px solid var(--line) !important; }
.pillar-name { font-family: var(--font-display); font-size: 24px; font-weight: 400; color: var(--text-0); padding: 0 0 12px; }
.pillar-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.pcat { padding: 14px 16px; border: 1px solid var(--glass-stroke); border-radius: 12px; background: var(--void); }
.pcat-h { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.pcat ul { padding-left: 16px; margin: 0; }
.pcat li { font-size: 13px; }
.ladder { margin: 20px 0; }
.ladder-name { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--text-0); padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.lvl { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.lvl-n { font-family: var(--font-display); font-size: 20px; color: var(--azure); line-height: 1.2; }
.lvl-t { font-size: 14px; line-height: 1.55; color: var(--body); }
.sysblk { margin: 24px 0; }
.scripts { display: grid; gap: 12px; margin: 16px 0 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.script { padding: 16px 18px; border: 1px solid var(--glass-stroke); border-radius: 16px; background: var(--glass-fill); }
.script-b { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }
.script blockquote { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 1.35; color: var(--text-0); }
.figrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 16px 0 8px; }
.fig { margin: 0; border: 1px solid var(--glass-stroke); border-radius: 12px; overflow: hidden; background: #fff; }
.figcap { font-size: 12px; color: var(--text-2); margin: 8px 0 20px; }
.pgstrip { display: grid; gap: 12px; margin: 0 0 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.pgstrip[data-count="1"] { grid-template-columns: minmax(0, 640px); }
.pgstrip[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1100px; }
.pgshot { display: block; padding: 0; cursor: zoom-in; border: 1px solid var(--glass-stroke); border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .15s; }
.pgshot:hover { border-color: var(--text-3); }
.pg-more { font-size: 12px; color: var(--text-2); }

/* files: Fulcrum card grid */
.as-panel h2.sec-h { margin-top: 48px; }
.shelf-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 32px 0 12px; }
.shelf-h h3 { margin: 0 !important; }
.shelf-trail { font-size: 12px; color: var(--text-2); }
.shelf-n { margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); font-variant-numeric: tabular-nums; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin: 0 0 20px; }
.card { display: flex; flex-direction: column; min-width: 0; padding: 10px; transition: border-color .15s; }
.card:hover { border-color: #D6D5CF; }
.card-img { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: var(--void); border-radius: 10px; }
.card-img[data-full] { cursor: zoom-in; }
.card-img.dark, .mark-thumb.dark, .modal-img.dark { background: #1b1c1a; color: #f7f6f2; }
.card-img img { max-width: 88%; max-height: 84%; object-fit: contain; }
.card-body { padding: 10px 4px 2px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-name { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--text-0); overflow-wrap: break-word; }
.card-sub { font-size: 12px; color: var(--text-2); }
.card-dl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.noprev { font-size: 12px; color: var(--text-2); }
.ftile { display: grid; justify-items: center; gap: 4px; color: var(--text-2); }
.ftile-i { display: none; }
.ftile-x { font-family: var(--font-mono); font-size: 20px; font-weight: 500; color: var(--text-1); }
.ftile-s { font-size: 12px; }

/* download / action buttons: Fulcrum's round outline buttons (12px, 999px) */
.dl {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  font-size: 12px; font-weight: 500; color: var(--body); text-decoration: none; white-space: nowrap;
  background: transparent; border: 1px solid #D6D5CF; border-radius: 999px; cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s;
}
.as-panel a.dl { color: var(--body); }
.dl:hover, .as-panel a.dl:hover { color: var(--azure); border-color: rgba(226,35,26,.4); background: rgba(226,35,26,.04); text-decoration: none; }
.dl:disabled { opacity: .55; cursor: not-allowed; }
.dl-size { font-weight: 400; color: var(--text-3); }
.dl abbr { text-decoration: none; font-weight: 600; }
.dl.view { color: var(--text-0); background: rgba(27,28,26,.035); border-color: rgba(27,28,26,.26); font-weight: 600; }
/* primary = Fulcrum's red "Summarize with AI" button */
.dl.big {
  height: 32px; padding: 0 14px; font-size: 13px; font-weight: 700; border-radius: 13px;
  background: #e2231a; color: #fff; border: 0; box-shadow: rgba(226,35,26,.7) 0 6px 26px -6px;
}
.as-panel a.dl.big { color: #fff; }
.dl.big:hover, .as-panel a.dl.big:hover { background: #b91c15; color: #fff; }
.dl.big.ghost, .dl.big[data-bulk] {
  background: rgba(27,28,26,.035); color: var(--text-0); border: 1px solid rgba(27,28,26,.26); box-shadow: none; font-weight: 600;
}
.as-panel a.dl.big.ghost { color: var(--text-0); }
.dl.big.ghost:hover, .dl.big[data-bulk]:hover { background: rgba(27,28,26,.06); color: var(--text-0); border-color: rgba(27,28,26,.4); }
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0 28px; padding: 14px 18px; }
.bulk-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.bulk-note { font-size: 12px; color: var(--text-3); }

/* media */
.media-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin: 0 0 20px; }
.media { min-width: 0; padding: 10px; }
.media video { width: 100%; aspect-ratio: 16 / 9; background: #1b1c1a; border-radius: 10px; }
.media audio { width: 100%; margin-top: 6px; }
.media-meta { padding: 10px 4px 2px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }

/* logos */
.logo-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 12px 16px; margin: 0 0 16px; }
.tool-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
/* Fulcrum's segmented date control: pill track, black active */
.seg { display: inline-flex; flex-wrap: wrap; gap: 0; padding: 3px; background: rgba(27,28,26,.05); border: 1px solid rgba(27,28,26,.14); border-radius: 999px; }
.seg button { height: 30px; padding: 0 12px; white-space: nowrap; border: 0; border-radius: 999px; background: transparent; color: var(--text-3); font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s; }
.seg button:hover { color: var(--text-0); }
.seg button.on { background: #1b1c1a; color: #f7f6f2; }
.ip-count { margin-left: auto; font-size: 12px; color: var(--body); font-variant-numeric: tabular-nums; }
#logo-list { background: var(--glass-fill); border: 1px solid var(--glass-stroke); border-radius: 16px; padding: 4px 20px 8px; }
#logo-list > h3 { margin: 24px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
#logo-list > h3:first-child { margin-top: 16px; }
.mark { border-bottom: 1px solid var(--line); }
.mark-head { display: flex; align-items: center; gap: 16px; padding: 12px 0; cursor: pointer; user-select: none; }
.mark-thumb { width: 140px; height: 52px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--void); border-radius: 8px; }
.mark-thumb img { max-width: 90%; max-height: 80%; object-fit: contain; }
.mark-title { font-size: 15px; font-weight: 600; color: var(--text-0); }
.mark-title abbr { text-decoration: none; }
.mark-meta { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.mark-chev { margin-left: 8px; color: var(--text-3); transition: transform var(--motion-med) var(--ease-out); }
.mark.open .mark-chev { transform: rotate(90deg); }
.mark-head:hover .mark-title { color: var(--azure); }
.mark-body { display: none; padding: 0 0 16px 156px; }
.mark.open .mark-body { display: block; }
.cw-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); align-items: center; }
.cw-name { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-0); }
.cw-use { font-size: 12px; color: var(--text-2); }
.cw-files { display: flex; flex-wrap: wrap; gap: 6px; }
.sym-pill { font-size: 13px; font-weight: 600; color: var(--text-3); margin-left: 4px; }
.tmbadge { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; cursor: pointer; border: 1px solid; background: none; }
.tmbadge span { color: var(--text-2); font-weight: 400; }
.tmb-reg { color: #15803d; background: rgba(22,163,74,.08); border-color: rgba(22,163,74,.3); }
.tmb-pend { color: #b45309; background: rgba(217,138,11,.08); border-color: rgba(217,138,11,.3); }
.copylink { flex: none; background: none; border: 0; padding: 4px 0; font-size: 12px; color: var(--text-3); cursor: pointer; opacity: 0; transition: opacity .15s, color .15s; }
.mark-head:hover .copylink, .sw:hover .copylink, .doc-h2:hover .copylink, .copylink:focus-visible { opacity: 1; }
.copylink:hover { color: var(--text-0); text-decoration: underline; }
.copylink.ok { opacity: 1; color: var(--color-good); }
.copylink.sm { margin-top: 8px; }
.link-flash { animation: linkflash 2.4s var(--ease-out); outline-offset: 4px; }
@keyframes linkflash { 0%, 60% { outline: 2px solid var(--azure); } 100% { outline: 2px solid transparent; } }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.jump a, .as-panel .jump a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid #D6D5CF; font-size: 12px; font-weight: 500; color: var(--body); }
.jump a:hover { color: var(--azure); border-color: rgba(226,35,26,.4); text-decoration: none; }
#quiz, #tm-register, #logo-library, .as-panel h2[id] { scroll-margin-top: 110px; }

/* logo picker */
.quiz { margin: 24px 0 32px; padding: 24px 28px; }
.quiz-head h3 { margin: 0 0 4px !important; font-family: var(--font-display) !important; font-size: 30px !important; font-weight: 400 !important; }
.quiz-head p { color: var(--text-2); font-size: 13px; }
.cfg-rail { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.cfg-rail li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-3); background: rgba(27,28,26,.04); }
.cfg-rail li span { font-variant-numeric: tabular-nums; }
.cfg-rail li.on { background: #1b1c1a; color: #f7f6f2; }
.cfg-rail li.done { color: var(--text-0); }
.cfg-rail li.done span { color: var(--color-good); }
.cfg .quiz-step { display: none; margin-top: 20px; }
.cfg .quiz-step.on { display: block; }
.quiz-q { font-size: 15px; font-weight: 600; color: var(--text-0); margin-bottom: 10px; }
.quiz-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; }
.qopt { min-height: 44px; padding: 8px 14px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--glass-stroke); border-radius: 12px; background: #fff; color: var(--text-0); font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .15s, background-color .15s; }
.qopt:hover { border-color: #D6D5CF; background: var(--void); }
.qopt.on { border-color: rgba(226,35,26,.5); background: rgba(226,35,26,.05); color: var(--text-0); font-weight: 600; }
.qopt small { display: block; font-size: 12px; color: var(--text-2); font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.cfg-hint { font-size: 12px; color: var(--text-2); margin-top: 10px; }
.cfg-nav { display: flex; gap: 8px; margin-top: 14px; }
.cfg-back, .cfg-reset, .quiz-reset { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid #D6D5CF; background: transparent; font-size: 12px; font-weight: 500; color: var(--body); cursor: pointer; }
.cfg-back:hover, .cfg-reset:hover, .quiz-reset:hover { color: var(--azure); border-color: rgba(226,35,26,.4); }
.quiz-result { margin-top: 20px; padding: 20px; background: var(--void); border: 1px solid var(--glass-stroke); border-radius: 12px; }
.quiz-result.empty { display: none; }
.qr-mark { margin-bottom: 14px; }
.qr-name { font-size: 15px; font-weight: 600; color: var(--text-0); margin-bottom: 8px; }
.quiz-why { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--body); }
.quiz-why b { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.quiz-why ul { margin: 8px 0 0; padding-left: 20px; }

/* colors: Fulcrum KPI cards */
.sw-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 20px; }
.sw { min-width: 0; padding: 12px; }
.sw-chip { height: 120px; border-radius: 10px; cursor: copy; position: relative; border: 1px solid rgba(27,28,26,.06); }
.sw-chip.copied { outline: 2px solid var(--color-good); outline-offset: 2px; }
.sw-meta { padding: 14px 6px 4px; }
.sw-name { font-family: var(--font-display); font-size: 24px; font-weight: 400; color: var(--text-0); line-height: 1.15; }
.sw-vals { margin-top: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--body); line-height: 1.8; }
.sw-vals b { color: var(--text-0); font-weight: 500; }
.sw-note { font-size: 12px; color: var(--text-2); }

/* type specimen: RPG's own face (Barlow) shown inside Fulcrum cards */
.spec { padding: 20px 24px; margin: 0 0 12px; }
.as-panel .spec-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin: 0 0 12px; max-width: none; }
.as-panel .spec-line { font-family: "Barlow", Arial, sans-serif; color: var(--text-0); line-height: 1.15; overflow-wrap: break-word; min-width: 0; margin: 0; max-width: none; }
.as-panel .spec-display { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }
.as-panel .spec-sub { font-size: 30px; font-weight: 600; }
.as-panel .spec-body { font-size: 18px; font-weight: 400; line-height: 1.6; }
.as-panel .spec-small { font-size: 14px; font-weight: 400; line-height: 1.55; }
.as-panel .spec-caps { font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 18px; }
.as-panel .spec-set { font-size: 30px; font-weight: 700; line-height: 1.3; }
.spec-weights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.spec-weights div { font-family: "Barlow", Arial, sans-serif; font-size: 30px; color: var(--text-0); }
.spec-weights small { display: block; font-family: var(--font-text); font-size: 12px; color: var(--text-2); font-weight: 400; margin-top: 4px; }

/* tone */
.tone { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 24px; }
.tone-g { padding: 18px 20px; }
.as-panel .tone-g h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.tone-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.tone-row .lo { text-align: right; color: var(--text-3); }
.tone-row .hi { font-weight: 600; color: var(--text-0); }
.tone-row .bar { height: 2px; background: var(--azure); border-radius: 2px; }
.tone-key { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); gap: 12px; font-size: 12px; color: var(--text-3); padding-bottom: 4px; }
.tone-key span:first-child { text-align: right; }

/* home */
.home-head { margin: 8px 0 20px; }
.as-panel .home-head h2.home-hello { margin-top: 0; } .home-head h1, .home-head h2.home-hello { font-family: var(--font-display); font-size: 32px; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; color: var(--text-0); max-width: none; margin: 0 0 12px; }
.as-panel .home-connect { margin: 0; }
.ask-hero { padding: 24px 28px; margin: 0 0 24px; }
.ask-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.ask-shell { display: flex; gap: 8px; }
.ask-shell input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 1px solid rgba(27,28,26,.12); border-radius: 12px; background: rgba(27,28,26,.03); color: var(--text-0); font-size: 15px; }
.ask-shell input::placeholder { color: var(--text-3); }
.ask-shell input:focus { outline: none; border-color: rgba(226,35,26,.4); background: #fff; }
.ask-send { flex: none; height: 44px; padding: 0 20px; border: 0; border-radius: 13px; background: #e2231a; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: rgba(226,35,26,.7) 0 6px 26px -6px; transition: background-color .15s; }
.ask-send:hover { background: #b91c15; }
.ask-send:disabled { opacity: .55; cursor: not-allowed; }
.ask-exs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ask-ex { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid #D6D5CF; background: transparent; font-size: 12px; font-weight: 500; color: var(--body); cursor: pointer; }
.ask-ex:hover { color: var(--azure); border-color: rgba(226,35,26,.4); }
.ask-out { margin-top: 16px; padding: 16px 20px; background: var(--void); border: 1px solid var(--glass-stroke); border-radius: 12px; color: var(--text-0); line-height: 1.6; font-size: 15px; }
.ask-out.empty { display: none; }
.ask-out.thinking { color: var(--text-3); }
.ask-out.err { border-color: rgba(217,138,11,.4); }
.ask-text { margin: 0; max-width: none; }
.rr { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; margin-top: 14px; }
.rr-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--glass-stroke); border-radius: 12px; background: #fff; color: var(--text-0); text-decoration: none; }
.as-panel a.rr-card { color: var(--text-0); }
.rr-card:hover { border-color: rgba(226,35,26,.4); text-decoration: none; }
.rr-art { width: 56px; height: 40px; display: grid; place-items: center; overflow: hidden; background: var(--void); border-radius: 8px; font-size: 12px; color: var(--text-2); }
.rr-art img { max-width: 48px; max-height: 32px; object-fit: contain; }
.rr-txt { display: flex; flex-direction: column; min-width: 0; }
.rr-t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-s { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-powered { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 12px; color: var(--text-3); text-decoration: none; }
.as-panel a.ask-powered, .as-panel a.ask-powered:hover { color: var(--text-3); text-decoration: none; }
.fx-logo { display: block; height: 14px; width: auto; }
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 24px; }
.home-list { padding: 20px 24px; }
.home-list h2 { margin: 0 0 12px !important; font-size: 24px !important; }
.as-panel .idx { list-style: none; padding: 0; margin: 0; max-width: none; }
.idx li { margin: 0; border-top: 1px solid var(--line); }
.idx li:first-child { border-top: 0; }
.idx a, .as-panel .idx a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 10px 0; text-decoration: none; color: var(--text-0); }
.idx a:hover .idx-t { color: var(--azure); }
.idx-n { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.idx-t { font-weight: 500; font-size: 14px; }
.idx-c { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.idx-d { grid-column: 2 / -1; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.quick a, .as-panel .quick a { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; }
.quick .idx-d { grid-column: 1; margin-top: 0; }
.home-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; background: none; border: 0; }
.home-groups > div { padding: 8px 24px; }

/* modal + viewer */
.modal { position: fixed; inset: 0; z-index: 400; display: none; background: var(--color-scrim); padding: 40px 24px; overflow-y: auto; }
.modal.on { display: block; }
.modal-inner { max-width: 1100px; margin: 0 auto; background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--glass-stroke); }
.modal-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 400; color: var(--text-0); }
.modal-close { margin-left: auto; width: 36px; height: 36px; border: 1px solid rgba(27,28,26,.15); border-radius: 12px; background: rgba(27,28,26,.04); color: var(--text-0); font-size: 18px; line-height: 1; cursor: pointer; }
.modal-close:hover { border-color: rgba(226,35,26,.4); }
.modal-body { padding: 24px; }
.modal-img { display: grid; place-items: center; padding: 24px; }
.modal-img img { max-height: 74dvh; object-fit: contain; }
.ip-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.ip-tools input, .ip-tools select { height: 30px; padding: 0 12px; font-size: 12px; border: 1px solid rgba(27,28,26,.12); border-radius: 8px; background: rgba(27,28,26,.05); color: var(--text-1); }
.ip-tools input { min-width: 250px; }
.tm-scroll, .pv-scroll { position: relative; max-height: 56dvh; overflow: auto; }
.tm-source { font-size: 12px; color: var(--text-2); margin-top: 12px; }
.pv-bar { font-size: 12px; color: var(--text-2); padding-bottom: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.pv-pages { display: grid; gap: 20px; }
.pv-page { margin: 0; }
.pv-page img { width: 100%; border: 1px solid var(--line); border-radius: 8px; }
.pv-page figcaption { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.pv-tabs { display: inline-flex; flex-wrap: wrap; gap: 0; padding: 3px; margin-bottom: 12px; background: rgba(27,28,26,.05); border: 1px solid rgba(27,28,26,.14); border-radius: 999px; }
.pv-tab { height: 30px; padding: 0 12px; font-size: 13px; font-weight: 600; border: 0; border-radius: 999px; background: transparent; color: var(--text-3); cursor: pointer; }
.pv-tab.on { background: #1b1c1a; color: #f7f6f2; }
.pv-sheet { display: none; }
.pv-sheet.on { display: block; }
.pv-table th { position: sticky; top: 0; z-index: 10; }
.pv-table td, .pv-table th { white-space: nowrap; }
.pv-slides { display: grid; gap: 0; }
.pv-slide { padding: 14px 0; border-top: 1px solid var(--line); }
.pv-slide-n { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; }
.pv-slide-t { font-size: 15px; font-weight: 600; color: var(--text-0); margin-bottom: 4px; }
.pv-intro { font-size: 12px; color: var(--text-2); }

/* figure (brand architecture chart) */
.docflow figure.doc-figure { margin: 12px 0 20px; }
.docflow .doc-figure-img { aspect-ratio: auto; padding: 20px; background: #fff; border: 1px solid var(--glass-stroke); border-radius: 12px; cursor: zoom-in; }
.docflow .doc-figure-img img { max-width: 100%; max-height: none; width: 100%; height: auto; object-fit: contain; }
.docflow .doc-figure figcaption { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 8px; font-size: 12px; color: var(--text-2); }

/* connect page */
.cx-open { margin: 0 0 20px; }
.cx-addr { margin: 0 0 32px; padding: 20px 24px; }
.as-panel .cx-k { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.cx-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cx-row code { flex: 1 1 22rem; padding: 10px 14px; background: var(--void); border: 1px solid var(--glass-stroke); border-radius: 12px; font-family: var(--font-mono); font-size: 14px; overflow-wrap: anywhere; }
.as-panel .cx-note { margin: 10px 0 0; font-size: 12px; color: var(--text-2); }
.cx-steps { margin: 10px 0 20px; padding-left: 1.4em; }
.cx-steps li { margin: 0 0 6px; }
.cx-code { margin: 10px 0; padding: 14px 18px; background: #1b1c1a; color: #f7f6f2; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; border-radius: 12px; }
.cx-asks li { margin: 0 0 4px; }

/* "On this page" column on very wide screens */
.toc { display: none; }
@media (min-width: 1600px) {
  .pr-page.has-toc { display: grid; grid-template-columns: minmax(0, 1fr) 232px; column-gap: 24px; align-items: start; }
  .has-toc .toc { display: block; position: sticky; top: 110px; max-height: calc(100dvh - 140px); overflow-y: auto; padding: 16px 18px; background: var(--glass-fill); border: 1px solid var(--glass-stroke); border-radius: 16px; scrollbar-width: thin; }
  .has-toc .mobile-page-title { grid-column: 1 / -1; }
}
.toc-h { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 5px 0 5px 10px; font-size: 13px; line-height: 1.35; color: var(--text-2); border-left: 2px solid transparent; text-decoration: none; }
.toc a:hover { color: var(--text-0); }
.toc a.on { color: var(--text-0); border-left-color: var(--azure); font-weight: 600; }

/* phone layout of the content */
@media (max-width: 767px) {
  .rules.two, .home-cols, .home-groups, .tone, .spec-weights { grid-template-columns: minmax(0, 1fr); }
  .sw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mark-body { padding-left: 0; }
  .cw-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .copylink, .tmbadge { display: none; }
  .mark-thumb { width: 96px; height: 40px; }
  #logo-list { padding: 4px 14px 8px; }
  .ip-count { margin-left: 0; }
  .ip-tools input { min-width: 0; width: 100%; }
  .ask-shell { flex-direction: column; }
  .ask-shell input { flex: none; width: 100%; height: 48px; min-height: 48px; font-size: 16px; }
  .ask-send { width: 100%; height: 48px; }
  .docflow, .docblock, .quiz, .ask-hero { padding: 18px 16px; }
  .docflow .doc-band { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .docflow dl.terms .term { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .docflow table.kv th { width: auto; min-width: 0; }
  .docflow table.kv tr { display: grid; }
  .as-panel h2 { font-size: 26px; }
  .modal { padding: 12px; }
}
@media (max-width: 480px) { .sw-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
