/* Social responsibility set piece: donation boost meter (see partials/features/social-boost.php).
   The default is the finished meter (no JS, reduced motion); the script sets the start states. */
.sbx { overflow: clip; }
.sbx-grid { position: relative; z-index: 1; display: grid; gap: clamp(2.4rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 1024px) { .sbx-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
.sbx-copy > p { color: rgba(255,255,255,.86); margin-bottom: clamp(1.4rem, 2.6vw, 2.2rem); }

/* the meter card */
.sbx-meter {
  position: relative; border-radius: var(--r-lg);
  padding: clamp(18px, 2.2vw, 30px) clamp(20px, 2.6vw, 36px) clamp(16px, 2vw, 26px);
  background: linear-gradient(160deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,.035) 100%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 40px 70px -46px rgba(0,0,0,.7);
}
.sbx-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.sbx-count { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; }
.sbx-n {
  font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96; letter-spacing: -.04em;
  font-size: clamp(2.6rem, 4.4vw, 3.9rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums;
}
.sbx-count-l { font-weight: 600; color: rgba(255,255,255,.78); }
.sbx-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the seal: the client's badge on a white disc, stamped over the card's top edge */
.sbx-seal {
  --seal: clamp(104px, 10vw, 142px);
  position: relative; flex: none; width: var(--seal); height: var(--seal); margin: calc(var(--seal) * -.42) calc(var(--seal) * -.12) 0 0;
  border-radius: 50%; background: #fff; padding: 3px;
  box-shadow: 0 0 0 5px rgba(159,216,180,.5), 0 26px 40px -16px rgba(0,0,0,.6);
  transform: rotate(-8deg);
}
.sbx-seal img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transform: scale(1.12); }
.sbx-shock { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--honey); opacity: 0; pointer-events: none; }

/* the bar */
.sbx-labels { display: flex; margin: clamp(.6rem, 1.4vw, 1rem) 0 .45rem; font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap; }
.sbx-l-you { flex: 0 0 var(--you); color: var(--mint-deep); }
.sbx-l-boost { flex: 1 1 auto; text-align: right; color: var(--honey); }
.sbx-bar {
  position: relative; height: clamp(40px, 4vw, 50px); border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,.08); box-shadow: inset 0 2px 6px rgba(0,0,0,.35);
}
.sbx-seg { position: absolute; top: 0; bottom: 0; overflow: hidden; }
.sbx-seg-you { left: 0; width: var(--you); }
.sbx-seg-boost { left: var(--you); right: 0; }
.sbx-fill { position: absolute; inset: 0; display: block; transform-origin: left center; }
.sbx-seg-you .sbx-fill { background: linear-gradient(90deg, var(--tick) 0%, var(--mint-deep) 100%); border-radius: 999px 0 0 999px; }
.sbx-seg-boost .sbx-fill {
  border-radius: 0 999px 999px 0;
  background: repeating-linear-gradient(-45deg, #F4B942 0 12px, #F7C764 12px 24px);
  background-size: 34px 34px;
}
html.js:not(.reduced) .sbx-seg-boost .sbx-fill { animation: sbx-stripes 1.4s linear infinite; }
@keyframes sbx-stripes { to { background-position: 34px 0; } }
.sbx-mark { position: absolute; top: 6px; bottom: 6px; left: calc(var(--you) - 1px); width: 2px; background: var(--pine); opacity: .55; border-radius: 2px; }

.sbx-scale { position: relative; height: 1.5rem; margin: .45rem 0 0; font-weight: 600; font-size: 1rem; color: rgba(255,255,255,.62); font-variant-numeric: tabular-nums; }
.sbx-scale li { position: absolute; top: 0; }
.sbx-scale li:first-child { left: 0; }
.sbx-scale .sbx-s-100 { left: calc(var(--you) - 2em); width: 4em; text-align: center; }
.sbx-scale li:last-child { right: 0; }

/* ticks in a row under the meter */
.sbx-ticks { margin: clamp(1.2rem, 2.2vw, 1.7rem) 0 0; }
@media (min-width: 700px) { .sbx-ticks { display: flex; flex-wrap: wrap; gap: .7rem 1.8rem; } .sbx-ticks li { display: flex; align-items: center; gap: .55rem; font-weight: 600; } }

/* the photo */
.sbx-media { display: grid; justify-items: center; }
.sbx-frame { width: fit-content; max-width: 100%; }
.sbx-frame > img {
  width: auto; max-width: 100%; height: min(var(--media-cap), 560px); aspect-ratio: 1 / 1;
  object-fit: cover; object-position: 72% 50%;
}
@media (max-width: 1023px) {
  .sbx-frame > img { height: auto; width: min(100%, 560px); }
}
@media (max-width: 480px) {
  .sbx-top { flex-wrap: wrap-reverse; }
  .sbx-seal { --seal: 96px; margin: -48px -6px 0 auto; }
  .sbx-top .sbx-count { width: 100%; }
}
