/* ============================================================
   Weekly Ads — /weekly-ads (Sanity-driven, replaces Heyzine)
   ============================================================ */

.tc-wads {
  background: #faf8f0;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #2c2c2c;
  line-height: 1.6;
}

.tc-wads__wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* hero */
.tc-wads__hero {
  text-align: center;
  padding: 64px 20px 28px;
  max-width: 680px;
  margin: 0 auto;
}
.tc-wads__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2e7d32;
  background: rgba(46, 125, 50, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
}
.tc-wads__hero h1 {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: clamp(30px, 5vw, 44px);
  color: #1a1a1a;
  margin: 12px 0 10px;
}
.tc-wads__hero p {
  color: #6b6b6b;
  font-size: 15px;
  margin: 0;
}
.tc-wads__valid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 14px;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(42, 40, 30, 0.05);
}
.tc-wads__valid svg {
  color: #2e7d32;
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* region tabs — sticky so the switch stays in reach while scrolling 11 pages */
.tc-wads__tabbar {
  position: sticky;
  top: calc(var(--nav-height, 64px) + 8px);
  z-index: 5;
  display: flex;
  justify-content: center;
  margin: 26px 0 8px;
  pointer-events: none;
}
.tc-wads__tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(250, 248, 240, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(42, 40, 30, 0.08), 0 4px 16px rgba(42, 40, 30, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: auto;
}
.tc-wads__tab {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #2c2c2c;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.15s ease, color 0.15s ease;
}
.tc-wads__tab:hover {
  background: rgba(46, 125, 50, 0.1);
}
.tc-wads__tab.is-active {
  background: #2e7d32;
  color: #fff;
}
.tc-wads__tab:focus-visible,
.tc-wads__tool:focus-visible,
.tc-wads__btn:focus-visible,
.tc-wads__top:focus-visible,
.tc-wads__signup-form input:focus-visible,
.tc-wads__img:focus-visible {
  outline: 3px solid #1b5e20;
  outline-offset: 2px;
}
.tc-wads__stores {
  text-align: center;
  font-size: 12.5px;
  color: #6b6b6b;
  max-width: 620px;
  margin: 0 auto 26px;
}
.tc-wads__stores b {
  color: #1a1a1a;
}

/* toolbar */
.tc-wads__toolbar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
}
.tc-wads__tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #2e7d32;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 10px 20px;
  text-decoration: none;
  min-height: 44px;
}
.tc-wads__tool:hover {
  border-color: #2e7d32;
}

/* ad pages */
.tc-wads__pages {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-bottom: 30px;
}
.tc-wads__page {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(42, 40, 30, 0.06), 0 6px 24px rgba(42, 40, 30, 0.05);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}
.tc-wads__page:hover {
  box-shadow: 0 2px 6px rgba(42, 40, 30, 0.08), 0 12px 36px rgba(42, 40, 30, 0.1);
}
.tc-wads__img {
  display: block;
  position: relative;
}
.tc-wads__img img {
  width: 100%;
  height: auto;
  display: block;
}
.tc-wads__num {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(26, 26, 26, 0.65);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
}
.tc-wads__hotspot {
  position: absolute;
  display: block;
  border-radius: 10px;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
.tc-wads__hotspot:hover,
.tc-wads__hotspot:focus-visible {
  box-shadow: inset 0 0 0 2.5px #2e7d32, 0 0 0 2px rgba(46, 125, 50, 0.25);
  background: rgba(46, 125, 50, 0.05);
}
.tc-wads__hotspot:focus-visible {
  outline: none;
}
.tc-wads__ctabar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.tc-wads__ctabar span {
  font-size: 13.5px;
  color: #6b6b6b;
}
.tc-wads__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 999px;
  padding: 10px 20px;
  text-decoration: none;
  background: #2e7d32;
  color: #fff;
  min-height: 40px;
  white-space: nowrap;
}
.tc-wads__btn:hover {
  background: #1b5e20;
  color: #fff;
}

.tc-wads__empty {
  text-align: center;
  color: #6b6b6b;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 48px 24px;
  margin-bottom: 30px;
}
.tc-wads__empty a {
  color: #2e7d32;
  font-weight: 600;
}

/* newsletter band */
.tc-wads__signup {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 34px 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
  margin: 6px 0 22px;
  box-shadow: 0 1px 3px rgba(42, 40, 30, 0.05);
}
.tc-wads__signup h2 {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: clamp(19px, 2.4vw, 25px);
  margin: 0;
  color: #1a1a1a;
}
.tc-wads__signup-copy p {
  color: #6b6b6b;
  font-size: 13.5px;
  margin: 4px 0 0;
}
.tc-wads__signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  max-width: 520px;
  width: 100%;
}
.tc-wads__signup-form input[type='email'] {
  flex: 1 1 220px;
  font-family: inherit;
  font-size: 14px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  background: #faf8f0;
  min-height: 44px;
}
.tc-wads__signup-form input[type='email']:focus {
  border-color: #2e7d32;
  outline: none;
}
.tc-wads__signup-form button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.tc-wads__signup-consent {
  flex-basis: 100%;
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #2c2c2c;
  background: #faf8f0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
}
.tc-wads__signup-consent input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #2e7d32;
  cursor: pointer;
  flex-shrink: 0;
}
.tc-wads__signup-consent label {
  cursor: pointer;
}
.tc-wads__signup-consent a {
  color: #2e7d32;
  font-weight: 600;
  text-decoration: underline;
}
.tc-wads__signup-error {
  flex-basis: 100%;
  font-size: 13px;
  color: #b3261e;
  margin: 0;
}
.tc-wads__signup-done {
  font-weight: 600;
  color: #2e7d32;
  font-size: 15px;
}

/* back to top */
.tc-wads__top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #2e7d32;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(42, 40, 30, 0.18);
  transition: background 0.15s ease, transform 0.15s ease;
}
.tc-wads__top:hover {
  background: #2e7d32;
  color: #fff;
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .tc-wads__top,
  .tc-wads__page,
  .tc-wads__tab,
  .tc-wads__hotspot {
    transition: none;
  }
}

/* instacart band */
.tc-wads__cta {
  background: linear-gradient(120deg, #1b5e20, #2e7d32);
  border-radius: 20px;
  color: #fff;
  padding: 36px 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 70px;
}
.tc-wads__cta h2 {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: clamp(19px, 2.4vw, 25px);
  margin: 0;
  color: #fff;
}
.tc-wads__cta p {
  opacity: 0.85;
  font-size: 13.5px;
  margin: 4px 0 0;
}
.tc-wads__btn--invert {
  background: #fff;
  color: #1b5e20;
}
.tc-wads__btn--invert:hover {
  background: #f1ede0;
  color: #1b5e20;
}

@media (max-width: 560px) {
  /* ad pages get nearly the full screen width on phones */
  .tc-wads__wrap {
    padding: 0 8px;
  }
  .tc-wads__hero {
    padding: 40px 16px 20px;
  }
  .tc-wads__pages {
    gap: 16px;
  }
  .tc-wads__page {
    border-radius: 10px;
  }
  .tc-wads__num {
    top: 8px;
    right: 8px;
  }
  .tc-wads__tab {
    padding: 10px 16px;
    font-size: 13px;
  }
  .tc-wads__stores {
    padding: 0 10px;
  }
  .tc-wads__ctabar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }
  .tc-wads__ctabar .tc-wads__btn {
    justify-content: center;
  }
  .tc-wads__signup,
  .tc-wads__cta {
    padding: 26px 20px;
  }
  .tc-wads__top {
    right: 12px;
    bottom: 12px;
  }
}
