/* Editorial B: shared roles. These declarations win over legacy token names. */
@font-face{font-family:'KD Editorial Serif';src:url('./fonts/DejaVuSerif.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'KD Editorial Serif';src:url('./fonts/DejaVuSerif-Bold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:'KD Editorial Sans';src:url('./fonts/LiberationSans-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'KD Editorial Sans';src:url('./fonts/LiberationSans-Bold.ttf') format('truetype');font-style:normal;font-weight:600 900;font-display:swap}
:root,:root[data-theme='light']{
 --ed-canvas:#F4F2EC;--ed-surface:#FFFEFA;--ed-nav:#FFFEFA;--ed-text:#24303E;--ed-secondary:#5B6573;--ed-divider:#D3D2CB;--ed-action:#285A8C;--ed-action-text:#FFFFFF;--ed-selected:#E1EAF3;--ed-positive:#216F4E;--ed-negative:#AF4640;--ed-caution:#86611B;--ed-positive-bg:#E4F2EB;--ed-negative-bg:#FBE9E6;--ed-caution-bg:#F9EDD4;--ed-overlay:rgba(20,27,41,.56);--ed-positive-rgb:33,111,78;
}
:root[data-theme='dark']{
 --ed-canvas:#101722;--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;--ed-positive:#55D39D;--ed-negative:#EE928A;--ed-caution:#E2B867;--ed-positive-bg:#193B2D;--ed-negative-bg:#412930;--ed-caution-bg:#3D3321;--ed-overlay:rgba(9,13,21,.72);--ed-positive-rgb:85,211,157;
}
/* Guide presentation only: geometry, original logo, copy and original scripts stay intact. */
:root[data-theme][data-appearance]{--ed-ui:'KD Editorial Sans','Liberation Sans',Arial,sans-serif;--ed-display:'KD Editorial Serif','DejaVu Serif',Georgia,serif;--bg:var(--ed-canvas);--panel:var(--ed-surface);--line:var(--ed-divider);--text:var(--ed-text);--muted:var(--ed-secondary);--green:var(--ed-positive);--yellow:var(--ed-caution);--red:var(--ed-negative);--mono:var(--ed-ui)}
html[data-theme] body[data-kd-editorial="guide"]{background:var(--ed-canvas);color:var(--ed-text);font-family:var(--ed-ui)}
html[data-theme] [data-kd-editorial="guide"] :is(h1,h2){font-family:var(--ed-display);font-weight:400;letter-spacing:-.025em;color:var(--ed-text)}
html[data-theme] [data-kd-editorial="guide"] h1{font-size:clamp(34px,4.2vw,56px)}
html[data-theme] [data-kd-editorial="guide"] :is(button,input,select,textarea){font-family:var(--ed-ui)}
html[data-theme] [data-kd-editorial="guide"] :is(.lead,.chapter li){color:var(--ed-secondary)}
html[data-theme] [data-kd-editorial="guide"] summary{color:var(--ed-text)}
html[data-theme] [data-kd-editorial="guide"] :is(a,.key){color:var(--ed-action)}
html[data-theme] [data-kd-editorial="guide"] header{background:#080d11;border-color:var(--ed-divider)}
/* Preserve the exact original brand treatment against its original dark surround. */
html[data-theme] [data-kd-editorial="guide"] .guide-brand{color:#eaf1f6;--text:#eaf1f6}
html[data-theme] [data-kd-editorial="guide"] header>.btn{color:#eaf1f6;border-color:#9aadb9}
html[data-theme] [data-kd-editorial="guide"] :is(nav button[aria-current=step],.scene-choice[aria-pressed=true]){color:var(--ed-action);background:var(--ed-selected);border-color:var(--ed-action)}
html[data-theme] [data-kd-editorial="guide"] .note{background:var(--ed-positive-bg);border-color:var(--ed-positive)}
html[data-theme] [data-kd-editorial="guide"] .note.amber{background:var(--ed-caution-bg);border-color:var(--ed-caution)}
html[data-theme] [data-kd-editorial="guide"] :is(.lab input,.lab select,.lab textarea,.btn,.screen-button,.plan,dialog){border-color:var(--ed-secondary)}
html[data-theme] [data-kd-editorial="guide"] .btn.primary{background:var(--ed-action);color:var(--ed-action-text);border-color:var(--ed-action)}
html[data-theme] [data-kd-editorial="guide"] .enlarge-label{background:var(--ed-surface);color:var(--ed-text);border-color:var(--ed-secondary)}
html[data-theme] [data-kd-editorial="guide"] :is(.step-dot,.try-now){background:var(--ed-positive-bg);color:var(--ed-positive);border-color:var(--ed-positive)}
html[data-theme] [data-kd-editorial="guide"] .try-now p{color:var(--ed-text)}
html[data-theme] [data-kd-editorial="guide"] dialog::backdrop{background:rgba(9,13,21,.72)}
html[data-theme] [data-kd-editorial="guide"] :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--ed-action)!important;outline-offset:4px!important}
@media print{html[data-theme] body[data-kd-editorial="guide"]{background:white;color:black}html[data-theme] [data-kd-editorial="guide"] :is(.lab,.plan){background:white;color:black}}

/* 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 */
