/*
Theme Name: Scrapyard Saints
Theme URI: https://scrapyardsaints.com/
Author: Scrapyard Saints
Description: Purpose-built WordPress shell for Scrapyard Saints, coordinated with Unified Foundation and the separate Video Companion.
Version: 1.2.22
Requires PHP: 7.4
Text Domain: scrapyard-saints
*/
:root {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;--sss-accent:#e2a06a;--sss-font-size:17px;}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}body{margin:0;background:var(--sss-page);color:var(--sss-text);font:400 var(--sss-font-size)/1.7 Georgia,'Times New Roman',serif}body.admin-bar{min-height:calc(100vh - 32px)}
a{color:var(--sss-link)}a:hover{filter:brightness(1.12)}h1,h2,h3,h4{color:var(--sss-title);line-height:1.2}img,iframe{max-width:100%}button,input,select,textarea{font:inherit}button{cursor:pointer}
.sss-custom-header{background:var(--sss-hdr);border-bottom:1px solid var(--sss-border);position:relative;z-index:200} .sss-custom-header .sss-header-inner{width:min(1320px,100%);margin:auto;min-height:74px;padding:12px 24px;display:flex;align-items:center;gap:26px;justify-content:space-between}.sss-site-name{font:700 23px/1.2 Georgia,serif;color:var(--sss-title);white-space:nowrap;text-decoration:none}.sss-site-name:hover{color:var(--sss-link)}.sss-nav-wrap{display:flex;gap:24px;align-items:center;min-width:0}.sss-custom-header .menu,.sss-custom-header .sub-menu{list-style:none;margin:0;padding:0}.sss-custom-header .menu{display:flex;flex-wrap:wrap;gap:7px 22px;align-items:center}.sss-custom-header .menu>li{position:relative}.sss-custom-header .menu a{display:block;text-decoration:none;color:var(--sss-text);font:500 14px/1.5 Arial,sans-serif;padding:8px 0}.sss-custom-header .menu a:hover,.sss-custom-header .menu .current-menu-item>a{color:var(--sss-link)}.sss-custom-header .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:200px;background:var(--sss-panel);border:1px solid var(--sss-border);box-shadow:0 12px 26px #0004;padding:10px 16px;z-index:300}.sss-custom-header li:hover>.sub-menu,.sss-custom-header li:focus-within>.sub-menu{display:block}.sss-custom-header .sub-menu li a{padding:9px 3px}.sss-theme-mode{display:inline-flex;align-items:center;gap:7px;background:var(--sss-panel);color:var(--sss-text);border:1px solid var(--sss-border);border-radius:6px;font:700 12px Arial,sans-serif;padding:10px 13px;white-space:nowrap}.sss-theme-mode:hover{border-color:var(--sss-accent)}.sss-theme-mode:focus-visible,.sss-nav-toggle:focus-visible{outline:3px solid var(--sss-accent);outline-offset:2px}.sss-nav-toggle{display:none;background:var(--sss-panel);color:var(--sss-text);border:1px solid var(--sss-border);border-radius:5px;padding:8px 12px}.sss-site-content{min-height:65vh}.sss-site-content .sss-regular{max-width:1180px;margin:0 auto;padding:32px 22px 60px}.sss-site-content .sss-full{width:100%;max-width:none;padding:0;margin:0}.sss-site-content .entry-content{width:100%;min-width:0}.sss-regular .entry-content{max-width:900px}.sss-custom-footer{background:var(--sss-hdr);color:var(--sss-soft);border-top:1px solid var(--sss-border);text-align:center;padding:30px 20px;font:13px Arial,sans-serif}.sss-custom-footer a{color:var(--sss-link)}
@media(max-width:900px){.sss-custom-header .sss-header-inner{flex-wrap:wrap}.sss-nav-toggle{display:inline-flex}.sss-nav-wrap{display:none;order:3;width:100%;flex-direction:column;align-items:stretch;gap:12px}.sss-nav-wrap.is-open{display:flex}.sss-custom-header .menu{flex-direction:column;align-items:stretch;gap:0}.sss-custom-header .menu a{padding:10px 0}.sss-custom-header .sub-menu{display:block;position:static;box-shadow:none;border:0;border-left:2px solid var(--sss-border);padding:0 12px;margin-bottom:6px}.sss-theme-mode{align-self:flex-start}}
@media print{.sss-custom-header,.sss-custom-footer,.sss-nav-toggle{display:none!important}.sss-site-content .sss-regular{max-width:none;margin:0;padding:0}body{background:#fff!important;color:#111!important}}

/* v1.2.1 — Theme-owned shared page layout. New pages use this centered wide
   canvas instead of falling back to the old 900px left-aligned article column.
   Existing edge-to-edge Foundation templates still use .sss-full. */
:root { --sss-page-content-width: 1380px; --sss-page-gutter: clamp(16px, 3vw, 40px); }
.sss-site-content .sss-wide {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 30px var(--sss-page-gutter) 64px;
}
.sss-site-content .sss-wide > article,
.sss-site-content .sss-wide .entry-content {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--sss-page-content-width);
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}
.sss-site-content .sss-wide .sss-page-title {
  max-width: var(--sss-page-content-width);
  margin: 0 auto 28px;
}
/* Explicit narrow page layouts remain available, but are centered too. */
.sss-site-content .sss-regular .entry-content { margin-left: auto; margin-right: auto; }
@media (max-width: 640px) {
  .sss-site-content .sss-wide { padding-top: 18px; padding-bottom: 36px; }
}
@media print {
  .sss-site-content .sss-wide { max-width:none; padding:0; }
}

/* v1.2.2 — Display original uploaded Scrapyard Saints wordmark in the header.
   Brand presentation is theme-owned; Foundation and site navigation remain unchanged. */
.sss-custom-header .sss-site-name {
  display:inline-flex; align-items:center; flex:0 0 auto;
  width:245px; max-width:32vw; line-height:1;
}
.sss-custom-header .sss-site-logo {
  display:block; width:100%; height:auto; max-height:76px; object-fit:contain;
}
.sss-custom-header .sss-site-name:focus-visible {outline:3px solid var(--sss-accent); outline-offset:4px;}
@media(max-width:900px) {
  .sss-custom-header .sss-site-name {width:220px;max-width:min(65vw,220px);}
  .sss-custom-header .sss-site-logo {max-height:68px;}
}
@media(max-width:420px) {
  .sss-custom-header .sss-header-inner {gap:10px;padding-left:14px;padding-right:14px;}
  .sss-custom-header .sss-site-name {width:190px;max-width:60vw;}
}

/* v1.2.4 — Keep the theme-owned site header available while scrolling. */
.sss-custom-header {
  position: sticky;
  top: 0;
  z-index: 10000;
}
/* WP admin bar is fixed above the header on larger screens. */
body.admin-bar .sss-custom-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .sss-custom-header { top: 46px; }
}
@media (max-width: 600px) {
  body.admin-bar .sss-custom-header { top: 0; }
}
/* Keep tall mobile navigation accessible without losing the header. */
@media (max-width: 900px) {
  .sss-custom-header .sss-nav-wrap.is-open {
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
/* Scrolling to a heading should reveal it below the sticky masthead. */
html { scroll-padding-top: 110px; }
@media (max-width: 900px) { html { scroll-padding-top: 96px; } }
@media print { .sss-custom-header { position: static; } }

/* v1.2.8: Header Bible-reader dropdown; submenu uses the existing day/night palette. */
.sss-custom-header .menu > li.sss-bible-dropdown > a::after,
.sss-custom-header .menu > li:has(> .sub-menu) > a[href*="read-the-bible"]::after{content:" ▾";font-size:.8em;color:var(--sss-link)}
.sss-custom-header .sub-menu{min-width:280px;max-width:min(88vw,340px)}
.sss-custom-header .sub-menu a{white-space:normal}
.sss-custom-header .menu .sub-menu a:focus-visible{outline:2px solid var(--sss-accent);outline-offset:2px}
@media(max-width:900px){.sss-custom-header .sub-menu{max-width:100%;min-width:0}}

/* FAQ follows theme palette in both day and night modes. */
.sss-faq{max-width:1140px;margin:0 auto 60px;color:var(--sss-text);font-family:Georgia,'Times New Roman',serif}
.sss-faq-intro{color:var(--sss-soft);font-size:1.12rem;max-width:800px;margin:0 0 22px}
.sss-faq-topics{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px}
.sss-faq-topics a{border:1px solid var(--sss-border);background:var(--sss-panel);color:var(--sss-link);border-radius:24px;padding:7px 15px;text-decoration:none;font:600 13px/1.4 Arial,sans-serif}
.sss-faq-group{scroll-margin-top:100px;margin:36px 0}
.sss-faq-group h2{font-size:1.5rem;margin-bottom:14px}
.sss-faq-item{border:1px solid var(--sss-border);background:var(--sss-panel);border-radius:9px;margin:9px 0;overflow:hidden}
.sss-faq-item summary{padding:17px 21px;color:var(--sss-title);font-size:1.03rem;font-weight:700;cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px}
.sss-faq-item summary::-webkit-details-marker{display:none}
.sss-faq-item summary::after{content:'+';font:700 23px Arial,sans-serif;color:var(--sss-accent)}
.sss-faq-item[open] summary::after{content:'−'}
.sss-faq-item summary:hover{color:var(--sss-link)}
.sss-faq-item summary:focus-visible,.sss-faq-topics a:focus-visible{outline:3px solid var(--sss-accent);outline-offset:-3px}
.sss-faq-answer{padding:0 21px 17px;color:var(--sss-soft);line-height:1.75}
.sss-faq-answer p{margin:0}
.sss-faq-foot{margin-top:32px;border-top:1px solid var(--sss-border);padding-top:20px}
@media(max-width:600px){.sss-faq-item summary{padding:14px}.sss-faq-answer{padding:0 14px 15px}}

/* v1.2.12: Give the Holy Days link clear identity in the existing reading dropdown. */
.sss-custom-header .sub-menu .sss-holy-days-option>a{color:var(--sss-link);font-weight:700}
.sss-custom-header .sub-menu .sss-holy-days-option>a:hover,.sss-custom-header .sub-menu .sss-holy-days-option>a:focus-visible{text-decoration:underline}

/* v1.2.20 — aligned homepage feature bands */
body.home .sss-site .sssf-home-listen-guide,body.home .sss-site .sssf-home-community{width:min(1280px,calc(100% - 36px));max-width:1280px;margin-left:auto;margin-right:auto;box-sizing:border-box}
body.home .sss-site .sssf-home-community{padding:clamp(28px,3vw,44px) clamp(18px,2.5vw,36px);border:1px solid var(--sss-border,#564738);border-radius:15px;background:var(--sss-panel,#212326)}
body.home .sss-site .sssf-home-community-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body.home .sss-site .sssf-home-community-heading{max-width:100%;margin-bottom:25px}
body.home .sss-site .sssf-home-community-heading h2{max-width:850px;font-size:clamp(30px,3.2vw,49px)}
body.home .sss-site .sssf-home-listen-steps{min-width:0}body.home .sss-site .sssf-home-listen-guide{overflow:hidden}
html.sss-mode-day body.home .sss-site .sssf-home-community{background:var(--sss-panel,#f7eedf)}
@media(max-width:1080px){body.home .sss-site .sssf-home-listen-guide{grid-template-columns:1fr!important}body.home .sss-site .sssf-home-community-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){body.home .sss-site .sssf-home-community-grid{grid-template-columns:1fr}body.home .sss-site .sssf-home-community,body.home .sss-site .sssf-home-listen-guide{width:calc(100% - 20px)}}
