/* Two-state appearance switch; device preference applies until the reader chooses. */
:root{color-scheme:light;}
:root[data-hj-theme="dark"]{color-scheme:dark;}
@media(prefers-color-scheme:dark){:root:not([data-hj-theme]){color-scheme:dark;}}
.hj-appearance-switch{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:56px;min-height:44px;margin:0!important;padding:6px;border:0;cursor:pointer;background:transparent;color:inherit;border-radius:4px;}
.hj-appearance-switch:focus-visible{outline:2px solid var(--hj-blue,#1F3A8A);outline-offset:3px;}
.hj-appearance-track{display:block;position:relative;width:40px;height:24px;border-radius:20px;background:#c6cedc;border:1px solid #7f8ba0;box-sizing:border-box;}
.hj-appearance-thumb{display:flex;align-items:center;justify-content:center;position:absolute;left:2px;top:2px;width:18px;height:18px;border-radius:50%;background:#fff;color:#1F3A8A;transition:transform .15s ease;}
.hj-appearance-switch[aria-checked="true"] .hj-appearance-track{background:#718dce;border-color:#9cb7ff;}
.hj-appearance-switch[aria-checked="true"] .hj-appearance-thumb{transform:translateX(16px);background:#FFCF00;color:#202622;}
.hj-header-row .hj-primary-nav{margin-left:auto!important;}
.wp-site-blocks .hjhe-start{box-sizing:border-box;padding:32px!important;gap:32px;border-top:1px solid #dce2df;border-right:1px solid #dce2df;border-bottom:1px solid #dce2df;}
.wp-site-blocks .hjhe-start>*{min-width:0;}
@media(max-width:1023px){.hj-header-row{gap:8px!important;}}
@media(max-width:781px){.wp-site-blocks .hjhe-start{padding:24px!important;gap:24px;}}
@media(prefers-reduced-motion:reduce){.hj-appearance-thumb{transition:none;}}

/* Semantic defaults only: explicit block colors remain authoritative. */
:root[data-hj-theme="dark"]{
 color-scheme:dark;
 --wp--preset--color--base:#15181f;
 --wp--preset--color--contrast:#e8eaf0;
 --wp--preset--color--accent-3:#e8eaf0;
 --wp--preset--color--accent-4:#b5bfd0;
 --wp--preset--color--accent-5:#232938;
 --wp--preset--color--accent-6:#4c576b;
}
:root[data-hj-theme="dark"] :where(body,.wp-site-blocks,.editor-styles-wrapper){color:var(--wp--preset--color--contrast);background-color:var(--wp--preset--color--base);--hj-blue:#9cb7ff;--hj-ink:#e8eaf0;--hj-dark-muted:#b5bfd0}
:root[data-hj-theme="dark"] :where(.hj-masthead,.hj-search-row,.hj-desktop-search form,.hj-desktop-search summary){background-color:#1f2430;color:#e8eaf0;border-color:#65728a}
:root[data-hj-theme="dark"] :where(.hj-masthead.has-background){background-color:#15181f}
:root[data-hj-theme="dark"] :where(.hj-note .taxonomy-hilo,.hjhe-start,.hjha-description){background-color:#232938;color:#e8eaf0}
:root[data-hj-theme="dark"] :where(.hj-home-depth:not(.has-background)){background-color:#253653}
:root[data-hj-theme="dark"] :where(.hj-home-depth){--hj-ink:#fff;--hj-blue:#c4cddd}
:root[data-hj-theme="dark"] :where(.hj-home-collections){--hj-ink:#191919;--hj-blue:#1f3a8a}
:root[data-hj-theme="dark"] :where(.wp-site-blocks input,.wp-site-blocks textarea,.wp-site-blocks select){background-color:#1f2430;color:#e8eaf0;border-color:#65728a}
:root[data-hj-theme="dark"] :where(.wp-site-blocks a:focus-visible,.wp-site-blocks button:focus-visible){outline-color:#FFCF00}

/* Shared dark surfaces. Fixed brand sections retain their own palettes. */
:root[data-hj-theme="dark"] :where(.wp-site-blocks,.editor-styles-wrapper){
 --hj-footer-surface:#1f2430;
}
:root[data-hj-theme="dark"] .hj-masthead.has-background{background-color:#15181f!important;color:#e8eaf0!important}
:root[data-hj-theme="dark"] .wp-site-blocks .hj-search-row{background:#15181f!important}
:root[data-hj-theme="dark"] .hj-desktop-search summary{color:#9cb7ff;border-color:#65728a}
:root[data-hj-theme="dark"] .hj-desktop-search form{background:#1f2430;color:#e8eaf0;border-color:#65728a}
:root[data-hj-theme="dark"] .hj-desktop-search summary:hover,:root[data-hj-theme="dark"] .hj-desktop-search[open] summary{background:#30394b}
:root[data-hj-theme="dark"] .hj-header-shell .hj-primary-nav .wp-block-navigation__responsive-container-open{color:#9cb7ff;border-color:#9cb7ff}
:root[data-hj-theme="dark"] :where(.hj-newsletter small,.hj-archive-label,.hj-archive-count,.hj-archive-author-bio,.hj-archive-browse span,.hj-archive .page-numbers.current){color:#b5bfd0}
:root[data-hj-theme="dark"] .hj-note .taxonomy-hilo{background:#232938;color:#e8eaf0}
:root[data-hj-theme="dark"] .hj-home-collections .hj-home-heading{color:#191919}
:root[data-hj-theme="dark"] .hj-home-collections{color:#191919}
:root[data-hj-theme="dark"] .hj-home-collections :where(.hj-home-track>a,.hj-home-track strong){color:#191919}
:root[data-hj-theme="dark"] .hj-home-depth{color:#fff}
