.sb-ad {
  --sb-ink: #092f2a;
  --sb-lime: #d0f231;
  --sb-line: #39685b;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid var(--sb-line);
  border-radius: 10px;
  background: linear-gradient(105deg, #063e34, #0a332d 63%, #104b3a);
  color: #f8fbf4;
  font-family: var(--ui, Barlow, Arial, sans-serif);
}

.sb-ad[hidden] { display: none !important; }
.sb-ad * { box-sizing: border-box; }

.sb-ad::before {
  position: absolute;
  z-index: -1;
  top: -65%;
  right: 9%;
  width: 21%;
  height: 230%;
  transform: rotate(28deg);
  border-inline: 1px solid #9fe2891c;
  background: linear-gradient(90deg, #93ca9610, #93ca9602);
  content: "";
  pointer-events: none;
}

.sb-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 27px);
  padding: 15px clamp(16px, 2.6vw, 36px) 12px;
}

.sb-logo {
  display: block;
  width: clamp(56px, 6.5vw, 85px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 5px;
  object-fit: contain;
}

.sb-copy { min-width: 0; }
.sb-disclosure { display: flex; align-items: center; gap: 7px; }
.sb-disclosure span,
.sb-disclosure b {
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.1;
}

.sb-disclosure span {
  color: #d2e5d8;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.sb-disclosure b {
  border: 1px solid #98b7a4;
  border-radius: 3px;
  padding: 2px 4px;
  color: #ecf6e9;
  font-variant-numeric: tabular-nums;
}

.sb-title {
  margin: 5px 0 0;
  color: #fff;
  font: 700 clamp(1.6rem, 3vw, 2.6rem)/1.04 var(--cond, "Barlow Condensed", Arial, sans-serif);
  letter-spacing: -.015em;
}

.sb-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  padding: 8px 18px;
  background: var(--sb-lime);
  color: var(--sb-ink);
  font: 700 1rem/1.2 var(--ui, Barlow, Arial, sans-serif);
  text-align: center;
  text-decoration: none;
}

.sb-action:hover { background: #e1ff57; color: #062a22; }
.sb-action:focus-visible, .sb-close:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.sb-risk {
  margin: 0;
  padding: 6px clamp(16px, 2.6vw, 36px);
  border-top: 1px solid #d4ecce25;
  background: #051d181f;
  color: #d0e1d5;
  font: 400 .8rem/1.3 var(--ui, Barlow, Arial, sans-serif);
}

.sb-ad--wide { container: sb-wide / inline-size; }
.sb-ad--compact .sb-body {
  grid-template-columns: 51px minmax(0, 1fr);
  gap: 13px 12px;
  padding: 16px;
}
.sb-ad--compact .sb-title { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.sb-ad--compact .sb-logo { width: 51px; }
.sb-ad--compact .sb-action { grid-column: 1 / -1; min-height: 38px; }
.sb-ad--compact .sb-risk { padding-inline: 16px; }

@container sb-wide (max-width: 530px) {
  .sb-ad--wide .sb-body {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 12px 15px;
  }
  .sb-ad--wide .sb-logo { width: 52px; }
  .sb-ad--wide .sb-title { font-size: 1.48rem; }
  .sb-ad--wide .sb-action { grid-column: 1 / -1; min-height: 38px; }
  .sb-ad--wide .sb-risk { padding-inline: 15px; }
}

.sb-ad--sticky { display: none; }

@media (max-width: 700px) {
  .sb-ad--sticky {
    position: fixed;
    z-index: 30;
    bottom: calc(7px + env(safe-area-inset-bottom, 0px));
    inset-inline: max(8px, env(safe-area-inset-left, 0px)) max(8px, env(safe-area-inset-right, 0px));
    display: block;
    max-width: 500px;
    margin-inline: auto;
    border-radius: 8px;
    box-shadow: 0 4px 18px #0008;
  }
  .sb-ad--sticky .sb-body {
    grid-template-columns: 43px minmax(0, 1fr) 38px;
    gap: 8px;
    padding: 6px 5px 4px 10px;
  }
  .sb-ad--sticky .sb-logo { width: 43px; }
  .sb-ad--sticky .sb-disclosure { gap: 5px; }
  .sb-ad--sticky .sb-disclosure span { letter-spacing: .025em; }
  .sb-ad--sticky .sb-disclosure b { padding: 1px 3px; }
  .sb-ad--sticky .sb-title { margin-top: 2px; font-size: 1.25rem; }
  .sb-ad--sticky .sb-action {
    min-height: 24px;
    margin-top: 0;
    padding: 1px 0;
    border-radius: 0;
    background: transparent;
    color: var(--sb-lime);
    font-size: .94rem;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .sb-ad--sticky .sb-risk { padding: 3px 10px; font-size: .75rem; }
  .sb-close {
    display: grid;
    place-items: center;
    align-self: start;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #ebf4ed;
    cursor: pointer;
  }
  .sb-close:hover { background: #e2f6d81a; }
}
.mc-main > .sb-ad--wide {margin:0 0 1rem}
.sc-layout > .sb-ad--wide {margin:0 0 1.25rem}
.sc-daily > .sb-ad--wide {margin:1.25rem 0}
body.sponsor-bar-visible {padding-bottom:calc(var(--sponsor-bar-space) + 14px + env(safe-area-inset-bottom, 0px))}

@media print{[data-sponsor-placement],[data-sponsor-sticky]{display:none!important}}
