/* Product tabs follow the source Webflow layout: a rail on desktop and a
   single-open vertical stack on tablet and phone. */
.product-section .center-copy {
  max-width: 50.125rem;
}

@media (max-width: 991px) {
  .product-section .center-copy {
    max-width: 33.5rem;
    margin-bottom: 3rem;
  }

  .product-section .center-copy h2 {
    font-size: 2.875rem;
    line-height: 1;
  }

  .product-tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(10, auto);
  }

  .tab-list {
    display: contents;
  }

  .tab-button {
    width: 100%;
    min-height: 6.25rem;
    padding: 1.5rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    opacity: .4;
  }

  .tab-button small {
    display: block;
  }

  .tab-button[aria-selected="true"] {
    opacity: 1;
  }

  #person-tab-1 { grid-row: 1; }
  #person-panel-1 { grid-row: 2; }
  #person-tab-2 { grid-row: 3; }
  #person-panel-2 { grid-row: 4; }
  #person-tab-3 { grid-row: 5; }
  #person-panel-3 { grid-row: 6; }
  #person-tab-4 { grid-row: 7; }
  #person-panel-4 { grid-row: 8; }
  #person-tab-5 { grid-row: 9; }
  #person-panel-5 { grid-row: 10; }

  .tab-panel {
    grid-column: 1;
    min-height: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .tab-panel:not([hidden]) {
    animation: product-panel-enter .3s ease-in-out;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .product-section {
    padding-right: 3.5rem;
    padding-left: 3.5rem;
  }
}

@media (max-width: 767px) {
  .product-tabs {
    border-right-width: 0;
    border-left-width: 0;
    border-radius: 0;
  }

  .tab-button {
    padding: 1.5rem;
  }

  .tab-label {
    font-size: 1.125rem;
  }
}

@media (max-width: 479px) {
  .product-section .center-copy h2 {
    font-size: 2.25rem;
  }
}

@keyframes product-panel-enter {
  from {
    opacity: 0;
    transform: translateY(-.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tab-panel:not([hidden]) {
    animation: none;
  }
}
