@font-face {
  font-family: "Aboreto";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/assets/fonts/aboreto-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Direction-aware menu: fade out while scrolling down, return while scrolling up. */
.legacy-home .legacy-header.scroll-aware-header,
.subpage .global-header.scroll-aware-header {
  position: fixed;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  will-change: opacity, transform;
  transition: opacity .22s ease, transform .26s cubic-bezier(.22, 1, .36, 1);
}
.legacy-home .legacy-header.scroll-aware-header.is-menu-hidden,
.subpage .global-header.scroll-aware-header.is-menu-hidden {
  opacity: 0;
  transform: translate3d(0, calc(-100% - 8px), 0);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .legacy-home .legacy-header.scroll-aware-header,
  .subpage .global-header.scroll-aware-header { transition-duration: .01ms; }
}

/* A főmenü linkjein a böngésző egyik linkállapota sem rajzolhat aláhúzást. */
.legacy-home .main-nav a,
.legacy-home .main-nav a:link,
.legacy-home .main-nav a:visited,
.legacy-home .main-nav a:hover,
.legacy-home .main-nav a:active,
.legacy-home .main-nav a:focus,
.subpage .main-nav.global-nav a,
.subpage .main-nav.global-nav a:link,
.subpage .main-nav.global-nav a:visited,
.subpage .main-nav.global-nav a:hover,
.subpage .main-nav.global-nav a:active,
.subpage .main-nav.global-nav a:focus {
  text-decoration: none !important;
  text-decoration-line: none !important;
}

/* A legacy főoldali stílus animált vonalat rajzolt a menüpontok alá.
   A közös menüben nincs mozgó csík vagy pozícióváltás. */
.legacy-home .main-nav > a::before,
.legacy-home .main-nav > a::after,
.subpage .main-nav.global-nav > a::before,
.subpage .main-nav.global-nav > a::after {
  content: none !important;
  display: none !important;
  transform: none !important;
  transition: none !important;
}

@media (min-width: 1051px) {
  .legacy-home .main-nav > a,
  .legacy-home .legacy-more > button,
  .subpage .main-nav.global-nav > a,
  .subpage .global-more > button {
    border-bottom: 0 !important;
  }
}

.legacy-home .szechenyi-trigger,
.subpage .szechenyi-trigger {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 128px;
  height: 34px;
  margin: 0 auto 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.legacy-home .szechenyi-trigger:hover,
.subpage .szechenyi-trigger:hover { transform: scale(1.04); background: transparent !important; }
.legacy-home .szechenyi-trigger:focus-visible,
.subpage .szechenyi-trigger:focus-visible { outline: 0; background: transparent !important; }
.legacy-home .szechenyi-trigger:focus-visible img,
.subpage .szechenyi-trigger:focus-visible img { filter: drop-shadow(0 0 2px #2389c9); }
.legacy-home .szechenyi-trigger .legacy-szechenyi,
.subpage .szechenyi-trigger .global-szechenyi { margin: 0; pointer-events: none; }

.szechenyi-lightbox {
  width: min(940px, calc(100% - 28px));
  max-width: none;
  max-height: 94dvh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: 0 28px 80px rgba(8,25,35,.32);
  color: #25384a;
  animation: szechenyi-lightbox-in .27s cubic-bezier(.22,1,.36,1);
}
.szechenyi-lightbox::backdrop { background: rgba(8,23,31,.68); backdrop-filter: blur(7px); animation: szechenyi-backdrop-in .22s ease; }
.szechenyi-lightbox__sheet { position: relative; max-height: 94dvh; overflow-y: auto; padding: clamp(30px,5vw,58px); background: #fff; }
.szechenyi-lightbox__close { position: absolute; z-index: 2; right: 20px; top: 18px; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #f0f7fb; color: #2389c9; cursor: pointer; transition: transform .2s ease,background .2s ease; }
.szechenyi-lightbox__close:hover { transform: rotate(7deg) scale(1.06); background: #dceef8; }
.szechenyi-lightbox__close::before,.szechenyi-lightbox__close::after { content:""; position:absolute; left:10px; top:18px; width:18px; height:2px; background:currentColor; }
.szechenyi-lightbox__close::before { transform: rotate(45deg); }.szechenyi-lightbox__close::after { transform: rotate(-45deg); }
.szechenyi-lightbox__visual { display:grid; place-items:center; min-height:170px; margin:0 50px 34px 0; }
.szechenyi-lightbox__visual img { display:block; width:min(100%,620px); max-height:270px; object-fit:contain; }
.szechenyi-lightbox__content { max-width:790px; margin-inline:auto; }
.szechenyi-lightbox__content h2 { margin:0 0 22px; color:#243c52; font:700 clamp(20px,2.6vw,28px)/1.32 "Arima",Arial,sans-serif; text-transform:none; letter-spacing:0; }
.szechenyi-lightbox__content p { margin:0 0 17px; color:#3e4d59; font:400 15px/1.72 "Arima",Arial,sans-serif; text-align:left; }
.szechenyi-lightbox__content strong { color:#1f5f86; }
.szechenyi-lightbox__actions { display:flex; justify-content:center; gap:18px; flex-wrap:wrap; margin-top:34px; }
.szechenyi-lightbox__actions a,.szechenyi-lightbox__actions button { min-width:180px; padding:12px 22px; border:1px solid #2389c9; border-radius:999px; background:#fff; color:#177cb8; cursor:pointer; font:700 12px/1.2 "Arima",Arial,sans-serif; letter-spacing:.04em; text-align:center; text-decoration:none; transition:background .2s ease,color .2s ease,transform .2s ease; }
.szechenyi-lightbox__actions button { background:#2389c9; color:#fff; }
.szechenyi-lightbox__actions a:hover,.szechenyi-lightbox__actions button:hover { transform:translateY(-2px); background:#176f9f; color:#fff; }
@keyframes szechenyi-lightbox-in { from { opacity:0; transform:translateY(16px) scale(.98); } to { opacity:1; transform:none; } }
@keyframes szechenyi-backdrop-in { from { opacity:0; } to { opacity:1; } }
@media(max-width:620px){
  .legacy-home .szechenyi-trigger,.subpage .szechenyi-trigger{width:118px;height:32px;margin-inline:auto}
  .szechenyi-lightbox{width:calc(100% - 16px);max-height:96dvh}
  .szechenyi-lightbox__sheet{max-height:96dvh;padding:56px 20px 28px}
  .szechenyi-lightbox__close{right:12px;top:10px}
  .szechenyi-lightbox__visual{min-height:100px;margin:0 0 24px}
  .szechenyi-lightbox__visual img{max-height:180px}
  .szechenyi-lightbox__content h2{font-size:20px}
  .szechenyi-lightbox__content p{font-size:14px;line-height:1.65}
  .szechenyi-lightbox__actions{display:grid;gap:10px}.szechenyi-lightbox__actions a,.szechenyi-lightbox__actions button{width:100%}
}

html { overflow-x: hidden; }
html.mobile-menu-page-locked {
  overflow: hidden !important;
  overscroll-behavior: none;
}
body.mobile-menu-page-locked {
  position: fixed;
  inset: var(--mobile-menu-scroll-y, 0) 0 auto;
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}
body.legacy-home,
body.subpage {
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html,
  body.legacy-home,
  body.subpage { overflow-x: clip; }
}
@font-face {
  font-family: "Aboreto";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/assets/fonts/aboreto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Arima";
  font-style: normal;
  font-weight: 300 600;
  font-display: block;
  src: url("/assets/fonts/arima-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lobster";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/lobster-regular.ttf") format("truetype");
}
@font-face {
  font-family: "Arima";
  font-style: normal;
  font-weight: 300 600;
  font-display: block;
  src: url("/assets/fonts/arima-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The legacy subpage header is only a no-JS fallback; never paint it before replacement. */
.subpage .contact-strip,
.subpage .site-header { display: none !important; }

/* One source of truth for the public menu on the homepage and every subpage. */
.legacy-home .legacy-header,
.subpage .global-header {
  height: 92px;
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  color: #324158;
  border: 0;
  border-top: 4px solid #1f3028;
  background: linear-gradient(180deg, #fff 0, #fff 44px, transparent 44px);
  box-shadow: none;
  text-shadow: none;
}
.legacy-home .legacy-shell,
.subpage .global-shell {
  width: 78vw;
  max-width: 980px;
  margin-inline: auto;
}
.legacy-home .legacy-contact,
.subpage .global-contact {
  width: 78vw;
  max-width: 980px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 0;
  color: #324158;
  font: 600 12px/1.48 "Arima", Arial, sans-serif;
  letter-spacing: normal;
  text-transform: uppercase;
}
.legacy-home .legacy-contact a,
.subpage .global-contact a { color: #324158; text-decoration: none; }
.legacy-home .legacy-szechenyi,
.subpage .global-szechenyi {
  display: block;
  width: 118px;
  height: 28px;
  object-fit: contain;
  object-position: left center;
  margin-right: auto;
}
.legacy-home .legacy-navline,
.subpage .global-navline {
  width: 78vw;
  max-width: 980px;
  height: 48px;
  position: relative;
  display: flex;
  align-items: center;
  margin-inline: auto;
}
.legacy-home .legacy-mark,
.subpage .global-mark {
  position: absolute;
  left: -30px;
  top: 8px;
  width: 37px;
  height: 34px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.legacy-home .legacy-mark img,
.subpage .global-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
  animation: lorinte-logo-pulse 4.2s ease-in-out infinite;
  will-change: transform;
}
.legacy-home .legacy-hero__logo {
  transform-origin: center;
  animation: lorinte-logo-pulse 4.2s ease-in-out infinite;
  will-change: transform;
}
.legacy-home .menu-button,
.subpage .global-menu-button { display: none; }
.legacy-home .mobile-home-link,
.subpage .mobile-home-link { display: none !important; }
.menu-scroll-indicator { display: none; }
.legacy-home .main-nav,
.subpage .main-nav.global-nav {
  position: static;
  width: max-content;
  max-width: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  gap: 0;
  margin-inline: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 3px 14px rgba(17, 48, 61, .13);
  font-family: "Aboreto", sans-serif;
}
.legacy-home .main-nav > a,
.legacy-home .legacy-more > button,
.subpage .main-nav.global-nav > a,
.subpage .global-more > button {
  width: auto;
  min-height: 0;
  color: #324158 !important;
  font: 400 14px/1 "Aboreto", sans-serif !important;
  -webkit-text-stroke: .16px currentColor;
  letter-spacing: .025em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 9px 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  cursor: pointer;
  transition: background .22s ease;
}
.legacy-home .main-nav > a:hover,
.legacy-home .main-nav > a:focus-visible,
.legacy-home .legacy-more > button:hover,
.legacy-home .legacy-more > button:focus-visible,
.legacy-home .legacy-more.open > button,
.subpage .main-nav.global-nav > a:hover,
.subpage .main-nav.global-nav > a:focus-visible,
.subpage .global-more > button:hover,
.subpage .global-more > button:focus-visible,
.subpage .global-more.open > button {
  color: #324158 !important;
  background: rgb(224, 239, 246);
}
.subpage .main-nav.global-nav > .current-nav {
  color: #324158 !important;
  font-weight: 400 !important;
  background: rgb(224, 239, 246) !important;
}
.subpage .global-more .current-nav {
  color: #324158 !important;
  font-weight: 400 !important;
  background: rgb(224, 239, 246) !important;
}
.subpage .global-more:has(.current-nav) > button {
  color: #324158 !important;
  background: rgb(224, 239, 246) !important;
}
.legacy-home .main-nav > a:first-child,
.subpage .main-nav.global-nav > a:first-child { border-radius: 10px 0 0 10px; }
.legacy-home .main-nav > a:not(:first-child),
.legacy-home .legacy-more,
.subpage .main-nav.global-nav > a:not(:first-child),
.subpage .global-more { border-left: 1px solid rgba(35, 137, 201, .26); }
@media (min-width: 1051px) {
  .legacy-home .main-nav > .mobile-home-link + a,
  .subpage .main-nav.global-nav > .mobile-home-link + a {
    border-left: 0;
    border-radius: 10px 0 0 10px;
  }
}
.legacy-home .legacy-more,
.subpage .global-more { position: relative; }
.legacy-home .legacy-more > button,
.subpage .global-more > button {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 0 10px 10px 0;
}
.legacy-home .legacy-more > button > span,
.subpage .global-more > button > span {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .28s ease;
}
.legacy-home .legacy-more.open > button > span,
.subpage .global-more.open > button > span { transform: rotate(225deg) translate(-1px, -1px); }
.legacy-home .legacy-more > div,
.subpage .global-more > div {
  display: grid;
  position: absolute;
  right: -120px;
  top: calc(100% + 2px);
  width: 280px;
  max-height: none;
  overflow: hidden;
  margin: 0;
  padding: 6px 0;
  border: 0;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(18, 55, 72, .2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: opacity .22s ease, transform .28s cubic-bezier(.22, 1, .36, 1), visibility .22s;
}
.legacy-home .legacy-more.open > div,
.subpage .global-more.open > div {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.legacy-home .legacy-more div a,
.subpage .global-more div a {
  min-height: 0;
  display: block;
  padding: 5px 10px;
  color: #324158;
  text-decoration: none;
  text-align: center;
  border-top: 1px solid rgba(35, 137, 201, .5);
  font: 400 14px/normal "Aboreto", sans-serif;
  -webkit-text-stroke: .16px currentColor;
  transition: color .18s ease, background .18s ease;
}
.legacy-home .legacy-more div a:first-child,
.subpage .global-more div a:first-child { border-top: 0; }
.legacy-home .legacy-more div a:hover,
.legacy-home .legacy-more div a:focus-visible,
.subpage .global-more div a:hover,
.subpage .global-more div a:focus-visible {
  color: #324158 !important;
  background: rgb(224, 239, 246) !important;
}

@media (max-width: 1050px) {
  .legacy-home .legacy-header,
  .subpage .global-header { height: 116px; border-top: 0; background: transparent; }
  .legacy-home .legacy-contact,
  .subpage .global-contact {
    display: flex;
    width: 100%;
    max-width: none;
    height: 46px;
    margin: 0;
    padding: 0;
    justify-content: center;
    background: #fff;
    box-shadow: 0 1px 0 rgba(50, 65, 88, .08);
  }
  .legacy-home .legacy-contact > span,
  .legacy-home .legacy-contact > a,
  .subpage .global-contact > span,
  .subpage .global-contact > a { display: none; }
  .legacy-home .legacy-szechenyi,
  .subpage .global-szechenyi {
    width: 112px;
    height: 26px;
    margin: 0;
    object-position: center;
  }
  .legacy-home .legacy-navline,
  .subpage .global-navline { width: 980px; max-width: calc(100% - 36px); height: 70px; }
  .legacy-home .legacy-mark,
  .subpage .global-mark { left: 0; top: 18px; }
  .legacy-home .menu-button,
  .subpage .global-menu-button {
    display: grid;
    margin-left: auto;
    width: 48px;
    height: 48px;
    padding: 11px 12px;
    color: #324158;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 4px 16px rgba(18, 55, 72, .16);
    grid-template-columns: 24px;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .legacy-home .menu-button span,
  .subpage .global-menu-button span { display: block; width: 24px; height: 2px; background: #324158; grid-column: 1; }
  .legacy-home .menu-button b,
  .subpage .global-menu-button b { display: none !important; }
  .legacy-home .main-nav,
  .subpage .main-nav.global-nav {
    position: absolute;
    left: -18px;
    right: -18px;
    top: 70px;
    z-index: 10;
    display: none;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 116px);
    max-height: calc(100dvh - 116px);
    margin: 0;
    padding: 18px 18px calc(34px + env(safe-area-inset-bottom));
    scroll-padding-bottom: calc(34px + env(safe-area-inset-bottom));
    gap: 0;
    flex-direction: column;
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(35, 137, 201, .24);
    border-radius: 0 0 12px 12px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 45px rgba(0, 0, 0, .3);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
    scrollbar-color: #2389c9 rgba(35, 137, 201, .14);
  }
  .legacy-home .main-nav::-webkit-scrollbar,
  .subpage .main-nav.global-nav::-webkit-scrollbar { width: 9px; }
  .legacy-home .main-nav::-webkit-scrollbar-track,
  .subpage .main-nav.global-nav::-webkit-scrollbar-track { background: rgba(35, 137, 201, .12); border-radius: 8px; }
  .legacy-home .main-nav::-webkit-scrollbar-thumb,
  .subpage .main-nav.global-nav::-webkit-scrollbar-thumb { background: #2389c9; border: 2px solid rgba(255, 255, 255, .9); border-radius: 8px; }
  .legacy-home .menu-scroll-indicator,
  .subpage .menu-scroll-indicator {
    display: block;
    position: absolute;
    z-index: 40;
    top: 78px;
    right: -14px;
    width: 7px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(50, 65, 88, .18);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .65), 0 3px 12px rgba(17, 48, 61, .2);
    pointer-events: none;
  }
  .legacy-home .menu-scroll-indicator[hidden],
  .subpage .menu-scroll-indicator[hidden] { display: none; }
  .legacy-home .menu-scroll-indicator span,
  .subpage .menu-scroll-indicator span {
    display: block;
    width: 100%;
    border-radius: inherit;
    background: #2389c9;
    box-shadow: 0 0 8px rgba(35, 137, 201, .5);
    transition: height .2s ease, transform .08s linear;
  }
  .legacy-home .main-nav.open,
  .subpage .main-nav.global-nav.open { display: flex; }
  .legacy-home .main-nav > .mobile-home-link,
  .subpage .main-nav.global-nav > .mobile-home-link { display: flex !important; }
  .legacy-home .legacy-hero__content { padding-top: 120px; }
  .legacy-home .main-nav > a,
  .legacy-home .legacy-more > button,
  .subpage .main-nav.global-nav > a,
  .subpage .global-more > button {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding: 13px 14px;
    color: #324158 !important;
    font: 400 19px/1.2 "Aboreto", sans-serif !important;
    border-bottom: 1px solid rgba(35, 137, 201, .2);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .subpage .main-nav.global-nav > .current-nav { color: #324158 !important; font-weight: 400 !important; background: rgb(224, 239, 246) !important; }
  .legacy-home .main-nav > a:first-child,
  .subpage .main-nav.global-nav > a:first-child { border-radius: 0; }
  .legacy-home .legacy-more,
  .subpage .global-more { width: 100%; border-left: 0; }
  .legacy-home .legacy-more > div,
  .subpage .global-more > div {
    position: static;
    width: 100%;
    max-height: 0;
    margin-top: 0;
    padding-block: 0;
    border-width: 0;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: opacity .18s ease;
  }
  .legacy-home .legacy-more.open > div,
  .subpage .global-more.open > div {
    display: grid;
    max-height: 390px !important;
    margin-top: 6px;
    padding-block: 5px;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .legacy-home .legacy-more div a,
  .subpage .global-more div a { min-height: 48px; padding: 12px 10px; display: flex; align-items: center; justify-content: center; font: 400 19px/1.2 "Aboreto", sans-serif !important; }
}
@media (max-width: 560px) {
  .legacy-home .legacy-hero__content { padding-top: 120px; }
  .legacy-home .legacy-pill { margin-top: 11px; }
}

@keyframes lorinte-logo-pulse {
  0%, 28%, 100% { transform: scale(1); opacity: .96; }
  7% { transform: scale(1.085); opacity: 1; }
  14% { transform: scale(1); opacity: .97; }
  21% { transform: scale(1.06); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .legacy-home .legacy-mark img,
  .subpage .global-mark img,
  .legacy-home .legacy-hero__logo {
    animation: none;
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}
@media (max-width: 1050px) and (max-height: 520px) and (orientation: landscape) {
  .legacy-home .main-nav,
  .subpage .main-nav.global-nav {
    max-height: calc(100dvh - 116px);
    padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
    scroll-padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .legacy-home .main-nav > a,
  .legacy-home .legacy-more > button,
  .subpage .main-nav.global-nav > a,
  .subpage .global-more > button { padding-block: 9px !important; }
}
