/* Demon vaakalogo ja tiivis yläpalkki, yhteinen kaikille sivuille. */
:root { --malmsten-header-height: 131px; }
html { scroll-padding-top: calc(var(--malmsten-header-height) + 16px); }
main section[id] { scroll-margin-top: calc(var(--malmsten-header-height) + 16px); }
.site-header .header-inner { width: 100%; min-height: 100px; padding-block: 10px; }
.site-header .brand { flex: none; }
.site-header .brand-horizontal { display: block; width: 260px; height: auto; max-width: 100%; }
.site-header .nav-toggle { flex-shrink: 0; }
.site-header .nav__cta { white-space: nowrap; }
@media (max-width: 1024px) {
  .site-header .nav-toggle { display: block; }
  .site-header .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--paper); padding: 22px var(--gutter) 28px; gap: 16px;
    border-bottom: 1px solid var(--line); visibility: hidden; pointer-events: none;
    max-height: calc(100dvh - var(--malmsten-header-height)); overflow-y: auto;
    box-shadow: 0 15px 25px #24333d18; transform: none; opacity: 1;
  }
  .site-header .nav.is-open { visibility: visible; pointer-events: auto; }
  .site-header .nav__links { display: flex; flex-direction: column; gap: 3px; }
  .site-header .nav__links a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .site-header .nav__cta { margin: 4px 0 0; padding: 12px 16px; text-align: center; min-height: 48px; font-size: 16px; }
  .site-header .menu-item .sub-menu { position: static; min-width: 0; padding: 0 0 3px 16px; border: 0; box-shadow: none; display: none; opacity: 1; transform: none; pointer-events: auto; }
  .site-header .menu-item.is-expanded > .sub-menu { display: block; }
  .site-header .sub-menu a { font-size: 16px; padding: 12px 0; }
  .site-header .menu-item-has-children > a::after { float: none; margin-top: 0; transform: rotate(45deg); }
  .site-header .menu-item-has-children.is-expanded > a::after { transform: rotate(-135deg); }
  .site-header .has-sub-toggle > a { padding-right: 2.8rem; }
  .site-header .has-sub-toggle > a::after { display: none; }
  .site-header .has-sub-toggle .submenu-toggle { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 0; right: 0; transform: none; width: 44px; height: 48px; padding: 0; }
}
@media (max-width: 540px) {
  :root { --malmsten-header-height: 120px; }
  .site-header .header-inner { min-height: 84px; gap: 12px; }
  .site-header .brand-horizontal { width: 218px; }
  .site-header .campaign-strip > a { gap: 12px; padding-inline: 10px; font-size: 12px; min-height: 35px; }
}
@media (max-width: 360px) { .site-header .brand-horizontal { width: 200px; } }
@media (max-width: 1024px) {
  .site-header .nav__cta { justify-content: center; }
}
@media (max-width: 860px) {
  .site-header .nav { max-height: calc(100dvh - var(--malmsten-header-height) - 43px - env(safe-area-inset-bottom, 0px)); }
}
