/* 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;
}
:root[data-theme][data-appearance]{
 --ed-ui:'KD Editorial Sans','Liberation Sans',Arial,sans-serif;--ed-display:'KD Editorial Serif','DejaVu Serif',Georgia,serif;
 --kd-bg:var(--ed-canvas);--kd-bg-raised:var(--ed-nav);--kd-bg-card:var(--ed-surface);--kd-bg-hover:var(--ed-selected);--kd-border:var(--ed-divider);--kd-border-light:var(--ed-secondary);--kd-text:var(--ed-text);--kd-text-dim:var(--ed-secondary);--kd-text-muted:var(--ed-secondary);
 --kd-green:var(--ed-positive);--kd-green-dim:var(--ed-positive);--kd-green-bg:var(--ed-positive-bg);--kd-red:var(--ed-negative);--kd-red-bg:var(--ed-negative-bg);--kd-yellow:var(--ed-caution);--kd-yellow-bg:var(--ed-caution-bg);--kd-blue:var(--ed-action);
 --font-body:var(--ed-ui);--font-mono:var(--ed-ui);--font-display:var(--ed-ui);--radius-sm:4px;--radius-md:4px;--radius-lg:4px;
 --bg:var(--ed-canvas);--bg2:var(--ed-canvas);--bg-base:var(--ed-canvas);--bg-surface:var(--ed-surface);--bg-elevated:var(--ed-selected);--bg-hover:var(--ed-selected);--surface:var(--ed-surface);--surface2:var(--ed-nav);--surface3:var(--ed-selected);--nav-bg:var(--ed-nav);
 --text:var(--ed-text);--text2:var(--ed-secondary);--text3:var(--ed-secondary);--muted:var(--ed-secondary);--white:var(--ed-text);--white-70:var(--ed-text);--white-40:var(--ed-secondary);--white-20:var(--ed-divider);--slate:var(--ed-secondary);--slate-dim:var(--ed-secondary);--slate-deep:var(--ed-secondary);
 --border:var(--ed-divider);--border2:var(--ed-divider);--border3:var(--ed-secondary);--border-med:var(--ed-divider);--border-green:var(--ed-action);
 --green:var(--ed-positive);--green-text:var(--ed-positive);--green-dim:var(--ed-positive-bg);--green-border:var(--ed-positive);--green-glow:transparent;--red:var(--ed-negative);--amber:var(--ed-caution);--blue:var(--ed-action);
 --mono:var(--ed-ui);--display:var(--ed-ui);--sans:var(--ed-ui);--shadow:0 8px 24px rgba(20,27,41,.1);--shadow-sm:none;--shadow-md:none;--shadow-lg:var(--shadow);--shadow-green:none;--grid-line:transparent;
}

:root[data-theme][data-appearance]{--panel:var(--ed-surface);--line:var(--ed-divider);--page:var(--ed-canvas);--ink:var(--ed-text);--faint:var(--ed-secondary);--hair:var(--ed-divider);--raised:var(--ed-surface);--bull:var(--ed-positive);--bear:var(--ed-negative);--cond:var(--ed-caution);--read:var(--ed-ui);--kd-bg-elevated:var(--ed-selected);--kd-bg-secondary:var(--ed-surface);--kd-amber:var(--ed-caution);--kd-surface:var(--ed-surface);--kd-accent:var(--ed-action);--accent:var(--ed-action)}
html[data-theme] body{font-family:var(--ed-ui);font-size:16px;line-height:1.55;background:var(--ed-canvas);color:var(--ed-text)}
html[data-theme] :is(button,input,textarea,select){font-family:var(--ed-ui);font-variant-numeric:tabular-nums}
html[data-theme] :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--ed-action)!important;outline-offset:3px!important}
html[data-theme] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]),textarea,select){border:1px solid var(--ed-secondary);border-radius:4px;background:var(--ed-surface);color:var(--ed-text);min-height:40px;padding:8px 12px;max-width:100%;font-size:16px}
html[data-theme] :is(input,textarea)::placeholder{color:var(--ed-secondary);opacity:1}
html[data-theme] :is(input,textarea):-webkit-autofill{-webkit-text-fill-color:var(--ed-text);box-shadow:0 0 0 1000px var(--ed-surface) inset}
html[data-theme] :is(input,textarea,select)[aria-invalid=true]{border-color:var(--ed-negative)}
html[data-theme] :is(input[type=checkbox],input[type=radio]){accent-color:var(--ed-action);width:18px;height:18px}
html[data-theme] ::selection{background:var(--ed-selected);color:var(--ed-text)}
.kd-appearance{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;font:14px/1.3 var(--ed-ui);color:var(--ed-secondary)}
html[data-theme] .kd-appearance select{min-height:40px;max-width:112px;padding:8px;cursor:pointer;font-size:14px}
.kd-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html[data-theme] :is(.kd-bg,.kd-bg-glow,.bg-grid,.bg-glow,.scanline){display:none}
html[data-theme] :is(button,[type=submit],summary){touch-action:manipulation}
html[data-theme] :is(button,[type=submit]):disabled{cursor:not-allowed;opacity:.6}
html[data-theme] :is(table,.kd-score-value,.price){font-variant-numeric:tabular-nums}
@media(pointer:coarse){html[data-theme] :is(button,summary,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select){min-height:44px}}
@media(prefers-reduced-motion:reduce){html[data-theme]{scroll-behavior:auto}html[data-theme] *,html[data-theme] *::before,html[data-theme] *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

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