/* Responsive Layout & Breakpoints */

/* ==========================================================================
   Medium Desktop (1200px – 1439px)
   ========================================================================== */
@media (max-width: 1439px) {
  .hero-facts-row {
    max-width: 100%;
  }

  .fact-block {
    padding-inline: clamp(10px, 1.4vw, 20px);
  }

  .btn-primary {
    width: auto;
    min-width: 250px;
  }

  .btn-secondary {
    width: auto;
    min-width: 270px;
  }

  .glance-grid {
    gap: 18px;
  }

  .knowledge-header-row {
    gap: 40px;
  }
}

/* ==========================================================================
   Small Desktop / Tablet Landscape (1024px – 1199px)
   ========================================================================== */
@media (max-width: 1199px) {
  .hero-bg-img {
    object-position: right 10% top 20%;
    opacity: 0.85;
  }

  .hero-bg-overlay {
    background:
      linear-gradient(
        90deg,
        #020c15 0%,
        #030f1a 45%,
        rgba(4, 18, 30, 0.95) 65%,
        rgba(4, 18, 30, 0.6) 85%,
        rgba(4, 18, 30, 0.2) 100%
      );
  }

  .hero-facts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
  }

  .fact-block {
    padding: 0;
  }

  .fact-block:first-child {
    padding-left: 0;
  }

  .fact-block::after {
    display: none;
  }

  /* Section 1 */
  .glance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Section 2 */
  .knowledge-header-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .knowledge-cards-grid {
    max-width: 100%;
  }
}

/* ==========================================================================
   Tablet Portrait (768px – 1023px)
   ========================================================================== */
@media (max-width: 1023px) {
  :root {
    --header-height: 76px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(3, 15, 25, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px var(--container-gutter);
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-standard), opacity var(--transition-standard), visibility var(--transition-standard);
    z-index: 95;
  }

  .main-nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
  }

  .nav-item {
    width: 100%;
  }

  .site-header .nav-link,
  .site-header .nav-dropdown-trigger,
  .site-header button.nav-dropdown-trigger,
  .nav-link,
  .nav-dropdown-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-family: inherit;
    font-size: 1rem !important; /* 16px - exactly identical across all items */
    font-weight: 600 !important;
    line-height: 1.4;
    color: var(--color-white) !important;
    letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    text-decoration: none;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-top: 8px;
    display: none;
  }

  .dropdown-menu.is-active {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .hero-facts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 28px;
  }

  .fact-block::after {
    display: none;
  }

  /* Section 2 */
  .knowledge-header-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .knowledge-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 600px;
  }

  /* Section 3 */
  .teams-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .teams-table {
    min-width: 640px;
  }
}

/* ==========================================================================
   Mobile (320px – 767px)
   ========================================================================== */
@media (max-width: 767px) {
  :root {
    --header-height: 70px;
    --container-gutter: 20px;
  }

  .brand-logo-svg {
    height: 32px;
  }

  .brand-year {
    font-size: 1.15rem;
  }

  .brand-divider {
    height: 22px;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-bg-img {
    object-position: right 0% top 10%;
    opacity: 0.45;
  }

  .hero-bg-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(2, 12, 21, 0.95) 0%,
        rgba(3, 15, 25, 0.9) 60%,
        rgba(4, 18, 30, 0.98) 100%
      );
  }

  .hero-content {
    padding-top: 24px;
    padding-bottom: 70px;
  }

  .hero-title {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.05;
  }

  .hero-subtitle {
    font-size: clamp(18px, 4.8vw, 24px);
    margin-bottom: 16px;
  }

  .hero-description {
    font-size: 0.975rem;
    line-height: 1.45;
    margin-bottom: 28px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 14px;
    margin-bottom: 34px;
  }

  .btn {
    width: 100%;
    min-width: 0;
    height: 58px;
    font-size: 1.05rem;
  }

  .hero-facts-row {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
  }

  .fact-block {
    padding: 0;
  }

  .fact-block::after {
    display: none;
  }

  .hero-curve-svg {
    height: 48px;
  }

  .hero-last-updated {
    font-size: 0.85rem;
  }

  /* Section 1 Glance */
  .glance-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .glance-card {
    padding: 20px;
  }

  /* Section 2 Knowledge */
  .knowledge-header-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .knowledge-title {
    font-size: clamp(26px, 7vw, 34px);
  }

  .knowledge-desc-p {
    font-size: 0.95rem;
  }

  .knowledge-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .knowledge-see-also {
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    justify-content: center;
  }

  .see-also-link {
    font-size: 0.9rem;
  }

  /* Section 3 Schedules Table */
  .teams-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .teams-table {
    min-width: 540px;
  }

  .teams-table-th,
  .teams-table-td {
    padding: 10px 14px;
  }

  .team-name,
  .schedule-page-link {
    font-size: 0.95rem;
  }

  .toggle-teams-btn {
    width: 100%;
    max-width: 320px;
    font-size: 0.975rem;
    padding: 12px 24px;
  }
}

/* ==========================================================================
   Continuation Sections Responsive Rules (Dates, Rounds, Broadcast)
   ========================================================================== */

@media (max-width: 1199px) {
  .rounds-header-wrap {
    padding-left: clamp(0px, 4vw, 60px);
  }
}

@media (max-width: 1023px) {
  .rounds-header-wrap {
    padding-left: 0;
  }

  .where-to-watch-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .where-to-watch-left {
    border-right: none;
    border-bottom: 1.5px solid #f6d4be;
    padding-right: 0;
    padding-bottom: 16px;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .dates-bracket-dec {
    display: none;
  }

  .dates-card-header {
    padding: 14px 16px;
  }

  .dates-table {
    min-width: 560px;
  }

  .rounds-card {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .rounds-table {
    min-width: 620px;
  }

  .rounds-venues-panel {
    padding: 16px 14px;
  }

  .watch-table {
    min-width: 520px;
  }

  .where-to-watch-panel {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .rounds-bg-img {
    opacity: 0.38;
    object-position: left 20% center;
  }
}

@media (max-width: 479px) {
  .dates-title,
  .rounds-title,
  .watch-title {
    font-size: clamp(24px, 7vw, 30px);
  }

  .dates-card-title,
  .rounds-card-title,
  .where-to-watch-title {
    font-size: 1.15rem;
  }

  .rounds-venues-title {
    font-size: 1.05rem;
  }
}
