/* Corporate colours and shell copied from the active yototec.com site. */
:root {
  --bg: #f1f1f4;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: #010205;
  --muted: #5e5e61;
  --subtle: #5e5e61;
  --line: #dbdbde;
  /* Approved public-project family blue; text is lightened on dark surfaces. */
  --accent: #1a44ea;
  --accent-text: var(--accent);
  --accent-soft: color-mix(in srgb, var(--accent) 8%, var(--bg));
  --accent-line: color-mix(in srgb, var(--accent) 28%, var(--bg));
  --on-accent: #ffffff;
  --header-bg: rgb(241 241 244 / 93%);
  --sans: var(--font-family);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b1117;
  --surface: #121c23;
  --surface-raised: #18242d;
  --text: #edf1f1;
  --muted: #a5b2ba;
  --subtle: #a0aeb7;
  --line: #2b3943;
  --accent-text: #8198f3;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, var(--bg));
  --accent-line: color-mix(in srgb, var(--accent) 56%, var(--bg));
  --header-bg: rgb(11 17 23 / 93%);
  color-scheme: dark;
}

.shell {
  width: min(1280px, calc(100% - 112px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.header-nav a {
  font-size: 14px;
  color: var(--muted);
  padding: 12px 0;
}

.header-nav a:hover {
  color: var(--text);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 10px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  transition: color 160ms ease;
}

.theme-toggle:hover {
  color: var(--text);
}

.theme-toggle svg,
.mobile-theme-toggle svg {
  display: none;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.mobile-theme-row {
  display: none;
}

[data-theme-preference="system"] .theme-icon-system,
[data-theme-preference="light"] .theme-icon-light,
[data-theme-preference="dark"] .theme-icon-dark {
  display: block;
}

.menu-toggle {
  display: none;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--wallet-text);
}

.menu-toggle:hover {
  background: var(--wallet-hover);
  color: var(--wallet-hover-text);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  padding: 22px 0 28px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.footer-bottom p {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

html:not(.js) .theme-toggle,
html:not(.js) .mobile-theme-row {
  display: none;
}

@media (max-width: 1150px) {
.shell {
    width: calc(100% - 72px);
  }

.header-inner {
    gap: 25px;
  }

.header-nav {
    gap: 22px;
  }
}

@media (max-width: 900px) {
.header-inner {
    min-height: 76px;
    gap: 18px;
  }

.header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px;
    background: var(--wallet-surface);
    color: var(--wallet-text);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

.header-nav.is-open,
  html:not(.js) .header-nav {
    display: flex;
  }

.header-nav a {
    color: var(--wallet-text);
    font-size: 14px;
    line-height: 20px;
  }

.header-nav a:hover {
    color: var(--wallet-hover-text);
  }

.mobile-theme-row {
    display: block;
    border-top: 1px solid var(--wallet-border);
    margin-top: 4px;
    padding-top: 8px;
  }

.mobile-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    background: transparent;
    color: var(--wallet-text);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

.mobile-theme-toggle:hover {
    background: var(--wallet-hover);
    color: var(--wallet-hover-text);
  }

.mobile-theme-toggle svg {
    width: 16px;
    height: 16px;
  }

.theme-toggle {
    display: none;
  }

.wallet-dropdown {
    margin-left: auto;
  }

.menu-toggle {
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }
}

@media (max-width: 650px) {
.shell {
    width: calc(100% - 40px);
  }

.header-inner {
    min-height: 70px;
    gap: 6px;
  }

.brand {
    gap: 2px;
  }

.brand-logo {
    width: 36px;
    height: 36px;
  }

.brand-name {
    font-size: 17px;
  }
}

@media (max-width: 360px) {
.shell {
    width: calc(100% - 32px);
  }

.brand-name {
    font-size: 15px;
  }

.brand-logo {
    width: 32px;
    height: 32px;
  }
}

@media print {
.shell {
    width: 100%;
  }
}
