/* ============================================================
   blog.css — Shared stylesheet for all The Local Lab blog posts
   Fonts: Syne (headings) + Inter (body) — complementary pairing
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

/* ── Design tokens ── */
:root {
  --bg:        #0a0a0f;
  --bg2:       #13131a;
  --bg3:       #1a1a24;
  --border:    #2a2a3a;
  --border-lt: rgba(255,255,255,0.07);
  --text:      #e8e8f0;
  --muted:     #888899;
  --violet:    #7c3aed;
  --violet-lt: #a78bfa;
  --emerald:   #10b981;
  --amber:     #f59e0b;
  --rose:      #f43f5e;
  --accent:    #7c6aff;
  --accent2:   #a78bfa;

  --font-head: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Alias for styles.css compatibility */
  --surface:  var(--bg2);
  --surface2: var(--bg3);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* ══════════════════════════════════════════
   NAV
   ══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 68px;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}

.nav-links {
  display: flex; align-items: center; gap: 36px; list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-weight: 500; font-size: 0.875rem;
  color: var(--muted); text-decoration: none;
  letter-spacing: 0.02em; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--violet) !important; color: #fff !important;
  padding: 8px 20px !important; border-radius: 6px !important;
  font-weight: 600 !important; font-size: 0.8rem !important;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: #9d5ff0 !important; transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 24px; height: 17px; background: none; border: none;
  cursor: pointer; padding: 0;
}
.nav-hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none; flex-direction: column;
  position: fixed; top: 68px; left: 0; right: 0; z-index: 99;
  background: rgba(10,10,15,0.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem 1.5rem; gap: 0.1rem;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  color: var(--muted); text-decoration: none; padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-lt); transition: color 0.2s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover, .nav-drawer a.active { color: var(--text); }
.drawer-cta {
  margin-top: 0.75rem; color: var(--violet-lt) !important;
  font-weight: 600 !important; border-bottom: none !important;
}

/* ══════════════════════════════════════════
   HERO — YouTube thumbnail style (new posts)
   ══════════════════════════════════════════ */
.blog-hero {
  position: relative; width: 100%; aspect-ratio: 16/7;
  overflow: hidden; background: #000;
}
.blog-hero img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.blog-hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.5rem clamp(1rem, 5vw, 5rem);
  background: linear-gradient(to top, rgba(10,10,15,.95) 0%, rgba(10,10,15,.3) 60%, transparent 100%);
}
.blog-pill {
  display: inline-block; padding: .3rem .85rem; border-radius: 99px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem;
}
.pill-emerald { background: rgba(16,185,129,.15); color: var(--emerald); border: 1px solid rgba(16,185,129,.3); }
.pill-violet  { background: rgba(124,106,255,.15); color: var(--accent2); border: 1px solid rgba(124,106,255,.3); }
.pill-amber   { background: rgba(245,158,11,.15); color: var(--amber); border: 1px solid rgba(245,158,11,.3); }

.blog-hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 800;
  line-height: 1.2; color: #fff; max-width: 820px; margin: 0 0 .75rem;
}
.blog-hero-meta {
  font-size: .82rem; color: rgba(255,255,255,.5);
  display: flex; gap: .75rem; align-items: center; flex-wrap: wrap;
}

/* ══════════════════════════════════════════
   HERO — Text layout style (old posts)
   ══════════════════════════════════════════ */
.post-wrap {
  max-width: 760px; margin: 0 auto;
  padding: 104px 24px 5rem;
}

.post-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--muted); text-decoration: none;
  margin-bottom: 2rem; transition: color 0.2s;
}
.post-back:hover { color: var(--accent2); }

.post-category-pill {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 6px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(124,58,237,0.15); color: #9d5ff0; margin-bottom: 1rem;
}

.post-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
  line-height: 1.2; color: var(--text); margin-bottom: 1rem;
}

.post-meta-row {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted);
  margin-bottom: 2rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.post-video-embed {
  width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden;
  margin-bottom: 2.5rem; border: 1px solid var(--border);
}
.post-video-embed iframe { width: 100%; height: 100%; border: none; }

/* ══════════════════════════════════════════
   ARTICLE BODY — both styles
   ══════════════════════════════════════════ */
/* New posts use .blog-layout + .blog-article */
.blog-layout {
  max-width: 820px; margin: 0 auto;
  padding: 3rem clamp(1rem, 4vw, 2rem) 5rem;
}

/* Old posts use .post-content, new posts use .blog-article */
.post-content h2, .blog-article h2 {
  font-family: var(--font-head);
  font-size: 1.35rem; font-weight: 700; color: var(--text);
  margin: 2.5rem 0 0.75rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-lt);
}
.post-content h3, .blog-article h3 {
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 600; color: var(--accent2);
  margin: 1.75rem 0 0.5rem;
}
.post-content h4, .blog-article h4 {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 600; color: var(--text);
  margin: 1.5rem 0 0.4rem;
}
.post-content p, .blog-article p {
  font-size: 1rem; line-height: 1.8; color: rgba(255,255,255,.78);
  margin-bottom: 1.25rem;
}
.post-content a, .blog-article a {
  color: var(--accent2); text-decoration: none;
}
.post-content a:hover, .blog-article a:hover { text-decoration: underline; }
.post-content ul, .post-content ol,
.blog-article ul, .blog-article ol {
  padding-left: 1.5rem; margin-bottom: 1.25rem;
}
.post-content li, .blog-article li {
  font-size: 1rem; line-height: 1.8; color: rgba(255,255,255,.78);
  margin-bottom: 0.4rem;
}
.post-content strong, .blog-article strong { color: var(--text); font-weight: 600; }
.post-content code, .blog-article code {
  font-family: var(--font-mono); font-size: 0.85em;
  background: rgba(124,106,255,.12); color: var(--accent2);
  padding: 0.15em 0.45em; border-radius: 4px;
}

/* ══════════════════════════════════════════
   VIDEO EMBED (new posts)
   ══════════════════════════════════════════ */
.video-embed {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: 12px; overflow: hidden;
  margin: 2rem 0 2.5rem; background: #000;
}
.video-embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}

/* ══════════════════════════════════════════
   CALLOUTS / INFO BOXES
   ══════════════════════════════════════════ */
/* Old-style .callout */
.callout {
  background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.25);
  border-left: 3px solid var(--violet); border-radius: 8px;
  padding: 1rem 1.25rem; margin: 1.5rem 0;
  font-size: 0.93rem; color: rgba(255,255,255,.78); line-height: 1.7;
}
.callout.tip  { background: rgba(16,185,129,.08);  border-left-color: var(--emerald); }
.callout.warning { background: rgba(245,158,11,.08); border-left-color: var(--amber); }
.callout strong  { color: var(--accent2); display: block; margin-bottom: 0.4rem; }

/* New-style .info-box */
.info-box {
  border-radius: 10px; padding: 1rem 1.25rem;
  margin: 1.5rem 0; font-size: .93rem; line-height: 1.7;
}
.info-box.tip  { background: rgba(16,185,129,.08);  border-left: 3px solid var(--emerald); color: rgba(255,255,255,.8); }
.info-box.warn { background: rgba(245,158,11,.08);  border-left: 3px solid var(--amber);   color: rgba(255,255,255,.8); }
.info-box.note { background: rgba(124,106,255,.08); border-left: 3px solid var(--accent);  color: rgba(255,255,255,.8); }
.info-box strong { color: #fff; }

/* ══════════════════════════════════════════
   STEP COMPONENTS
   ══════════════════════════════════════════ */
/* Old-style .step-block */
.step-block {
  display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start;
}
.step-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  color: var(--accent2);
}
.step-content { flex: 1; padding-top: 0.35rem; }
.step-content strong { display: block; color: var(--text); font-size: 0.97rem; margin-bottom: 0.3rem; }
.step-content p { margin: 0; font-size: 0.93rem; }

/* New-style .step-list (counter-based) */
.step-list {
  list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; counter-reset: steps;
}
.step-list li {
  counter-increment: steps; display: flex; gap: 1rem;
  margin-bottom: 1.1rem; align-items: flex-start;
}
.step-list li::before {
  content: counter(steps); min-width: 2rem; height: 2rem;
  background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3);
  color: var(--emerald); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700;
  font-family: var(--font-mono); flex-shrink: 0;
}
.step-list li .step-body { font-size: .97rem; color: rgba(255,255,255,.78); line-height: 1.7; }
.step-list li .step-body strong { color: #fff; }

/* Old-style .steps + .step-card */
.steps { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.step-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.1rem 1.25rem;
}
.step-card .step-num {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; color: #fff;
}
.step-card h4 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.step-card p  { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ══════════════════════════════════════════
   FEATURE GRID
   ══════════════════════════════════════════ */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin: 1.5rem 0 2rem;
}
.feature-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 1.1rem 1.25rem;
}
/* Old: .icon  New: .fc-icon */
.feature-card .icon, .feature-card .fc-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.feature-card h4, .feature-card .fc-title {
  font-family: var(--font-head); font-size: 0.9rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.3rem;
}
.feature-card p, .feature-card .fc-desc { font-size: 0.82rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ══════════════════════════════════════════
   STAT BAR
   ══════════════════════════════════════════ */
.stat-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0; }
.stat-card {
  flex: 1; min-width: 140px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 1rem 1.25rem; text-align: center;
}
.stat-card .stat-val {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: block; margin-bottom: 0.25rem;
}
.stat-card .stat-label { font-size: 0.78rem; color: var(--muted); }

/* ══════════════════════════════════════════
   COMPARISON TABLE
   ══════════════════════════════════════════ */
.compare-table, .file-table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem;
}
.compare-table th, .file-table th {
  background: var(--bg3); padding: 0.75rem 1rem;
  text-align: left; font-family: var(--font-head); font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.file-table th { background: rgba(16,185,129,.1); color: var(--emerald); font-size: .9rem; }
.compare-table td, .file-table td {
  padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--border-lt);
  color: rgba(255,255,255,.75); vertical-align: top;
}
.compare-table tr:last-child td, .file-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg2); }
.file-table code { font-size: .85em; }
.check { color: var(--emerald); }
.cross { color: var(--rose); }

/* ══════════════════════════════════════════
   RESOURCE LINKS
   ══════════════════════════════════════════ */
.links-section { margin: 3rem 0 2rem; }
.links-section h2 {
  font-size: 1.35rem; font-weight: 700; color: #fff;
  margin-bottom: 1rem; padding-bottom: .4rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.links-grid { display: flex; flex-direction: column; gap: .6rem; }
.link-item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem 1rem; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08); border-radius: 8px;
  text-decoration: none; transition: border-color .2s;
}
.link-item:hover { border-color: rgba(124,106,255,.4); }
.link-item .link-label {
  font-size: .75rem; font-weight: 700; color: var(--accent2);
  text-transform: uppercase; letter-spacing: .05em;
  min-width: 90px; flex-shrink: 0; margin-top: .1rem;
  font-family: var(--font-mono);
}
.link-item .link-text { font-size: .9rem; color: rgba(255,255,255,.78); word-break: break-all; }

/* ══════════════════════════════════════════
   RELATED POSTS
   ══════════════════════════════════════════ */
/* New-style with thumbnails */
.related-posts { margin-top: 4rem; }
.related-posts h3 {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
  color: var(--text); margin-bottom: 1.25rem;
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem;
}
.related-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; overflow: hidden; text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.related-card:hover { border-color: rgba(124,106,255,.4); transform: translateY(-2px); }
.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.related-card-body { padding: .85rem 1rem; }
.related-card-body .rc-title {
  font-family: var(--font-head); font-size: .9rem; font-weight: 700;
  color: var(--text); line-height: 1.4;
}
.related-card-body .rc-meta { font-size: .78rem; color: var(--muted); margin-top: .3rem; }

/* Old-style no-thumbnail related */
.related-wrap {
  border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 2rem;
}
.related-wrap h3 {
  font-family: var(--font-head); font-size: 1rem; font-weight: 600;
  margin-bottom: 1rem; color: var(--muted);
}

/* ══════════════════════════════════════════
   CTA BOX (old posts)
   ══════════════════════════════════════════ */
.post-cta-box {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem; text-align: center; margin-top: 3rem;
}
.post-cta-box h3 {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.5rem;
}
.post-cta-box p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.post-cta-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* btn styles for old posts that use .btn .btn-primary etc */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.4rem; border-radius: 10px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  text-decoration: none; transition: background 0.2s, transform 0.15s, border-color 0.2s;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: #9d5ff0; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent2); color: var(--accent2); }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
}
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem 2rem; }

.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 2.5rem;
}
.footer-brand p {
  font-size: 0.88rem; color: var(--muted); margin-top: 0.75rem; line-height: 1.6;
}
.footer-col-title {
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.85rem;
}
.footer-col h4 {
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 600;
  color: var(--muted); margin-bottom: 0.85rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a, .footer-links li a {
  font-size: 0.875rem; color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover, .footer-links li a:hover { color: var(--text); }

/* Simple one-row footer (older posts) */
footer .footer-links:not(ul) {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: center; margin-bottom: 1rem;
}
footer .footer-links a { font-size: 0.85rem; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.footer-copy { font-size: 0.82rem; color: var(--muted); }
.footer-socials { display: flex; gap: 0.75rem; }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--muted); text-decoration: none; font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}
.social-btn:hover { border-color: var(--accent2); color: var(--accent2); }

/* Simple old-style footer fallback */
footer > p { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }

  .post-wrap { padding: 96px 1.25rem 4rem; }
  .blog-hero { aspect-ratio: 16/9; }
  .blog-hero-overlay { padding: 1.5rem 1.25rem; }
  .blog-hero-title { font-size: clamp(1.3rem, 5vw, 1.8rem); }
}
@media (max-width: 480px) {
  nav { padding: 0 1rem; }
  .footer-top { grid-template-columns: 1fr; }
  .stat-row { flex-direction: column; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   SPEED COMPARISON (flux-gguf post)
   ══════════════════════════════════════════ */
.speed-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1rem; margin: 1.5rem 0;
}
.speed-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.1rem 1.25rem;
}
.speed-card h4 {
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.75rem;
}
.speed-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.88rem; color: var(--muted); margin-bottom: 0.4rem;
}
.speed-row .was { color: var(--rose); font-weight: 600; }
.speed-row .val { color: var(--emerald); font-weight: 600; }

/* ══════════════════════════════════════════
   GENERIC TABLE ALIASES + INLINE BADGES
   ══════════════════════════════════════════ */
.quant-table, .backend-table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.88rem;
  overflow-x: auto; display: block;
}
.quant-table th, .backend-table th {
  background: var(--bg3); padding: 0.75rem 1rem;
  text-align: left; font-family: var(--font-head); font-weight: 600;
  border-bottom: 1px solid var(--border); color: var(--text);
  white-space: nowrap;
}
.quant-table td, .backend-table td {
  padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--border-lt);
  color: rgba(255,255,255,.75); vertical-align: top;
}
.quant-table tr:last-child td, .backend-table tr:last-child td { border-bottom: none; }
.quant-table tr:hover td, .backend-table tr:hover td { background: var(--bg2); }

.badge-rec {
  display: inline-block; margin-left: 0.5rem;
  padding: 0.15rem 0.55rem; border-radius: 99px;
  background: rgba(16,185,129,.15); color: var(--emerald);
  border: 1px solid rgba(16,185,129,.3);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; font-family: var(--font-mono);
  vertical-align: middle;
}

/* ══════════════════════════════════════════
   PATH BOX (file path display)
   ══════════════════════════════════════════ */
.path-box {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-left: 3px solid var(--accent); border-radius: 8px;
  padding: 0.75rem 1.25rem; font-family: var(--font-mono);
  font-size: 0.88rem; color: rgba(255,255,255,.85);
  overflow-x: auto; margin: 0.75rem 0 1.25rem; white-space: pre;
}

/* ══════════════════════════════════════════
   USE CASE GRID (pulid post)
   ══════════════════════════════════════════ */
.use-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 1rem; margin: 1.5rem 0 2rem;
}
.use-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 1.1rem 1.25rem;
}
.use-card .icon { font-size: 1.4rem; margin-bottom: 0.5rem; display: block; }
.use-card h4 {
  font-family: var(--font-head); font-size: 0.9rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.3rem;
}
.use-card p { font-size: 0.82rem; color: var(--muted); margin: 0; line-height: 1.5; }

@media (max-width: 768px) {
  .speed-grid { grid-template-columns: 1fr; }
  .quant-table, .backend-table { font-size: 0.8rem; }
  .use-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   IMG2IMG POST — flux-image-to-image specific
   ══════════════════════════════════════════ */
.use-case-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 1rem; margin: 1.5rem 0 2rem;
}
.use-case-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 1.1rem 1.25rem;
}
.use-case-card strong {
  display: block; color: var(--text); font-family: var(--font-head);
  font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem;
}
.use-case-card p { font-size: 0.85rem; color: var(--muted); margin: 0; line-height: 1.5; }

.strength-meter { margin: 1.25rem 0 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; }
.strength-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.88rem; }
.strength-label { min-width: 90px; color: var(--muted); font-family: var(--font-mono); font-size: 0.82rem; }
.strength-bar-wrap { flex: 1; background: rgba(255,255,255,.06); border-radius: 99px; height: 8px; overflow: hidden; }
.strength-bar { height: 100%; background: var(--accent2); border-radius: 99px; }
.strength-note { min-width: 120px; color: var(--text); font-size: 0.82rem; }

@media (max-width: 768px) {
  .use-case-grid { grid-template-columns: 1fr; }
  .strength-label { min-width: 70px; }
  .strength-note { min-width: 90px; }
}


/* ══════════════════════════════════════════
   INSTALLER CTA — internal link to product page
   ══════════════════════════════════════════ */
.installer-cta {
  margin: 2.5rem 0 1.5rem;
  padding: 0 0;
}
.installer-cta-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
}
.installer-cta-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.installer-cta-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.installer-cta-text strong {
  font-family: var(--font-head);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
}
.installer-cta-text span {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}
.installer-cta-btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.55rem 1.2rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.installer-cta-btn:hover { opacity: 0.85; }

@media (max-width: 600px) {
  .installer-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .installer-cta-btn { width: 100%; text-align: center; }
}
