/* Shared editorial shelf introduction; legacy clinical directories remain below. */
body[data-bw-family=rotations]{background:#f5f4f0;color:#191923}
body[data-bw-family=rotations] .bg-blobs{display:none}
.shelf-intro{max-width:1100px;margin:1.5rem auto;padding:0 24px 2rem;font-family:'Space Grotesk',system-ui,sans-serif;color:#191923;position:relative;z-index:2}
.shelf-intro *{box-sizing:border-box}.shelf-intro a{color:#593a87}.shelf-intro p{max-width:70ch;line-height:1.65}
.shelf-intro .shelf-hero{background:#10111b;color:#f5f3ed;border-radius:20px;padding:clamp(20px,4vw,48px)}
.shelf-intro .shelf-hero p{color:#ddd4ec}.shelf-intro h2{font-size:clamp(1.4rem,3vw,2rem);line-height:1.2;margin:0 0 .7rem;color:inherit}
.shelf-intro h3{font-size:1.1rem;margin:0 0 .5rem;color:inherit}.shelf-intro .shelf-eyebrow{font-size:.85rem;font-weight:700;color:#c6b2f5;margin:0 0 .7rem}
.shelf-intro .shelf-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:1.2rem}.shelf-intro .bw-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.6rem 1rem;border-radius:6px;background:#c6b2f5;color:#191923;text-decoration:none;font-weight:700}.shelf-intro .bw-btn.secondary{background:transparent;color:#f5f3ed;border:1px solid #bbb4c9}
.shelf-intro .shelf-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:14px;margin:1.2rem 0 2rem}.shelf-intro .bw-card{background:#fffefa;border:1px solid #deddda;border-radius:12px;padding:20px;min-width:0}.shelf-intro .bw-card p{margin:.4rem 0 1rem;color:#5e5d6b}.shelf-intro .bw-card a{min-height:44px;display:inline-flex;align-items:center;font-weight:700}.shelf-intro .bw-badge{display:inline-block;border:1px solid #776a8c;border-radius:6px;padding:3px 8px;font-size:.85rem;margin-bottom:10px}.shelf-intro .shelf-section{margin:2rem 0}.shelf-intro a:focus-visible{outline:3px solid #684291;outline-offset:3px}
@media(prefers-color-scheme:dark){body[data-bw-family=rotations]{background:#10111b;color:#f5f3ed}.shelf-intro{color:#f5f3ed}.shelf-intro .bw-card{background:#1a1b29;border-color:#776a8c}.shelf-intro .bw-card p{color:#bbb4c9}.shelf-intro a{color:#c6b2f5}.shelf-intro .shelf-hero a{color:#191923}}
@media(prefers-reduced-motion:reduce){.shelf-intro *{scroll-behavior:auto;animation:none!important;transition:none!important}}
/* Existing complete lesson directories: retain links, replace the old neon skin. */
body[data-bw-family=rotations] .systems{max-width:1100px;padding:1rem 24px 5rem;color:#191923;font-family:'Space Grotesk',system-ui,sans-serif}
body[data-bw-family=rotations] .system{margin-bottom:2rem}
body[data-bw-family=rotations] .system-head{gap:12px;align-items:baseline}
body[data-bw-family=rotations] .system-name{font-family:'Space Grotesk',system-ui,sans-serif;font-size:clamp(1.2rem,3vw,1.7rem);line-height:1.3;letter-spacing:0;text-transform:none;color:#191923;font-weight:600}
body[data-bw-family=rotations] .system-rank,body[data-bw-family=rotations] .weight-chip{color:#593a87;font-family:'Space Grotesk',system-ui,sans-serif;letter-spacing:0;font-size:.85rem;text-transform:none}
body[data-bw-family=rotations] .system-rule{background:#deddda}
body[data-bw-family=rotations] .card-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:14px}
body[data-bw-family=rotations] .dd-card{background:#fffefa;border:1px solid #deddda;border-radius:12px;min-height:100px;padding:18px;transition:none}
body[data-bw-family=rotations] .dd-card:hover{transform:none;background:#eee9f5;border-color:#776a8c;box-shadow:none}
body[data-bw-family=rotations] .dd-title,body[data-bw-family=rotations] .dd-card:hover .dd-title{font-family:'Space Grotesk',system-ui,sans-serif;color:#191923;font-size:1rem;line-height:1.4}
body[data-bw-family=rotations] .dd-sub{font-family:'Space Grotesk',system-ui,sans-serif;color:#5e5d6b;font-size:.88rem;line-height:1.4;letter-spacing:0;text-transform:none}
body[data-bw-family=rotations] .badge.free,body[data-bw-family=rotations] .badge.pro{color:#593a87;font-family:'Space Grotesk',system-ui,sans-serif;font-size:.75rem;letter-spacing:0;text-transform:none}
body[data-bw-family=rotations] .dd-link{border-radius:12px}body[data-bw-family=rotations] .dd-link:focus-visible{outline:3px solid #684291;outline-offset:3px}
body[data-bw-family=rotations] .bw-clinical-summary,body[data-bw-family=rotations] .gaps{color:#5e5d6b;font-family:'Space Grotesk',system-ui,sans-serif;line-height:1.65}
body[data-bw-family=rotations] .featured-card{background:#fffefa;border:1px solid #deddda;box-shadow:none;color:#191923}
body[data-bw-family=rotations] .featured-card:hover{transform:none;border-color:#776a8c;box-shadow:none}
body[data-bw-family=rotations] .featured-title,body[data-bw-family=rotations] .featured-desc{color:#191923}
.shelf-intro .shelf-hero h1{font-family:'Space Grotesk',system-ui,sans-serif;color:#f5f3ed;font-size:clamp(1.75rem,5vw,3rem);line-height:1.15;letter-spacing:0;font-weight:600;margin:0 0 12px}
.shelf-simple-nav{padding:16px 24px;background:#10111b}.shelf-simple-nav nav{max-width:1050px;margin:auto;display:flex;flex-wrap:wrap;gap:18px}.shelf-simple-nav a{color:#f5f3ed;min-height:44px;display:inline-flex;align-items:center}.shelf-simple-nav a:focus-visible{outline:3px solid #c6b2f5;outline-offset:3px}
@media(prefers-color-scheme:dark){body[data-bw-family=rotations] .systems{color:#f5f3ed}body[data-bw-family=rotations] .system-name,body[data-bw-family=rotations] .dd-title,body[data-bw-family=rotations] .dd-card:hover .dd-title{color:#f5f3ed}body[data-bw-family=rotations] .dd-card,body[data-bw-family=rotations] .featured-card{background:#1a1b29;border-color:#776a8c}body[data-bw-family=rotations] .dd-card:hover{background:#27253a}body[data-bw-family=rotations] .dd-sub,body[data-bw-family=rotations] .bw-clinical-summary,body[data-bw-family=rotations] .gaps{color:#bbb4c9}body[data-bw-family=rotations] .system-rank,body[data-bw-family=rotations] .weight-chip,body[data-bw-family=rotations] .badge.free,body[data-bw-family=rotations] .badge.pro{color:#c6b2f5}body[data-bw-family=rotations] .featured-title,body[data-bw-family=rotations] .featured-desc{color:#f5f3ed}}
/* Legacy gradient headings must never clip text on the editorial shelf skin. */
body[data-bw-family=rotations] .systems h2,body[data-bw-family=rotations] .systems h3,body[data-bw-family=rotations] .systems .dd-title{background:none;-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:currentColor}
@media(prefers-color-scheme:dark){.shelf-intro .shelf-hero .bw-btn.secondary{color:#f5f3ed}.shelf-intro .shelf-hero .bw-btn:not(.secondary){color:#191923}}
.shelf-directory-list{columns:2;max-width:880px;line-height:1.6}.shelf-directory-list li{break-inside:avoid;padding:.3rem 0}.shelf-directory-list a{min-height:44px;display:inline-flex;align-items:center}@media(max-width:600px){.shelf-directory-list{columns:1}}

/* Earlier clinical stylesheet uses --ui-* with !important. Supply scheme-aligned tokens. */
body[data-bw-family=rotations][data-bw-skin=paper]{--ui-bg:#f5f4f0;--ui-paper:#f5f4f0;--ui-white:#fffefa;--ui-ink:#191923;--ui-muted:#5e5d6b;--ui-line:#deddda;color-scheme:light}
@media(prefers-color-scheme:dark){body[data-bw-family=rotations][data-bw-skin=paper]{--ui-bg:#10111b;--ui-paper:#10111b;--ui-white:#1a1b29;--ui-ink:#f5f3ed;--ui-muted:#bbb4c9;--ui-line:#454052;--ui-purple:#c6b2f5;color-scheme:dark;background:#10111b!important;color:#f5f3ed!important}body[data-bw-family=rotations][data-bw-skin=paper] .featured-card,body[data-bw-family=rotations][data-bw-skin=paper] .dd-card{background:#1a1b29!important;border-color:#776a8c!important}body[data-bw-family=rotations][data-bw-skin=paper] :is(.system-name,.dd-title,.featured-title,.featured-desc){color:#f5f3ed!important}body[data-bw-family=rotations][data-bw-skin=paper] :is(.dd-sub,.bw-clinical-summary,.featured-kicker){color:#bbb4c9!important}}
/* Clinical legacy headings use display-font/all-caps rules with higher specificity. */
body[data-bw-family=rotations] .shelf-intro :is(h1,h2,h3),
body[data-bw-family=rotations] .systems :is(h2,h3,.system-name,.dd-title){font-family:'Space Grotesk',system-ui,sans-serif!important;font-weight:600!important;text-transform:none!important;letter-spacing:0!important;font-style:normal!important;background:none!important;background-clip:border-box!important;-webkit-background-clip:border-box!important;-webkit-text-fill-color:currentColor!important}
