/* Theme toggle and alternate palette for Halden Builders, Elite.
   Generated by _design-system/builder/gallery_theme/apply.py; edit themes.py there, not this file. */
/* Theme toggle button. It inherits the header's text colour, so it reads correctly over
   footage and on solid bars alike. Hidden until the head script has set a theme (no-JS visitors
   keep the designed palette and never see a dead control). */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;margin:0;padding:0;border:1px solid color-mix(in srgb,currentColor 28%,transparent);border-radius:50%;background:transparent;color:inherit;line-height:0;cursor:pointer;transition:border-color .2s,background-color .2s}
.theme-toggle:hover{border-color:currentColor;background:color-mix(in srgb,currentColor 8%,transparent)}
.theme-toggle:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.theme-toggle .theme-toggle__icon{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .theme-toggle__sun{display:none}
html[data-theme="dark"] .theme-toggle .theme-toggle__sun{display:block}
html[data-theme="dark"] .theme-toggle .theme-toggle__moon{display:none}
html:not([data-theme]) .theme-toggle{display:none}
@media (prefers-reduced-motion:reduce){.theme-toggle{transition:none}}
/* Toggle placement in this header. */
.site-header{justify-content:flex-start}
.site-header>.brand{margin-right:auto}
.site-header>.site-header__right{margin-left:auto}
.site-header>.theme-toggle{margin-left:-8px}
@media (max-width:900px){.site-header>.site-header__right{margin-left:0}.site-header>.theme-toggle{margin-left:0}}
/* Alternate palette. The designed palette stays the default. */
html[data-theme="dark"]{color-scheme:dark;--bg:#1B1A18;--surface:#1B1A18;--ink:#EDE9E1;--muted:#A9A59D;--line:rgba(237,233,225,.18);--accent:#CC7552;--accent-ink:#000000;--paper:#1B1A18}
html[data-theme="dark"] .site-header{background:color-mix(in srgb,var(--bg) 88%,transparent)}
/* Ink bands, footage chapters, the lens and the footer keep their designed near-black. */
html[data-theme="dark"] :is(.section--ink,.chapter,.lens,.band,.site-footer,.call-bar){--ink:#0F0F0E;--bg:#EDE9E1;color:var(--bg)}
/* The project planner is a paper card in both themes. */
html[data-theme="dark"] #plan .estimator__form,html[data-theme="dark"] #plan .estimator__out{--ink:#121212;--bg:#EDE9E1;--muted:#5C5953;--line:rgba(18,18,18,.18);color:var(--ink)}
html[data-theme="dark"] .site-header.is-clear{background:transparent;color:#EDE9E1}
html[data-theme="dark"] .site-header.is-clear .brand__mark{border-color:#EDE9E1}
html[data-theme="dark"] .site-header.is-clear .site-nav a::after{background:#EDE9E1}
html[data-theme="dark"] .site-header.is-clear .menu-toggle{color:#EDE9E1}
