/* Șablonul „articol de blog” (12 pagini). Se încarcă după css/vm-shared.css.
   Cuprinsul și bara de progres sunt construite de js/article.js. */

.page-hero .back-link{ display:inline-flex; align-items:center; gap:8px; margin-bottom:18px; font-family:'IBM Plex Mono',monospace; font-size:12.5px; letter-spacing:.04em; text-decoration:none; color:var(--on-forest); border-bottom:1px solid rgba(243,248,247,.3); padding-bottom:2px; }
.page-hero .back-link:hover{ color:var(--ochre); border-bottom-color:var(--ochre); }
.page-hero h1{ max-width:24ch; }
.page-hero .read-tag{ display:inline-flex; align-items:center; gap:8px; margin-top:22px; padding:6px 14px; border:1px solid rgba(243,248,247,.25); border-radius:999px; font-size:12.5px; letter-spacing:.04em; color:var(--on-forest-soft); }
.page-hero .read-tag::before{ content:""; width:12px; height:12px; border:1.5px solid var(--ochre); border-radius:50%; background:linear-gradient(var(--ochre),var(--ochre)) 50% 2px/1.5px 4px no-repeat; }

/* Bară de progres a lecturii */
.read-progress{ position:fixed; left:0; right:0; top:var(--vm-header-h,70px); height:3px; z-index:45; background:transparent; pointer-events:none; }
.read-progress span{ display:block; height:100%; background:var(--ochre-deep); transform-origin:left; transform:scaleX(0); }

/* Aranjare: cuprins lipicios + articol */
.article-layout{ display:grid; grid-template-columns:230px minmax(0,68ch); gap:64px; align-items:start; }
.toc{ position:sticky; top:calc(var(--vm-header-h,70px) + 28px); }
.toc p{ margin:0 0 14px; font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--rust); display:flex; align-items:center; gap:10px; }
.toc p::before{ content:""; width:22px; height:1px; background:var(--rust); }
.toc ol{ list-style:none; margin:0; padding:0; border-left:1px solid var(--line); }
.toc li{ margin:0; }
.toc a{ display:block; padding:9px 0 9px 16px; margin-left:-1px; border-left:2px solid transparent; font-size:14.5px; line-height:1.4; color:var(--ink-soft); text-decoration:none; transition:color .2s ease, border-color .2s ease; }
.toc a:hover{ color:var(--teal-deep); }
.toc a.on{ color:var(--teal-deep); font-weight:600; border-left-color:var(--ochre-deep); }

/* Text */
.article-body{ max-width:68ch; }
.article-body p{ font-size:17.5px; line-height:1.75; margin:0 0 22px; }
.article-body > p:first-child{ font-family:'Spectral',Georgia,serif; font-size:clamp(20px,2.2vw,24px); line-height:1.55; color:var(--teal-deep); }
.article-body h2{ scroll-margin-top:calc(var(--vm-header-h,70px) + 24px); font-size:clamp(24px,2.6vw,30px); margin:56px 0 16px; line-height:1.25; }
.article-body h2::before{ content:""; display:block; width:36px; height:2px; background:var(--ochre-deep); margin-bottom:14px; }
.article-body ul, .article-body ol{ margin:0 0 24px; padding-left:0; list-style:none; }
.article-body li{ position:relative; padding:0 0 0 28px; margin-bottom:12px; font-size:17.5px; line-height:1.65; }
.article-body ul li::before{ content:""; position:absolute; left:4px; top:.7em; width:11px; height:2px; background:var(--ochre-deep); }
.article-body ol{ counter-reset:n; }
.article-body ol li{ counter-increment:n; }
.article-body ol li::before{ content:counter(n); position:absolute; left:0; top:.15em; width:20px; height:20px; border-radius:50%; background:var(--ochre-deep); color:#fff; font-family:'IBM Plex Mono',monospace; font-size:11px; line-height:20px; text-align:center; }
.article-body strong{ color:var(--teal-deep); }
.pull-note{ position:relative; background:var(--paper); border:1px solid var(--line); border-left:4px solid var(--ochre-deep); border-radius:4px; padding:22px 26px; margin:34px 0; font-size:16.5px; line-height:1.65; color:var(--ink); }
.article-photo{ display:block; width:100%; height:auto; max-height:480px; object-fit:cover; border-radius:4px; margin:34px 0; background:var(--bg-card); }

@media (max-width:980px){
  .article-layout{ grid-template-columns:1fr; gap:0; }
  .toc{ display:none; }
}
@media (max-width:860px){
  .article-body p, .article-body li{ font-size:17px; }
  .article-body h2{ margin-top:44px; }
  .pull-note{ padding:18px 20px; }
}
