/* Scrapyard Saints case reading experience — theme layer only.
   No markup, study data, vote logic or audio behavior is modified.
   All selectors are restricted to the Foundation case list. */
body.single-sssf_study .sssf-study {
  --case-ink: var(--sss-text, #f3e6d7);
  --case-secondary: var(--sss-soft, #d5c4b3);
  --case-copper: var(--sss-accent, #e2a06a);
  --case-edge: var(--sss-border, #564738);
  --case-panel: var(--sss-panel, #212326);
  --case-bg: var(--sss-page, #151a1c);
  --case-link: var(--sss-link, #eab17e);
}
body.single-sssf_study .sssf-study .sssf-case-evidence-note {
  border:1px solid var(--case-edge);
  border-left:4px solid var(--case-copper);
  border-radius:10px;
  padding:15px 20px;
  background:color-mix(in srgb,var(--case-panel) 93%,var(--case-copper) 7%);
  color:var(--case-secondary);
  box-shadow:0 8px 24px rgba(0,0,0,.07);
  line-height:1.6;
}
body.single-sssf_study .sssf-study .sssf-case-list {display:grid;gap:18px;}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case {
  margin:0!important;
  padding:0!important;
  border:1px solid var(--case-edge)!important;
  border-radius:17px!important;
  background:var(--case-panel)!important;
  color:var(--case-ink)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.12);
  overflow:hidden;
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case:hover {
  border-color:var(--case-copper)!important;
}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case[open] {
  box-shadow:0 22px 48px rgba(0,0,0,.18),0 0 0 1px color-mix(in srgb,var(--case-copper) 45%,transparent);
}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary {
  display:grid!important;
  grid-template-columns:78px minmax(0,1fr) 26px!important;
  align-items:center;
  min-height:100px;
  gap:22px!important;
  padding:18px 25px!important;
  background:
    radial-gradient(ellipse at 88% 15%,color-mix(in srgb,var(--case-copper) 16%,transparent),transparent 40%),
    linear-gradient(125deg,color-mix(in srgb,var(--case-panel) 91%,var(--case-bg)),var(--case-panel));
  border-bottom:0;
  color:var(--case-ink)!important;
}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case[open] > summary {
  border-bottom:1px solid var(--case-edge);
}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary .sssf-case-number {
  display:flex;
  align-items:center;
  justify-content:center;
  width:72px;
  min-height:72px;
  font:normal 32px/1 Georgia,serif!important;
  color:#fff4e6!important;
  background:linear-gradient(155deg,#9c542c,#60351f);
  border:1px solid #dca576;
  border-radius:7px;
  box-shadow:inset 0 1px 0 #e8ba8a55,0 5px 16px #0004;
}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary .sssf-case-summary-copy {gap:4px;}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary .sssf-case-category-title,
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary .sssf-case-claim-kind {
  font:700 10px/1.5 Arial,Helvetica,sans-serif!important;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:var(--case-link)!important;
  -webkit-text-fill-color:var(--case-link)!important;
}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary strong {
  font:normal clamp(23px,2.6vw,36px)/1.17 Georgia,'Times New Roman',serif!important;
  color:var(--case-ink)!important;
  -webkit-text-fill-color:var(--case-ink)!important;
  letter-spacing:-.016em;
}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary::after {
  content:'+';
  display:grid;
  place-items:center;
  font:normal 24px/1 Georgia,serif;
  width:28px;height:28px;
  border:1px solid var(--case-edge);
  border-radius:50%;
  color:var(--case-copper);
  justify-self:end;
}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case[open] > summary::after {content:'−';}
/* Body content is authored/imported; group its existing paragraphs and headings without rewriting text. */
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > .sssf-body {
  margin:0!important;
  padding:25px clamp(18px,3.5vw,46px) 8px!important;
  font-size:clamp(15px,1.12vw,17px);
  line-height:1.75;
  color:var(--case-ink)!important;
}
body.single-sssf_study .sssf-study .sssf-case-list .sssf-body :is(h3,h4,h5) {
  margin:22px 0 9px;
  padding:0;
  color:var(--case-link)!important;
  -webkit-text-fill-color:var(--case-link)!important;
  font:800 12px/1.45 Arial,Helvetica,sans-serif!important;
  text-transform:uppercase;
  letter-spacing:.14em;
}
body.single-sssf_study .sssf-study .sssf-case-list .sssf-body > :is(h3,h4,h5):first-child {margin-top:0;}
body.single-sssf_study .sssf-study .sssf-case-list .sssf-body :is(blockquote,.wp-block-quote) {
  margin:12px 0 19px;
  padding:18px 24px;
  border:1px solid var(--case-edge);
  border-left:4px solid var(--case-copper);
  border-radius:10px;
  background:color-mix(in srgb,var(--case-panel) 83%,var(--case-bg) 17%);
  font:normal 1.09em/1.63 Georgia,serif;
  color:var(--case-ink);
}
body.single-sssf_study .sssf-study .sssf-case-list .sssf-body .scripture-links {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:10px 0 20px;
}
body.single-sssf_study .sssf-study .sssf-case-list .sssf-body .scripture-links a {
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 14px;
  border:1px solid var(--case-edge);
  border-radius:25px;
  background:color-mix(in srgb,var(--case-copper) 10%,var(--case-panel));
  color:var(--case-link)!important;
  -webkit-text-fill-color:var(--case-link)!important;
  font:650 14px/1.3 Georgia,serif;
  text-decoration:none!important;
}
body.single-sssf_study .sssf-study .sssf-case-list .sssf-body .scripture-links a:hover,
body.single-sssf_study .sssf-study .sssf-case-list .sssf-body .scripture-links a:focus-visible {
  background:color-mix(in srgb,var(--case-copper) 24%,var(--case-panel));
  border-color:var(--case-copper);
}
body.single-sssf_study .sssf-study .sssf-case-list .sssf-body p {max-width:76ch;}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > .sssf-case-related-chapter {
  margin:16px clamp(18px,3.5vw,46px) 14px!important;
  text-align:center;
}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > .sssf-case-related-chapter a {
  display:inline-flex!important;
  justify-content:center;
  align-items:center;
  border:1px solid var(--case-copper);
  border-radius:30px;
  min-height:44px;
  padding:10px 23px!important;
  color:#fff4e6!important;
  -webkit-text-fill-color:#fff4e6!important;
  background:linear-gradient(150deg,#9a512b,#65351f);
  text-decoration:none!important;
  box-shadow:0 5px 18px #0002;
  font:750 13px/1.3 Arial,sans-serif;
}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > .sssf-case-related-chapter a:hover {filter:brightness(1.14);}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > .sssf-interactions {
  margin:18px clamp(18px,3.5vw,46px)!important;
  padding-top:17px;
  border-top:1px solid var(--case-edge);
}
body.single-sssf_study .sssf-study .sssf-case-list .sssf-voting {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}
body.single-sssf_study .sssf-study .sssf-case-list .sssf-voting button,
body.single-sssf_study .sssf-study .sssf-case-list .sssf-voting .sssf-login {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:40px;
  padding:9px 14px;
  border-radius:9px;
  border:1px solid var(--case-edge);
  background:var(--case-panel);
  color:var(--case-ink)!important;
  -webkit-text-fill-color:var(--case-ink)!important;
  text-decoration:none;
}
body.single-sssf_study .sssf-study .sssf-case-list .sssf-voting button[aria-pressed="true"] {
  border-color:var(--case-copper);
  background:color-mix(in srgb,var(--case-copper) 18%,var(--case-panel));
}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > .sssf-private-project-notes {
  margin:18px clamp(18px,3.5vw,46px) 12px!important;
  border-radius:12px!important;
  border:1px solid var(--case-copper)!important;
  background:color-mix(in srgb,var(--case-panel) 86%,#426149 14%)!important;
  color:var(--case-ink)!important;
}
body.single-sssf_study .sssf-study .sssf-case-list .sssf-private-project-notes > summary,
body.single-sssf_study .sssf-study .sssf-case-list .sssf-private-project-notes > summary small {
  color:var(--case-ink)!important;
  -webkit-text-fill-color:var(--case-ink)!important;
}
body.single-sssf_study .sssf-study .sssf-case-list .sssf-private-project-notes > summary {padding:17px 19px!important;}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > .sssf-section-footer {
  margin:0 clamp(18px,3.5vw,46px) 18px!important;
  border-color:var(--case-edge);
  padding:16px 0 0;
}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > .sssf-section-footer a,
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > .sssf-section-footer button {
  color:var(--case-link)!important;
  -webkit-text-fill-color:var(--case-link)!important;
}
/* In Day mode, use the central palette: no cream-on-parchment or black-on-charcoal. */
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case,
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary {
  color:var(--sss-text)!important;
}
@media(max-width:760px) {
  body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary {
    grid-template-columns:54px minmax(0,1fr) 22px!important;
    gap:12px!important;
    padding:14px!important;
    min-height:88px;
  }
  body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary .sssf-case-number {
    width:50px;min-height:56px;font-size:25px!important;
  }
  body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary strong {font-size:21px!important;}
  body.single-sssf_study .sssf-study .sssf-case-list .sssf-voting {justify-content:flex-start;}
}
@media (prefers-reduced-motion:reduce) {
  body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case {transition:none;}
}
@media print {
  body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case,
  body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary,
  body.single-sssf_study .sssf-study .sssf-case-list .sssf-body blockquote {
    background:#fff!important;color:#111!important;box-shadow:none!important;border-color:#777!important;
  }
  body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary strong,
  body.single-sssf_study .sssf-study .sssf-case-list .sssf-body p {color:#111!important;-webkit-text-fill-color:#111!important;}
}

/* v1.0.7: Layout reconstruction, not just decorative restyling. */
body.single-sssf_study .sssf-study .sssf-case-list {max-width:1100px;margin-inline:auto;gap:20px}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case {
  background:linear-gradient(145deg,#20282a 0%,#171d20 100%)!important;
  border:1px solid #b87943!important;
  border-radius:18px!important;
  box-shadow:0 18px 45px #0004, inset 0 1px 0 #f4ca8b12;
}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case[open] > summary {
  background:radial-gradient(ellipse at 82% 25%,#b47b4838,transparent 46%),linear-gradient(115deg,#18252a,#2e241f)!important;
  min-height:128px;
}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary .sssf-case-number {
 position:relative;width:70px;min-height:90px;align-self:stretch;border-radius:3px 3px 0 0;
 background:linear-gradient(145deg,#ba7841,#6b361e)!important;
 box-shadow:0 7px 18px #0005;
}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary .sssf-case-number::before{
 content:'CASE';position:absolute;top:11px;left:0;right:0;text-align:center;
 color:#ffe6c0;font:700 9px/1.1 Arial,sans-serif;letter-spacing:.18em;
}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary .sssf-case-number {padding-top:20px}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary strong{font-size:clamp(28px,3vw,43px)!important;line-height:1.12!important}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > .sssf-body {
  padding:24px clamp(18px,3vw,38px) 6px!important;
  margin:0!important;max-width:none!important;
}
body.single-sssf_study .sssf-study .sssf-case-list .sss-case-evidence-panel {
  position:relative;display:block;margin:0 0 14px;padding:18px 24px 20px 92px;
  border:1px solid #716052;border-radius:12px;
  background:linear-gradient(110deg,#282b2b,#242829);
  box-shadow:inset 0 1px 0 #ffffff09,0 8px 22px #0002;
  color:#fff2df!important;
}
body.single-sssf_study .sssf-study .sssf-case-list .sss-case-evidence-panel::before{
  content:'“';position:absolute;left:18px;top:18px;width:50px;height:50px;
  display:grid;place-items:center;color:#f7bb70;font:normal 48px/1 Georgia,serif;
  border-right:1px solid #ad794c;
}
body.single-sssf_study .sssf-study .sssf-case-list .sss-case-evidence-evidence::before {content:'▤';font-size:37px}
body.single-sssf_study .sssf-study .sssf-case-list .sss-case-evidence-finding::before {content:'⚖';font-size:34px}
body.single-sssf_study .sssf-study .sssf-case-list .sss-case-evidence-panel :is(h3,h4,h5){margin:0 0 9px!important;color:#edb375!important;-webkit-text-fill-color:#edb375!important;font:750 12px/1.45 Arial,sans-serif!important;letter-spacing:.14em;text-transform:uppercase}
body.single-sssf_study .sssf-study .sssf-case-list .sss-case-evidence-panel :is(p,blockquote){margin:0 0 8px!important;padding:0!important;border:0!important;background:none!important;max-width:none!important;color:#f7ebdc!important;-webkit-text-fill-color:#f7ebdc!important;font:normal clamp(16px,1.3vw,19px)/1.65 Georgia,serif!important}
body.single-sssf_study .sssf-study .sssf-case-list .sss-case-evidence-panel .scripture-links{margin:6px 0 0!important;display:flex;gap:10px;flex-wrap:wrap}
body.single-sssf_study .sssf-study .sssf-case-list .sss-case-reference-pill {
  display:inline-flex;align-items:center;padding:7px 14px!important;margin:4px 4px 4px 0;
  border:1px solid #a46f43!important;border-radius:100px;background:#3b2c23!important;
  color:#ffd2a0!important;-webkit-text-fill-color:#ffd2a0!important;
  font:650 15px/1.4 Georgia,serif!important;text-decoration:none!important;
}
body.single-sssf_study .sssf-study .sssf-case-list .sss-case-reference-pill:hover {background:#664128!important}
body.single-sssf_study .sssf-study .sssf-case-list .sssf-case-related-chapter{margin:16px 30px!important}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > .sssf-interactions{margin:18px 30px!important}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > .sssf-private-project-notes{margin:12px 30px!important}
body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > .sssf-section-footer{margin:12px 30px 22px!important}
/* The design intentionally retains dark evidence panels in both modes; their text is always light. */
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case {
 background:var(--sss-panel,#f7eedf)!important;border-color:var(--sss-border,#b39a7e)!important;
}
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case[open] > summary {
 background:linear-gradient(110deg,#fff5e6,#e9d5ba)!important;
}
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary strong{
 color:var(--sss-title,#39281f)!important;-webkit-text-fill-color:var(--sss-title,#39281f)!important;
}
@media(max-width:700px){
 body.single-sssf_study .sssf-study .sssf-case-list .sss-case-evidence-panel{padding:60px 16px 18px}
 body.single-sssf_study .sssf-study .sssf-case-list .sss-case-evidence-panel::before{left:17px;top:9px;height:38px;border-right:0}
 body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary .sssf-case-number{width:50px;min-height:69px}
 body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > summary strong{font-size:22px!important}
 body.single-sssf_study .sssf-study .sssf-case-list .sssf-case-related-chapter,
 body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > .sssf-interactions,
 body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > .sssf-private-project-notes,
 body.single-sssf_study .sssf-study .sssf-case-list > details.sssf-case > .sssf-section-footer{margin-left:16px!important;margin-right:16px!important}
}
@media print{body.single-sssf_study .sssf-study .sssf-case-list .sss-case-evidence-panel{box-shadow:none;background:white!important;border:1px solid #aaa;color:black!important}}
