/* BF Resource Article. Every value is copied from sections/BF Resource Article.dc.html (its <style> block and
   inline styles). Resource cards (.rc-card) come from resource-center.css. */

.ra-hero { position: relative; overflow: hidden; padding: 160px 24px 64px; }
.ra-wrap { position: relative; max-width: 1280px; margin: 0 auto; }
.ra-crumb { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: #A9C2D2; margin-bottom: 36px; flex-wrap: wrap; }
.ra-crumb a { color: #A9C2D2; text-decoration: none; }
.ra-crumb a:hover { color: #8DC63F; }
.ra-crumb i { font-style: normal; color: #7E99AB; font-size: 12px; }
.ra-crumb b { color: #FFFFFF; font-weight: 600; }
.ra-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 64px; align-items: stretch; }
.ra-title { font-size: 56px; line-height: 1.02; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; color: #FFFFFF; margin: 0; text-wrap: balance; text-shadow: 0 6px 40px rgba(1,21,33,0.8); }
.ra-dek { font-size: 19px; line-height: 1.6; color: #C4D5E0; margin: 24px 0 0; max-width: 680px; text-wrap: pretty; }
.ra-meta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14); }
.ra-by { display: flex; align-items: center; gap: 14px; }
.ra-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; border: 1.5px solid rgba(141,198,63,0.5); }
.ra-mark { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; display: block; }
.ra-by-n { font-size: 15px; font-weight: 700; color: #FFFFFF; line-height: 1.2; }
.ra-by-t { font-size: 13px; color: #A9C2D2; margin-top: 3px; }
.ra-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.ra-date { font-size: 13.5px; color: #A9C2D2; font-variant-numeric: tabular-nums; }
.ra-art { position: relative; align-self: stretch; min-height: 100%; border-radius: 6px; overflow: hidden; background: #04202F; }
.ra-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }

/* Case study and advisory details ("dossier") */
.ra-k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #8DC63F; }
.ra-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ra-pill { font-size: 12.5px; font-weight: 600; color: #C4D5E0; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 4px 10px; }
.ra-dossier { margin: 0 0 56px; border-top: 2px solid transparent; border-image: linear-gradient(90deg, #0096E1, #8DC63F) 1; }
.ra-dos-id { display: flex; align-items: center; gap: 22px; padding: 22px 0 18px; }
.ra-dos-id-adv { padding-top: 20px; }
.ra-dos-tile { width: 132px; height: 72px; flex: none; display: flex; align-items: center; justify-content: flex-start; box-sizing: border-box; }
.ra-dos-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.ra-dos-tile img.is-white { filter: brightness(0) invert(1); } /* "Show logo in white" on the case study */
.ra-dos-client { font-size: 20px; font-weight: 800; color: #FFFFFF; line-height: 1.15; }
.ra-dos-ind { font-size: 14px; color: #A9C2D2; margin-top: 4px; }
.ra-dos-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 10px 0; }
.ra-dos-v { font-size: 15.5px; font-weight: 600; color: #FFFFFF; line-height: 1.45; }
.ra-dossier.is-adv .ra-k { color: #FF9B2E; }
.ra-dos-sev { flex: none; font-size: 13px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: #FF9B2E; border: 1.5px solid #FF8800; border-radius: 999px; padding: 10px 18px; }
.ra-dos-sev.sev-critical { color: #FF1616; border-color: #FF1616; }
.ra-dos-sev.sev-medium { color: #8DC63F; border-color: #8DC63F; }
.ra-dos-sev.sev-low { color: #29ABE2; border-color: #29ABE2; }

/* Body */
.ra-body-sec { position: relative; padding: 0 24px 130px; }
.ra-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 80px; align-items: start; }
.ra-prose { max-width: 760px; }
.ra-prose > * { margin: 0 0 24px; }
.ra-prose h2 { font-size: 30px; line-height: 1.1; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; color: #FFFFFF; margin: 56px 0 20px; scroll-margin-top: 110px; }
.ra-prose h3 { font-size: 21px; line-height: 1.25; font-weight: 800; color: #FFFFFF; margin: 40px 0 14px; }
.ra-prose p, .ra-prose li { font-size: 17px; line-height: 1.75; color: #C4D5E0; text-wrap: pretty; }
.ra-prose ul, .ra-prose ol { padding-left: 22px; }
.ra-prose li { margin-bottom: 8px; }
.ra-prose li::marker { color: #8DC63F; }
.ra-prose a { color: #A5D45E; text-decoration: underline; text-underline-offset: 3px; }
.ra-prose blockquote { margin: 40px 0; padding: 4px 0 4px 26px; border-left: 2px solid #8DC63F; font-size: 22px; line-height: 1.45; font-weight: 600; color: #8DC63F; }
.ra-prose blockquote p { font-size: inherit; line-height: inherit; color: inherit; margin: 0; }
.ra-prose blockquote footer, .ra-prose blockquote cite { display: block; color: #8DC63F; font-size: 14px; font-weight: 600; font-style: normal; margin-top: 12px; }
.ra-prose strong { color: #FFFFFF; }
.ra-prose > :first-child { margin-top: 0; }
.ra-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; color: #D8F2A4; background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px; }
/* Tables (articles migrated from the old site): scroll sideways on narrow screens. */
.ra-prose .wp-block-table { margin: 32px 0; overflow-x: auto; }
.ra-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; color: #C4D5E0; }
.ra-prose th, .ra-prose td { border: 1px solid rgba(255,255,255,0.12); padding: 12px 14px; text-align: left; vertical-align: top; }
.ra-prose thead th, .ra-prose tr:first-child td { background: #04202F; color: #FFFFFF; font-weight: 700; }
.ra-prose td:first-child { color: #E8F0F5; font-weight: 600; }
.ra-prose .wp-block-image { margin: 32px 0; }
.ra-prose pre { background: #04202F; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 20px 22px; overflow-x: auto; }
.ra-prose pre code { background: transparent; padding: 0; font-size: 14px; line-height: 1.6; color: #C4D5E0; }
.ra-prose img { max-width: 100%; height: auto; border-radius: 6px; display: block; }
.ra-prose hr { border: 0; height: 1px; background: rgba(255,255,255,0.14); margin: 48px 0; }
.ra-prose .ra-callout { padding: 0; background: none; border: 0; }
.ra-prose .ra-callout p { color: #E8F0F5; font-weight: 600; }

/* Aside */
.ra-aside { position: sticky; top: 110px; display: grid; gap: 28px; }
.ra-toc { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 18px; }
.ra-toc .ra-k { margin-bottom: 12px; display: block; }
.ra-toc a { display: block; font-size: 14.5px; line-height: 1.4; color: #A9C2D2; text-decoration: none; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ra-toc a:hover { color: #FFFFFF; }
.ra-share-k { display: block; margin-bottom: 12px; }
.ra-share { display: flex; gap: 10px; }
.ra-share a { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.25); color: #C4D5E0; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 13px; font-weight: 700; background: transparent; cursor: pointer; font-family: inherit; transition: border-color .25s ease, color .25s ease; }
.ra-share a:hover { border-color: #8DC63F; color: #8DC63F; }

/* Related */
.ra-related { position: relative; padding: 0 24px 130px; }
.ra-rel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.ra-rel-head .bf-eyebrow { margin-bottom: 10px; }
.ra-rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

@media (max-width: 1023px) {
	.ra-head { grid-template-columns: 1fr; gap: 0; position: relative; }
	.ra-head > .bf-reveal:not(.ra-art) { position: relative; z-index: 1; }
	.ra-head .ra-art.bf-reveal { animation: none !important; opacity: 0.45; }
	.ra-head .ra-art { position: absolute; inset: 0; left: auto; width: 70%; min-height: 0; aspect-ratio: auto; border-radius: 0; background: none; pointer-events: none; opacity: 0.45; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
	.ra-cols { grid-template-columns: 1fr; gap: 48px; }
	.ra-aside { position: static; }
	.ra-toc { display: none; }
	.ra-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) and (max-width: 1023px) {
	.ra-hero { padding: 140px 32px 56px !important; }
	.ra-title { font-size: 46px; }
	.ra-body-sec, .ra-related { padding-left: 32px !important; padding-right: 32px !important; padding-bottom: 100px !important; }
}

@media (max-width: 767px) {
	.ra-hero { padding: 120px 20px 44px !important; }
	.ra-title { font-size: clamp(32px, 9vw, 40px); }
	.ra-dek { font-size: 17px; }
	.ra-body-sec, .ra-related { padding-left: 20px !important; padding-right: 20px !important; padding-bottom: 80px !important; }
	.ra-prose h2 { font-size: 24px; margin-top: 40px; }
	.ra-prose p, .ra-prose li { font-size: 16px; }
	.ra-prose blockquote { font-size: 19px; }
	.ra-meta { row-gap: 14px; }
	.ra-by { flex-basis: 100%; }
	.ra-by + .ra-dot { display: none; }
	.ra-dos-row { grid-template-columns: 1fr; gap: 8px; }
	.ra-dos-row:has(.ra-pills) { gap: 13px; }
	.ra-dos-tile { width: 112px; height: 62px; }
	.ra-rel-grid { grid-template-columns: 1fr; }
}
