/* Inner pages (checks, privacy, terms, brand, 404). Loaded after home.css and uses its tokens,
   so these pages share the home page's header, menu, footer, type and colours. */
.page { max-width: 860px; padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(80px, 10vw, 128px); }
.page h1 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); font-weight: 700; font-stretch: 118%; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.page h2 { margin-top: 44px; font-size: 1.35rem; font-weight: 700; font-stretch: 112%; letter-spacing: -0.01em; }
.page p, .page ul { margin-top: 12px; }
.page p { max-width: 68ch; text-wrap: pretty; }
.page ul { padding-left: 1.2em; list-style: disc; }
.page li + li { margin-top: 6px; }
.page a { color: var(--link); text-underline-offset: 0.18em; }
.page code { padding: 1px 6px; border-radius: 6px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-size: 0.9em; }

/* Small mono label above a heading, like the home page's section captions. */
.page .sev { margin: 0 0 16px; color: var(--slate); font: 600 0.75rem 'Spline Sans Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; }

/* The fix, set like a plate with a green edge. */
.page .fix { padding: 18px 20px; border-radius: var(--r-plate); background: var(--paper); box-shadow: 0 0 0 1px var(--line); border-left: 3px solid var(--green); }

/* Run it: a dark console strip with the command. */
.page .try { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 16px; padding: 18px 20px; border-radius: var(--r-plate); background: var(--panel); color: var(--term-text); }
.page .try p { flex: 1 1 24ch; margin: 0; color: var(--term-text); }
.page .try code { background: rgb(255 255 255 / 0.08); box-shadow: none; color: var(--on-panel); }
.page .try code.cmd { padding: 10px 16px; border-radius: var(--r-ctl); font-size: 1rem; }

/* Previous and next check. */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.page .pager a { display: block; min-height: 44px; padding: 16px 18px; border-radius: var(--r-plate); background: var(--paper); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-weight: 650; line-height: 1.3; text-decoration: none; transition: box-shadow 150ms; }
.page .pager a:last-child { text-align: right; }
.page .pager a:hover { box-shadow: 0 0 0 1px var(--line-strong); }
.pager span { display: block; margin-bottom: 4px; color: var(--slate); font: 600 0.72rem 'Spline Sans Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; }

/* 404: flag U, with the same fine edge the hero flags have. */
.flag-u { display: block; width: 120px; height: 80px; margin-bottom: 28px; box-shadow: 0 0 0 1px rgb(14 27 44 / 0.5), 0 8px 18px -10px rgb(14 27 44 / 0.4); }

/* Brand page: logo tiles and colour swatches. */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 16px; margin-top: 16px; }
.logos figure { margin: 0; }
.logos .tile { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 18px; border-radius: var(--r-plate); background: var(--flag-white); box-shadow: 0 0 0 1px var(--line); }
.logos .tile.dark { background: var(--panel); box-shadow: none; }
.logos img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.logos img[src$=".svg"] { width: 45%; }
.logos figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-weight: 650; }
.logos figcaption a { font-weight: 400; }
.page ul.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: 12px; padding: 0; list-style: none; }
.swatches li { display: grid; gap: 2px; margin: 0; padding: 10px; border-radius: var(--r-plate); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.swatches span { height: 56px; margin-bottom: 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgb(14 27 44 / 0.15); }
.swatches small { color: var(--slate); }

@media (max-width: 640px) {
  .pager { grid-template-columns: minmax(0, 1fr); }
  .page .pager a:last-child { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .page .pager a { transition: none; }
}

/* ---------- Product pages: features, AI agents, pricing, docs, resources, changelog, roadmap, community ---------- */
.page.wide { max-width: 1200px; }
.phero { padding-bottom: 8px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--slate); font: 600 0.75rem 'Spline Sans Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow b { color: var(--telemetry); }
.eyebrow i { flex: 1; max-width: 120px; height: 1px; background: var(--line); }
.page .phero h1 { max-width: 16ch; font-size: clamp(2.5rem, 7vw, 5rem); line-height: 0.98; }
.page .phero h1 span { color: var(--slate); }
.page .lede { max-width: 58ch; margin-top: 20px; color: var(--slate); font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.5; }
.page .lede b { color: var(--ink); font-weight: 600; }
.acts-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.page .acts-row a { text-decoration: none; }

.block { margin-top: clamp(64px, 9vw, 112px); }
.page .block > h2 { margin-top: 0; max-width: 22ch; font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.06; letter-spacing: -0.025em; }
.page .block > h2 span { color: var(--slate); }
.page .block > .sub { max-width: 62ch; margin-top: 12px; color: var(--slate); }
.dev-tag { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 3px 8px; border-radius: var(--r-ctl); background: var(--panel); color: var(--on-panel); font: 600 0.62rem 'Spline Sans Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: middle; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 28px; }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.card h3 { font-size: 1.15rem; font-weight: 700; font-stretch: 110%; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--slate); font-size: 0.97rem; line-height: 1.5; }
.card .icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 10px; background: var(--sail); box-shadow: 0 0 0 1px var(--line); }
.card .icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card .flag { width: 42px; height: 28px; margin-bottom: 6px; box-shadow: 0 0 0 1px rgb(14 27 44 / 0.45); }
.page .card a.more { margin-top: auto; padding-top: 8px; font-weight: 600; }
.card.dark { background: var(--panel); box-shadow: none; color: var(--on-panel); }
.card.dark p { color: var(--term-text); }
.card.dark h3 { color: var(--on-panel); }
.page .card.dark a { color: #9cc2ff; }
.card .tagline { display: inline-flex; align-self: flex-start; padding: 3px 9px; border-radius: var(--r-ctl); background: var(--sail); color: var(--slate); font: 700 0.62rem 'Spline Sans Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.card .tagline.live { background: var(--green); color: var(--flag-black); }

/* Severity list for features. */
.sevlist { display: grid; gap: 14px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.sevcol { padding: 20px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.sevcol h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; }
.sevcol h3 .dot { width: 10px; height: 10px; border-radius: 50%; }
.sevcol > p { margin-top: 6px; color: var(--slate); font-size: 0.92rem; }
.page .sevcol ul { margin-top: 12px; padding: 0; list-style: none; }
.page .sevcol li { margin: 0; border-top: 1px solid var(--line); }
.page .sevcol li a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.page .sevcol li a:hover { color: var(--link); }

/* Code blocks with a copy button. */
.code { margin-top: 16px; overflow: hidden; border-radius: 12px; background: var(--panel); color: var(--term-text); }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; background: var(--deck); color: var(--term-dim); font: 600 0.72rem 'Spline Sans Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.code-bar .copy-btn { min-width: 76px; min-height: 36px; font-size: 0.85rem; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: 0.9rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.page .code code { padding: 0; background: none; box-shadow: none; color: inherit; font-size: inherit; }

/* Two columns: words and a code block. */
.split2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 28px; }
.split2 h3 { font-size: 1.2rem; font-weight: 700; font-stretch: 110%; }

/* Tabs on product pages. */
.ptabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 24px; padding: 5px; border-radius: var(--r-ctl); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.ptabs [role="tab"] { min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--slate); font: 650 0.92rem 'Archivo', sans-serif; cursor: pointer; }
.ptabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--sail); }
.ptabs [role="tab"]:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

/* Accordions. */
.acc { margin-top: 24px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 0; font-size: 1.05rem; font-weight: 650; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; flex: none; color: var(--link); font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform 200ms; }
.acc details[open] > summary::after { transform: rotate(45deg); }
.acc summary small { margin-left: auto; color: var(--slate); font: 600 0.72rem 'Spline Sans Mono', monospace; letter-spacing: 0.06em; }
.acc .acc-body { padding: 0 0 20px; }
.acc .acc-body > p { color: var(--slate); }

/* Pricing. */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 520px; padding: 5px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.seg [role="tab"] { display: grid; gap: 2px; min-height: 60px; padding: 8px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--slate); text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.seg [role="tab"] b { font: 700 1rem 'Archivo', sans-serif; }
.seg [role="tab"] small { font: 600 0.68rem 'Spline Sans Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; opacity: .8; }
.seg [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--sail); }
.seg [role="tab"]:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.seg-note { margin-top: 16px; color: var(--slate); }
.pcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; align-items: start; }
.pc { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.pc.featured { box-shadow: 0 0 0 2px var(--link), 0 24px 60px -36px var(--link); }
.pc-flag { position: absolute; top: -12px; left: 22px; padding: 3px 10px; border-radius: 99px; background: var(--link); color: var(--paper); font: 700 0.68rem 'Spline Sans Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-head h3 { font-size: 1.3rem; font-weight: 750; font-stretch: 110%; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font: 700 0.66rem 'Spline Sans Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.live { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--go-text); }
.pill.wait { background: color-mix(in srgb, var(--slate) 12%, transparent); color: var(--slate); }
.pc-who { margin-top: 8px; min-height: 3em; color: var(--slate); font-size: 0.95rem; }
.pc-price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 18px; }
.pc-price b { font-size: 2.6rem; font-weight: 800; font-stretch: 115%; letter-spacing: -0.03em; line-height: 1; }
.pc-price span { color: var(--slate); font-size: 0.92rem; }
.pc > .btn-ink, .pc > .btn-line { width: 100%; }
.pc .btn-ink code { background: none; border: 0; box-shadow: none; padding: 0; color: inherit; font-size: .85rem; }
.pc-lead { margin-top: 22px; color: var(--slate); font: 700 0.68rem 'Spline Sans Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.page .pc-list { margin: 10px 0 0; padding: 0; list-style: none; }
.page .pc-list li { display: flex; gap: 10px; margin: 0; padding: 6px 0; font-size: 0.94rem; line-height: 1.4; }
.tick { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--go-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-more summary { display: inline-flex; align-items: center; min-height: 40px; margin-top: 6px; color: var(--link); font-weight: 650; font-size: 0.92rem; cursor: pointer; list-style: none; }
.pc-more summary::-webkit-details-marker { display: none; }
.pc-more summary::after { content: '+'; margin-left: 8px; }
.pc-more[open] summary::after { content: '–'; }
.cmp-title { margin-top: 56px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cmp-wrap { margin-top: 18px; }
.cmp-head { position: sticky; top: var(--mast-h); z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, minmax(64px, 140px)); align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-strong); background: var(--sail); }
.cmp-head span { color: var(--slate); font: 700 0.68rem 'Spline Sans Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.cmp-head b { text-align: center; font-weight: 750; }
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cmp col:not(:first-child) { width: clamp(64px, 18vw, 140px); }
.cmp caption { padding: 26px 0 8px; text-align: left; color: var(--ink); font-weight: 750; font-size: 1.02rem; }
.cmp th, .cmp td { padding: 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.cmp th { padding-right: 16px; text-align: left; font-weight: 600; font-size: 0.95rem; }
.cmp th small { display: block; margin-top: 3px; color: var(--slate); font-weight: 400; font-size: 0.84rem; line-height: 1.4; }
.cmp td { text-align: center; font-size: 0.88rem; }
.cmp td .tick { display: inline-block; margin: 2px 0 0; width: 18px; height: 18px; }
.cmp td .no { color: var(--slate); opacity: .5; }
.cmp td .txt { display: inline-block; padding: 0 4px; line-height: 1.35; }
.cmp-more > summary { display: flex; justify-content: center; align-items: center; min-height: 48px; margin-top: 18px; border-radius: var(--r-ctl); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font-weight: 650; cursor: pointer; list-style: none; }
.cmp-more > summary::-webkit-details-marker { display: none; }
.cmp-more > summary .opened, .cmp-more[open] > summary .closed { display: none; }
.cmp-more[open] > summary .opened { display: inline; }
.cmp-more[open] > summary { order: 2; }
.cmp-more[open] { display: flex; flex-direction: column; }
.pilot { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; margin-top: clamp(56px, 8vw, 96px); padding: clamp(24px, 4vw, 40px); border-radius: 20px; background: var(--panel); color: var(--on-panel); }
.pilot h2 { margin-top: 12px; color: var(--on-panel); font-size: clamp(1.4rem, 3vw, 2rem); }
.pilot p { margin-top: 8px; color: var(--term-text); }
.pilot .pill.live { color: #7ee2a8; background: rgb(126 226 168 / .12); }
.pilot-buy { display: grid; gap: 4px; justify-items: start; }
.pilot .pc-price { margin: 0 0 12px; }
.pilot .pc-price span { color: var(--term-dim); }
.page .pilot a.btn-ink { background: var(--on-panel); color: var(--panel); }
.guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.guide > div { display: grid; gap: 6px; padding: 18px 20px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.guide span { color: var(--slate); font-size: 0.94rem; }
@media (max-width: 899px) {
  .pcs, .guide { grid-template-columns: minmax(0, 1fr); }
  .pc-who { min-height: 0; }
  .pilot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .cmp th small { display: none; }
  .cmp-head { grid-template-columns: minmax(0, 1fr) repeat(3, 64px); }
  .cmp col:not(:first-child) { width: 64px; }
  .cmp-head b { font-size: 0.82rem; }
  .cmp td { font-size: 0.78rem; }
  .cmp th { font-size: 0.9rem; padding-right: 10px; }
}

/* MCP tools on the AI agents page. */
.tools { display: grid; gap: 14px; margin-top: 22px; }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px 36px; padding: 24px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.tool-name code { font-size: 1.02rem; font-weight: 600; color: var(--ink); background: none; padding: 0; }
.tool-name p { margin-top: 8px; color: var(--slate); }
.tool-params { display: grid; gap: 0; margin: 0; }
.tool-params > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.tool-params > div:first-child { border-top: 0; padding-top: 0; }
.tool-params dt { display: grid; gap: 2px; }
.tool-params dt span { color: var(--slate); font: 600 0.72rem 'Spline Sans Mono', monospace; }
.tool-params dd { margin: 0; color: var(--slate); font-size: 0.94rem; }
@media (max-width: 799px) {
  .tool { grid-template-columns: minmax(0, 1fr); }
  .tool-params > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Docs contents: the current section is marked, and a jumped-to heading lights up. */
.page .toc a { position: relative; padding-left: 14px; border-left: 2px solid var(--line); transition: color .2s, border-color .2s; }
.page .toc a[aria-current="true"] { color: var(--ink); font-weight: 650; border-left-color: var(--link); }
.page .toc-m a[aria-current="true"] { font-weight: 700; }
.page .toc-m a[aria-current="true"]::before { content: '→ '; }
.doc-body h2[id] { scroll-margin-top: calc(var(--mast-h) + 24px); }
.doc-body h2.flash { animation: flash 1.6s ease-out; border-radius: 8px; }
@keyframes flash { 0%, 30% { background: color-mix(in srgb, var(--link) 18%, transparent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--link) 18%, transparent); } 100% { background: transparent; box-shadow: 0 0 0 8px transparent; } }
@media (prefers-reduced-motion: reduce) { .doc-body h2.flash { animation-duration: .01s; } }
:root[data-motion="off"] .doc-body h2.flash { animation: none; }

/* Changelog and roadmap timelines. */
.timeline { position: relative; margin-top: 32px; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item::before { content: ''; position: absolute; left: -27px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px var(--line-strong); }
.tl-item.latest::before { background: var(--green); box-shadow: 0 0 0 4px rgb(46 158 91 / 0.2); }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.tl-head h2.v { margin: 0; font-size: 1.5rem; }
.tl-head time, .tl-head .pill { color: var(--slate); font: 600 0.75rem 'Spline Sans Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.tl-head .pill { padding: 3px 9px; border-radius: var(--r-ctl); background: var(--green); color: var(--flag-black); }
.tl-item h3 { margin-top: 14px; color: var(--slate); font: 700 0.72rem 'Spline Sans Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.page .tl-item ul { margin-top: 8px; }
.lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 28px; }
.lane { padding: 20px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.lane.dashed { background: transparent; }
.lane h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; }
.lane h3 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lamp-off); }
.lane h3 .dot.green { background: var(--green); }
.lane h3 .dot.warm { background: var(--lamp-warm-day); }
.lane > p { margin-top: 6px; color: var(--slate); font-size: 0.92rem; }
.page .lane ul { margin-top: 12px; padding: 0; list-style: none; }
.page .lane li { margin: 0; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.94rem; }

/* Docs: table of contents and reference tables. */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 40px; }
.toc { position: sticky; top: calc(var(--mast-h) + 24px); }
.toc p { color: var(--slate); font: 700 0.7rem 'Spline Sans Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.page .toc ol { margin-top: 10px; padding: 0; list-style: none; }
.page .toc li { margin: 0; }
.page .toc a { display: block; padding: 6px 0; color: var(--slate); text-decoration: none; font-size: 0.94rem; }
.page .toc a:hover { color: var(--ink); }
.toc-m { display: none; }
.doc-body h2 { scroll-margin-top: calc(var(--mast-h) + 20px); }
.doc-body h2:first-child { margin-top: 0; }
.ref { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 0.95rem; }
.ref th, .ref td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.ref th { color: var(--slate); font: 700 0.7rem 'Spline Sans Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; border-top: 0; }
.ref td:first-child { white-space: nowrap; }
.callout { margin-top: 16px; padding: 16px 18px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); border-left: 3px solid var(--blue); }
.callout.warn { border-left-color: var(--yellow); }

/* Community. */
.page .card .logo { width: 34px; height: 34px; margin-bottom: 8px; fill: var(--ink); }
.card.dark .logo { fill: var(--on-panel); }

/* Closing call to action on every product page. */
.cta-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 40px; align-items: center; margin-top: clamp(72px, 10vw, 120px); padding: clamp(24px, 4vw, 44px); border-radius: 18px; background: var(--panel); color: var(--on-panel); }
.page .cta-band h2 { margin: 0; color: var(--on-panel); font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.05; }
.page .cta-band p { color: var(--term-text); }
.cta-cmd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-radius: var(--r-ctl); background: rgb(255 255 255 / 0.08); }
.page .cta-cmd code { padding: 0; background: none; box-shadow: none; color: var(--on-panel); font-size: 1.05rem; }
.cta-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.page .cta-links a { color: #9cc2ff; }

:root.dark .card .icon { background: rgb(255 255 255 / 0.04); }
:root.dark .card .icon svg { stroke: var(--ink); }

@media (max-width: 860px) {
  .split2, .cta-band { grid-template-columns: minmax(0, 1fr); }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc-m { display: block; margin-top: 8px; padding: 0 16px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
  .toc-m summary { min-height: 48px; display: flex; align-items: center; font-weight: 650; cursor: pointer; }
  .page .toc-m ol { margin: 0 0 12px; padding: 0; list-style: none; }
  .page .toc-m li { margin: 0; }
  .page .toc-m a { display: block; padding: 8px 0; text-decoration: none; }
  .ref td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .acc summary::after { transition: none; }
}

/* Buttons and card links keep their own colours inside page content. */
.page a.btn-ink { color: var(--sail); text-decoration: none; }
.page a.btn-line { color: var(--ink); text-decoration: none; }
.page a.card { color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.page a.card:hover { box-shadow: 0 0 0 1px var(--line-strong), 0 10px 30px -18px rgb(0 0 0 / .5); transform: translateY(-2px); }
.page a.card:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.page a.card h3 { color: var(--ink); }
.page a.card .more { color: var(--link); margin-top: auto; }
@media (prefers-reduced-motion: reduce) { .page a.card:hover { transform: none; } }
:root[data-motion="off"] .page a.card:hover { transform: none; }
.tool-params dt code { justify-self: start; }

/* Plain-English intro, breadcrumbs, guides and the glossary. */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--slate); font-size: 0.88rem; }
.page .crumbs li { margin: 0; }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .5; }
.page .crumbs a { color: var(--slate); text-decoration: none; }
.page .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page .plain { margin-top: 18px; padding: 18px 20px; border-radius: var(--r-plate); background: color-mix(in srgb, var(--link) 8%, var(--paper)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--link) 22%, transparent); font-size: 1.08rem; line-height: 1.6; }
.page h2 .dev-tag { vertical-align: middle; margin-left: 8px; }
.guide-a { max-width: 760px; }
.guide-a h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.page .steps { padding-left: 1.4em; }
.page .steps li { margin: 12px 0; padding-left: 4px; line-height: 1.6; }
.page .cmd-block { margin: 14px 0; padding: 16px 18px; border-radius: var(--r-plate); background: var(--panel); color: var(--on-panel); overflow-x: auto; }
.page .cmd-block code { background: none; box-shadow: none; padding: 0; color: inherit; font-size: 0.95rem; white-space: pre; }
.page .related { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.page .related li { margin: 0; }
.page .related a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 16px; border-radius: var(--r-ctl); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.gloss-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.page .gloss-index a { padding: 6px 12px; border-radius: 99px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-size: 0.86rem; font-weight: 600; }
.page .gloss-index a:hover { box-shadow: 0 0 0 1px var(--link); }
.gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.gloss > div { padding: 20px 22px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); scroll-margin-top: calc(var(--mast-h) + 20px); }
.gloss > div:target { box-shadow: 0 0 0 2px var(--link); }
.gloss dt { font-weight: 750; font-size: 1.08rem; }
.gloss dd { margin: 8px 0 0; color: var(--slate); line-height: 1.55; }
@media (max-width: 799px) { .gloss { grid-template-columns: minmax(0, 1fr); } }
