/* Gemensam huvudmeny för dcallin.se */
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); }
.site-nav a {
  color: #f3efe6;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color .25s;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.7,.1,1);
}
.site-nav a:hover { color: #3fd3ea; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: #3fd3ea; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #f3efe6;
  font: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 2px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: rgba(243, 239, 230, 0.35);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px clamp(20px, 5vw, 64px) 28px;
    background: rgba(10, 16, 32, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .topbar.nav-open .site-nav { display: flex; }
  .topbar.nav-open { background: rgba(10, 16, 32, 0.97); }
  .site-nav a {
    width: 100%;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: 1.9rem;
    letter-spacing: -0.02em;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .site-nav a::after { display: none; }
}

/* Länkar i sidfoten */
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: inherit; text-decoration: none; }
.footer-nav a:hover { color: #f3efe6; text-decoration: underline; text-underline-offset: 4px; }

@media print { .site-nav, .nav-toggle { display: none !important; } }
footer .footer-nav, .case-footer-inner .footer-nav { flex-basis: 100%; margin-bottom: 8px; }
