/* SCRAPYARD SAINTS · SHARED FOUNDATION READER · v1.2.0
   Authoritative study presentation. All records, links, state, source logic,
   narration, progress and voting remain in Foundation. */
body.single-sssf_study {
  --ssx-bg:var(--sss-page,#101c20);
  --ssx-panel:var(--sss-panel,#1b3036);
  --ssx-panel2:var(--sss-paper,#24393f);
  --ssx-text:var(--sss-text,#f4e9d6);
  --ssx-muted:var(--sss-soft,#d6cbb8);
  --ssx-stroke:var(--sss-border,#9c704b);
  --ssx-accent:var(--sss-accent,#f3b76f);
  --ssx-bright:var(--sss-title,#fff4de);
  --ssx-shadow:rgba(0,10,15,.22);
  --sss-type-display:'Palatino Linotype',Palatino,'Book Antiqua',Georgia,serif;
  --sss-type-reading:Georgia,'Iowan Old Style',Baskerville,serif;
  --sss-type-ui:'Segoe UI',Arial,sans-serif;
}
body.single-sssf_study .sssf-study{color:var(--ssx-text)!important;background:var(--ssx-bg)!important}
/* Foundation's claims stay as two-column expandable cards. */
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case>summary>.sssf-case-summary-copy>strong{
  font:600 clamp(18px,1.5vw,23px)/1.3 var(--sss-type-display)!important;
  letter-spacing:-.018em!important;overflow-wrap:anywhere!important;
}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case>summary>.sssf-case-number{
  font-family:var(--sss-type-display)!important;
}
/* Foundation's Examination markup: one full-width accordion row per section. */
body.single-sssf_study .sssf-study .sssf-original-reader-layout{
  display:grid!important;grid-template-columns:minmax(210px,252px) minmax(0,1fr)!important;
  align-items:start!important;gap:20px!important;
}
body.single-sssf_study .sssf-study .sssf-original-reader-layout .sssf-main{
  display:flex!important;flex-direction:column!important;gap:12px!important;
  min-width:0!important;width:100%!important;
}
body.single-sssf_study .sssf-study .sssf-original-reader-layout .sssf-main>details.sssf-chapter{
  display:block!important;min-height:0!important;width:100%!important;max-width:none!important;
  margin:0!important;overflow:hidden!important;border-radius:12px!important;
  border:1px solid var(--ssx-stroke)!important;background:var(--ssx-panel)!important;
  box-shadow:0 5px 16px var(--ssx-shadow)!important;
}
body.single-sssf_study .sssf-study .sssf-original-reader-layout .sssf-main>details.sssf-chapter>summary.sssf-chapter-summary{
  box-sizing:border-box!important;display:grid!important;
  grid-template-columns:minmax(0,1fr) 38px!important;
  grid-template-rows:auto auto auto auto!important;
  align-items:center!important;align-content:start!important;
  width:100%!important;min-height:0!important;height:auto!important;max-width:none!important;
  padding:19px clamp(17px,2.4vw,26px)!important;margin:0!important;
  gap:4px 14px!important;background:var(--ssx-panel2)!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!important;grid-row:1!important;position:static!important;margin:0!important;
  font:800 11px/1.45 var(--sss-type-ui)!important;letter-spacing:.13em!important;
  color:var(--ssx-accent)!important;
}
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter>summary.sssf-chapter-summary>strong{
  grid-column:1!important;grid-row:2!important;display:block!important;min-width:0!important;
  width:auto!important;max-width:100%!important;margin:0!important;
  color:var(--ssx-bright)!important;
  font:600 clamp(22px,2.05vw,29px)/1.22 var(--sss-type-display)!important;
  letter-spacing:-.02em!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:1/4!important;justify-self:center!important;align-self:center!important;
  position:static!important;display:grid!important;place-items:center!important;
  width:34px!important;height:34px!important;border:1px solid var(--ssx-stroke)!important;
  border-radius:50%!important;color:var(--ssx-accent)!important;font-size:22px!important;
}
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter>summary .sssf-chapter-progress-label{
  grid-column:1!important;grid-row:3!important;color:var(--ssx-muted)!important;
  font:700 13px/1.5 var(--sss-type-ui)!important;margin-top:2px!important;
}
/* Most critical working feature: the related Claim buttons remain visible
   in a CLOSED Examination. Never intercept or replace their links. */
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter>summary.sssf-chapter-summary>.sssf-exam-preview-claims{
  grid-column:1/-1!important;grid-row:4!important;display:flex!important;
  position:static!important;visibility:visible!important;opacity:1!important;
  flex-direction:column!important;align-items:stretch!important;width:100%!important;
  min-width:0!important;min-height:0!important;margin:8px 0 0!important;
  padding:10px 0 0!important;border-top:1px solid var(--ssx-stroke)!important;
  gap:7px!important;
}
body.single-sssf_study .sssf-original-reader-layout .sssf-main .sssf-exam-preview-label{
  color:var(--ssx-accent)!important;font:800 11px/1.4 var(--sss-type-ui)!important;
  letter-spacing:.1em!important;
}
body.single-sssf_study .sssf-original-reader-layout .sssf-main .sssf-exam-preview-links{
  display:flex!important;flex-wrap:wrap!important;gap:8px!important;
}
body.single-sssf_study .sssf-original-reader-layout .sssf-main .sssf-exam-preview-link{
  display:inline-flex!important;align-items:center!important;visibility:visible!important;
  max-width:100%!important;padding:7px 11px!important;
  font:600 13px/1.5 var(--sss-type-ui)!important;color:var(--ssx-text)!important;
  background:var(--ssx-panel)!important;border:1px solid var(--ssx-stroke)!important;
  border-radius:8px!important;text-decoration:none!important;overflow-wrap:anywhere!important;
}
body.single-sssf_study .sssf-original-reader-layout .sssf-main .sssf-exam-preview-number{color:var(--ssx-accent)!important}
body.single-sssf_study .sssf-original-reader-layout .sssf-main .sssf-exam-preview-link:is(:hover,:focus-visible){
  border-color:var(--ssx-accent)!important;text-decoration:underline!important;
}
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter[open]{border-color:var(--ssx-accent)!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-panel)!important;color:var(--ssx-text)!important;
  width:100%!important;max-width:none!important;padding:clamp(20px,3vw,34px)!important;
}
body.single-sssf_study .sssf-original-reader-layout .sssf-main .sssf-chapter-full :is(p,li,blockquote),
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case[open]>.sssf-body :is(p,li,blockquote){
  color:var(--ssx-text)!important;font-family:var(--sss-type-reading)!important;
  line-height:1.78!important;
}
body.single-sssf_study .sssf-original-reader-layout .sssf-main .sssf-chapter-full :is(h1,h2,h3,h4){
  font-family:var(--sss-type-display)!important;color:var(--ssx-bright)!important;
  line-height:1.22!important;letter-spacing:-.022em!important;
}
body.single-sssf_study .sssf-original-reader-layout .sssf-main .sssf-chapter-full a{color:var(--sss-link,var(--ssx-accent))!important}
/* Sidebar text actually readable, not miniature. */
body.single-sssf_study .sssf-original-reader-layout .sssf-sidebar-drawer{
  min-width:0!important;max-width:100%!important;background:var(--ssx-panel)!important;
  border:1px solid var(--ssx-stroke)!important;border-radius:12px!important;
}
body.single-sssf_study .sssf-original-reader-layout .sssf-sidebar-drawer>summary{
  color:var(--ssx-accent)!important;font:800 12px/1.5 var(--sss-type-ui)!important;letter-spacing:.09em!important;
}
body.single-sssf_study .sssf-original-reader-layout .sssf-sidebar-chapter-list a{
  font:550 14px/1.48 var(--sss-type-ui)!important;color:var(--ssx-text)!important;
  padding:9px 6px!important;gap:9px!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;
}
/* Argument grid keeps its visible descriptions, explanatory copy and case links. */
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{
  background:var(--ssx-panel)!important;color:var(--ssx-text)!important;
  border:1px solid var(--ssx-stroke)!important;border-radius:12px!important;
}
body.single-sssf_study .sssf-original-reading-intro .sss-editorial-argument-content{
  color:var(--ssx-muted)!important;line-height:1.6!important;
}
body.single-sssf_study .sssf-original-reading-intro .sss-editorial-argument-links a{color:var(--ssx-accent)!important}
@media(max-width:1050px){body.single-sssf_study .sssf-study .sssf-original-reader-layout{grid-template-columns:1fr!important}}
@media(max-width:690px){
 body.single-sssf_study .sssf-original-reading-intro .sss-editorial-argument-grid{grid-template-columns:1fr!important}
 body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter>summary.sssf-chapter-summary{padding:17px!important}
 body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter>summary.sssf-chapter-summary>strong{font-size:22px!important}
 body.single-sssf_study .sssf-original-reader-layout .sssf-main .sssf-exam-preview-links{flex-direction:column!important}
 body.single-sssf_study .sssf-original-reader-layout .sssf-main .sssf-exam-preview-link{width:100%!important}
}
@media print{
 body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter{box-shadow:none!important;break-inside:avoid}
 body.single-sssf_study .sssf-original-reader-layout .sssf-main .sssf-exam-preview-claims{display:none!important}
}
