/* Eight visible WDG destinations. The original header and appearance controls remain. */
@media (max-width:1279px) {
  html[data-theme] body[data-wdg-polish="r4"] #wdg-shared-header.wdg-shell-header.wdg-premium-header[data-wdg-header="r2"][data-wdg-videos-nav="r2"] .container.nav-wrap {
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;
    min-height:0!important;
    gap:14px 20px!important;
    padding-block:16px 12px!important;
  }
  html[data-theme] body[data-wdg-polish="r4"] #wdg-shared-header.wdg-shell-header.wdg-premium-header[data-wdg-header="r2"][data-wdg-videos-nav="r2"] .r4-appearance {
    grid-column:2!important;
    grid-row:1!important;
  }
  html[data-theme] body[data-wdg-polish="r4"] #wdg-shared-header.wdg-shell-header.wdg-premium-header[data-wdg-header="r2"][data-wdg-videos-nav="r2"] .site-nav {
    grid-column:1/-1!important;
    grid-row:2!important;
    display:flex!important;
    justify-content:space-between!important;
    border-top:1px solid var(--header-line)!important;
    padding-top:10px!important;
    gap:4px!important;
  }
  html[data-theme] body[data-wdg-polish="r4"] #wdg-shared-header.wdg-shell-header.wdg-premium-header[data-wdg-header="r2"][data-wdg-videos-nav="r2"] .site-nav>a.nav-cta {margin-left:0!important}
}
@media (max-width:1000px) {
  html[data-theme] body[data-wdg-polish="r4"] #wdg-shared-header.wdg-shell-header.wdg-premium-header[data-wdg-header="r2"][data-wdg-videos-nav="r2"] .site-nav {
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-template-rows:repeat(2,minmax(48px,auto))!important;
    gap:4px!important;
    align-items:stretch!important;
  }
  html[data-theme] body[data-wdg-polish="r4"] #wdg-shared-header.wdg-shell-header.wdg-premium-header[data-wdg-header="r2"][data-wdg-videos-nav="r2"] .site-nav>a:nth-child(n) {
    grid-column:auto!important;
    grid-row:auto!important;
    width:auto!important;
    min-width:0!important;
    min-height:48px!important;
    margin:0!important;
    padding:9px 5px!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    font-size:13px!important;
    line-height:1.35!important;
  }
}
@media (max-width:759px) {
  html[data-theme] body[data-wdg-polish="r4"] #wdg-shared-header.wdg-shell-header.wdg-premium-header[data-wdg-header="r2"][data-wdg-videos-nav="r2"] .container.nav-wrap {
    padding:10px 16px 8px!important;
    gap:8px 12px!important;
  }
  html[data-theme] body[data-wdg-polish="r4"] #wdg-shared-header.wdg-shell-header.wdg-premium-header[data-wdg-header="r2"][data-wdg-videos-nav="r2"] .site-nav {
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-template-rows:repeat(2,minmax(52px,auto))!important;
    gap:0!important;
    padding:3px!important;
  }
  html[data-theme] body[data-wdg-polish="r4"] #wdg-shared-header.wdg-shell-header.wdg-premium-header[data-wdg-header="r2"][data-wdg-videos-nav="r2"] .site-nav>a:nth-child(n) {
    grid-column:auto!important;
    grid-row:auto!important;
    min-height:52px!important;
    padding:9px 3px!important;
    white-space:normal!important;
    font-size:13px!important;
    line-height:1.35!important;
  }
}


@media (max-width: 759px) {
  html[data-theme] body[data-wdg-polish="r4"] #wdg-shared-header.wdg-shell-header.wdg-premium-header[data-wdg-header="r2"][data-wdg-videos-nav="r2"] .site-nav {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    grid-template-rows: repeat(3,minmax(44px,auto)) !important;
  }
  html[data-theme] body[data-wdg-polish="r4"] #wdg-shared-header.wdg-shell-header.wdg-premium-header[data-wdg-header="r2"][data-wdg-videos-nav="r2"] .site-nav>a:nth-child(n) {
    min-height: 44px !important;
  }
}
