/* ==========================================================================
   ESSPIANO — magazine
   Loaded only by the blog pages. Everything is namespaced `bl-` / `post-`
   so nothing here can collide with site.css, pages.css, or a Tailwind CDN
   utility (the `ring` / `gauge` trap documented in the other two files).
   Logical properties throughout, so the RTL page and a future LTR mirror
   share one rule set.
   ========================================================================== */

/* ---------- section headings shared by every magazine page ---------- */
.bl-h2 { font-size: clamp(1.4rem, 2.6vw, 2.3rem); font-weight: 900; letter-spacing: -.02em; margin-top: 14px; }
.bl-h3 { font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 800; }
.bl-sub { color: var(--text-secondary); font-size: 14px; line-height: 2; margin-top: 12px; max-width: 62ch; }

/* ---------- category badge ---------- */
.bl-cat-badge {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  padding: 8px 15px; border-radius: 99px;
  background: rgba(237, 27, 36, .12); border: 1px solid rgba(237, 27, 36, .34);
  color: var(--text-primary); font-size: 12.5px;
  transition: background .35s, border-color .35s;
}
.bl-cat-badge:hover { background: rgba(237, 27, 36, .2); border-color: rgba(237, 27, 36, .55); }
.bl-cat-badge svg { color: var(--brand-red); }

/* ---------- byline ---------- */
.bl-byline { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.bl-author-s { display: inline-flex; align-items: center; gap: 12px; }
.bl-av { width: 44px; height: 44px; margin-bottom: 0; font-size: 15px; }
.bl-av-lg { width: 66px; height: 66px; margin-bottom: 0; font-size: 22px; flex-shrink: 0; }
.bl-author-t b { display: block; font-size: 14px; font-weight: 700; }
.bl-author-t span { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.bl-author-s:hover .bl-author-t b { color: var(--brand-red); }
.bl-byline-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); }
.bl-byline-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.bl-byline-meta svg { width: 15px; height: 15px; color: var(--warm-accent); }
.bl-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); opacity: .6; flex-shrink: 0; }

/* ==========================================================================
   ARTICLE
   ========================================================================== */
/* the measure is capped at 74ch, so the whole two-column block is capped too —
   otherwise a 1600px viewport leaves a dead band beside the article */
.post-wrap {
  display: grid; grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(26px, 4.5vw, 74px); align-items: start;
  max-width: 1180px; margin-inline: auto;
}
.post-side-in { position: sticky; top: calc(var(--h-header) + 20px); display: grid; gap: 26px; }
.post-main { max-width: 74ch; }

/* the article owns its own heading rhythm — .prose h2 is tuned for legal copy */
.post-main h2 { font-size: clamp(1.3rem, 2.2vw, 1.85rem); font-weight: 800; margin-top: 56px; letter-spacing: -.015em; }
/* the index is a Latin run inside an RTL heading: isolate it, or bidi moves it
   to the visual end of the line and eats the gap */
.post-main h2 .ix { font-size: 13px; unicode-bidi: isolate; margin-inline-end: 12px; }
.post-main h3 { font-size: clamp(1.02rem, 1.5vw, 1.18rem); font-weight: 700; margin-top: 30px; }
.post-main p { font-size: 15px; line-height: 2.25; }
.post-main p b, .post-main li b { color: var(--text-primary); font-weight: 700; }
.post-main > p:first-child { font-size: 16.5px; color: var(--text-primary); line-height: 2.15; }
.post-main a:not(.btn):not(.bl-tag):not(.link-u) {
  color: var(--text-primary); text-decoration: underline;
  text-decoration-color: rgba(237, 27, 36, .5); text-underline-offset: 5px;
  transition: text-decoration-color .3s, color .3s;
}
.post-main a:not(.btn):not(.bl-tag):not(.link-u):hover { color: var(--brand-red); text-decoration-color: var(--brand-red); }
.post-main [id] { scroll-margin-top: calc(var(--h-header) + 26px); }

/* numbered list — .prose only styles <ul> */
.bl-ol { counter-reset: blo; margin-top: 18px; display: grid; gap: 12px; padding: 0; list-style: none; }
.bl-ol li {
  counter-increment: blo; position: relative; padding-inline-start: 38px;
  font-size: 14px; line-height: 2.05; color: var(--text-secondary);
}
.bl-ol li::before {
  content: counter(blo, decimal-leading-zero); position: absolute; inset-inline-start: 0; top: 5px;
  font-family: var(--f-num); font-size: 11.5px; direction: ltr;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(237, 27, 36, .1); border: 1px solid rgba(237, 27, 36, .3); color: var(--brand-red);
}

/* ---------- key takeaways ---------- */
.bl-key {
  margin-top: 30px; padding: clamp(20px, 2.4vw, 28px); border-radius: 5px;
  background: linear-gradient(150deg, rgba(237, 27, 36, .09), rgba(200, 155, 99, .05) 62%, transparent);
  border: 1px solid rgba(237, 27, 36, .24);
}
.bl-key h4 {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; color: var(--text-primary); margin: 0 0 14px;
}
.bl-key h4 svg { width: 17px; height: 17px; color: var(--brand-red); }
.bl-key ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bl-key li { position: relative; padding-inline-start: 20px; font-size: 13.5px; line-height: 2; color: var(--text-secondary); }
.bl-key li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 12px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-red); opacity: .8;
}

/* ---------- figure ---------- */
.bl-fig { margin: 38px 0 0; }
.bl-fig img {
  width: 100%; height: auto; border-radius: 5px; display: block;
  border: 1px solid var(--border-dark); filter: brightness(.86) contrast(1.04);
}
.bl-fig figcaption { font-size: 12px; color: var(--text-muted); margin-top: 12px; line-height: 1.9; text-align: center; }

/* ---------- pull quote ---------- */
.bl-quote { position: relative; margin: 40px 0 0; padding: clamp(22px, 3vw, 34px); border-radius: 5px;
  background: var(--bg-elevated); border: 1px solid var(--border-dark);
  border-inline-start: 2px solid var(--brand-red);
}
.bl-quote .q { position: absolute; inset-block-start: 16px; inset-inline-end: 20px; width: 30px; height: 30px; color: var(--brand-red); opacity: .18; }
.bl-quote blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1rem, 1.7vw, 1.22rem); font-weight: 600; line-height: 1.95; color: var(--text-primary); }
.bl-quote figcaption { margin-top: 14px; font-size: 12px; color: var(--warm-accent); }

/* ---------- key/value slab ---------- */
.bl-kv { margin-top: 32px; }
.bl-kv h4 { font-size: 13px; font-weight: 700; margin: 0 0 12px; color: var(--text-primary); }

/* ---------- numbered steps ---------- */
.bl-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; }
.bl-step {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start;
  padding: clamp(16px, 2vw, 22px); border-radius: 4px;
  background: var(--bg-elevated); border: 1px solid var(--border-dark);
  transition: border-color .4s, transform .5s var(--ease);
}
.bl-step:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.bl-step-n {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(237, 27, 36, .12); border: 1px solid rgba(237, 27, 36, .3);
  color: var(--brand-red); font-size: 12px; direction: ltr;
}
.bl-step-b h3 { font-size: 14.5px; font-weight: 700; margin: 5px 0 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bl-step-m {
  font-family: var(--f-num); direction: ltr; font-size: 10.5px; letter-spacing: .1em; color: var(--warm-accent);
  padding: 4px 9px; border-radius: 99px; background: rgba(200, 155, 99, .1); border: 1px solid rgba(200, 155, 99, .22);
}
.bl-step-b p { font-size: 13.5px; line-height: 2; color: var(--text-secondary); margin-top: 8px; }

/* ---------- mini cards ---------- */
.bl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 32px; }
.bl-mini {
  padding: clamp(18px, 2.2vw, 24px); border-radius: 4px;
  background: var(--bg-elevated); border: 1px solid var(--border-dark);
  transition: border-color .4s, transform .5s var(--ease);
}
.bl-mini:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.bl-mini h3 { font-size: 14px; font-weight: 700; margin: 14px 0 0; }
.bl-mini p { font-size: 12.5px; line-height: 1.95; color: var(--text-secondary); margin-top: 8px; }

/* ---------- data table ---------- */
.bl-tblwrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--border-dark); border-radius: 4px; }
.bl-tbl { width: 100%; border-collapse: collapse; min-width: 520px; }
.bl-tbl th {
  text-align: start; padding: 14px 18px; background: var(--bg-secondary);
  font-size: 11.5px; font-weight: 700; color: var(--text-primary);
  border-bottom: 1px solid var(--border-dark); white-space: nowrap;
}
.bl-tbl td { padding: 14px 18px; font-size: 13px; line-height: 1.95; color: var(--text-secondary); border-bottom: 1px solid var(--border-dark); vertical-align: top; }
.bl-tbl tr:last-child td { border-bottom: 0; }
.bl-tbl tbody tr { transition: background .35s; }
.bl-tbl tbody tr:hover { background: rgba(255, 255, 255, .022); }
.bl-tbl td:first-child { color: var(--text-primary); font-weight: 600; }

/* ---------- in-article CTA ---------- */
.bl-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  margin-top: 40px; padding: clamp(22px, 3vw, 32px); border-radius: 5px;
  background: linear-gradient(135deg, #171717, #0b0b0b 68%); border: 1px solid var(--border-dark);
}
.bl-cta h3 { font-size: 16px; font-weight: 800; }
.bl-cta p { font-size: 13px; color: var(--text-secondary); line-height: 1.95; margin-top: 8px; max-width: 52ch; }

/* ---------- TOC ---------- */
.bl-toc { position: static; }
.bl-toc nav { display: grid; gap: 2px; max-height: min(52vh, 520px); overflow-y: auto; scrollbar-width: thin; }
.bl-toc a { display: flex; align-items: flex-start; gap: 10px; line-height: 1.7; }
.bl-toc a .num { color: var(--text-muted); font-size: 10.5px; direction: ltr; padding-top: 3px; }
.bl-toc a.on { border-inline-start: 2px solid var(--brand-red); }
.bl-toc a.on .num { color: var(--brand-red); }

/* ---------- share ---------- */
.bl-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bl-share-l {
  font-family: var(--f-num); font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-muted); direction: ltr; margin-inline-end: 4px;
}
.bl-sh {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border-dark); background: var(--bg-elevated); color: var(--text-secondary);
  cursor: pointer; transition: color .35s, border-color .35s, background .35s, transform .45s var(--ease);
}
.bl-sh:hover { color: #fff; border-color: rgba(237, 27, 36, .5); background: rgba(237, 27, 36, .14); transform: translateY(-2px); }
.bl-sh svg { width: 17px; height: 17px; }

/* ---------- tag row ---------- */
.bl-tagrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border-dark); }
.bl-tagrow-l { font-size: 12px; color: var(--text-muted); margin-inline-end: 4px; }
.bl-tag {
  padding: 7px 14px; border-radius: 99px; font-size: 12px; color: var(--text-secondary);
  background: rgba(255, 255, 255, .035); border: 1px solid var(--border-dark);
  transition: color .3s, border-color .3s, background .3s;
}
.bl-tag:hover, .bl-tag.on { color: var(--text-primary); border-color: rgba(237, 27, 36, .45); background: rgba(237, 27, 36, .1); }

/* ---------- author box ---------- */
.bl-authorbox {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start;
  margin-top: 34px; padding: clamp(22px, 2.8vw, 30px); border-radius: 5px;
  background: var(--bg-elevated); border: 1px solid var(--border-dark);
}
.bl-authorbox-r { font-family: var(--f-num); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--warm-accent); direction: ltr; }
.bl-authorbox h3 { font-size: 16px; font-weight: 800; margin-top: 7px; }
.bl-authorbox p { font-size: 13.5px; line-height: 2.05; color: var(--text-secondary); margin-top: 12px; }
.bl-authorbox .link-u { margin-top: 16px; display: inline-flex; }

/* ---------- comments ---------- */
.bl-comments { margin-top: 56px; }
.bl-cm-list { display: grid; gap: 10px; margin-top: 24px; }
.bl-cm {
  padding: 20px; border-radius: 4px; background: var(--bg-elevated); border: 1px solid var(--border-dark);
}
.bl-cm-top { display: flex; align-items: center; gap: 12px; }
.bl-cm-av {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(140deg, rgba(237, 27, 36, .24), rgba(200, 155, 99, .12));
  border: 1px solid var(--border-dark); font-family: var(--f-display); font-weight: 800; font-size: 14px;
}
.bl-cm-n { font-size: 13.5px; font-weight: 700; }
.bl-cm-d { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.bl-cm p { font-size: 13.5px; line-height: 2.05; color: var(--text-secondary); margin-top: 14px; }
.bl-cm-empty { font-size: 13px; color: var(--text-muted); padding: 22px 0; }
.bl-cm-form { margin-top: 14px; }
.bl-cm-form .btn { margin-top: 16px; }
.bl-cm-form textarea.input { min-height: 120px; }

/* ---------- prev / next ---------- */
.bl-pn { border-block: 1px solid var(--border-dark); background: var(--bg-secondary); }
.bl-pn-in { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border-dark); }
.bl-pn-a {
  display: flex; align-items: center; gap: 16px; padding: clamp(20px, 3vw, 32px) clamp(16px, 2.4vw, 28px);
  background: var(--bg-secondary); transition: background .4s;
}
.bl-pn-a:hover { background: var(--bg-elevated); }
.bl-pn-n { justify-content: flex-end; text-align: end; }
.bl-pn-a svg { width: 20px; height: 20px; color: var(--brand-red); flex-shrink: 0; transition: transform .45s var(--ease); }
.bl-pn-a:hover svg { transform: translateX(-4px); }
.bl-pn-n:hover svg { transform: translateX(4px); }
.bl-pn-a small { display: block; font-size: 11px; color: var(--text-muted); }
.bl-pn-a b { display: block; font-size: 14px; font-weight: 700; margin-top: 6px; line-height: 1.75; }

/* ---------- newsletter ---------- */
.bl-news { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.bl-news .input { max-width: 340px; }

/* ==========================================================================
   LISTINGS — index, category, tag, author, archive, search
   ========================================================================== */
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bl-grid.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.bl-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 5px;
  background: var(--bg-card); border: 1px solid var(--border-dark);
  transition: border-color .45s, transform .55s var(--ease), background .45s;
}
.bl-card:hover { border-color: var(--border-hover); background: var(--bg-elevated); transform: translateY(-4px); }
.bl-card-art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0b0b; }
.bl-card-art img {
  width: 100%; height: 100%; object-fit: cover; filter: brightness(.72) contrast(1.05);
  transition: transform 1.1s var(--ease), filter .5s;
}
.bl-card:hover .bl-card-art img { transform: scale(1.06); filter: brightness(.9) contrast(1.05); }
.bl-card-b { padding: clamp(18px, 2vw, 24px); display: flex; flex-direction: column; flex: 1; }
.bl-chip {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-size: 11.5px; color: var(--warm-accent);
}
.bl-chip svg { width: 15px; height: 15px; }
.bl-card h3 { font-size: 16px; font-weight: 700; line-height: 1.8; margin-top: 12px; }
.bl-card h3 a { transition: color .3s; }
.bl-card:hover h3 a { color: var(--brand-red); }
.bl-card p {
  font-size: 13px; line-height: 2; color: var(--text-secondary); margin-top: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bl-card-f {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: auto; padding-top: 18px;
  font-size: 11.5px; color: var(--text-muted); border-top: 1px solid var(--border-dark);
}
.bl-card-f > * { display: inline-flex; align-items: center; gap: 6px; }
.bl-rt svg { width: 13px; height: 13px; }

/* featured lead card — full-bleed art beside the copy */
.bl-lead {
  display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; border-radius: 6px;
  background: var(--bg-card); border: 1px solid var(--border-dark);
  transition: border-color .45s;
}
.bl-lead:hover { border-color: var(--border-hover); }
.bl-lead-art { position: relative; min-height: 340px; overflow: hidden; }
.bl-lead-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.7) contrast(1.05); transition: transform 1.3s var(--ease); }
.bl-lead:hover .bl-lead-art img { transform: scale(1.05); }
.bl-lead-badge {
  position: absolute; z-index: 3; inset-block-start: 18px; inset-inline-start: 18px;
  font-family: var(--f-num); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; direction: ltr;
  padding: 8px 13px; border-radius: 2px; color: #fff; background: var(--brand-red);
}
.bl-lead-b { padding: clamp(24px, 3.4vw, 46px); display: flex; flex-direction: column; justify-content: center; }
.bl-lead-b h2 { font-size: clamp(1.25rem, 2.3vw, 1.95rem); font-weight: 800; line-height: 1.65; margin-top: 14px; }
.bl-lead-b h2 a { transition: color .3s; }
.bl-lead:hover h2 a { color: var(--brand-red); }
.bl-lead-b p { font-size: 14px; line-height: 2.1; color: var(--text-secondary); margin-top: 14px; }
.bl-lead-b .bl-card-f { border-top: 0; padding-top: 22px; }

/* horizontal row card — archive / sidebar */
.bl-row { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border-dark); }
.bl-row:last-child { border-bottom: 0; }
.bl-row-art { aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; background: #0b0b0b; }
.bl-row-art img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.75); transition: transform .8s var(--ease); }
.bl-row:hover .bl-row-art img { transform: scale(1.07); }
.bl-row h4 { font-size: 13.5px; font-weight: 700; line-height: 1.85; transition: color .3s; }
.bl-row:hover h4 { color: var(--brand-red); }
.bl-row .bl-row-m { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--text-muted); }

/* ---------- toolbar: search + sort + category chips ---------- */
.bl-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.bl-search { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.bl-search svg { position: absolute; inset-inline-start: 16px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--text-muted); pointer-events: none; }
.bl-search .input { padding-inline-start: 46px; }
.bl-count { font-size: 12.5px; color: var(--text-muted); }
.bl-count .num { color: var(--text-primary); }

.bl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.bl-chipbtn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 99px;
  font-size: 12.5px; color: var(--text-secondary); cursor: pointer;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--border-dark);
  transition: color .3s, border-color .3s, background .3s;
}
.bl-chipbtn svg { width: 15px; height: 15px; opacity: .8; }
.bl-chipbtn:hover { color: var(--text-primary); border-color: var(--border-hover); }
.bl-chipbtn.on { color: #fff; background: rgba(237, 27, 36, .16); border-color: rgba(237, 27, 36, .5); }
.bl-chipbtn.on svg { color: var(--brand-red); opacity: 1; }
.bl-chipbtn .n { font-family: var(--f-num); font-size: 10.5px; direction: ltr; color: var(--text-muted); }

/* ---------- sidebar ---------- */
.bl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(26px, 4vw, 60px); align-items: start; }
.bl-side { position: sticky; top: calc(var(--h-header) + 20px); display: grid; gap: 14px; }
.bl-side-card { padding: clamp(18px, 2.2vw, 26px); border-radius: 5px; background: var(--bg-elevated); border: 1px solid var(--border-dark); }
.bl-side-card h3 {
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; padding-bottom: 14px; margin-bottom: 6px;
  border-bottom: 1px solid var(--border-dark); display: flex; align-items: center; gap: 9px;
}
.bl-side-card h3 svg { width: 16px; height: 16px; color: var(--brand-red); }
.bl-side-list { display: grid; }
.bl-side-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 13px; color: var(--text-secondary); border-bottom: 1px solid var(--border-dark); transition: color .3s; }
.bl-side-list a:last-child { border-bottom: 0; }
.bl-side-list a:hover { color: var(--text-primary); }
.bl-side-list .n { font-family: var(--f-num); font-size: 11px; direction: ltr; color: var(--text-muted); }
.bl-side-list a:hover .n { color: var(--brand-red); }

/* ---------- pagination ---------- */
.bl-pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 44px; }
.bl-page {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 3px; display: inline-grid; place-items: center;
  border: 1px solid var(--border-dark); color: var(--text-secondary); background: transparent; cursor: pointer;
  font-family: var(--f-num); font-size: 13px; direction: ltr;
  transition: color .3s, border-color .3s, background .3s;
}
.bl-page:hover { color: var(--text-primary); border-color: var(--border-hover); }
.bl-page.on { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.bl-page[disabled] { opacity: .35; cursor: not-allowed; }
.bl-page svg { width: 16px; height: 16px; }

/* ---------- topic / author tiles ---------- */
.bl-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bl-topic {
  position: relative; overflow: hidden; border-radius: 5px; padding: clamp(24px, 3vw, 34px);
  background: var(--bg-elevated); border: 1px solid var(--border-dark);
  transition: border-color .45s, transform .55s var(--ease);
}
.bl-topic:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.bl-topic-ic { width: 46px; height: 46px; border-radius: 4px; display: grid; place-items: center; background: rgba(237, 27, 36, .1); border: 1px solid rgba(237, 27, 36, .24); color: var(--brand-red); }
.bl-topic-ic svg { width: 22px; height: 22px; }
.bl-topic h3 { font-size: 16.5px; font-weight: 800; margin-top: 20px; }
.bl-topic p { font-size: 13px; line-height: 2; color: var(--text-secondary); margin-top: 10px; }
.bl-topic .n { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-family: var(--f-num); font-size: 11px; letter-spacing: .12em; direction: ltr; color: var(--warm-accent); }

.bl-authors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bl-authorcard {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start;
  padding: clamp(22px, 2.6vw, 30px); border-radius: 5px;
  background: var(--bg-elevated); border: 1px solid var(--border-dark);
  transition: border-color .45s, transform .5s var(--ease);
}
.bl-authorcard:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.bl-authorcard h3 { font-size: 16px; font-weight: 800; margin-top: 6px; }
.bl-authorcard p { font-size: 13px; line-height: 2; color: var(--text-secondary); margin-top: 10px; }
.bl-authorcard .bl-authorbox-r { display: block; }
.bl-authorcard .n { display: inline-flex; gap: 7px; margin-top: 14px; font-family: var(--f-num); font-size: 11px; direction: ltr; color: var(--warm-accent); }

/* ---------- archive by year ---------- */
.bl-year { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: clamp(18px, 3vw, 44px); padding-block: 34px; border-top: 1px solid var(--border-dark); }
.bl-year:last-child { border-bottom: 1px solid var(--border-dark); }
.bl-year-n { font-family: var(--f-num); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; color: var(--brand-red); direction: ltr; }
.bl-year-c { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }

/* ---------- empty state ---------- */
.bl-empty { text-align: center; padding: clamp(40px, 7vw, 80px) 20px; border: 1px dashed var(--border-dark); border-radius: 5px; }
.bl-empty svg { width: 44px; height: 44px; color: var(--text-muted); opacity: .6; }
.bl-empty h3 { font-size: 16px; font-weight: 700; margin-top: 18px; }
.bl-empty p { font-size: 13.5px; color: var(--text-secondary); margin-top: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .post-wrap { grid-template-columns: minmax(0, 1fr); }
  .post-side { display: none; }
  .post-main { max-width: none; }
  .bl-layout { grid-template-columns: minmax(0, 1fr); }
  .bl-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-lead { grid-template-columns: minmax(0, 1fr); }
  .bl-lead-art { min-height: 240px; }
}
@media (max-width: 860px) {
  .bl-cards { grid-template-columns: minmax(0, 1fr); }
  .bl-authors { grid-template-columns: minmax(0, 1fr); }
  .bl-pn-in { grid-template-columns: minmax(0, 1fr); }
  .bl-pn-n { justify-content: flex-start; text-align: start; flex-direction: row-reverse; }
  .bl-year { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bl-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 660px) {
  .bl-grid, .bl-grid.cols2, .bl-topics { grid-template-columns: minmax(0, 1fr); }
  .bl-side { grid-template-columns: minmax(0, 1fr); }
  .bl-authorbox, .bl-authorcard { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .bl-step { grid-template-columns: minmax(0, 1fr); }
  .bl-byline { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .bl-card, .bl-card-art img, .bl-lead-art img, .bl-step, .bl-mini, .bl-topic, .bl-row-art img { transition: none; }
}

/* print — an article should print as an article, not as a dark poster */
@media print {
  .header, .footer, .post-side, .bl-pn, .bl-related, .bl-comments, .bl-cta,
  .rprog, .grain, .vignette, .totop, .loader, .bl-tagrow, .ab-cta { display: none !important; }
  body { background: #fff; color: #111; }
  .post-main p, .post-main li, .bl-tbl td { color: #222; }
  .phead { background: #fff; padding-block: 0 20px; }
  .phead-bg, .phead::before, .phead.has-img::after { display: none; }
  .post-main h2, .post-main h3, .phead h1 { color: #000; }
}
