/* AtHomeGrower sponsor / ad-space checkout corrected buy-button map */

.ahg-ad-space {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.25rem auto;
  border: 1px solid rgba(47, 111, 78, 0.16);
  border-radius: 1.35rem;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(240,253,244,0.92)),
    #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  position: relative;
}

.ahg-ad-space__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(260px, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.ahg-ad-space__image {
  display: grid;
  place-items: center;
  min-height: 138px;
  border-radius: 1rem;
  background: linear-gradient(135deg, #17351f, #2f6f4e);
  color: #ffffff;
  border: 1px solid rgba(47, 111, 78, 0.12);
  text-align: center;
  padding: 1rem;
}

.ahg-ad-space__number {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 0.45rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.34);
  font-size: 1.55rem;
  font-weight: 950;
}

.ahg-ad-space__image strong {
  display: block;
  font-size: 1.18rem;
  font-weight: 950;
}

.ahg-ad-space__image span {
  display: block;
  margin-top: 0.25rem;
  color: #dcebd3;
  font-size: 0.85rem;
  font-weight: 750;
}

.ahg-ad-space__content {
  display: grid;
  gap: 0.35rem;
}

.ahg-ad-space__eyebrow {
  margin: 0;
  color: #2f6f4e;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ahg-ad-space__title {
  margin: 0;
  color: #17351f;
  font-size: clamp(1.35rem, 2.5vw, 2.25rem);
  line-height: 1.03;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.ahg-ad-space__copy {
  margin: 0;
  color: #52675a;
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 64ch;
}

.ahg-ad-space__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.ahg-ad-space__metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(47, 111, 78, 0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: #24583d;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 0.34rem 0.6rem;
}

.ahg-ad-space__metric--price {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.ahg-ad-space__cta {
  width: fit-content;
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #17351f;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 0.66rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(23, 53, 31, 0.18);
}

.ahg-ad-space__cta:hover {
  background: #2f6f4e;
}

.ahg-ad-space--inline {
  width: 100%;
  margin: 1rem 0;
}

.ahg-ad-space--inline .ahg-ad-space__inner,
.ahg-ad-space--card .ahg-ad-space__inner {
  grid-template-columns: 1fr;
}

.ahg-ad-space--card {
  width: 100%;
  height: 100%;
  min-height: 330px;
  margin: 0;
  display: flex;
}

.ahg-ad-space--footer {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Sponsor page */

.ahg-sponsor-page {
  background: #faf8f1;
  color: #1f2937;
  min-height: 100vh;
}

.ahg-sponsor-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
}

.ahg-sponsor-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.35rem;
  align-items: center;
}

.ahg-sponsor-hero h1 {
  margin: 0;
  color: #17351f;
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
}

.ahg-sponsor-eyebrow {
  color: #2f6f4e;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ahg-sponsor-subtitle {
  color: #52675a;
  font-size: 1.05rem;
  line-height: 1.65;
}

.ahg-sponsor-panel,
.ahg-sponsor-card {
  background: #ffffff;
  border: 1px solid rgba(47, 111, 78, 0.16);
  border-radius: 1.25rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.ahg-sponsor-panel {
  padding: 1.2rem;
}

.ahg-sponsor-panel h2,
.ahg-sponsor-card h2 {
  color: #17351f;
  margin-top: 0;
}

.ahg-sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.ahg-sponsor-card {
  overflow: hidden;
}

.ahg-sponsor-card__top {
  padding: 1rem;
  background: linear-gradient(135deg, #17351f, #2f6f4e);
  color: #ffffff;
}

.ahg-sponsor-card__number {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.34);
  font-weight: 950;
  font-size: 1.35rem;
}

.ahg-sponsor-card__top h2 {
  color: #ffffff;
  margin: 0.7rem 0 0;
}

.ahg-sponsor-card__top p {
  color: #dcebd3;
  margin-bottom: 0;
  font-weight: 750;
}

.ahg-sponsor-card__body {
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
}

.ahg-sponsor-pill {
  display: inline-flex;
  width: fit-content;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-weight: 950;
}

.ahg-sponsor-trial {
  padding: 0.75rem;
  border-radius: 0.9rem;
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 900;
}

.ahg-sponsor-buy {
  min-height: 76px;
  display: grid;
  align-items: center;
  justify-items: start;
}

.ahg-sponsor-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #52675a;
  line-height: 1.55;
}

.ahg-sponsor-disclaimer {
  margin-top: 1.5rem;
  padding: 1rem;
  border-left: 4px solid #2f6f4e;
  background: #f0fdf4;
  color: #24583d;
  border-radius: 0.85rem;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .ahg-ad-space__inner,
  .ahg-sponsor-hero {
    grid-template-columns: 1fr;
  }

  .ahg-ad-space {
    width: min(100% - 1rem, 1180px);
  }
}
