/* Bolqan public pages (generated by seo/build.mjs). Plain HTML + this file: fast, readable without JavaScript. */
@font-face { font-family: 'BQ Sans'; src: url('/seo/inter-regular-latin.woff?v=1') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'BQ Sans'; src: url('/seo/inter-semibold-latin.woff?v=1') format('woff'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'BQ Display'; src: url('/seo/interdisplay-bold-latin.woff?v=1') format('woff'); font-weight: 700 800; font-display: swap; }

:root {
  --bg: #0b0b0c; --bg2: #121214; --bg3: #17171a; --line: #26262b; --line2: #34343a;
  --text: #ececf0; --soft: #b8b8c0; --dim: #8c8c95;
  --lava: #ff5a0a; --lava2: #ff8a3d; --gold: #ffb800; --green: #4ade80; --blue: #8db0ff;
  --radius: 16px; --wrap: 1120px; --read: 720px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 'BQ Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; text-rendering: optimizeLegibility; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration-color: rgba(255,90,10,.6); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: var(--lava); }
:focus-visible { outline: 2px solid var(--lava2); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--lava); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--read); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11,11,12,.86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 800 19px/1 'BQ Display', 'BQ Sans', sans-serif; letter-spacing: .04em; }
.brand svg { width: 30px; height: 30px; }
.brand .q { color: var(--lava); }
.nav { display: flex; gap: 4px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--soft); font-size: 15px; font-weight: 600; padding: 8px 10px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current] { color: #fff; background: rgba(255,255,255,.05); }
.act { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; border: 1px solid var(--line2); color: #fff; background: transparent; }
.btn:hover { border-color: #55555d; }
.btn.lava { border: 0; color: #160700; background: linear-gradient(100deg, var(--gold), var(--lava) 55%, #ff2e2e); box-shadow: 0 10px 30px -12px rgba(255,90,10,.7); }
.btn.lava:hover { filter: brightness(1.06); color: #160700; }
.btn.big { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
@media (max-width: 860px) { .top .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 6px; gap: 6px 12px; } .nav { order: 3; width: 100%; margin: 0 -10px; } .act .login { display: none; } }

/* page head */
.crumbs { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--dim); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #55555d; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.hero { padding: 22px 0 8px; }
.kicker { margin: 0 0 10px; color: var(--lava2); font-weight: 600; font-size: 15px; }
h1, h2, h3 { font-family: 'BQ Display', 'BQ Sans', sans-serif; color: #fff; letter-spacing: -.02em; line-height: 1.12; }
h1 { font-size: clamp(34px, 5.2vw, 56px); margin: 0; max-width: 20ch; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: #d4d4da; margin: 18px 0 0; max-width: 62ch; }
.meta { margin: 14px 0 0; font-size: 14px; color: var(--dim); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* layout: article + side */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding: 30px 0 20px; }
@media (max-width: 980px) { .grid { grid-template-columns: minmax(0,1fr); gap: 24px; } }
.side { position: sticky; top: 88px; display: grid; gap: 16px; }
@media (max-width: 980px) { .side { position: static; } }

/* article text */
.prose { max-width: var(--read); }
.prose h2 { font-size: clamp(25px, 2.6vw, 32px); margin: 46px 0 12px; scroll-margin-top: 84px; }
.prose h3 { font-size: 21px; margin: 30px 0 8px; }
.prose p { margin: 0 0 16px; color: #dadade; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: #dadade; }
.prose ul.hub, .prose ul.cards, .prose ol.steps { padding-left: 0; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--lava2); }
.prose strong { color: #fff; }
.prose blockquote { margin: 20px 0; padding: 14px 18px; border-left: 3px solid var(--lava); background: var(--bg2); border-radius: 0 12px 12px 0; color: #e6e6ea; }
.prose code { font: 500 .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: #1c1c20; padding: 2px 6px; border-radius: 6px; }
.prose .note { font-size: 15px; color: var(--soft); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

/* answer box: the short, quotable answer at the top of a page */
.answer { margin: 26px 0 6px; padding: 18px 20px; border: 1px solid rgba(255,90,10,.35); background: linear-gradient(180deg, rgba(255,90,10,.08), rgba(255,90,10,.02)); border-radius: var(--radius); }
.answer p { margin: 0; color: #f1f1f4; font-size: 18px; line-height: 1.6; }
.answer .lbl { display: block; margin-bottom: 6px; color: var(--lava2); font-weight: 700; font-size: 14px; }

/* facts: a definition list */
.facts { border: 1px solid var(--line); background: var(--bg2); border-radius: var(--radius); padding: 18px 18px 8px; }
.facts h2, .side h2 { font-size: 17px; margin: 0 0 10px; letter-spacing: 0; }
.facts dl { margin: 0; }
.facts dt { color: var(--dim); font-size: 13.5px; font-weight: 600; margin-top: 10px; }
.facts dd { margin: 2px 0 0; font-size: 15px; line-height: 1.5; color: #e7e7eb; }
.facts dd + dt { border-top: 1px solid var(--line); padding-top: 10px; }
.sidecta { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg3); }
.sidecta p { margin: 0 0 12px; color: var(--soft); font-size: 15px; }
.sidecta .btn { width: 100%; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.toc ol { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--soft); }
.toc li { margin: 6px 0; }
.toc a { color: var(--soft); text-decoration: none; }
.toc a:hover { color: #fff; }

/* cards and steps */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 18px 0 24px; padding: 0; list-style: none; }
.cards li { margin: 0; border: 1px solid var(--line); background: var(--bg2); border-radius: 14px; padding: 16px; }
.cards li::marker { content: none; }
.cards b { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; }
.cards span { color: var(--soft); font-size: 15px; line-height: 1.5; }
.cards a.card { text-decoration: none; display: block; color: inherit; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; margin: 18px 0 24px; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; margin: 0; padding: 14px 16px 14px 58px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 14px/1 'BQ Sans', sans-serif; color: #160700; background: linear-gradient(135deg, var(--gold), var(--lava)); }
.steps b { color: #fff; }

/* tables */
.tbl { width: 100%; overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--bg3); color: #fff; font-weight: 700; font-size: 14px; }
tbody th { color: var(--soft); font-weight: 600; width: 30%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td .yes { color: var(--green); font-weight: 700; }
td .no { color: #ff8a7a; font-weight: 700; }
caption { caption-side: bottom; text-align: left; padding: 10px 14px; color: var(--dim); font-size: 13.5px; }

/* FAQ (works without JavaScript) */
.faq { margin: 12px 0 24px; display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 600; color: #fff; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 11px; font-size: 22px; color: var(--lava2); }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 16px 14px; color: #d8d8de; }
.faq .a p { margin: 0 0 10px; }

/* call to action */
.band { margin: 40px 0 10px; border-radius: 22px; padding: 30px; border: 1px solid rgba(255,90,10,.3); background: radial-gradient(120% 140% at 0% 0%, rgba(255,90,10,.18), transparent 60%), var(--bg2); }
.band h2 { margin: 0 0 8px; font-size: clamp(24px, 2.6vw, 32px); }
.band p { margin: 0 0 18px; color: var(--soft); max-width: 60ch; }
.related { margin: 34px 0 0; }
.related h2 { font-size: 21px; }

/* hub lists */
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin: 26px 0 30px; padding: 0; list-style: none; }
.hub li { margin: 0; }
.hub a { display: block; height: 100%; text-decoration: none; border: 1px solid var(--line); background: var(--bg2); border-radius: 16px; padding: 18px; transition: border-color .15s; }
.hub a:hover { border-color: #4a4a52; }
.hub b { display: block; color: #fff; font: 700 19px/1.25 'BQ Display', 'BQ Sans', sans-serif; margin-bottom: 6px; }
.hub span { color: var(--soft); font-size: 15px; line-height: 1.5; display: block; }
.hub small { display: block; margin-top: 10px; color: var(--dim); font-size: 13px; }

/* calculator tool */
.calc { border: 1px solid var(--line); border-radius: 18px; background: var(--bg2); padding: 20px; margin: 22px 0 28px; }
.calc .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.calc label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--soft); }
.calc input, .calc select { width: 100%; min-width: 0; height: 44px; border-radius: 11px; border: 1px solid var(--line2); background: #0e0e10; color: #fff; padding: 0 12px; font: 600 16px/1 'BQ Sans', sans-serif; }
.calc .out { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.calc .out div { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--bg3); }
.calc .out b { display: block; font: 800 28px/1.1 'BQ Display', sans-serif; color: #fff; }
.calc .out span { color: var(--dim); font-size: 13.5px; }
.calc noscript p { color: var(--soft); }

/* footer */
.foot { margin-top: 60px; border-top: 1px solid var(--line); padding: 40px 0 50px; color: var(--dim); font-size: 14.5px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 26px; }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
.foot h2 { font-size: 14px; color: #fff; margin: 0 0 10px; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .about p { margin: 12px 0 0; max-width: 36ch; line-height: 1.55; }
.foot .legal { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 16px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .top, .foot, .side, .band { display: none; } body { background: #fff; color: #000; } }
