/*
 * SHARK page - 6. StellaControl: two views with tabs (sd-rotator), four cards.
 * In the brochure: both views with their captions.
 */

.shark .sc {
  max-width: var(--sd-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, calc(var(--sd-vh) * 0.035), 40px);
}

.shark .sc-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}

.shark .sc-views {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.shark .tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  background: var(--sd-mist);
  border-radius: 999px;
}

.shark .tabs button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: 500 15px Poppins, system-ui, sans-serif;
  color: var(--sd-ink);
  background: transparent;
}

.shark .tabs .is-on {
  background: var(--sd-sky);
}

.shark .tab-s {
  display: none;
}

.shark .stack {
  display: grid;
  justify-items: center;
  align-items: center;
  max-width: 100%;
}

.shark .stack > * {
  grid-area: 1 / 1;
}

.shark .stack img {
  width: auto !important;
  max-height: max(260px, calc(var(--sd-vh) - 2 * var(--sd-pad) - 490px));
  border-radius: 14px;
  border: 1px solid var(--sd-mist);
}

.shark .fade {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.shark .fade.is-on {
  opacity: 1;
}

.shark .views figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.shark .views figcaption {
  max-width: 760px;
  text-align: center;
  color: var(--sd-grey);
  font-size: 15px;
}

.shark .sc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}

.shark .sc-cards > div {
  background: var(--sd-mist);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shark .sc-cards span {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sd-white);
  color: var(--sd-sky);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shark .sc-cards h3 {
  font-size: 17px;
  letter-spacing: 0;
}

.shark .sc-cards p {
  color: var(--sd-grey);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 479px) {
  .shark .tab-l {
    display: none;
  }

  .shark .tab-s {
    display: inline;
  }

  .shark .tabs button {
    padding: 0 14px;
  }
}

@media (min-width: 600px) and (max-width: 979px) {
  .shark .sc-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* Phones and tablets: the title beside the icon, the text below across the card */
@media (max-width: 979px) {
  .shark .sc-cards > div {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 14px;
    row-gap: 12px;
    align-items: center;
  }

  .shark .sc-cards p {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .shark .sc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    column-gap: 32px;
    align-items: start;
  }

  .shark .sc-head {
    grid-column: 1 / -1;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: 48px;
    row-gap: 10px;
    align-items: end;
  }

  .shark .sc-head > .eyebrow {
    grid-column: 1 / -1;
  }

  .shark .sc-head h2 {
    font-size: clamp(26px, min(3vw, calc(var(--sd-vh) * 0.055)), 42px);
  }

  .shark .sc-head .lead {
    font-size: clamp(15px, calc(var(--sd-vh) * 0.0125 + 8.7px), 17px);
    line-height: 1.5;
  }

  .shark .stack img {
    max-height: max(200px, calc(var(--sd-vh) - 2 * var(--sd-pad) - 270px));
  }

  .shark .sc-cards {
    grid-template-columns: 1fr;
    gap: clamp(6px, calc(var(--sd-vh) * 0.012), 10px);
  }

  .shark .sc-cards > div {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 14px;
    row-gap: 2px;
    align-items: start;
    padding: clamp(8px, calc(var(--sd-vh) * 0.012 + 2px), 14px) 14px;
  }

  .shark .sc-cards span {
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .shark .sc-cards span svg {
    width: 20px;
    height: 20px;
  }

  .shark .sc-cards h3 {
    font-size: 15px;
    line-height: 1.35;
  }

  .shark .sc-cards p {
    font-size: clamp(12.5px, calc(var(--sd-vh) * 0.005 + 10px), 13.5px);
    line-height: 1.4;
  }
}

@media (min-width: 980px) and (max-width: 1099px) {
  .shark .sc {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (min-width: 1200px) {
  .shark .sc {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

/* ---- Brochure ---------------------------------------------------------------------- */

/* StellaControl: both views with their captions, then the 4 cards 2 x 2 */
.brochure-mode .shark .sc {
  display: flex;
  flex-direction: column;
}

.brochure-mode .shark .sc-head {
  display: flex;
  max-width: none;
}

.brochure-mode .shark .sc-head h2 {
  font-size: 22pt;
}

.brochure-mode .shark .sc-head .lead {
  font-size: 11pt;
}

.brochure-mode .shark .views img {
  max-height: 95mm;
  width: auto !important;
}

.brochure-mode .shark .views figcaption {
  font-size: 9pt;
}

.brochure-mode .shark .views figure + figure {
  margin-top: 4mm;
}

.brochure-mode .shark .sc-cards {
  grid-template-columns: 1fr 1fr;
  gap: 4mm;
}

.brochure-mode .shark .sc-cards > div {
  display: flex;
  padding: 4mm;
  gap: 2mm;
  break-inside: avoid;
}

.brochure-mode .shark .sc-cards span {
  width: 9mm;
  height: 9mm;
}

.brochure-mode .shark .sc-cards h3 {
  font-size: 10pt;
}

.brochure-mode .shark .sc-cards p {
  font-size: 9pt;
}
