/* Blog bundle stylesheet. Dark-only, self-contained: the static pages are
   served outside the SPA, so the --bt-* values are inlined here rather than
   imported from shell-theme.css.

   Adopted from the M55 reference bundle, which produced the initial
   zero-article deploy before a content exporter existed. Per the Blog Content
   Delivery Contract, everything under site/ is content-side, so this file is
   now maintained here and shipped fingerprinted into site/assets/.

   Additions beyond the M55 reference are marked BOGA-CONTENT below. */
:root {
  --bt-bg: #0a0d14; --bt-bg-elev: #0f1320; --bt-bg-elev-2: #141828;
  --bt-fg: #e8eaf0; --bt-fg-dim: #a8b0c2; --bt-muted: #6b7487;
  --bt-border: rgba(255,255,255,0.08); --bt-border-strong: rgba(255,255,255,0.14);
  --bt-accent: #6366f1; --bt-accent-2: #a855f7;
  --bt-radius: 10px; --bt-radius-lg: 14px;
  --bt-font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --bt-maxw: 760px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bt-bg); color: var(--bt-fg);
  font-family: var(--bt-font-display); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--bt-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.blog-shell { max-width: var(--bt-maxw); margin: 0 auto; padding: 0 20px; }
.blog-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--bt-border);
  max-width: 100%;
}
.blog-topbar-inner { max-width: var(--bt-maxw); margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between; }
.blog-logo { display: inline-flex; align-items: center; gap: 8px;
  color: var(--bt-fg); font-weight: 700; }
.blog-logo span.dim { color: var(--bt-muted); }
.blog-nav a { color: var(--bt-fg-dim); margin-left: 18px; }
.blog-hero { padding: 40px 0 8px; }
.blog-hero h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 8px; }
.blog-eyebrow { color: var(--bt-accent); font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 10px; }
.blog-meta { color: var(--bt-muted); font-size: .85rem; display: flex; gap: 12px;
  flex-wrap: wrap; }
.blog-list { list-style: none; padding: 0; margin: 24px 0; }
.blog-card { border: 1px solid var(--bt-border); border-radius: var(--bt-radius-lg);
  padding: 20px; margin-bottom: 16px; background: var(--bt-bg-elev); }
.blog-card h2 { margin: 0 0 6px; font-size: 1.25rem; }
.blog-card p { margin: 0 0 10px; color: var(--bt-fg-dim); }
.blog-empty { border: 1px dashed var(--bt-border-strong); border-radius: var(--bt-radius-lg);
  padding: 32px; text-align: center; color: var(--bt-fg-dim); margin: 24px 0; }
.blog-article { padding: 8px 0 48px; }
.blog-article p { margin: 0 0 16px; }
.blog-article h2 { margin: 28px 0 10px; }
.blog-cta-wrap { border: 1px solid var(--bt-border); background: var(--bt-bg-elev-2);
  border-radius: var(--bt-radius-lg); padding: 24px; margin: 32px 0; text-align: center; }
.blog-cta { display: inline-block; margin-top: 10px; padding: 10px 18px;
  border-radius: var(--bt-radius); background: var(--bt-accent); color: #fff;
  font-weight: 600; }
.blog-cta:hover { text-decoration: none; opacity: .92; }
.blog-disclaimer { color: var(--bt-muted); font-size: .8rem; border-top: 1px solid var(--bt-border);
  padding: 20px 0; margin-top: 24px; }
.blog-footer { border-top: 1px solid var(--bt-border); color: var(--bt-muted);
  font-size: .85rem; padding: 24px 20px; }
.blog-footer-inner { max-width: var(--bt-maxw); margin: 0 auto; display: flex;
  gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.blog-footer-inner a { margin-left: 18px; }

/* BOGA-CONTENT: figures. The M55 reference had no img rule at all, so a chart
   generated at 1438px would render at intrinsic size and overflow the 760px
   column. Decision #52: charts render once on white and a dark page wraps them
   in a light panel, rather than shipping a second dark variant. The panel also
   contains the accent divergence (blog indigo vs content violet, OPS-009). */
.blog-article img { display: block; max-width: 100%; height: auto; }
.blog-article figure {
  background: #ffffff;
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius-lg);
  padding: 16px;
  margin: 32px 0;
}
/* The caption sits INSIDE the light panel, so it takes a dark muted ink, not
   the page's --bt-fg-dim. That value is tuned for #0a0d14; on white it lands
   near 2:1 contrast and is effectively invisible. #6f6b85 is the content
   template's muted tone and clears AA on white. */
.blog-article figcaption {
  color: #6f6b85;
  font-size: .88rem;
  line-height: 1.5;
  margin-top: 12px;
  padding: 0 2px;
}

/* BOGA-CONTENT: tables. The M55 reference styled none, so a results table -
   which a piece that tests folk rules will routinely carry - rendered as bare
   unaligned text. Scrolls rather than overflowing on a narrow screen. */
.blog-article .table-wrap { overflow-x: auto; margin: 24px 0; }
.blog-article table {
  border-collapse: collapse; width: 100%; font-size: .93rem;
}
.blog-article th, .blog-article td {
  border: 1px solid var(--bt-border); padding: 9px 12px; text-align: left;
}
.blog-article th {
  background: var(--bt-bg-elev); color: var(--bt-fg); font-weight: 600;
}

/* BOGA-CONTENT: emphasis and quotes used by the house voice. */
.blog-article strong { color: var(--bt-fg); font-weight: 700; }
.blog-article blockquote {
  margin: 24px 0; padding: 14px 20px;
  background: var(--bt-bg-elev); border-left: 3px solid var(--bt-accent);
  border-radius: 0 var(--bt-radius) var(--bt-radius) 0; color: var(--bt-fg-dim);
}

@media (max-width: 640px) {
  .blog-hero h1 { font-size: 1.5rem; }
  .blog-nav a { margin-left: 12px; }
  .blog-article figure { padding: 10px; }
}
