/* ===================================================================
   article.css — stilurile paginilor de articol
   Sursa unica: o modificare aici se aplica tuturor articolelor.
   Ce NU e aici (ramane in fiecare articol): stilurile de tabel si
   proprietatile unde articolele difera intre ele intentionat.
   =================================================================== */

.article-wrap { position: relative; z-index: 1; max-width: 1360px; margin: 0 auto; padding: 64px 32px 96px; display: grid; grid-template-columns: 1fr 720px 1fr; gap: 48px; }
.article-side { position: relative; }
.article-side.left { justify-self: end; }
.article-side .sticky { position: sticky; top: 96px; padding: 20px 0; }
.toc-title { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 14px; }
.toc a { display: block; font-size: 13px; color: var(--fg-muted); padding: 6px 0 6px 12px; border-left: 2px solid var(--border); transition: all 0.2s; line-height: 1.4; }
.toc a:hover { color: var(--accent); border-color: var(--accent); }
.toc a.active { color: var(--accent); border-color: var(--accent); }
.article-main { position: relative; min-width: 0; }
.article-main .prose, .article-main .prose pre, .article-main .prose img { max-width: 100%; }
.article-main .prose pre { box-sizing: border-box; }
.article-meta-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--fg-dim); letter-spacing: 0.05em; margin-bottom: 24px; }
.article-meta-top .sep { opacity: 0.4; }
.article-category { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent); color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, transparent); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; }
.article-main h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 24px; font-weight: 500; }
.article-main h1 .accent { background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, color-mix(in oklab, var(--accent) 60%, var(--fg)) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.article-lede { font-size: 19px; line-height: 1.55; color: var(--fg-muted); margin-bottom: 36px; padding-left: 18px; border-left: 2px solid var(--accent); }
.author-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 48px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--primary)); display: grid; place-items: center; color: #07121a; font-weight: 700; font-size: 15px; font-family: 'Space Grotesk', sans-serif; flex-shrink: 0; }
.author-info { flex: 1; min-width: 0; }
.author-name { font-size: 14px; font-weight: 600; }
.author-role { font-size: 12px; color: var(--fg-muted); }
.share-row { display: flex; gap: 8px; }
.share-btn { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--fg-muted); transition: all 0.2s; }
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-btn svg { width: 15px; height: 15px; }
.article-cover { position: relative; margin: 0 -32px 48px; border-radius: 18px; overflow: hidden; height: 360px; border: 1px solid var(--border); background: var(--bg-2); }
.article-cover-bg { position: absolute; inset: 0; background-image: url('hero-vf.webp'); background-size: cover; background-position: center; filter: saturate(1.05) brightness(0.92); }
.article-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, color-mix(in oklab, var(--bg-0) 80%, transparent) 100%); }
.article-cover-caption { position: absolute; left: 24px; bottom: 20px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--fg-muted); letter-spacing: 0.08em; z-index: 2; }
.prose { font-size: 17px; line-height: 1.75; color: var(--fg); overflow-wrap: break-word; word-wrap: break-word; }
.prose p { margin: 0 0 22px; }
.prose h2 { font-family: 'Space Grotesk', sans-serif; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin: 56px 0 20px; scroll-margin-top: 100px; }
.prose h2::before { content: '§'; color: var(--accent); font-weight: 400; margin-right: 12px; opacity: 0.6; }
.prose h3 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; margin: 36px 0 14px; scroll-margin-top: 100px; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose em { color: var(--accent); font-style: normal; font-family: 'Space Grotesk', sans-serif; }
.prose a { color: var(--accent); border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); transition: all 0.2s; }
.prose a:hover { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, transparent); }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 32px 0; padding: 20px 24px; border-left: 3px solid var(--accent); background: color-mix(in oklab, var(--accent) 6%, transparent); border-radius: 0 12px 12px 0; font-size: 18px; color: var(--fg); font-style: italic; }
.prose blockquote cite { display: block; margin-top: 10px; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-style: normal; color: var(--fg-muted); letter-spacing: 0.05em; }
.prose code { font-family: 'JetBrains Mono', monospace; font-size: 0.88em; padding: 2px 6px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 4px; color: var(--accent); }
.prose pre { margin: 24px 0; padding: 20px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.6; }
.prose pre code { background: none; border: none; padding: 0; color: var(--fg); }
.callout { margin: 32px 0; padding: 20px 24px; border-radius: 14px; border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent); background: radial-gradient(ellipse 80% 100% at 0% 0%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 60%), var(--bg-1); display: flex; gap: 14px; }
.callout .ic { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 15%, transparent); color: var(--accent); }
.callout .ic svg { width: 16px; height: 16px; }
.callout .cbody { font-size: 14px; line-height: 1.6; color: var(--fg); }
.callout .cbody strong { color: var(--accent); }
.article-end { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; }
/* Etichetele de la finalul articolului sunt semnal de conținut, nu navigație:
   <span>, nu <a>. Fără stare de hover și fără tranziție, ca să nu promită o
   acțiune care nu există. Accentul e purtat permanent; în tema hârtie el devine
   #0e7490, tonul întunecat ales pentru contrast, deci ambele teme rămân lizibile. */
.tag {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  padding: 6px 10px; border-radius: 6px;
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
}
.author-card { margin: 72px 0 0; padding: 32px; border-radius: 18px; border: 1px solid var(--border-strong); background: radial-gradient(ellipse 80% 100% at 0% 0%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 60%), var(--bg-1); display: flex; gap: 24px; align-items: flex-start; }
.author-card .author-avatar { width: 64px; height: 64px; font-size: 20px; }
.author-card h3 { font-size: 20px; margin-bottom: 6px; }
.author-card .role { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--fg-dim); letter-spacing: 0.08em; margin-bottom: 12px; }
.author-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { padding: 24px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-1); display: flex; flex-direction: column; transition: all 0.3s ease; }
.related-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.related-date { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--fg-dim); letter-spacing: 0.05em; margin-bottom: 12px; }
.related-card h3 { font-size: 18px; line-height: 1.25; margin-bottom: 10px; }
.related-card p { font-size: 13px; color: var(--fg-muted); line-height: 1.55; margin-bottom: 16px; flex: 1; }
.related-read { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px 0; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 600; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.stat-lbl { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--fg-muted); letter-spacing: 0.05em; }
.compare-table { width: 100%; margin: 28px 0; border-collapse: collapse; font-size: 14px; }
.compare-table th { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--border); }
.compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 600; color: var(--fg); white-space: nowrap; }
@media (max-width: 1200px) {
  .article-wrap { grid-template-columns: 1fr; max-width: 760px; padding: 48px 24px 72px; }
  .article-side { display: none; }
}
@media (max-width: 960px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .article-cover { margin: 0 0 36px; height: 280px; }
}
@media (max-width: 720px) {
  .article-wrap { padding: 28px 16px 48px; }
  .article-cover { height: 220px; margin: 0 -16px 24px; border-radius: 14px; }
  .article-cover-caption { left: 16px; bottom: 14px; font-size: 10px; }
  .article-main h1 { font-size: clamp(26px, 7.5vw, 34px); }
  .article-lede { font-size: 16px; padding-left: 14px; }
  .author-row { flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
  .share-row { width: 100%; justify-content: flex-end; }
  .prose { font-size: 16px; line-height: 1.7; overflow-wrap: break-word; word-wrap: break-word; }
  .prose h2 { font-size: 22px; margin: 36px 0 14px; }
  .prose h2::before { margin-right: 8px; }
  .prose h3 { font-size: 18px; margin: 26px 0 12px; }
  .prose blockquote { margin: 22px 0; padding: 14px 16px; font-size: 15px; border-radius: 0 10px 10px 0; }
  .prose pre { padding: 12px; font-size: 12px; border-radius: 10px; }
  .callout { flex-direction: column; gap: 10px; padding: 16px; }
  .author-card { flex-direction: column; gap: 16px; padding: 22px; margin-top: 48px; }
  .author-card .author-avatar { width: 52px; height: 52px; font-size: 18px; }
  .article-end { gap: 16px; padding-top: 24px; margin-top: 36px; }
  .related-grid { grid-template-columns: 1fr; gap: 14px; }
  .related-card { padding: 20px; }
  .stat-grid { grid-template-columns: 1fr; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 10px 10px; }
}
@media (max-width: 420px) {
  .article-wrap { padding: 22px 14px 40px; }
  .article-cover { margin: 0 -14px 22px; height: 190px; }
  .article-main h1 { font-size: 24px; line-height: 1.06; }
  .article-lede { font-size: 14.5px; padding-left: 12px; margin-bottom: 28px; }
  .article-meta-top { gap: 8px; font-size: 10px; margin-bottom: 18px; }
  .article-meta-top .sep { display: none; }
  .prose { font-size: 15px; line-height: 1.65; }
  .prose p { margin-bottom: 18px; }
  .prose h2 { font-size: 19px; margin: 28px 0 12px; }
  .prose h2::before { display: none; }
  .prose h3 { font-size: 16px; margin: 22px 0 10px; }
  .prose blockquote { padding: 12px 14px; font-size: 14px; }
  .prose ul, .prose ol { padding-left: 20px; }
  .tags-row { gap: 6px; }
}

/* ===== Componente folosite doar de unele articole ===== */

.checklist { margin: 0 0 22px; padding-left: 0; list-style: none; }
.checklist li { padding: 6px 0 6px 8px; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--fg-muted); }
.checklist li:last-child { border-bottom: none; }
.code-collapsible { position: relative; max-height: 300px; overflow: hidden; margin: 24px 0 0; border-radius: 12px; transition: max-height 0.35s ease; }
.code-collapsible pre { margin: 0; }
.code-collapsible.expanded { max-height: 1600px; }
.code-collapsible:not(.expanded)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: linear-gradient(180deg, transparent, var(--bg-2)); pointer-events: none; border-radius: 0 0 12px 12px; }
.code-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 24px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.03em; padding: 8px 16px; border-radius: 8px; border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent); color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, transparent); cursor: pointer; transition: all 0.2s; }
.code-toggle:hover { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 15%, transparent); }
.deliv-agent { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--fg-dim); letter-spacing: 0.03em; padding-top: 8px; border-top: 1px solid var(--border); }
.deliv-agent b { color: var(--accent); font-weight: 500; }
.deliv-card { padding: 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-1); display: flex; flex-direction: column; gap: 10px; transition: all 0.3s ease; }
.deliv-card h4 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; line-height: 1.25; margin: 0; }
.deliv-card p { font-size: 13px; color: var(--fg-muted); line-height: 1.55; margin: 0; flex: 1; }
.deliv-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.deliv-fmt { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent); color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, transparent); margin-left: auto; }
.deliv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 32px 0; }
.deliv-head { display: flex; align-items: center; gap: 12px; }
.deliv-idx { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; color: #07121a; background: linear-gradient(135deg, var(--accent), var(--primary)); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.podcast-callout .ic { background: color-mix(in oklab, var(--accent-2) 15%, transparent); color: var(--accent-2); }
.prose .cheatsheet-download { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; background: var(--accent); color: #07121a; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid color-mix(in oklab, var(--accent) 60%, transparent); border-bottom: 1px solid color-mix(in oklab, var(--accent) 60%, transparent); box-shadow: 0 8px 24px -10px color-mix(in oklab, var(--accent) 60%, transparent); transition: all 0.22s ease; }
.prose .cheatsheet-download svg { transition: transform 0.25s ease; }
.prose .cheatsheet-download:hover { background: var(--accent-2); color: #07121a; letter-spacing: 0.09em; transform: translateY(-1px); }
.prose .cheatsheet-download:hover svg { transform: translateY(2px); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 34px 0; }
.related-card:hover .related-read svg { transform: translateX(4px); }
.related-read svg { transition: transform 0.2s; }
.stat-card .stat-divider { height: 1px; background: var(--border); margin: 12px 0 14px; }
.stat-card .stat-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.stat-card .stat-list { list-style: none; padding: 0; margin: 0 0 14px; font-size: 13.5px; }
.stat-card .stat-list .iso { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.08em; color: var(--fg-dim); padding: 2px 5px; border: 1px solid var(--border); border-radius: 4px; flex-shrink: 0; }
.stat-card .stat-list li { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; color: var(--fg-muted); }
.stat-card .stat-list li:last-child { margin-bottom: 0; }
.stat-card .stat-list strong { color: var(--fg); }
.stat-card .stat-number { font-family: 'Space Grotesk', sans-serif; font-size: clamp(44px, 6vw, 64px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 60%, color-mix(in oklab, var(--accent) 50%, var(--fg)) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 6px; }
.stat-card .stat-sub { font-size: 12.5px; color: var(--fg-muted); margin-bottom: 14px; min-height: 2.8em; line-height: 1.4; }
.stat-card .stat-tag { margin-top: 10px; padding: 10px 12px; font-size: 13px; color: var(--fg-muted); background: color-mix(in oklab, var(--accent) 6%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 20%, transparent); border-radius: 10px; line-height: 1.5; }
.stat-card .stat-tag strong { color: var(--fg); }
.stat-card .stat-where { font-size: 14px; color: var(--fg); margin-bottom: 14px; }
.stat-card .stat-where strong { color: var(--fg); }
.stat-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 36px 0 8px; }
.toc a.toc-sub { padding-left: 24px; font-size: 12px; opacity: 0.8; }
.toc::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.toc::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 720px) {
  .deliv-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 20px 18px 18px; }
  .stat-hero { grid-template-columns: 1fr; gap: 14px; }
  .table-wrap { border-radius: 10px; }
}

/* ===================================================================
   TABEL RESPONSIV — „t-stack”
   -------------------------------------------------------------------
   Marcajul rămâne un <table> complet: thead, tbody, th, td. Crawlerele,
   cititoarele de ecran și Search Console văd exact aceeași structură ca
   pe desktop. Sub 640px fiecare rând devine un card, iar fiecare celulă
   își primește eticheta coloanei din atributul data-label. Zero derulare
   pe orizontală, zero text tăiat.

   Cum se folosește: class="compare-table t-stack" (sau doar class="t-stack"
   pe tabelele fără compare-table) + data-label="<antetul coloanei>" pe
   fiecare <td>. Antetul rămâne în DOM, doar ascuns vizual.

   Selectorii sunt prefixați cu .prose ca să bată regulile locale de tabel
   din <style>-ul fiecărui articol, care se încarcă după acest fișier.
   =================================================================== */
.prose .t-stack td:first-child { white-space: normal; }

@media (max-width: 640px) {
  .prose .t-stack,
  .prose .t-stack tbody,
  .prose .t-stack tr,
  .prose .t-stack td { display: block; width: 100%; }

  .prose .t-stack { border-collapse: collapse; margin: 22px 0; font-size: 14.5px; }

  /* Antetul rămâne citibil pentru roboți și pentru cititoarele de ecran. */
  .prose .t-stack thead {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
  }

  .prose .t-stack tr {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-1);
    padding: 14px 16px;
    margin-bottom: 12px;
  }
  .prose .t-stack tr:last-child { margin-bottom: 0; }

  .prose .t-stack td {
    border: none;
    padding: 0 0 12px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--fg-muted);
  }
  .prose .t-stack td:last-child { padding-bottom: 0; border-bottom: none; }
  .prose .t-stack td strong { color: var(--fg); }

  .prose .t-stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 5px;
  }

  /* Prima celulă e titlul cardului: fără etichetă, corp mai apăsat. */
  .prose .t-stack td:first-child {
    font-size: 15.5px; font-weight: 600; color: var(--fg);
    padding: 0 0 12px; margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }
  .prose .t-stack td:first-child::before { display: none; }

  /* Zebra și hover nu au sens pe carduri. */
  .prose .t-stack tbody tr:nth-child(even) { background: var(--bg-1); }
  .prose .t-stack tbody tr:hover td { background: transparent; }

  /* Containerul cu scroll orizontal devine inutil când rândurile sunt carduri. */
  .prose .table-wrap.is-stacked { border: none; border-radius: 0; overflow: visible; background: none; }
}
