body { margin: 0; }
    a { color: var(--link); text-decoration: none; }
    a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
    /* AA: darker link/muted/focus colours and text-on-accent contrast */
    .theme-kelsey { --link: #C2185B; --text-muted: rgba(26,26,31,0.72); --text-on-accent: #1A1A1F; --focus-ring: #1A1A1F; }
    a:focus-visible { outline: 3px solid #1A1A1F; outline-offset: 3px; border-radius: 4px; }
    .on-dark { --text: #F0EDE6; --text-muted: rgba(240,237,230,0.72); --border: rgba(240,237,230,0.14); --border-strong: rgba(240,237,230,0.5); --focus-ring: #F0EDE6; }
    .on-dark a:focus-visible { outline-color: #F0EDE6; }

    /* split case-study layout */
    .cs-wrap { width:100%; max-width:1440px; box-sizing:border-box; margin:0 auto; padding:clamp(24px,3vw,40px) clamp(20px,3vw,48px) 96px; display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:clamp(24px,4vw,56px); align-items:start; }
    .cs-media { display:flex; flex-direction:column; gap:20px; min-width:0; }
    .cs-info { position:sticky; top:84px; max-height:calc(100vh - 100px); overflow-y:auto; padding-right:4px; }
    @media (max-width:900px) { .cs-wrap { grid-template-columns:1fr; } .cs-info { position:static; max-height:none; overflow:visible; order:-1; } }
    details.acc { border-top:1px solid var(--border-strong); }
    details.acc:last-of-type { border-bottom:1px solid var(--border-strong); }
    details.acc > summary { list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px 0; font-size:17px; font-weight:500; color:var(--text); min-height:24px; }
    details.acc > summary::-webkit-details-marker { display:none; }
    details.acc > summary::after { content:"+"; font-family:var(--font-mono); font-size:22px; line-height:1; color:var(--ink-700); }
    details.acc[open] > summary::after { content:"\2212"; }
    details.acc > summary:focus-visible { outline:3px solid #1A1A1F; outline-offset:3px; border-radius:4px; }
    .acc-body { padding:0 0 20px; }
    .acc-body p { font-size:16px; line-height:1.65; margin:0 0 12px; color:var(--text); }
    .acc-body p:last-child { margin-bottom:0; }
    .cs-fig { margin:0; }
    .cs-fig figcaption { font-size:14px; line-height:1.5; color:var(--ink-700); margin-top:8px; }
    .ac-tag { font-size: 13px; }
    nav a, .on-dark a { display: inline-flex; align-items: center; min-height: 24px; }
