/*
 * SHARK page - the look of its two carousels: 2. Modes and 4. How it works.
 * The carousel itself - the sliding track, the dots below it, the
 * peek arrows - is the carousel module (assets/carousel/); here: the heading lined
 * up with the page's 1200 px column while the cards run full width, and the cards' look.
 * In the brochure: all cards, two per row.
 */

.shark .sd-scroller {
  --sd-gutter: max(24px, calc((100% - var(--sd-wide)) / 2));
  grid-template-columns: var(--sd-gutter) minmax(0, 1fr) var(--sd-gutter);
}

.shark .sd-scroller > .head {
  grid-column: 2;
  width: auto;
  max-width: none;
  margin: 0 0 clamp(20px, calc(var(--sd-vh) * 0.035), 48px);
  padding: 0;
}

.shark .sd-scroller > .track {
  grid-column: 1 / -1;
  margin: 0 auto;
}

.shark .sd-scroller > .sd-nav {
  grid-column: 2;
  margin: clamp(8px, calc(var(--sd-vh) * 0.015), 16px) 0 0;
}

.shark .head {
  max-width: var(--sd-wide);
  margin: 0 auto clamp(20px, calc(var(--sd-vh) * 0.035), 48px);
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, calc(var(--sd-vh) * 0.015), 14px);
}

.shark .track {
  --sd-side: max(24px, calc((min(100cqw, 1440px) - var(--sd-wide)) / 2));
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  box-sizing: border-box;
  max-width: 1440px;
  margin: 0 auto;
  scroll-padding-left: var(--sd-side);
  padding: 0 var(--sd-side) 4px;
}

.shark .track::-webkit-scrollbar {
  display: none;
}

.shark .card {
  flex: 0 0 min(var(--sd-wide), calc(min(100cqw, 1440px) - var(--sd-side) - 20px - min(64px, 10cqw)));
  height: clamp(340px, calc(var(--sd-vh) - 2 * var(--sd-pad) - 200px), 680px);
  scroll-snap-align: start;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(20px, 2.6cqw, 36px) clamp(20px, 2.6cqw, 36px) clamp(18px, 2cqw, 28px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.shark .card.dark {
  background: var(--sd-deep);
  color: var(--sd-white);
}

.shark .card.light {
  background: var(--sd-white);
}

.shark #how .card {
  height: clamp(340px, calc(var(--sd-vh) - 2 * var(--sd-pad) - 250px), 680px);
}

.shark .card-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 600px;
}

.shark .card.dark h3 {
  font-size: 28px;
  line-height: 1.2;
}

.shark .card.light h3 {
  font-size: 26px;
  line-height: 1.2;
}

.shark .step {
  font-weight: 500;
  font-size: 15px;
}

.shark .card-img {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shark .card-img img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
}

.shark .card-img.fill {
  border-radius: 16px;
  overflow: hidden;
}

.shark .card-img.fill img {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
}

.shark .card-img.cover img {
  object-fit: cover;
}

@media (max-width: 899px) {
  .shark .card,
  .shark #how .card {
    height: auto;
    gap: 16px;
  }

  .shark .card h3 {
    font-size: 22px !important;
  }

  .shark .card-img img,
  .shark .card-img.fill img {
    height: auto;
    max-height: none;
  }
}

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

.brochure-mode .shark .sd-scroller {
  display: block;
}

/* Modes and How it works: 2 x 2 cards, light inside to save ink */
.brochure-mode .shark .card {
  padding: 5mm;
  gap: 3mm;
  border-radius: 4mm;
  break-inside: avoid;
}

.brochure-mode .shark .card.dark {
  background: var(--sd-mist);
  color: var(--sd-ink);
}

.brochure-mode .shark .card.light {
  background: var(--sd-mist);
}

.brochure-mode .shark .card h3 {
  font-size: 12pt !important;
}

.brochure-mode .shark .card .eyebrow.on-dark {
  color: var(--sd-ink);
}

.brochure-mode .shark .card-img,
.brochure-mode .shark .card-img.fill {
  flex: none;
  border-radius: 2mm;
}

.brochure-mode .shark .card-img img,
.brochure-mode .shark .card-img.fill img {
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 2mm;
}

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