/* SCRAPYARD SAINTS — SHARED STUDY EXPERIENCE v1.1.0
   Presentation only, grounded in Foundation v0.6.80. One final design layer.
   Content, counts, source links, private notes and reader logic remain Foundation-owned. */
html:not(.sss-mode-day) body.single-sssf_study, html:not(.sss-mode-day) body {--ssx-bg:#10191c;--ssx-panel:#1a2528;--ssx-panel2:#263033;--ssx-text:#f9eddb;--ssx-muted:#d0c3b3;--ssx-stroke:#976844;--ssx-accent:#f2b36f;--ssx-bright:#fff2df;--ssx-dark:#10191c;--ssx-shadow:rgba(0,0,0,.27)}
html.sss-mode-day body {--ssx-bg:#f5f0e7;--ssx-panel:#fffaf2;--ssx-panel2:#f1e7d8;--ssx-text:#282c2d;--ssx-muted:#5b5751;--ssx-stroke:#bb916a;--ssx-accent:#885122;--ssx-bright:#30281e;--ssx-dark:#fffaf2;--ssx-shadow:rgba(73,51,30,.11)}
body{background:var(--ssx-bg,var(--sss-page))!important;color:var(--ssx-text,var(--sss-text));font-family:Georgia,'Palatino Linotype',serif}
.sss-custom-header{border-bottom:1px solid var(--ssx-stroke)!important;background:linear-gradient(115deg,var(--sss-hdr),var(--ssx-panel))!important;box-shadow:0 6px 30px var(--ssx-shadow)}
.sss-site-name{font-weight:700!important;letter-spacing:.015em!important}
.sss-custom-header .menu a{transition:color .15s ease}
.sss-custom-footer{border-top-color:var(--ssx-stroke)!important}
/* Foundation color contract: make theme CSS coexist with Foundation's palette. */
body.single-sssf_study .sssf.sssf-study{--sbg:var(--ssx-bg)!important;--scard:var(--ssx-panel)!important;--stext:var(--ssx-text)!important;--smuted:var(--ssx-muted)!important;--saccent:var(--ssx-accent)!important;--sborder:var(--ssx-stroke)!important; background:var(--ssx-bg)!important;color:var(--ssx-text)!important;font-size:17px;line-height:1.68}
body.single-sssf_study .sssf-study :is(h1,h2,h3,h4){font-family:Georgia,'Palatino Linotype',serif!important;letter-spacing:-.018em!important;color:var(--ssx-bright)!important;text-wrap:pretty}
body.single-sssf_study .sssf-study :is(a,button,summary,input,select,textarea):focus-visible{outline:3px solid var(--ssx-accent)!important;outline-offset:3px!important}
/* Warm immersive introduction shared by EVERY investigation, with responsive type. */
body.single-sssf_study .sssf-study .sssf-study-hero{background:radial-gradient(ellipse at 82% 20%,rgba(206,130,55,.22),transparent 44%),linear-gradient(130deg,#142228,#342a23 95%)!important;border-bottom:1px solid #9d754c!important;min-height:unset!important;padding-top:clamp(38px,5vw,74px)!important;padding-bottom:clamp(70px,8vw,110px)!important}
body.single-sssf_study .sssf-study .sssf-study-hero h1{font-size:clamp(36px,5vw,69px)!important;line-height:1.08!important;color:#fff0da!important;max-width:100%!important}
body.single-sssf_study .sssf-study .sssf-hero-description{font-size:clamp(16px,1.4vw,20px)!important;line-height:1.65!important;color:#f1ddc1!important;max-width:740px!important}
body.single-sssf_study .sssf-study .sssf-study-hero :is(.sssf-kicker,small){color:#f0b776!important}
body.single-sssf_study .sssf-study .sssf-study-overview{max-width:1150px!important;margin:-48px auto 42px!important;gap:13px!important;padding:0 18px!important}
body.single-sssf_study .sssf-study .sssf-study-overview>div{background:linear-gradient(145deg,var(--ssx-panel2),var(--ssx-panel))!important;color:var(--ssx-text)!important;border:1px solid var(--ssx-stroke)!important;border-radius:13px!important;min-height:110px;padding:18px 21px!important;box-shadow:0 13px 32px var(--ssx-shadow)!important}
body.single-sssf_study .sssf-study .sssf-study-overview>div :is(strong,span){color:var(--ssx-text)!important}
body.single-sssf_study .sssf-study .sssf-study-overview>div small{color:var(--ssx-accent)!important}
body.single-sssf_study .sssf-study :is(.sssf-legacy-investigation,.sssf-complete-study){max-width:1220px!important;padding-left:clamp(14px,2.2vw,30px)!important;padding-right:clamp(14px,2.2vw,30px)!important}
body.single-sssf_study .sssf-study .sssf-legacy-investigation>h2{font-size:clamp(30px,3.4vw,49px)!important}
body.single-sssf_study .sssf-study .sssf-section-lede{color:var(--ssx-muted)!important;font-size:clamp(15px,1.3vw,18px)!important}
/* User-friendly search/filter row */
body.single-sssf_study .sssf-study .sssf-case-filters{gap:8px!important;margin:25px 0 12px!important}
body.single-sssf_study .sssf-study :is(.sssf-category-filter,.sssf-case-reset){background:var(--ssx-panel)!important;color:var(--ssx-text)!important;border:1px solid var(--ssx-stroke)!important;border-radius:999px!important;padding:10px 15px!important;box-shadow:none!important;font:700 12px/1.35 Arial,sans-serif!important}
body.single-sssf_study .sssf-study :is(.sssf-category-filter.is-active,.sssf-category-filter[aria-pressed=true]){background:var(--ssx-accent)!important;color:var(--ssx-bg)!important}
body.single-sssf_study .sssf-study .sssf-case-search{background:var(--ssx-panel)!important;border:1px solid var(--ssx-stroke)!important;color:var(--ssx-text)!important;border-radius:10px!important;min-height:44px!important}
/* COMMON compact claim cards: two columns until a card opens. */
body.single-sssf_study .sssf-study .sssf-case-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;align-items:start!important;min-width:0!important}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case{min-width:0!important;max-width:100%!important;width:100%!important;margin:0!important;border:1px solid var(--ssx-stroke)!important;border-radius:14px!important;background:var(--ssx-panel)!important;box-shadow:0 8px 22px var(--ssx-shadow)!important;overflow:hidden!important;transition:box-shadow .18s,border-color .18s!important}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case:hover{border-color:var(--ssx-accent)!important;box-shadow:0 14px 32px var(--ssx-shadow)!important}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case[open]{grid-column:1/-1!important;background:var(--ssx-bg)!important}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case>summary{display:grid!important;grid-template-columns:54px minmax(0,1fr) 27px!important;gap:14px!important;align-items:center!important;padding:16px 17px!important;min-height:99px!important;overflow:visible!important;background:radial-gradient(ellipse at 100% 0%,rgba(168,98,48,.21),transparent 64%),var(--ssx-panel)!important;border:0!important;cursor:pointer!important}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case[open]>summary{border-bottom:1px solid var(--ssx-stroke)!important}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case>summary>.sssf-case-number{grid-column:1!important;grid-row:1!important;position:relative!important;inset:auto!important;transform:none!important;display:flex!important;align-items:end!important;justify-content:center!important;min-width:54px!important;width:54px!important;height:62px!important;min-height:62px!important;padding:0 0 10px!important;margin:0!important;background:linear-gradient(140deg,#a86235,#613c28)!important;border:1px solid #c99161!important;border-radius:8px!important;color:#fff0dd!important;font:normal 25px/1 Georgia,serif!important}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case>summary>.sssf-case-number:before{content:'CLAIM'!important;position:absolute!important;top:10px!important;left:0!important;right:0!important;text-align:center!important;font:800 8px/1 Arial,sans-serif!important;letter-spacing:.16em!important;color:#fff2df!important}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case>summary>.sssf-case-summary-copy{grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;position:static!important;inset:auto!important;transform:none!important;gap:4px!important;min-width:0!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;overflow-wrap:break-word!important}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case>summary>.sssf-case-summary-copy>strong{font:normal clamp(17px,1.55vw,23px)/1.24 Georgia,serif!important;color:var(--ssx-bright)!important;letter-spacing:-.01em!important;margin:0!important;min-width:0!important;overflow-wrap:break-word!important;word-break:normal!important;white-space:normal!important}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case>summary :is(.sssf-case-category-title,.sssf-case-claim-kind){font:800 9px/1.35 Arial,sans-serif!important;color:var(--ssx-accent)!important;letter-spacing:.1em!important;max-width:100%!important;white-space:normal!important}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case>summary::after{grid-column:3!important;grid-row:1!important;position:static!important;inset:auto!important;transform:none!important;display:grid!important;place-items:center!important;justify-self:end!important;width:26px!important;height:26px!important;border:1px solid var(--ssx-stroke)!important;border-radius:50%!important;content:'+'!important;font:normal 23px/1 Arial,sans-serif!important;color:var(--ssx-accent)!important;background:transparent!important}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case[open]>summary::after{content:'−'!important}
/* Opened case gets a readable full-width editorial explanation, not cramped half-card text. */
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case[open]>.sssf-body{margin:0!important;padding:clamp(16px,3vw,34px)!important;color:var(--ssx-text)!important;font-size:clamp(16px,1.2vw,18px)!important;line-height:1.8!important}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case[open]>:is(.sssf-interactions,.sssf-section-footer){margin:0 clamp(16px,3vw,34px)!important;padding:13px 0!important}
body.single-sssf_study .sssf-study .sss-case-evidence-panel{border:1px solid var(--ssx-stroke)!important;border-radius:12px!important;background:var(--ssx-panel2)!important;color:var(--ssx-text)!important;margin:0 0 13px!important;box-shadow:none!important}
body.single-sssf_study .sssf-study .sss-case-evidence-panel :is(p,h3,strong){color:var(--ssx-text)!important}
body.single-sssf_study .sssf-study .sss-case-evidence-panel a{color:var(--ssx-accent)!important}
body.single-sssf_study .sssf-study .sssf-private-project-notes{background:var(--ssx-panel2)!important;border-color:var(--ssx-stroke)!important;color:var(--ssx-text)!important;border-radius:11px!important}
/* The complete reading: compact cards first, expressive article only after open. */
body.single-sssf_study .sssf-original-reader-layout{display:grid!important;grid-template-columns:minmax(190px,255px) minmax(0,1fr)!important;gap:23px!important;align-items:start!important}
body.single-sssf_study .sssf-original-reader-layout .sssf-sidebar-drawer{background:var(--ssx-panel)!important;border:1px solid var(--ssx-stroke)!important;border-radius:12px!important;max-width:100%!important;min-width:0!important;overflow:auto!important}
body.single-sssf_study .sssf-original-reader-layout .sssf-sidebar-drawer>summary{color:var(--ssx-accent)!important;font:800 11px/1.5 Arial,sans-serif!important;letter-spacing:.13em!important}
body.single-sssf_study .sssf-original-reader-layout .sssf-sidebar-chapter-list a{color:var(--ssx-text)!important;font:normal 13px/1.55 Georgia,serif!important}
body.single-sssf_study .sssf-original-reader-layout .sssf-sidebar-chapter-list a:hover{color:var(--ssx-accent)!important;background:var(--ssx-panel2)!important}
body.single-sssf_study .sssf-original-reader-layout .sssf-main{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px!important;align-items:start!important;min-width:0!important}
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter{border:1px solid var(--ssx-stroke)!important;background:var(--ssx-panel)!important;border-radius:13px!important;box-shadow:0 8px 23px var(--ssx-shadow)!important;min-width:0!important;width:100%!important;margin:0!important;overflow:hidden!important}
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter[open]{grid-column:1/-1!important}
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter>summary.sssf-chapter-summary{display:grid!important;grid-template-columns:minmax(0,1fr) 25px!important;grid-template-rows:auto 1fr auto!important;gap:5px 12px!important;align-content:center!important;align-items:center!important;min-height:112px!important;padding:17px 19px!important;background:radial-gradient(ellipse at 100% 0%,rgba(168,98,48,.22),transparent 56%),var(--ssx-panel)!important;color:var(--ssx-text)!important}
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter>summary .sssf-chapter-summary-label{grid-column:1/-1!important;grid-row:1!important;color:var(--ssx-accent)!important;font:800 10px/1.4 Arial,sans-serif!important;letter-spacing:.13em!important;margin:0!important}
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter>summary strong{grid-column:1!important;grid-row:2!important;color:var(--ssx-bright)!important;font:normal clamp(17px,1.5vw,22px)/1.26 Georgia,serif!important;margin:0!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter>summary .sssf-chapter-chevron{grid-column:2!important;grid-row:2!important;position:static!important;inset:auto!important;align-self:center!important;color:var(--ssx-accent)!important;font-size:21px!important}
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter>summary .sssf-chapter-progress-label{grid-column:1/-1!important;grid-row:3!important;font:600 11px/1.4 Arial,sans-serif!important;color:var(--ssx-muted)!important}
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter[open]>summary{border-bottom:1px solid var(--ssx-stroke)!important}
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter .sssf-chapter-full{background:var(--ssx-bg)!important;color:var(--ssx-text)!important;padding:clamp(19px,3vw,38px)!important;line-height:1.82!important;overflow-wrap:break-word!important}
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter .sssf-chapter-full :is(p,li){color:var(--ssx-text)!important;line-height:1.8!important}
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter .sssf-chapter-full :is(h2,h3){color:var(--ssx-bright)!important}
/* Argument map: keep explanation AND links visible, as user approved. */
body.single-sssf_study .sssf-original-reading-intro .sss-editorial-argument-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
body.single-sssf_study .sssf-original-reading-intro .sss-editorial-argument-card{border:1px solid var(--ssx-stroke)!important;background:var(--ssx-panel)!important;border-radius:12px!important;color:var(--ssx-text)!important}
body.single-sssf_study .sssf-original-reading-intro .sss-editorial-argument-summary{color:var(--ssx-bright)!important}
body.single-sssf_study .sssf-original-reading-intro .sss-editorial-argument-content{color:var(--ssx-muted)!important}
body.single-sssf_study .sssf-original-reading-intro .sss-editorial-argument-links a{color:var(--ssx-accent)!important;border-color:var(--ssx-stroke)!important}
/* Connected reading tools, notes, buttons, and the transition between sections */
body.single-sssf_study .sssf-study .sssf-study-transition{background:radial-gradient(circle at 95% 5%,rgba(234,175,104,.22),transparent 45%),linear-gradient(140deg,#14262b,#283139)!important;border:1px solid var(--ssx-stroke)!important;border-radius:16px!important;box-shadow:0 15px 36px var(--ssx-shadow)!important}
body.single-sssf_study .sssf-study .sssf-study-transition h2{color:#fff1df!important}
body.single-sssf_study .sssf-study .sssf-reading-toolbar .sssf-tools{background:var(--ssx-panel)!important;border:1px solid var(--ssx-stroke)!important;border-radius:12px!important;box-shadow:0 8px 24px var(--ssx-shadow)!important}
body.single-sssf_study .sssf-study .sssf-reading-toolbar .sssf-tools button{color:var(--ssx-text)!important;background:var(--ssx-panel2)!important;border-color:var(--ssx-stroke)!important}
body.single-sssf_study .sssf-study .sssf-case-list :is(.sssf-voting,.sssf-discussion,.sssf-private-project-notes){max-width:100%!important}
body.single-sssf_study .sssf-study :is(.sssf-source-link,.sssf-case-related-chapter,.sssf-transition-cta){transition:transform .15s,border-color .15s!important}
/* Shared library and overview cards match studies without altering plugin JavaScript. */
.sssf-library-redesign .sssf-lib-card,.sssf-unified-featured .sssf-card{background:linear-gradient(145deg,var(--ssx-panel2),var(--ssx-panel))!important;color:var(--ssx-text)!important;border:1px solid var(--ssx-stroke)!important;border-radius:13px!important;box-shadow:0 9px 24px var(--ssx-shadow)!important}
.sssf-library-redesign .sssf-lib-card :is(h2,h3,strong),.sssf-unified-featured .sssf-card :is(h2,h3,strong){color:var(--ssx-bright)!important}
/* Screen sizing - no tiny, crowded two-column cards on tablets. */
@media(max-width:1060px){body.single-sssf_study .sssf-original-reader-layout{grid-template-columns:minmax(0,1fr)!important}body.single-sssf_study .sssf-original-reader-layout .sssf-sidebar-drawer{max-height:260px!important}body.single-sssf_study .sssf-study .sssf-case-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){body.single-sssf_study .sssf-study .sssf-case-list,body.single-sssf_study .sssf-original-reader-layout .sssf-main,body.single-sssf_study .sssf-original-reading-intro .sss-editorial-argument-grid{grid-template-columns:1fr!important}body.single-sssf_study .sssf-study .sssf-study-overview{grid-template-columns:1fr!important;margin-top:-36px!important}body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case>summary{grid-template-columns:48px minmax(0,1fr) 24px!important;padding:13px!important;gap:11px!important;min-height:86px!important}body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case>summary>.sssf-case-number{width:48px!important;min-width:48px!important;height:57px!important;min-height:57px!important}body.single-sssf_study .sssf-study .sssf-study-hero{padding-left:22px!important;padding-right:22px!important}body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter>summary.sssf-chapter-summary{min-height:90px!important}body.single-sssf_study .sssf-study .sssf-case-filters{overflow:visible!important}}
@media print{body.single-sssf_study .sssf-study .sssf-case-list,body.single-sssf_study .sssf-original-reader-layout .sssf-main{display:block!important}body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case,body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter{break-inside:avoid!important;margin-bottom:12px!important;box-shadow:none!important}body.single-sssf_study .sssf-study .sssf-study-hero{background:white!important;color:black!important}}
