.site-header .brand-lockup {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.site-header .brand {
  line-height: 1.05;
}

.site-header .tagline {
  max-width: 34ch;
  line-height: 1.35;
}

.footer-brand small {
  display: block;
  margin-top: 4px;
  line-height: 1.45;
}

.footer-meta {
  white-space: nowrap;
}

.listing-card .badge,
.summary-card .badge {
  min-height: 30px;
}

@media (max-width: 980px) {
  .nav-wrap--round14 {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px 16px;
  }

  .nav--round14 {
    grid-column: 1 / -1;
    justify-self: start;
    gap: 6px 8px;
  }

  .header-actions--round14 {
    justify-self: end;
  }
}

@media (max-width: 640px) {
  .page-main {
    padding-top: 8px;
  }

  .nav-wrap--round14 {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    align-items: start;
    gap: 8px 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-header .brand-lockup {
    grid-area: brand;
    gap: 0;
    align-self: start;
  }

  .site-header .brand {
    font-size: 16px;
    line-height: 1.02;
  }

  .site-header .tagline {
    font-size: 10px;
    line-height: 1.25;
    max-width: 11ch;
  }

  .nav--round14 {
    grid-area: nav;
    width: 100%;
    min-width: 0;
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 0 0 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav--round14::-webkit-scrollbar {
    display: none;
  }

  .nav--round14 a {
    display: inline-flex;
    align-items: center;
    padding: 0;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 0;
    flex: 0 0 auto;
  }

  .nav--round14 a:hover {
    background: transparent;
  }

  .header-actions--round14 {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-self: end;
    align-self: start;
    gap: 6px;
  }

  .site-header .lang-select {
    min-width: 62px !important;
    height: 36px !important;
    padding: 8px 26px 8px 11px !important;
    font-size: 13px;
    background-position: calc(100% - 15px) calc(50% - 2px), calc(100% - 10px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
  }

  .admin-link {
    padding: 6px 10px;
    border-radius: 10px;
    background: #f5fbfa;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
  }

  .footer-row--premium {
    gap: 16px;
  }

  .footer-links {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-meta {
    white-space: normal;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .nav-wrap--round14 {
    gap: 7px 8px;
  }

  .site-header .brand {
    font-size: 15px;
  }

  .site-header .tagline {
    max-width: 10ch;
  }

  .nav--round14 {
    gap: 12px;
  }

  .nav--round14 a {
    font-size: 13px;
  }

  .site-header .lang-select {
    min-width: 58px !important;
    height: 34px !important;
    padding: 7px 24px 7px 10px !important;
    font-size: 12px;
  }

  .admin-link {
    padding: 6px 9px;
    font-size: 12px;
  }
}

/* mobile_header_nav_v4_fix */
@media (max-width: 640px) {
  .site-header .nav-wrap--mobile-v4 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "brand"
      "nav"
      "actions" !important;
    justify-items: start !important;
    align-items: start !important;
    gap: 8px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .site-header .brand-lockup--mobile-v4 {
    grid-area: brand !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 2px !important;
  }

  .site-header .brand-lockup--mobile-v4 .brand {
    font-size: 15px !important;
    line-height: 1.06 !important;
  }

  .site-header .brand-lockup--mobile-v4 .tagline {
    font-size: 10px !important;
    line-height: 1.2 !important;
    max-width: 18ch !important;
  }

  .site-header .nav--mobile-v4 {
    grid-area: nav !important;
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: max-content !important;
    align-items: center !important;
    justify-content: start !important;
    gap: 14px !important;
    padding: 0 0 2px !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-header .nav--mobile-v4::-webkit-scrollbar {
    display: none;
  }

  .site-header .nav--mobile-v4 a {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.18 !important;
    border-radius: 0 !important;
  }

  .site-header .header-actions--mobile-v4 {
    grid-area: actions !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    justify-self: start !important;
    gap: 8px !important;
    width: auto !important;
    margin-top: 0 !important;
  }

  .site-header .header-actions--mobile-v4 .lang-select-wrap {
    display: inline-flex !important;
    align-items: center !important;
  }

  .site-header .header-actions--mobile-v4 .lang-select {
    min-width: 60px !important;
    height: 34px !important;
    padding: 7px 24px 7px 10px !important;
    font-size: 12px !important;
    background-position: calc(100% - 14px) calc(50% - 1px), calc(100% - 9px) calc(50% - 1px) !important;
    background-size: 5px 5px, 5px 5px !important;
  }

  .site-header .header-actions--mobile-v4 .admin-link {
    padding: 7px 10px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    background: #f5fbfa !important;
  }
}

@media (max-width: 420px) {
  .site-header .nav-wrap--mobile-v4 {
    gap: 7px !important;
  }

  .site-header .brand-lockup--mobile-v4 .brand {
    font-size: 14px !important;
  }

  .site-header .brand-lockup--mobile-v4 .tagline {
    font-size: 9px !important;
    max-width: 16ch !important;
  }

  .site-header .nav--mobile-v4 {
    gap: 12px !important;
  }

  .site-header .nav--mobile-v4 a {
    font-size: 13px !important;
  }

  .site-header .header-actions--mobile-v4 .lang-select {
    min-width: 56px !important;
    height: 32px !important;
    padding: 6px 22px 6px 9px !important;
    font-size: 11px !important;
  }

  .site-header .header-actions--mobile-v4 .admin-link {
    padding: 6px 9px !important;
    font-size: 11px !important;
  }
}
