:root {
  --sj-header-height: 143px;
  --sj-nav-ink: #173146;
  --sj-nav-muted: #536b7b;
  --sj-nav-line: #e1e7eb;
  --sj-nav-card: #f4f7f9;
  --sj-nav-warm: #b54809;
  --sj-menu-edge: #e5e2da;
  --sj-menu-mist: #faf9f6;
  --sj-menu-active: #f5eee2;
  --sj-menu-shadow: 0 12px 30px #102a4018, 0 2px 7px #102a400c;
}
html { scroll-padding-top: var(--sj-header-height); }
.skip-link { z-index: 25; }
.sj-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--sj-nav-ink);
  background: #fff;
  font-family: var(--sans);
  box-shadow: 0 2px 12px #102a4010;
}
.sj-nav-wrap { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
.sj-header-main {
  min-height: 87px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto auto;
  align-items: center;
  gap: clamp(15px,2vw,27px);
}
.sj-header .sj-header-brand { gap: 9px; font: 760 1.4rem/1 var(--sans); letter-spacing: -.055em; }
.sj-header-brand img { width: 35px; height: 35px; }
.sj-header-brand b { font-weight: 740; }
.sj-nav-icon { width: 19px; height: 19px; flex: none; vertical-align: middle; }
.sj-header a { text-decoration: none; }
.sj-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sj-topic-search { width: 100%; max-width: 570px; min-width: 0; position: relative; margin: 0; justify-self: center; }
.sj-search-field { display: flex; align-items: center; height: 48px; border: 1px solid #7a8c99; border-radius: 10px; background: var(--sj-nav-card); }
.sj-search-field:has(input:focus-visible) { outline: 3px solid #4b78c1; outline-offset: 2px; }
.sj-search-field input { min-width: 0; width: 100%; height: 100%; padding: 0 13px 0 16px; outline: 0; border: 0; border-radius: 10px; color: var(--sj-nav-ink); background: transparent; font-size: .9rem; }
.sj-search-field input::placeholder { color: #596f7e; opacity: 1; }
.sj-search-field button { display: grid; flex: 0 0 45px; place-items: center; height: 44px; border: 0; border-radius: 8px; color: var(--sj-nav-ink); background: transparent; }
.sj-search-field button:hover { background: #e9eff3; }
.sj-search-results { position: absolute; inset: calc(100% + 8px) 0 auto; z-index: 5; max-height: min(450px,calc(100dvh - var(--sj-header-height) - 12px)); overflow: auto; overscroll-behavior: contain; padding: 7px; border: 1px solid var(--sj-nav-line); border-radius: 11px; background: #fff; box-shadow: 0 17px 35px #142d462c; }
.sj-search-results p { margin: 3px 8px 6px; color: var(--sj-nav-muted); font-size: .78rem; }
.sj-search-results ul, .sj-mega-column ul { margin: 0; padding: 0; list-style: none; }
.sj-search-results li + li { margin-top: 3px; }
.sj-search-results a { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 8px 10px; border-radius: 6px; font-size: .89rem; font-weight: 680; line-height: 1.35; }
.sj-search-results a:is(:hover,:focus-visible) { background: var(--sj-nav-card); }
.sj-search-results small { color: var(--sj-nav-muted); font-size: .75rem; font-weight: 460; }

.sj-header-finder, .sj-mobile-finder {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 8px 15px;
  border-radius: 10px;
  color: #fff;
  background: var(--night-soft);
  box-shadow: 0 7px 17px #142d4623;
  font-size: .87rem;
  font-weight: 750;
  line-height: 1.24;
}
.sj-header-finder:hover, .sj-mobile-finder:hover { background: #1e405d; }
.sj-header-finder .sj-nav-icon, .sj-mobile-finder .sj-nav-icon { width: 24px; height: 24px; color: var(--gold); }
.sj-header-finder small, .sj-mobile-finder small { display: block; margin-top: 4px; color: #dce6ed; font-size: .71rem; font-weight: 480; }
.sj-header-topics {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--sj-nav-warm);
  box-shadow: 0 7px 18px #c4520829;
  font-size: .87rem;
  font-weight: 750;
  white-space: nowrap;
}
.sj-header-topics:hover { background: #9b3904; }
.sj-header-topics .sj-nav-icon { width: 17px; height: 17px; }
.sj-nav-toggle, .sj-nav-fallback, .sj-mobile-finder { display: none; }

.sj-nav-row { border-block: 1px solid var(--sj-nav-line); }
.sj-primary-nav { position: relative; display: flex; align-items: center; gap: clamp(17px,1.85vw,27px); min-height: 54px; font-size: .88rem; font-weight: 670; }
.sj-nav-direct, .sj-nav-group > summary { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; white-space: nowrap; }
.sj-nav-group > summary { list-style: none; cursor: pointer; }
.sj-nav-group > summary::-webkit-details-marker { display: none; }
.sj-nav-group > summary::marker { content: ""; }
.sj-nav-direct .sj-nav-icon { width: 15px; height: 15px; color: var(--gold-dark); }
.sj-nav-group > summary .sj-nav-icon { width: 14px; height: 14px; color: #627d90; transition: transform .16s ease; }
.sj-nav-group[open] > summary .sj-nav-icon { transform: rotate(180deg); }
.sj-nav-direct:is(:hover,[aria-current]), .sj-nav-group:is([open],.is-current) > summary, .sj-nav-group > summary:hover { color: var(--gold-dark); }
.sj-nav-group:is([open],.is-current) > summary::after, .sj-nav-direct[aria-current]::after { content: ""; position: absolute; inset: auto 0 3px; height: 2px; border-radius: 2px; background: #c18c47; }
.sj-nav-separator { width: 1px; height: 22px; background: var(--sj-nav-line); }
.sj-nav-group:not([open]) .sj-mega-panel { display: none; }
.sj-mega-panel {
  --sj-menu-offset: 108px;
  --sj-menu-width: 49rem;
  position: absolute;
  inset: calc(100% + 5px) auto auto var(--sj-menu-offset);
  width: min(var(--sj-menu-width), calc(100% - var(--sj-menu-offset)));
  z-index: 2;
  max-height: min(19rem, calc(100dvh - var(--sj-header-height) - 13px));
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--sj-menu-edge);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--sj-menu-shadow);
}
#sj-nav-lattenroste { --sj-menu-width: 39rem; }
.sj-mega-panel .sj-nav-wrap { width: auto; margin-inline: 13px; }
.sj-mega-intro { border-bottom: 1px solid var(--sj-menu-edge); background: var(--sj-menu-mist); }
.sj-mega-intro > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding-block: 3px; }
.sj-mega-kicker { display: none; }
.sj-mega-title { margin: 0; padding-inline: 6px; font-size: .88rem; font-weight: 720; line-height: 1.28; }
.sj-mega-overview { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 28px; padding: 3px 7px; border-radius: 6px; font-size: .8rem; font-weight: 690; }
.sj-mega-overview .sj-nav-icon { width: 14px; height: 14px; color: var(--gold-dark); }
.sj-mega-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; padding-block: 9px 8px; }
.sj-mega-grid.sj-columns-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.sj-mega-column { min-width: 0; }
.sj-mega-column + .sj-mega-column { padding-inline-start: 9px; border-inline-start: 1px solid #eeeae4; }
.sj-column-label { margin: 0 0 3px; padding-inline: 7px; color: var(--sj-nav-muted); font-size: .74rem; font-weight: 720; line-height: 1.35; }
.sj-topic-card { display: flex; align-items: center; min-height: 28px; padding: 3px 7px; border-radius: 6px; font-size: .84rem; line-height: 1.25; overflow-wrap: anywhere; }
.sj-topic-card strong { font-weight: 560; }
.sj-topic-card small, .sj-topic-card .sj-nav-icon { display: none; }
.sj-mega-panel :is(.sj-topic-card,.sj-mega-overview,.sj-mega-finder):is(:hover,:focus-visible,[aria-current]) { color: var(--gold-dark); background: var(--sj-menu-active); }
.sj-mega-panel a:focus-visible { outline-width: 2px; outline-offset: -2px; }
.sj-mega-footer { border-top: 1px solid #eeeae4; }
.sj-mega-footer > div { display: flex; align-items: center; justify-content: flex-end; padding-block: 1px 3px; font-size: .76rem; }
.sj-mega-footer > div > span { display: none; }
.sj-mega-finder { display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding-inline: 7px; border-radius: 6px; color: var(--gold-dark); font-weight: 700; }
.sj-mega-finder .sj-nav-icon { width: 15px; height: 15px; }

@media (min-width: 1024px) {
  /* Keep the small gap below the trigger hoverable. */
  .sj-nav-group[open] > summary::before { content: ""; position: absolute; inset: 100% 0 auto; height: 8px; }
}
@media (max-width: 1023px) {
  :root { --sj-header-height: 121px; }
  html.sj-menu-open { overflow: hidden; }
  .sj-header { -webkit-tap-highlight-color: #b548091c; }
  .sj-nav-wrap { width: calc(100% - 36px); }
  .sj-header-main { min-height: 0; grid-template-columns: minmax(0,1fr) auto; column-gap: 14px; row-gap: 7px; padding-block: 10px 11px; }
  .sj-header .sj-header-brand { width: fit-content; min-height: 40px; font-size: 1.32rem; }
  .sj-header-brand img { width: 32px; height: 32px; }
  .sj-topic-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .sj-search-field { height: 44px; }
  .sj-search-field input { font-size: 16px; padding-inline: 12px 5px; }
  .sj-search-field button { height: 40px; }
  .sj-header-finder, .sj-header-topics { display: none; }
  .sj-header-main > noscript { grid-column: 2; grid-row: 1; }
  .sj-header[data-nav-ready] .sj-nav-toggle, .sj-nav-fallback {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--sj-nav-ink);
    background: #fff;
    font-weight: 700;
  }
  .sj-nav-toggle:hover { border-color: var(--sj-nav-line); background: var(--sj-nav-card); }
  .sj-nav-toggle .sj-nav-icon { width: 24px; height: 24px; }
  .sj-nav-toggle[aria-expanded="false"] .sj-icon-close, .sj-nav-toggle[aria-expanded="true"] .sj-icon-menu { display: none; }
  .sj-nav-row {
    --sj-mobile-menu-inset: clamp(12px,4.6vw,34px);
    position: absolute;
    inset: calc(100% + 6px) var(--sj-mobile-menu-inset) auto auto;
    z-index: 2;
    width: min(30rem, calc(100% - 2 * var(--sj-mobile-menu-inset)));
    max-height: min(56dvh,calc(100dvh - var(--sj-header-height) - 14px));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--sj-menu-edge);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--sj-menu-shadow);
  }
  .sj-nav-row:not(.is-open) { display: none; }
  .sj-primary-nav { position: static; display: flex; align-items: stretch; flex-direction: column; gap: 0; width: auto; margin: 0; padding: 5px 9px 10px; min-height: 0; }
  .sj-nav-direct, .sj-nav-group > summary { width: 100%; justify-content: space-between; min-height: 44px; padding: 6px 8px; font-size: .9rem; white-space: normal; }
  .sj-nav-direct, .sj-nav-group { border-bottom: 1px solid var(--sj-menu-edge); }
  .sj-primary-nav :is(a,button,summary):focus-visible { outline-width: 2px; outline-offset: -2px; }
  .sj-nav-group:is([open],.is-current) > summary::after, .sj-nav-direct[aria-current]::after, .sj-nav-separator { display: none; }
  .sj-nav-group[open] > summary { border-radius: 7px; background: var(--sj-menu-active); }
  .sj-mega-panel { position: static; width: auto; max-height: none; margin-block: 4px 8px; overflow: hidden; border-radius: 9px; box-shadow: none; }
  .sj-mega-panel .sj-nav-wrap { margin-inline: 6px; }
  .sj-mega-intro > div { min-height: 0; padding-block: 0; }
  .sj-mega-intro > div > div { display: none; }
  .sj-mega-overview { min-height: 44px; }
  .sj-mega-grid, .sj-mega-grid.sj-columns-3 { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 8px; padding-block: 8px 10px; }
  .sj-mega-column + .sj-mega-column { padding-inline-start: 0; border-inline-start: 0; }
  .sj-column-label { min-height: 1.95rem; margin-bottom: 3px; padding: 2px 6px 5px; border-bottom: 1px solid var(--sj-menu-edge); font-size: .72rem; }
  .sj-topic-card { min-height: 44px; padding: 4px 6px; font-size: .82rem; }
  .sj-mega-footer > div { padding-block: 0; }
  .sj-mega-finder { min-height: 44px; }
  .sj-mobile-finder { display: inline-flex; justify-content: center; margin-top: 8px; min-height: 44px; box-shadow: none; }
}
@media (max-width: 359px) {
  .sj-nav-wrap { width: calc(100% - 28px); }
  .sj-mega-grid, .sj-mega-grid.sj-columns-3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sj-nav-group > summary .sj-nav-icon { transition: none; }
}
