/* SWH Site Style (swh-) - one look for every subwoofer.help page.
   Dark + electric blue. Orange = warnings. No red anywhere. */
:root{--swh-bg:#0d0d0f;--swh-bg2:#111318;--swh-card:#16191f;--swh-card2:#1c2029;--swh-line:#272c36;--swh-tx:#f4f6fa;--swh-body:#d4d8e0;--swh-mut:#a0a8b6;
  --swh-b:#3a9bff;--swh-b2:#7cc0ff;--swh-ink:#031326;--swh-warn:#ff8a1f;--swh-ok:#34d399;--swh-r:16px}
html,body{overflow-x:hidden}
@supports (overflow:clip){html,body{overflow-x:clip}}

/* ---------- header / logo fit on phones (was 9px too wide at 390) ---------- */
@media(max-width:921px){
  .ast-primary-header-bar .ast-builder-grid-row{grid-template-columns:minmax(0,1fr) auto!important}
  .site-header-primary-section-left{min-width:0}
  .jg-logo svg{height:40px!important;max-width:100%}
  .site-header .site-branding,.site-header .ast-site-identity{min-width:0;max-width:100%}
}
@media(max-width:400px){.jg-logo svg{height:36px!important}.ast-primary-header-bar{min-height:72px}}
.site-header .main-header-menu .menu-item.swh-new>.menu-link:after{content:'NEW';font-size:10px;font-weight:900;letter-spacing:.5px;background:var(--swh-b);color:var(--swh-ink);border-radius:10px;padding:2px 6px;margin-left:6px;vertical-align:2px}

/* ---------- buttons everywhere: one shape ---------- */
.entry-content .wp-block-button__link,.entry-content button.wp-element-button{border-radius:40px!important;font-weight:800!important}

/* ---------- shared page kit (.swh) used by new pages and the plain-page wrapper ---------- */
.swh{color:var(--swh-body);font-size:17px;line-height:1.68}
.swh *{box-sizing:border-box}
.swh-hero{padding:72px 20px 56px;text-align:center;background:radial-gradient(900px 380px at 50% -40px,rgba(58,155,255,.22),transparent 65%),linear-gradient(180deg,#0d0d0f,#12141a);border-bottom:1px solid #12233d}
.swh-badge{display:inline-block;font-size:13px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:var(--swh-b);margin-bottom:12px}
.swh-hero h1{font-size:clamp(32px,6vw,54px)!important;line-height:1.1!important;font-weight:900!important;letter-spacing:-1.2px;color:#fff!important;margin:0 auto 14px!important;max-width:900px}
.swh-hero h1 em{font-style:normal;color:var(--swh-b)}
.swh-lead{font-size:19px;color:#c7ccd6;max-width:720px;margin:0 auto}
.swh-hero .swh-btns{margin-top:22px}
.swh-wrap{max-width:860px;margin:0 auto;padding:40px 20px 56px}
.swh-wrap.wide{max-width:1100px}
.swh h2{font-size:clamp(25px,4vw,34px)!important;font-weight:900!important;letter-spacing:-.6px;color:#fff!important;margin:42px 0 12px!important;line-height:1.2!important}
.swh h2:first-child{margin-top:0!important}
.swh h3{font-size:21px!important;font-weight:800!important;color:#fff!important;margin:28px 0 8px!important}
.swh h4{font-size:18px!important;color:#fff!important;margin:20px 0 6px!important}
.swh p{margin:0 0 14px}
.swh ul,.swh ol{margin:0 0 16px 1.3em!important;padding:0!important}
.swh ul{list-style:disc}.swh ol{list-style:decimal}
.swh li{margin:0 0 7px}
.swh li::marker{color:var(--swh-b)}
.swh a{color:var(--swh-b2)!important;text-decoration:underline;text-decoration-color:rgba(124,192,255,.35);text-underline-offset:3px}
.swh a:hover{text-decoration-color:var(--swh-b2)}
.swh strong,.swh b{color:#fff}
.swh code{background:var(--swh-card2);border:1px solid var(--swh-line);border-radius:6px;padding:1px 6px;font-size:.9em;color:#fff}
.swh hr{border:0;border-top:1px solid var(--swh-line);margin:32px 0}
/* answer box at top of guides */
.swh-answer{background:var(--swh-card);border:1px solid var(--swh-line);border-left:4px solid var(--swh-b);border-radius:14px;padding:16px 18px;margin:0 0 24px;font-size:18px;color:#fff}
.swh-answer b{color:var(--swh-b2)}
/* callouts: blue = good tip, orange = warning */
.swh-tip,.swh-warn{border-radius:14px;padding:14px 16px;margin:18px 0;border:1px solid;font-size:16px}
.swh-tip{background:rgba(58,155,255,.08);border-color:rgba(58,155,255,.45);color:#d6e9ff}
.swh-tip b,.swh-tip strong{color:var(--swh-b2)}
.swh-warn{background:rgba(255,138,31,.09);border-color:rgba(255,138,31,.6);color:#ffdcbc}
.swh-warn b,.swh-warn strong{color:var(--swh-warn)}
.swh-tip p:last-child,.swh-warn p:last-child{margin:0}
/* tables */
.swh-table{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:14px 0 22px;border:1px solid var(--swh-line);border-radius:14px}
.swh table{width:100%;border-collapse:collapse;font-size:15.5px;margin:0;border:0}
.swh th{background:var(--swh-card2)!important;color:#fff!important;text-align:left;font-weight:800;padding:11px 12px!important;border:0!important;border-bottom:1px solid var(--swh-line)!important;white-space:nowrap}
.swh td{padding:10px 12px!important;border:0!important;border-top:1px solid var(--swh-line)!important;color:var(--swh-body);vertical-align:top}
.swh tr:nth-child(even) td{background:rgba(255,255,255,.015)}
.swh td.hl,.swh th.hl{color:var(--swh-b2)!important;font-weight:800}
/* cards + grids */
.swh-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0 24px}
.swh-grid.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:860px){.swh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.swh-grid,.swh-grid.g2{grid-template-columns:1fr}}
.swh-card{background:var(--swh-card);border:1px solid var(--swh-line);border-radius:var(--swh-r);padding:18px}
.swh-card h3{margin:0 0 6px!important;font-size:19px!important}
.swh-card p{margin:0;color:var(--swh-mut);font-size:15.5px}
a.swh-card{display:block;text-decoration:none!important;transition:border-color .15s,transform .15s}
a.swh-card:hover{border-color:rgba(58,155,255,.6);transform:translateY(-2px)}
a.swh-card b{display:block;color:#fff;font-size:17px;margin-bottom:3px}
a.swh-card span{display:block;color:var(--swh-mut);font-size:15px;line-height:1.5}
a.swh-card:hover b{color:var(--swh-b2)}
.swh-card .ic{font-size:24px;display:block;margin-bottom:8px;line-height:1}
/* numbered steps */
.swh-steps{counter-reset:s;list-style:none!important;margin:16px 0 24px!important;padding:0!important}
.swh-steps>li{counter-increment:s;position:relative;padding:14px 16px 14px 60px;background:var(--swh-card);border:1px solid var(--swh-line);border-radius:14px;margin:0 0 10px}
.swh-steps>li::before{content:counter(s);position:absolute;left:14px;top:13px;width:32px;height:32px;border-radius:50%;background:var(--swh-b);color:var(--swh-ink);font-weight:900;display:grid;place-items:center;font-size:16px}
.swh-steps>li b:first-child{display:block;color:#fff;margin-bottom:2px}
/* faq */
.swh-faq{background:var(--swh-card);border:1px solid var(--swh-line);border-radius:14px;padding:4px 16px;margin:0 0 10px}
.swh-faq summary{cursor:pointer;font-weight:800;color:#fff;padding:12px 0;list-style:none}
.swh-faq summary::-webkit-details-marker{display:none}
.swh-faq summary::after{content:'+';float:right;color:var(--swh-b);font-weight:900}
.swh-faq[open] summary::after{content:'\2212'}
.swh-faq p{color:var(--swh-body);margin:0 0 12px}
/* buttons + chips */
.swh-btns{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.swh-btn{display:inline-block;padding:13px 22px;border-radius:40px;font-weight:800;font-size:16px;text-decoration:none!important;border:1px solid var(--swh-b);line-height:1.2}
.swh-btn.pri{background:var(--swh-b);color:var(--swh-ink)!important}.swh-btn.pri:hover{background:var(--swh-b2)}
.swh-btn.ghost{color:#fff!important;background:rgba(255,255,255,.04)}.swh-btn.ghost:hover{background:rgba(58,155,255,.12)}
.swh-related{border-top:1px solid var(--swh-line);margin-top:40px;padding-top:22px}
.swh-related h2{font-size:20px!important;margin:0 0 12px!important}
.swh-chips{display:flex;flex-wrap:wrap;gap:8px}
.swh-chips a{background:var(--swh-card);border:1px solid var(--swh-line);border-radius:30px;padding:8px 14px;font-size:15px;text-decoration:none!important;color:var(--swh-tx)!important}
.swh-chips a:hover{border-color:var(--swh-b);color:var(--swh-b2)!important}
/* banner linking to the wiring tool from older pages */
.swh-banner{max-width:1100px;margin:22px auto;padding:0 20px}
.swh-banner a{display:flex;gap:14px;align-items:center;background:linear-gradient(135deg,#0a1c33,#16191f);border:1px solid rgba(58,155,255,.45);border-radius:16px;padding:14px 18px;text-decoration:none!important;color:var(--swh-body)!important}
.swh-banner a:hover{border-color:var(--swh-b)}
.swh-banner .ic{font-size:28px;line-height:1}
.swh-banner b{color:#fff;display:block;font-size:17px}
.swh-banner span{font-size:15px;color:var(--swh-mut)}
.swh-banner .go{margin-left:auto;white-space:nowrap;background:var(--swh-b);color:var(--swh-ink);font-weight:800;border-radius:30px;padding:8px 14px;font-size:14px}
@media(max-width:560px){.swh-banner a{flex-wrap:wrap}.swh-banner .go{margin-left:0}}
/* home feature block */
.swh-feature{padding:56px 0;background:var(--swh-bg2);border-bottom:1px solid var(--swh-line)}
.swh-feature .in{max-width:1140px;margin:0 auto;padding:0 20px;display:grid;grid-template-columns:1.1fr 1fr;gap:28px;align-items:center}
@media(max-width:860px){.swh-feature .in{grid-template-columns:1fr}}
.swh-feature h2{font-size:clamp(28px,4vw,38px)!important;font-weight:900!important;color:#fff!important;margin:0 0 10px!important;letter-spacing:-.8px}
.swh-feature h2 em{font-style:normal;color:var(--swh-b)}
.swh-feature p{color:var(--swh-body);margin:0 0 18px;font-size:17px}
.swh-feature .swh-btns{justify-content:flex-start}
.swh-feature svg{width:100%;height:auto;display:block;background:#0b0f15;border:1px solid var(--swh-line);border-radius:16px}

/* ---------- plain WordPress pages wrapped in the kit ---------- */
body.swh-plain .entry-header,body.swh-plain .ast-breadcrumbs-wrapper{display:none!important}
body.swh-plain #primary,body.swh-plain .site-content>.ast-container{max-width:100%!important;padding:0!important;margin:0!important;width:100%!important}
body.swh-plain .site-main>article,body.swh-plain .ast-article-single{padding:0!important;margin:0!important;background:transparent!important}
body.swh-plain .entry-content{margin:0!important}
body.swh-plain .entry-content>.swh{margin:0!important}
.swh-prose>*:first-child{margin-top:0!important}
.swh-prose table{border:1px solid var(--swh-line)!important;border-radius:12px;overflow:hidden;display:block;overflow-x:auto}
.swh-prose table th{background:var(--swh-card2)!important;color:#fff!important}
.swh-prose table td,.swh-prose table th{border-color:var(--swh-line)!important;padding:9px 11px}
.swh-prose figure.wp-block-table{margin:14px 0 22px}

/* ---------- older printable pages (.dlp) - screen only so print stays white ---------- */
@media screen{
  .dlp{--c:var(--swh-b)!important;color:var(--swh-body)!important;font-family:inherit!important;background:transparent!important}
  .dlp .top{border-bottom:1px solid var(--swh-line)!important;text-align:center;padding:40px 14px 26px!important;margin:0 -18px 16px!important;background:radial-gradient(700px 300px at 50% -40px,rgba(58,155,255,.2),transparent 65%)}
  .dlp .brand{color:var(--swh-b)!important}
  .dlp h1{color:#fff!important;font-weight:900!important}
  .dlp .sub{color:#c7ccd6!important}
  .dlp .bar{justify-content:center}
  .dlp h2{color:#fff!important;border-left:4px solid var(--swh-b);padding-left:10px}
  .dlp .box,.dlp .note{background:var(--swh-card)!important;border:1px solid var(--swh-line)!important;border-left:4px solid var(--swh-b)!important;color:var(--swh-body)!important;border-radius:12px!important}
  .dlp .btn,.dlp button.btn{background:var(--swh-b)!important;color:var(--swh-ink)!important;border-radius:40px!important}
  .dlp table{border:1px solid var(--swh-line)}
  .dlp th{background:var(--swh-card2)!important;color:#fff!important}
  .dlp th,.dlp td{border-color:var(--swh-line)!important;color:var(--swh-body)}
  .dlp ul.check li{border-bottom-color:var(--swh-line)!important}
  .dlp ul.check li:before{border-color:var(--swh-b)!important}
  .dlp .foot{color:var(--swh-mut)!important;border-top-color:var(--swh-line)!important}
  .dlp a{color:var(--swh-b2)!important}
}

/* ---------- tone + rattle tools: same card look and font ---------- */
#swt,#srf{font-family:inherit!important;background:var(--swh-card)!important;border:1px solid var(--swh-line);border-top:3px solid var(--swh-b)}
#swt .card{background:var(--swh-card2)!important;border-color:var(--swh-line)!important}
#jck{font-family:inherit!important}

/* ---------- Claude's guide + port tools: colour tokens only (their code is untouched) ---------- */
.dsub,.dsub-guide{--g:#3a9bff!important;--g2:#7cc0ff!important;--ink:#031326!important;--amber:#ff8a1f!important}
.dsub .dsub-hero,.dsub-guide .hero{background:radial-gradient(800px 340px at 50% -40px,rgba(58,155,255,.2),transparent 65%),linear-gradient(180deg,#0d0d0f,#12141a)!important;border-bottom-color:#12233d!important}

/* ---------- footer ---------- */
.site-footer .widget-title,.site-footer h2,.site-footer h3{color:#fff!important;letter-spacing:1px}
.site-footer a:hover{color:var(--swh-b2)!important}

/* ---------- print: keep it clean ---------- */
@media print{.swh-banner,.swh-related,.swh-btns{display:none!important}.swh,.swh *{color:#000!important;background:#fff!important}}
