/* Shared language navigation for the existing static page layouts. */
.language-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
}

.language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 44px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
}

.language-link[aria-current="page"] {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.language-link:hover { color: var(--accent); }
.language-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.header-actions .cv-link { white-space: nowrap; }

@media (min-width: 901px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: clamp(16px, 2vw, 28px); }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .header-actions .cv-link { display: none; }
  .site-nav { gap: 18px; }
}

@media (max-width: 900px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .header-actions { gap: 6px; }
  html:not(.js-enabled) .menu-toggle { display: none; }
  html:not(.js-enabled) .site-nav {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 0 0 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 760px) {
  html[lang="en"] .hero-main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "portrait" "intro" "detail";
    gap: 18px;
  }
  html[lang="en"] .hero-main .hero-portrait { width: 88px; justify-self: start; }
  html[lang="en"] .hero-intro h1 { font-size: clamp(2.1rem, 10vw, 3.1rem); }
  html[lang="en"] .hero-detail { margin-top: 0; }
  html[lang="en"] .hero-metrics dt { font-size: clamp(1.55rem, 5vw, 2rem); line-height: 1.15; }
}

@media (max-width: 520px) {
  .header-actions .cv-link { display: none; }
}
