/* PK Corporation: Light / Dark mode. Light Mode = original main.css. Everything below the toggle styles applies only to html[data-theme="dark"]. */

/* ---------- Header toggle (both modes) ---------- */
.theme-toggle{display:inline-grid;place-items:center;flex:none;width:42px;height:42px;padding:0;background:transparent;border:1.5px solid rgba(255,255,255,.45);border-radius:var(--r);color:#fff;cursor:pointer;transition:border-color .2s,color .2s,background-color .2s}
.theme-toggle:hover{border-color:var(--accent);color:var(--accent)}
.theme-toggle:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.theme-toggle .ico{width:20px;height:20px}
.theme-toggle .i-sun{display:none}
:root[data-theme="dark"] .theme-toggle .i-sun{display:block}
:root[data-theme="dark"] .theme-toggle .i-moon{display:none}
.main-nav .theme-toggle{width:36px;height:36px}
.main-nav .theme-toggle .ico{width:18px;height:18px}
.nav-cta .btn{white-space:nowrap}
.header-actions .theme-toggle{width:46px;height:46px;border-width:2px;border-color:rgba(255,255,255,.5)}
@media(max-width:1280px){.main-nav .nav-theme{display:none!important}}
@media(max-width:400px){.header-actions .theme-toggle{width:42px;height:42px}}
:root.theme-anim,:root.theme-anim *,:root.theme-anim *::before,:root.theme-anim *::after{transition:background-color .3s ease,color .3s ease,border-color .3s ease,box-shadow .3s ease!important}

/* ---------- Dark Mode: design tokens ---------- */
:root[data-theme="dark"]{--ink:#F4F6F8;--muted:#9AA8B8;--mist:#172536;--line-d:#2A3B50;--charcoal:#0D1620;--shadow:0 14px 34px rgba(0,0,0,.38);color-scheme:dark}
:root[data-theme="dark"] body{background:#101923;color:#C2CBD5}
:root[data-theme="dark"] :where(h1,h2,h3,h4,summary){color:#F4F6F8}

/* Section and surface backgrounds (no white areas remain) */
:root[data-theme="dark"] .light,:root[data-theme="dark"] .headline-band{background:#101923}
:root[data-theme="dark"] :is(.card,.faq details,.form-card,.range-table,.hp-card,.do-item,.models-empty),
:root[data-theme="dark"] .mist .addr-box{background:#1D2D3F}
:root[data-theme="dark"] .card-dark:hover{background:#22364D}
:root[data-theme="dark"] .site-header.is-stuck,:root[data-theme="dark"] .site-header.header-solid{background:rgba(16,25,35,.97);box-shadow:0 1px 0 rgba(255,255,255,.06),0 6px 24px rgba(0,0,0,.4)}
:root[data-theme="dark"] .page-hero{background:#142B45}
:root[data-theme="dark"] .site-footer{background:#0B131C}
:root[data-theme="dark"] .foot-bar{border-top-color:rgba(255,255,255,.09)}

/* Body copy: readable muted grey */
:root[data-theme="dark"] :is(.prose-b p,.card p,.lead-p,.prod-intro,.addr-box span,.faq details p,.cat-desc,.hp-desc,.hp-sub,.do-item p,.why-list p,.hb-sub,.spec-empty,.pc-sub,.srch-list p,.prose p,.prose li,.sec-head p,.note,.fine,.form-card .sub,.foot-desc,.spec-table td,.range-table td,.models-empty,.srch-count,.checks li,.p-card .p-body>p,.work-lead,.gal figcaption){color:#C2CBD5}
/* Headings and emphasised text: soft white */
:root[data-theme="dark"] :is(.hb-title,.pk-range h3,.pd-desc h3,.srch-list h2 a,.range-table tbody th,.spec-table th,.hp-hl,.p-card .p-body>p.pc-hl,.chips a,.cat-model,.uses-box h3,.addr-box strong,.pd-facts dd){color:#F4F6F8}
:root[data-theme="dark"] :is(.faq details p,.prose,.prose-b,.srch-empty) a:not(.btn){color:#F5B82E}
:root[data-theme="dark"] .srch-list h2 a:hover{color:#F5B82E}
:root[data-theme="dark"] .faq summary::after{color:#F5B82E}

/* Small components */
:root[data-theme="dark"] .chips a{border-color:rgba(244,246,248,.55)}
:root[data-theme="dark"] .chips a:hover{background:#F4F6F8;border-color:#F4F6F8;color:#142B45}
:root[data-theme="dark"] .checks .ico{color:#142B45}
:root[data-theme="dark"] .cat-tag:not(.prj-badge){background:#2A4260}
:root[data-theme="dark"] .srch-type{background:#22364D;color:#F4F6F8}
:root[data-theme="dark"] .range-table thead th{background:#142B45}
:root[data-theme="dark"] .uses-box{background:#172536}
:root[data-theme="dark"] .mist .uses-box{background:#1D2D3F}

/* Buttons: gold primary unchanged; dark and outline buttons re-balanced for contrast */
:root[data-theme="dark"] .btn-dark{background:#22364D;border-color:#3A5470;color:#fff}
:root[data-theme="dark"] .btn-dark:hover{background:#F5B82E;border-color:#F5B82E;color:#142B45}
:root[data-theme="dark"] .btn-outline{background:transparent;border-color:rgba(244,246,248,.55);color:#F4F6F8}
:root[data-theme="dark"] .btn-outline:hover{background:#F4F6F8;border-color:#F4F6F8;color:#142B45}

/* Forms */
:root[data-theme="dark"] .field :is(input,select,textarea),:root[data-theme="dark"] .srch-form input{background:#14212F;border-color:#3A4F66;color:#F4F6F8}
:root[data-theme="dark"] .field :is(input,select,textarea):focus,:root[data-theme="dark"] .srch-form input:focus{background:#172536;border-color:#F5B82E}
:root[data-theme="dark"] :is(.field input,.field textarea,.srch-form input)::placeholder{color:#8796A8}
:root[data-theme="dark"] .field label{color:#DCE3EA}
:root[data-theme="dark"] .field label i,:root[data-theme="dark"] .f-err{color:#FF9A8F}
:root[data-theme="dark"] .field.has-error :is(input,select,textarea){background:#2A1C22;border-color:#E0645A}
:root[data-theme="dark"] .form-msg.ok{background:#143022;border-color:#4CAF50;color:#C8EBCD}
:root[data-theme="dark"] .form-msg.bad{background:#36191A;border-color:#E0645A;color:#FFD2CC}