/* Local Deals Wall (/deals/) and Submit a Deal (/deals/submit/). Site theme: navy, gold, cream. */
.deals-page .deals-hero { padding-bottom: 0.35rem; }
.deals-page .deals-wrap { max-width: var(--content, 72rem); }
.deals-page .deals-lead {
  margin: 0.4rem 0 1.1rem;
  color: var(--muted, #4E5359);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 44rem;
}
.deals-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.85rem;
  margin: 0 0 1.35rem;
  align-items: center;
}
.deals-actions .btn { min-height: 48px; }
.deals-actions__note {
  margin: 0;
  color: var(--muted, #4E5359);
  font-size: 0.92rem;
}
.deals-filters {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--paper, #FFFCF7);
  border: 1px solid var(--card-border, #E2DDD4);
  border-radius: var(--radius, 14px);
}
.deals-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.deals-filter__label {
  flex: 0 0 6.2rem;
  margin: 0;
  font-family: var(--font-ui, system-ui, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy, #0B3D5C);
}
.deals-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.3rem 0.85rem;
  border: 2px solid var(--card-border, #E2DDD4);
  border-radius: 999px;
  background: #fff;
  color: var(--navy, #0B3D5C);
  font-family: var(--font-ui, system-ui, sans-serif);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
}
.deals-chip:hover { border-color: var(--navy, #0B3D5C); }
.deals-chip.is-on,
.deals-chip[aria-pressed="true"] {
  background: var(--navy, #0B3D5C);
  border-color: var(--navy, #0B3D5C);
  color: #FFFCF7;
}
.deals-chip:focus-visible { box-shadow: var(--focus); }

.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.deals-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  padding: 1rem 1rem 1.1rem;
  background: var(--paper, #FFFCF7);
  border: 1px solid var(--card-border, #E2DDD4);
  border-top: 5px solid var(--navy, #0B3D5C);
  border-radius: var(--radius, 14px);
  box-shadow: 0 6px 16px rgba(11, 61, 92, 0.06);
}
.deals-card--featured {
  border-color: var(--gold, #C9A227);
  border-top-width: 6px;
  border-top-color: var(--gold, #C9A227);
  box-shadow: 0 8px 22px rgba(201, 162, 39, 0.22);
  background:
    linear-gradient(180deg, var(--gold-soft, #F3E7C7) 0 8px, var(--paper, #FFFCF7) 8px);
}
.deals-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0 0 0.7rem;
}
.deals-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 12px;
  background: var(--cream, #F7F3EB);
  border: 1px solid var(--card-border, #E2DDD4);
  overflow: hidden;
}
.deals-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.deals-logo__mono {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy, #0B3D5C);
  line-height: 1;
}
.deals-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: flex-end; }
.deals-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-ui, system-ui, sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.deals-badge--new {
  background: var(--navy, #0B3D5C);
  color: var(--gold-on-navy, #E0C45A);
}
.deals-badge--sponsor {
  background: var(--gold, #C9A227);
  color: var(--navy-deep, #07283C);
}
.deals-card__offer {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--navy, #0B3D5C);
}
.deals-card__biz {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--ink, #1C1C1C);
  font-size: 0.98rem;
}
.deals-card__meta {
  margin: 0 0 0.45rem;
  color: var(--muted, #4E5359);
  font-size: 0.9rem;
}
.deals-card__expires {
  margin: 0 0 0.5rem;
  color: var(--navy, #0B3D5C);
  font-size: 0.88rem;
  font-weight: 700;
}
.deals-card__fine {
  margin: 0 0 0.85rem;
  color: var(--muted, #4E5359);
  font-size: 0.88rem;
  line-height: 1.4;
  flex: 1 1 auto;
}
.deals-card__cta {
  margin-top: auto;
  width: 100%;
  min-height: 48px;
}

.deals-empty {
  margin: 0 0 1.5rem;
  padding: 1.6rem 1.3rem 1.7rem;
  text-align: center;
  background: var(--paper, #FFFCF7);
  border: 1px dashed var(--navy, #0B3D5C);
  border-radius: var(--radius, 14px);
}
.deals-empty h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.45rem;
  color: var(--navy, #0B3D5C);
}
.deals-empty p { margin: 0 0 1rem; color: var(--muted, #4E5359); }
.deals-empty[hidden], .deals-grid[hidden], .deals-page [hidden] { display: none !important; }

/* Full-screen, phone-friendly coupon */
html.deals-coupon-open,
html.deals-coupon-open body { overflow: hidden; }
html.deals-coupon-open .site-header { visibility: hidden; pointer-events: none; }
.deals-coupon {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top)) 0.9rem max(0.75rem, env(safe-area-inset-bottom));
  background: rgba(7, 40, 60, 0.72);
}
.deals-coupon__sheet {
  width: min(26rem, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 1.35rem 1.2rem 1.4rem;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 12px, rgba(201,162,39,0.16) 12px, rgba(201,162,39,0.16) 13px),
    var(--paper, #FFFCF7);
  border: 3px solid var(--gold, #C9A227);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(7, 40, 60, 0.35);
  text-align: center;
  color: var(--ink, #1C1C1C);
}
.deals-coupon__kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui, system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text, #7A5C0E);
}
.deals-coupon__logo {
  width: 88px;
  height: 88px;
  margin: 0.3rem auto 0.7rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--card-border, #E2DDD4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.deals-coupon__logo img { width: 100%; height: 100%; object-fit: contain; }
.deals-coupon__biz {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy, #0B3D5C);
}
.deals-coupon__offer {
  margin: 0 0 0.5rem;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--navy, #0B3D5C);
}
.deals-coupon__expires {
  margin: 0 0 0.85rem;
  font-weight: 700;
  color: var(--navy, #0B3D5C);
}
.deals-coupon__code {
  margin: 0 auto 0.85rem;
  padding: 0.7rem 0.8rem;
  max-width: 16rem;
  border: 2px dashed var(--navy, #0B3D5C);
  border-radius: 10px;
  background: var(--cream, #F7F3EB);
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, monospace;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--navy-deep, #07283C);
}
.deals-coupon__hint,
.deals-coupon__fine {
  margin: 0 0 0.7rem;
  color: var(--muted, #4E5359);
  font-size: 0.92rem;
  line-height: 1.4;
}
.deals-coupon__close {
  min-height: 48px;
  min-width: 8rem;
}

/* Submit form reuses sponsor-form field styling, with a deals wrap. */
.deals-submit .deals-wrap { max-width: 52rem; }
.deals-submit .spn-form { margin-bottom: 1.5rem; }

.deals-preview-banner {
  margin: 0 0 1rem;
  padding: 0.55rem 0.8rem;
  background: var(--gold, #C9A227);
  color: var(--navy-deep, #07283C);
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .deals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .deals-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .deals-filter__label { flex-basis: 100%; }
  .deals-coupon__offer { font-size: 1.45rem; }
  .deals-coupon__code { font-size: 1.3rem; letter-spacing: 0.12em; }
}
@media (prefers-reduced-motion: reduce) {
  .deals-chip, .deals-card, .deals-coupon { transition: none; }
}
