/* EHR-5360 — the phone menu of the public pages. Under 620 px the nav links
   (Lausnin, Öryggi, Um teymið, Hafa samband) were hidden with nothing in their
   place. landing-menu.js shows the button and toggles aria-expanded; without
   it the page stays as it was. Linked BEFORE each page's own <style>, so a
   page that styles its nav keeps its own values; the profession pages, whose
   header was the logo alone, get the shared row from here. */
.landing-nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--landing-ink-soft); }
.landing-nav-links a { text-decoration: none; }
.landing-nav-links a:hover { color: var(--landing-ink); }
.landing-nav-actions { display: flex; align-items: center; gap: 10px; }
.landing-lang { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--landing-ink-soft); text-decoration: none; padding: 6px 8px; border-radius: 8px; }
.landing-lang:hover { color: var(--landing-ink); background: var(--landing-bg-alt); }

.landing-menu-btn { display: none; }
.landing-menu-bars,
.landing-menu-bars::before,
.landing-menu-bars::after { display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .15s ease, opacity .15s ease; }
.landing-menu-bars { position: relative; }
.landing-menu-bars::before,
.landing-menu-bars::after { content: ""; position: absolute; left: 0; }
.landing-menu-bars::before { top: -6px; }
.landing-menu-bars::after { top: 6px; }
.landing-menu-btn[aria-expanded="true"] .landing-menu-bars { background: transparent; }
.landing-menu-btn[aria-expanded="true"] .landing-menu-bars::before { transform: translateY(6px) rotate(45deg); }
.landing-menu-btn[aria-expanded="true"] .landing-menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 620px) {
  .landing-nav-links { display: none; }
  .landing-nav .landing-btn-primary { white-space: nowrap; }
  .landing-nav-actions { flex-shrink: 0; gap: 6px; }
  .landing-nav .landing-nav-row { gap: 12px; }
  /* The logo gives way to the three controls instead of running under them. */
  .landing-logo { min-width: 0; }
  .landing-nav .landing-logo img { max-width: 100%; object-fit: contain; object-position: left center; }
  .landing-menu-btn:not([hidden]) {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; flex-shrink: 0;
    border: 1px solid var(--landing-rule); border-radius: 999px;
    background: transparent; color: var(--landing-ink); cursor: pointer;
  }
  .landing-menu-btn:focus-visible { outline: 2px solid var(--landing-ink); outline-offset: 2px; }
  .landing-nav.is-open .landing-nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 4px 18px 12px;
    background: var(--landing-bg);
    border-bottom: 1px solid var(--landing-rule);
    box-shadow: 0 12px 24px -12px rgba(20, 17, 12, 0.18);
    font-size: 16px;
  }
  .landing-nav.is-open .landing-nav-links a { display: block; padding: 12px 0; color: var(--landing-ink); }
  .landing-nav.is-open .landing-nav-links a + a { border-top: 1px solid var(--landing-rule); }
}
@media (max-width: 414px) {
  .landing-nav .landing-btn-primary { padding: 10px 14px; }
}
