/* ============================================================
   SABERTOOTH — The Dental Fitness Beverage Buddy
   Replaces the retired badge overlays.
   Overlay-only: no React DOM is touched (hydration-safe).
   ============================================================ */

/* ---- Buddy System section: mascot centered between copy and rhythm ---- */
.buddy-section {
  grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 1.1fr);
  grid-template-rows: auto auto;
  gap: 14px clamp(30px, 4.5vw, 64px);
  align-items: center;
}

.buddy-section > .buddy-copy {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-width: 0;
}

.buddy-section > .buddy-rhythm {
  grid-column: 3;
  grid-row: 1 / span 2;
  min-width: 0;
}

.buddy-section::before {
  align-self: end;
  aspect-ratio: 1;
  background: url("/assets/sabertooth-mascot.webp") center bottom / contain no-repeat;
  content: "";
  filter:
    drop-shadow(0 26px 44px rgba(0, 7, 20, 0.5))
    drop-shadow(0 0 30px rgba(132, 238, 240, 0.16));
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  pointer-events: none;
  width: clamp(180px, 15vw, 244px);
}

.buddy-section::after {
  align-self: start;
  color: rgba(214, 240, 255, 0.82);
  content: "SABERTOOTH\2122\A YOUR DENTAL FITNESS BEVERAGE BUDDY";
  font-size: 10.5px;
  font-weight: 600;
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  letter-spacing: 0.22em;
  line-height: 2;
  pointer-events: none;
  text-align: center;
  text-transform: uppercase;
  white-space: pre-line;
}

@media (max-width: 980px) {
  .buddy-section {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 34px;
  }

  .buddy-section > .buddy-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .buddy-section::before {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    width: clamp(170px, 34vw, 210px);
  }

  .buddy-section::after {
    grid-column: 1;
    grid-row: 3;
    margin-top: -22px;
  }

  .buddy-section > .buddy-rhythm {
    grid-column: 1;
    grid-row: 4;
  }
}

/* ---- Evidence Atlas panel 04: the Sabertooth card as the section seal ---- */
.buddy-restored {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 clamp(28px, 4vw, 56px);
}

.buddy-restored::before {
  align-self: center;
  aspect-ratio: 640 / 427;
  background: url("/assets/sabertooth-card.webp") center / cover no-repeat;
  border-radius: 16px;
  box-shadow:
    0 24px 48px rgba(0, 7, 20, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 26px rgba(132, 238, 240, 0.1);
  content: "";
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  pointer-events: none;
  width: clamp(220px, 22vw, 300px);
}

.buddy-restored > header {
  grid-column: 1;
  grid-row: 1;
  max-width: 780px;
  min-width: 0;
}

.buddy-restored > div {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
}

@media (max-width: 700px) {
  .buddy-restored {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .buddy-restored::before,
  .buddy-restored > header,
  .buddy-restored > div {
    grid-column: 1;
  }

  .buddy-restored::before {
    grid-row: 1;
    justify-self: center;
    width: min(320px, 88%);
  }

  .buddy-restored > header {
    grid-row: 2;
  }

  .buddy-restored > div {
    grid-row: 3;
    margin-top: 0;
  }
}
