/* Scrapyard Saints v1.2 — site-wide night/day theme, without editing Kadence files.
   The plugin's own section design stays intact; WordPress/Kadence wrappers become cohesive. */
html.sss-mode-night {color-scheme:dark;--sss-page:#151a1c;--sss-panel:#212326;--sss-paper:#2b2926;--sss-text:#f3e6d7;--sss-soft:#d5c4b3;--sss-border:#564738;--sss-link:#eab17e;--sss-hdr:#141618;--sss-title:#f6e9d8;}
html.sss-mode-day {color-scheme:light;--sss-page:#e9ddc9;--sss-panel:#f7eedf;--sss-paper:#fff9ee;--sss-text:#302720;--sss-soft:#5d4c3e;--sss-border:#b39a7e;--sss-link:#8c4320;--sss-hdr:#f8eedf;--sss-title:#39281f;}
/* For users without scripts, fallback to the intended night appearance. */
html:not(.sss-mode-day):not(.sss-mode-night){--sss-page:#151a1c;--sss-panel:#212326;--sss-paper:#2b2926;--sss-text:#f3e6d7;--sss-soft:#d5c4b3;--sss-border:#564738;--sss-link:#eab17e;--sss-hdr:#141618;--sss-title:#f6e9d8;}
html.sss-mode-night body,html.sss-mode-day body,
html.sss-mode-night #wrapper,html.sss-mode-day #wrapper,
html.sss-mode-night .site,html.sss-mode-day .site,
html.sss-mode-night .site-content,html.sss-mode-day .site-content {
  background:var(--sss-page)!important;color:var(--sss-text);
}
html.sss-mode-night .site-header,html.sss-mode-day .site-header,
html.sss-mode-night #masthead,html.sss-mode-day #masthead,
html.sss-mode-night .site-header-row-container-inner,html.sss-mode-day .site-header-row-container-inner,
html.sss-mode-night .site-header-row-container,html.sss-mode-day .site-header-row-container,
html.sss-mode-night .site-footer,html.sss-mode-day .site-footer,
html.sss-mode-night .site-bottom-footer-wrap,html.sss-mode-day .site-bottom-footer-wrap,
html.sss-mode-night .site-middle-footer-wrap,html.sss-mode-day .site-middle-footer-wrap {
  background:var(--sss-hdr)!important;color:var(--sss-text)!important;border-color:var(--sss-border)!important;
}
html.sss-mode-night .site-header a,html.sss-mode-day .site-header a,
html.sss-mode-night .site-footer a,html.sss-mode-day .site-footer a,
html.sss-mode-night .site-title a,html.sss-mode-day .site-title a {color:var(--sss-text)!important}
/* Kadence places the brand name in .site-branding .site-title / a.brand.
   These rules outrank theme identity colors, including colors assigned to the
   clickable brand link; avoid affecting navigation or the other color mode. */
html.sss-mode-night #masthead .site-branding .site-title,
html.sss-mode-night #masthead .site-branding .site-title a,
html.sss-mode-night #masthead .site-branding a.brand,
html.sss-mode-night #masthead .site-branding .site-title-wrap,
html.sss-mode-night .site-header .site-branding .site-title,
html.sss-mode-night .site-header .site-branding .site-title a,
html.sss-mode-night .site-header .site-branding a.brand {
  color:#f6e9d8!important;
  -webkit-text-fill-color:#f6e9d8!important;
  opacity:1!important;
}
/* Restore a dark readable site name in daylight without changing its layout. */
html.sss-mode-day #masthead .site-branding .site-title,
html.sss-mode-day #masthead .site-branding .site-title a,
html.sss-mode-day #masthead .site-branding a.brand,
html.sss-mode-day .site-header .site-branding .site-title,
html.sss-mode-day .site-header .site-branding .site-title a,
html.sss-mode-day .site-header .site-branding a.brand {
  color:#39281f!important;
  -webkit-text-fill-color:#39281f!important;
  opacity:1!important;
}
html.sss-mode-night .site-header a:hover,html.sss-mode-day .site-header a:hover {color:var(--sss-link)!important}
html.sss-mode-night .main-navigation .menu-item a,html.sss-mode-day .main-navigation .menu-item a {color:var(--sss-text)!important}
html.sss-mode-night .site-footer *,html.sss-mode-day .site-footer * {border-color:var(--sss-border)}
html.sss-mode-night body:not(.sss-immersive) .entry-content,
html.sss-mode-day body:not(.sss-immersive) .entry-content {color:var(--sss-text)}
html.sss-mode-night body:not(.sss-immersive) .entry-content a,
html.sss-mode-day body:not(.sss-immersive) .entry-content a {color:var(--sss-link)}
html.sss-mode-night body:not(.sss-immersive) .entry-title,
html.sss-mode-day body:not(.sss-immersive) .entry-title {color:var(--sss-title)}
/* Pull all plugin-produced page types edge-to-edge across the Kadence site container. */
body.sss-immersive .content-container.site-container,
body.sss-immersive .site-container.content-container,
body.sss-immersive #primary,
body.sss-immersive .content-area,
body.sss-immersive .site-main,
body.sss-immersive .entry,
body.sss-immersive .entry-content,
body.sss-immersive .single-content {max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;}
body.sss-immersive .content-container.site-container {display:block!important;}
body.sss-immersive .entry-content-wrap,
body.sss-immersive .content-bg,
body.sss-immersive article.entry,
body.sss-immersive .single-content,
body.sss-immersive .entry-content {box-shadow:none!important;border:0!important;border-radius:0!important;background:var(--sss-page)!important;}
body.sss-immersive .entry-content-wrap {padding:0!important;}
body.sss-immersive .entry-header,
body.sss-immersive .entry-hero,
body.sss-immersive .entry-hero-container-inner,
body.sss-immersive .entry-title-wrap {display:none!important;}
body.sss-immersive .site-main {padding-top:0!important;padding-bottom:0!important;}
body.sss-immersive .sss-site,body.sss-immersive .sss-library,body.sss-immersive .sss-investigation-wrapper {width:100%;max-width:none;}
/* Keep Kadence's native blocks and menus functional; avoid overriding plugin-specific heading colors. */
.sss-appearance-toggle{display:inline-flex;align-items:center;gap:.45rem;border:1px solid var(--sss-border);background:var(--sss-panel);color:var(--sss-text);border-radius:5px;padding:.6rem .9rem;font:700 12px/1.3 system-ui,sans-serif;letter-spacing:.02em;cursor:pointer;white-space:nowrap;z-index:900;transition:background .2s,color .2s}
.sss-appearance-toggle:hover{border-color:var(--sss-link);color:var(--sss-link)}
.sss-appearance-toggle:focus-visible{outline:3px solid #d4a071;outline-offset:3px}
.sss-appearance-toggle .sss-toggle-icon{font-size:1.05rem}
.sss-header-toggle{margin-left:1rem;align-self:center}
.sss-floating-toggle{position:fixed;top:84px;right:14px;box-shadow:0 5px 24px #0005}
/* Aged parchment in day mode: all plugin content, not only Kadence's wrappers. */
html.sss-mode-day .sss-site {background:#eadcc4;color:#332a24}
html.sss-mode-day .sss-site .sss-hero{background:radial-gradient(ellipse at 80% 30%,#e3bc93 0%,transparent 50%),linear-gradient(135deg,#f5ecdd 0%,#e1cfb5 100%)}
html.sss-mode-day .sss-backdrop{background:linear-gradient(180deg,transparent,#d9bfa2)}
html.sss-mode-day .sss-site h1,html.sss-mode-day .sss-site h2,
html.sss-mode-day .sss-site .sss-hero-copy>p:not(.sss-quiet) {color:#342820}
html.sss-mode-day .sss-site h1 em {color:#87482b}
html.sss-mode-day .sss-quiet {color:#765745}
html.sss-mode-day .sss-site .sss-btn-outline{background:#f7ead8;color:#442d22!important;border-color:#9d704e}
html.sss-mode-day .sss-three {background:#eadcc4}
html.sss-mode-day .sss-tile {background:#fcf5e9;color:#32271f;border-color:#c6a587}
html.sss-mode-day .sss-tile h2{color:#3b2a20}
html.sss-mode-day .sss-tile p {color:#594537}
html.sss-mode-day .sss-tile-no{color:#95532f}
html.sss-mode-day .sss-tile a {color:#7c391d!important}
html.sss-mode-day .sss-featured{background:linear-gradient(115deg,#e4ceb2,#f7eddf);border-color:#b99d82}
html.sss-mode-day .sss-featured h2{color:#3c2b22}
html.sss-mode-day .sss-featured h2 em{color:#884727}
html.sss-mode-day .sss-featured p{color:#5c4433}
html.sss-mode-day .sss-feature-stats strong{color:#553324}
html.sss-mode-day .sss-feature-stats span,html.sss-mode-day .sss-feature-stats small{color:#6e4934}
html.sss-mode-day .sss-bottom{background:#eadcc4}
html.sss-mode-day .sss-bottom article{background:#fff7eb;border:1px solid #c5a78c;border-top:4px solid #9c522d}
html.sss-mode-day .sss-ending {background:#e3ccb0;color:#594433;border-color:#ad8a6e}
html.sss-mode-day .sss-ending a{color:#743c21!important}
html.sss-mode-day .sss-library {background:#e9ddc9;color:#34281f}
html.sss-mode-day .sss-library h1 {color:#3e2a20}
html.sss-mode-day .sss-library-head p {color:#604936}
html.sss-mode-day .sss-library-card {background:#fff8ed;border-color:#c6ae92;color:#32271f}
html.sss-mode-day .sss-library-card h2 a {color:#3c291f}
html.sss-mode-day .sss-library-card p {color:#564435}
html.sss-mode-day .sss-library-card>a {color:#843d23}
html.sss-mode-day .sss-library-empty{color:#604936}
/* Study page, discussion box and its form inherit night/day consistently. */
html.sss-mode-night .sss-investigation-wrapper {background:#171d20}
html.sss-mode-day .sss-investigation-wrapper {background:#eadcc4}
html.sss-mode-night .sss-investigation-note {color:#ead6bf}
html.sss-mode-day .sss-investigation-note {color:#503929}
html.sss-mode-night .sss-investigation-note a {color:#ecaf77}
html.sss-mode-day .sss-investigation-note a {color:#8d421f}
html.sss-mode-night .sss-investigation-frame{background:#17252d;border-color:#5f5448}
html.sss-mode-day .sss-investigation-frame{background:#f5ede0;border-color:#ae9276}
html.sss-mode-night .sss-study-discussion{background:#262728;border-color:#71563f;color:#f0e4d6}
html.sss-mode-night .sss-study-discussion h2,html.sss-mode-night .sss-study-discussion h3{color:#fae6cc}
html.sss-mode-night .sss-study-discussion .sss-discussion-intro,html.sss-mode-night .sss-study-discussion .sss-comment-help{color:#d6bea7}
html.sss-mode-night .sss-study-discussion textarea,html.sss-mode-night .sss-study-discussion input:not([type=checkbox]):not([type=submit]){background:#161b1d;border-color:#7a6857;color:#faf1e4}
html.sss-mode-night .sss-study-discussion .sss-comment-list li{background:#1c2224;color:#f0e4d6}
html.sss-mode-night .sss-study-discussion a {color:#efb782}
html.sss-mode-day .sss-study-discussion{background:#fff6e9;border-color:#b6987b;color:#32251e}
@media(max-width:820px){.sss-appearance-toggle{font-size:11px;padding:.48rem .65rem}.sss-header-toggle{margin-left:.35rem}}
@media(max-width:650px){.sss-floating-toggle{top:auto;bottom:18px;right:16px}.sss-appearance-toggle .sss-toggle-label{font-size:11px}}
@media print{.sss-appearance-toggle{display:none!important}html.sss-mode-night body,html.sss-mode-day body{background:white!important;color:#111!important}}

/* v1.2.3: One set of site-owned controls; persistent while reading. */
.sss-site-tools{display:flex;align-items:center;gap:7px;z-index:1002;max-width:calc(100vw - 24px)}
.sss-site-tools button{margin:0;white-space:nowrap;min-height:37px;border:1px solid var(--sss-border);border-radius:6px;background:var(--sss-panel);color:var(--sss-text);font:700 12px/1.3 system-ui,sans-serif;padding:8px 11px;cursor:pointer}
.sss-site-tools button:hover{border-color:var(--sss-link);color:var(--sss-link)}
.sss-site-tools button:focus-visible{outline:3px solid #d4a071;outline-offset:2px}
.sss-header-tools{margin-left:12px}
.sss-fallback-tools{position:fixed;right:16px;top:72px;padding:7px;background:var(--sss-hdr);border:1px solid var(--sss-border);border-radius:9px;box-shadow:0 5px 24px #0005}
.sss-site-tools.sss-tools-docked{position:fixed!important;top:16px;right:18px;left:auto;margin:0;padding:8px;background:var(--sss-hdr);border:1px solid var(--sss-border);border-radius:10px;box-shadow:0 5px 24px #0007}
body.admin-bar .sss-site-tools.sss-tools-docked{top:46px}
@media(max-width:782px){body.admin-bar .sss-site-tools.sss-tools-docked{top:62px}}
@media(max-width:650px){.sss-site-tools{gap:4px}.sss-site-tools button{padding:7px 8px;font-size:11px;min-height:35px}.sss-header-tools{margin-left:4px}.sss-site-tools.sss-tools-docked{top:auto!important;bottom:12px;right:12px;left:auto}}
@media print{.sss-site-tools{display:none!important}}

/* v1.2.4: parent controls remain readable and anchored while scrolling. */
.sss-site-tools.sss-tools-docked {z-index:2147483000!important}
.sss-site-tools .sss-reading-size:focus-visible,.sss-site-tools .sss-reading-print:focus-visible {outline:3px solid #e7b576;outline-offset:3px}

/* v1.2.6: no inset border around the embedded investigation. */
html.sss-mode-night .sss-investigation-frame,html.sss-mode-day .sss-investigation-frame{border:0!important}

/* v0.6.222: readable homepage hero text when the custom theme is in day mode.
   Only these four homepage details are changed; night mode is unaffected.
   The !important rules also win over the later-loaded home-latest.css palette. */
html.sss-mode-day .sss-site .sss-hero .sss-hero-copy #sss-headline em {
  color:#693715 !important;
  -webkit-text-fill-color:#693715 !important;
  opacity:1 !important;
}
html.sss-mode-day .sss-site .sss-hero .sss-hero-kicker {
  color:#7b401d !important;
  -webkit-text-fill-color:#7b401d !important;
  opacity:1 !important;
}
html.sss-mode-day .sss-site .sss-hero .sss-hero-benefits span {
  color:#57331e !important;
  -webkit-text-fill-color:#57331e !important;
  background:#faecd6 !important;
  border-color:#9e7148 !important;
  opacity:1 !important;
}
html.sss-mode-day .sss-site .sss-hero .sss-hero-copy .sss-quiet {
  color:#69422c !important;
  -webkit-text-fill-color:#69422c !important;
  opacity:1 !important;
}
