/* The selected mobile menu: a quiet navy veil over the existing lake image. */
.mobile-menu-dialog:not([open]){display:none}
@media(max-width:850px){
  .mobile-menu-dialog{
    --menu-frame:12px;
    --menu-gutter:clamp(24px,6vw,44px);
    position:fixed;
    inset:var(--menu-frame);
    width:calc(100% - 2 * var(--menu-frame));
    height:calc(100vh - 2 * var(--menu-frame));
    height:calc(100dvh - 2 * var(--menu-frame));
    max-width:none;
    max-height:none;
    margin:0;
    padding:0;
    border:0;
    border-radius:10px;
    overflow:hidden;
    color:var(--paper);
    background:linear-gradient(rgba(7,21,38,.68),rgba(7,21,38,.68)),url('/assets/hero-fjallsjo-gryning-v37.webp') center/cover no-repeat;
  }
  .mobile-menu-dialog[open]{display:flex;flex-direction:column}
  .mobile-menu-dialog::backdrop{background:#fff}
  .mobile-menu-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:clamp(24px,3.3dvh,34px) var(--menu-gutter);flex:none}
  .mobile-menu-brand{display:block;flex:none;line-height:1}
  .mobile-menu-brand img{display:block;width:clamp(108px,28vw,142px);height:auto;filter:brightness(0) invert(1);opacity:.97}
  .mobile-menu-close{display:grid;place-items:center;position:relative;flex:none;width:44px;height:44px;padding:0;border:1px solid rgba(245,248,250,.64);border-radius:50%;background:transparent;color:var(--paper);cursor:pointer}
  .mobile-menu-close::before,.mobile-menu-close::after{content:'';position:absolute;width:18px;height:1px;background:currentColor;transform:rotate(45deg)}
  .mobile-menu-close::after{transform:rotate(-45deg)}
  .mobile-menu-dialog :focus-visible{outline:2px solid var(--blue);outline-offset:6px}
  .mobile-menu-dialog .mobile-nav:not([hidden]){
    position:static;
    display:flex;
    flex:1;
    min-height:0;
    flex-direction:column;
    justify-content:space-between;
    gap:36px;
    padding:clamp(64px,16dvh,160px) var(--menu-gutter) max(clamp(48px,11dvh,112px),env(safe-area-inset-bottom));
    border:0;
    border-radius:0;
    background:none;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
    overflow-y:auto;
    overscroll-behavior:contain;
    animation:none;
  }
  .mobile-menu-links{display:grid;justify-items:start;gap:clamp(12px,2.3dvh,24px)}
  .mobile-menu-dialog .mobile-nav a{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:flex-start;
    flex:none;
    width:max-content;
    max-width:100%;
    min-height:44px;
    padding:5px 0;
    border:0;
    color:var(--paper);
    font-family:var(--display);
    font-size:clamp(24px,5.9vw,29px);
    font-weight:400;
    line-height:1.25;
    letter-spacing:-.025em;
    text-decoration:none;
  }
  .mobile-menu-dialog .mobile-menu-links>a[aria-current="page"]::after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--blue)}
  .mobile-menu-dialog .mobile-nav>.mobile-menu-contact{gap:24px;font-size:clamp(21px,5.5vw,26px);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:8px}
  .mobile-menu-contact .icon{width:25px;height:25px}
  .mobile-menu-dialog .mobile-nav a:hover,.mobile-menu-close:hover{color:var(--blue)}
}
@media(max-width:600px){.mobile-menu-dialog{--menu-frame:8px}}
@media(max-width:850px) and (max-height:700px){
  .mobile-menu-header{padding-block:18px}
  .mobile-menu-dialog .mobile-nav:not([hidden]){padding-top:30px;padding-bottom:max(28px,env(safe-area-inset-bottom));gap:24px}
  .mobile-menu-links{gap:8px}
}
@media(max-width:850px) and (max-height:500px){
  .mobile-menu-header{padding-block:12px}
  .mobile-menu-dialog .mobile-nav:not([hidden]){padding-top:8px;padding-bottom:max(18px,env(safe-area-inset-bottom));gap:16px}
  .mobile-menu-links{gap:3px}
  .mobile-menu-dialog .mobile-nav a{font-size:21px}
}
