/* V5 content-first interiors. Existing section landings keep their own composition. */
body.content-v5{--navh:64px;--c5-space:8px;--c5-ease:cubic-bezier(.23,1,.32,1);--c5-reading:66ch;--c5-max:1240px;font-family:Archivo,sans-serif}
body.content-v5 header.nav{height:64px!important}
body.content-v5 header.nav .nav-in{min-height:64px!important;padding-block:8px!important;gap:24px;max-width:var(--c5-max)}
body.content-v5 header.nav .links{gap:16px}
body.content-v5 header.nav .nav-in{height:64px!important;box-sizing:border-box;padding-block:0!important}
body.content-v5 :is(.wrap,header.nav .nav-in){max-width:1240px;width:calc(100% - 64px)}
/* phones and tablets (desktop unchanged): a wrap inside a wrap already sits inside the outer inset: taking 64 px again at every level squeezed nested store
   sections to 48-121 px on phones and pushed them past the right edge (QA BR-OVF, 2026-11-18) */
@media(max-width:900px){body.content-v5 .wrap .wrap.wrap{width:auto;max-width:100%;margin-inline:0;padding-inline:0}}
body.content-v5 header.nav :is(.themetoggle,.brand){min-height:40px}
@media(max-width:960px){body.content-v5 header.nav .navtoggle{margin-left:auto;flex:0 0 44px;width:44px;height:44px}body.content-v5 header.nav .brand{flex:0 0 160px}}
body.content-v5 header.nav .link{font-size:13px;min-height:40px;display:flex;align-items:center}
body.content-v5 main>.v3-crumb{padding-block:8px!important;min-height:32px;font:400 12px/1.4 Archivo,sans-serif;margin-block:0}
body.content-v5 main>.v3-local{position:relative!important;top:auto;min-height:40px;margin:0;padding-block:0;background:transparent;overflow:auto}
body.content-v5 main>.v3-local,body.content-v5 main>.v3-local>.wrap{height:40px!important;min-height:40px!important}
body.content-v5.c5-platform-chooser .v4-editorial-hero{display:block;padding-bottom:0!important}
body.content-v5.c5-platform-chooser .v4-editorial-hero img{display:none}
body.content-v5.c5-platform-chooser .pfx__head{display:none}
body.content-v5.c5-platform-chooser .c5-section{padding-top:24px}
body.content-v5.c5-platform-chooser .v3-hero-copy p{max-width:66ch;font-size:18px;line-height:1.6;margin:0}
body.content-v5 .v3-local>.wrap{gap:24px;min-height:40px;padding-block:0!important}
body.content-v5 .v3-local :is(a,span){font-size:13px;padding-block:0!important;height:40px;min-height:40px;display:inline-flex;align-items:center;white-space:nowrap}
body.content-v5 main :is(h1,h2,h3){text-wrap:balance;letter-spacing:-.025em}
body.content-v5 main h1{font-size:clamp(32px,3.6vw,56px)!important;line-height:1.08!important;max-width:24ch;margin-bottom:16px!important}
body.content-v5 main :is(p,li,dd){text-wrap:pretty}
body.content-v5 main :is(.eyebrow,.kicker,.p4-label,.v4-summary-preview,.v4-disclosure-sign){display:none!important}
body.content-v5 .c5-section{padding-block:40px;margin-block:0;border:0;border-bottom:1px solid var(--edge)}
body.content-v5 .c5-section>.c5-section-heading{font:650 clamp(24px,2.4vw,32px)/1.16 Archivo,sans-serif;margin:0 0 24px;max-width:32ch}
body.content-v5 .c5-section>.v3-panel-body{padding:0!important}
body.content-v5 .c5-section>.v3-panel-body>.wrap{max-width:100%;width:auto;padding-inline:0!important}
body.content-v5 .c5-section :is(p,li){font-size:17px;line-height:1.65}
body.content-v5 .v4-editorial-hero{min-height:0!important;padding-block:32px!important;gap:32px;align-items:center}
body.content-v5 .v4-editorial-hero img{height:240px!important;max-height:280px;width:100%;object-fit:cover;border-radius:0}
body.content-v5 .v4-editorial-hero .v3-hero-copy{padding:0!important}
body.content-v5 .p4r-hero{min-height:0!important;padding-block:32px!important;gap:32px}
body.content-v5 .p4r-media img{height:240px;max-height:280px}
body.content-v5 .p4r-title h1{max-width:24ch}
body.content-v5 .p4r-index{padding-bottom:16px;gap:24px}
body.content-v5 .p4r-index a{font-size:14px;max-width:32ch;padding-block:12px}
body.content-v5 .p4r-index a>span,body.content-v5 .p4r-section-head>span{display:none}
body.content-v5 .p4r-section{padding-block:40px}
body.content-v5 .p4r-section-head{margin-bottom:24px}
body.content-v5 .p4r-section-body :is(p,li,dd){font-size:17px;line-height:1.65}
body.content-v5 .p4r-section-body p{max-width:var(--c5-reading)}
body.content-v5 .p4r-section-body :is(.ed-chapter,.ed-slab){min-height:0!important;padding-block:24px!important}
body.content-v5 .p4r-directory{padding-block:16px}
body.content-v5 .pfx__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;list-style:none;padding:0;margin:24px 0}
body.content-v5 .pfx__body{display:block}
body.content-v5 .pfx__row{display:flex;flex-direction:column;padding:0!important;gap:12px;min-width:0}
body.content-v5 .pfx__row .pfx__a{display:flex;justify-content:space-between;align-items:center;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:var(--ink-1);font-size:28px;font-weight:650;line-height:1.15}
body.content-v5 .pfx__facts{padding:0!important;margin:0!important;opacity:1!important;color:var(--ink-2);font-size:16px}
body.content-v5 .pfx__row .pfx__plate{position:relative!important;inset:auto!important;opacity:1!important;visibility:visible!important;display:block!important;transform:none!important;width:100%;height:auto;margin:0!important;pointer-events:auto}
body.content-v5 .pfx__plate-in{position:relative!important;inset:auto!important;transform:none!important;opacity:1!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;display:block!important;padding:0!important}
body.content-v5 .pfx__pic{height:auto;aspect-ratio:3/2;overflow:hidden;border-radius:0!important}
body.content-v5 .pfx__pic img{width:100%;height:100%;object-fit:cover;border-radius:0!important}
@media(max-width:760px){.pfx__pic:has(>.pfx__cap){height:auto!important;aspect-ratio:auto!important;overflow:visible!important}.pfx__pic:has(>.pfx__cap)>picture{display:block;aspect-ratio:3/2;overflow:hidden}}
body.content-v5 .pfx__spec{display:none!important}
body.content-v5 .pfx__row .pfx__a:focus-visible{outline:2px solid var(--signal-ring);outline-offset:8px}
body.content-v5 .pfx__cap{font-size:12px;line-height:1.5;color:var(--ink-2);margin-top:8px}
body.content-v5 .pfx__head h2{font-size:28px;max-width:32ch;margin-bottom:12px}
body.content-v5 .pfx__say{font-size:17px;line-height:1.6}
body.content-v5 :is(.tx-sechead,.tx-sechead--split){display:block;padding:0!important;margin:0 0 24px!important}
body.content-v5 .tx-sechead h2{font-size:32px!important;line-height:1.14;margin-bottom:16px}
body.content-v5 .tx-sechead .lede{font-size:18px!important;line-height:1.6;max-width:66ch}
body.content-v5 .p4r-section-body>.act{padding-block:0!important}
body.content-v5 .p4r-section-body .tx-costs{margin-top:24px!important}
body.content-v5 .c5-price-opening{display:block!important;min-height:0!important;padding-block:32px!important;background:var(--p4-paper);color:var(--p4-ink)}
body.content-v5 .c5-price-opening h1{margin:0!important;color:inherit}
body.content-v5 .c5-price-opening+.p4r-index{display:none}
body.content-v5 footer.foot{padding-top:32px}
body.content-v5 footer.foot .foot-grid{gap:24px}
body.content-v5 footer .foot-col ul{display:flex;flex-wrap:wrap;gap:8px 16px;margin:16px 0}
body.content-v5 footer .foot-col li{margin:0;list-style:none}
body.content-v5 footer .foot-col a{font-size:13px;min-height:32px;display:inline-flex;align-items:center}
body.content-v5 :is(.table-scroll,.doc-table-wrap){overflow-x:auto;max-width:100%}
@media(max-width:1100px){body.content-v5 header.nav .links{gap:12px}body.content-v5 header.nav .nav-in{gap:16px}body.content-v5 header.nav .brand{max-width:160px}}
@media(max-width:960px){body.content-v5{--navh:56px}body.content-v5 header.nav,body.content-v5 header.nav .nav-in{height:56px!important;min-height:56px!important;padding-block:0!important}body.content-v5 header.nav .links.is-open{position:absolute!important;top:56px!important;left:16px;right:16px;max-height:calc(100svh - 96px);overflow:auto;padding:24px;z-index:60;gap:8px}body.content-v5 header.nav .links.is-open .link{min-height:44px}body.content-v5 .v3-local>.wrap{gap:24px}body.content-v5 .v4-editorial-hero,body.content-v5 .p4r-hero{gap:24px;padding-block:24px!important}body.content-v5 main h1{font-size:clamp(32px,5vw,48px)!important}}
@media(max-width:600px){body.content-v5 main>.v3-crumb{font-size:11px;min-height:28px}body.content-v5 main>.v3-local{min-height:40px}body.content-v5 .v3-local>.wrap{flex-wrap:nowrap;overflow:auto;gap:24px}body.content-v5 .v4-editorial-hero,body.content-v5 .p4r-hero{grid-template-columns:1fr;padding-inline:24px!important;gap:24px}body.content-v5 .v4-editorial-hero img,body.content-v5 .p4r-media img{height:200px;max-height:none}body.content-v5 .p4r-media[data-kind=teaching] img{height:auto}body.content-v5 .c5-section{padding-block:32px}body.content-v5 .pfx__list{grid-template-columns:1fr;gap:32px}body.content-v5 .p4r-section-body :is(p,li,dd){font-size:16px}body.content-v5 .p4r-section{padding-block:32px}}
@media(max-height:500px) and (min-width:601px){body.content-v5 main>.v3-crumb{position:absolute;width:1px;height:1px;padding:0!important;overflow:hidden;clip-path:inset(50%)}body.content-v5 .v4-editorial-hero img,body.content-v5 .p4r-media img{height:160px}body.content-v5 main h1{font-size:32px!important}}
@media(prefers-reduced-motion:reduce){body.content-v5{scroll-behavior:auto}body.content-v5 *,body.content-v5 *:before,body.content-v5 *:after{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:600px){body.content-v5.p4-platform .pf-hero{padding-inline:0!important}body.content-v5.p4-platform .pf-hero__in{width:calc(100% - 48px)!important;padding-inline:0!important;margin-inline:auto!important}body.content-v5.p4-platform .pf-hero .hero-cta{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px}body.content-v5.p4-platform .pf-hero .hero-cta .btn{min-width:0;width:100%;max-width:none;min-height:48px;padding-inline:16px;justify-content:center;white-space:normal;overflow:visible}}

/* Round 34 (council r33 F28/F38): on phones the bar and footer used calc(100% - 64px) plus their own 24 px padding (56 px in) while content sat at 24 px; one gutter. */
@media(max-width:768px){body.content-v5 :is(header.nav .nav-in,footer.foot>.wrap){width:100%}}

/* Site test 2026-11-25 S8: the sub-nav pages (/shop-parts/, /learn-memberships/, /shop-devices/, /shop-unlocks/,
   /tune-platforms/, /learning-paths/, /skills-check/, /shops-quote/) sat 56 px in on phones (32 px margin + 24 px padding)
   while the course, platform and store pages sit 16 px in. Top-level page sections take the same 16 px. */
@media(max-width:600px){body.content-v5 main>.wrap,body.content-v5 main>:is(nav.v3-local,section.sh-hero)>.wrap{width:100%!important;padding-inline:16px!important}}

/* Site test 2026-11-25 P5/P6: empty build shells kept their padding (the 110 px .pp-hero above every store product, a
   65 px policy section on /privacy/). Only a shell with no text, media, link or control collapses; one with content stays. */
body.content-v5.content-v5 :is(.commerce-anchor-only,.p4r-policy-section):not(:has(:is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,td,a,button,input,select,textarea,label,img,picture,video,canvas,svg,iframe,table,blockquote,figure))){display:none!important}

/* Native WPForms forms (contact 439, tune orders 1108/4660/5012) in the site's look. Only appearance changes:
   fields, notifications and Stripe stay WPForms' own. */
.et-native-form .wpforms-container { margin: 0; }
.et-native-form .wpforms-field { padding: 0 0 18px; }
.et-native-form .wpforms-field-label { color: #F4F4F5; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.et-native-form .wpforms-required-label { color: #E23B30; }
.et-native-form .wpforms-field-sublabel, .et-native-form .wpforms-field-description { color: #A1A1AA; font-size: 13px; }
.et-native-form input[type=text], .et-native-form input[type=email], .et-native-form input[type=tel],
.et-native-form input[type=number], .et-native-form input[type=url], .et-native-form select, .et-native-form textarea {
  width: 100% !important; max-width: 100% !important; box-sizing: border-box;
  background: #0C0C0F !important; color: #F4F4F5 !important;
  border: 1px solid rgba(255,255,255,.28) !important; border-radius: 4px !important;
  padding: 12px 14px !important; font: inherit; font-size: 16px; min-height: 48px; height: auto !important;
}
.et-native-form textarea { min-height: 160px; }
.et-native-form input:focus, .et-native-form select:focus, .et-native-form textarea:focus {
  outline: 2px solid #E23B30 !important; outline-offset: 1px; border-color: #E23B30 !important; box-shadow: none !important;
}
.et-native-form .wpforms-field-radio li, .et-native-form .wpforms-field-checkbox li,
.et-native-form .wpforms-field-payment-multiple li { color: #E4E4E7; }
.et-native-form input[type=radio], .et-native-form input[type=checkbox] { accent-color: #E23B30; }
.et-native-form .wpforms-error, .et-native-form label.wpforms-error { color: #FF8A80 !important; }
.et-native-form .wpforms-recaptcha-container { background: transparent !important; padding: 4px 0 18px; }
.et-native-form .wpforms-submit-container { padding-top: 6px; }
.et-native-form button[type=submit].wpforms-submit {
  background: #C4160B !important; color: #fff !important; border: 0 !important; border-radius: 4px !important;
  padding: 14px 30px !important; font: inherit; font-weight: 700; font-size: 16px; min-height: 48px; cursor: pointer;
}
.et-native-form button[type=submit]​.wpforms-submit:hover { background: #A60803 !important; }
.et-native-form button[type=submit].wpforms-submit:focus-visible { outline: 2px solid #fff !important; outline-offset: 3px; }
.et-native-form .wpforms-confirmation-container-full { background: #14301C !important; border: 1px solid #2F6B3F !important; color: #E4F5E9 !important; border-radius: 4px; }
.et-native-form .wpforms-field-stripe-credit-card .wpforms-field-row { background: #0C0C0F; border-radius: 4px; }
/* WPForms boxes that stayed white on the dark page: the Terms text box and the Stripe card row */
.et-native-form .wpforms-field-html .wpforms-field-description, .et-native-form .wpforms-field-html > div,
.et-native-form .wpforms-field-divider, .et-native-form [class*="terms"] { background: #0C0C0F !important; color: #D4D4D8 !important; border: 1px solid rgba(255,255,255,.18) !important; border-radius: 4px; }
.et-native-form .wpforms-field-stripe-credit-card-cardnumber, .et-native-form .wpforms-stripe-credit-card-hidden-input + div,
.et-native-form .StripeElement { background: #F4F4F5 !important; border-radius: 4px !important; padding: 12px 14px !important; }
/* the WPForms thank-you message carries its own dark inline text colour; keep it readable on the green panel */
.et-native-form .wpforms-confirmation-container-full, .et-native-form .wpforms-confirmation-container-full * { color: #E4F5E9 !important; }
.et-native-form .wpforms-confirmation-container-full { padding: 22px 24px !important; text-align: left; }
.et-native-form .wpforms-confirmation-container-full p { margin: 0 0 8px !important; font-size: 17px !important; line-height: 1.5 !important; }
