/* beQ – shared base for the blog pages (blog.html, post.html). Same tokens as index.html. */
:root {
  color-scheme: dark;
  --ink: #070b18;
  --navy: #1c2545;
  --surface: #0d1328;
  --line: rgba(206, 218, 255, .13);
  --text: #eef2f7;
  --muted: #95a1b8;
  --dim: #5f6b85;
  --green: #00d58f;
  --green-soft: rgba(0, 213, 143, .14);
  --font: "Inter", "DIN Next W1G", "Helvetica Neue", Arial, sans-serif;
  --gut: 16px;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; background: radial-gradient(1200px 600px at 80% -10%, rgba(0, 213, 143, .08), transparent 60%), var(--ink); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
img { max-width: 100%; display: block; }
.brand { text-transform: none; letter-spacing: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; width: 100%; padding-inline: max(var(--gut), env(safe-area-inset-left, 0px)) max(var(--gut), env(safe-area-inset-right, 0px)); }
.label { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--green); }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 24px; border-radius: 999px; background: var(--green); color: #06221a; font-weight: 500; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; transition: transform .2s, box-shadow .2s; }
.pill:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(0, 213, 143, .35); }
.pill[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.ghost { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 15px; }
.ghost svg { width: 18px; height: 18px; transition: transform .2s; }
.ghost:hover svg { transform: translateX(-4px); }

/* Header */
header.top { padding-block: 22px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
header.top img { width: 104px; height: auto; }
header.top nav { display: flex; gap: 30px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
header.top nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
header.top nav a:hover, header.top nav a[aria-current] { color: var(--text); }
header.top .pill { height: 40px; padding: 0 18px; font-size: 14px; }

/* Blog list */
.bl-head { padding-block: 70px 10px; }
.bl-head h1 { font-size: clamp(44px, 6vw, 88px); line-height: 1; letter-spacing: -.035em; margin-top: 18px; }
.bl-head p { margin-top: 18px; color: var(--muted); font-weight: 300; font-size: 19px; max-width: 34em; }
.ncards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 46px; }
.ncard { text-decoration: none; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; min-width: 0; transition: border-color .2s; }
.ncard:hover { border-color: rgba(0, 213, 143, .5); }
.ncard img, .ncard .bq-nocover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ncard .bq-nocover { background: radial-gradient(circle at 30% 30%, var(--green-soft), transparent 60%), var(--navy); }
.ncard div { padding: 20px 22px 24px; }
.ncard time { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ncard h3 { font-size: 21px; line-height: 1.3; margin-top: 10px; }
.ncard p { color: var(--muted); font-size: 15px; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard.bq-skel { min-height: 320px; background: linear-gradient(100deg, var(--surface) 30%, #131b36 50%, var(--surface) 70%); background-size: 300% 100%; animation: bqShimmer 1.4s linear infinite; }
@keyframes bqShimmer { to { background-position: -150% 0; } }
.bl-more { display: flex; justify-content: center; margin-top: 40px; }
.bq-note { color: var(--muted); font-size: 16px; }
.ncards > .bq-note { grid-column: 1 / -1; }

/* Post */
.post { padding-block: 40px 40px; }
.post .back { margin-bottom: 34px; color: var(--muted); }
.post-head { max-width: 860px; }
.post-head time { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.post-head h1 { font-size: clamp(36px, 5vw, 66px); line-height: 1.05; letter-spacing: -.03em; margin-top: 16px; }
.post-head .meta { margin-top: 18px; color: var(--muted); font-size: 15px; }
.post-cover { margin-top: 40px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); max-height: 560px; }
.post-cover img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }
.post-body { max-width: 760px; margin-top: 46px; font-weight: 300; font-size: 19px; line-height: 1.75; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2, .post-body h3, .post-body h4 { font-weight: 400; line-height: 1.2; letter-spacing: -.01em; margin-top: 1.8em; }
.post-body h2 { font-size: 32px; }
.post-body h3 { font-size: 25px; }
.post-body a { color: var(--green); }
.post-body strong, .post-body b { font-weight: 500; }
.post-body img, .post-body video, .post-body iframe { width: 100%; height: auto; border-radius: 14px; }
.post-body figure { margin: 1.6em 0; }
.post-body figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.post-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--green); color: var(--text); font-size: 22px; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body hr { border: 0; border-top: 1px solid var(--line); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; max-width: 760px; }
.post-tags span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--muted); }
.related { margin-top: 90px; padding-top: 50px; border-top: 1px solid var(--line); }
.related h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; }
.cta-band { margin-top: 90px; padding: 46px 0 10px; text-align: center; }
.cta-band h2 { font-size: clamp(32px, 4vw, 54px); letter-spacing: -.03em; }
.cta-band h2 span { color: var(--green); }
.cta-band .pill { margin-top: 26px; }

footer { border-top: 1px solid var(--line); margin-top: 90px; padding-block: 36px 60px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  header.top nav { display: none; }
  .ncards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  header.top img { width: 84px; }
  header.top .pill { height: 40px; padding: 0 14px; font-size: 13px; }
  .ncards { grid-template-columns: minmax(0, 1fr); }
  .bl-head { padding-top: 40px; }
  .post-body { font-size: 17px; }
  .post-cover, .post-cover img { max-height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .ncard.bq-skel { animation: none; } }

/* beQ hub logo (horizontal, no ®) in the header */
header.top img.logo-hub { width: 124px; height: auto; flex: none; }
header.top nav a { white-space: nowrap; }
@media (max-width: 640px) { header.top img.logo-hub { width: 112px; } }
