/* Shared navigation. Uses the original homepage dimensions on every page. */
html { scrollbar-gutter: stable; }
.topbar, .site-head, .drawer {
  --ink: #141416;
  --paper: #f2f0ec;
  --red: #d50004;
  --red-dk: #9c070a;
  --steel: #5e5f64;
  --line: rgba(20, 20, 22, .15);
  --line-soft: rgba(20, 20, 22, .09);
  --pad: clamp(20px, 4vw, 56px);
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  box-sizing: border-box;
  text-align: left;
}
.site-head, .drawer { font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1.62; color: var(--ink); }
.topbar a, .site-head a, .drawer a { color: inherit; text-decoration: none; }
.site-head button, .drawer button { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.topbar > .wrap, .site-head > .wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); box-sizing: border-box; }
.topbar { background: var(--ink); color: rgba(242, 240, 236, .72); font-family: var(--mono); font-size: 11px; font-weight: 400; line-height: 1.62; letter-spacing: .1em; text-transform: uppercase; }
.topbar > .wrap { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 16px; }
.topbar .tb-r { display: none; }
.topbar a { font: inherit; }
.topbar a:hover { color: #fff; }
.site-head { position: sticky; top: 0; z-index: 60; background: rgba(242, 240, 236, .94); border: 0; border-bottom: 1px solid var(--line-soft); transition: box-shadow .25s; }
.site-head.is-stuck { box-shadow: 0 1px 0 rgba(20, 20, 22, .08), 0 12px 28px -20px rgba(20, 20, 22, .35); }
.site-head > .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; height: 92px; gap: 22px; }
.site-head .brand { display: flex; align-items: center; gap: 12px; flex: none; }
.site-head .brand img { display: block; width: 40px; height: 40px; max-width: none; object-fit: contain; }
.site-head .brand .word { display: flex; flex-direction: column; line-height: 1; }
.site-head .brand .word b { font-size: 21px; font-weight: 800; letter-spacing: .14em; }
.site-head .brand .word span { max-width: 180px; margin-top: 6px; font-family: var(--mono); font-size: 9.5px; font-weight: 400; line-height: 1.4; letter-spacing: .04em; color: var(--steel); }
.site-head .nav { display: none; }
.site-head .nav > .nav-link, .site-head .nav-item > .nav-link { display: inline-flex; align-items: center; align-self: center; gap: 7px; position: relative; padding: 8px 0; font-size: clamp(16px, 1.3vw, 19px); font-weight: 600; line-height: 1.62; letter-spacing: -.015em; white-space: nowrap; }
.site-head .nav > .nav-link::after, .site-head .nav-item > .nav-link::after { content: ""; display: block; position: absolute; left: 0; right: 0; bottom: 2px; width: auto; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.site-head .nav > .nav-link:hover::after, .site-head .nav-item:hover > .nav-link::after, .site-head .nav > .nav-link[aria-current]::after, .site-head .nav-item > .nav-link[aria-current]::after { transform: scaleX(1); }
.site-head .nav > .nav-link[aria-current], .site-head .nav-item > .nav-link[aria-current] { font-weight: 700; color: var(--red); }
.site-head .nav-item { position: relative; display: flex; align-items: stretch; }
.site-head .nav .chev { display: block; width: 13px; height: 13px; flex: none; transition: transform .25s; }
.site-head .nav-item:hover > .nav-link .chev, .site-head .nav-item.open > .nav-link .chev, .site-head .nav-item:focus-within > .nav-link .chev { transform: rotate(180deg); }
.site-head .nav-panel { position: absolute; top: 100%; left: -20px; width: 340px; max-width: calc(100vw - 32px); max-height: min(76vh, 620px); display: none; overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid var(--line-soft); border-top: 2px solid var(--red); box-shadow: 0 24px 48px -20px rgba(20, 20, 22, .4); z-index: 70; }
.site-head .nav-item:hover > .nav-panel, .site-head .nav-item:focus-within > .nav-panel, .site-head .nav-item.open > .nav-panel { display: block; }
.site-head .nav-panel::-webkit-scrollbar { width: 6px; }
.site-head .nav-panel::-webkit-scrollbar-track { background: transparent; }
.site-head .nav-panel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.site-head .np-inner { padding: 14px 22px 18px; }
.site-head .np-list { max-height: min(65vh, 540px); overflow-y: auto; }
.site-head .nav-panel .np-list a { display: block; position: static; padding: 13px 0; font-size: 16px; font-weight: 500; letter-spacing: 0; line-height: 1.4; white-space: normal; color: var(--ink); }
.site-head .nav-panel .np-list a::after { display: none; }
.site-head .nav-panel .np-list a:hover { color: var(--red); }
.nav-children { padding-left: 16px; border-left: 1px solid var(--line-soft); }
.site-head .head-cta, .drawer .btn { display: inline-flex; align-items: center; justify-content: center; gap: 11px; flex: none; margin: 0; padding: 14px 22px; border: 1px solid transparent; border-radius: 2px; background: var(--red); color: #fff; font-family: var(--font); font-size: 14.5px; font-weight: 600; line-height: 1; letter-spacing: -.005em; white-space: nowrap; transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease); }
.site-head .head-cta { display: none; }
.site-head .head-cta svg, .drawer .btn svg { display: block; width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease); }
.site-head .head-cta:hover, .drawer .btn:hover { background: var(--red-dk); color: #fff; }
.site-head .head-cta:hover svg, .drawer .btn:hover svg { transform: translateX(3px); }
.site-head .nav-toggle { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 5px; width: 44px; height: 44px; flex: none; padding-right: 2px; }
.site-head .nav-toggle span { display: block; height: 1.6px; width: 22px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.site-head .nav-toggle span:nth-child(2) { width: 16px; }
.site-head .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.site-head .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-head .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
body.menu-open { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 55; display: none; flex-direction: column; gap: 2px; max-height: 100dvh; padding: 148px var(--pad) 40px; overflow-y: auto; background: var(--paper); }
.drawer.open { display: flex; }
.drawer a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 22px; font-weight: 700; line-height: 1.62; letter-spacing: -.02em; }
.drawer a[aria-current="page"] { color: var(--red); }
.drawer .d-item { display: block; border-bottom: 1px solid var(--line-soft); }
.drawer .d-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drawer .d-row > a { flex: 1; min-width: 0; font-size: 23px; }
.drawer .d-toggle { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; }
.drawer .d-toggle svg { display: block; width: 19px; height: 19px; transition: transform .25s; }
.drawer .d-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.drawer .d-sub { padding: 2px 0 16px 18px; margin: 0 0 0 4px; border-left: 2px solid var(--red); }
.drawer .d-sub[hidden] { display: none; }
.drawer .d-sub a { display: block; padding: 9px 0; border: 0; font-size: 15px; font-weight: 500; line-height: 1.62; letter-spacing: 0; color: var(--steel); }
.drawer .d-sub a:hover { color: var(--red); }
.drawer .btn { margin-top: 26px; padding: 14px 20px; }
.topbar a:focus-visible, .site-head a:focus-visible, .site-head button:focus-visible, .drawer a:focus-visible, .drawer button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (min-width: 640px) { .site-head .head-cta { display: inline-flex; } }
@media (min-width: 760px) { .topbar .tb-r { display: flex; gap: 26px; align-items: center; } }
@media (min-width: 1200px) {
  .site-head .nav { display: flex; align-items: stretch; align-self: stretch; justify-content: center; gap: clamp(10px, 1.6vw, 26px); flex: 1 1 auto; min-width: 0; }
  .site-head .nav-toggle, .drawer { display: none; }
}
@media (max-width: 1199px) { .site-head .brand { margin-right: auto; } }
@media (max-width: 760px) {
  .site-head > .wrap { gap: 12px; }
  .site-head .brand .word span { max-width: 160px; }
  .topbar > .wrap > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .site-head, .site-head .nav-link::after, .site-head .chev, .site-head .head-cta, .site-head .head-cta svg, .site-head .nav-toggle span, .drawer .btn, .drawer .btn svg, .drawer .d-toggle svg { transition: none; }
}

/* Language selector */
.language-switch { position: relative; flex: 0 0 auto; font-family: inherit; }
.language-switch summary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid rgba(20, 20, 22, .14); border-radius: 999px; background: rgba(255, 255, 255, .65); color: var(--ink, #141416); cursor: pointer; list-style: none; user-select: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.language-switch summary::-webkit-details-marker { display: none; }
.language-switch summary::marker { content: ''; }
.language-switch summary:hover, .language-switch[open] summary { border-color: rgba(213, 0, 4, .3); background: #fff; }
.language-switch summary:focus-visible { outline: 2px solid var(--red, #d50004); outline-offset: 4px; }
.language-switch .language-globe { width: 17px; height: 17px; flex: none; color: var(--steel, #5f6066); }
.language-code { font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 1; }
.language-switch .language-chevron { width: 13px; height: 13px; flex: none; transition: transform .2s; }
.language-switch[open] .language-chevron { transform: rotate(180deg); }
.language-switch .language-list { position: absolute; z-index: 100; top: calc(100% + 12px); right: 0; width: 272px; max-width: calc(100vw - 32px); padding: 8px; border: 1px solid rgba(20, 20, 22, .09); border-radius: 16px; background: #fff; box-shadow: 0 18px 50px -12px rgba(20, 20, 22, .2), 0 3px 10px rgba(20, 20, 22, .04); }
.language-heading { padding: 13px 12px 15px; margin-bottom: 5px; border-bottom: 1px solid #eeece8; }
.language-heading > span { display: block; font-size: 9px; font-weight: 700; letter-spacing: .14em; line-height: 1.4; color: var(--steel, #5f6066); }
.language-heading > p { margin: 6px 0 0; font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; color: var(--ink, #141416); }
.language-options { display: grid; gap: 4px; max-height: min(360px, 60dvh); overflow-y: auto; overscroll-behavior: contain; }
.language-switch .language-option { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 8px 12px; border-radius: 9px; color: var(--ink, #141416); text-decoration: none; transition: background .18s, color .18s; }
.language-switch .language-option:hover { background: #f5f3ef; }
.language-switch .language-option:focus-visible { outline: 2px solid var(--red, #d50004); outline-offset: -2px; }
.language-switch .language-option[aria-current] { background: #fcf0ef; color: var(--red, #d50004); }
.language-badge { display: grid; place-items: center; flex: 0 0 auto; min-width: 34px; height: 28px; padding: 0 5px; border: 1px solid #e7e4df; border-radius: 6px; background: #fff; color: #68686b; font-size: 9px; font-weight: 700; line-height: 1; letter-spacing: .04em; }
.language-option[aria-current] .language-badge { border-color: rgba(213, 0, 4, .15); color: var(--red, #d50004); }
.language-name { min-width: 0; flex: 1; overflow-wrap: anywhere; font-size: 13px; font-weight: 500; line-height: 1.45; }
.language-switch .language-check { width: 16px; height: 16px; flex: none; }
@media (max-width: 639px) {
  .language-switch summary { gap: 6px; min-height: 38px; padding: 0 9px; }
  .language-switch .language-globe { width: 16px; height: 16px; }
  .language-switch .language-list { right: -56px; }
  .site-head .brand { min-width: 0; flex-shrink: 1; }
  .site-head .brand .word { min-width: 0; }
  .site-head .brand .word b, .site-head .brand .word span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .language-switch summary, .language-switch .language-chevron, .language-switch .language-option { transition: none; }
}
