/* Public blog: /blog and /blog/{slug}. Works inside both public layouts. */
.blog {
    --b-ink: #0f2236; --b-text: #2a3a4c; --b-muted: #5b6b7c; --b-faint: #8392a3;
    --b-blue: #1273c4; --b-blue-d: #0d5c9f; --b-sky: #e8f2fb;
    --b-cloud: #f4f7fa; --b-line: #e2e8ef; --b-radius: 16px;
    color: var(--b-text);
    font-family: inherit;
    padding-bottom: 72px;
}
.blog *, .blog *::before, .blog *::after { box-sizing: border-box; }
.blog a { color: var(--b-blue); }
.blog :focus-visible { outline: 2px solid var(--b-blue); outline-offset: 3px; border-radius: 6px; }
.blog-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Masthead */
.blog-mast { background: var(--b-cloud); border-bottom: 1px solid var(--b-line); padding: 56px 0 40px; margin-bottom: 40px; }
.blog-mast h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -.022em; color: var(--b-ink); margin: 0 0 12px; font-weight: 700; }
.blog-mast p { font-size: 18px; line-height: 1.55; color: var(--b-muted); max-width: 620px; margin: 0; }
.blog-mast-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.blog-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--b-line); border-radius: 12px; padding: 4px 4px 4px 14px; min-width: 300px; max-width: 100%; }
.blog-search svg { flex: none; color: var(--b-faint); }
.blog-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; flex: 1; min-width: 0; padding: 9px 0; color: var(--b-ink); box-shadow: none; }
.blog-search button { border: 0; background: var(--b-ink); color: #fff; font: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 9px; cursor: pointer; }
.blog-search button:hover { background: #1c3552; }
.blog-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.blog-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--b-line); background: #fff; color: var(--b-text) !important; text-decoration: none; font-size: 14px; font-weight: 500; min-height: 36px; }
.blog-chip:hover { border-color: #c8d4e0; }
.blog-chip.is-on { background: var(--b-ink); border-color: var(--b-ink); color: #fff !important; }
.blog-chip small { color: inherit; opacity: .6; font-size: 12px; }

/* Layout */
.blog-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.blog-body.is-full { grid-template-columns: minmax(0, 1fr); }

/* Lead story: a framed editorial card. The whole card is one link, so the site-wide
   a:hover underline is switched off here and only colour, lift and image zoom show hover. */
.blog a.blog-lead, .blog a.blog-card, .blog a.blog-lead:hover, .blog a.blog-card:hover { text-decoration: none !important; }
.blog-lead { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: stretch; color: inherit !important; margin-bottom: 52px; padding: 14px; background: #fff; border: 1px solid var(--b-line); border-radius: 26px; box-shadow: 0 1px 2px rgba(15, 34, 54, .04), 0 18px 40px -28px rgba(15, 34, 54, .28); transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
.blog-lead:hover { transform: translateY(-2px); border-color: #cfdceb; box-shadow: 0 1px 2px rgba(15, 34, 54, .05), 0 28px 56px -30px rgba(15, 34, 54, .38); }
.blog-lead .blog-img { border-radius: 18px; height: 100%; min-height: 320px; }
.blog-lead-tx { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 18px 22px 18px 0; min-width: 0; }
.blog-kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.blog-new { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--b-ink); }
.blog-new::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #149c6b; box-shadow: 0 0 0 3px rgba(20, 156, 107, .18); }
.blog-lead h2 { font-size: clamp(24px, 2.2vw, 31px); line-height: 1.16; letter-spacing: -.025em; color: var(--b-ink); margin: 14px 0 12px; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s ease; }
.blog-lead p { font-size: 16.5px; line-height: 1.6; color: var(--b-muted); margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-lead .blog-meta { margin-top: 0; }
.blog-lead:hover h2 { color: var(--b-blue); }
.blog-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 10px 16px; border-radius: 11px; background: var(--b-ink); color: #fff; font-size: 14.5px; font-weight: 700; transition: background .2s ease; }
.blog-more svg { transition: transform .2s ease; }
.blog-lead:hover .blog-more { background: var(--b-blue); }
.blog-lead:hover .blog-more svg { transform: translateX(3px); }

/* Category pill: on the lead story and on card images */
.blog-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--b-sky); color: var(--b-blue-d); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.blog-pill.on-img { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .94); color: var(--b-ink); box-shadow: 0 2px 8px rgba(15, 34, 54, .12); backdrop-filter: blur(4px); }

/* Cards */
.blog-sec { font-size: 21px; font-weight: 800; letter-spacing: -.015em; color: var(--b-ink); margin: 0 0 20px; display: flex; align-items: center; gap: 14px; }
.blog-sec::after { content: ''; flex: 1; height: 1px; background: var(--b-line); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 34px 28px; }
.blog-card { display: flex; flex-direction: column; color: inherit !important; border-radius: 18px; transition: transform .25s ease; }
.blog-card:hover { transform: translateY(-3px); }
.blog-card .blog-img { border-radius: 16px; aspect-ratio: 16 / 9; margin-bottom: 14px; box-shadow: 0 14px 30px -24px rgba(15, 34, 54, .45); }
.blog-card h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.012em; color: var(--b-ink); margin: 2px 0 8px; font-weight: 750; transition: color .15s ease; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card p { font-size: 15px; line-height: 1.55; color: var(--b-muted); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card:hover h3 { color: var(--b-blue); }
.blog-img { position: relative; display: block; overflow: hidden; background: linear-gradient(135deg, #dbe9f7, #f1f6fb); }
.blog-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.blog-card:hover .blog-img img, .blog-lead:hover .blog-img img { transform: scale(1.04); }
.blog-img-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--b-blue); opacity: .45; }
.blog-play { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; background: rgba(15, 34, 54, .82); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.blog-cat { font-size: 13px; font-weight: 600; color: var(--b-blue); }
.blog-meta { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--b-faint); margin-top: auto; }
.blog-meta span { display: inline-flex; align-items: center; gap: 5px; }
.blog-meta span + span::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: currentColor; margin-right: 5px; opacity: .8; }

/* Sidebar */
.blog-side { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 96px; }
.blog-side h2 { font-size: 15px; font-weight: 700; color: var(--b-ink); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--b-line); }
.blog-pop { list-style: none; margin: 0; padding: 0; counter-reset: pop; display: flex; flex-direction: column; gap: 14px; }
.blog-pop li { counter-increment: pop; display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.blog-pop li::before { content: counter(pop); font-size: 22px; font-weight: 700; color: #c9d6e3; line-height: 1; }
.blog-pop a { color: var(--b-ink); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.35; }
.blog-pop a:hover { color: var(--b-blue); }
.blog-pop small { display: block; color: var(--b-faint); font-size: 12px; margin-top: 3px; }
.blog-cats { list-style: none; margin: 0; padding: 0; }
.blog-cats a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--b-cloud); color: var(--b-text); text-decoration: none; font-size: 15px; }
.blog-cats a:hover { color: var(--b-blue); }
.blog-cats span { color: var(--b-faint); font-size: 13px; }
.blog-cta { background: var(--b-ink); color: #cbd8e6; border-radius: var(--b-radius); padding: 22px; }
.blog-cta strong { display: block; color: #fff; font-size: 17px; line-height: 1.3; margin-bottom: 6px; }
.blog-cta p { font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.blog-cta a { display: inline-flex; background: #fff; color: var(--b-ink); text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 9px; }
.blog-side .site-ad { margin: 0; padding: 0; }

/* Pager, empty state */
.blog-pager { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.blog-pager a, .blog-pager span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--b-line); text-decoration: none; color: var(--b-text); font-weight: 600; font-size: 15px; background: #fff; }
.blog-pager .is-on { background: var(--b-ink); border-color: var(--b-ink); color: #fff; }
.blog-empty { text-align: center; padding: 64px 16px; border: 1px dashed #cfdae5; border-radius: var(--b-radius); }
.blog-empty h2 { color: var(--b-ink); margin: 0 0 8px; font-size: 22px; }
.blog-empty p { color: var(--b-muted); margin: 0; }

/* Article */
.post-head { max-width: 780px; margin: 0 auto; padding: 48px 24px 0; text-align: center; }
.post-crumb { font-size: 14px; color: var(--b-faint); margin-bottom: 18px; }
.post-crumb a { color: var(--b-muted); text-decoration: none; }
.post-crumb a:hover { color: var(--b-blue); }
.post-head h1 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.1; letter-spacing: -.03em; color: var(--b-ink); margin: 10px 0 16px; font-weight: 700; }
.post-dek { font-size: 19px; line-height: 1.55; color: var(--b-muted); margin: 0 auto 20px; max-width: 660px; }
.post-head .blog-meta { justify-content: center; font-size: 14px; }
.post-hero { max-width: 1040px; margin: 36px auto 0; padding: 0 24px; }
.post-hero img { width: 100%; border-radius: 20px; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.post-video { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; }
.post-video iframe, .post-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-cols { max-width: 1040px; margin: 40px auto 0; padding: 0 24px; display: grid; grid-template-columns: 56px minmax(0, 720px); gap: 32px; justify-content: center; }
.post-share { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 8px; }
.post-share a, .post-share button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--b-line); background: #fff; color: var(--b-muted); cursor: pointer; text-decoration: none; font: inherit; }
.post-share a:hover, .post-share button:hover { color: var(--b-blue); border-color: #bcd3ea; }
.post-share-label { font-size: 11px; color: var(--b-faint); text-align: center; }

.prose { font-size: 18px; line-height: 1.78; color: var(--b-text); min-width: 0; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-size: 28px; line-height: 1.25; letter-spacing: -.02em; color: var(--b-ink); margin: 1.8em 0 .5em; font-weight: 700; }
.prose h3 { font-size: 22px; line-height: 1.3; color: var(--b-ink); margin: 1.5em 0 .4em; font-weight: 700; }
.prose h4 { font-size: 18px; color: var(--b-ink); margin: 1.3em 0 .3em; }
.prose a { color: var(--b-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { color: var(--b-ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--b-blue); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--b-blue); font-size: 20px; line-height: 1.6; color: var(--b-ink); }
.prose img { max-width: 100%; height: auto; border-radius: 14px; display: block; margin: 1.6em auto; }
.prose video, .prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; background: #000; display: block; margin: 1.6em 0; }
.prose pre { background: var(--b-ink); color: #dbe7f3; padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose code { font-size: .88em; background: var(--b-sky); color: var(--b-ink); padding: 2px 6px; border-radius: 6px; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--b-line); padding: 10px 12px; text-align: left; }
.prose .ql-align-center { text-align: center; } .prose .ql-align-right { text-align: right; } .prose .ql-align-justify { text-align: justify; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--b-line); }
.post-tags a { padding: 6px 12px; border-radius: 999px; background: var(--b-cloud); color: var(--b-text); text-decoration: none; font-size: 14px; }
.post-tags a:hover { background: var(--b-sky); color: var(--b-blue); }
.post-ai { margin-top: 18px; font-size: 13px; color: var(--b-faint); }
.post-end { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.post-related { max-width: 1200px; margin: 64px auto 0; padding: 48px 24px 0; border-top: 1px solid var(--b-line); }
.post-related > h2, .post-comments > h2 { font-size: 26px; letter-spacing: -.02em; color: var(--b-ink); margin: 0 0 24px; }

/* Comments */
.post-comments { max-width: 720px; margin: 64px auto 0; padding: 0 24px; scroll-margin-top: 90px; }
.cmt-list { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.cmt { display: grid; grid-template-columns: 42px 1fr; gap: 14px; }
.cmt-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--b-sky); color: var(--b-blue); font-weight: 700; font-size: 16px; }
.cmt-head { font-size: 15px; color: var(--b-ink); font-weight: 700; }
.cmt-head time { font-weight: 400; color: var(--b-faint); font-size: 13px; margin-left: 6px; }
.cmt p { margin: 4px 0 0; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.cmt-form { background: var(--b-cloud); border-radius: var(--b-radius); padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; scroll-margin-top: 90px; }
.cmt-form h3 { grid-column: 1 / -1; margin: 0; font-size: 19px; color: var(--b-ink); }
.cmt-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--b-ink); }
.cmt-form .is-wide { grid-column: 1 / -1; }
.cmt-form input, .cmt-form textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 11px 13px; border: 1px solid #cfdae5; border-radius: 10px; background: #fff; color: var(--b-ink); width: 100%; box-shadow: none; }
.cmt-form input:focus, .cmt-form textarea:focus { border-color: var(--b-blue); outline: 2px solid rgba(18, 115, 196, .18); outline-offset: 0; }
.cmt-form small { font-weight: 400; color: var(--b-faint); font-size: 12px; }
.cmt-form button { justify-self: start; border: 0; background: var(--b-blue); color: #fff; font: inherit; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 10px; cursor: pointer; min-height: 44px; }
.cmt-form button:hover { background: var(--b-blue-d); }
.cmt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cmt-note { grid-column: 1 / -1; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.cmt-note.is-ok { background: #e9f8ef; color: #146c3a; }
.cmt-note.is-bad { background: #fdecec; color: #9f1d1d; }

/* The public site stylesheets restyle every input; the blog's own fields win here. */
.blog .blog-search input[type="search"] { background: transparent !important; box-shadow: none !important; border: 0 !important; min-height: 0 !important; padding: 9px 0 !important; }
.blog .cmt-form input[type="text"], .blog .cmt-form input[type="email"], .blog .cmt-form textarea {
    background: #fff !important; border: 1px solid #cfdae5 !important; box-shadow: none !important; border-radius: 10px !important;
    padding: 11px 13px !important; min-height: 46px; color: var(--b-ink) !important; font-size: 16px !important;
}
.blog .cmt-form textarea { min-height: 130px; resize: vertical; }
.blog .cmt-form input:focus, .blog .cmt-form textarea:focus { border-color: var(--b-blue) !important; outline: 2px solid rgba(18, 115, 196, .18) !important; outline-offset: 0; }
.blog .cmt-form .cmt-hp input { min-height: 0; }

@media (max-width: 1000px) {
    .blog-body { grid-template-columns: minmax(0, 1fr); }
    .blog-side { position: static; }
    .post-cols { grid-template-columns: minmax(0, 1fr); }
    .post-share { position: static; flex-direction: row; justify-content: center; order: 2; }
    .post-share-label { display: none; }
}
@media (max-width: 760px) {
    .blog-wrap, .post-head, .post-hero, .post-cols, .post-end, .post-related, .post-comments { padding-left: 16px; padding-right: 16px; }
    .blog-mast { padding: 36px 0 28px; margin-bottom: 28px; }
    .blog-search { min-width: 0; width: 100%; }
    /* Categories: one row you swipe sideways, running to the screen edges, instead of five rows of chips. */
    .blog-chips { flex-wrap: nowrap; overflow-x: auto; margin: 18px -16px 0; padding: 2px 16px 4px; scroll-padding: 0 16px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%); }
    .blog-chips::-webkit-scrollbar { display: none; }
    .blog-chip { flex: none; white-space: nowrap; scroll-snap-align: start; }
    .blog-lead { grid-template-columns: 1fr; gap: 6px; margin-bottom: 36px; padding: 10px; border-radius: 20px; }
    .blog-lead .blog-img { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
    .blog-lead-tx { padding: 12px 10px 14px; }
    .blog-more { width: 100%; justify-content: center; }
    .post-head { padding-top: 32px; }
    .prose { font-size: 17px; }
    .prose h2 { font-size: 24px; }
    .cmt-form { grid-template-columns: 1fr; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .blog-img img, .blog-card h3 { transition: none; }
    .blog-card:hover .blog-img img, .blog-lead:hover .blog-img img { transform: none; }
    .blog-lead, .blog-card, .blog-lead:hover, .blog-card:hover { transform: none; transition: none; }
}

/* ==========================================================================
   Blog post page (blog/show.php)
   ========================================================================== */
.pz-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 200; pointer-events: none; }
.pz-progress span { display: block; height: 100%; background: linear-gradient(90deg, #1273c4, #39a8ea); transform: scaleX(0); transform-origin: left center; }
.blog.pz { padding-bottom: 0; }

/* Header band */
.pz-band { background: #0f2236; color: #c7d5e4; position: relative; overflow: hidden; padding: 56px 24px 72px; }
.pz-band.has-media { padding-bottom: 190px; }
.pz-band::after { content: ""; position: absolute; right: -140px; top: -160px; width: 480px; height: 480px; border-radius: 50%; border: 60px solid rgba(57, 168, 234, .08); pointer-events: none; }
.pz-band::before { content: ""; position: absolute; left: -120px; bottom: -200px; width: 360px; height: 360px; border-radius: 50%; border: 44px solid rgba(57, 168, 234, .05); pointer-events: none; }
.pz-band-in { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; text-align: center; }
.pz-crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 22px; flex-wrap: wrap; justify-content: center; }
.pz-crumb a { color: #a9bdd1; text-decoration: none; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.pz-crumb a:last-child { color: #7cc4f5; background: rgba(57, 168, 234, .12); border-color: rgba(57, 168, 234, .25); }
.pz-crumb a:hover { color: #fff; }
.pz-crumb span { color: #5f7690; }
.pz-band h1 { color: #fff; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.12; letter-spacing: -.022em; margin: 0 0 18px; font-weight: 700; text-wrap: balance; }
.pz-dek { font-size: 19px; line-height: 1.6; color: #c7d5e4; margin: 0 auto 28px; max-width: 680px; }
.pz-byline { display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.pz-byline-t strong { display: block; color: #fff; font-size: 15px; }
.pz-byline-t span { display: block; font-size: 14px; color: #a9bdd1; }
.pz-byline-t i { font-style: normal; margin: 0 7px; opacity: .6; }
.pz-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; background: linear-gradient(135deg, #1273c4, #39a8ea); color: #fff; font-weight: 700; font-size: 16px; }
.pz-avatar.is-lg { width: 56px; height: 56px; font-size: 22px; }

/* Cover or video overlapping the band */
.pz-media { position: relative; z-index: 2; max-width: 1080px; margin: -150px auto 0; padding: 0 24px; }
.pz-media > img, .pz-video { display: block; width: 100%; border-radius: 22px; box-shadow: 0 30px 70px -30px rgba(15, 34, 54, .55); }
.pz-media > img { aspect-ratio: 16 / 9; object-fit: cover; background: #e8f0f7; }
.pz-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.pz-video iframe, .pz-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Reading layout */
.pz-layout { max-width: 1200px; margin: 56px auto 0; padding: 0 24px; display: grid; grid-template-columns: 52px minmax(0, 720px) 250px; gap: 48px; justify-content: center; align-items: start; }
.pz-rail { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pz-rail-label { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: #8392a3; margin-bottom: 2px; }
.pz-rail a, .pz-rail button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid #e2e8ef; background: #fff; color: #5b6b7c; cursor: pointer; text-decoration: none; font: inherit; transition: color .15s ease, border-color .15s ease, transform .15s ease; }
.pz-rail a:hover, .pz-rail button:hover { color: #1273c4; border-color: #bcd3ea; transform: translateY(-1px); }
.pz-copy.is-done { color: #149c6b !important; border-color: #b4e2c5 !important; }
.pz-main { min-width: 0; }
.pz-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 22px; }
.pz-toc strong { display: block; font-size: 13px; font-weight: 700; color: #0f2236; margin-bottom: 12px; }
.pz-toc[hidden] { display: none; }
.pz-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid #e8eef4; }
.pz-toc li a { display: block; margin-left: -2px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; color: #5b6b7c; text-decoration: none; font-size: 14px; line-height: 1.4; transition: color .15s ease, border-color .15s ease; }
.pz-toc li.is-sub a { padding-left: 26px; font-size: 13px; }
.pz-toc li a:hover { color: #0f2236; }
.pz-toc li a.is-on { color: #1273c4; border-left-color: #1273c4; font-weight: 600; }
.pz-cta { background: #0f2236; color: #c7d5e4; border-radius: 16px; padding: 20px; position: relative; overflow: hidden; }
.pz-cta::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 140px; height: 140px; border-radius: 50%; border: 22px solid rgba(57, 168, 234, .12); }
.pz-cta strong { display: block; color: #fff; font-size: 16px; line-height: 1.35; margin-bottom: 6px; position: relative; }
.pz-cta p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; position: relative; }
.pz-cta a { position: relative; display: inline-flex; background: #fff; color: #0f2236; text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 9px; }

/* Article typography on top of .prose */
.pz-prose { font-size: 18.5px; line-height: 1.8; }
.pz-prose > p:first-child { font-size: 21px; line-height: 1.65; color: #0f2236; }
.pz-prose h2 { font-size: 29px; margin-top: 2em; padding-top: .2em; scroll-margin-top: 100px; }
.pz-prose h3 { scroll-margin-top: 100px; }
.pz-prose h2 + p, .pz-prose h3 + p { margin-top: .6em; }
.pz-prose blockquote { border-left: 0; background: #f1f7fd; border-radius: 16px; padding: 22px 26px 22px 58px; position: relative; font-size: 19px; }
.pz-prose blockquote::before { content: "\201C"; position: absolute; left: 20px; top: 8px; font-size: 56px; line-height: 1; color: #39a8ea; font-family: Georgia, serif; }
.pz-prose ul { list-style: none; padding-left: 0; }
.pz-prose ul > li { position: relative; padding-left: 28px; }
.pz-prose ul > li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: #1273c4; box-shadow: 0 0 0 4px #e8f2fb; }
.pz-prose ol { padding-left: 1.4em; }
.pz-prose ol > li::marker { color: #1273c4; font-weight: 700; }
.pz-prose img { border-radius: 16px; box-shadow: 0 18px 40px -26px rgba(15, 34, 54, .45); }
.pz-prose hr { border: 0; height: 1px; background: #e2e8ef; margin: 2.4em 0; }

/* After the article */
.pz-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 44px; }
.pz-tags a { padding: 7px 14px; border-radius: 999px; background: #f4f7fa; color: #2a3a4c; text-decoration: none; font-size: 14px; font-weight: 500; }
.pz-tags a:hover { background: #e8f2fb; color: #1273c4; }
.pz-sharebar { margin-top: 32px; padding: 22px 0; border-top: 1px solid #e2e8ef; border-bottom: 1px solid #e2e8ef; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pz-sharebar strong { color: #0f2236; font-size: 16px; }
.pz-sharebar > div { display: flex; gap: 8px; flex-wrap: wrap; }
.pz-sharebar a, .pz-sharebar button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid #e2e8ef; background: #fff; color: #2a3a4c; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.pz-sharebar a.is-x:hover { background: #0f1419; border-color: #0f1419; color: #fff; }
.pz-sharebar a.is-linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.pz-sharebar a.is-whatsapp:hover { background: #1faa55; border-color: #1faa55; color: #fff; }
.pz-sharebar a.is-facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.pz-sharebar button:hover { border-color: #bcd3ea; color: #1273c4; }
.pz-author { margin-top: 32px; display: flex; gap: 18px; align-items: flex-start; background: #f4f7fa; border-radius: 18px; padding: 24px; }
.pz-author-k { display: block; font-size: 13px; color: #8392a3; }
.pz-author strong { display: block; font-size: 18px; color: #0f2236; margin: 2px 0 6px; }
.pz-author p { margin: 0; font-size: 15px; line-height: 1.6; color: #5b6b7c; }
.pz-author p.pz-ai { margin-top: 8px; font-size: 13px; color: #8392a3; }
.pz-main .site-ad { padding: 0; }
.pz-side .site-ad { margin: 0; padding: 0; text-align: left; }
.pz-side .site-ad img { width: 100%; }

/* Related, comments, closing band */
.pz-related { max-width: 1200px; margin: 88px auto 0; padding: 0 24px; }
/* Four across on a desktop, two on a tablet, one on a phone. */
@media (min-width: 1100px) { .pz-related .blog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 24px; } }
@media (min-width: 640px) and (max-width: 1099px) { .pz-related .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pz-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.pz-section-head h2, .pz-comments h2 { font-size: 30px; letter-spacing: -.025em; color: #0f2236; margin: 0; }
.pz-section-head a { font-weight: 600; font-size: 15px; text-decoration: none; }
.pz-comments { max-width: 760px; margin: 88px auto 0; padding: 0 24px; scroll-margin-top: 90px; }
.pz-comments h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.pz-comments h2 span { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; background: #e8f2fb; color: #1273c4; font-size: 15px; letter-spacing: 0; }
.pz-cmt-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pz-cmt-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; border: 1px solid #e2e8ef; border-radius: 16px; background: #fff; }
.pz-cmt-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pz-cmt-head strong { color: #0f2236; font-size: 15px; }
.pz-cmt-head time { color: #8392a3; font-size: 13px; }
.pz-cmt-list p { margin: 6px 0 0; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; color: #2a3a4c; }
.pz-cmt-empty { margin: 0 0 20px; color: #5b6b7c; }
.pz-close { background: #0f2236; margin-top: 96px; padding: 72px 24px; text-align: center; position: relative; overflow: hidden; }
.pz-close::after { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; border: 54px solid rgba(57, 168, 234, .08); }
.pz-close-in { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.pz-close h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.03em; margin: 0 0 10px; }
.pz-close p { color: #c7d5e4; font-size: 17px; margin: 0 0 26px; }
.pz-close-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.pz-close-actions a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 11px; font-weight: 700; font-size: 15px; text-decoration: none; color: #fff; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }
.pz-close-actions a.is-primary { background: #1273c4; border-color: #1273c4; }
.pz-close-actions a:hover { filter: brightness(1.1); }

/* Focus */
.pz a:focus-visible, .pz button:focus-visible { outline: 2px solid #1273c4; outline-offset: 3px; }
.pz-band a:focus-visible, .pz-close a:focus-visible { outline-color: #39a8ea; }

@media (max-width: 1140px) {
    .pz-layout { grid-template-columns: 52px minmax(0, 720px); }
    .pz-side { display: none; }
}
@media (max-width: 820px) {
    .pz-layout { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 36px; }
    .pz-rail { display: none; }
    .pz-band { padding: 36px 16px 52px; }
    .pz-band.has-media { padding-bottom: 120px; }
    .pz-media { margin-top: -96px; padding: 0 16px; }
    .pz-media > img, .pz-video { border-radius: 16px; }
    .pz-dek { font-size: 17px; }
    .pz-prose { font-size: 17px; }
    .pz-prose > p:first-child { font-size: 19px; }
    .pz-prose h2 { font-size: 24px; }
    .pz-prose blockquote { padding: 18px 18px 18px 48px; font-size: 17px; }
    .pz-layout, .pz-related, .pz-comments { padding-left: 16px; padding-right: 16px; }
    .pz-sharebar a span, .pz-sharebar button span { display: none; }
    .pz-author { flex-direction: column; padding: 20px; }
    .pz-related, .pz-comments { margin-top: 64px; }
    .pz-close { margin-top: 64px; padding: 56px 16px; }
    .pz-section-head h2, .pz-comments h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .pz-rail a, .pz-rail button, .pz-toc li a, .pz-sharebar a, .pz-sharebar button { transition: none; }
    .pz-rail a:hover, .pz-rail button:hover { transform: none; }
}
