/* ============ Blog & Releases ============
   Built on the landing page's semantic variables (landing.css), which carry
   full light/dark overrides: --text*, --surface*, --border*, --accent*. */

/* Blog content spans the same container width as the header nav. */
.b-narrow { max-width: var(--maxw); }
.prose p, .prose ul, .prose ol, .prose blockquote { max-width: 860px; }

/* ---- post header ---- */
.b-post__head { margin-bottom: 40px; }
.b-post__title { margin: 10px 0 14px; }
.b-post__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  color: var(--text-subtle); font-size: 14px; margin-bottom: 18px;
}
.b-crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--text-subtle); text-decoration: none; }
.b-crumb:hover { color: var(--text); }
.b-crumb svg { width: 15px; height: 15px; }
.b-dot { opacity: .5; }

.b-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.b-tag { text-decoration: none; }
.b-tag.is-active { background: var(--cta-bg); color: var(--cta-fg); border-color: transparent; }
.b-tag--sm { font-size: 11px; padding: 2px 8px; }

/* ---- article prose ---- */
.prose { font-size: 17px; line-height: 1.7; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 26px; line-height: 1.25; margin-top: 2em; letter-spacing: -0.01em; color: var(--text); }
.prose h3 { font-size: 20px; line-height: 1.3; margin-top: 1.8em; color: var(--text); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose blockquote {
  border-left: 3px solid var(--border-strong);
  padding: 4px 0 4px 18px; color: var(--text-muted);
}
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.2em 0; }
.prose code {
  font-family: var(--cc-font-mono); font-size: .88em;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 5px; color: var(--text);
}
.prose em { color: var(--text-muted); }

/* tables: horizontal scroll on narrow screens, never widen the page */
.prose table {
  display: block; overflow-x: auto; max-width: 100%;
  border-collapse: collapse; font-size: 14.5px; line-height: 1.45;
  -webkit-overflow-scrolling: touch;
}
.prose th, .prose td {
  border: 1px solid var(--border); padding: 9px 12px;
  text-align: left; vertical-align: top; min-width: 90px;
  background: var(--surface);
}
.prose th { background: var(--surface-2); color: var(--text); white-space: nowrap; }
.prose tr:nth-child(even) td { background: var(--surface-2); }

/* ---- end-of-post CTA ---- */
.b-cta {
  margin-top: 56px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding: 28px;
}
.b-cta h4 { margin: 0 0 6px; }
.b-cta p { margin: 0; max-width: 480px; }
.b-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- blog index ---- */
.b-filter { margin: 34px 0 26px; display: flex; flex-direction: column; gap: 14px; }
.b-filter__input {
  width: 100%; max-width: 420px; padding: 10px 14px; font: inherit; font-size: 15px;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; outline: none;
}
.b-filter__input::placeholder { color: var(--text-faint); }
.b-filter__input:focus { border-color: var(--ring); box-shadow: 0 0 0 3px var(--accent-soft); }
.b-filter .b-tags { margin-top: 0; }

.b-list { display: flex; flex-direction: column; gap: 16px; }
.b-card { display: block; text-decoration: none; color: inherit; }
.b-card h3 { margin: 8px 0 6px; font-size: 20px; line-height: 1.3; }
.b-card p { margin: 0; }
.b-card__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  color: var(--text-subtle); font-size: 13px;
}
.b-card__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 14px; font-weight: 600; color: var(--accent);
}
.b-card__more svg { width: 15px; height: 15px; }

/* ---- releases timeline ---- */
.rel-timeline { margin-top: 38px; display: flex; flex-direction: column; gap: 40px; }
.rel-date { font-size: 19px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.rel-date a { color: inherit; text-decoration: none; }
.rel-date a:hover { text-decoration: underline; }
.rel-changes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rel-change {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--border);
  border-radius: var(--card-radius); background: var(--surface);
}
.rel-change__title { margin: 0; font-weight: 600; color: var(--text); }
.rel-change__desc { margin: 5px 0 0; font-size: 14.5px; line-height: 1.55; }
.rel-badge {
  flex: none; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; margin-top: 2px;
}
.rel-badge--feature { background: #F1F4E5; color: #5C6A24; }
.rel-badge--improvement { background: #E9F2FF; color: #0055CC; }
.rel-badge--bugfix { background: #FFEFEC; color: #AE2E24; }
.rel-badge--breaking { background: #FFF3D6; color: #946F00; }

[data-theme="dark"] .rel-badge--feature { background: rgba(157,171,88,.2); color: #C7D488; }
[data-theme="dark"] .rel-badge--improvement { background: rgba(76,154,255,.18); color: #85B8FF; }
[data-theme="dark"] .rel-badge--bugfix { background: rgba(201,55,44,.22); color: #FF8F84; }
[data-theme="dark"] .rel-badge--breaking { background: rgba(226,178,3,.18); color: #E6C34D; }

@media (max-width: 640px) {
  .prose { font-size: 16px; }
  .b-cta { padding: 20px; }
}
