/* 2026-12-04 BLOG ARTICLE PAGE - DESIGN B (owner picked B from the article-page designs artifact).
   Colours ONLY the owner's three: red #ff0000, maroon #470000, tint #e31e2426 (red at 15%), on white.
   Loaded by blog-data/render-post.php and in/blog-data/render-post.php after their inline <style>, so it overrides it.
   Owner rules kept: cover shown WHOLE with nothing on it, crumb/topic/title under it, no author name, company card at the end.
   Markup added by the template: .pdb-layout (article + .pdb-rail). Behaviour: /js/post-design-b.js.
   To go back: remove the two <link>/<script> lines and the .pdb-layout wrapper + rail in render-post.php. */
:root { --pdb-m: #470000; --pdb-r: #ff0000; --pdb-t: #e31e2426; --pdb-t2: #e31e240d; --pdb-tx: #2a1012; --pdb-mut: rgba(71, 0, 0, .64);
  --pdb-serif: "Source Serif 4", Georgia, "Times New Roman", serif; }

#readProgress { background: var(--pdb-r) !important; height: 4px !important; }

/* ---------- banner: the whole cover on a maroon strip */
.post-hero.post-hero--banner { padding: 0 0 8px !important; border-bottom: 0 !important; background: #fff !important; }
.post-hero--banner .post-banner { max-width: none !important; margin: 0 0 38px !important; padding: 0 !important; background: var(--pdb-m); }
.post-hero--banner .post-banner-img { max-width: 1180px; margin: 0 auto; border-radius: 0 !important; box-shadow: none !important; background: var(--pdb-m) !important; }

/* ---------- head: centred crumb, maroon pill, big maroon title with a red underline, centred meta */
.post-hero--banner .post-hero-inner { max-width: 940px !important; text-align: center; }
html body .post-hero .post-crumb, html body .post-hero .post-crumb a { color: var(--pdb-mut) !important; }
html body .post-hero .post-crumb a:hover { color: var(--pdb-r) !important; }
html body .post-hero .post-cat-pill { background: var(--pdb-m) !important; color: #fff !important; border-radius: 6px !important; padding: 7px 12px !important; letter-spacing: .08em !important; }
html body .post-hero .post-title:not(#_):not(#__) { color: var(--pdb-m) !important; font-weight: 900 !important; font-size: clamp(30px, 4.6vw, 56px) !important; line-height: 1.06 !important; letter-spacing: -.035em !important; text-shadow: none !important; }
.post-hero .post-title::after { content: ""; display: block; width: 80px; height: 5px; border-radius: 4px; background: var(--pdb-r); margin: 18px auto 0; }
html body .post-hero .post-meta { justify-content: center; color: var(--pdb-mut) !important; }
.post-hero .post-meta i { color: var(--pdb-r); }

/* ---------- layout: article + sticky right rail */
.pdb-layout { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 54px; justify-content: center; max-width: 1180px; margin: 0 auto; padding: 0 24px; align-items: start; }
.pdb-layout > .post-body-wrap { max-width: none !important; margin: 0 !important; padding: 26px 0 20px !important; min-width: 0; }
.pdb-rail { position: sticky; top: 96px; display: grid; gap: 16px; padding: 26px 0 30px; }
@media (min-width: 1100px) { .post-toc { display: none !important; } }
@media (max-width: 1099.98px) { .pdb-layout { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 760px; } .pdb-rail { display: none; } }

/* ---------- article text: easy-reading serif, maroon headings, red links */
html body .post-body { color: var(--pdb-tx) !important; }
html body .post-body :is(p, li, blockquote, dd, dt, figcaption):not(#_):not(#__) { font-family: var(--pdb-serif); font-size: 19px; line-height: 1.78; color: var(--pdb-tx); }
html body .post-body :is(h2, h3, h4):not(#_):not(#__) { color: var(--pdb-m) !important; }
html body .post-body a { color: var(--pdb-r) !important; text-decoration-color: rgba(255, 0, 0, .4) !important; }
html body .post-body > p:first-of-type:not(#_):not(#__) { font-size: 19px; color: var(--pdb-tx); }
.post-body > p:first-of-type::first-letter { float: none !important; font: inherit !important; color: inherit !important; padding: 0 !important; }
.post-body > p.pdb-first::first-letter { float: left !important; font-family: var(--pdb-serif) !important; font-size: 4.1em !important; line-height: .8 !important; font-weight: 700 !important; color: var(--pdb-r) !important; padding: 6px 10px 0 0 !important; }
.post-body blockquote { border-left-color: var(--pdb-r) !important; background: var(--pdb-t2) !important; color: var(--pdb-m) !important; }

/* short answer = pull quote */
html body .post-body > p.pdb-answer:not(#_):not(#__) { position: relative; margin: 0 0 30px; padding: 4px 0 4px 26px; border-left: 5px solid; border-image: linear-gradient(var(--pdb-r), var(--pdb-m)) 1; font-style: italic; font-size: 22px; line-height: 1.55; color: var(--pdb-m); }
.post-body > p.pdb-answer strong:first-child { display: block; font: 700 12px/1.4 ui-monospace, Consolas, monospace; font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--pdb-r); margin-bottom: 6px; }

/* key takeaways */
.pdb-takeaways { margin: 0 0 34px; padding: 22px 24px; border-radius: 18px; background: #fff; border: 2px solid var(--pdb-m); box-shadow: 8px 8px 0 var(--pdb-r); }
html body .pdb-takeaways h2:not(#_):not(#__) { margin: 0 0 12px !important; font-size: 19px !important; }
.pdb-takeaways ul { margin: 0 !important; padding: 0 !important; list-style: none; display: grid; gap: 10px; }
html body .pdb-takeaways li:not(#_):not(#__) { position: relative; margin: 0; padding-left: 32px; font-size: 16.5px; line-height: 1.6; }
.pdb-takeaways li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%; background: var(--pdb-m); color: #fff; display: grid; place-items: center; font: 700 11px/1 Archivo, sans-serif; }

/* tables */
.pdb-table { overflow-x: auto; margin: 6px 0 28px; border-radius: 16px; border: 1px solid var(--pdb-t); background: #fff; box-shadow: 0 20px 40px -30px rgba(71, 0, 0, .45); }
.pdb-table table { display: table !important; margin: 0 !important; min-width: 640px; }
html body .pdb-table th:not(#_):not(#__) { background: var(--pdb-m) !important; color: #fff !important; border-bottom: 0 !important; white-space: normal !important; padding: 12px 14px !important; font-size: 12px !important; letter-spacing: .06em; }
html body .pdb-table td:not(#_):not(#__) { font-family: Archivo, sans-serif; font-size: 15px; line-height: 1.5; border-bottom: 1px solid var(--pdb-t) !important; vertical-align: top; }
.pdb-table tr:nth-child(even) td { background: var(--pdb-t2) !important; }

/* one call to action in the middle of the article */
.pdb-cta-mid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin: 34px 0; padding: 20px 22px; border-radius: 18px; background: var(--pdb-m); color: #fff; }
.pdb-cta-mid b { display: block; font: 800 18px/1.3 Archivo, sans-serif; color: #fff; }
html body .pdb-cta-mid span:not(#_):not(#__) { font-family: Archivo, sans-serif; font-size: 14.5px; color: rgba(255, 255, 255, .85); }
html body .post-body .pdb-btn, .pdb-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--pdb-r); color: #fff !important; font: 700 14.5px Archivo, sans-serif; text-decoration: none !important; white-space: nowrap; transition: background .2s, transform .2s; }
.pdb-btn:hover { background: #d1000f; transform: translateY(-1px); }

/* FAQ accordion */
.pdb-faq { display: grid; gap: 10px; margin: 0 0 30px; }
.pdb-faq details { background: #fff; border: 1px solid var(--pdb-t); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.pdb-faq details[open] { border-color: rgba(71, 0, 0, .3); box-shadow: 0 14px 30px -24px rgba(71, 0, 0, .5); }
html body .pdb-faq summary:not(#_):not(#__) { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; font: 700 17px/1.4 Archivo, sans-serif; color: var(--pdb-m); }
.pdb-faq summary::-webkit-details-marker { display: none; }
.pdb-faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pdb-r); color: #fff; font-size: 18px; transition: transform .25s; }
.pdb-faq details[open] summary::after { transform: rotate(45deg); }
.pdb-faq .pdb-faq-a { padding: 0 18px 16px; }
html body .pdb-faq .pdb-faq-a p:not(#_):not(#__) { font-size: 16.5px; margin: 0 0 10px; }
html body .post-body ul.pdb-sources li:not(#_):not(#__), html body .post-body ol.pdb-sources li:not(#_):not(#__) { font-size: 14.5px; line-height: 1.55; }

/* tags, share, company card, related - tint borders, maroon text */
.post-tags .btag { background: #fff !important; border-color: var(--pdb-t) !important; color: var(--pdb-m) !important; }
.post-share a, .post-share button { background: #fff !important; border-color: var(--pdb-t) !important; color: var(--pdb-m) !important; } /* 2026-12-04: white bg - the global icon-tile rule (data-site=global) made them maroon on maroon */
.post-share a:hover, .post-share button:hover { background: var(--pdb-r) !important; border-color: var(--pdb-r) !important; color: #fff !important; }
.post-company-card { border-color: var(--pdb-t) !important; background: #fff !important; }
html body .related-wrap h2:not(#_):not(#__) { color: var(--pdb-m) !important; }
.related-wrap .blog-card { border-color: var(--pdb-t) !important; }
html body .related-wrap .blog-card-title:not(#_):not(#__) { color: var(--pdb-m) !important; }
.related-wrap .blog-card:hover { box-shadow: 0 16px 36px -18px rgba(71, 0, 0, .45) !important; }

/* ---------- rail */
.pdb-box { background: #fff; border: 1px solid var(--pdb-t); border-radius: 18px; padding: 16px; }
.pdb-ring { display: flex; align-items: center; gap: 14px; }
.pdb-ring svg { width: 58px; height: 58px; transform: rotate(-90deg); flex: none; }
.pdb-ring circle { fill: none; stroke-width: 6; }
.pdb-ring .bg { stroke: var(--pdb-t); }
.pdb-ring .fg { stroke: var(--pdb-r); stroke-linecap: round; stroke-dasharray: 157.08; stroke-dashoffset: 157.08; transition: stroke-dashoffset .15s; }
.pdb-ring b { display: block; font: 800 22px/1.1 Archivo, sans-serif; color: var(--pdb-m); }
.pdb-ring span { font-size: 12.5px; color: var(--pdb-mut); }
.pdb-h { margin: 0 0 8px; font: 700 11.5px Archivo, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--pdb-r); }
.pdb-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: pdbt; max-height: 46vh; overflow: auto; scrollbar-width: thin; }
.pdb-toc li { counter-increment: pdbt; margin: 0; }
html body .pdb-toc a:not(#_):not(#__) { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 8px 10px; border-radius: 10px; font: 500 13.5px/1.4 Archivo, sans-serif; color: var(--pdb-mut); text-decoration: none; transition: background .2s, color .2s; }
.pdb-toc a::before { content: counter(pdbt, decimal-leading-zero); font: 700 11px/1.6 ui-monospace, Consolas, monospace; color: rgba(71, 0, 0, .35); }
.pdb-toc a:hover, .pdb-toc a.on { background: var(--pdb-t); color: var(--pdb-m) !important; }
.pdb-toc a.on { font-weight: 700 !important; }
.pdb-toc a.on::before { color: var(--pdb-r); }
.pdb-quote { background: var(--pdb-m); border-color: var(--pdb-m); color: #fff; }
.pdb-quote b { display: block; font: 800 18px/1.25 Archivo, sans-serif; color: #fff; margin-bottom: 6px; }
.pdb-quote p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.pdb-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pdb-share a, .pdb-share button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--pdb-t); background: #fff; color: var(--pdb-m); cursor: pointer; text-decoration: none; font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
.pdb-share a:hover, .pdb-share button:hover { background: var(--pdb-r); border-color: var(--pdb-r); color: #fff; }

@media (max-width: 600px) {
  html body .post-body :is(p, li, blockquote):not(#_):not(#__) { font-size: 17.5px; }
  html body .post-body > p.pdb-answer:not(#_):not(#__) { font-size: 19px; }
  .post-hero--banner .post-banner { margin-bottom: 26px !important; }
}
@media (prefers-reduced-motion: reduce) { .pdb-ring .fg, .pdb-faq summary::after, .pdb-btn { transition: none !important; } }
.post-body h2, .post-body h3, .pdb-faq details { scroll-margin-top: 110px !important; }

/* 2026-12-04 owner: the cover runs the FULL screen width (still the whole image, never cropped), and the title is two-colour like the site's
   headings - first phrase red, rest maroon - with no background highlight */
.post-hero--banner .post-banner { background: transparent !important; }
.post-hero--banner .post-banner-img { max-width: none !important; width: 100% !important; height: auto !important; }
html body .post-hero .post-title .pdb-hl:not(#_):not(#__) { color: var(--pdb-r) !important; -webkit-text-fill-color: currentColor !important; background: none !important; box-shadow: none !important; text-decoration: none !important; }

/* 2026-12-04 owner: banner image as wide as the navbar (max 1500px, same as the header container) on a full-screen-width band.
   The whole cover stays visible (never cropped); on screens wider than 1500px the sides show a blurred, darkened copy of it. */
.post-hero--banner .post-banner { position: relative; overflow: hidden; background: var(--pdb-m) !important; display: flex; justify-content: center; }
.post-hero--banner .post-banner::before { content: ""; position: absolute; inset: -40px; background: var(--pdb-cover, none) center / cover no-repeat; filter: blur(34px) saturate(1.15) brightness(.55); transform: scale(1.08); }
.post-hero--banner .post-banner-img { position: relative; z-index: 1; width: 100% !important; max-width: 1500px !important; /* = navbar container max-width (header-nav.php .an2-wrap / in .container) */ height: auto !important; max-height: none !important; box-shadow: 0 0 60px rgba(0, 0, 0, .35) !important; }

/* 2026-12-04 owner: "the content after the banner should be in the centre" - on wide screens the article text column sits
   exactly in the middle of the page (under the centred title), the side panel stays on the right inside the navbar width (1500px). */
@media (min-width: 1100px) {
  .pdb-layout { grid-template-columns: minmax(240px, 1fr) minmax(0, 720px) minmax(240px, 1fr); gap: 28px; max-width: 1500px; }
  .pdb-layout > .post-body-wrap { grid-column: 2; grid-row: 1; }
  .pdb-layout > .pdb-rail { grid-column: 3; grid-row: 1; width: 100%; max-width: 300px; justify-self: start; }
}
@media (min-width: 1400px) { .pdb-layout { gap: 48px; } }

/* 2026-12-04 owner: Related Articles in ONE line - the global grid (auto-fit, cards up to 350px) only fit 2 per row inside
   1120px, so the 3rd card wrapped. Now all related cards (1-3) sit in one centred row; phones stack them. */
@media (min-width: 700px) {
  html body .related-wrap .related-grid { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 340px); justify-content: center; }
}
