/* Shared, local language navigation. All content is served as static pages. */
.site-header { flex-wrap: wrap; column-gap: 24px; row-gap: 12px; }
.site-header .brand { flex-shrink: 0; max-width: 100%; }
.site-header .main-nav { flex: 1; min-width: 0; }
html { scroll-padding-top: calc(var(--site-header-height, 134px) + 16px); }
.article-aside .info-box { top: calc(var(--site-header-height, 134px) + 16px); }
.language-bar { flex: 0 0 100%; display: flex; justify-content: flex-end; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 9px; gap: 10px; color: var(--navy); font-size: 14px; }
.language-label { font-weight: 600; }
.language-picker { position: relative; }
.language-picker > summary { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 6px 12px; border: 1px solid #d6cbb9; border-radius: 7px; background: #fff; color: var(--navy); cursor: pointer; list-style: none; font-weight: 600; }
.language-picker > summary::-webkit-details-marker { display: none; }
.language-picker > summary::after { content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-inline-start: 5px; margin-top: -3px; transition: transform 120ms ease; }
.language-picker[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
.language-picker > summary:hover, .language-option:hover { background: var(--soft); }
.language-picker > summary:focus-visible, .language-option:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.language-flag { display: block; flex-shrink: 0; width: 24px; height: 18px; object-fit: cover; border: 1px solid #0002; border-radius: 2px; }
.language-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 50; width: 408px; max-width: calc(100vw - 40px); padding: 10px; background: #fffdf8; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px #17235c24; }
.language-options { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.language-option { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 47px; padding: 8px 10px; border-radius: 6px; color: var(--navy); font-size: 15px; line-height: 1.3; }
.language-option[aria-current='page'] { background: #fff0d4; font-weight: 700; }
.language-option[aria-current='page']::after { content: '✓'; margin-inline-start: auto; color: var(--navy); }
.language-names { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.language-names small { color: #656b78; font-size: 11px; font-weight: 400; }
[dir='rtl'] body { font-family: 'Segoe UI', Tahoma, Arial, sans-serif; }
[dir='rtl'] .brand-wordmark { border-left: 0; padding-left: 0; border-right: 5px solid var(--gold); padding-right: 14px; }
[dir='rtl'] .main-nav { text-align: right; }
[dir='rtl'] a[href^='tel:'], [dir='rtl'] a[href^='mailto:'], [dir='rtl'] .brand strong { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[dir='rtl'] .hero-copy, [dir='rtl'] .service-copy, [dir='rtl'] .article-hero-copy { text-align: right; }
[dir='rtl'] .hero h1 { line-height: 1.35; }
[dir='rtl'] .hero-overlay { margin-left: 0; margin-right: auto; }
[dir='rtl'] .treatment-steps li { padding: 16px 58px 16px 18px; }
[dir='rtl'] .treatment-steps li::before { left: auto; right: 16px; }
[dir='rtl'] .cost-note { border-left: 0; border-right: 5px solid var(--gold); }
[dir='rtl'] .article-notice, [dir='rtl'] .article-sources { border-left: 0; border-right: 4px solid #0d9894; }
[dir='rtl'] .article-sources ul, [dir='rtl'] .info-box ul { padding-left: 0; padding-right: 20px; }
.external-language-note { font-size: 13px; color: var(--muted); margin: 0; padding: 0 clamp(20px, 5vw, 64px) 18px; }
@media (max-width: 860px) {
  html { scroll-padding-top: 16px; }
  .language-bar { width: 100%; flex-basis: auto; }
  .site-header { position: relative; }
  [dir='rtl'] .hero::after { background: linear-gradient(180deg, rgba(12, 34, 39, 0.84) 0%, rgba(12, 34, 39, 0.58) 58%, rgba(12, 34, 39, 0.22) 100%); }
  .language-panel { max-height: min(70vh, 540px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 420px) {
  .language-panel { width: calc(100vw - 40px); }
  .language-option { gap: 7px; padding: 8px 6px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .language-picker > summary::after { transition: none; } }
@media print { .language-bar { display: none; } }
