/* Editorial B: owned public, auth, account and membership templates. */
/* Legal text and its stored HTML stay unchanged; theme rules style its page. */
html[data-theme] .kd-legal-page strong{color:var(--ed-text)!important}
html[data-theme] .kd-legal-page a{color:var(--ed-action)!important;text-decoration:underline;text-underline-offset:3px}
html[data-theme] :is(.nav,.kd-nav){background:var(--ed-nav);backdrop-filter:none;box-shadow:none;border-bottom:1px solid var(--ed-divider)}
html[data-theme] :is(.nav-links a,.nav-login,.kd-nav-link,.kd-nav-cta,.btn-cta,.mobile-menu a){font:600 14px/1.4 var(--ed-ui);letter-spacing:0;min-height:40px;display:inline-flex;align-items:center}
html[data-theme] :is(.btn-cta,.btn-primary-lg,.kd-nav-cta,.mobile-menu .mob-cta,.btn.solid,.btn-primary){background:var(--ed-action);border-color:var(--ed-action);color:var(--ed-action-text);font:600 16px/1.4 var(--ed-ui);letter-spacing:0;box-shadow:none;border-radius:4px}
html[data-theme] :is(.btn-cta,.btn-primary-lg,.kd-nav-cta):hover{background:var(--ed-action);color:var(--ed-action-text);box-shadow:none;transform:none}
html[data-theme] :is(.btn-ghost-lg,.btn:not(.solid):not(.btn-primary)){font:600 16px/1.4 var(--ed-ui);letter-spacing:0;color:var(--ed-action);background:var(--ed-surface);border:1px solid var(--ed-secondary);border-radius:4px}
html[data-theme] :is(h1,.hero-headline,.section-title,.headline){font-family:var(--ed-display);font-weight:400;letter-spacing:-.025em;line-height:1.2;color:var(--ed-text)}
html[data-theme] :is(.hero-headline,[data-kd-editorial=kd-setups-landing] h1){font-size:clamp(34px,4.2vw,56px)}
html[data-theme] .section-title{font-size:clamp(28px,3.3vw,40px)}
html[data-theme] :is(.hero-headline em,.section-title em){color:var(--ed-action);font-style:normal}
html[data-theme] :is(.hero-subhead,.section-intro){font-size:18px;line-height:1.6;color:var(--ed-secondary)}
html[data-theme] :is(.hero-eyebrow,.section-eyebrow,.hero-micro,.widget-header,.widget-cell-label,.widget-ticker-name,.widget-verdict-label,.rail-title,.kd-footer-col-title){font-family:var(--ed-ui);font-size:14px;line-height:1.5;letter-spacing:0;}
html[data-theme] .hero-main{background:var(--ed-surface)}
html[data-theme] :is(.hero-grid,.hero-widget){border-radius:4px;box-shadow:none;background:var(--ed-surface)}
html[data-theme] .hero-eyebrow{border:0;padding:0;background:none;color:var(--ed-secondary)}
html[data-theme] :is(.hero-eyebrow,.section-eyebrow,.tick.live,.live-badge)::before{box-shadow:none;animation:none;background:var(--ed-action)}
html[data-theme] :is(.widget-ticker-sym,.widget-price,.price,.px,.score,.tk,.stats .n){font-family:var(--ed-ui);font-weight:600;letter-spacing:0;font-variant-numeric:tabular-nums}
html[data-theme] :is(table,.widget-cell-value,.rail-row,.tick,.widget-footer,.hero-micro){font-family:var(--ed-ui);font-size:14px;font-variant-numeric:tabular-nums;letter-spacing:0}
html[data-theme] :is(th,.topbar,.kd-ticker,.kd-ticker-item){font-size:14px;letter-spacing:0;}
html[data-theme] :is(.kd-footer,.footer){background:var(--ed-nav);border-top:1px solid var(--ed-divider);font-family:var(--ed-ui);color:var(--ed-secondary)}
html[data-theme] :is(.kd-footer-col a,.kd-footer-tagline,.kd-footer-copy,.kd-footer-disclaimer){font:14px/1.5 var(--ed-ui);letter-spacing:0;color:var(--ed-secondary)}
html[data-theme] .kd-footer-col-title{color:var(--ed-text);font-weight:700}
html[data-theme] :is(.kd-page h1,.kd-page-title){font:400 clamp(28px,5vw,36px)/1.25 var(--ed-display);letter-spacing:-.02em;}
html[data-theme] :is(.description,.pmpro_description){font-size:14px;color:var(--ed-secondary)}
html[data-theme] :is(.pmpro_message,.pmpro_alert){font:16px/1.5 var(--ed-ui);border-radius:4px}
html[data-theme] :is(.pmpro_card,.pmpro_card_content,.pmpro_card_actions,.pmpro_form_fieldset){background:var(--ed-surface);color:var(--ed-text);border-color:var(--ed-divider);border-radius:4px}
html[data-theme] .pmpro_form_fields{display:grid;gap:16px}
html[data-theme] .pmpro_form_field{min-width:0}
html[data-theme] :is(.pmpro_form,.pmpro_member_profile_edit) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){width:100%;box-sizing:border-box}
html[data-theme] :is(.pmpro_btn,.pmpro_btn-submit,input[type=submit]){min-height:40px;font:600 16px/1.4 var(--ed-ui);background:var(--ed-action);color:var(--ed-action-text);border:1px solid var(--ed-action);border-radius:4px;padding:10px 16px;letter-spacing:0;}
html[data-theme] .pmpro_btn-cancel{background:var(--ed-selected);color:var(--ed-action)}
html[data-theme] :is(.pmpro_form label,.pmpro_form p,.pmpro_form .description){font-family:var(--ed-ui);font-size:16px;line-height:1.5;letter-spacing:0;}
html[data-theme] :is(.pmpro_message.pmpro_error,.error){background:var(--ed-negative-bg);color:var(--ed-negative);border-color:var(--ed-negative)}
html[data-theme] :is(.pmpro_message.pmpro_success,.success){background:var(--ed-positive-bg);color:var(--ed-positive);border-color:var(--ed-positive)}
html[data-theme] [data-kd-editorial=page-login]{background:var(--ed-canvas)}
html[data-theme] [data-kd-editorial=page-login] :is(.bg,.grid){display:none}
html[data-theme] [data-kd-editorial=page-login] .box{background:var(--ed-surface);border-color:var(--ed-divider);border-radius:4px}
html[data-theme] [data-kd-editorial=page-login] .tab{color:var(--ed-secondary);font-size:16px;letter-spacing:0}
html[data-theme] [data-kd-editorial=page-login] .tab.active{color:var(--ed-action);border-bottom-color:var(--ed-action);background:var(--ed-selected)}
html[data-theme] [data-kd-editorial=page-login] :is(.btn,.submit-btn){background:var(--ed-action);color:var(--ed-action-text);min-height:44px}
.ed-auth-appearance{display:flex;justify-content:flex-end;margin-bottom:16px}
html[data-theme] [data-kd-editorial=kd-analysis-blog] h1{font-size:clamp(32px,5vw,44px)}
html[data-theme] [data-kd-editorial=kd-analysis-blog] a{text-underline-offset:3px}
html[data-theme] .kd-nav-mobile-cta{display:none}
@media(max-width:768px){html[data-theme] :is(.nav,.kd-nav){height:auto;min-height:64px;flex-wrap:wrap;gap:10px;padding:12px 16px}html[data-theme] .kd-nav-mobile-cta{display:inline-flex;margin-left:auto;min-height:44px}html[data-theme] .kd-nav-links{display:none}html[data-theme] .kd-nav>.kd-appearance{margin-left:auto}html[data-theme] .nav-right{width:100%;gap:10px}html[data-theme] .nav-right>.kd-appearance{margin-right:auto}html[data-theme] .nav .hamburger{min-width:44px;min-height:44px}html[data-theme] .hero{padding-top:176px}html[data-theme] .mobile-menu{top:144px}html[data-theme] .mobile-menu a{min-height:44px}html[data-theme] .hero-main{padding:28px 20px}html[data-theme] .hero-subhead{font-size:16px}html[data-theme] .kd-page{padding-top:176px}html[data-theme] .kd-wrap-sm{padding-left:16px;padding-right:16px}html[data-theme] .pmpro_cols-2{grid-template-columns:1fr}html[data-theme] .kd-appearance select{max-width:98px}}

/* Original brand rules remain byte-for-byte in each template. Only their inherited
   legacy variables are isolated from the new UI palette. Image dimensions stay original. */
html[data-theme] :is(.nav-logo,.kd-nav-logo,.kd-footer-logo,.logo-text,.brand){--display:'Bebas Neue',sans-serif;--font-display:'Bebas Neue',sans-serif;--text:#f0f4f8;--white:#f0f4f8;--green:#00ff88;--bg-base:#080c10}
html[data-theme='light'] .nav-logo{--text:#0d1117;--green:#00a854}
/* Match the original public header's wordmark face, weight and line height. */
html[data-theme] .kd-nav-logo{line-height:1.6}
html[data-theme] .kd-nav-logo-text{font-weight:400}
/* Local legacy !important rules must never remove keyboard focus. */
html[data-theme] :is(#profile-page,.editprofile,.pmpro_member_profile_edit) :is(input,select,textarea,button,a):focus-visible{outline:2px solid var(--ed-action)!important;outline-offset:3px!important}
html[data-theme] :is(#profile-page,.editprofile,.pmpro_member_profile_edit) :is(input,select,textarea):focus{border-color:var(--ed-action)!important}
html[data-theme] :is(#profile-page,.editprofile,.pmpro_member_profile_edit) :is(input[type=submit],button[type=submit]){background:var(--ed-action)!important;color:var(--ed-action-text)!important}

/* Restore the original Editorial B mix of natural case and deliberate capitals. */
html[data-theme] :is(.nav-links a,.nav-login,.kd-nav-link,.kd-nav-cta,.btn-cta,.mobile-menu a){text-transform:none}
html[data-theme] :is(.btn-cta,.btn-primary-lg,.kd-nav-cta,.mobile-menu .mob-cta,.btn.solid,.btn-primary){text-transform:none}
html[data-theme] :is(.btn-ghost-lg,.btn:not(.solid):not(.btn-primary)){text-transform:none}
html[data-theme] :is(h1,.hero-headline,.section-title,.headline){text-transform:none}
html[data-theme] :is(.hero-eyebrow,.section-eyebrow,.hero-micro,.widget-header,.widget-cell-label,.widget-ticker-name,.widget-verdict-label,.rail-title,.kd-footer-col-title){text-transform:none}
html[data-theme] :is(th,.topbar,.kd-ticker,.kd-ticker-item){text-transform:none}
html[data-theme] :is(.kd-page h1,.kd-page-title){text-transform:none}
html[data-theme] :is(.pmpro_btn,.pmpro_btn-submit,input[type=submit]){text-transform:none}
html[data-theme] :is(.pmpro_form label,.pmpro_form p,.pmpro_form .description){text-transform:none}

/* Launch91: screenshot corrections. Original logo rules/assets and all geometry stay intact. */
/* The original white wordmarks need a dark surrounding header/footer in either appearance. */
html[data-theme] :is(.kd-nav,.kd-footer,[data-kd-editorial=kd-setups-landing] .nav){
 --ed-surface:#172231;--ed-nav:#141E2C;--ed-text:#F2F0EA;--ed-secondary:#B8C3D0;--ed-divider:#3C4C61;--ed-action:#8FB7EB;--ed-action-text:#142237;--ed-selected:#253C54;
 --white:var(--ed-text);--slate:var(--ed-secondary);--muted:var(--ed-secondary);--bg-base:var(--ed-action-text);--bg-elevated:var(--ed-selected);--line:var(--ed-divider);
 background:var(--ed-nav);color:var(--ed-text);border-color:var(--ed-divider)
}
html[data-theme] [data-kd-editorial=kd-setups-landing] .nav .logo{--green:#00ff88}
/* Feedback's original dark/green wordmark retains its light surround and original face. */
html[data-theme] [data-kd-editorial=feedback-page] .kd-topbar{--ed-action:#285A8C;background:#F4F2EC;border-color:#D3D2CB}
html[data-theme] [data-kd-editorial=feedback-page] .kd-topbar-logo{--mono:'JetBrains Mono',monospace;--green:#0a8f4d}
html[data-theme] [data-kd-editorial=feedback-page] .kd-topbar-back{color:#5B6573}
html[data-theme] [data-kd-editorial=feedback-page] .kd-topbar-back:hover{color:#285A8C}
/* Pair message and button text with their actual backgrounds in both appearances. */
html[data-theme] [data-kd-editorial=feedback-page] .kd-banner{color:var(--ed-text)}
html[data-theme] [data-kd-editorial=feedback-page] .kd-btn{background:var(--ed-action);color:var(--ed-action-text)}
html[data-theme] [data-kd-editorial=feedback-page] .kd-pill input:focus-visible+label{outline:2px solid var(--ed-action);outline-offset:3px}

/* Account and login states: semantic colors; original markup geometry/actions retained. */
html[data-theme] [data-kd-editorial=page-membership-account] a[style*="border-bottom:"]{color:var(--ed-action)!important}
html[data-theme] [data-kd-editorial=page-membership-account] a[style*="background:var(--ed-positive)"]{background:var(--ed-action)!important;color:var(--ed-action-text)!important}
html[data-theme] [data-kd-editorial=page-membership-account] div[style*="rgba(0,255,136,0.2)"]{border-color:var(--ed-positive)!important}
html[data-theme] [data-kd-editorial=page-membership-account] div[style*="rgba(255,255,255,0.07)"]{border-color:var(--ed-divider)!important}
html[data-theme] [data-kd-editorial=page-login] a[href^="?tab=lostpassword"]{color:var(--ed-action)!important}
html[data-theme] [data-kd-editorial=page-login] a[href^="?tab=lostpassword"]:hover{color:var(--ed-text)!important}
html[data-theme] [data-kd-editorial=kd-analysis-blog] .archive-note{background:var(--ed-selected)!important;color:var(--ed-text)}

/* Launch94: installed PMPro 3.7.4 color roles. Spacing and layout tokens retained. */
html[data-theme] .pmpro {
 --pmpro--color--accent:var(--ed-action);--pmpro--color--accent--variation:var(--ed-action);
 --pmpro--color--base:var(--ed-surface);--pmpro--color--base-2:var(--ed-selected);--pmpro--color--base--variation:var(--ed-selected);
 --pmpro--color--contrast:var(--ed-text);--pmpro--color--contrast--variation:var(--ed-secondary);--pmpro--color--border:var(--ed-secondary);
 --pmpro--color--border--variation:var(--ed-divider);--pmpro--color--white:var(--ed-surface);
 --pmpro--color--info-background:var(--ed-selected);--pmpro--color--info-border:var(--ed-action);--pmpro--color--info-text:var(--ed-action);--pmpro--color--info-link:var(--ed-action);
 --pmpro--color--success-background:var(--ed-positive-bg);--pmpro--color--success-border:var(--ed-positive);--pmpro--color--success-text:var(--ed-positive);--pmpro--color--success-link:var(--ed-positive);
 --pmpro--color--error-background:var(--ed-negative-bg);--pmpro--color--error-border:var(--ed-negative);--pmpro--color--error-text:var(--ed-negative);--pmpro--color--error-link:var(--ed-negative);
 --pmpro--color--alert-background:var(--ed-caution-bg);--pmpro--color--alert-border:var(--ed-caution);--pmpro--color--alert-text:var(--ed-caution);--pmpro--color--alert-link:var(--ed-caution);
 --pmpro--color--alert2-background:var(--ed-caution-bg);--pmpro--color--alert2-border:var(--ed-caution);--pmpro--color--alert2-text:var(--ed-caution);--pmpro--color--alert2-link:var(--ed-caution);
 --pmpro--box-shadow:none;
 color:var(--ed-text);font-family:var(--ed-ui);
}
html[data-theme] .pmpro :is(h2,h3,legend){font-family:var(--ed-display);color:var(--ed-text);letter-spacing:0;text-transform:none}
html[data-theme] .pmpro :is(label,p,li,td,th,.pmpro_form_hint){font-family:var(--ed-ui);color:var(--ed-text)}
html[data-theme] .pmpro :is(.pmpro_form_hint,.pmpro_description,.description){color:var(--ed-secondary)}
html[data-theme] .pmpro a{color:var(--ed-action)}
html[data-theme] .pmpro .pmpro_btn:not(.pmpro_btn-cancel):not(.pmpro_btn-plain):not(.pmpro_btn-outline){background:var(--ed-action);color:var(--ed-action-text);border-color:var(--ed-action);box-shadow:none}
html[data-theme] .pmpro .pmpro_btn:not(.pmpro_btn-cancel):not(.pmpro_btn-plain):not(.pmpro_btn-outline):is(:hover,:focus){background:var(--ed-action);color:var(--ed-action-text);border-color:var(--ed-action)}
html[data-theme] .pmpro :is(.pmpro_btn-cancel,.pmpro_btn-outline){background:var(--ed-selected);color:var(--ed-action);border-color:var(--ed-action);box-shadow:none}
html[data-theme] .pmpro :is(.pmpro_btn-cancel,.pmpro_btn-outline):is(:hover,:focus){background:var(--ed-selected);color:var(--ed-action);border-color:var(--ed-action)}
html[data-theme] .pmpro :is(.pmpro_btn-plain,.pmpro_btn-print){background:transparent;color:var(--ed-action);box-shadow:none}
html[data-theme] .pmpro :is(input,select,textarea){color:var(--ed-text);background-color:var(--ed-surface);border-color:var(--ed-secondary)}
html[data-theme] :is(#member-profile-edit,#pmpro_affiliates-report) :is(input,select,textarea,button,a):focus-visible{outline:2px solid var(--ed-action)!important;outline-offset:3px!important}
html[data-theme] #pmpro_affiliates-report :is(h2,h3){font-family:var(--ed-display);color:var(--ed-text);letter-spacing:0}
html[data-theme] #pmpro_affiliates-report :is(input,textarea){font-family:var(--ed-ui);background:var(--ed-surface);color:var(--ed-text);border-color:var(--ed-secondary)}

/* KD_LAUNCH96_BALANCED_BEGIN: original rounded surfaces, restrained Editorial accents. */
:root[data-theme][data-appearance]{--radius-sm:4px;--radius-md:8px;--radius-lg:12px}
/* Application, account and section headings use the existing readable sans face.
   The homepage hero retains the single Editorial display accent. */
html[data-theme] :is(h1,h2,h3,legend,.section-title,.headline,.kd-page-title){font-family:var(--ed-ui)!important;font-weight:600!important;letter-spacing:-.015em}
html[data-theme] .hero-headline{font-family:var(--ed-display)!important;font-weight:400!important}
html[data-theme] :is(.kd-card,.card,.panel,.hero-widget,.pmpro_form_fieldset,.pmpro_message,.pmpro_alert){border-radius:8px!important}
html[data-theme] :is(.hero-grid,.kd-exit-review,.pmpro_card){border-radius:12px!important}
html[data-theme] [data-kd-editorial=page-login] .box{border-radius:12px!important}
html[data-theme] .kd-page .kd-wrap-sm>div[style*="border-radius"]{border-radius:12px!important}
html[data-theme] #member-profile-edit fieldset{border-radius:8px!important}
html[data-theme] :is(.kd-card,.hero-widget,.pmpro_card){box-shadow:0 3px 14px rgba(16,23,34,.06)}
html[data-theme=dark] :is(.kd-card,.hero-widget,.pmpro_card){box-shadow:0 3px 14px rgba(0,0,0,.14)}
html[data-theme] :is(.kd-btn,.btn,.btn-cta,.btn-primary-lg,.btn-ghost-lg,.kd-nav-cta,.pmpro_btn){border-radius:6px!important}
html[data-theme] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){border-radius:6px!important}
/* Override the legacy profile's blanket !important text color with explicit pairs. */
html[data-theme] #member-profile-edit .pmpro_btn,
html[data-theme] #member-profile-edit .pmpro_btn:is(:hover,:focus,:active){background:var(--ed-action)!important;color:var(--ed-action-text)!important;border-color:var(--ed-action)!important}
html[data-theme] #member-profile-edit .pmpro_btn-cancel,
html[data-theme] #member-profile-edit .pmpro_btn-cancel:is(:hover,:focus,:active){background:var(--ed-selected)!important;color:var(--ed-action)!important;border-color:var(--ed-action)!important}
/* KD_LAUNCH96_BALANCED_END */
