/* Navigation shared by the landing and resource page. */
:root { --header-height: 88px; }
.header{position:sticky;top:0;z-index:40;background:var(--paper);border-bottom:1px solid var(--line)}
.header-inner{width:min(1600px,calc(100% - 96px));height:var(--header-height);margin-inline:auto;display:flex;align-items:center;justify-content:space-between;gap:40px;position:relative}
.header .brand { flex: none; }
.header .brand img { width: clamp(172px, 13.5vw, 192px); height: auto; }
#nav{display:flex;align-items:center;justify-content:space-between;flex:1;gap:32px}
.nav-links{display:flex;align-items:center;gap:28px;margin-left:16px}.nav-links>a{padding:12px 0;font-size:15px;font-weight:450;line-height:1.5;white-space:nowrap}.nav-links>a:hover{color:var(--brand-ink)}
.nav-actions{display:flex;align-items:center;gap:18px}.language-row{display:flex;align-items:center}.language-label{display:none}
.login{display:flex;align-items:center;justify-content:center;border-radius:8px;min-height:52px;padding:14px 20px;background:var(--brand-solid);color:var(--brand-on-solid);font-size:14px;line-height:1.4;font-weight:500;white-space:nowrap;transition:background .18s,transform .18s}.login:hover{background:var(--brand-hover);transform:translateY(-2px)}
.menu-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--brand-ink);
  padding: 0;
}
.menu-toggle svg { width: 24px; height: 24px; transition: transform .18s ease-out; }
.menu-toggle:focus-visible svg { transform: scale(1.14); }
@media (hover: hover) {
  .menu-toggle:hover svg { transform: scale(1.14); }
}
.menu-cross { display: none; }
.menu-toggle[aria-expanded=true] .menu-lines { display: none; }
.menu-toggle[aria-expanded=true] .menu-cross { display: block; }
.language-picker{position:relative}.language-trigger{display:flex;align-items:center;justify-content:center;gap:8px;min-width:86px;height:42px;transition:background .18s,border-color .18s,color .18s;border:1px solid var(--line);border-radius:24px;background:white;color:var(--ink);padding:0 11px;font-size:13px;font-weight:500;line-height:1}.language-trigger>svg{flex:none}.language-trigger[aria-expanded=true]>svg{transform:rotate(180deg)}.language-trigger:hover{border-color:var(--brand-outline);background:var(--soft)}
.language-flag,.option-flag{display:inline-flex;width:21px;height:14px;flex:none;overflow:hidden;border-radius:2px;box-shadow:0 0 0 1px #29231f12;align-items:center;justify-content:center}.language-flag svg,.option-flag svg{display:block;width:100%;height:100%}
.language-menu{position:absolute;right:0;overflow-y:auto;overscroll-behavior:contain;top:calc(100% + 8px);width:184px;padding:6px;border:1px solid #e8e3dc;border-radius:14px;box-shadow:0 12px 32px #29231f18;background:white;z-index:45}.language-menu button{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;padding:10px;border:0;border-radius:8px;background:none;color:var(--ink);font-size:14px;line-height:1.5;text-align:left;font-weight:400}.language-menu button:hover{background:#f5f4f0}.language-menu button[aria-checked=true]{background:var(--soft)}.language-menu small{font-size:10px;line-height:1;color:var(--muted);margin-left:auto}.language-check{display:none}
.site-footer{display:block;background:var(--soft);padding:0 0 24px;margin:0}.footer-main,.footer-bottom{width:min(1600px,calc(100% - 96px));margin-inline:auto}.footer-main{display:flex;align-items:center;justify-content:space-between;gap:30px;min-height:102px;padding:0}.site-footer .brand img{width:140px;height:auto}.footer-main>.brand{min-height:60px}.footer-main nav{display:flex;align-items:center;flex-wrap:wrap;gap:16px clamp(16px,2.4vw,34px);margin:0}.footer-main nav a{font-size:13.28px;line-height:1.5;font-weight:400;padding:8px 0}.footer-main a:hover,.footer-main nav a:hover{color:var(--brand-ink)}.footer-bottom{display:flex;align-items:center;justify-content:flex-start;gap:24px;min-height:52px;padding-top:0;border-top:1px solid var(--line)}.footer-bottom small{font-size:12px;line-height:1.5;color:var(--muted)}
@keyframes menu-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 1040px) {
  :root { --header-height: 76px; }
  .header-inner { gap: 20px; }
  .header .brand img { width: 172px; }
  .menu-toggle { display: flex; }
  #nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, calc(100vw - 2 * var(--gutter)));
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 14px 36px #29231f2b;
    gap: 0;
    align-items: stretch;
    flex-direction: column;
  }
  #nav.open { display: flex; animation: menu-open .2s ease-out; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    max-height: max(56px, calc(100dvh - var(--header-height) - 270px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-links > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 9px;
  }
  .nav-links > a:is(:hover, :focus-visible, :active) { background: var(--soft); }
  .nav-links > a:focus-visible { outline-offset: -2px; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 8px; }
  .login { order: -1; }
  .language-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0 12px;
    padding: 10px 8px 0;
    border-top: 1px solid var(--line);
  }
  .language-label { display: inline; font-size: .8rem; font-weight: 550; }
  .language-picker { grid-column: 2; }
  .language-menu {
    width: 196px;
  }
  .language-menu:not([hidden]) { animation: menu-open .16s ease-out; }
}
@media(max-width:580px){:root{--header-height:72px}.header .brand img{width:160px}.footer-main,.footer-bottom{width:calc(100% - 40px)}.site-footer{padding:0 0 20px}.footer-main{flex-direction:column;align-items:flex-start;justify-content:center;gap:18px;min-height:0;padding:22px 0}.footer-main nav{justify-content:flex-start;gap:12px 20px;width:100%;max-width:none}.footer-main nav a{font-size:13.28px;min-height:20px;display:flex;align-items:center;padding:0}.footer-bottom{min-height:52px;flex-direction:row;align-items:center;gap:12px;padding-top:0}.footer-bottom small{font-size:12px}}
@media(prefers-reduced-motion:reduce){.language-trigger>svg{transition:none}}
/* Shared page margins and compact controls. */
.header-inner, .footer-main, .footer-bottom { width: calc(100% - 2 * var(--gutter)); }
.login { min-height: 44px; border-radius: 999px; }
.language-check { display: block; visibility: hidden; color: var(--brand-ink); }
.language-menu button[aria-checked=true] .language-check { visibility: visible; }
.site-footer { padding-bottom: 12px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-legal a { padding-block: 5px; color: var(--brand-ink); font-size: .75rem; }
.footer-legal a:hover { text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 580px) {
  .footer-main nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main > .brand { min-height: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 13px; padding-bottom: 4px; }
  .footer-legal { gap: 8px 20px; }
  .footer-legal a { padding-block: 2px; }
}
.site-footer { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
