/* ══════════════════════════════════════════════════════════════════════════════
   Simplifyed Blog — Light Theme Stylesheet
   Clean white, #0f172a text, #3b82f6 brand accent
   Google Fonts: Plus Jakarta Sans + Space Grotesk + JetBrains Mono
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ──────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:         #ffffff;
  --bg-2:       #f8fafc;
  --surface:    #f1f5f9;
  --surface-2:  #e2e8f0;
  --surface-3:  #cbd5e1;

  /* Borders */
  --line:       #e2e8f0;
  --line-2:     #cbd5e1;

  /* Typography */
  --text:       #0f172a;
  --text-2:     #1e293b;
  --text-3:     #334155;
  --muted:      #64748b;
  --subtle:     #94a3b8;

  /* Brand */
  --brand:      #3b82f6;
  --brand-dark: #2563eb;
  --brand-light:#eff6ff;
  --brand-2:    #06b6d4;
  --green:      #10b981;
  --orange:     #f97316;
  --purple:     #8b5cf6;
  --gold:       #f59e0b;

  /* Fonts */
  --font-sans:  'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-head:  'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing */
  --max-w:      1200px;
  --header-h:   64px;
  --site-ticker-height: 0px;
  --radius:     8px;
  --radius-lg:  12px;
  --radius-xl:  16px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:  0 4px 12px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg:  0 8px 24px rgba(15,23,42,0.10), 0 4px 8px rgba(15,23,42,0.05);
  --shadow-brand: 0 4px 14px rgba(59,130,246,0.25);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(59,130,246,0.15); color: var(--text); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; color: var(--text); letter-spacing: -0.02em; }

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: 2rem; }
.sr-only { position: absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-ticker-section {
  position: fixed;
  top: 64px;
  z-index: 190;
  margin-top: 0;
  background: #0b1220;
  border-bottom: 1px solid var(--line);
}

.site-ticker-section .tradingview-widget-container,
.site-ticker-section .tradingview-widget-container__widget,
.site-ticker-section iframe {
  display: block;
  width: 100%;
}

.site-ticker-spacer {
  height: 52px;
}

.blog-header {
  --blog-header-top-offset: 0px;
  position: sticky;
  top: var(--blog-header-top-offset);
  z-index: 200;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}

/* Fallback for legacy/cached script versions that insert ticker before header */
#site-ticker-section + .blog-header {
  --blog-header-top-offset: 52px;
}

.blog-header.is-scrolled { box-shadow: var(--shadow-md); }

.blog-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.blog-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.blog-brand__logo { height: 30px; width: auto; }

.blog-brand__name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.blog-brand__name span { color: var(--brand); }

.blog-brand__sep {
  font-size: 0.85rem;
  color: var(--subtle);
  font-weight: 400;
  padding: 0 0.1rem;
}

.blog-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.blog-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}

.blog-nav a:hover, .blog-nav a.active {
  color: var(--text);
  background: var(--surface);
}

/* ── Categories dropdown ─────────────────────────────────────────────────── */
.blog-nav__dropdown { position: relative; }

.blog-nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color .15s, background .15s;
}

.blog-nav__dropdown-toggle:hover,
.blog-nav__dropdown-toggle[aria-expanded="true"] {
  color: var(--text);
  background: var(--surface);
}

.blog-nav__dropdown-toggle svg {
  transition: transform .2s;
  flex-shrink: 0;
}

.blog-nav__dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.blog-nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: 0.4rem;
  z-index: 300;
}

.blog-nav__dropdown-menu.is-open { display: block; }

.blog-nav__dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-radius: calc(var(--radius) - 2px);
  width: 100%;
}

.blog-nav__dropdown-menu a:hover {
  color: var(--text);
  background: var(--surface);
}

.blog-nav__cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.blog-header__actions { display: flex; align-items: center; gap: 0.75rem; }

.btn-main-site {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius);
  transition: background .15s, box-shadow .15s;
}

.btn-main-site:hover { background: #dbeafe; color: var(--brand-dark); box-shadow: var(--shadow-brand); }

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  cursor: pointer;
  transition: color .15s, background .15s;
}

.search-toggle:hover { color: var(--text); background: var(--surface-2); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--muted);
  border-radius: 1px;
  transition: transform .25s, opacity .25s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0;
  z-index: 300;
  background: rgba(15,23,42,0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.search-overlay.is-open { opacity: 1; pointer-events: auto; }

.search-box {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-lg);
}

.search-box form { display: flex; gap: 0.5rem; }

.search-box input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}

.search-box input:focus { border-color: var(--brand); background: var(--bg); }
.search-box input::placeholder { color: var(--subtle); }

.search-box button {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.search-box button:hover { background: var(--brand-dark); }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 50%, #f0f9ff 100%);
  border-bottom: 1px solid var(--line);
  padding: 4rem 0 3rem;
  text-align: center;
}

.blog-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 99px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.25rem;
}

.blog-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.blog-hero__title span { color: var(--brand); }

.blog-hero__desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Category pills */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 99px;
  text-decoration: none;
  transition: color .15s, background .15s, border-color .15s, box-shadow .15s;
}

.cat-pill:hover, .cat-pill.active {
  color: var(--brand);
  background: var(--brand-light);
  border-color: rgba(59,130,246,0.3);
  box-shadow: 0 2px 8px rgba(59,130,246,0.12);
}

.cat-pill__count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--surface);
  border-radius: 99px;
  padding: 0 0.4rem;
  color: var(--subtle);
}

/* ── Main layout ────────────────────────────────────────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding-block: 3rem;
  align-items: start;
}

/* ── Post grid ──────────────────────────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ── Post card ──────────────────────────────────────────────────────────────── */
.post-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--line-2);
}

.post-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.post-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
}

.post-card--featured .post-card__thumb {
  width: 420px;
  aspect-ratio: unset;
  flex-shrink: 0;
}

.post-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.post-card:hover .post-card__thumb img { transform: scale(1.04); }

.post-card__thumb-placeholder {
  width: 100%; height: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, var(--surface) 0%, #eff6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.post-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.post-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 99px;
  text-decoration: none;
  transition: opacity .15s;
  white-space: nowrap;
  border: 1px solid transparent;
}

.cat-badge:hover { opacity: 0.8; color: inherit; }

.post-date, .post-read-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--subtle);
}

.post-read-time::before { content: '·'; margin-right: 0.4rem; }

.post-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.02em;
}

.post-card--featured .post-card__title { font-size: 1.35rem; }

.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--brand); }

.post-card__excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.post-card__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-card__read-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap .15s;
}

.post-card__read-more:hover { gap: 0.5rem; color: var(--brand-dark); }

/* ── Tags on card ───────────────────────────────────────────────────────────── */
.post-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-chip {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  transition: color .15s, background .15s;
}

.tag-chip:hover { color: var(--brand); background: var(--brand-light); }

/* ── Sidebar ────────────────────────────────────────────────────────────────── */
.blog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-widget {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.sidebar-widget__title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.sidebar-widget__body { padding: 1rem 1.25rem; }

/* Search widget */
.sw-search { display: flex; gap: 0.4rem; }
.sw-search input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.sw-search input:focus { border-color: var(--brand); }
.sw-search input::placeholder { color: var(--subtle); }
.sw-search button {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.sw-search button:hover { background: var(--brand-dark); }

/* Categories widget */
.sw-categories { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sw-categories li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.6rem;
  font-size: 0.875rem;
  color: var(--text-3);
  border-radius: var(--radius);
  font-weight: 500;
  transition: color .15s, background .15s;
}
.sw-categories li a:hover, .sw-categories li a.active { color: var(--brand); background: var(--brand-light); }
.sw-cat-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--surface);
  border-radius: 99px;
  padding: 1px 0.45rem;
  color: var(--subtle);
}

/* Recent posts widget */
.sw-recent { list-style: none; display: flex; flex-direction: column; gap: 0; }
.sw-recent li {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.sw-recent li:last-child { border-bottom: none; padding-bottom: 0; }
.sw-recent__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  min-width: 20px;
  padding-top: 2px;
}
.sw-recent__info { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.sw-recent__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.4;
  transition: color .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sw-recent__title:hover { color: var(--brand); }
.sw-recent__date { font-family: var(--font-mono); font-size: 0.68rem; color: var(--subtle); }

/* Tags widget */
.sw-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Newsletter widget */
.sw-newsletter p { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.75rem; line-height: 1.5; }
.sw-newsletter form { display: flex; flex-direction: column; gap: 0.5rem; }
.sw-newsletter input[type="email"] {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.sw-newsletter input[type="email"]:focus { border-color: var(--brand); }
.sw-newsletter input[type="email"]::placeholder { color: var(--subtle); }
.sw-newsletter button {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.sw-newsletter button:hover { background: var(--brand-dark); }
.sw-newsletter .no-spam { font-size: 0.7rem; color: var(--subtle); text-align: center; }

/* ── Pagination ─────────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 2.5rem 0;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: color .15s, background .15s, border-color .15s;
}

.page-btn:hover { color: var(--text); background: var(--surface); border-color: var(--line-2); }
.page-btn--active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-btn--active:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.page-dots { font-size: 0.875rem; color: var(--subtle); padding: 0 0.25rem; }

/* ── Single Post ────────────────────────────────────────────────────────────── */
.post-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 60%, #f0f9ff 100%);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0 0;
}

.post-hero__inner { width: 100%; max-width: 1200px; }

.post-hero__cats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }

.post-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}

.post-hero__excerpt {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

.post-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.post-hero__author {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
}

.post-hero__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

.post-hero__author-name { font-size: 0.875rem; font-weight: 600; color: var(--text-2); }
.post-hero__author-role { font-size: 0.72rem; color: var(--subtle); font-family: var(--font-mono); }

.post-hero__info { display: flex; align-items: center; gap: 1rem; }

.post-hero__date, .post-hero__read-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--subtle);
}

.post-hero__read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 99px;
  color: var(--brand);
  margin-left: auto;
}

/* Featured image */
.post-hero__image {
  margin-top: 2rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  max-height: 480px;
}

.post-hero__image img { width: 100%; object-fit: cover; }

/* Post layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  padding-block: 3rem;
  align-items: start;
}

/* Full-width post layout (no sidebar) */
.post-layout--full {
  display: block;
  padding-block: 3rem;
}
.post-layout--full > main {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

/* ── Post content typography ────────────────────────────────────────────────── */
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-3);
}

.post-content > * { margin-bottom: 1.5rem; }
.post-content > *:last-child { margin-bottom: 0; }

.post-content h2 {
  font-size: 1.5rem;
  color: var(--text);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--line);
  margin-top: 2.5rem;
}

.post-content h2:first-child { margin-top: 0; }
.post-content h3 { font-size: 1.2rem; color: var(--text); margin-top: 2rem; }
.post-content h4 { font-size: 1rem; color: var(--text-2); margin-top: 1.5rem; }
.post-content p { color: var(--text-3); }

.post-content a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(59,130,246,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}

.post-content a:hover { text-decoration-color: var(--brand); }

.post-content blockquote {
  border-left: 3px solid var(--brand);
  padding: 1rem 1.5rem;
  background: #f0f9ff;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-2);
  margin: 1.5rem 0;
}

.post-content blockquote::before {
  content: '\201C';
  font-size: 2rem;
  color: var(--brand);
  opacity: 0.4;
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
  font-family: Georgia, serif;
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 1px 6px;
  border-radius: 4px;
}

.code-block {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.5rem 0;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: #0f172a;
  border-bottom: 1px solid #334155;
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.copy-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748b;
  background: none;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}

.copy-btn:hover { color: #94a3b8; border-color: #475569; }
.copy-btn.copied { color: #10b981; border-color: #10b981; }

.code-block code {
  display: block;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre;
}

.table-wrap { overflow-x: auto; margin: 1.5rem 0; }

.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-content th {
  background: var(--surface);
  padding: 0.65rem 1rem;
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.post-content td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
}

.post-content tbody tr:last-child td { border-bottom: none; }
.post-content tbody tr:hover td { background: var(--surface); }

.post-content ul, .post-content ol { padding-left: 1.5rem; }
.post-content li { color: var(--text-3); margin-bottom: 0.3rem; }
.post-content ul li::marker { color: var(--brand); }
.post-content ol li::marker { color: var(--brand); font-weight: 700; }

.post-image {
  margin: 1.5rem 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
}

.post-image img { width: 100%; display: block; }
.post-image figcaption {
  text-align: center;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--subtle);
  padding: 0.6rem 1rem;
  background: var(--surface);
}

/* Callouts */
.callout {
  display: flex; gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid;
  margin: 1.5rem 0;
}

.callout--note, .callout--info  { background: #eff6ff; border-color: #bfdbfe; }
.callout--tip                   { background: #f0fdf4; border-color: #bbf7d0; }
.callout--warning               { background: #fffbeb; border-color: #fde68a; }
.callout--danger                { background: #fff1f2; border-color: #fecdd3; }
.callout-icon { font-size: 1.1em; flex-shrink: 0; margin-top: 1px; }
.callout-body { font-size: 0.9rem; line-height: 1.6; color: var(--text-2); flex: 1; min-width: 0; overflow: hidden; }
.callout-body pre.code-block { margin: 0.75rem 0; font-size: 0.8rem; }
.callout-body p:first-child { margin-top: 0; }
.callout-body p:last-child  { margin-bottom: 0; }
.callout-body p { margin: 0.4rem 0; }

/* ── Post footer ────────────────────────────────────────────────────────────── */
.post-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.post-tags__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtle);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
}

.post-nav__item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: box-shadow .2s, border-color .2s;
}

.post-nav__item:hover { box-shadow: var(--shadow-md); border-color: var(--line-2); }
.post-nav__item--next { text-align: right; }
.post-nav__label { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--subtle); display: block; margin-bottom: 0.25rem; }
.post-nav__title { font-size: 0.85rem; font-weight: 600; color: var(--text-2); line-height: 1.4; }

/* ── Author box ─────────────────────────────────────────────────────────────── */
.author-box {
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-top: 2.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.author-box__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

.author-box__name { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.author-box__role { font-size: 0.78rem; color: var(--brand); font-family: var(--font-mono); margin-bottom: 0.6rem; }
.author-box__bio { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ── Related posts ──────────────────────────────────────────────────────────── */
.related-posts { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }

.related-posts__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.related-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}

.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.related-card__thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--surface); }
.related-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.related-card:hover .related-card__thumb img { transform: scale(1.05); }
.related-card__thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; background: linear-gradient(135deg, var(--surface), #eff6ff); }

.related-card__body { padding: 1rem; flex: 1; }
.related-card__title { font-size: 0.85rem; font-weight: 600; color: var(--text-2); line-height: 1.4; margin-bottom: 0.4rem; }
.related-card__date { font-family: var(--font-mono); font-size: 0.68rem; color: var(--subtle); }

/* ── Category / search page ─────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
}

.page-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 0.6rem;
}

.page-hero__title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 0.5rem; }
.page-hero__title span { color: var(--brand); }
.page-hero__desc { font-size: 0.95rem; color: var(--muted); max-width: 56ch; }

/* Search results */
.search-hero { padding: 3rem 0 2rem; background: linear-gradient(135deg, #f8fafc, #eff6ff); border-bottom: 1px solid var(--line); }
.search-hero__form { display: flex; gap: 0.5rem; max-width: 560px; margin-top: 1rem; }
.search-hero__form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.search-hero__form input:focus { border-color: var(--brand); }
.search-hero__form button {
  background: var(--brand);
  color: #fff; border: none;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.search-hero__form button:hover { background: var(--brand-dark); }

.search-count { font-size: 0.875rem; color: var(--muted); margin-top: 0.75rem; }
.search-count strong { color: var(--text-2); }

/* No results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
}
.no-results__icon { font-size: 3rem; margin-bottom: 1rem; }
.no-results__title { font-size: 1.25rem; color: var(--text); margin-bottom: 0.5rem; }
.no-results__text { font-size: 0.9rem; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.blog-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  margin-top: 4rem;
}

.blog-footer__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem 0;
}

.blog-footer__brand { display: flex; align-items: center; gap: 0.75rem; }
.blog-footer__brand img { height: 26px; }
.blog-footer__brand-name { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: var(--text); }
.blog-footer__brand-name span { color: var(--brand); }

.blog-footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; }
.blog-footer__links a { font-size: 0.825rem; color: var(--muted); transition: color .15s; }
.blog-footer__links a:hover { color: var(--brand); }

.blog-footer__bottom {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.blog-footer__copy { font-size: 0.78rem; color: var(--subtle); }
.blog-footer__back { font-size: 0.78rem; color: var(--brand); }
.blog-footer__back:hover { color: var(--brand-dark); }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  font-size: 0.875rem; font-weight: 600;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: all .15s;
}
.btn--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; box-shadow: var(--shadow-brand); }
.btn--outline { background: transparent; color: var(--brand); border-color: rgba(59,130,246,0.3); }
.btn--outline:hover { background: var(--brand-light); }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr 260px; gap: 2rem; }
  .post-layout  { grid-template-columns: 1fr 240px; gap: 2rem; }
  .blog-sidebar { position: static; }
}

@media (max-width: 860px) {
  .blog-layout, .post-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: 1fr; }
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-card__thumb { width: 100%; aspect-ratio: 16/9; }
  .related-posts__grid { grid-template-columns: repeat(2, 1fr); }
  .blog-nav { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .container { padding-inline: 1.25rem; }
  .post-nav { grid-template-columns: 1fr; }
  .related-posts__grid { grid-template-columns: 1fr; }
  .blog-sidebar { grid-template-columns: 1fr; }
  .post-hero__meta { flex-direction: column; align-items: flex-start; }
  .post-hero__read-time { margin-left: 0; }
  .blog-footer__main { flex-direction: column; align-items: flex-start; }
  .author-box { flex-direction: column; }
}

/* ── Draft preview banner ───────────────────────────────────────────────────── */
.preview-banner {
  background: #fef3c7;
  border-bottom: 2px solid #f59e0b;
  color: #92400e;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.preview-banner a { color: var(--brand); font-weight: 600; text-decoration: underline; }

/* ── View count in post hero ────────────────────────────────────────────────── */
.post-hero__views {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--subtle);
}

/* ── Post footer row (tags + share) ─────────────────────────────────────────── */
.post-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

/* ── Share buttons ──────────────────────────────────────────────────────────── */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-buttons__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtle);
  margin-right: 0.25rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  background: none;
  font-family: var(--font-sans);
}

.share-btn--twitter  { background: #f7f9fc; color: #0f1419; border-color: #e1e8ed; }
.share-btn--twitter:hover  { background: #0f1419; color: #fff; }
.share-btn--linkedin { background: #f0f8ff; color: #0a66c2; border-color: #c5dff7; }
.share-btn--linkedin:hover { background: #0a66c2; color: #fff; }
.share-btn--whatsapp { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.share-btn--whatsapp:hover { background: #16a34a; color: #fff; }
.share-btn--copy     { background: var(--surface); color: var(--text-2); border-color: var(--line-2); }
.share-btn--copy:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── Table of contents ──────────────────────────────────────────────────────── */
.toc-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.toc-box__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.toc-list__item a {
  font-size: 0.875rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color .15s;
  display: block;
  padding: 0.15rem 0;
}
.toc-list__item a:hover { color: var(--brand); }
.toc-list__item--h3 { padding-left: 1.25rem; }
.toc-list__item--h3 a { font-size: 0.825rem; color: var(--muted); }

/* ── Comments section ───────────────────────────────────────────────────────── */
.comments-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.comments-section__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2.5rem;
}

.comment {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.comment:first-child { border-top: 1px solid var(--line); }

.comment__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.comment__body { flex: 1; min-width: 0; }

.comment__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.comment__name { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.comment__date { font-size: 0.72rem; color: var(--subtle); font-family: var(--font-mono); }
.comment__text { font-size: 0.9rem; color: var(--text-3); line-height: 1.7; margin: 0; }

/* Comment form */
.comment-form-wrap {
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-top: 2rem;
}

.comment-form-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  color: var(--brand);
}

.comment-form-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.comment-form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.comment-form__field--full { grid-column: 1 / -1; }

.comment-form__field label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-2);
}

.comment-form__field label span[aria-label="required"] {
  color: var(--brand);
  margin-left: 2px;
}

.comment-form__field label em {
  font-weight: 400;
  font-style: normal;
  color: var(--subtle);
  font-size: 0.78rem;
}

.comment-form__field input,
.comment-form__field textarea {
  background: #fff;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius);
  padding: 0.6rem 0.875rem;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  box-sizing: border-box;
}

.comment-form__field input:focus,
.comment-form__field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.comment-form__field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.comment-form__char-count {
  font-size: 0.7rem;
  color: var(--subtle);
  font-family: var(--font-mono);
  text-align: right;
  margin-top: 0.25rem;
}

.comment-form__footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.comment-form__note {
  font-size: 0.75rem;
  color: var(--subtle);
  margin: 0;
}

.comment-alert {
  padding: 0.875rem 1.1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  border: 1px solid;
  font-weight: 500;
}

.comment-alert--success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.comment-alert--error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

@media (max-width: 600px) {
  .comment-form__fields { grid-template-columns: 1fr; }
  .post-footer-row { flex-direction: column; align-items: flex-start; }
  .share-buttons { flex-wrap: wrap; }
  .comment-form-wrap { padding: 1.25rem; }
}

/* ── Utility ────────────────────────────────────────────────────────────────── */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }

/* ── Task Lists (GFM - [ ] checkboxes) ──────────────────────────────────────── */
.task-list { list-style: none; padding-left: 0.25rem; }
.task-item { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0.3rem 0; }
.task-item input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
  accent-color: var(--brand);
  width: 1rem;
  height: 1rem;
  cursor: default;
}

/* ── Mermaid Diagrams ───────────────────────────────────────────────────────── */
.mermaid {
  overflow-x: auto;
  margin: 1.5rem 0;
  text-align: center;
}
