body {
  font-size: 14px;
}

:root {
  --gap: 10px;
  --visible: 2;
}

body,
section,
header,
footer,
main {
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
}

main {
  height: fit-content;
  overflow-y: auto;
  /* clears the fixed header (51px with the compact mobile logo/icons) */
  margin-top: 55px;
}

form .row {
  flex-wrap: wrap;
  flex-direction: column;
  row-gap: 20px;
}

form .half,
form .third {
  width: 100%;
}

input,
textarea,
select {
  font-size: .9em;
}

.is-compact .fancybox__content>.f-button.is-close-btn {
  width: 50px;
  min-width: 0;
  max-width: 50px;
  height: 50px;
  overflow: hidden;
}

button,
.button {
  min-width: 0;
}

form button {
  width: 100%;
  margin-bottom: 10px;
}

input,
textarea,
select {
  font-size: .9em;
}

.modal {
  min-width: 100%;
}

/* Menu */
/* Header */
#main-header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  padding-left: 5%;
  padding-right: 5%;
  margin-left: 0;
  margin-right: 0;
  overflow: visible;
  border-radius: 0;
  z-index: 100;

  /* navigation */
  nav {

    /* Logo */
    .logo-wrap {

      .logo {
        height: 38px;
        width: auto;   /* width attribute is a hint; keep the ratio */
      }
    }

    /* Main Menu */
    menu {
      display: none;

    }

    /* Store Buttons — compact icon buttons so the phone header stays slim */
    .shop-items {
      column-gap: 8px;

      a {
        width: 30px;
        height: 30px;

        .icon {
          height: 15px;
          width: auto;
        }
      }

      #chk-btn {
        display: none;
      }

    }

    .menu-btns {
      display: flex;
    }
  }
}

/* Weather Bar */
#weather-bar {
  position: absolute;
  top: 63px;
  left: 0;
  display: flex;
  width: 90%;
  height: 36px;
  margin-left: 5%;
  margin-right: 5%;
  overflow: hidden;
  justify-content: center;
  text-align: center;
  z-index: 99;
  color: #fff;
  background: #2f506f;
  font-size: 0.8em;
  gap: 10px;
  padding: 8px 5px;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  border-radius: 20px;
  filter: opacity(0);
  transition: filter .3s;

  img {
    width: 20px;
    height: 20px;
    display: flex;
    padding: 0;
  }

  span {
    line-height: 100%;
    display: flex;
    align-items: center;
  }
}

/* Desktop Menu */

#desktop-menu-btn {
  width: 24px;
  row-gap: 5px;
}

#desktop-menu-btn>div {
  height: 2px;
}

/* Unread badge scales with the smaller messages icon */
#main-header .shop-items a.msg-link .msg-badge {
  top: -5px;
  right: -6px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  font-size: 9px;
}

/* Mobile Menu — modern glassy panel matching the site header.
   Slides with transform (GPU) instead of `left` so it's fast + smooth;
   .slide-left (left:0 !important) is harmless since left is always 0. */
.desktop-menu {
  width: min(340px, 86%);
  padding: 76px 26px 40px;
  position: fixed;
  left: 0;
  transform: translateX(-104%);
  filter: opacity(1);
  top: 0;
  z-index: 102;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  transition: transform .32s cubic-bezier(.32, .72, .25, 1);
  display: flex;
  background: rgba(10, 11, 14, 0.96) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 24px 0 60px -30px rgba(0, 0, 0, 0.95);
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  flex-direction: column;
  align-items: stretch;
  row-gap: 4px;

  &.slide-left {
    transform: translateX(0);
  }

  a {
    display: flex;
    align-items: center;
    font-family: "Inter", sans-serif;
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-align: left;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    width: 100%;
    justify-content: flex-start;
    padding: 14px 12px;
    border-radius: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: background .2s ease, color .2s ease, padding-left .2s ease;
  }

  a:active,
  a.active {
    background: rgba(193, 145, 20, 0.12);
    color: #fff;
  }

  /* gold accent bar on tap/active, like the desktop dropdown */
  a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 2px;
    background: #c19114;
    transform: translateY(-50%);
    transition: height .2s ease;
  }

  a:active::before,
  a.active::before {
    height: 18px;
  }

  .menu-item {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;

    a {
      width: 100%;
      justify-content: flex-start;
    }

    /* Submenu: rounded glassy card, matches desktop dropdown */
    .submenu {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      flex-direction: column;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0);
      width: 100%;
      margin-top: 4px;
      border-radius: 12px;
      padding: 0 6px;
      transition: max-height 0.28s ease, opacity 0.28s ease, border-color 0.28s ease;

      a {
        padding: 12px 14px;
        font-size: 0.92em;
        font-weight: 500;
        letter-spacing: 0.6px;
        text-transform: none;
        color: rgba(255, 255, 255, 0.78);
        border-bottom: none;
        border-radius: 9px;
      }

      a:active {
        color: #c19114;
        background: rgba(193, 145, 20, 0.12);
      }
    }

    /* Show submenu when active */
    &.active .submenu {
      max-height: 500px;
      /* enough to fit all items */
      opacity: 1;
      padding: 6px;
      border-color: rgba(255, 255, 255, 0.07);
    }
  }
}

.hero {

  padding-top: 30px;

  h1 {
    font-size: 2.2em;

    span {
      display: flex;
      flex-direction: column;
    }
  }
}

.home {

  .hero {
    margin-top: 0px;
    height: fit-content;
    min-height: 75vh;

    .content {
      width: 100%;
      padding-right: 5%;

      row-gap: 20px;
          img.desktop-title {
        display: none;
      }

      img.mobile-title {
        display: block;
        width: 100%;
      }

      h1 {
        font-size: 3em;
        line-height: 100%;
      }

      button {
        min-width: 0;
        font-size: .9em;
      }
}

  }

  .channel-cards {
    font-size: .8em;
    padding: 40px 5% !important;

    .grid {
      grid-template-columns: 1fr;

      .card {
        height: 260px;
        align-items: flex-start;
        padding: 15px;

        .title {
          text-align: left;
          font-size: 1.6em;
        }

        .desc {
          text-align: left;
        }
      }


      button {
        min-width: 0;
      }
    }

    .grid>*:last-child:nth-child(odd) {
      grid-column: span 1;
    }
  }

  .archive-cards {
    font-size: .8em;
    padding: 40px 5% 0;

    .wrapper {

      .swiper-slide {

        .info {
          font-size: .9em;
          flex-wrap: wrap;
          text-wrap: balance;
        }
      }

      .swiper-button-next::after,
      .swiper-button-prev::after {
        font-size: 28px;
      }
    }
  }

  /* Mobile adjustments for story-cards slider */
  .story-cards {
    font-size: 0.8em;
    padding: 40px 5% 0;

    .wrap {
      display: none !important;
    }

    .mobile-news-slider {
      max-width: 100%;
      width: 100%;
      overflow: hidden;
      display: block;
    }

    .mobile-main {
      padding: 12px;
      background: #222;
      border-radius: 12px;
    }

    .mobile-hero {
      width: 100%;
      height: 220px;
      object-fit: cover;
      display: block;
      border-radius: 8px;
    }

    .mobile-content {
      padding: 10px 0 6px;
    }

    .mobile-content h2 {
      margin: 6px 0;
      font-size: 1.4em;
      color: #fff;
      line-height: 110%;
    }

    .mobile-meta {
      color: #aaa;
      font-size: 0.85rem;
      margin-bottom: 8px;
    }

    .mobile-content p {
      color: #ddd;
      margin: 0 0 10px;
      max-height: 3.6rem;
      overflow: hidden;
    }

    .mobile-content .read-more {
      display: inline-block;
      padding: 8px 12px;
      color: #000;
      border-radius: 6px;
      text-decoration: none;
      font-weight: 700;
    }

    .mobile-thumbs {
      display: none;
      flex-direction: column;
      gap: 6px;
      padding: 12px;
      box-sizing: border-box;
      margin-top: 20px;
      background: #222;
      border-radius: 12px;

      .heading {
        font-size: 1.6em;
        font-weight: 900;
      }
    }

    .thumb-buttons {
      display: flex;
      justify-content: space-between;
      margin-bottom: 6px;
      font-size: 2em;
      font-weight: 300;
    }

    .m-btn {
      all: unset;
      width: 38px;
      height: 38px;
      min-width: 38px;
      border-radius: 50%;
      background: #2f506f;
      color: #fff;
      display: grid;
      place-items: center;
      cursor: pointer;
    }

    .m-btn:hover {
      background: #c19114;
      color: #000;
    }

    .thumb-viewport {
      overflow: hidden;
      width: 100%;
    }

    .thumb-track {
      display: flex;
      gap: var(--gap);
      transition: transform .45s cubic-bezier(.2, .9, .2, 1);
      will-change: transform;
      line-height: 110%;
    }

    .thumb-item {
      flex: 0 0 calc((100% / var(--visible)) - ((var(--gap) * (var(--visible) - 1)) / var(--visible)));
      box-sizing: border-box;
      cursor: pointer;
      text-align: left;
    }

    .thumb-item img {
      width: 100%;
      height: 90px;
      object-fit: cover;
      border-radius: 8px;
      display: block;
    }

    .thumb-title {
      font-size: 1.1em;
      margin-top: 5px;
      color: #fff;
      font-weight: 700;
    }

    .thumb-date {
      font-size: 11px;
      color: #aaa;
      margin-top: 10px;
    }

    @media(max-width:360px) {
      .mobile-hero {
        height: 180px;
      }

      .thumb-item img {
        height: 72px;
      }
    }


  }



  .call-to-action {
    padding: 40px 5%;
    margin-top: 40px;

    .left {
      width: 100%;

      .title {
        font-size: 2.5em;
        line-height: 100%;
      }

      button {
        min-width: 0;
        font-size: .8em;
      }
    }

    .right {
      display: none;
    }
  }

}

/* Watch Live Page */
.watch-live {
  .sec1 {
    padding: 40px 5%;
    font-size: .8em;

    .grid1,
    .grid2 {
      grid-template-columns: repeat(1, 1fr);
      width: 100%;
      min-width: 100%;

      .channel {
        height: 300px;
        width: 100%;

        .description {
          max-width: 100%;
        }
      }
    }
  }
}

/* Live Stream Page */
.live {

  .livestream {
    padding: 20px 0 2%;
    margin-top: 40px;

    .g-logo {
      width: 40px;
    }

    .nnatv-logo {
      width: 40px;
    }

    iframe {
      height: fit-content;
      min-height: 300px;
      width: 100%;
    }

    .info {
      flex-direction: column;
      font-size: .8em;
      row-gap: 20px;

      .left {
        width: 100%;
        height: 150px;
      }

      .right {
        width: 100%;

        h1 {
          line-height: 100%;
          margin-top: 10px;
        }
      }
    }
  }
}

/* News Page */
.news-page {

  .filter-bar {
    padding: 30px 5% 15px;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;

    .filter-title {
      margin: 0;
      text-align: center;
      font-size: 1.8em;
    }

    form {
      flex-direction: column;
      align-items: stretch;
      width: 100%;

      input,
      select,
      button {
        width: 100%;
        min-width: 0;
      }
    }
  }

  .news-ad {
    padding: 15px 5%;
    margin: 5px 0 15px;
  }

  .sec1 {
    font-size: .8em;

    .posts-list {
      grid-template-columns: repeat(1, 1fr);

      .post {
        display: flex;
        flex-direction: column;
        row-gap: 20px;

        .img {
          min-height: 150px;
          height: 200px;
          width: 100%;
        }

        .right {
          width: 100%;
          height: fit-content;
        }
      }
    }
  }
}

/* Single Post Page */
.single-post {

  .breadcrumb {
    font-size: .8em;
    margin-top: 50px;
  }

  .sec1 {
    font-size: .8em;
    flex-direction: column;
    row-gap: 40px;
    padding-left: 0;
    padding-right: 0;

    .article {
      width: 100%;

      > h2,
      > p {
        padding-left: 5%;
        padding-right: 5%;
      }

      h2 {
        text-align: left;
        margin-top: 0;
      }

      .left {
        width: 100%;
        height: fit-content;
      }

      .left img,
      .gallery img,
      .gallery video {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
      }

      .author-info {
        padding-left: 5%;
        padding-right: 5%;
      }

      .author-info .author-label {
        font-size: 0.85em;
      }

      .author-info .author-name {
        font-size: 1.5em;
      }

      .author-info .author-meta {
        font-size: 1em;
      }

      /* Inset with margins, not padding, so the divider line under the
         icons stops where the text does instead of running edge to edge. */
      .share-bar {
        margin-left: 5%;
        margin-right: 5%;
      }

      .right {
        padding-left: 5%;
        padding-right: 5%;
      }

      .gallery {
        padding-bottom: 0;
      }

      .description img {
        width: 100%;
        height: auto;
        max-width: 100%;
      }
    }

    .side-ad {
      width: 100%;
      position: static;
      text-align: center;
      padding-left: 5%;
      padding-right: 5%;
    }
  }

  .related {
    padding: 40px 5%;
    font-size: .8em;

    .grid5 {
      grid-template-columns: repeat(2, 1fr);

      .product {
        .title {
          line-height: 120%;
          font-weight: 700;
        }

        .img {
          height: 15vh;
        }
      }
    }
  }
}

/* Footer */
#main-footer {
  padding: 60px 5% 20px;
  font-size: .8em;

  .grid {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 30px;

    .item {
      text-align: center;

      .social-links {
        justify-content: center;
      }
    }

    img.logo {
      max-width: none;
      height: 80px;
      width: auto;
      margin-left: auto;
      margin-right: auto;
    }

    /* The desktop 40px column gap pushes the seven legal links well past a
       phone viewport. They wrap (see style.css) but still need tighter
       spacing to sit two or three per line instead of one, and each link
       has to stay on a single line of its own so "Refunds & Cancellation"
       does not break mid-phrase. */
    .links {
      column-gap: 18px;
      row-gap: 12px;
      padding: 0 5%;

      a {
        white-space: nowrap;
      }
    }
  }

  .legal {
    text-wrap: balance;
  }
}

.page {

  .hero {
    height: fit-content;
    margin-top: 55px;
    font-size: .8em;

    .content {
      padding-top: 0;

      h1 {
        font-size: 1.8em;
      }
    }
  }

  .breadcrumb {
    font-size: .9em;
    padding: 20px 5%;
  }
}


/* Shop */
.shop {

  .hero {
    margin-top: 60px;
  }

  .filter {
    padding: 40px 5%;
    font-size: .8em;

    form {

      .inputs {
        grid-template-columns: repeat(2, 1fr);
      }
    }
  }

  .sec1 {
    overflow: hidden;
    height: fit-content;
    display: block;
    font-size: .8em;

    .sidebar {
      position: relative !important;
      min-height: fit-content;
      width: 100%;
      margin-bottom: 60px;

      .list {}
    }

    .products {
      grid-template-columns: repeat(2, 1fr);
      width: 100%;
      column-gap: 10px;

      .product {

        .img {
          height: 120px;
        }

        .size {
          flex-direction: column;
          row-gap: 10px;

          span {
            width: 100%;
          }
        }

        .img:hover {
          top: 0;
        }

        button {
          min-width: 0;
          font-size: .8em;
        }

        .info {
          flex-wrap: wrap;
          text-wrap: balance;
        }
      }
    }
  }
}

/* Single product page */
.single-product {

  .breadcrumb {
    font-size: .8em;
    margin-top: 50px;
  }

  .sec1 {
    font-size: .8em;
    flex-direction: column;
    row-gap: 40px;

    .left {
      width: 100%;
      height: auto;
      min-height: 0;
      padding: 0;

      .thumbnails {
        position: relative;
        z-index: 1;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        row-gap: 20px;
      }
    }

    .right {
      width: 100%;
      padding-left: 0;

      h2 {
        line-height: 120%;
        font-size: 1.8em;
      }

      .category {
        font-size: .9em;
      }

      .size {
        flex-direction: column;
        row-gap: 5px;

        span {
          width: 100%;

          select {
            width: 100%;
          }
        }
      }

      button {
        width: 100%;
      }
    }

    h2 {
      text-align: left;
    }

    .left {
      width: 100%;
      height: fit-content;
    }
  }

  .related {
    padding: 40px 5%;
    font-size: .8em;

    .grid5 {
      grid-template-columns: repeat(2, 1fr);
      margin-bottom: 40px;

      .product {
        .img {
          height: 100px;
        }
      }

      .product:hover {
        top: 0;
      }
    }
  }

}

/* Search bar mobile tweaks live in site-modern.css with the
   rest of the modern search styles — nothing to override here. */


/* Search Page */
.search-page {

  .result {
    font-size: 0.8em;
  }
}


/* Contact Page */
.contact {


  .sec1 {
    padding: 60px 5%;
    width: 100%;
    font-size: .8em;

    .grid {
      flex-direction: column;
      justify-content: center;
      align-items: center;
      row-gap: 60px;

      .item {
        width: 100%;
        flex-direction: column;
        row-gap: 20px;
        text-align: center;

        .lef,
        .righ {
          width: 100%;
        }

        .righ {

          .info {
            font-size: 1.2em;
          }
        }
      }
    }

    .partner {

      img {
        height: 40px !important;
      }
    }

    .flex {
      flex-direction: column;
      row-gap: 20px;

      .left,
      .right {
        width: 100%;
      }

      .left {

        .img-wrap {
          margin-bottom: 0;
          padding-bottom: 40px;

          iframe {
            height: 300px;

          }
        }

      }

      .right {
        form {

          .fullwidth,
          .half {
            select {
              option {
                color: #000;
              }
            }
          }
        }
      }
    }

    form {
      width: 100%;
      font-size: 1.1em;
    }
  }
}

.ultra-stream {

  /* Compact hero: no more full-screen — the first content row
     (Top 10) is visible in the first fold on mobile */
  .hero-ultra {
    height: auto;
    min-height: 0;
    padding: 105px 5% 44px;

    .hero-content img {
      display: block;
      margin: 0 auto;
      max-width: 55%;
      height: auto;
    }

    h1 {
      font-size: 2.2em;
      line-height: 100%;
      text-align: center;
    }

    p {
      font-size: 1em;
      text-align: center;
      margin-bottom: 20px;
    }

    .btn {
      font-size: 1em;
    }
  }

  .content {
  padding: 34px 2% 20px;

    .row {
      margin-bottom: 42px;
    }

      .row {
      .row-title {
        margin: 0 5% 15px;
      }

      .slider {
        padding: 0 20px;
        scroll-snap-type: x mandatory;
        cursor: default;

        /* Top 10 rows: snap on the whole item (rank + card) so the
           mandatory snap doesn't push the rank numeral out of view
           on the left of the first card */
        .top10-item {
          scroll-snap-align: start;
        }

        .top10-item .card {
          scroll-snap-align: none;
        }

        .card {
          width: 200px;
          min-height: 90px;
          scroll-snap-align: start;

          img {
            height: 110px;
          }

          .title {
            font-size: .9em;
            color: #ddd;
          }
        }
      }
    }
}

  .slider-btn.prev,
  .slider-btn.next {
    display: none;
  }

  .us-modal-content h2 {
    line-height: 1.1;
    font-size: 1.4em;
  }
}

#cursor-follower {
  display: none !important;
  visibility: hidden !important;
}

.stream-group .curve-wrap {
  margin-top: -80px;
}

/* Compact register banner on mobile (desktop keeps 150px) */
.stream-group #ultra-stream-register-banner {
  padding-bottom: 150px;
}
/* ============================================================
   NEWS DROPDOWN in the slide-out menu.
   The generic submenu caps at 500px, which clipped the last of
   the newsroom's 10 categories — give this one room and keep
   "All Categories" gold as the reset link.
   ============================================================ */
.desktop-menu .menu-item.active .submenu.news-submenu {
  max-height: 900px;
  overflow-y: auto;
}
.desktop-menu .menu-item .submenu.news-submenu a.all-cats {
  color: #dbbc6c;
  font-weight: 700;
}
