/* ===== ERP365 · Blogas (v2 ledger) =====
   /blogas (pages/BlogPage.jsx) and every /blogas/<slug> (pages/BlogPostPage.jsx).
   Built on the ledger kit in site.v6.css (.erp-sx-hero, .erp-lsec, .erp-llabel,
   .erp-lh2, .erp-ls-frame). Prefixes: .erp-bl-* list rows and the index,
   .erp-bp-* the article template. One easing curve, named transitions only. */


/* ====== Ledger rows: /blogas list and "Skaitykite daugiau" ======
   Date in mono on the left, topic and reading time, title, excerpt, and the
   cover thumbnail on the right. The whole row is one link. */
.erp-bl-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--erp-maastricht); }
.erp-bl-list > li { border-bottom: 1px solid var(--erp-rule); }

.erp-bl-row {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) 256px; column-gap: 40px;
  grid-template-areas: "date meta thumb" "date t thumb" "date x thumb";
  grid-template-rows: auto auto 1fr;
  margin: 0 -16px; padding: 28px 16px; border-radius: 10px; color: inherit; text-decoration: none;
  transition: background-color 200ms var(--erp-ease-out), transform 150ms var(--erp-ease-out);
}
.erp-bl-row:hover { background: var(--erp-paper); }
.erp-lsec-paper .erp-bl-row:hover { background: #fff; }
.erp-bl-row:active { transform: scale(0.98); }
.erp-bl-row:focus-visible { outline: 2px solid var(--erp-freedom); outline-offset: -2px; }

.erp-bl-date {
  grid-area: date; padding-top: 1px;
  font: 500 13px/1.4 var(--erp-font-mono); color: var(--erp-gray-600); font-variant-numeric: tabular-nums;
}
.erp-bl-meta {
  grid-area: meta; display: block;
  font: 500 12px/1.4 var(--erp-font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--erp-gray-600);
}
.erp-bl-meta i { margin: 0 8px; font-style: normal; color: var(--erp-gray-400); }
.erp-bl-cat { color: var(--erp-freedom-ink); }
.erp-bl-t {
  grid-area: t; margin: 10px 0 0;
  font: 650 clamp(21px, 17px + 0.5vw, 24px)/1.25 var(--erp-font-display); letter-spacing: -0.018em;
  color: var(--erp-maastricht); text-wrap: balance; transition: color 150ms var(--erp-ease-out);
}
.erp-bl-row:hover .erp-bl-t { color: var(--erp-freedom-ink); }
.erp-bl-x {
  grid-area: x; margin: 10px 0 0; max-width: 64ch;
  font: 400 15.5px/1.55 var(--erp-font-body); color: var(--erp-gray-600); text-wrap: pretty;
}
.erp-bl-thumb {
  grid-area: thumb; align-self: start; display: block; overflow: hidden;
  border: 1px solid var(--erp-rule); border-radius: 6px; background: var(--erp-paper);
  transition: transform 240ms var(--erp-ease-out), box-shadow 240ms var(--erp-ease-out);
}
.erp-bl-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.erp-bl-row:hover .erp-bl-thumb { transform: translateY(-3px); box-shadow: var(--erp-shadow-md); }


/* ====== /blogas: the lead article inside the hero ====== */
.erp-bl-lead {
  position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px;
  align-items: center; margin-top: 64px; padding-top: 32px; border-top: 2px solid var(--erp-maastricht);
  color: inherit; text-decoration: none; transition: transform 150ms var(--erp-ease-out);
}
.erp-bl-lead:active { transform: scale(0.99); }
.erp-bl-lead:focus-visible { outline: 2px solid var(--erp-freedom); outline-offset: 6px; border-radius: 4px; }
.erp-bl-photo { display: block; overflow: hidden; border: 1px solid var(--erp-rule); border-radius: 8px; background: var(--erp-paper); }
.erp-bl-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 240ms var(--erp-ease-out); }
.erp-bl-lead:hover .erp-bl-photo img { transform: scale(1.02); }
.erp-bl-lead-txt { display: block; }
.erp-bl-lead-t {
  margin: 16px 0 0; font: 700 clamp(27px, 18px + 1.4vw, 38px)/1.1 var(--erp-font-display);
  letter-spacing: -0.03em; color: var(--erp-maastricht); text-wrap: balance; transition: color 150ms var(--erp-ease-out);
}
.erp-bl-lead:hover .erp-bl-lead-t { color: var(--erp-freedom-ink); }
.erp-bl-lead-x { margin: 16px 0 24px; font: 400 17px/1.55 var(--erp-font-body); color: var(--erp-gray-600); text-wrap: pretty; }
.erp-bl-go { display: inline-block; font: 600 15px/1 var(--erp-font-body); color: var(--erp-freedom-ink); }
.erp-bl-go > span { display: inline-block; margin-left: 6px; transition: transform 200ms var(--erp-ease-out); }
.erp-bl-lead:hover .erp-bl-go > span { transform: translateX(3px); }


/* ====== /blogas: topic filter ======
   Tabs on the list's navy rule. Sticky under the main nav, so the topic can be
   changed from anywhere in a long list; the counts are mono. */
.erp-bl-sec { padding-top: 32px; }
.erp-bl-h2 { margin-bottom: 40px; }
.erp-bl-filter {
  position: sticky; top: 64px; z-index: 20;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 2px solid var(--erp-maastricht);
}
.erp-bl-sec .erp-bl-list { border-top: 0; }
.erp-bl-filter-in { display: flex; gap: 2px; margin: 0 -12px; overflow-x: auto; scrollbar-width: none; }
.erp-bl-filter-in::-webkit-scrollbar { display: none; }
.erp-bl-topic {
  position: relative; flex: none; display: inline-flex; align-items: baseline; gap: 7px;
  padding: 16px 12px 15px; background: none; border: 0; cursor: pointer; white-space: nowrap;
  font: 500 15px/1 var(--erp-font-body); color: var(--erp-gray-600);
  transition: color 150ms var(--erp-ease-out), transform 150ms var(--erp-ease-out);
}
.erp-bl-topic-n { font: 500 12px/1 var(--erp-font-mono); color: var(--erp-gray-400); transition: color 150ms var(--erp-ease-out); }
.erp-bl-topic:hover, .erp-bl-topic.is-active { color: var(--erp-maastricht); }
.erp-bl-topic.is-active .erp-bl-topic-n { color: var(--erp-freedom-ink); }
.erp-bl-topic.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 2px; background: var(--erp-freedom); }
.erp-bl-topic:active { transform: scale(0.97); }
.erp-bl-topic:focus-visible { outline: 2px solid var(--erp-freedom); outline-offset: -4px; border-radius: 6px; }
.erp-bl-empty { margin: 0; padding: 48px 0; font: 400 16px/1.5 var(--erp-font-body); color: var(--erp-gray-600); }


/* ====== Post: hero ======
   Mono kicker (topic · date · reading time), display H1, the dek, share
   buttons, then the cover photo in a paper frame. */
.erp-bp-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 2px; pointer-events: none; }
.erp-bp-progress span { display: block; height: 100%; background: var(--erp-freedom); transform: scaleX(0); transform-origin: 0 50%; }

.erp-bp-hero { padding-bottom: 0; }
.erp-bp-head { position: relative; max-width: 900px; }
.erp-bp-kicker {
  margin: 0; font: 500 13px/1.5 var(--erp-font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--erp-gray-600);
}
.erp-bp-kicker a { color: var(--erp-freedom-ink); text-decoration: none; text-underline-offset: 3px; }
.erp-bp-kicker a:hover { text-decoration: underline; }
.erp-bp-kicker i { margin: 0 10px; font-style: normal; color: var(--erp-gray-400); }
.erp-bp-title {
  margin: 20px 0 0; max-width: 24ch;
  font: 700 clamp(33px, 16px + 3vw, 56px)/1.04 var(--erp-font-display); letter-spacing: -0.035em;
  color: var(--erp-maastricht); text-wrap: balance;
}
.erp-bp-dek { margin: 24px 0 28px; max-width: 62ch; font: 400 20px/1.55 var(--erp-font-body); color: var(--erp-gray-700); text-wrap: pretty; }

.erp-bp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.erp-bp-share-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  background: #fff; border: 1px solid var(--erp-rule-strong); border-radius: var(--erp-radius-md); cursor: pointer;
  color: var(--erp-gray-600);
  transition: color 150ms var(--erp-ease-out), border-color 150ms var(--erp-ease-out), transform 150ms var(--erp-ease-out);
}
.erp-bp-share-btn:hover { color: var(--erp-maastricht); border-color: var(--erp-maastricht); }
.erp-bp-share-btn:active { transform: scale(0.96); }
.erp-bp-share-btn:focus-visible { outline: 2px solid var(--erp-freedom); outline-offset: 2px; }
.erp-bp-share-btn.is-done { color: #15803D; border-color: #15803D; }
.erp-bp-share-note { margin-left: 4px; font: 500 12.5px/1 var(--erp-font-mono); color: #15803D; opacity: 0; transition: opacity 200ms var(--erp-ease-out); }
.erp-bp-share-note.is-on { opacity: 1; }

.erp-bp-cover { position: relative; margin: 56px 0 0; padding: 10px; background: var(--erp-paper); border: 1px solid var(--erp-rule); border-radius: 12px; }
.erp-bp-cover img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 6px; }


/* ====== Post: layout, contents, body ====== */
.erp-bp-main { padding: 72px 0 8px; }
.erp-bp-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; align-items: start; }

/* Contents: sticky ledger column on desktop, a sticky bar with a drop-down on
   tablets and phones (below). */
.erp-bp-toc { position: sticky; top: 96px; align-self: start; }
.erp-bp-toc-btn { display: none; }
.erp-bp-toc-h {
  margin: 0 0 14px; font: 500 12px/1 var(--erp-font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--erp-gray-600);
}
.erp-bp-toc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--erp-maastricht); }
.erp-bp-toc-list li { border-bottom: 1px solid var(--erp-rule); }
.erp-bp-toc-list a {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px; padding: 10px 0;
  font: 500 14.5px/1.4 var(--erp-font-body); color: var(--erp-gray-600); text-decoration: none;
  transition: color 150ms var(--erp-ease-out), transform 150ms var(--erp-ease-out);
}
.erp-bp-toc-list a:hover { color: var(--erp-maastricht); }
.erp-bp-toc-list a:active { transform: scale(0.98); }
.erp-bp-toc-list a.is-active { color: var(--erp-maastricht); font-weight: 600; }
.erp-bp-toc-list a:focus-visible { outline: 2px solid var(--erp-freedom); outline-offset: 2px; border-radius: 4px; }
.erp-bp-toc-n { font: 500 12px/1.7 var(--erp-font-mono); font-weight: 500; color: var(--erp-gray-400); }
.erp-bp-toc-list a.is-active .erp-bp-toc-n { color: var(--erp-freedom-ink); }

/* Body: Schibsted Grotesk at 18px. The measure is set in em, not ch: this
   face has a wide zero, so 68ch would run to ~90 characters a line; 34em keeps
   Lithuanian prose at ~70-75. Figures and the before/after table may use the
   whole column. */
.erp-bp-body { min-width: 0; font: 400 18px/1.7 var(--erp-font-body); color: var(--erp-gray-700); overflow-wrap: break-word; }
.erp-bp-sec { scroll-margin-top: 96px; }
.erp-bp-sec > :not(.erp-bp-fig):not(.erp-bp-ba) { max-width: 34em; }
.erp-bp-sec + .erp-bp-sec { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--erp-rule); }
.erp-bp-sec h2 {
  margin: 0 0 20px; font: 650 clamp(25px, 18px + 1.1vw, 32px)/1.2 var(--erp-font-display);
  letter-spacing: -0.022em; color: var(--erp-maastricht); text-wrap: balance;
}
.erp-bp-sec h3 { margin: 32px 0 10px; font: 650 20px/1.3 var(--erp-font-display); letter-spacing: -0.012em; color: var(--erp-maastricht); }
/* :where() keeps this at one class, so .erp-bp-lede and the table cells below win. */
.erp-bp-body :where(p) { margin: 0 0 20px; font-size: inherit; line-height: inherit; color: inherit; text-wrap: pretty; }
.erp-bp-sec > :last-child { margin-bottom: 0; }
.erp-bp-lede { font-size: 20.5px; line-height: 1.6; color: var(--erp-maastricht); }
.erp-bp-body strong { font-weight: 600; color: var(--erp-maastricht); }
.erp-bp-sec p a, .erp-bp-sec li a {
  color: var(--erp-freedom-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: rgba(0, 112, 224, 0.35); transition: text-decoration-color 150ms var(--erp-ease-out);
}
.erp-bp-sec p a:hover, .erp-bp-sec li a:hover { text-decoration-color: currentColor; }

/* Lists as hairline rows: a short blue dash, or a mono 01, 02… */
.erp-bp-ul, .erp-bp-ol { list-style: none; margin: 4px 0 28px; padding: 0; border-top: 1px solid var(--erp-rule); }
.erp-bp-ul li, .erp-bp-ol li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--erp-rule); font-size: 17px; line-height: 1.6; }
.erp-bp-ul li::before { content: ""; position: absolute; left: 2px; top: calc(11px + 0.8em); width: 12px; height: 1.5px; background: var(--erp-freedom-ink); }
.erp-bp-ol { counter-reset: erp-bp; }
.erp-bp-ol li { counter-increment: erp-bp; padding-left: 40px; }
.erp-bp-ol li::before {
  content: counter(erp-bp, decimal-leading-zero); position: absolute; left: 0; top: 11px;
  font: 500 13px/27px var(--erp-font-mono); color: var(--erp-freedom-ink);
}

/* Before / after: navy rule, mono column heads, hairline rows. */
.erp-bp-ba { margin: 8px 0 32px; border-top: 2px solid var(--erp-maastricht); }
.erp-bp-ba-head, .erp-bp-ba-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; border-bottom: 1px solid var(--erp-rule); }
.erp-bp-ba-head { padding: 12px 0; font: 500 12px/1.3 var(--erp-font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.erp-bp-ba-head span:first-child { color: var(--erp-gray-600); }
.erp-bp-ba-head span:last-child { padding-left: 24px; color: var(--erp-freedom-ink); }
.erp-bp-ba p { margin: 0; padding: 14px 0; font-size: 16px; line-height: 1.55; }
.erp-bp-ba-before { color: var(--erp-gray-600); }
.erp-bp-ba-after { position: relative; padding-left: 24px !important; color: var(--erp-maastricht); }
.erp-bp-ba-after::before {
  content: ""; position: absolute; left: 2px; top: calc(14px + 0.62em); width: 9px; height: 5px;
  border-left: 1.5px solid var(--erp-freedom-ink); border-bottom: 1.5px solid var(--erp-freedom-ink); transform: translateY(-3px) rotate(-45deg);
}
.erp-bp-ba-lbl { display: none; }

/* Call-out inside an article: a paper panel. */
.erp-bp-cta { margin: 32px 0 0; padding: 26px 28px 28px; background: var(--erp-paper); border: 1px solid var(--erp-rule); border-radius: 12px; }
.erp-bp-cta .erp-bp-cta-t { margin: 0 0 8px; font: 650 22px/1.25 var(--erp-font-display); letter-spacing: -0.015em; color: var(--erp-maastricht); }
.erp-bp-cta p { margin: 0 0 20px; font-size: 16.5px; line-height: 1.55; color: var(--erp-gray-600); }
.erp-bp-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* A real ERP365 screen: browser frame (dots, no URL), caption with a mono
   module label. */
.erp-bp-fig { margin: 40px 0 8px; }
.erp-bp-fig-frame { position: relative; }
.erp-bp-fig-pan img { display: block; width: 100%; height: auto; }
.erp-bp-fig-hint { display: none; }
.erp-bp-fig figcaption { max-width: 42em; margin-top: 14px; font: 400 14.5px/1.55 var(--erp-font-body); color: var(--erp-gray-600); text-wrap: pretty; }
.erp-bp-fig-k { margin-right: 10px; font: 500 11.5px/1 var(--erp-font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--erp-freedom-ink); }

/* Topics of the article. */
.erp-bp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 34em; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--erp-rule); }
.erp-bp-tags-k { margin-right: 8px; font: 500 12px/1 var(--erp-font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--erp-gray-600); }
.erp-bp-tag {
  padding: 6px 9px; background: #fff; border: 1px solid var(--erp-rule); border-radius: 4px;
  font: 500 12.5px/1.2 var(--erp-font-mono); color: var(--erp-maastricht);
}
a.erp-bp-tag {
  color: var(--erp-freedom-ink); border-color: var(--erp-freedom-200); text-decoration: none;
  transition: background-color 150ms var(--erp-ease-out), transform 150ms var(--erp-ease-out);
}
a.erp-bp-tag:hover { background: var(--erp-freedom-50); }
a.erp-bp-tag:active { transform: scale(0.97); }
a.erp-bp-tag:focus-visible { outline: 2px solid var(--erp-freedom); outline-offset: 2px; }

/* Previous / next: two ledger cells under a navy rule. */
.erp-bp-pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 88px; border-top: 2px solid var(--erp-maastricht); border-bottom: 1px solid var(--erp-rule); }
.erp-bp-pager-a {
  display: flex; flex-direction: column; gap: 12px; padding: 24px 32px 28px 0; color: inherit; text-decoration: none;
  transition: transform 150ms var(--erp-ease-out);
}
.erp-bp-pager-a.is-next { align-items: flex-end; padding: 24px 0 28px 32px; border-left: 1px solid var(--erp-rule); text-align: right; }
.erp-bp-pager-a:active { transform: scale(0.98); }
.erp-bp-pager-a:focus-visible { outline: 2px solid var(--erp-freedom); outline-offset: -2px; border-radius: 4px; }
.erp-bp-pager-k { font: 500 12px/1 var(--erp-font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--erp-gray-600); }
.erp-bp-pager-k span { display: inline-block; transition: transform 200ms var(--erp-ease-out); }
.erp-bp-pager-a:hover .erp-bp-pager-k span { transform: translateX(-3px); }
.erp-bp-pager-a.is-next:hover .erp-bp-pager-k span { transform: translateX(3px); }
.erp-bp-pager-t {
  max-width: 44ch; font: 650 20px/1.3 var(--erp-font-display); letter-spacing: -0.015em; color: var(--erp-maastricht);
  text-wrap: balance; transition: color 150ms var(--erp-ease-out);
}
.erp-bp-pager-a:hover .erp-bp-pager-t { color: var(--erp-freedom-ink); }

/* Skaitykite daugiau */
.erp-bp-more-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 40px; }


/* ====== Touch: no hover lifts ====== */
@media (hover: none) {
  .erp-bl-row:hover, .erp-lsec-paper .erp-bl-row:hover { background: none; }
  .erp-bl-row:hover .erp-bl-t, .erp-bl-lead:hover .erp-bl-lead-t, .erp-bp-pager-a:hover .erp-bp-pager-t { color: var(--erp-maastricht); }
  .erp-bl-row:hover .erp-bl-thumb { transform: none; box-shadow: none; }
  .erp-bl-lead:hover .erp-bl-photo img { transform: none; }
  .erp-bl-lead:hover .erp-bl-go > span, .erp-bp-pager-a:hover .erp-bp-pager-k span { transform: none; }
  a.erp-bp-tag:hover { background: #fff; }
}


/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .erp-bl-row { grid-template-columns: 104px minmax(0, 1fr) 208px; column-gap: 28px; }

  /* Contents becomes a sticky bar: the current section, tap for the list. */
  .erp-bp-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .erp-bp-toc {
    top: 64px; z-index: 30; margin: 0 -32px 44px; padding: 0 32px;
    background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-top: 1px solid var(--erp-rule); border-bottom: 1px solid var(--erp-rule);
  }
  .erp-bp-toc-wide { display: none; }
  .erp-bp-toc-btn {
    display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0;
    background: none; border: 0; cursor: pointer; text-align: left; color: var(--erp-maastricht);
  }
  .erp-bp-toc-btn { transition: transform 150ms var(--erp-ease-out); }
  .erp-bp-toc-btn:active { transform: scale(0.98); }
  .erp-bp-toc-btn:focus-visible { outline: 2px solid var(--erp-freedom); outline-offset: -2px; border-radius: 4px; }
  .erp-bp-toc-btn .erp-bp-toc-h { margin: 0; flex: none; }
  .erp-bp-toc-cur { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 15px/1.2 var(--erp-font-body); }
  .erp-bp-toc-cur .erp-bp-toc-n { margin-right: 8px; color: var(--erp-freedom-ink); }
  .erp-bp-toc-chev { flex: none; color: var(--erp-gray-600); transition: transform 200ms var(--erp-ease-out); }
  .erp-bp-toc.is-open .erp-bp-toc-chev { transform: rotate(180deg); }
  .erp-bp-toc-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: min(60vh, 440px); overflow: auto;
    padding: 0 32px 8px; background: #fff; border-top: 1px solid var(--erp-rule); border-bottom: 1px solid var(--erp-rule);
    box-shadow: var(--erp-shadow-lg); overscroll-behavior: contain;
  }
  .erp-bp-toc-list li:last-child { border-bottom: 0; }
  .erp-bp-toc-list a { padding: 13px 0; font-size: 15.5px; }
  .erp-bp-toc.is-open .erp-bp-toc-list { display: block; }
  .erp-bp-sec { scroll-margin-top: 136px; }
}
@media (max-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .erp-bp-toc.is-open .erp-bp-toc-list { transform-origin: top center; animation: erp-bp-drop 200ms var(--erp-ease-out); }
}
@keyframes erp-bp-drop { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 860px) {
  .erp-bl-lead { grid-template-columns: 1fr; gap: 24px; }
  .erp-bp-ba-head { display: none; }
  .erp-bp-ba-row { grid-template-columns: 1fr; padding: 14px 0; }
  .erp-bp-ba p { padding: 0; }
  .erp-bp-ba-before { margin-bottom: 8px !important; }
  .erp-bp-ba-lbl {
    display: block; margin-bottom: 4px; font: 500 11.5px/1.3 var(--erp-font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--erp-gray-500);
  }
  .erp-bp-ba-after .erp-bp-ba-lbl { color: var(--erp-freedom-ink); }
  .erp-bp-ba-after::before { top: calc(1.3em + 4px + 0.62em); }
  .erp-bp-pager { grid-template-columns: 1fr; }
  .erp-bp-pager-a, .erp-bp-pager-a.is-next { align-items: flex-start; padding: 22px 0; text-align: left; }
  .erp-bp-pager-a.is-next { border-left: 0; border-top: 1px solid var(--erp-rule); }
  .erp-bp-pager > span:empty { display: none; }
}

@media (max-width: 720px) {
  /* Phone row: date and topic on one mono line, title beside a small thumb. */
  .erp-bl-row {
    grid-template-columns: auto minmax(0, 1fr) 104px; column-gap: 0;
    grid-template-areas: "date meta meta" "t t thumb" "x x x"; grid-template-rows: none;
    margin: 0; padding: 22px 0 24px; border-radius: 0;
  }
  .erp-bl-row:active { transform: none; background: var(--erp-paper); }
  .erp-bl-date { padding-top: 0; font-size: 12px; }
  .erp-bl-row .erp-bl-meta::before { content: "·"; margin: 0 8px; color: var(--erp-gray-400); }
  .erp-bl-t { align-self: start; margin: 12px 16px 0 0; font-size: 19px; line-height: 1.28; }
  .erp-bl-thumb { margin-top: 14px; border-radius: 5px; }
  .erp-bl-thumb img { aspect-ratio: 4 / 3; }
  .erp-bl-x {
    margin-top: 10px; font-size: 15px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .erp-bl-row:hover .erp-bl-thumb { transform: none; box-shadow: none; }
}

@media (max-width: 560px) {
  .erp-bl-lead { margin-top: 44px; padding-top: 24px; }
  .erp-bl-lead-x { font-size: 16px; margin: 12px 0 20px; }
  .erp-bl-h2 { margin-bottom: 28px; }
  .erp-bl-filter { top: 60px; margin: 0 -16px; padding: 0 16px; }
  .erp-bl-filter-in {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .erp-bl-topic { padding: 15px 12px 14px; font-size: 14.5px; }

  .erp-bp-kicker { font-size: 12px; }
  .erp-bp-kicker i { margin: 0 7px; }
  .erp-bp-title { margin-top: 16px; }
  .erp-bp-dek { margin: 18px 0 22px; font-size: 17.5px; }
  .erp-bp-share-btn { width: 44px; height: 44px; }
  .erp-bp-cover { margin-top: 36px; padding: 6px; border-radius: 10px; }
  .erp-bp-cover img { aspect-ratio: 3 / 2; border-radius: 5px; }

  .erp-bp-main { padding: 40px 0 0; }
  .erp-bp-toc { top: 60px; margin: 0 -16px 32px; padding: 0 16px; }
  .erp-bp-toc-list { padding: 0 16px 8px; }
  .erp-bp-sec { scroll-margin-top: 128px; }
  .erp-bp-body { font-size: 17px; line-height: 1.68; }
  .erp-bp-lede { font-size: 18.5px; }
  .erp-bp-sec + .erp-bp-sec { margin-top: 44px; padding-top: 36px; }
  .erp-bp-ul li, .erp-bp-ol li { font-size: 16.5px; }
  .erp-bp-cta { padding: 22px 18px 20px; }
  .erp-bp-cta-actions .erp-btn { flex: 1 1 100%; }

  /* Phones: the screen keeps a readable scale and pans sideways. */
  .erp-bp-fig { margin-top: 32px; }
  .erp-bp-fig-pan { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .erp-bp-fig-pan::-webkit-scrollbar { display: none; }
  .erp-bp-fig-pan img { width: 880px; max-width: none; }
  .erp-bp-fig-hint {
    display: flex; align-items: center; justify-content: center; position: absolute; right: 8px; bottom: 8px;
    width: 32px; height: 24px; border-radius: 4px; background: rgba(2, 44, 74, 0.78); color: #fff;
    font: 500 14px/1 var(--erp-font-mono); pointer-events: none;
  }
  .erp-bp-fig figcaption { font-size: 14px; }

  .erp-bp-pager { margin-top: 64px; }
  .erp-bp-pager-t { font-size: 18px; }
  .erp-bp-more-head { margin-bottom: 28px; }
  .erp-bp-more-head .erp-btn { width: 100%; }
}

/* Reduced motion: no hover lifts or zooms; colour changes stay. */
@media (prefers-reduced-motion: reduce) {
  .erp-bl-row:hover .erp-bl-thumb, .erp-bl-lead:hover .erp-bl-photo img,
  .erp-bl-lead:hover .erp-bl-go > span, .erp-bp-pager-a:hover .erp-bp-pager-k span { transform: none; }
}
