/* brainpremium.com blog 1.1.0 (2026-11-06: four languages -- the language row beside the breadcrumb)
   1.0.0 (2026-11-06) -- loaded AFTER site.css, whose tokens, header, buttons and footer it reuses.
   A reading page: one column of text near 68 characters, no script, no motion. The pages are generated by
   scripts/site/blog_build.py from frontend/blog-src/*.md; do not edit the HTML by hand. */
/* the home page leaves html and body transparent (its fixed particle layer paints the ground); the blog has no such
   layer, so it must paint its own -- without this a light-mode browser shows light text on white */
html:has(body.blog){background:#0A0D12}
body.blog{background:var(--ground);font-size:16.5px;line-height:1.65}
body.blog main{padding:0 var(--gutter)}

/* header: the same bar as the home page, but static -- no menu button, the three product links fold away on a phone */
.blogtop nav>a[aria-current="page"]{color:var(--text);background:var(--lift)}
@media (max-width:999px){
  .blogtop nav{display:flex;position:static;flex-direction:row;align-items:center;gap:2px;padding:0;margin-left:auto;background:none;border:0}
  .blogtop nav>a.opt{display:none}
  .blogtop nav>a{padding:8px 11px}
  .blogtop nav>a.btn{margin:0 0 0 6px}
}

/* the article */
.post{max-width:760px;margin:0 auto;padding:clamp(28px,5vw,56px) 0 clamp(48px,7vw,88px)}
.crumbrow{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:26px}
.crumbrow>.k{margin:0}
.crumbs{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--muted)}
/* the language row: links, not buttons -- every translation is its own page */
.crumbrow .langs{margin-left:0}
.langs a{font-size:12px;font-weight:600;padding:4px 9px;border-radius:999px;color:var(--muted)}
.langs a:hover{color:var(--text);text-decoration:none}
.langs a[aria-current="true"]{background:var(--lift-2);color:var(--text)}
.crumbs a{color:var(--text-2)}
.post h1{font-size:clamp(28px,4.2vw,42px);line-height:1.12;letter-spacing:-.02em}
.post .meta{margin-top:16px;font-size:13.5px;color:var(--muted);font-family:var(--mono);letter-spacing:.01em}
.toc{margin:28px 0 6px;padding:16px 20px;background:var(--surface);border:1px solid var(--hair);border-radius:14px}
.toc-h{font-family:var(--mono);font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.toc ol{margin:0;padding-left:20px;display:grid;gap:4px;font-size:14.5px}
.toc a{color:var(--text-2)} .toc a:hover{color:var(--signal)}

.prose{margin-top:28px}
.prose>*+*{margin-top:18px}
.prose h2{font-size:clamp(21px,2.4vw,27px);line-height:1.2;margin-top:46px;scroll-margin-top:84px}
.prose h3{font-size:17.5px;line-height:1.3;margin-top:30px;scroll-margin-top:84px}
.prose p,.prose li{color:var(--text-2)}
.prose strong{color:var(--text);font-weight:600}
.prose ul,.prose ol{margin:18px 0 0;padding-left:22px;display:grid;gap:8px}
.prose li::marker{color:var(--signal)}
.prose a{text-decoration:underline;text-decoration-color:rgba(61,220,239,.4);text-underline-offset:3px}
.prose a:hover{text-decoration-color:var(--signal)}
.prose code{font-family:var(--mono);font-size:.88em;padding:1px 6px;border-radius:6px;background:var(--lift)}
.prose blockquote{margin:22px 0 0;padding:4px 0 4px 18px;border-left:2px solid var(--signal)}

/* the direct answer: what a reader (or an answer engine) takes away if it reads nothing else */
.box{padding:18px 22px;border-radius:14px;border:1px solid var(--hair-2);background:var(--surface)}
.box>*+*{margin-top:12px}
.box.answer{border-color:rgba(61,220,239,.35);background:linear-gradient(180deg,rgba(61,220,239,.07),rgba(61,220,239,.02))}
.box.answer p{color:var(--text);font-size:17.5px;line-height:1.6}
.box.note p{font-size:15px}

/* tables scroll inside their own box on a phone; the page never does */
.tablewrap{margin-top:22px;overflow-x:auto;border:1px solid var(--hair);border-radius:14px;background:var(--surface)}
.tablewrap:focus-visible{outline:2px solid var(--signal);outline-offset:2px}
.prose table{border-collapse:collapse;width:100%;min-width:640px;font-size:14px;line-height:1.45}
.prose th,.prose td{padding:11px 14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--hair)}
.prose thead th{font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:400;background:var(--lift)}
/* a comparison table is wider than a line of prose: on a desktop it steps out of the text column instead of scrolling */
@media (min-width:1100px){
  .prose .tablewrap{width:min(1080px,calc(100vw - 2*var(--gutter)));margin-left:50%;transform:translateX(-50%)}
}
.prose tbody th{color:var(--text);font-weight:600;white-space:nowrap}
.prose tbody td{color:var(--text-2)}
.prose tbody tr:last-child th,.prose tbody tr:last-child td{border-bottom:0}
.prose tbody tr:first-child th,.prose tbody tr:first-child td{background:rgba(61,220,239,.045)}

.prose figure.shot{margin:28px 0 0}
.prose figure.shot img{width:100%;height:auto}

.disclosure{margin-top:40px;padding-top:18px;border-top:1px solid var(--hair);font-size:13.5px;color:var(--muted)}
.cta-card{margin-top:30px;padding:26px 26px 28px;border-radius:18px;border:1px solid var(--hair-2);background:var(--surface)}
.cta-card h2{font-size:22px}
.cta-card p{margin-top:8px;color:var(--text-2)}
.cta-card .acts{margin-top:18px}
.related{margin-top:44px;padding:0}
.related h2{font-size:15px;font-family:var(--mono);font-weight:400;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.related ul{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:10px}
.related a{display:block;padding:14px 18px;border:1px solid var(--hair);border-radius:12px;background:var(--surface);color:var(--text);font-weight:500}
.related a:hover{border-color:var(--hair-2);background:var(--lift);text-decoration:none}

/* the list */
.bloglist{max-width:860px;padding:clamp(36px,6vw,72px) 0 clamp(48px,7vw,88px)}
.bloglist h1{font-size:clamp(30px,4.6vw,48px)}
.bloglist .lead{margin-top:14px}
.entries{list-style:none;margin:34px 0 0;padding:0;display:grid;gap:14px}
.entry a{display:block;padding:22px 24px;border:1px solid var(--hair);border-radius:16px;background:var(--surface);color:inherit;transition:border-color .15s,background .15s}
.entry a:hover{border-color:rgba(61,220,239,.35);background:var(--lift);text-decoration:none}
.entry .k{margin-bottom:8px}
.entry h2{font-size:clamp(19px,2.2vw,23px);line-height:1.25;color:var(--text)}
.entry .desc{margin-top:8px;color:var(--text-2);font-size:15px}
.entry .meta{margin-top:12px;font-size:12.5px;color:var(--muted);font-family:var(--mono)}

a:focus-visible,.btn:focus-visible{outline:2px solid var(--signal);outline-offset:2px;border-radius:6px}
@media (max-width:759px){
  body.blog{font-size:16px}
  .box{padding:16px 16px}
  .box.answer p{font-size:16.5px}
  .cta-card{padding:20px 18px 22px}
  .entry a{padding:18px 18px}
}
