/* Scrapyard Saints editorial system 1.0.11. Presentation only.
   Reuse existing Foundation elements. No replacement links, IDs or event handlers. */
:root{--sss-editorial-gold:#e8a75f;--sss-editorial-border:#91613b;--sss-editorial-ink:#f9ecd8;--sss-editorial-surface:#222a2c;--sss-editorial-muted:#d7c6af}

/* Site-wide: controls and link accessibility, preserving the central palette. */
.sss-site-content :is(.sssf,.sss-account,.sssw-workspace) :is(a,button,summary,input,select,textarea):focus-visible{outline:2px solid var(--sss-accent)!important;outline-offset:3px}
.sss-site-content .sssf :is(.sssf-card,.sssf-lib-card){transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}

/* Every study gets the same compact numbered-card feel from the approved Ten Arguments map. */
body.single-sssf_study .sssf-study .sssf-study-overview{gap:14px!important}
body.single-sssf_study .sssf-study .sssf-study-overview>div{
  border:1px solid #9d6b43!important;border-radius:11px!important;
  background:radial-gradient(ellipse at 92% 10%,#7446283c,transparent 53%),linear-gradient(135deg,#263033,#202729)!important;
  box-shadow:inset 0 1px #ffffff12,0 10px 22px #0003;
  padding:clamp(19px,2vw,26px)!important;gap:8px!important;
}
body.single-sssf_study .sssf-study .sssf-study-overview>div small{
  font:800 11px/1.45 Arial,sans-serif!important;letter-spacing:.13em!important;
  text-transform:uppercase;color:#f0b570!important;
}
body.single-sssf_study .sssf-study .sssf-study-overview>div strong{
  color:#fff0d7!important;font:500 clamp(20px,2vw,28px)/1.22 Georgia,serif!important;
}
body.single-sssf_study .sssf-study .sssf-study-overview>div span{color:#e0d2be!important;line-height:1.6!important}

/* Chapter navigation resembles the screenshot's compact, deliberate study rail. */
body.single-sssf_study .sssf-study .sssf-sidebar-drawer{
  border:1px solid #855e3d!important;border-radius:12px!important;
  background:linear-gradient(165deg,#1e292c,#192124)!important;
  box-shadow:0 16px 35px #0003;overflow:hidden;
}
body.single-sssf_study .sssf-study .sssf-sidebar-drawer>summary{
  color:#f0b674!important;border-bottom:1px solid #65513e;
  letter-spacing:.12em;font:800 12px/1.45 Arial,sans-serif!important;
}
body.single-sssf_study .sssf-study .sssf-sidebar-chapter-list a{
  display:flex!important;align-items:flex-start!important;gap:10px!important;
  padding:10px 8px!important;border-bottom:1px solid #5f544350!important;
  color:#f8e9d3!important;text-decoration:none!important;
  font-size:clamp(12px,.95vw,15px)!important;line-height:1.5!important;
  border-radius:5px;transition:background .15s,color .15s;
}
body.single-sssf_study .sssf-study .sssf-sidebar-chapter-list a:hover,
body.single-sssf_study .sssf-study .sssf-sidebar-chapter-list a:focus-visible{
  background:#62412656!important;color:#ffd09b!important;
}
body.single-sssf_study .sssf-study .sssf-sidebar-chapter-list a span:first-child{
  color:#eda95f!important;font:800 12px/1.55 Arial,sans-serif!important;
  flex:0 0 24px!important;
}
body.single-sssf_study .sssf-study .sssf-sidebar-search{
  background:#111a1e!important;color:#fff1df!important;border:1px solid #8a684b!important;
  border-radius:7px!important;max-width:100%;
}
body.single-sssf_study .sssf-study .sssf-sidebar-search::placeholder{color:#d6c6b4!important}

/* Existing chapter summaries are already clickable, numbered, and progress-aware.
   Render them as elegant editorial cards: no new duplicates or JavaScript needed. */
body.single-sssf_study .sssf-study details.sssf-chapter.sssf-chapter-progressive{
  border:1px solid #92653f!important;border-radius:12px!important;
  background:linear-gradient(125deg,#242b2d,#222426)!important;
  box-shadow:0 10px 25px #0003!important;overflow:hidden;
}
body.single-sssf_study .sssf-study details.sssf-chapter.sssf-chapter-progressive:hover{border-color:#d49a61!important}
body.single-sssf_study .sssf-study details.sssf-chapter.sssf-chapter-progressive > summary.sssf-chapter-summary{
  background:radial-gradient(ellipse at 100% 0%,#985a2e2d,transparent 50%),linear-gradient(130deg,#252e30,#262829)!important;
  border:0!important;min-height:136px!important;padding:clamp(20px,2.7vw,33px)!important;
}
body.single-sssf_study .sssf-study details.sssf-chapter.sssf-chapter-progressive[open] > summary.sssf-chapter-summary{border-bottom:1px solid #7b5b3e!important}
body.single-sssf_study .sssf-study .sssf-chapter-summary-label{
  color:#f0af6e!important;font:800 12px/1.5 Arial,sans-serif!important;letter-spacing:.14em;text-transform:uppercase;
}
body.single-sssf_study .sssf-study .sssf-chapter-summary strong{
  color:#fff0d9!important;font:normal clamp(27px,3vw,39px)/1.23 Georgia,serif!important;
}
body.single-sssf_study .sssf-study .sssf-chapter-progress-label{color:#efba83!important}
body.single-sssf_study .sssf-study .sssf-chapter-chevron{color:#f0ae67!important}
body.single-sssf_study .sssf-study .sssf-chapter-full{color:#f7eada!important;background:#1b262a!important}
body.single-sssf_study .sssf-study .sssf-chapter-full :is(h2,h3){color:#fff0d9!important}
body.single-sssf_study .sssf-study .sssf-chapter-full .sssf-body{line-height:1.8}

/* Shared TOC list as an exploratory card index wherever Foundation renders one. */
body.single-sssf_study .sssf-study .sssf-toc{border:1px solid #916342!important;border-radius:12px!important;background:#1d292c!important;overflow:hidden}
body.single-sssf_study .sssf-study .sssf-toc>summary{background:#263033!important;color:#ffe6c8!important;padding:17px 23px!important}
body.single-sssf_study .sssf-study .sssf-toc-columns{gap:20px!important;padding:20px!important}
body.single-sssf_study .sssf-study .sssf-toc li{padding:9px 10px!important;border:1px solid #765a4073;border-radius:7px;background:#292f31;margin:7px 0!important}
body.single-sssf_study .sssf-study .sssf-toc li a{color:#ffdfb6!important;text-decoration:none}
body.single-sssf_study .sssf-study .sssf-toc li:hover{border-color:#db9c63}

/* Library cards use exactly the same copper border, warm surface and rounded treatment. */
.sssf-library-redesign .sssf-lib-card{
  border:1px solid #936443!important;border-radius:12px!important;
  background:radial-gradient(ellipse at 100% 0%,#96562a32,transparent 56%),linear-gradient(140deg,#283134,#25292a)!important;
  box-shadow:0 14px 29px #0003!important;
}
.sssf-library-redesign .sssf-lib-card:hover{border-color:#e5ab77!important;box-shadow:0 17px 37px #0005!important}
.sssf-library-redesign .sssf-lib-read{border-radius:999px!important;background:linear-gradient(180deg,#b76c39,#7c4323)!important;color:#fff2df!important}
.sssf-library-redesign .sssf-lib-meta span{border-radius:999px!important}
.sssf-library-redesign .sssf-lib-filter{border-radius:8px!important}
.sssf-unified-featured .sssf-grid .sssf-card{border-radius:12px!important;border-color:#926442!important;background:linear-gradient(138deg,#283033,#292623)!important}

/* Profile/workspace cards receive the same framing without moving their controls. */
.sss-account :is(.sss-account-card,.sss-account-panel),
.sssw-workspace :is(.sssw-card,.sssw-panel){
  border-radius:11px;border-color:var(--sss-border);box-shadow:0 7px 22px #0001;
}

/* Day mode: readable warm parchment cards, not dark text on dark gradient. */
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-study-overview>div,
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-sidebar-drawer,
html.sss-mode-day body.single-sssf_study .sssf-study details.sssf-chapter.sssf-chapter-progressive,
html.sss-mode-day body.single-sssf_study .sssf-study details.sssf-chapter.sssf-chapter-progressive>summary.sssf-chapter-summary,
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-toc,
html.sss-mode-day .sssf-library-redesign .sssf-lib-card{
  background:linear-gradient(140deg,#fff9ee,#f0e2cf)!important;border-color:#b58c67!important;box-shadow:0 8px 22px #5b39201a!important;
}
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-study-overview>div :is(strong,span),
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-chapter-summary strong,
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-sidebar-chapter-list a,
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-chapter-full :is(h2,h3),
html.sss-mode-day .sssf-library-redesign .sssf-lib-card h3 a{color:#3c2a1e!important;-webkit-text-fill-color:#3c2a1e!important}
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-study-overview>div small,
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-chapter-summary-label,
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-sidebar-drawer>summary,
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-sidebar-chapter-list a span:first-child{color:#8b491f!important;-webkit-text-fill-color:#8b491f!important}
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-chapter-full{background:#fff9ee!important;color:#36291f!important}
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-chapter-progress-label,
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-chapter-chevron{color:#854720!important}
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-sidebar-search{background:#fffaf2!important;color:#35291d!important;border-color:#a68262!important}
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-sidebar-search::placeholder{color:#6d5b4b!important}
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-toc>summary{background:#ebd9be!important;color:#46301e!important}
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-toc li{background:#fffaf1;border-color:#c9a98b}
html.sss-mode-day body.single-sssf_study .sssf-study .sssf-toc li a{color:#7b401e!important}
html.sss-mode-day .sssf-unified-featured .sssf-grid .sssf-card{background:linear-gradient(130deg,#fff9ef,#f0e3d2)!important;border-color:#b58c67!important}

@media(max-width:760px){
 body.single-sssf_study .sssf-study .sssf-study-overview{grid-template-columns:1fr!important}
 body.single-sssf_study .sssf-study details.sssf-chapter.sssf-chapter-progressive>summary.sssf-chapter-summary{min-height:100px!important;padding:17px!important}
 body.single-sssf_study .sssf-study .sssf-chapter-summary strong{font-size:26px!important}
 body.single-sssf_study .sssf-study .sssf-toc-columns{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){.sss-site-content .sssf :is(.sssf-card,.sssf-lib-card){transition:none!important}}
@media print{
 body.single-sssf_study .sssf-study :is(.sssf-study-overview>div,.sssf-sidebar-drawer,details.sssf-chapter.sssf-chapter-progressive,.sssf-chapter-full),
 .sssf-library-redesign .sssf-lib-card{background:#fff!important;color:#111!important;border-color:#aaa!important;box-shadow:none!important}
 body.single-sssf_study .sssf-study .sssf-chapter-summary strong{color:#111!important;-webkit-text-fill-color:#111!important}
}
