/* Shared compact header with language selection inside disclosure navigation. */
.signin-card-brand img { width: 220px; height: auto; }
@media (max-width: 480px) { .signin-card-brand img { width: 180px; height: auto; } }
.site-header .site-navigation-panel .menu-item-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.site-header .site-navigation-panel nav a, .site-header .site-navigation-panel nav button { gap: 12px; }
.site-header { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px max(16px, calc((100% - 1120px) / 2)); min-height: 76px; background: var(--page-background); border-bottom: 1px solid #e7dfcc; }
.site-header .site-brand { display: inline-flex; flex: none; margin-inline-end: auto; }
.site-header .site-brand .brand-logo { width: 220px; height: auto; }
.site-header .language-switcher { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 8px 6px 0; width: 100%; border: 0; border-top: 1px solid var(--border); font-size: .9rem; direction: ltr; }
.site-header .language-switcher a, .site-header .language-switcher button { min-height: 44px; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-post-ad { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 24px; border: 1px solid var(--green); border-radius: 10px; background: var(--green); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-post-ad:hover { background: var(--primary-hover); }
.site-header .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; width: auto; padding: 8px 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--green); cursor: pointer; }
.site-header .mobile-menu-toggle[hidden], .site-header .site-navigation-panel[hidden] { display: none !important; }
.site-header .mobile-menu-label { position: static; width: auto; height: auto; clip: auto; overflow: visible; font-size: .9rem; font-weight: 600; }
.site-header .mobile-menu-icon { width: 24px; font-size: 25px; line-height: 1; text-align: center; }
.site-header .mobile-menu-toggle:hover, .site-header .mobile-menu-toggle[aria-expanded=true] { background: #edf7f0; }
.site-header .site-navigation-panel { position: static; inset: auto; display: block; width: 100%; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.site-header.navigation-enhanced .site-navigation-panel { position: absolute; inset-inline-start: auto; inset-inline-end: max(16px, calc((100% - 1120px) / 2)); top: calc(100% - 2px); z-index: 100; width: min(290px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow-y: auto; box-shadow: 0 10px 30px rgb(27 37 31 / 14%); }
.site-header .site-navigation-panel nav { display: flex; flex-direction: column; gap: 2px; width: 100%; margin: 0; }
.site-header .site-navigation-panel nav a, .site-header .site-navigation-panel nav button { display: flex; align-items: center; min-height: 46px; width: 100%; padding: 10px 14px; border: 0; border-radius: 10px; background: transparent; color: #24282b; font: inherit; font-weight: 500; text-decoration: none; text-align: start; white-space: normal; cursor: pointer; }
.site-header .site-navigation-panel nav a:hover, .site-header .site-navigation-panel nav button:hover, .site-header .site-navigation-panel nav [aria-current=page] { background: #edf7f0; color: var(--green); }
.site-header .site-navigation-panel nav > :not(:last-child) { border-bottom: 0; }
.site-header .site-navigation-panel nav form { margin: 4px 0 0; padding-block-start: 4px; border-top: 1px solid var(--border); }
@media (max-width: 767px) {
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center; min-height: 54px; padding: 5px 12px; gap: 8px; background: #fff; }
  .site-header .site-brand { grid-column: 1; grid-row: 1; width: 100%; max-width: 154px; min-width: 0; margin-inline-end: 0; }
  .site-header .site-brand .brand-logo { width: 100%; max-width: 180px; height: auto; }
  .site-header .header-actions { grid-column: 2; grid-row: 1; justify-self: end; flex-wrap: nowrap; gap: 4px; }
  .site-header .header-post-ad { min-height: 44px; padding-inline: 10px; font-size: .85rem; border-color: var(--green); background: #fff; color: var(--green); }
  .site-header .header-post-ad:hover { background: #edf7f0; }
  .site-header :is(.site-brand, .header-post-ad, .mobile-menu-toggle):focus-visible { outline: 2px solid var(--green); }
  .site-header .mobile-menu-toggle { width: 44px; min-width: 44px; min-height: 44px; padding: 8px; }
  .site-header .mobile-menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .site-header .site-navigation-panel { grid-column: 1 / -1; }
  .site-header .language-switcher { font-size: .85rem; }
}

.site-header .language-switcher [aria-current="true"] { background: #edf7f0; color: var(--green); font-weight: 700; }
