/* Blog index (/blog) and blog posts (/blog/<slug>): extras on top of product.css (.pr-*). Prefix: .bl-
   Index: compact dark hero -> warm grey posts section (pills, cards, pager) -> dark .pr-final with the newsletter.
   Post: dark hero with breadcrumb -> white article column (~720px) with side rails on wide screens -> grey related posts -> .pr-final. */

/* ---------- Compact hero (no product window) ---------- */
.pr-hero.bl-hero { min-height: 0; padding-bottom: 96px; }
.pr-hero.bl-hero > * { position: relative; z-index: 1; }
.pr-hero.bl-hero::after { height: 200px; background: radial-gradient(55% 100% at 50% 100%, rgba(154,238,172,.22), transparent 75%); }
#posts-region { transition: opacity .2s ease; }
.bl-post-hero { --bl-next: #fff; }
.pr-hero.bl-hero .pr-ctas { margin-top: 26px; }
.pr-hero.bl-hero > .pr-note { margin-bottom: 0; }

/* Post hero: category kicker, long titles, meta line. */
.bl-post-hero h1 { max-width: 880px; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.14; }
.bl-post-hero .pr-lead { max-width: 700px; }
.bl-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin-top: 18px !important; font-size: 14px; font-weight: 500; color: #A9B6CF; }
.bl-meta i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.bl-post-hero.has-img { padding-bottom: 150px; }
.bl-crumbs [aria-current="page"] { display: inline-block; max-width: min(46ch, 52vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ---------- Index: topic pills ---------- */
.bl-posts { padding-top: 64px; }
.bl-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; width: var(--pr-w); margin: 30px auto 0; }
.pr .bl-pills .cat-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: #44403C;
  white-space: nowrap; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.pr .bl-pills .cat-btn:hover { border-color: #C9C5BD; color: var(--ink); }
.pr .bl-pills .cat-btn.active { background: #1A2142; border-color: #1A2142; color: #fff; }

/* ---------- Index: post cards ---------- */
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: var(--pr-w); margin: 40px auto 0; }
.bl-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid var(--line); text-align: left;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.bl-card:hover { transform: translateY(-4px); border-color: #D6D3CC; box-shadow: 0 24px 44px -28px rgba(15,23,42,.35); }
.bl-card-pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #EAF0FF; }
.pr .bl-card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bl-card:hover .bl-card-pic img { transform: scale(1.04); }
.bl-card-ph { display: flex; align-items: center; justify-content: center; background: radial-gradient(260px 160px at 30% 0%, rgba(52,97,255,.45), transparent 70%), linear-gradient(160deg, #1A2142, #26336A); }
.bl-card-ph svg { width: 44px; height: 44px; color: rgba(154,238,172,.7); }
.bl-cat { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.94); font-size: 12.5px; font-weight: 600; color: #1E293B; }
.bl-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.bl-card-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #78716C; }
.bl-card-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.pr .bl-card h2 { margin-top: 10px; font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); transition: color .2s ease;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card:hover h2 { color: var(--blue); }
.pr .bl-card p { flex: 1; margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--blue); }
.bl-go svg { width: 16px; height: 16px; transition: transform .25s ease; }
.bl-card:hover .bl-go svg { transform: translateX(3px); }

.bl-empty { width: var(--pr-w); margin: 40px auto 0; padding: 64px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); text-align: center; }
.pr .bl-empty p { font-size: 17px; color: var(--mute); }
.pr .bl-empty a { color: var(--blue); font-weight: 600; }

/* ---------- Index: pagination ---------- */
.bl-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; }
.pr .bl-pager > a { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 600; color: #44403C; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.pr .bl-pager > a:hover { border-color: #C9C5BD; color: var(--ink); }
.pr .bl-pager > a[aria-current="page"] { background: #1A2142; border-color: #1A2142; color: #fff; }

/* ---------- Final band + newsletter ---------- */
.bl-subsec { padding: 72px 16px; background: #fff; }
.bl-sub { width: min(1080px, 100%); margin: 0 auto; padding: 36px 40px 28px; border: 1px solid #E3E5F0; border-radius: 28px; background: linear-gradient(135deg, #F3F4FF 0%, #F6FBF7 100%); box-shadow: 0 18px 40px -28px rgba(26,33,66,.35); }
.bl-sub-main { display: grid; grid-template-columns: auto 1fr minmax(320px, 400px); gap: 28px; align-items: center; }
.bl-sub-ico { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; background: #1A2142; color: #9AEEAC; box-shadow: 0 10px 24px -12px rgba(26,33,66,.6); }
.bl-sub-ico svg { width: 32px; height: 32px; }
.pr .bl-sub h2 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: #0F172A; }
.pr .bl-sub-copy p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: #475569; }
.bl-sub-form form { display: flex; gap: 8px; }
.bl-sub-form input { flex: 1; min-width: 0; height: 52px; padding: 0 20px; border: 1px solid #CBD2E6; border-radius: 999px; background: #fff; color: #0F172A; font: 500 15px 'Figtree', system-ui, sans-serif; outline: none; transition: border-color .2s, box-shadow .2s; }
.bl-sub-form input::placeholder { color: #64748B; }
.bl-sub-form input:focus { border-color: #4F5BD5; box-shadow: 0 0 0 4px rgba(79,91,213,.16); }
.bl-sub-form button { height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: #1A2142; color: #fff; font: 600 15px 'Figtree', system-ui, sans-serif; cursor: pointer; transition: background-color .2s, transform .2s; }
.bl-sub-form button:hover { background: #2B3A7E; transform: translateY(-1px); }
.bl-sub-form button:disabled { opacity: .6; cursor: default; transform: none; }
.pr .bl-sub-form #bottom-msg { margin: 10px 4px 0; font-size: 14px; font-weight: 600; }
.bl-sub-form .hidden { display: none; }
.bl-sub-form .text-emerald-400 { color: #047857; }
.bl-sub-form .text-red-400 { color: #B91C1C; }
.bl-sub.is-done .bl-sub-form form { display: none; }
.pr .bl-sub-why { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin: 26px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid #DDE1F0; }
.bl-sub-why li { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #334155; }
.bl-sub-why svg { width: 22px; height: 22px; padding: 4px; box-sizing: content-box; border-radius: 10px; background: #E6F8EA; color: #12703A; }
@media (max-width: 900px) {
  .bl-sub-main { grid-template-columns: auto 1fr; }
  .bl-sub-form { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .bl-subsec { padding: 48px 16px; }
  .bl-sub { padding: 24px 20px 20px; border-radius: 22px; }
  .bl-sub-main { grid-template-columns: 1fr; gap: 18px; }
  .bl-sub-ico { width: 56px; height: 56px; border-radius: 16px; }
  .bl-sub h2 { font-size: 23px; }
  .bl-sub-form form { flex-direction: column; }
  .bl-sub-form input { flex: none; width: 100%; }
  .bl-sub-form button { width: 100%; }
  .bl-sub-why { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- Post: layout (article column + rails on wide screens) ---------- */
.bl-article-sec { padding: 8px 16px 96px; background: #fff; }
.bl-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr); gap: 56px; width: min(1320px, 100%); margin: 0 auto; }
.bl-layout > article { grid-column: 2; min-width: 0; }
.bl-rail { position: sticky; top: 96px; align-self: start; }
.bl-rail-l { grid-column: 1; grid-row: 1; justify-self: end; width: 230px; }
.bl-rail-r { grid-column: 3; grid-row: 1; justify-self: start; width: 260px; }

.bl-toc-t, .bl-railbox-k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #78716C; }
.pr .bl-toc ol { margin: 12px 0 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.pr .bl-toc a { display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: #57534E; transition: color .2s ease, border-color .2s ease; }
.pr .bl-toc a:hover { color: var(--ink); }
.pr .bl-toc a.is-on { border-left-color: var(--blue); color: var(--blue); font-weight: 600; }

.bl-railbox { padding: 22px; border-radius: 20px; }
.bl-railbox + .bl-railbox { margin-top: 14px; }
.bl-railbox-cta { background: #EAF0FF; }
.bl-railbox-cta .bl-railbox-k { color: var(--blue); }
.pr .bl-railbox h3 { margin: 8px 0 0; font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.pr .bl-railbox p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--mute); }
.bl-railbox .pr-btn { width: 100%; height: 44px; margin-top: 16px; font-size: 14.5px; }
.bl-railbox-news { background: var(--grey); }
.bl-railbox-news form { margin-top: 12px; }
.bl-railbox-news input { width: 100%; height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 500 14px 'Figtree', system-ui, sans-serif; color: var(--ink); outline: none; }
.bl-railbox-news input:focus { border-color: var(--blue); }
.bl-railbox-news button { width: 100%; height: 42px; margin-top: 8px; border: 0; border-radius: 999px; background: #252525; color: #fff; font: 600 14px 'Figtree', system-ui, sans-serif; cursor: pointer; transition: background-color .2s ease; }
.bl-railbox-news button:hover { background: var(--blue); }
.pr .bl-railbox-news #sidebar-msg { margin-top: 8px; font-size: 13px; }
.pr .bl-railbox-news .hidden { display: none; }
.pr .bl-railbox-news .text-emerald-600 { color: #059669; }
.pr .bl-railbox-news .text-red-500 { color: #DC2626; }

@media (max-width: 1239px) {
  .bl-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr); gap: 0; }
  .bl-rail { display: none; }
}

/* Hero image pulled up into the dark hero. */
.bl-figure { position: relative; z-index: 2; margin: -112px 0 40px; }
.pr .bl-figure img { width: 100%; height: auto; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(15,23,42,.06), 0 30px 60px -30px rgba(15,23,42,.45); }

/* ---------- Post: article typography ---------- */
.bl-prose { font-size: 18px; line-height: 1.75; color: #334155; overflow-wrap: break-word; }
.bl-prose > :first-child { margin-top: 0 !important; }
.pr .bl-prose p { margin: 0 0 1.25em; }
.pr .bl-prose :is(h1, h2) { margin: 2.2em 0 .7em; font-size: 30px; line-height: 1.25; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); scroll-margin-top: 96px; }
.pr .bl-prose h3 { margin: 1.8em 0 .6em; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); scroll-margin-top: 96px; }
.pr .bl-prose :is(h4, h5, h6) { margin: 1.6em 0 .5em; font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--ink); }
.pr .bl-prose strong { font-weight: 600; color: var(--ink); }
.pr .bl-prose a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pr .bl-prose a:hover { color: #1D3FCC; text-decoration-thickness: 2px; }
.pr .bl-prose :is(ul, ol) { margin: 0 0 1.4em; padding-left: 1.4em; }
.pr .bl-prose ul { list-style: disc; }
.pr .bl-prose ol { list-style: decimal; }
.pr .bl-prose li { margin: 0 0 .5em; padding-left: .2em; }
.pr .bl-prose li::marker { color: #94A3B8; font-weight: 600; }
.pr .bl-prose li > :is(ul, ol) { margin: .5em 0 0; }
.pr .bl-prose li > p { margin-bottom: .5em; }
.pr .bl-prose blockquote { margin: 1.8em 0; padding: 20px 24px; border-left: 4px solid var(--blue); border-radius: 0 16px 16px 0; background: #EAF0FF; color: #1E3A8A; }
.pr .bl-prose blockquote p:last-child { margin-bottom: 0; }
.pr .bl-prose hr { margin: 2.6em 0; border: 0; border-top: 1px solid var(--line); }
.pr .bl-prose img { max-width: 100%; height: auto; margin: 1.8em auto; border-radius: 16px; border: 1px solid var(--line); }
.pr .bl-prose figure { margin: 1.8em 0; }
.pr .bl-prose figcaption { margin-top: -1em; font-size: 14px; color: #78716C; text-align: center; }
.pr .bl-prose :not(pre) > code { padding: .12em .4em; border-radius: 6px; background: #F1F0EC; font-size: .86em; color: #0F172A; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pr .bl-prose pre { max-width: 100%; margin: 1.6em 0; padding: 20px 22px; overflow-x: auto; border-radius: 16px; background: #1A2142; color: #E2E8F0; font-size: 14.5px; line-height: 1.65;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pr .bl-prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.pr .bl-prose .codehilite { margin: 1.6em 0; }
.pr .bl-prose .codehilite pre { margin: 0; }
.pr .bl-prose table { display: block; width: 100%; max-width: 100%; margin: 1.8em 0; overflow-x: auto; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.pr .bl-prose thead th { background: var(--grey); }
.pr .bl-prose th { padding: 12px 16px; text-align: left; font-weight: 600; color: var(--ink); border-bottom: 1px solid #D6D3CC; white-space: nowrap; }
.pr .bl-prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pr .bl-prose tbody tr:last-child td { border-bottom: 0; }

/* In-article signup card. */
.bl-inline { display: flex; align-items: center; gap: 22px; margin: 2.2em 0; padding: 24px 26px; border-radius: 22px; background: #E6F7EF; }
.bl-inline-pic { flex: none; width: 116px; }
.pr .bl-inline-pic img { width: 100%; height: auto; margin: 0; border: 0; border-radius: 0; mix-blend-mode: multiply; }
.bl-inline-t { flex: 1; min-width: 0; }
.pr .bl-inline-t b { display: block; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.pr .bl-inline-t span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: #44403C; }
.bl-inline .pr-btn { flex: none; height: 46px; }
.pr .bl-prose .bl-inline a.pr-btn { text-decoration: none; }

/* Author + share row. */
.bl-by { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.bl-by-who { display: flex; align-items: center; gap: 12px; }
.bl-by-av { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #1A2142; color: var(--mint); font-weight: 700; }
.pr .bl-by-who b { display: block; font-size: 15px; font-weight: 600; }
.pr .bl-by-who small { display: block; font-size: 13.5px; color: #78716C; }
.bl-share { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #78716C; }
.bl-share button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #44403C; cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.bl-share button:hover { border-color: var(--blue); color: var(--blue); }
.bl-share button.is-copied { border-color: #059669; background: #E6F7EF; color: #059669; }
.bl-share svg { width: 16px; height: 16px; }

/* ---------- Post: related posts ---------- */
.bl-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: var(--pr-w); max-width: 1080px; margin: 44px auto 0; }
.bl-rel { display: flex; flex-direction: column; padding: 26px; border-radius: 22px; background: var(--tint); text-align: left; transition: transform .25s ease, box-shadow .25s ease; }
.bl-rel:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -30px rgba(15,23,42,.4); }
.bl-rel-k { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.pr .bl-rel h3 { flex: 1; margin-top: 12px; font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.bl-rel .bl-go { color: var(--acc); }
.bl-rel:hover .bl-go svg { transform: translateX(3px); }

/* ---------- Post: sticky mobile bar ---------- */
.mobile-sticky-bar { display: none; }
@media (max-width: 1024px) {
  .mobile-sticky-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 20px; border-radius: 999px; background: #1A2142; color: #fff; box-shadow: 0 18px 40px -16px rgba(2,6,23,.6);
    font-family: 'Figtree', system-ui, sans-serif; transform: translateY(140%); transition: transform .3s ease; }
  .mobile-sticky-bar.is-on { transform: none; }
  .mobile-sticky-bar .bar-text { font-size: 15px; font-weight: 600; }
  .mobile-sticky-bar .bar-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 999px; background: #fff; color: #0F172A !important; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .mobile-sticky-bar .bar-btn:hover { background: var(--mint, #9AEEAC); color: #064E3B !important; }
  body.bl-has-bar { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .mobile-sticky-bar { transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-related { grid-template-columns: 1fr; max-width: 640px; }
  .bl-crumbs ol { justify-content: center; }
}
@media (max-width: 860px) {
  .pr-hero.bl-hero { padding-bottom: 72px; }
  .bl-post-hero.has-img { padding-bottom: 110px; }
  .bl-figure { margin-top: -80px; }
  .bl-posts { padding-top: 48px; }
  .bl-article-sec { padding-bottom: 72px; }
}
@media (max-width: 680px) {
  .bl-grid { grid-template-columns: 1fr; max-width: 520px; }
  .bl-pills { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: auto; margin-left: -16px; margin-right: -16px; padding: 2px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .bl-pills::-webkit-scrollbar { display: none; }
  .pr .bl-pills .cat-btn { scroll-snap-align: start; }
  .bl-prose { font-size: 17px; }
  .pr .bl-prose :is(h1, h2) { font-size: 25px; }
  .pr .bl-prose h3 { font-size: 20px; }
  .pr .bl-prose pre { margin-left: -4px; margin-right: -4px; padding: 16px; font-size: 13.5px; }
  .bl-inline { flex-direction: column; align-items: stretch; text-align: center; }
  .bl-inline-pic { margin: 0 auto; }
  .bl-inline .pr-btn { width: 100%; }
  .bl-figure { margin: -72px 0 28px; }
  .pr .bl-figure img { border-radius: 14px; }
  .bl-crumbs [aria-current="page"] { max-width: 40vw; }
  .bl-by { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .bl-card, .bl-card-pic img, .bl-rel { transition: none; } }

/* Rail review (real G2 review). */
.bl-railbox-review { display: block; border: 1px solid var(--line); background: #fff; transition: border-color .2s ease; }
.bl-railbox-review:hover { border-color: #C9C5BD; }
.bl-stars { font-size: 15px; letter-spacing: 2px; color: #F59E0B; }
.pr .bl-railbox-review p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: #44403C; }
.pr .bl-railbox-review small { display: block; margin-top: 10px; font-size: 13px; color: #78716C; }

/* ===== Mobile pass (<=767px) ===== */
@media (max-width: 767px) {
  /* Long post titles: 3-4 balanced lines instead of 5-6. */
  .pr-hero.bl-post-hero h1 { font-size: clamp(28px, 7.7vw, 31px); line-height: 1.16; }
  /* Category pills: the first pill keeps the 16px gutter when snapping. */
  .bl-pills { scroll-padding-inline: 16px; }
  .pr .bl-pills .cat-btn { min-height: 44px; }
  /* 16px stops iOS zooming into the field. */
  .bl-sub-form input { font-size: 16px; }
  /* CMS bodies: embeds and media never push the page sideways. */
  .pr .bl-prose :is(iframe, video, embed, object, svg) { max-width: 100%; }
  .pr .bl-prose iframe { width: 100%; }
}
/* Mobile pass, round 2 (<=767px) */
@media (max-width: 767px) {
  /* Index: the newest post keeps its big card; the rest become compact rows (16:9 thumb + title + meta). */
  .bl-grid { gap: 12px; margin-top: 24px; }
  .bl-card:not(:first-child) { flex-direction: row; align-items: flex-start; gap: 14px; padding: 12px; border-radius: 18px; }
  .bl-card:not(:first-child) .bl-card-pic { flex: none; width: 112px; border-radius: 12px; }
  .bl-card:not(:first-child) :is(.bl-cat, p, .bl-go) { display: none; }
  .bl-card:not(:first-child) .bl-card-body { padding: 0; }
  .bl-card:not(:first-child) .bl-card-meta { font-size: 12.5px; }
  .pr .bl-card:not(:first-child) h2 { order: -1; margin: 0 0 6px; font-size: 16px; line-height: 1.35; }
  .bl-card:first-child .bl-card-body { padding: 18px 18px 20px; }

  /* Pager: numbers and Next on one line. */
  .bl-pager { gap: 4px; margin-top: 32px; }
  .pr .bl-pager > a { min-width: 38px; height: 44px; padding: 0 10px; }

  /* Post hero: an article header reads left-aligned on a phone. */
  .pr-hero.bl-post-hero { text-align: left; }
  .pr-hero.bl-post-hero :is(h1, .pr-lead) { margin-left: 0; text-align: left; }
  .bl-post-hero .bl-crumbs ol, .bl-post-hero .bl-meta { justify-content: flex-start; }

  /* Post tables scroll sideways: soft edge shadows show there is more. */
  .pr .bl-prose table { background: linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)) 0 0 / 32px 100% no-repeat local,
    linear-gradient(270deg, #fff 30%, rgba(255,255,255,0)) 100% 0 / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(15,23,42,.14), transparent) 0 0 / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(15,23,42,.14), transparent) 100% 0 / 12px 100% no-repeat scroll; }
}
