/* Shared, in-place language control; keeps the existing site palette and logo. */
.site-header .header-row { gap: 16px; }
.site-header .primary-nav { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: flex-end; gap: 16px; }
.site-header .primary-nav > ul { min-width: 0; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
.site-header .primary-nav > ul > li { margin: 0; text-align: center; }
.site-header .primary-nav > ul > li > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 13px; line-height: 1.4; }
.site-header .brand { flex-shrink: 0; }
.dof-language { position: relative; flex: none; text-align: left; direction: ltr; font-family: Inter, Arial, sans-serif; line-height: 1.4; letter-spacing: normal; }
.dof-language [hidden] { display: none !important; }
.dof-language button { transform: none; box-shadow: none; letter-spacing: normal; text-transform: none; }
.dof-language .dof-language-toggle { gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #adc7ce; border-radius: 22px; background: var(--white); color: var(--navy); font-size: 13px; line-height: 1.35; font-weight: 700; white-space: nowrap; }
.dof-language .dof-language-toggle:hover, .dof-language-toggle[aria-expanded=true] { border-color: var(--teal-dark); background: var(--mist); }
.dof-language-toggle svg { flex-shrink: 0; }
.dof-language-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 2; width: 300px; max-width: calc(100vw - 40px); max-height: min(520px, 70dvh); overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
.dof-language-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.dof-language .dof-language-grid button { display: flex; justify-content: flex-start; gap: 6px; width: 100%; min-width: 0; min-height: 44px; padding: 10px; border-radius: 8px; background: transparent; color: var(--navy); font-size: 13px; font-weight: 500; text-align: left; line-height: 1.4; overflow-wrap: anywhere; }
.dof-language .dof-language-grid button:hover { background: var(--ice); }
.dof-language .dof-language-grid button[aria-pressed=true] { background: var(--mist); color: #08635e; font-weight: 750; }
.dof-language-check { margin-left: auto; visibility: hidden; }
.dof-language-grid button[aria-pressed=true] .dof-language-check { visibility: visible; }
.dof-language button:focus-visible, .menu-toggle:focus-visible, .primary-nav a:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 3px; }
.dof-language-message { position: absolute; top: calc(100% + 10px); right: 0; z-index: 3; width: 280px; max-width: calc(100vw - 40px); padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--navy); box-shadow: var(--shadow); font-size: 13px; }
.dof-language-message button { min-height: 44px; margin-top: 8px; padding: 6px 14px; font-size: 13px; }
html.dof-language-rtl main, html.dof-language-rtl .site-footer { direction: rtl; }
html.dof-language-rtl .skip-link { left: 0; top: 0; transform: translateY(-200%); }
html.dof-language-rtl .skip-link:focus { left: 10px; top: 10px; transform: none; }
html.dof-language-rtl .site-header, html.dof-language-rtl .site-ticker, html.dof-language-rtl .whatsapp-float, html.dof-language-rtl .hytan-wa-float { direction: ltr; }
html.dof-language-rtl a[href^="mailto:"], html.dof-language-rtl a[href^="tel:"], html.dof-language-rtl a[href*="wa.me"] { direction: ltr; unicode-bidi: isolate; }
body:has(.primary-nav.open) .whatsapp-float, body:has(.primary-nav.open) .hytan-wa-float { visibility: hidden; }
/* Astra archive rows otherwise extend 17px beyond this theme's full-width main. */
body.archive #primary .ast-row { margin-inline: 0; margin-left: 0; margin-right: 0; }
@media (min-width: 1181px) and (max-width: 1350px) {
  .site-header .header-cta { display: none; }
}
@media (max-width: 1180px) {
  .site-header .header-row { position: relative; min-height: 82px; }
  .site-header .brand { min-width: 0; }
  .site-header .menu-toggle { display: inline-flex; flex: none; margin-left: auto; padding: 0; min-height: 44px; background: var(--white); color: var(--navy); }
  .site-header .header-cta { display: none; }
  .site-header .primary-nav { display: none; position: absolute; top: 100%; left: calc((100vw - 100%) / -2); right: calc((100vw - 100%) / -2); max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow: auto; padding: 14px 20px 22px; margin: 0; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); text-align: center; overscroll-behavior: contain; }
  .site-header .primary-nav.open { display: block; }
  .site-header .primary-nav > ul { display: flex; flex-direction: column; gap: 0; width: 100%; }
  .site-header .primary-nav > ul > li { width: 100%; margin: 0; }
  .site-header .primary-nav > ul > li > a { display: flex; width: 100%; padding: 8px 14px; font-size: 15px; overflow-wrap: anywhere; }
  .site-header .dof-language { width: max-content; max-width: 100%; margin: 12px auto 0; text-align: center; }
  .dof-language-panel { position: static; width: 300px; max-width: calc(100vw - 56px); max-height: min(376px, 55dvh); margin: 12px auto 0; box-shadow: 0 6px 22px rgba(11,31,51,.08); }
  .dof-language-message { position: static; margin: 12px auto 0; }
}
@media (max-width: 820px) {
  .site-header .header-row { min-height: 72px; }
}
@media (max-width: 360px) {
  .site-header .header-row { gap: 10px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand-copy strong { max-width: 175px; font-size: 14px; }
}
