/* Case studies share a cream reading surface and brand accents. */
html:has(#case-study),body#case-study{background:#fcfaf4!important;color:#303330!important}
#case-study :is(main,section,article,aside,figure,.page,.case-intro,.intro-grid,.timeline,.chapter,.chapter-content,.card,.image-card,.hero-panel,.hero-diagram,.diagram-panel,.metrics,.metric,.light-scorecard,.gear-list,.gear,.process-grid,.process-step,.flow,.flow-step,.step,.step-card){background-color:#fcfaf4!important;background-image:none!important;color:#303330!important}
#case-study :is(.eyebrow,.chapter-kicker,.chapter-kicker span,.section-kicker,.section-label,.meta-label,.kicker,.metric-label,.metric-arrow,.intro-grid h2,.intro-grid h3,.gear strong){color:#f05800!important}
#case-study :is(.metric-number,.metric-value,.scorecard-context strong,.stat-plus){color:#303330!important}
#case-study :is(.metrics,.metric){box-shadow:none!important}
#case-study .company-description{font:400 18px/1.7 Poppins,Arial,sans-serif;margin:22px 0 30px;max-width:65ch;color:#303330!important}
#case-study .client-logo[src*="932fd3876f6b7c53682b1e54"]{filter:brightness(0)!important}
#case-study .explorer-header a{color:#f4f2ea!important}#case-study .explorer-header nav a:hover,#case-study .explorer-header nav a:focus-visible{color:#ffd600!important}#case-study .explorer-header .contact-nav>a:hover{color:#8aea28!important}
#case-study .explorer-header .original-logo{filter:none!important}
#case-study .neo-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.85fr);gap:52px;align-items:center}
#case-study .neo-hero .light-scorecard{margin:0!important;max-width:none!important}
#case-study .scorecard-tenure{font:400 12px/1.7 Poppins,Arial,sans-serif!important;margin:14px 0 0!important;color:#303330!important}
#case-study .scorecard-stat>span{color:#f05800!important}
@media(max-width:850px){#case-study .neo-hero{grid-template-columns:1fr;gap:28px}#case-study .company-description{font-size:16px}}
#case-study .process-line,#case-study .process-line>*,#case-study .gear-list>*{background:#fcfaf4!important;color:#303330!important}
#case-study .process-line strong{color:#f05800!important}#case-study .process-line span,#case-study .gear span{color:#303330!important}
#case-study .explorer-header .logo-for-light{display:none!important}#case-study .explorer-header .original-logo:not(.logo-for-light){display:block!important}

/* Eyebrow slashes read as charcoal separators inside orange labels. */
#case-study :is(.eyebrow,.kicker,.chapter-kicker,.section-kicker) .eyebrow-slash{color:#303330!important}
#case-study .chapter-kicker span.eyebrow-slash{display:inline;margin:0}

/* Neo4j hero scorecard: same content, compact footprint. The full-size version lives on the Work page. */
#case-study .neo-hero{grid-template-columns:minmax(0,1.35fr) minmax(300px,.8fr);gap:44px;align-items:start}
#case-study .neo-hero .light-scorecard{padding:18px 20px!important;max-width:430px!important;justify-self:end}
#case-study .neo-hero .light-scorecard h3{font-size:18px!important;margin:12px 0 4px!important}
#case-study .neo-hero .scorecard-top{font-size:11px}
#case-study .neo-hero .scorecard-stat{padding:8px 0;font-size:13px}
#case-study .neo-hero .scorecard-stat .metric-number{font-size:28px!important;line-height:1.15!important}
#case-study .neo-hero .scorecard-stat .stat-plus{font-size:18px}
#case-study .neo-hero .scorecard-note{font-size:11px!important;margin:10px 0 12px!important}
#case-study .neo-hero .scorecard-context{padding:12px 0;font-size:11px}
#case-study .neo-hero .scorecard-context strong{font-size:20px}
#case-study .neo-hero .scorecard-attribution{font-size:12px!important;line-height:1.6!important;margin:12px 0 0!important}
#case-study .neo-hero .scorecard-tenure{font-size:11px!important;margin:8px 0 0!important}
@media(max-width:850px){#case-study .neo-hero{grid-template-columns:1fr;gap:24px}#case-study .neo-hero .light-scorecard{justify-self:start;max-width:none!important}}

/* ===== v25 global case study system ===== */
@font-face{font-family:Poppins;src:url(../assets/resume/Poppins-Medium.ttf) format('truetype');font-weight:500;font-display:swap}

/* Lighter, creamier reading surface. Layout containers show the page color through. */
#case-study :is(.section,.section-content,.image-stack,.image-grid,.two-col,.three-col,.btn-row,.lead-copy,.meta-list,.full-width-row,.transition-note,.paper-cta-row){background-color:transparent!important;background-image:none!important}

/* Buttons: medium weight at rest, lime with black text on hover. */
#case-study :is(.btn,.btn-paper,.cta,a.button){font-family:Poppins,Arial,sans-serif!important;font-weight:500!important}
#case-study :is(.btn,.btn-paper,.cta,a.button):is(:hover,:focus-visible){background:#8aea28!important;border-color:#8aea28!important;color:#000!important}

/* Callouts: white fill, gold vertical bar. */
#case-study .pullquote{background:#fff!important;border-left:3px solid #e6aa00!important}

/* Cards: white fill, lime top border. */
#case-study .card{background:#fff!important;border-top-color:#8aea28!important}

/* Chapter numbers in charcoal, matching the Anthem and Carelon section numbers. */
#case-study .chapter-kicker>span:first-child:not(.eyebrow-slash){color:#535e55!important}

/* Light-mode text links: regular Poppins, near black, 1px orange underline. External links get a 1px up-right arrow. */
#case-study main a:not(.btn):not(.btn-paper):not(.cta):not(.button){font-family:Poppins,Arial,sans-serif!important;font-weight:400!important;letter-spacing:normal!important;color:#1b1d1b!important;text-decoration:underline!important;text-decoration-thickness:1px!important;text-decoration-color:#f05800!important;text-underline-offset:5px!important}
#case-study main a:not(.btn):not(.btn-paper):not(.cta):not(.button):is(:hover,:focus-visible){color:#2f4a31!important;text-decoration-color:#8aea28!important}
#case-study main a[href^="http"]:not(.btn):not(.btn-paper):not(.cta):not(.button)::after{content:"";display:inline-block;width:10px;height:10px;margin-left:6px;vertical-align:1px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 8.5 8.5 1.5M3 1.5h5.5V7' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") center/10px 10px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 8.5 8.5 1.5M3 1.5h5.5V7' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") center/10px 10px no-repeat}
#case-study main .text-link{display:inline!important;padding:0!important;font-size:16px!important}
#case-study main .btn-row:has(.text-link):not(:has(.btn)){gap:10px 32px}

/* Code windows, matched to the live SMA site. */
#case-study .code-window{background:#0d1914!important;border:1px solid #2e4c3f!important;border-radius:8px!important;box-shadow:none!important;overflow:hidden}
#case-study .code-window .code-header{display:flex!important;justify-content:space-between;align-items:center;min-height:40px;padding:0 18px!important;background:#13251c!important;border-bottom:1px solid #2e4c3f!important;color:#f7b83c!important;font:500 11px/1 "Cascadia Code",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace!important;letter-spacing:.02em}
#case-study .code-window .code-header::before{content:none!important;display:none!important}
#case-study .code-window .dots{display:flex!important;gap:7px}
#case-study .code-window .dot{width:11px!important;height:11px!important;border-radius:50%!important}
#case-study .code-window .dot:nth-child(1){background:#ff5451!important}
#case-study .code-window .dot:nth-child(2){background:#ffb437!important}
#case-study .code-window .dot:nth-child(3){background:#00c03f!important}
#case-study .code-window pre,#case-study .code-window code{background:#0d1914!important;color:#dee8db!important;font:400 13px/1.75 "Cascadia Code",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace!important;border-radius:0!important}
#case-study .code-window pre{padding:22px 20px!important;margin:0!important}
#case-study .code-window pre *{color:#dee8db!important}
#case-study .code-window pre :is(.k,.kn,.kc,.kd,.ow,.nt){color:#f7b83c!important}
#case-study .code-window pre :is(.nc,.nf,.mf,.mi,.m){color:#ffa375!important}
#case-study .code-window pre :is(.s,.s1,.s2,.sd){color:#73e634!important}
#case-study .code-window pre :is(.c,.c1,.cm){color:#7f978a!important}

/* Neo4j hero scorecard: white card with a large, very soft brown-gray shadow. */
#case-study .neo-hero .light-scorecard{background:#fff!important;box-shadow:0 28px 64px rgba(94,74,56,.10),0 6px 18px rgba(94,74,56,.05)!important}
#case-study .neo-hero .company-description{margin:18px 0 0;font-size:17px}

/* BREATHmg gears: primary gears in one white box, auxiliary gears in another. */
#case-study .gear-groups{display:grid;grid-template-columns:3fr 2fr;gap:18px;margin-top:28px;max-width:980px}
#case-study .gear-group{background:#fff!important;border:1px solid #d4d9d0;padding:18px 0 4px}
#case-study .gear-group-label{margin:0 22px 6px;font:700 11px/1.4 "Cascadia Code",ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.06em;text-transform:uppercase;color:#535e55}
#case-study .gear-group .gear-list{display:grid;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;gap:0!important}
#case-study .gear-primary .gear-list{grid-template-columns:repeat(3,1fr)}
#case-study .gear-aux .gear-list{grid-template-columns:repeat(2,1fr)}
#case-study .gear-group .gear{background:#fff!important;min-height:0;padding:14px 22px 20px}
#case-study .gear-group .gear+.gear{border-left:1px solid #d4d9d0}
@media(max-width:850px){#case-study .gear-groups{grid-template-columns:1fr}#case-study .gear-group .gear-list{grid-template-columns:1fr!important}#case-study .gear-group .gear+.gear{border-left:0;border-top:1px solid #d4d9d0}}

/* Team table (GuidePost). */
#case-study .team-table{width:100%;max-width:980px;border-collapse:collapse;margin:28px 0;background:#fff;border:1px solid #d4d9d0;border-top:1px solid #8aea28;font:400 15px/1.6 Poppins,Arial,sans-serif}
#case-study .team-table th,#case-study .team-table td{padding:14px 18px;text-align:left;vertical-align:top;border-bottom:1px solid #e4e6e0}
#case-study .team-table thead th{font:700 12px/1.4 "Cascadia Code",ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.04em;text-transform:uppercase;color:#f05800}
#case-study .team-table tbody th{font-weight:500;color:#303330;width:34%}
#case-study .team-table tr:last-child>*{border-bottom:0}
@media(max-width:700px){#case-study .team-table,#case-study .team-table tbody,#case-study .team-table tr,#case-study .team-table th,#case-study .team-table td{display:block;width:auto}#case-study .team-table thead{display:none}#case-study .team-table tbody th{padding-bottom:0;border:0}}
/* Breathing room when a paragraph follows a card row, image, or table inside a chapter. */
#case-study .chapter-content>.three-col+p{margin-top:28px}
#case-study .gp-case .chapter-content>:is(.image-card,.team-table)+p{margin-top:28px}
#case-study .gp-case .chapter-content>p+.image-card{margin-top:28px}

/* ===== v26 ===== */
/* Sidebar labels (Role, Timeline, Stack, Outputs) at the same size as the Overview label. */
#case-study .meta-label{font-size:18px!important;line-height:1.5!important}
#case-study .intro-grid .section-label{font-size:18px!important}
/* BREATHmg process steps (07 Audio, 08 Production System): pure white boxes. */
#case-study .bmg-case .process-line>*{background:#fff!important}
