/* Media Center — responsive (header/hero scoped + existing layout rules) */
@media (max-width: 1500px) {
  .mc-logo-panel {
    left: max(0px, calc((100% - var(--mc-max)) / 2));
  }
}

@media (max-width: 1200px) {
  .mc-nav-link { font-size: 0.85rem; padding: 0.5rem 0.4rem; }
}

@media (max-width: 1100px) {
  .mc-footer-grid { grid-template-columns: 1fr 1fr; }
  .mc-home-layout { grid-template-columns: 1fr; }
  .mc-home-sidebar { position: static; }
  .mc-search {
    flex: 0 0 auto;
    width: 2.5rem;
    max-width: none;
    min-width: 0;
  }
  .mc-search.is-open {
    width: min(220px, 48vw);
  }
  .mc-subnav-links a {
    font-size: 0.76rem;
    padding: 0.78rem 0.58rem;
  }
}

@media (max-width: 900px) {
  .mc-featured { grid-template-columns: 1fr; }
  .mc-featured-media img, .mc-featured-fallback {
    min-height: 0;
    max-height: none;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center 28%;
  }
  .mc-special-grid { grid-template-columns: 1fr; }
  .mc-recent-cols { grid-template-columns: 1fr; }
  .mc-newsbar-label {
    font-size: 0.58rem;
    padding: 0.28rem 0.45rem;
    letter-spacing: 0.04em;
    max-width: none;
    white-space: nowrap;
    line-height: 1;
  }
  .mc-newsbar-label-meta {
    display: none;
  }
  .mc-newsbar-inner {
    min-height: 2rem;
  }
  .mc-nav-shell,
  .mc-nav,
  .mc-nav-inner { min-height: 96px; }
}

@media (max-width: 860px) {
  .mc-topbar-inner {
    justify-content: flex-start;
    padding-left: min(128px, 34vw);
  }
  .mc-topbar address {
    margin-right: 0;
    width: 100%;
    max-width: none;
    white-space: normal;
  }

  /* Logo + Menu on one navy row — crest hangs past the bar */
  .mc-nav-shell {
    position: relative;
    min-height: 3.15rem;
    display: block;
    overflow: visible;
    background: var(--secondaryColor);
    margin: 0;
    border: 0;
    z-index: 40;
  }
  .mc-logo-panel {
    position: absolute;
    top: 0;
    left: max(12px, calc((100% - var(--mc-max, 1600px)) / 2));
    bottom: auto;
    flex: none;
    width: 108px;
    max-width: 108px;
    min-height: 0;
    align-self: auto;
    margin: 0;
    padding: 6px 8px 18px;
    border-radius: 0 0 36px 36px;
    box-shadow: 0 4px 12px rgba(8, 20, 48, 0.12);
    background: #fff;
    z-index: 45;
  }
  .mc-logo-panel img {
    max-height: none;
    width: 100%;
    display: block;
  }
  .mc-nav-join {
    display: none;
  }
  .mc-nav-join-mobile {
    display: list-item;
  }
  .mc-nav-link--join {
    background: var(--primaryColor) !important;
    color: #1a1a1a !important;
    text-align: center;
    font-weight: 800 !important;
  }

  .mc-nav {
    width: 100%;
    min-width: 0;
    min-height: 0;
    background: transparent;
  }
  .mc-nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 60;
    border-radius: 999px;
    box-shadow: none;
    padding: 0.48rem 0.85rem;
    min-height: 2.45rem;
    font-size: 0.72rem;
    pointer-events: auto;
  }
  .mc-nav-inner {
    padding: 0.55rem 0.85rem 0.55rem min(34vw, 128px);
    min-height: 3.15rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
  }
  .mc-nav-list {
    display: none;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 2;
    margin: 0.45rem 0 0.15rem;
    padding: 0.35rem 0;
    border-top: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(8, 20, 48, 0.22);
    overflow: hidden;
    position: relative;
    z-index: 55;
  }
  .mc-nav.is-open .mc-nav-list { display: flex; }
  .mc-nav-link {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #edf1f6;
    font-size: 0.95rem;
    color: #0b1f3a !important;
    font-weight: 700;
  }
  .mc-nav-link:last-child { border-bottom: 0; }
  .mc-nav-link:hover {
    background: #f3f6fb;
    color: #0942a2 !important;
  }
  .mc-nav-link.is-active {
    border-radius: 0;
    background: #f3f6fb;
    color: #0942a2 !important;
  }

  .mc-subnav {
    margin: 0;
    border-top-width: 2px;
    padding: 0;
  }
  .mc-subnav-inner {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    padding: 0 0.75rem 0.5rem min(32vw, 118px);
    gap: 0.35rem;
  }
  .mc-subnav-rail {
    margin: 0;
    min-width: 0;
    flex: 0 0 auto;
  }
  .mc-subnav-label {
    display: none;
  }
  .mc-subnav-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1.25rem), transparent 100%);
  }
  .mc-subnav-links::-webkit-scrollbar {
    display: none;
  }
  .mc-subnav-links a {
    font-size: 0.74rem;
    padding: 0.7rem 0.55rem;
  }
  .mc-search {
    max-width: none;
    width: 2.5rem;
    flex: 0 0 auto;
    min-width: 0;
    margin: 0.15rem 0 0.35rem auto;
    align-self: flex-end;
  }
  .mc-search.is-open {
    width: min(100%, 280px);
  }
  .mc-search input[type="search"] {
    min-height: 2.5rem;
    font-size: 0.9rem;
  }
  .mc-search-toggle {
    width: 2.5rem;
    height: 2.5rem;
  }
  /* Homepage category strip duplicates header chips — drop it on small screens */
  .mc-filters {
    display: none !important;
  }
  .mc-listing-hero {
    margin-top: 0;
  }
  .mc-featured-media img,
  .mc-featured-fallback {
    min-height: 0;
    max-height: none;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center 28%;
  }
  .mc-card img {
    object-position: center 28%;
  }
  .mc-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .mc-topbar { font-size: 0.78rem; }
  .mc-topbar-inner { gap: 0.5rem 0.75rem; }
  .mc-featured-body { padding: 1.15rem; }
  .mc-card-title { font-size: 1.1rem; }
  .mc-logo-panel {
    left: 0.75rem;
    width: 108px;
    max-width: 108px;
    padding: 6px 8px 18px;
    border-radius: 0 0 36px 36px;
  }
  .mc-nav-inner {
    padding-right: 0.65rem;
    padding-left: 124px;
  }
  .mc-nav-toggle {
    padding: 0.4rem 0.7rem;
    min-height: 2.3rem;
    font-size: 0.7rem;
  }
  .mc-article-page .mc-article-header h1 {
    font-size: 1.05rem !important;
    line-height: 1.35;
  }
  .mc-article-meta {
    font-size: 0.86rem;
  }
}

