/* Grandstream brand landing (390). Base components come from ift-category-browse.css + ift-akuvox-landing.css. */

.ift-cat-gs__logo {
  max-height: 2.6rem;
}

.ift-gs-eyebrow {
  color: #2563eb;
}

/* —— Shop by range: product photo tiles (they replace the long subcategory list) —— */
.ift-cat-header:has(.ift-gs-range) .ift-cat-index {
  display: none;
}
.ift-gs-range__grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.ift-gs-range__all-ico {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 64px;
  height: 48px;
  background: #f1f5f9;
  border-radius: 6px;
}
.ift-gs-range__all-ico svg {
  fill: none;
  stroke: #0b1f4a;
  stroke-width: 1.7;
}
.ift-gs-range__card--all {
  background: var(--ift-cat-wash);
}
.ift-gs-range__card {
  gap: 0.6rem;
  min-height: 0;
  padding: 0.4rem 0.55rem 0.4rem 0.4rem;
  background: #fff;
}
.ift-gs-range__img {
  flex: 0 0 auto;
  width: 64px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
}
.ift-gs-range__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ift-gs-range__count {
  color: #64748b;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
}
.ift-gs-range__card:hover .ift-cat-aku__series-label,
.ift-gs-range__card:focus .ift-cat-aku__series-label {
  color: #1d4ed8;
}

/* —— One network, one dashboard —— */
.ift-gs-net {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ift-cat-line);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}
.ift-gs-net__head {
  padding: 0.75rem 0.9rem;
  background: #0b1f4a;
}
.ift-gs-net__title {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0;
}
.ift-gs-net__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  margin: 0;
  padding: 0.9rem;
  list-style: none;
}
.ift-gs-net__step {
  position: relative;
  min-width: 0;
}
.ift-gs-net__step + .ift-gs-net__step::before {
  content: '';
  position: absolute;
  top: 0;
  left: -1.1rem;
  z-index: 1;
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 4.2rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}
.ift-gs-net__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  text-decoration: none !important;
  background: none;
  border: 0;
  cursor: pointer;
}
.ift-gs-net__media {
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.6rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ift-cat-line);
  border-radius: 10px;
}
.ift-gs-net__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.ift-gs-net__media--screen {
  background: #0b1f4a;
}
.ift-gs-net__media--screen img {
  object-fit: cover;
}
.ift-gs-net__link:hover .ift-gs-net__media img,
.ift-gs-net__link:focus-visible .ift-gs-net__media img {
  transform: scale(1.04);
}
.ift-gs-net__link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
  border-radius: 10px;
}
.ift-gs-net__num {
  color: #2563eb;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.ift-gs-net__name {
  margin: 0.1rem 0 0.2rem;
  color: var(--ift-cat-ink);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}
.ift-gs-net__text {
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.45;
}
.ift-gs-net__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 0.45rem;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 800;
}
.ift-gs-net__cta svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}
.ift-gs-net__link:hover .ift-gs-net__cta svg {
  transform: translateX(3px);
}

/* —— "More about Grandstream": collapsed preview with a fade (desktop / tablet) —— */
.ift-gs-more__body {
  display: grid;
  gap: 0.85rem;
}
.ift-gs-more__bar {
  display: none;
}
@media (min-width: 576px) {
  .ift-gs-more.is-collapsible .ift-gs-more__bar {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 0.85rem;
  }
  .ift-gs-more.is-collapsible:not(.is-open) .ift-gs-more__body {
    max-height: 230px;
    overflow: hidden;
  }
  .ift-gs-more.is-collapsible:not(.is-open) .ift-gs-more__bar {
    margin-top: -120px;
    padding-top: 84px;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff 72%);
  }
  .ift-gs-more__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.05rem;
    color: #0b1f4a;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
  }
  .ift-gs-more__btn:hover,
  .ift-gs-more__btn:focus-visible {
    background: #f8fafc;
    border-color: #0b1f4a;
    outline: none;
  }
  .ift-gs-more__btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
  }
  .ift-gs-more.is-open .ift-gs-more__btn svg {
    transform: rotate(180deg);
  }
}

@media (max-width: 1199.98px) {
  .ift-gs-range__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .ift-gs-net__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ift-gs-net__step:nth-child(odd)::before {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .ift-gs-range__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phones: range tiles are the swipe row from ift-akuvox-landing.css; photo on top of the label. */
@media (max-width: 575.98px) {
  .ift-gs-range__card {
    align-items: center;
    width: 112px;
    padding: 8px 6px 10px;
  }
  .ift-gs-range__img,
  .ift-gs-range__all-ico {
    width: 88px;
    height: 66px;
  }
  .ift-gs-range__text {
    align-items: center;
  }
  .ift-gs-range__count {
    font-size: 10.5px;
  }
  .ift-gs-net__steps {
    gap: 1rem 0.8rem;
    padding: 0.7rem;
  }
  .ift-gs-net__step + .ift-gs-net__step::before {
    display: none;
  }
  .ift-gs-net__text {
    font-size: 12px;
  }
}

/* Readability: larger type across the Grandstream landing (scoped, Akuvox keeps its own sizes). */
.ift-cat-gs.ift-cat-gs { line-height: 1.5; }
.ift-cat-gs .ift-cat-aku__hero-kicker { font-size: 12.5px; letter-spacing: .1em; }
.ift-cat-gs .ift-cat-aku__hero-title { font-size: 34px; line-height: 1.15; }
.ift-cat-gs .ift-cat-aku__hero-lead { font-size: 17px; line-height: 1.5; max-width: 34em; }
.ift-cat-gs .ift-aku-sip-btn { font-size: 14.5px; }
.ift-cat-gs .ift-cat-aku__brand-lead { font-size: 16px; color: #374151; }
.ift-cat-gs .ift-cat-aku__chips li { font-size: 13.5px; }
.ift-cat-gs .ift-cat-aku__series-eyebrow { font-size: 12px; letter-spacing: .1em; }
.ift-cat-gs .ift-cat-aku__series-title,
.ift-cat-gs .ift-gs-net__title,
.ift-cat-gs .ift-aku-video__title { font-size: 21px; line-height: 1.25; }
.ift-cat-gs .ift-cat-aku__series-label { font-size: 14.5px; line-height: 1.3; }
.ift-cat-gs .ift-gs-range__count { font-size: 12.5px; }
.ift-cat-gs .ift-gs-net__num { font-size: 13px; }
.ift-cat-gs .ift-gs-net__name { font-size: 17px; }
.ift-cat-gs .ift-gs-net__text { font-size: 15px; line-height: 1.45; }
.ift-cat-gs .ift-gs-net__cta { font-size: 14.5px; }
.ift-cat-gs .ift-aku-video__pick-label { font-size: 11.5px; }
.ift-cat-gs .ift-aku-video__pick-title { font-size: 14.5px; line-height: 1.3; }
.ift-cat-gs .ift-aku-video__poster-title,
.ift-cat-gs .ift-aku-video__ui-title { font-size: 17px; }
.ift-cat-gs .ift-cat-aku__spotlight-title { font-size: 24px; line-height: 1.25; }
.ift-cat-gs .ift-cat-aku__spotlight-body p,
.ift-cat-gs .ift-cat-aku__spotlight-body li { font-size: 16px; line-height: 1.5; }
.ift-cat-gs .ift-cat-aku__spotlight-cta { font-size: 15px; }
.ift-cat-gs .ift-aku-slide figcaption { font-size: 15px; }
.ift-cat-gs .ift-cat-aku__h2,
.ift-cat-gs .ift-cat-aku__faq-title { font-size: 22px; line-height: 1.25; }
.ift-cat-gs .ift-cat-intro .ift-cat-intro__lead { font-size: 17px; line-height: 1.5; }
.ift-cat-gs .ift-cat-intro p,
.ift-cat-gs .ift-cat-intro li,
.ift-cat-gs .ift-cat-aku__trade-note,
.ift-cat-gs .ift-cat-aku__promise p { font-size: 16px; line-height: 1.6; }
.ift-cat-gs .ift-cat-aku__faq-q { font-size: 17px; line-height: 1.35; }
.ift-cat-gs .ift-cat-aku__faq-a { font-size: 16px; line-height: 1.6; }
.ift-cat-gs .ift-gs-more__btn { font-size: 15px; }
.ift-cat-gs .ift-cat-intro p,
.ift-cat-gs .ift-cat-aku__faq-a { max-width: 70ch; }
.ift-gs-dlg .ift-aku-sip__lead { font-size: 17px; line-height: 1.55; }
.ift-gs-dlg .ift-aku-sip__list li,
.ift-gs-dlg .ift-aku-sip__text { font-size: 16px; line-height: 1.55; }
.ift-gs-dlg .ift-aku-sip__h3 { font-size: 18px; }
.ift-gs-dlg .ift-aku-sip__node { font-size: 15px; }
.ift-gs-dlg .ift-aku-sip__sub { font-size: 13.5px; }

@media (max-width: 575.98px) {
  .ift-cat-gs .ift-cat-aku__hero-kicker { font-size: 11px; }
  .ift-cat-gs .ift-cat-aku__hero-title { font-size: 24px; }
  .ift-cat-gs .ift-cat-aku__hero-lead { font-size: 14.5px; -webkit-line-clamp: 3; }
  .ift-cat-gs .ift-aku-sip-btn { font-size: 13.5px; }
  .ift-cat-gs .ift-cat-aku__brand-lead { font-size: 15px; }
  .ift-cat-gs .ift-cat-aku__series-title,
  .ift-cat-gs .ift-gs-net__title,
  .ift-cat-gs .ift-aku-video__title { font-size: 18px; }
  .ift-cat-gs .ift-cat-aku__series-label { font-size: 13px; }
  .ift-cat-gs .ift-gs-range__count { font-size: 11.5px; }
  .ift-cat-gs .ift-cat-aku__about-title { font-size: 16px; }
  .ift-cat-gs .ift-cat-aku__about-sub { font-size: 13.5px; }
  .ift-cat-gs .ift-gs-net__name { font-size: 16px; }
  .ift-cat-gs .ift-gs-net__text { font-size: 14.5px; }
  .ift-cat-gs .ift-cat-aku__spotlight-title { font-size: 20px; }
  .ift-cat-gs .ift-cat-aku__spotlight-body p,
  .ift-cat-gs .ift-cat-aku__spotlight-body li,
  .ift-cat-gs .ift-cat-intro p,
  .ift-cat-gs .ift-cat-intro li,
  .ift-cat-gs .ift-cat-aku__faq-a,
  .ift-cat-gs .ift-cat-aku__trade-note,
  .ift-cat-gs .ift-cat-aku__promise p { font-size: 15.5px; }
  .ift-cat-gs .ift-cat-aku__faq-q { font-size: 16px; }
  .ift-cat-gs .ift-cat-aku__h2,
  .ift-cat-gs .ift-cat-aku__faq-title { font-size: 19px; }
}
