/* Post-specific tokens */
:root{
  /* Article typography scale */
  --art-max:720px;
  --art-lh:1.85;
  --art-fs:17px;
  --art-gap:28px;
}

/* overflow-x on html instead — does NOT break sticky unlike body */
html{overflow-x:hidden}

/* ── ORBS ── */
.orb-1{width:500px;height:500px;background:var(--accent3);top:-150px;right:-100px}
.orb-2{width:350px;height:350px;background:var(--accent2);bottom:30%;left:-100px}

/* ── POST-SPECIFIC RTL FIXES ── */
/* Floating aside — flip to opposite side */
[dir="rtl"] .art-aside{left:auto;right:calc(50% + var(--art-max)/2 + 20px)}
/* Sidebar padding — swap sides */
[dir="rtl"] .art-sidebar-l{padding-right:0;padding-left:24px}
[dir="rtl"] .art-sidebar-r{padding-left:0;padding-right:40px}
/* TOC — flip border accent from left to right */
[dir="rtl"] .art-toc-list li a{
  padding:5px 10px 5px 8px;
  border-left:none;
  border-right:2px solid transparent}
[dir="rtl"] .art-toc-list li a:hover,
[dir="rtl"] .art-toc-list li a.toc-active{
  border-right-color:var(--accent);
  border-left-color:transparent}
[dir="rtl"] .art-toc-list li.h3 a{padding-right:20px;padding-left:10px}
/* Blockquote — flip border from left to right */
[dir="rtl"] .art-body blockquote{
  border-left:none;
  border-right:3px solid var(--accent3);
  border-radius:12px 0 0 12px;
  padding:20px 24px}
/* Breadcrumb separator — flip › to ‹ */
[dir="rtl"] .breadcrumb-sep{display:inline-block;transform:scaleX(-1)}

/* ── PROGRESS BAR ── */
#read-progress{position:fixed;top:64px;left:0;right:0;height:3px;z-index:799;
  background:rgba(255,255,255,0.05)}
#read-progress-bar{height:100%;width:0%;
  background:linear-gradient(90deg,var(--accent3),var(--accent));
  transition:width 0.1s linear;border-radius:0 2px 2px 0}

/* ══════════════════════════════════════
   ARTICLE LAYOUT
══════════════════════════════════════ */
.art-wrap{max-width:var(--max);margin:0 auto;padding:88px 32px 80px}
@media(max-width:600px){.art-wrap{padding:80px 16px 60px}}

/* Breadcrumb */
.breadcrumb{display:flex;align-items:center;gap:8px;font-size:12px;
  color:var(--text-dim);margin-bottom:32px;flex-wrap:wrap}
.breadcrumb a{color:var(--text-dim);text-decoration:none;transition:color var(--tr)}
.breadcrumb a:hover{color:var(--accent)}
.breadcrumb-sep{color:var(--text-dim);opacity:0.4}
.breadcrumb-cur{color:var(--text-muted)}

/* two-col: sidebar + content */
.art-layout{display:grid;grid-template-columns:minmax(0,1fr) min(var(--art-max),100%) minmax(0,1fr);gap:0}
@media(max-width:1100px){.art-layout{grid-template-columns:1fr}}
.art-sidebar-l{padding-right:24px;padding-top:8px;align-self:start;height:100%;min-width:0}
.art-sidebar-r{padding-left:40px;padding-top:8px;align-self:start;height:100%;min-width:0}
@media(max-width:1100px){.art-sidebar-l,.art-sidebar-r{display:none}}

/* ══════════════════════════════════════
   ARTICLE HEADER
══════════════════════════════════════ */
.art-header{margin-bottom:40px}
.art-cats{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.art-cat{font-size:11px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;
  padding:4px 12px;border-radius:20px}
.art-cat-site{background:rgba(0,212,255,0.1);border:1px solid rgba(0,212,255,0.25);
  color:var(--accent2)}
.art-cat-israel{background:rgba(79,255,176,0.08);border:1px solid rgba(79,255,176,0.2);
  color:var(--accent)}
.art-cat-seo{background:rgba(139,92,246,0.1);border:1px solid rgba(139,92,246,0.25);
  color:#a78bfa}
.art-cat-biz{background:rgba(251,191,36,0.08);border:1px solid rgba(251,191,36,0.2);
  color:#fbbf24}

/* Article H1 — typographic standard */
.art-h1{
  font-family:var(--fd);
  font-size:clamp(28px,4.5vw,52px);
  font-weight:800;
  line-height:1.1;
  letter-spacing:-0.03em;
  color:var(--text);
  margin-bottom:20px;
}
.art-h1 .ac{color:var(--accent)}

.art-meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;
  font-size:13px;color:var(--text-dim);margin-bottom:32px}
.art-meta-author{display:flex;align-items:center;gap:8px}
.art-meta-avatar{width:28px;height:28px;border-radius:50%;
  background:linear-gradient(135deg,var(--accent3),var(--accent));
  display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:800;color:#080c14}
.art-meta-dot{width:3px;height:3px;border-radius:50%;background:var(--text-dim)}
.art-meta span{white-space:nowrap}

/* Hero image */
.art-hero-img{border-radius:16px;overflow:hidden;margin-bottom:48px;
  position:relative;aspect-ratio:16/7;
  background:linear-gradient(135deg,rgba(124,92,252,0.3),rgba(0,212,255,0.2))}
.art-hero-img img{width:100%;height:100%;object-fit:cover;display:block}
.art-hero-img-fallback{width:100%;height:100%;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:12px;
  background:linear-gradient(135deg,rgba(124,92,252,0.2),rgba(0,212,255,0.15),rgba(79,255,176,0.1))}
.art-hero-img-fallback .emoji{font-size:72px;line-height:1}
.art-hero-img-fallback .caption{font-size:13px;color:var(--text-muted)}
.art-img-caption{font-size:12px;color:var(--text-dim);text-align:center;
  margin-top:10px;font-style:italic}

/* ══════════════════════════════════════
   TYPOGRAPHY STANDARDS — Article body
   All article pages must use these classes
══════════════════════════════════════ */
.art-body{
  font-size:var(--art-fs);
  line-height:var(--art-lh);
  color:var(--text-muted);
  max-width:var(--art-max);
}

/* Paragraph */
.art-body p{margin-bottom:var(--art-gap);color:var(--text-muted)}
.art-body p:last-child{margin-bottom:0}

/* Lead paragraph — first para, larger */
.art-body .lead{
  font-size:19px;
  line-height:1.75;
  color:var(--text);
  font-weight:400;
  margin-bottom:36px;
}

/* Anchor scroll offset — accounts for fixed nav 64px + progress 3px + breathing room */
.art-body h2,
.art-body h3,
.art-body h4{scroll-margin-top:88px}

/* Headings inside article */
.art-body h2{
  font-family:var(--fd);
  font-size:clamp(20px,2.8vw,28px);
  font-weight:800;
  color:var(--text);
  line-height:1.2;
  letter-spacing:-0.02em;
  margin-top:52px;
  margin-bottom:16px;
  padding-bottom:12px;
  border-bottom:1px solid var(--glass-border);
}
.art-body h3{
  font-family:var(--fd);
  font-size:clamp(17px,2.2vw,21px);
  font-weight:700;
  color:var(--text);
  line-height:1.3;
  letter-spacing:-0.01em;
  margin-top:36px;
  margin-bottom:12px;
}
.art-body h4{
  font-family:var(--fd);
  font-size:15px;
  font-weight:700;
  color:var(--text);
  text-transform:uppercase;
  letter-spacing:0.07em;
  margin-top:28px;
  margin-bottom:10px;
}

/* Strong / em */
.art-body strong{color:var(--text);font-weight:700}
.art-body em{color:var(--text-muted);font-style:italic}

/* Links inside article */
.art-body a{color:var(--accent);text-decoration:underline;
  text-underline-offset:3px;transition:color var(--tr)}
.art-body a:hover{color:var(--accent2)}

/* Unordered list */
.art-body ul{
  margin:0 0 var(--art-gap) 0;
  padding:0;
  list-style:none;
  display:flex;flex-direction:column;gap:10px;
}
.art-body ul li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-size:var(--art-fs);line-height:var(--art-lh);
}
.art-body ul li::before{
  content:'';
  display:block;
  width:6px;height:6px;border-radius:50%;
  background:var(--accent);
  flex:0 0 6px;
  margin-top:9px;
}

/* Ordered list */
.art-body ol{
  margin:0 0 var(--art-gap) 0;
  padding:0;list-style:none;
  counter-reset:art-ol;
  display:flex;flex-direction:column;gap:10px;
}
.art-body ol li{
  display:flex;
  align-items:flex-start;
  gap:14px;
  font-size:var(--art-fs);line-height:var(--art-lh);
  counter-increment:art-ol;
}
.art-body ol li::before{
  content:counter(art-ol);
  display:flex;
  align-items:center;justify-content:center;
  flex:0 0 26px;
  width:26px;height:26px;border-radius:8px;
  background:rgba(79,255,176,0.1);border:1px solid rgba(79,255,176,0.22);
  color:var(--accent);font-size:12px;font-weight:800;
  font-family:var(--fd);
  margin-top:3px;
}

/* Blockquote */
.art-body blockquote{
  margin:36px 0;
  padding:20px 24px;
  border-left:3px solid var(--accent3);
  background:rgba(124,92,252,0.06);
  border-radius:0 12px 12px 0;
  font-size:18px;
  line-height:1.7;
  color:var(--text);
  font-style:italic;
}
.art-body blockquote cite{
  display:block;margin-top:10px;
  font-size:13px;color:var(--text-dim);
  font-style:normal;
}

/* Inline code */
.art-body code{
  font-family:monospace;
  font-size:14px;
  background:rgba(255,255,255,0.07);
  border:1px solid var(--glass-border);
  padding:2px 7px;border-radius:5px;
  color:var(--accent2);
}

/* Callout / tip box */
.art-callout{
  margin:36px 0;
  padding:20px 22px;
  border-radius:14px;
  display:flex;gap:14px;align-items:flex-start;
}
.art-callout.tip{
  background:rgba(79,255,176,0.06);
  border:1px solid rgba(79,255,176,0.2);
}
.art-callout.warn{
  background:rgba(255,193,7,0.06);
  border:1px solid rgba(255,193,7,0.2);
}
.art-callout.info{
  background:rgba(0,212,255,0.06);
  border:1px solid rgba(0,212,255,0.2);
}
.art-callout-icon{font-size:20px;flex-shrink:0;line-height:1.4}
.art-callout-body{font-size:14px;line-height:1.7;color:var(--text-muted)}
.art-callout-body strong{color:var(--text)}

/* Stat highlight */
.art-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:16px;margin:36px 0}
.art-stat{background:var(--bg2);border:1px solid var(--glass-border);
  border-radius:14px;padding:20px 18px;text-align:center}
.art-stat-num{font-family:var(--fd);font-size:32px;font-weight:800;
  line-height:1;background:linear-gradient(135deg,var(--accent3),var(--accent));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;margin-bottom:6px}
.art-stat-lbl{font-size:12px;color:var(--text-dim);line-height:1.4}

/* Inline image */
.art-body figure{margin:36px 0}
.art-body figure img{width:100%;border-radius:12px;display:block}
.art-body figure figcaption{font-size:12px;color:var(--text-dim);
  text-align:center;margin-top:10px;font-style:italic}

/* Divider */
.art-body hr{border:none;border-top:1px solid var(--glass-border);
  margin:44px 0}

/* ── SIDEBAR COMPONENTS ── */
.art-toc{position:sticky;top:88px;
  width:100%;max-width:100%;min-width:0;
  max-height:calc(100vh - 108px);overflow:hidden;overflow-y:auto;
  background:var(--bg2);border:1px solid var(--glass-border);
  border-radius:14px;padding:14px}
.art-toc-title{font-size:11px;font-weight:700;letter-spacing:0.1em;
  text-transform:uppercase;color:var(--text-dim);margin-bottom:14px}
.art-toc-list{list-style:none;display:flex;flex-direction:column;gap:4px}
.art-toc-list li a{font-size:13px;color:var(--text-dim);text-decoration:none;
  padding:5px 8px 5px 10px;border-radius:8px;display:block;
  transition:var(--tr);border-left:2px solid transparent;line-height:1.5;
  white-space:normal;word-break:break-word}
.art-toc-list li a:hover,.art-toc-list li a.toc-active{
  color:var(--accent);border-left-color:var(--accent);
  background:rgba(79,255,176,0.05)}
.art-toc-list li.h3 a{padding-left:20px;font-size:12px}

/* Right sidebar — share + meta */
.art-share{position:sticky;top:88px;align-self:start;width:100%;max-width:100%;min-width:0;overflow:hidden}
.art-share-title{font-size:11px;font-weight:700;letter-spacing:0.1em;
  text-transform:uppercase;color:var(--text-dim);margin-bottom:14px}
.art-share-btns{display:flex;flex-direction:column;gap:8px}
.art-share-btn{display:flex;align-items:center;gap:10px;
  background:var(--glass);border:1px solid var(--glass-border);
  border-radius:10px;padding:9px 12px;cursor:pointer;
  font-size:12px;font-weight:600;color:var(--text-muted);
  transition:var(--tr);text-decoration:none;font-family:var(--fd)}
.art-share-btn:hover{border-color:var(--accent3);color:var(--text);
  background:var(--glass-hover)}
.art-share-icon{font-size:16px;flex-shrink:0}

/* ── RELATED ARTICLES ── */
.art-related{margin-top:64px;padding-top:40px;border-top:1px solid var(--glass-border)}
.art-related-title{font-family:var(--fd);font-size:20px;font-weight:800;
  margin-bottom:24px;letter-spacing:-0.01em}
.art-related-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:16px}
.art-related-card{background:var(--bg2);border:1px solid var(--glass-border);
  border-radius:14px;padding:18px 20px;cursor:pointer;
  transition:var(--tr);text-decoration:none!important;display:block;
  outline-offset:4px}
.art-related-card:hover{border-color:rgba(124,92,252,0.35);
  box-shadow:0 8px 24px rgba(0,0,0,0.25)}
.art-related-cat{font-size:10px;font-weight:700;letter-spacing:0.08em;
  text-transform:uppercase;color:var(--accent);margin-bottom:8px}
.art-related-title-sm{font-size:14px;font-weight:700;color:var(--text);
  line-height:1.35;margin-bottom:6px}
.art-related-card:hover .art-related-title-sm{color:var(--accent)}
.art-related-meta{font-size:11px;color:var(--text-dim)}
.art-related-card *{text-decoration:none!important}

/* ── CTA BLOCK ── */
.art-cta{margin-top:52px;background:var(--bg2);
  border:1px solid var(--glass-border);border-radius:20px;
  padding:36px 32px;text-align:center;
  background-image:radial-gradient(ellipse 60% 70% at 50% 0%,rgba(124,92,252,0.1),transparent 70%)}
.art-cta h3{font-family:var(--fd);font-size:clamp(20px,3vw,28px);
  font-weight:800;letter-spacing:-0.02em;margin-bottom:10px}
.art-cta p{font-size:14px;color:var(--text-muted);margin-bottom:22px}
.art-cta .art-cta-btn{
  background:transparent;
  border:2px solid var(--accent);
  color:var(--accent);
  text-decoration:none;
  padding:13px 32px;border-radius:12px;
  font-family:var(--fd);font-size:15px;font-weight:700;
  letter-spacing:0.02em;cursor:pointer;
  transition:var(--tr);
  display:inline-flex;align-items:center;gap:6px;
  white-space:nowrap;
  position:relative;overflow:hidden;
}
.art-cta .art-cta-btn::before{
  content:'';position:absolute;inset:0;
  background:var(--accent);opacity:0;
  transition:opacity 0.25s ease;z-index:0;
}
.art-cta .art-cta-btn:hover{
  color:var(--bg);
  text-decoration:none;
  box-shadow:0 0 28px rgba(79,255,176,0.35);
}
.art-cta .art-cta-btn:hover::before{opacity:1}
.art-cta .art-cta-btn span,.art-cta .art-cta-btn>*{position:relative;z-index:1}

/* ══════════════════════════════════════
   БУДУЩИЕ СТАТЬИ — ссылка-заглушка
   Страницы ещё нет → это button, а не <a href>:
   у элемента нет назначения, назначать «#» нельзя.
   Видимый бейдж «скоро» входит в accessible name
   автоматически, отдельный aria-label не нужен.
══════════════════════════════════════ */
.art-soon{
  display:inline;
  font:inherit;
  color:var(--accent);
  background:none;
  border:none;
  padding:0;margin:0;
  text-align:inherit;
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-style:dashed;
  cursor:pointer;
  transition:color var(--tr);
  appearance:none;
}
.art-soon:hover{color:var(--accent2)}
.art-soon-badge{
  display:inline-block;
  margin-inline-start:7px;
  padding:1px 9px 2px;
  border-radius:999px;
  background:rgba(124,92,252,0.14);
  border:1px solid rgba(124,92,252,0.4);
  color:var(--accent3-text);
  font-size:11px;
  font-weight:700;
  letter-spacing:0.04em;
  text-transform:uppercase;
  text-decoration:none;
  white-space:nowrap;
  vertical-align:middle;
}

/* Врезка «читайте подробнее» вокруг ссылки-заглушки */
.art-more{
  margin:30px 0;
  padding:16px 20px;
  border-radius:14px;
  background:rgba(124,92,252,0.05);
  border:1px solid rgba(124,92,252,0.18);
  border-inline-start:3px solid var(--accent3);
  font-size:15px;
  line-height:1.7;
  color:var(--text-muted);
}
.art-more-label{
  display:block;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.07em;
  text-transform:uppercase;
  color:var(--text-dim);
  margin-bottom:6px;
}

/* ══════════════════════════════════════
   «Что будем разбирать дальше»
══════════════════════════════════════ */
.art-next{
  margin:44px 0 0;
  padding:26px 26px 22px;
  border-radius:16px;
  background:var(--bg2);
  border:1px solid var(--glass-border);
}
.art-next h2{margin-top:0}
.art-next > p{color:var(--text-muted);font-size:15px}

/* ══════════════════════════════════════
   СНОСКИ И ИСТОЧНИКИ
══════════════════════════════════════ */
.art-fnref{
  font-size:0.72em;
  vertical-align:super;
  line-height:0;
  margin-inline-start:2px;
  text-decoration:none;
  color:var(--accent);
  font-weight:700;
}
.art-fnref:hover{color:var(--accent2)}

.art-sources{
  margin:48px 0 0;
  padding-top:24px;
  border-top:1px solid var(--glass-border);
}
.art-sources h2{
  font-size:clamp(18px,2.4vw,22px);
  margin-bottom:16px;
}
.art-sources ol{
  margin:0;padding:0;list-style:none;
  counter-reset:art-src;
  display:flex;flex-direction:column;gap:14px;
}
.art-sources ol li{
  display:flex;align-items:flex-start;gap:12px;
  counter-increment:art-src;
  font-size:14px;
  line-height:1.7;
  color:var(--text-muted);
}
.art-sources ol li::before{
  content:counter(art-src);
  display:flex;align-items:center;justify-content:center;
  flex:0 0 22px;width:22px;height:22px;border-radius:7px;
  background:rgba(255,255,255,0.06);
  border:1px solid var(--glass-border);
  color:var(--text-dim);
  font-size:11px;font-weight:800;font-family:var(--fd);
  margin-top:3px;
}
.art-sources a{
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:3px;
  word-break:break-word;
  overflow-wrap:anywhere;
}
.art-sources a:hover{color:var(--accent2)}
.art-src-note{color:var(--text-dim);font-size:13px;margin-top:14px}

/* a11y states — post-specific */
body.a11y-large-text .art-h1{font-size:clamp(32px,5vw,58px)}
body.a11y-large-text .art-body{font-size:19px}
body.a11y-large-text .lead{font-size:21px}

@media(max-width:600px){
  .art-cta{padding:24px 18px}
  .art-stats{grid-template-columns:1fr 1fr}
  .art-next{padding:20px 18px 16px}
  .art-more{padding:14px 16px}
}
