/* Article header + article layout and typography (only loaded on posts). */
.si-progress { position: fixed; z-index: 200; left: 0; right: 0; top: 0; height: 4px; pointer-events: none; }
.admin-bar .si-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .si-progress { top: 46px; } }
.si-progress span { display: block; height: 100%; background: var(--si-accent); transform: scaleX(0); transform-origin: left;  }

.si-phead { padding-top: clamp(16px, 3vw, 32px); }
.si-phead__in { max-width: calc(860px + var(--si-gutter) * 2); }
.si-phead__cats { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(18px, 3vw, 32px) 0 14px; }
.si-phead__cats a { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--si-primary); background: rgba(56, 189, 248, .18); border: 1px solid rgba(56, 189, 248, .4); transition: background-color .2s; }
.si-phead__cats a:hover { background: rgba(56, 189, 248, .32); }
.si-phead__title { margin: 0; font-size: clamp(2.125rem, 1.3rem + 3.4vw, 3.75rem); font-weight: 800; line-height: 1.04; letter-spacing: -.04em; color: var(--si-ink); text-wrap: balance; }
.si-phead__dek { margin: 18px 0 0; max-width: 60ch; font-size: clamp(1.125rem, 1.05rem + .4vw, 1.375rem); line-height: 1.55; color: var(--si-ink-2); }
.si-phead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--si-hairline); }
.si-phead__author { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--si-ink); }
.si-phead__avatar { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(56, 189, 248, .6); }
.si-phead__author span { display: grid; line-height: 1.25; }
.si-phead__author strong { font-size: 1rem; }
.si-phead__author small { font-size: .8125rem; color: var(--si-mute); }
.si-phead__author:hover strong { color: var(--si-primary); text-decoration: underline; }
.si-phead__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; font-size: .875rem; color: var(--si-ink-2); }
.si-phead__facts li { display: inline-flex; align-items: center; gap: 6px; }
.si-phead__facts .si-i { width: 16px; height: 16px; color: var(--si-primary); }
.si-phead__facts .is-updated { color: var(--si-ok); font-weight: 600; }
.si-phead__facts .is-updated .si-i { color: currentColor; }
.si-phead__media { margin: clamp(24px, 4vw, 44px) auto 0; }
.si-phead__media img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: cover; aspect-ratio: 16 / 9; border-radius: 24px; box-shadow: 0 40px 70px -40px rgba(11, 31, 51, .5); }
.si-phead__media--banner img { aspect-ratio: 21 / 7; max-height: 340px; }
@media (max-width: 640px) { .si-phead__media--banner img { aspect-ratio: 16 / 7; } }
.si-phead__media figcaption { margin-top: 10px; font-size: .8125rem; color: var(--si-mute); text-align: center; }

.si-mtoc { margin-top: 20px; }
.si-mtoc details { border: 1px solid var(--si-hairline); border-radius: 16px; background: var(--si-paper); }
.si-mtoc summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; font-weight: 700; cursor: pointer; list-style: none; }
.si-mtoc summary::-webkit-details-marker { display: none; }
.si-mtoc summary .si-i { width: 18px; height: 18px; color: var(--si-primary); }
.si-mtoc summary span { margin-left: auto; display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 999px; font-size: .75rem; color: #fff; background: var(--si-primary); }
.si-mtoc ol { margin: 0; padding: 0 16px 16px 2.2em; display: grid; gap: 8px; }
.si-mtoc a { color: var(--si-ink-2); text-decoration: none; }
@media (min-width: 1100px) { .si-mtoc { display: none; } }

/* Three-column article: share rail · body · sidebar. */
.si-post { display: grid; gap: 32px; padding-block: clamp(28px, 5vw, 56px) var(--si-section); }
.si-post > * { min-width: 0; }
.si-post__rail { display: none; }
@media (min-width: 1100px) {
	.si-post { grid-template-columns: 56px minmax(0, 1fr) 320px; gap: clamp(32px, 4vw, 56px); align-items: start; }
	.si-post--norail { grid-template-columns: minmax(0, 1fr) 320px; }
	.si-post__rail { display: block; position: sticky; top: calc(var(--si-topbar-h) + var(--si-header-h) + 28px); }
	.si-post__aside { position: sticky; top: calc(var(--si-topbar-h) + var(--si-header-h) + 28px); }
}
.si-post__body { max-width: 740px; }

/* Article typography. */
.si-post .si-prose { font-size: clamp(1.0625rem, 1rem + .2vw, 1.1875rem); line-height: 1.78; color: var(--si-ink); }
.si-post .si-prose > * { max-width: none; }
.si-post .si-prose > p:first-child::first-letter { float: left; margin: .06em .12em 0 0; font-size: 3.6em; font-weight: 800; line-height: .82; color: var(--si-primary); }
.si-post .si-prose :is(h2, h3) { scroll-margin-top: calc(var(--si-topbar-h) + var(--si-header-h) + 24px); letter-spacing: -.025em; line-height: 1.2; color: var(--si-ink); }
.si-post .si-prose h2 { position: relative; margin: 2.2em 0 .7em; padding-top: .7em; font-size: clamp(1.625rem, 1.25rem + 1.2vw, 2.125rem); font-weight: 800; }
.si-post .si-prose h2::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 4px; border-radius: 4px; background: var(--si-accent); }
.si-post .si-prose h3 { margin: 1.8em 0 .5em; font-size: 1.375rem; font-weight: 750; }
.si-post .si-prose a:not(.wp-block-button__link, .wp-element-button, .si-btn) { color: var(--si-primary); font-weight: 600; text-decoration-color: rgba(56, 189, 248, .8); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.si-post .si-prose a:not(.wp-block-button__link, .wp-element-button, .si-btn):hover { text-decoration-color: var(--si-primary); }
.si-post .si-prose :is(ul, ol) { padding-left: 1.3em; }
.si-post .si-prose li { margin-block: .35em; }
.si-post .si-prose ul li::marker { color: #1D4ED8; }
.si-post .si-prose ol li::marker { color: var(--si-primary); font-weight: 800; }
.si-post .si-prose blockquote { position: relative; margin: 2em 0; padding: 26px 28px 26px 32px; border: 0; border-radius: 20px; background: var(--si-paper); font-size: 1.1875rem; font-weight: 600; line-height: 1.6; }
.si-post .si-prose blockquote::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 4px; background: var(--si-accent); }
.si-post .si-prose blockquote cite { display: block; margin-top: 10px; font-size: .875rem; font-weight: 600; font-style: normal; color: var(--si-mute); }
.si-post .si-prose figure { margin: 2em 0; }
.si-post .si-prose figure img { border-radius: 18px; }
.si-post .si-prose figcaption { margin-top: 8px; font-size: .8125rem; color: var(--si-mute); text-align: center; }
.si-post .si-prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.si-post .si-prose :is(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--si-hairline); text-align: left; }
.si-post .si-prose th { background: var(--si-paper); font-weight: 700; }
.si-post .si-prose .wp-block-table { overflow-x: auto; }

/* In-article CTA (inc/blog.php). */
.si-incta { display: grid; gap: 16px; margin: 2.4em 0; padding: clamp(20px, 3vw, 28px); border-radius: 22px; color: #fff; background: var(--si-primary); box-shadow: 0 30px 60px -36px rgba(11, 31, 51, .7); }
@media (min-width: 640px) { .si-incta { grid-template-columns: auto 1fr; align-items: start; } .si-incta__ctas { grid-column: 2; } }
.si-incta__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #0B1F33; background: var(--si-primary); }
.si-incta__icon .si-i { width: 26px; height: 26px; }
.si-post .si-prose .si-incta p { margin: 0; font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.si-post .si-prose .si-incta .si-incta__title { margin-bottom: 4px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.si-incta__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.si-post .si-prose .si-incta a { text-decoration: none; font-weight: 600; }
.si-incta .si-btn:not(.si-btn--wa) { --bg: #fff; --fg: var(--si-primary); }
.si-post .si-prose .si-incta .si-btn:not(.si-btn--wa) { color: var(--si-primary); }

/* Legal pages: no drop cap, quieter headings. */
.si-post .si-legal-body .si-prose > p:first-child::first-letter { float: none; font-size: inherit; margin: 0; color: inherit; font-weight: inherit; }
.si-post .si-legal-body .si-prose h2 { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); }
