/* Header-only selectors. No calculator body, result, or typography rules. */
html body .site-header{position:sticky;top:10px;z-index:60;background:transparent;border:0}
html body .site-header .header-inner{display:flex;align-items:center;flex-direction:row;flex-wrap:nowrap;gap:16px;border-radius:22px;background:rgba(255,255,255,.72);border:1px solid rgba(0,0,0,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.65),0 10px 30px rgba(23,32,43,.12);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);position:relative}
html body .site-header[data-appearance="dark"] .header-inner{background:rgba(28,28,30,.68);border-color:rgba(255,255,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 10px 30px rgba(0,0,0,.45)}
html body .site-header .brand{display:inline-flex;align-items:center;white-space:nowrap;color:var(--p7-label);flex-shrink:0}
html body .site-header .brand span{color:var(--p7-brand)}
html body .site-header .main-nav{display:flex;align-items:center;justify-content:center;gap:24px;flex:1;margin:0}
html body .site-header .main-nav a{color:var(--p7-label);white-space:nowrap}
html body .site-header .main-nav a[hidden]{display:none!important}
html body .site-header button.p7-theme,html body .site-header button.ck-menu{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;flex:0 0 44px;border-radius:16px;border:1px solid var(--p7-sep);background:var(--p7-tint);color:var(--p7-label);padding:0;margin:0;cursor:pointer;box-sizing:border-box;transition:background .15s,transform .15s}
html body .site-header button.ck-menu{display:none}
html body .site-header button:hover{background:var(--p7-group)}
html body .site-header button:active{transform:scale(.96)}
html body .site-header :focus-visible{outline:2px solid var(--p7-brand);outline-offset:3px}
@media(max-width:760px){
 html body .site-header .header-inner{gap:8px!important;padding-left:14px;padding-right:14px}
 html body .site-header .brand{font-size:17px;margin-right:auto}
 html body .site-header button.ck-menu{display:inline-flex}
 html body .site-header .main-nav{display:none!important}
 html body .site-header.ck-menu-open .main-nav{display:flex!important;position:absolute;left:0;right:0;top:calc(100% + 8px);padding:16px;flex-direction:column;gap:8px;border:1px solid var(--p7-sep);border-radius:20px;background:var(--p7-bg);box-shadow:0 10px 30px rgba(0,0,0,.15)}
 html body .site-header.ck-menu-open .main-nav a:not([hidden]){display:flex!important;width:100%;justify-content:center}
}
@media(prefers-reduced-motion:reduce){html body .site-header button{transition:none}}
@media(prefers-reduced-transparency:reduce){html body .site-header .header-inner{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--p7-bg)}}
/* Preserve the established desktop header flow height while the icon itself is 44px. */
@media(min-width:901px){html body .site-header .header-inner{min-height:58.453125px}}

/* Typography is explicit so page-specific calculator classes cannot vary the shared header. */
html body .site-header .brand{font-family:var(--p7-font);font-size:20px;font-weight:700;letter-spacing:-.025em}
html body .site-header .main-nav a{font-family:var(--p7-font);font-size:14px;font-weight:600;letter-spacing:normal}
@media(max-width:760px){html body .site-header .brand{font-size:17px}}

/* Dark mark only: same grid geometry, theme blue and a legible check. */
html body .site-header[data-appearance="dark"] .brand::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20role%3D%22img%22%20aria-label%3D%22CalcKitHub%20mark%20S1%3A%20grid%20with%20verified%20cell%22%3E%0A%20%20%0A%20%20%3Crect%20x%3D%221%22%20y%3D%221%22%20width%3D%2221%22%20height%3D%2221%22%20rx%3D%225%22%20fill%3D%22%235b93ff%22%2F%3E%0A%20%20%3Crect%20x%3D%2226%22%20y%3D%221%22%20width%3D%2221%22%20height%3D%2221%22%20rx%3D%225%22%20fill%3D%22%235b93ff%22%2F%3E%0A%20%20%3Crect%20x%3D%221%22%20y%3D%2226%22%20width%3D%2221%22%20height%3D%2221%22%20rx%3D%225%22%20fill%3D%22%235b93ff%22%2F%3E%0A%20%20%3Crect%20x%3D%2226%22%20y%3D%2226%22%20width%3D%2221%22%20height%3D%2221%22%20rx%3D%225%22%20fill%3D%22%235b93ff%22%2F%3E%0A%20%20%3Cpath%20d%3D%22M31.5%2036.8l3.6%203.6%206.4-7.4%22%20fill%3D%22none%22%20stroke%3D%22%23000000%22%20stroke-width%3D%223.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E")}
