/* FSB content pages. Same tokens as the app (theme v2): black canvas + fluid shader, grid, translucent cards. */
:root { --brand-accent: #1D9BF0; --brand-accent-hover: #1A8CD8; --brand-accent-bg: rgba(29,155,240,.12); --brand-accent-glow: rgba(29,155,240,.28); }
html, body { background: #000; color: #F5F5F7; overflow-x: hidden; }
@view-transition { navigation: auto; }
::selection { background: var(--brand-accent); color: #fff; }
.ui-accent-text { color: var(--brand-accent); }
.ui-accent-bg { background-color: var(--brand-accent); }

#bg-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; display: block; view-transition-name: bg-canvas; }
.infinite-grid-bg { position: fixed; top: -120px; left: -120px; width: calc(100vw + 240px); height: calc(100vh + 240px); pointer-events: none; z-index: 1;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px, 80px 80px, 80px 80px; opacity: .75; contain: strict; }
::view-transition-group(bg-canvas), ::view-transition-old(bg-canvas), ::view-transition-new(bg-canvas) { animation: none; }
main, footer { position: relative; z-index: 2; }

:where(a, button, input, summary):focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; border-radius: .5rem; }

/* Surfaces, as in the app */
.card { background: rgba(8,8,12,.88); border: 1px solid rgba(255,255,255,.08); border-radius: 1rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
a.card { transition: border-color .2s, background-color .2s; }
a.card:hover { border-color: color-mix(in srgb, var(--brand-accent) 55%, transparent); background: rgba(12,12,18,.92); }
.inset { background: rgba(5,5,7,.6); border: 1px solid rgba(255,255,255,.06); border-radius: .75rem; }

/* Type */
.eyebrow { font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-accent); }
.h1 { font-family: 'Syne', sans-serif; font-weight: 800; color: #fff; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; }
@media (min-width: 640px) { .h1 { font-size: 1.875rem; } }
.h2 { font-family: 'Syne', sans-serif; font-weight: 800; color: #fff; font-size: 1.125rem; line-height: 1.3; }
.lead { color: #a3a3a3; font-size: .8125rem; line-height: 1.7; max-width: 42rem; }
.meta { font: 400 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: #8a8a8a; }

/* Search, styled like the home hero */
.fsb-search { background: rgba(13,13,17,.92); border: 1px solid rgba(38,38,42,.9); border-radius: 1rem; padding: .5rem; display: flex; align-items: center; transition: border-color .2s; }
.fsb-search:focus-within { border-color: var(--brand-accent); }
.fsb-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff; font-size: .8125rem; padding: .7rem .25rem; }
.fsb-search input::placeholder { color: #737373; }
.fsb-search button { background: #fff; color: #000; font-weight: 600; font-size: .75rem; padding: .75rem 1.15rem; border-radius: .75rem; min-height: 44px; display: inline-flex; align-items: center; gap: .5rem; transition: background-color .15s; }
.fsb-search button:hover { background: #e5e5e5; }

.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem; border-radius: .5rem; font-size: 11px; color: #a3a3a3;
  background: rgba(13,13,17,.6); border: 1px solid rgba(38,38,42,.9); transition: color .15s, border-color .15s; }
a.chip:hover, button.chip:hover { color: #fff; border-color: rgba(82,82,91,1); }

/* Long-form text, at the app's density */
.prose { color: #c7c7cc; font-size: .875rem; line-height: 1.75; max-width: 46rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: 'Syne', sans-serif; font-weight: 800; color: #fff; font-size: 1.125rem; line-height: 1.3; margin-top: 2.25em; scroll-margin-top: 7rem; }
.prose h3 { color: #fff; font-weight: 700; font-size: .95rem; margin-top: 1.75em; scroll-margin-top: 7rem; }
.prose a { color: #fff; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand-accent) 70%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: #fff; }
.prose strong { color: #fff; font-weight: 600; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; color: #fff; background: #171717; padding: .1em .35em; border-radius: .3rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--brand-accent); }
.prose .note { background: var(--brand-accent-bg); border: 1px solid color-mix(in srgb, var(--brand-accent) 35%, transparent); border-radius: .9rem; padding: .9rem 1rem; color: #e5e5e5; font-size: .8125rem; }
.table-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,.08); border-radius: .9rem; background: rgba(8,8,12,.7); }
.prose table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.prose th { text-align: left; color: #737373; font: 700 10px/1.4 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; }
.prose th, .prose td { padding: .65rem .9rem; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }

.toc a { display: block; font-size: 11px; color: #8a8a8a; padding: .3rem 0 .3rem .75rem; border-left: 1px solid #262626; }
.toc a:hover { color: #fff; border-left-color: var(--brand-accent); }

details.qa { border-bottom: 1px solid rgba(255,255,255,.06); }
details.qa:last-child { border-bottom: 0; }
details.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem 1.1rem; color: #fff; font-size: .8125rem; font-weight: 600; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: '\f078'; font-family: 'Font Awesome 6 Pro', 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; color: #737373; transition: transform .2s; }
details.qa[open] summary::after { transform: rotate(180deg); }
details.qa .a { color: #a3a3a3; font-size: .8125rem; line-height: 1.7; padding: 0 1.1rem 1.1rem; }
details.qa .a a { color: #fff; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand-accent) 70%, transparent); text-underline-offset: 3px; }

.stat { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #fff; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1; }
.bar { height: 6px; border-radius: 999px; background: #171717; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--brand-accent); }

.tl { border-left: 1px solid #262626; padding-left: 1.4rem; }
.tl-item { position: relative; padding-bottom: 2.25rem; }
.tl-item::before { content: ''; position: absolute; left: calc(-1.4rem - 4px); top: .35rem; width: 7px; height: 7px; border-radius: 99px; background: var(--brand-accent); box-shadow: 0 0 0 4px var(--brand-accent-bg); }
.tag { flex-shrink: 0; display: inline-block; width: 5.2rem; text-align: center; font: 700 9px/1.9 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; border-radius: .35rem; }
.tag.new { color: #34d399; background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.25); }
.tag.improved { color: #60a5fa; background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.25); }
.tag.fixed { color: #fbbf24; background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.25); }
.tag.security { color: #f87171; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25); }
.tag.removed { color: #a3a3a3; background: rgba(82,82,91,.12); border: 1px solid rgba(82,82,91,.35); }

pre.code { font: 400 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: #e5e5e5; background: rgba(5,5,7,.8); border: 1px solid rgba(255,255,255,.06);
  border-radius: .75rem; padding: .9rem 1rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* As in the app */
.font-800 { font-weight: 800; }
.search-disclaimer { color: #71717a; text-shadow: 0 1px 10px rgba(0,0,0,.95); }
.search-disclaimer a { color: #a1a1aa; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #404040; transition: color .15s; }
.search-disclaimer a:hover { color: #fff; text-decoration-color: var(--brand-accent); }
details.qa summary, .toc .eyebrow { font-family: 'Syne', sans-serif; font-weight: 800; }
dt { font-family: 'Syne', sans-serif; font-weight: 800; }

/* Theme: v2 (default) vs legacy, from the same fsb_ui_theme setting as the app */
.hdr-legacy { display: none; }
html.theme-legacy .hdr-v2, html.theme-legacy #bg-canvas, html.theme-legacy .infinite-grid-bg { display: none !important; }
html.theme-legacy .hdr-legacy { display: block; }
html.theme-legacy body { background-color: #030303; }
html.theme-legacy body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background-color: #030303;
  background-image: linear-gradient(var(--brand-accent-bg) 1px, transparent 1px), linear-gradient(90deg, var(--brand-accent-bg) 1px, transparent 1px);
  background-size: 50px 50px; opacity: .35; }
html.theme-legacy main#main { padding-top: 2rem; }
@media (min-width: 640px) { html.theme-legacy main#main { padding-top: 3rem; } }
html.theme-legacy .card { background: #08080A; border-color: #171717; backdrop-filter: none; -webkit-backdrop-filter: none; }
html.theme-legacy a.card:hover { background: #0B0B0E; }
html.theme-legacy .fsb-search { background: #0D0D11; border-color: #171717; }
html.theme-legacy .table-wrap { background: #08080A; }
