/* Public blog pages — uses the site's color tokens from styles.css */
.blog-body { margin: 0; background: var(--bg, #fbfcff); color: var(--ink, #1b2140); font-family: "Tajawal", system-ui, sans-serif; }

.blog-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 48px); background: var(--navy, #232a7c); color: #fff;
}
.blog-top__brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 800; }
.blog-top__brand img { width: 40px; height: 34px; background: #fff; border-radius: 10px; padding: 3px; }
.blog-top__brand b { font-size: .98rem; }
.blog-top__nav { display: flex; gap: 18px; }
.blog-top__nav a { color: #fff; text-decoration: none; opacity: .85; font-weight: 700; }
.blog-top__nav a.is-active, .blog-top__nav a:hover { opacity: 1; }

.blog-main { container-type: inline-size; max-width: 1080px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 48px) 64px; }

.blog-hero { margin-bottom: 28px; }
.blog-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .2em; color: var(--navy, #232a7c); }
.blog-hero p { margin: 0; color: var(--muted, #6b7091); font-size: 1.05rem; }
.blog-empty { color: var(--muted, #6b7091); padding: 40px 0; text-align: center; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.blog-card { background: #fff; border: 1px solid var(--line, #e2e7f3); border-radius: 18px; overflow: hidden;
  transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(22,26,82,.06), 0 12px 28px -14px rgba(22,26,82,.3); }
.blog-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.blog-card__cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--green-100, #e7f6ee); }
.blog-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__cover--empty { background: linear-gradient(135deg, #eef1fa, #e7f6ee); }
.blog-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.blog-card__date { font-size: .82rem; color: var(--muted, #6b7091); font-variant-numeric: tabular-nums; }
.blog-card__title { margin: 0; font-size: 1.2rem; color: var(--navy, #232a7c); line-height: 1.35; }
.blog-card__excerpt { margin: 0; color: var(--muted, #6b7091); font-size: .95rem; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card__more { margin-top: auto; color: var(--green, #009a4c); font-weight: 700; font-size: .9rem; }

/* article */
.post { max-width: 760px; margin: 0 auto; }
.post__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.post__crumbs { color: var(--muted, #6b7091); font-size: .9rem; margin: 0 0 14px; }
.post__crumbs a { color: var(--green, #009a4c); text-decoration: none; }
.post__lang { display: inline-flex; gap: 2px; margin: 0 0 14px; background: #eef1fa; border-radius: 999px; padding: 3px; }
.post__lang a { font-size: .85rem; font-weight: 700; color: #51587d; text-decoration: none; padding: 4px 14px; border-radius: 999px; line-height: 1.6; }
.post__lang a.is-active { background: var(--navy, #232a7c); color: #fff; }
.post__title { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.25; color: var(--navy, #232a7c); margin: 0 0 .3em; text-wrap: balance; }
.post__meta { color: var(--muted, #6b7091); font-size: .92rem; margin: 0 0 24px; display: flex; gap: 8px; }
.post__cover { margin: 0 0 28px; }
.post__cover img { width: 100%; border-radius: 18px; }
.post__content { font-size: 1.08rem; line-height: 1.85; color: #2a2f52; }
.post__content h2 { font-size: 1.5rem; color: var(--navy, #232a7c); margin: 1.6em 0 .5em; }
.post__content h3 { font-size: 1.25rem; color: var(--navy, #232a7c); margin: 1.4em 0 .4em; }
.post__content h4 { font-size: 1.1rem; color: var(--navy, #232a7c); margin: 1.2em 0 .4em; }
.post__content p { margin: 0 0 1.1em; }
.post__content ul, .post__content ol { margin: 0 0 1.1em; padding-inline-start: 1.6em; }
.post__content li { margin-bottom: .4em; }
.post__content a { color: var(--green, #009a4c); }
.post__content blockquote { margin: 1.4em 0; padding: 12px 20px; border-inline-start: 4px solid var(--green, #009a4c);
  background: var(--green-100, #e7f6ee); border-radius: 10px; color: #223; }
.post__content blockquote cite { display: block; margin-top: 8px; font-size: .9rem; color: var(--muted, #6b7091); font-style: normal; }
.post__img, .post__content figure { margin: 1.6em 0; }
.post__content figure img { width: 100%; border-radius: 14px; }
.post__content figcaption { text-align: center; color: var(--muted, #6b7091); font-size: .9rem; margin-top: 8px; }
.post__content hr { border: none; border-top: 1px solid var(--line, #e2e7f3); margin: 2em 0; }
.post__back { margin-top: 40px; }
.post__back a { color: var(--green, #009a4c); text-decoration: none; font-weight: 700; }

.blog-foot { text-align: center; padding: 28px 16px; color: var(--muted, #6b7091); border-top: 1px solid var(--line, #e2e7f3); }

@media (prefers-color-scheme: dark) {
  /* the public site is light-themed; keep the blog light for consistency with the rest of the site */
}

/* =====================================================================================================
   PAGE BUILDER BLOCKS
   Everything the admin page builder can produce. The sanitiser keeps tags + class names only, so every
   option of every block is a class defined here. The builder's canvas loads this same file (WYSIWYG) —
   when you change a rule here, the editor follows automatically. Keep selectors under .post__content.
   ===================================================================================================== */
.post__content { overflow-wrap: break-word; }
.post__content::after { content: ""; display: block; clear: both; }
.post__content > :first-child { margin-top: 0; }
.post__content h2 { clear: both; }
.post__content li > p { margin: 0; }
.post__content img { max-width: 100%; height: auto; }

/* ---- text options ---- */
.post__content .ta-center { text-align: center; }
.post__content .ta-end { text-align: end; }
.post__content .ta-justify { text-align: justify; }
.post__content p.is-lead { font-size: 1.28rem; line-height: 1.75; color: #3b4170; }
.post__content p.is-small { font-size: .92rem; color: var(--muted, #6b7091); }
.post__content .tc-green { color: var(--green, #009a4c); }
.post__content .tc-navy { color: var(--navy, #232a7c); }
.post__content .tc-red { color: #d64545; }
.post__content .tc-orange { color: #c9730f; }
.post__content .tc-muted { color: var(--muted, #6b7091); }
.post__content mark { color: inherit; padding: .05em .28em; border-radius: 5px; background: #fff1a8; }
.post__content mark.hl-green { background: #c9f0d9; }
.post__content mark.hl-blue { background: #d3e3ff; }
.post__content mark.hl-pink { background: #ffd9e4; }

/* ---- lists ---- */
.post__content ul.list-check, .post__content ul.list-arrow, .post__content ul.list-plain, .post__content ol.list-steps { list-style: none; padding-inline-start: 0; }
.post__content ul.list-check > li, .post__content ul.list-arrow > li { position: relative; padding-inline-start: 2em; }
.post__content ul.list-check > li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .32em; width: 1.3em; height: 1.3em; border-radius: 50%;
  background: var(--green, #009a4c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.post__content ul.list-arrow > li::before {
  content: ""; position: absolute; inset-inline-start: .35em; top: .68em; width: .5em; height: .5em;
  border-top: 2.5px solid var(--green, #009a4c); border-inline-end: 2.5px solid var(--green, #009a4c); transform: rotate(45deg);
}
/* :dir() follows the article own direction even though the site shell around it is always RTL */
.post__content ul.list-arrow > li:dir(rtl)::before { transform: rotate(-45deg); }
.post__content ol.list-steps { counter-reset: step; }
.post__content ol.list-steps > li { counter-increment: step; position: relative; padding-inline-start: 3.3em; min-height: 2.4em; margin-bottom: 1.1em; padding-top: .2em; }
.post__content ol.list-steps > li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 2.3em; height: 2.3em; border-radius: 50%;
  display: grid; place-items: center; background: var(--green, #009a4c); color: #fff; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 5px var(--green-100, #e7f6ee);
}
.post__content ol.list-steps > li:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: calc(1.15em - 1px); top: 2.7em; bottom: -1em; width: 2px; background: var(--green-100, #e7f6ee);
}

/* ---- quotes ---- */
.post__content blockquote > :first-child { margin-top: 0; }
.post__content blockquote > :last-child { margin-bottom: 0; }
.post__content blockquote.quote-pull {
  background: none; border: 0; border-radius: 0; text-align: center; margin: 1.8em 0; padding: 2.4em 1em .4em; position: relative;
  font-size: 1.5rem; line-height: 1.6; font-weight: 700; color: var(--navy, #232a7c);
}
.post__content blockquote.quote-pull::before {
  content: "\201D"; position: absolute; top: 0; inset-inline: 0; text-align: center; font-size: 4.6rem; line-height: 1;
  color: var(--green, #009a4c); font-family: Georgia, "Times New Roman", serif;
}

/* ---- callouts ---- */
.post__content .callout { border-radius: 14px; padding: 14px 18px; padding-inline-start: 54px; margin: 1.4em 0; border-inline-start: 4px solid; line-height: 1.8; position: relative; }
.post__content .callout::before { content: ""; position: absolute; inset-inline-start: 16px; top: 17px; width: 24px; height: 24px; background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.post__content .callout > :first-child { margin-top: 0; }
.post__content .callout > :last-child { margin-bottom: 0; }
.post__content .callout h2, .post__content .callout h3, .post__content .callout h4 { color: inherit; margin-bottom: .2em; }
.post__content .callout--tip { background: #e7f6ee; border-color: #009a4c; color: #14512f;
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4'/%3E%3Cpath d='M12 3a6 6 0 0 0-4 10.5c.7.7 1 1.2 1 2V16h6v-.5c0-.8.3-1.3 1-2A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.post__content .callout--info { background: #e8f0fe; border-color: #2f6fed; color: #15336b;
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E"); }
.post__content .callout--warning { background: #fdeede; border-color: #e08a1e; color: #6b3d05;
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 4.3 2.7 18a1.5 1.5 0 0 0 1.3 2.2h16a1.5 1.5 0 0 0 1.3-2.2L13.7 4.3a1.5 1.5 0 0 0-2.6 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.post__content .callout--danger { background: #fde8e8; border-color: #d64545; color: #7a1f1f;
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3h8l5 5v8l-5 5H8l-5-5V8z'/%3E%3Cpath d='M12 8v5M12 16.5h.01'/%3E%3C/svg%3E"); }

/* ---- buttons ---- */
.post__content .post-btns { margin: 1.4em 0; }
.post__content .post-btn { --btn: var(--green, #009a4c); display: inline-block; background: var(--btn); color: #fff; padding: .7em 1.6em;
  border-radius: 10px; text-decoration: none; font-weight: 700; line-height: 1.5; transition: filter .15s, transform .15s; }
.post__content .post-btn:hover { filter: brightness(.94); transform: translateY(-1px); }
.post__content .post-btn.btn-navy { --btn: var(--navy, #232a7c); }
.post__content .post-btn.btn-orange { --btn: #e08a1e; }
.post__content .post-btn.btn-white { --btn: #fff; color: var(--navy, #232a7c); }
.post__content .post-btn.btn-outline { background: transparent; color: var(--btn); box-shadow: inset 0 0 0 2px var(--btn); }
.post__content .post-btn.btn-soft { background: color-mix(in srgb, var(--btn) 14%, #fff); color: var(--btn); }
.post__content .post-btn.btn-white.btn-soft { background: rgba(255,255,255,.18); color: #fff; }
.post__content .post-btn.btn-sm { font-size: .88rem; padding: .5em 1.15em; }
.post__content .post-btn.btn-lg { font-size: 1.14rem; padding: .85em 2.1em; border-radius: 12px; }
.post__content .post-btn.btn-block { display: block; text-align: center; }
/* buttons saved by the previous editor */
.post__content .post-btn.cta-center { display: block; width: fit-content; margin-inline: auto; }
.post__content .post-btn.cta-end { display: block; width: fit-content; margin-inline-start: auto; }

/* ---- images ---- */
.post__content .post-figure { margin: 1.6em 0; }
.post__content .post-figure img { display: block; width: 100%; border-radius: 14px; }
.post__content .post-figure.fig-w25 { width: 25%; }
.post__content .post-figure.fig-w33 { width: 33.333%; }
.post__content .post-figure.fig-w50 { width: 50%; }
.post__content .post-figure.fig-w75 { width: 75%; }
.post__content .post-figure.fig-center { margin-inline: auto; }
.post__content .post-figure.fig-start { float: inline-start; margin: .35em 0 1em; margin-inline-end: 1.6em; }
.post__content .post-figure.fig-end { float: inline-end; margin: .35em 0 1em; margin-inline-start: 1.6em; }
.post__content .post-figure.fig-start:not(.fig-w25, .fig-w33, .fig-w50, .fig-w75),
.post__content .post-figure.fig-end:not(.fig-w25, .fig-w33, .fig-w50, .fig-w75) { width: 45%; }
.post__content .post-figure.fig-square img { border-radius: 0; }
.post__content .post-figure.fig-circle img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.post__content .post-figure.fig-shadow img { box-shadow: 0 2px 6px -2px rgba(22,26,82,.12), 0 14px 30px -14px rgba(22,26,82,.3); }
.post__content .post-figure.fig-frame img { border: 7px solid #fff; outline: 1px solid var(--line, #e2e7f3); }

.post__content .post-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 1.6em 0; }
.post__content .post-gallery.gal-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post__content .post-gallery.gal-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post__content .post-gallery > figure { margin: 0; width: auto; float: none; }
.post__content .post-gallery > figure img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.post__content .post-gallery.gal-wide > figure img { aspect-ratio: 4 / 3; }
.post__content .post-gallery.gal-natural > figure img { aspect-ratio: auto; }
.post__content .post-gallery figcaption { font-size: .82rem; margin-top: 5px; }

.post__content .post-video { margin: 1.6em 0; border-radius: 16px; overflow: hidden; background: #11143d; }
.post__content .post-video a { display: block; position: relative; color: #fff; text-decoration: none; }
.post__content .post-video img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.post__content .post-video a::after {
  content: ""; position: absolute; top: calc((100% - 44px) / 2); left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: rgba(0,154,76,.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 56% no-repeat;
  box-shadow: 0 4px 14px -2px rgba(0,0,0,.35); transition: transform .15s;
}
.post__content .post-video a:hover::after { transform: scale(1.07); }
.post__content .post-video__title { display: block; min-height: 44px; padding: 10px 16px; font-weight: 700; font-size: .98rem; box-sizing: border-box; }

/* ---- layout: sections, columns, cards ---- */
.post__content .post-section { margin: 2em 0; padding: 32px; border-radius: 20px; box-sizing: border-box; }
.post__content .post-section.pad-sm { padding: 18px 20px; }
.post__content .post-section.pad-lg { padding: 60px 40px; }
.post__content .post-section.sec-flat { border-radius: 0; }
.post__content .post-section > :first-child, .post__content .post-col > :first-child, .post__content .post-card > :first-child { margin-top: 0; }
.post__content .post-section > :last-child, .post__content .post-col > :last-child, .post__content .post-card > :last-child { margin-bottom: 0; }
.post__content .bg-soft { background: #f1f4fb; }
.post__content .bg-mint { background: var(--green-100, #e7f6ee); }
.post__content .bg-cream { background: #fdf6e7; }
.post__content .bg-navy { background: var(--navy, #232a7c); }
.post__content .bg-green { background: var(--green, #009a4c); }
.post__content .bg-grad { background: linear-gradient(135deg, #232a7c 0%, #1c5f8c 55%, #009a4c 100%); }
.post__content .post-section:is(.bg-navy, .bg-green, .bg-grad) > h2 { font-size: clamp(1.55rem, 3.2vw, 2.05rem); line-height: 1.35; }
/* dark backgrounds flip the text to white */
.post__content :is(.bg-navy, .bg-green, .bg-grad, .card-navy) { color: rgba(255,255,255,.92); }
.post__content :is(.bg-navy, .bg-green, .bg-grad, .card-navy) > :is(h2, h3, h4, p, ul, ol),
.post__content :is(.bg-navy, .bg-green, .bg-grad) > .post-cols > .post-col > :is(h2, h3, h4, p, ul, ol) { color: inherit; }
.post__content :is(.bg-navy, .bg-green, .bg-grad, .card-navy) > :is(h2, h3, h4),
.post__content :is(.bg-navy, .bg-green, .bg-grad) > .post-cols > .post-col > :is(h2, h3, h4) { color: #fff; }
.post__content :is(.bg-navy, .bg-green, .bg-grad, .card-navy) > p a { color: #c8f5da; }
.post__content :is(.bg-navy, .bg-green, .bg-grad) > .post-stat .post-stat__num,
.post__content :is(.bg-navy, .bg-green, .bg-grad) > .post-cols > .post-col > .post-stat .post-stat__num { color: #fff; }
.post__content :is(.bg-navy, .bg-green, .bg-grad) > .post-stat .post-stat__label,
.post__content :is(.bg-navy, .bg-green, .bg-grad) > .post-cols > .post-col > .post-stat .post-stat__label { color: rgba(255,255,255,.8); }

.post__content .post-cols, .post__content .post-row { display: flex; flex-wrap: wrap; gap: 26px; margin: 1.6em 0; }
.post__content .post-cols.gap-sm { gap: 12px; }
.post__content .post-cols.gap-lg { gap: 44px; }
.post__content .post-cols.va-center { align-items: center; }
.post__content .post-cols.va-bottom { align-items: flex-end; }
.post__content .post-col { flex: 1 1 180px; min-width: 0; box-sizing: border-box; }
.post__content .cols-4 > .post-col { flex-basis: 140px; }
.post__content .cols-1-2 > .post-col:last-child, .post__content .cols-2-1 > .post-col:first-child { flex-grow: 2.4; flex-basis: 280px; }
/* a card that is alone in its column stretches so a row of cards lines up */
.post__content .post-cols:not(.va-center, .va-bottom) > .post-col > .post-card:only-child { height: 100%; margin: 0; }

.post__content .post-card { background: #fff; color: #2a2f52; border-radius: 16px; padding: 22px 24px; margin: 1.4em 0; box-sizing: border-box; }
.post__content .post-card.card-shadow { border: 1px solid #eef1fa; box-shadow: 0 1px 2px rgba(22,26,82,.06), 0 10px 24px -12px rgba(22,26,82,.22); }
.post__content .post-card.card-border { border: 1.5px solid var(--line, #e2e7f3); }
.post__content .post-card.card-tint { background: var(--green-100, #e7f6ee); }
.post__content .post-card.card-navy { background: var(--navy, #232a7c); }
.post__content .post-card.card-accent { border-top: 4px solid var(--green, #009a4c); }
.post__content .post-card.card-accent-navy { border-top: 4px solid var(--navy, #232a7c); }

/* wider than the text column (only for blocks placed directly in the article) */
@supports (width: 1cqw) {
  .post__content > .is-wide { width: min(100cqw, 1000px); margin-inline-start: calc((100% - min(100cqw, 1000px)) / 2); }
}

/* ---- small design blocks ---- */
.post__content .post-stat { margin: 1.2em 0; }
.post__content .post-stat__num { display: block; font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; color: var(--green, #009a4c); }
.post__content .post-stat__label { display: block; margin-top: 4px; color: var(--muted, #6b7091); font-size: .98rem; line-height: 1.6; }
.post__content .post-stat.stat-navy .post-stat__num { color: var(--navy, #232a7c); }
.post__content .post-stat.stat-orange .post-stat__num { color: #e08a1e; }

.post__content .post-faq { border: 1px solid var(--line, #e2e7f3); border-radius: 14px; margin: .7em 0; background: #fff; color: #2a2f52; overflow: hidden; }
.post__content .post-faq > summary, .post__content .post-faq > .post-faq__q {
  display: block; position: relative; cursor: pointer; list-style: none; padding: 15px 20px; padding-inline-end: 52px;
  font-weight: 800; color: var(--navy, #232a7c); line-height: 1.6;
}
.post__content .post-faq > summary::-webkit-details-marker { display: none; }
.post__content .post-faq > summary::after, .post__content .post-faq > .post-faq__q::after {
  content: ""; position: absolute; inset-inline-end: 20px; top: calc(50% - 8px); width: 9px; height: 9px;
  border-right: 2.5px solid var(--green, #009a4c); border-bottom: 2.5px solid var(--green, #009a4c); transform: rotate(45deg); transition: transform .2s;
}

.post__content .post-faq > .post-faq__q::after,
.post__content .post-faq[open] > summary::after { transform: translateY(5px) rotate(-135deg); }
.post__content .post-faq[open] > summary, .post__content .post-faq > .post-faq__q { border-bottom: 1px solid var(--line, #e2e7f3); }
.post__content .post-faq__body { padding: 14px 20px; }
.post__content .post-faq__body > :first-child { margin-top: 0; }
.post__content .post-faq__body > :last-child { margin-bottom: 0; }

.post__content .post-spacer { height: 32px; }
.post__content .post-spacer.sp-sm { height: 16px; }
.post__content .post-spacer.sp-lg { height: 56px; }
.post__content .post-spacer.sp-xl { height: 88px; }

.post__content hr.hr-thick { border-top: 3px solid var(--navy, #232a7c); }
.post__content hr.hr-short { width: 84px; margin-inline: auto; border-top: 4px solid var(--green, #009a4c); border-radius: 4px; }
.post__content hr.hr-dots { border: 0; height: 8px; width: 96px; margin-inline: auto;
  background: radial-gradient(circle, var(--green, #009a4c) 3px, transparent 3.6px) center / 32px 8px repeat-x; }

.post__content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .98rem; }
.post__content th { background: var(--navy, #232a7c); color: #fff; text-align: start; font-weight: 700; padding: 11px 14px; }
.post__content td { padding: 11px 14px; border-bottom: 1px solid var(--line, #e2e7f3); vertical-align: top; }
.post__content th > p, .post__content td > p { margin: 0; }
.post__content table.tbl-striped tr:nth-child(even) > td { background: #f6f8fd; }
.post__content table.tbl-compact :is(th, td) { padding: 6px 10px; font-size: .92rem; }

/* These follow the container, not the viewport: .blog-main and the builder's .pb-page are both
   `container-type: inline-size`, so the phone/tablet preview in the admin shows the real mobile layout. */
@container (max-width: 600px) {
  .post__content .post-figure.fig-start, .post__content .post-figure.fig-end { float: none; width: auto; margin: 1.6em 0; }
  .post__content .post-figure:is(.fig-w25, .fig-w33) { width: 60%; }
  .post__content .post-gallery.gal-3, .post__content .post-gallery.gal-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post__content .post-section { padding: 22px 18px; }
  .post__content .post-section.pad-lg { padding: 36px 20px; }
  .post__content blockquote.quote-pull { font-size: 1.25rem; }
  .post__content :is(th, td) { padding: 8px 9px; }
}

/* phone: every column layout becomes one column — three cards wrapping as 2 + 1 looks accidental */
@container (max-width: 520px) {
  .post__content .post-cols > .post-col { flex: 1 1 100%; }
  .post__content .post-cols { gap: 16px; }
  .post__content .post-cols.gap-lg { gap: 20px; }
}
