/* Dentists directory (RTL): cyan spine + card padding — base rules in assets/css/style.css (.edc-dentist-card__spine). */

@media (min-width: 768px) {
  main,
  .edc-community,
  .profile-container {
    /* Tight offset under floating nav (~mt-3 + bar + small rhythm) */
    padding-top: 104px !important;
  }

  .edc-site-header {
    z-index: 999 !important;
  }

  .edc-site-header .edc-header-bar.edc-glass {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center;
    column-gap: clamp(1.25rem, 3vw, 3rem) !important;
  }

  .edc-header-brand {
    justify-self: start;
  }

  .edc-header-rightZone {
    justify-self: end;
    min-width: 0;
  }

  .edc-header-profile-card,
  .profile-card {
    position: relative;
    z-index: 900;
  }

  .edc-header-brand {
    flex-shrink: 0;
    margin-right: 0;
  }

  .edc-brand-title {
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(0.9rem, 1.2vw, 1.15rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .edc-header-title-wrap {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
  }

  .edc-header-nav-links {
    justify-self: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    gap: clamp(1rem, 2vw, 2.5rem);
  }

  .edc-header-profile-card,
  .profile-card {
    margin-left: 0;
    flex: 0 0 auto;
  }

  .nav-links {
    justify-content: center;
    gap: clamp(1rem, 2vw, 2.5rem);
  }

  .edc-user-panel,
  .edc-header-userPanel {
    margin-left: 0;
    flex: 0 0 auto;
    max-width: none;
    min-width: 0;
    overflow: hidden;
  }

  .edc-header-userMeta {
    min-width: 0;
    max-width: 240px;
  }

  .edc-header-userName {
    display: inline-block;
    max-width: 70px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .edc-header-logoutBtn {
    flex-shrink: 0;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    min-width: 44px;
    background: transparent !important;
    border: 1px solid var(--edc-header-logout-border) !important;
    color: var(--edc-header-logout-fg) !important;
    border-radius: 6px;
    padding: 4px 12px !important;
    font-size: 0.85rem !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .edc-header-logoutIcon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
  }

  .edc-header-logoutBtn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
  }

  .edc-header-logoutBtn:hover svg {
    color: #ef4444 !important;
  }

  .community-header {
    margin-top: 0 !important;
  }

  .edc-community-filterSticky {
    top: 5.5rem;
  }

  .edc-breadcrumb {
    position: relative;
    z-index: 10;
  }

  .edc-boardSurface {
    padding: 1.35rem 1.5rem 1.5rem;
    border-radius: 1.5rem;
  }

  .edc-board-title {
    font-size: 1.875rem;
  }

  .edc-board-stack {
    gap: 1.5rem;
    margin-top: 1.35rem;
  }

  .edc-board-cluster {
    padding: 1rem 1.05rem 1.1rem;
  }

  .edc-modMenu {
    min-width: 13.75rem;
  }

  /* Topic page: align with community max-width; sidebar + article row */
  main.edc-post-page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .edc-post-page__article {
    box-shadow: var(--edc-post-article-shadow);
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .premium-tagline {
    display: none !important;
  }
}

@media (min-width: 1024px) and (max-width: 1260px) {
  .edc-site-header .edc-header-bar.edc-glass {
    column-gap: 2rem !important;
  }

  .edc-header-userPanel {
    max-width: none;
  }

  .edc-header-userMeta {
    max-width: 180px;
  }

  .edc-header-userName {
    max-width: 70px !important;
  }

  .nav-links a,
  .edc-header-nav-links a {
    padding: 0.5rem 0.65rem !important;
    font-size: 0.82rem;
  }
}

/* Identity collapse: free ~150px in the user panel between lg and xl-wide */
@media (min-width: 768px) and (max-width: 1359px) {
  .edc-header-xpBar {
    display: none !important;
  }

  .edc-header-levelWord {
    display: none !important;
  }

  .edc-header-levelBadge {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  .edc-header-logoutLabel {
    display: none !important;
  }

  .edc-header-logoutBtn {
    padding: 0 !important;
    width: 44px;
    min-width: 44px;
    gap: 0;
  }
}
