:root {
  /* --partner-primary / --partner-accent / --partner-accent-hover are
     server-injected per-partner via a <style> block in templates/partner/_base.html.
     The defaults below keep this stylesheet usable in isolation (e.g.
     direct file open, kiro-cached static review) and provide Lowe's
     fallback for the "lowes" partner.
     The legacy --lowes-* names are kept as aliases so older selectors
     still resolve while we migrate them off; remove once no rule references
     --lowes-* directly. */
  --partner-primary: #004990;
  --partner-accent: #E11B22;
  --partner-accent-hover: #C91820;
  --partner-hero-image: url("../img/hero-real.png");
  --lowes-navy: var(--partner-primary);
  --lowes-red: var(--partner-accent);
  --lowes-red-hover: var(--partner-accent-hover);
  --surface-cream: #F7F2E9;
  --surface-white: #FFFFFF;
  --text-primary: #0A1E3A;
  --text-secondary: #5A6A80;
  --text-on-dark: #FFFFFF;
  --divider: rgba(10, 30, 58, 0.12);
  --badge-available-bg: #F3F4F6;
  --badge-available-text: #0A1E3A;
  --badge-fewleft-bg: #FFF4D6;
  --badge-fewleft-text: #8A5A00;
  --badge-soldout-bg: var(--lowes-red);
  --badge-soldout-text: #FFFFFF;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --container-max: 1200px;
  --container-pad-desktop: 72px;
  --container-pad-tablet: 32px;
  --container-pad-mobile: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  color: var(--text-primary); background: var(--surface-white);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--lowes-navy); outline-offset: 2px; }

.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--lowes-navy); color: #fff;
  text-decoration: none; font-weight: 600;
  z-index: 1000;
}
.skip-link:focus {
  width: auto; height: auto;
  padding: 0.75rem 1rem; margin: 0;
  overflow: visible; clip-path: none;
  top: 0; left: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 660px;
  background-image:
    /* Strong left-side dark shelf so headline + subhead + CTA all sit on solid tone */
    linear-gradient(to right, rgba(5,10,24,0.88) 0%, rgba(5,10,24,0.78) 28%, rgba(5,10,24,0.40) 52%, rgba(5,10,24,0.0) 78%),
    /* Vignette to bottom for CTA readability */
    linear-gradient(to bottom, rgba(5,10,24,0.35) 0%, rgba(5,10,24,0.0) 22%, rgba(5,10,24,0.0) 62%, rgba(5,10,24,0.45) 100%),
    var(--partner-hero-image);
  background-size: cover;
  background-position: 72% 55%;
  background-repeat: no-repeat;
  color: var(--text-on-dark);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--container-max); margin: 0 auto;
  padding: 20px var(--container-pad-desktop) 0;
  min-height: 560px;
  display: flex; flex-direction: column;
}
.hero-spacer { flex: 1 1 auto; min-height: 24px; }
.hero-top-spacer { flex: 0 0 auto; }
.hero-nav { display: flex; align-items: center; justify-content: space-between; }
.lowes-lockup,
.partner-lockup {
  display: inline-flex; align-items: center;
  text-decoration: none; line-height: 0;
  /* Small white halo behind the dark navy logo so it reads against any bg area */
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.45));
}
.lowes-lockup svg,
.partner-lockup svg,
.partner-lockup img { width: 140px; height: 140px; display: block; }
.hero-content { max-width: 620px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #F5B14A;
  margin-bottom: 18px;
  padding: 6px 14px;
  background: rgba(5,10,24,0.55);
  border: 1px solid rgba(245,177,74,0.35);
  border-radius: 999px;
}
.hero-eyebrow::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: #F5B14A;
}
.hero-headline {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 5.8vw, 4.5rem);
  line-height: 1.02; letter-spacing: -0.028em;
  margin-bottom: 16px; text-wrap: balance;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 96;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.hero-subhead {
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.45; max-width: 440px; margin-bottom: 28px;
  opacity: 0.98; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
  text-wrap: balance;
}
.cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--lowes-red); color: var(--text-on-dark);
  padding: 16px 28px; font-weight: 700; font-size: 17px;
  letter-spacing: 0.005em;
  border-radius: var(--radius-sm); min-height: 50px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(225,27,34,0.32);
  transition: background-color 100ms ease-out, transform 100ms ease-out, box-shadow 140ms ease-out;
}
.cta-primary:hover {
  background: var(--lowes-red-hover);
  box-shadow: 0 14px 36px rgba(225,27,34,0.40);
}
.cta-primary:active { transform: translateY(1px); }
.cta-primary .arrow { transition: transform 140ms ease-out; }
.cta-primary:hover .arrow { transform: translateX(4px); }

/* ============================================================
   MARQUEE (scrolling artist names in hero bottom band)
   ============================================================ */
.hero-marquee {
  margin-top: 28px;
  background: linear-gradient(to right, rgba(5,10,24,0.92) 0%, rgba(5,10,24,0.75) 25%, rgba(5,10,24,0.75) 75%, rgba(5,10,24,0.92) 100%);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 14px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.hero-marquee-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #F5B14A;
  max-width: var(--container-max); margin: 0 auto 6px;
  padding: 0 var(--container-pad-desktop);
  display: flex; align-items: center; gap: 8px;
}
.hero-marquee-eyebrow::before, .hero-marquee-eyebrow::after {
  content: ''; flex: 1 1 auto;
  height: 1px; background: rgba(245,177,74,0.22);
}
.hero-marquee-track {
  display: flex; gap: 56px;
  width: max-content;
  animation: marquee-scroll 180s linear infinite;
  will-change: transform;
}
.hero-marquee:hover .hero-marquee-track { animation-play-state: paused; }
.hero-marquee-item {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 20px; color: rgba(255,255,255,0.88);
  letter-spacing: -0.01em; white-space: nowrap;
}
.hero-marquee-item .dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--lowes-red);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-marquee-track { animation: none; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-strip {
  background: var(--surface-cream);
  border-bottom: 1px solid var(--divider);
}
.how-inner {
  max-width: var(--container-max); margin: 0 auto;
  padding: 20px var(--container-pad-desktop);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 24px;
}
.how-step {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--text-primary); font-size: 17px; font-weight: 600;
  white-space: nowrap;
}
.how-step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: var(--text-primary); color: var(--surface-cream);
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px; line-height: 1;
  border-radius: 50%;
}
.how-arrow {
  color: var(--text-secondary); font-size: 22px;
  font-weight: 300; line-height: 1; user-select: none; opacity: 0.55;
}

/* ============================================================
   LAWN CHAIRS BAND (bonus perk disclosure)
   ============================================================ */
.perk-band {
  background: linear-gradient(to right, #FFF6E0 0%, #FBEED0 100%);
  border-bottom: 1px solid var(--divider);
}
.perk-inner {
  max-width: var(--container-max); margin: 0 auto;
  padding: 14px var(--container-pad-desktop);
}
.perk-summary {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-primary);
  font-size: 14px; line-height: 1.4;
}
.perk-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(138,90,0,0.25);
  color: #8A5A00;
}
.perk-copy { flex: 1; min-width: 0; }
.perk-copy strong { font-weight: 700; color: var(--text-primary); }
.perk-copy .perk-subtle { color: #8A5A00; font-weight: 600; }

/* ============================================================
   GRID SECTION
   ============================================================ */
.grid-section { background: var(--surface-white); padding: 32px 0 96px; }
.grid-container {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--container-pad-desktop);
}

/* Compact top toolbar: title + search on same line */
.grid-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.grid-title-block {
  display: flex; flex-direction: column; gap: 2px;
}
.grid-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1; letter-spacing: -0.02em;
  font-optical-sizing: auto;
}
.grid-title-sub {
  font-family: var(--font-body); font-weight: 400;
  font-size: 14px; color: var(--text-secondary);
}

/* Artist search */
.search-input-wrap {
  position: relative; width: 100%;
}
.search-input {
  width: 100%; padding: 10px 40px 10px 40px;
  font-size: 14px; font-weight: 500;
  color: var(--text-primary);
  background: var(--surface-white);
  border: 1.5px solid var(--divider); border-radius: var(--radius-sm);
  min-height: 42px;
  transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
}
.search-input:focus {
  border-color: var(--lowes-navy);
  box-shadow: 0 0 0 3px rgba(0,73,144,0.12);
  outline: none;
}
.search-icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary); pointer-events: none;
  display: inline-flex;
}
.search-clear {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--divider); color: var(--text-primary);
  display: none; align-items: center; justify-content: center;
  cursor: pointer;
}
.search-clear.visible { display: inline-flex; }
.search-clear:hover { background: var(--text-secondary); color: #fff; }

.suggest-list {
  position: absolute; top: calc(100% + 4px); left: 0;
  width: 100%;
  background: var(--surface-white);
  border: 1px solid var(--divider); border-radius: var(--radius-sm);
  box-shadow: 0 8px 28px rgba(10,15,30,0.14);
  overflow: hidden;
  display: none;
  z-index: 20;
  max-height: 320px; overflow-y: auto;
}
.suggest-list.open { display: block; }
.suggest-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; cursor: pointer;
  font-size: 14px; color: var(--text-primary);
  border-bottom: 1px solid var(--divider);
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover, .suggest-item[aria-selected="true"] {
  background: var(--surface-cream);
}
.suggest-item .artist-name {
  font-weight: 600; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.suggest-item .artist-count {
  font-size: 12px; color: var(--text-secondary); font-weight: 500;
}
.suggest-item mark {
  background: rgba(225,27,34,0.16); color: inherit; padding: 0;
}

/* Tight, single-line filter bar */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 10px 14px; margin-bottom: 14px;
  background: var(--surface-cream);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
}
.filter-select {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--text-primary); background: var(--surface-white);
  border: 1px solid var(--divider); border-radius: var(--radius-sm);
  padding: 7px 10px; cursor: pointer; min-height: 36px;
  min-width: 130px;
}
.filter-select:hover { border-color: var(--text-secondary); }
.filter-divider {
  width: 1px; height: 22px; background: var(--divider); margin: 0 4px;
}
.date-pills {
  display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.date-pill {
  font-size: 12px; font-weight: 600;
  padding: 7px 14px; min-height: 36px;
  border-radius: 999px;
  background: var(--surface-white); color: var(--text-primary);
  border: 1px solid var(--divider); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  transition: background 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out;
}
.date-pill:hover { border-color: var(--text-secondary); }
.date-pill[aria-pressed="true"] {
  background: var(--text-primary); color: var(--surface-white);
  border-color: var(--text-primary);
}

/* Compact icon-only Near you button (expands when active) */
.near-you-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  width: 36px; height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  background: var(--surface-white); color: var(--text-primary);
  border: 1px solid var(--divider);
  cursor: pointer;
  transition: background 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out, width 180ms ease-out, padding 180ms ease-out;
  overflow: hidden;
}
.near-you-btn:hover { border-color: var(--text-secondary); }
.near-you-btn .nu-icon { display: inline-flex; flex: 0 0 auto; }
.near-you-btn .nu-label {
  /* Hidden by default; shown when active (see data-state="active" rule) */
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  font-size: 12px; font-weight: 600;
}
.near-you-btn[data-state="active"] {
  width: auto;
  padding: 0 14px 0 10px;
  gap: 8px;
  background: var(--lowes-navy); color: #fff; border-color: var(--lowes-navy);
}
.near-you-btn[data-state="active"] .nu-label {
  position: static !important;
  width: auto !important; height: auto !important;
  clip: auto !important; clip-path: none !important;
  margin: 0 !important; padding: 0 !important;
  overflow: visible !important; white-space: nowrap;
}
.near-you-btn[data-state="detecting"] { opacity: 0.7; cursor: wait; }

/* Results row is now inline with the filter bar */
.filter-bar-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--text-secondary);
}
.results-count strong {
  color: var(--text-primary); font-weight: 700;
}
.clear-filters {
  color: var(--lowes-red); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
  display: none;
}
.clear-filters.visible { display: inline-block; }
.clear-filters:hover { text-decoration: none; }

/* Grid */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.event-card {
  display: flex; flex-direction: column;
  background: var(--surface-white);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  text-decoration: none; color: inherit;
  overflow: hidden;
  transition: transform 140ms ease-out, box-shadow 140ms ease-out, border-color 140ms ease-out;
  min-height: 100%; cursor: pointer;
}
.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--text-secondary);
}
.event-card-image {
  aspect-ratio: 16 / 9;
  background-color: #e5e7eb;
  background-size: cover; background-position: center;
  position: relative;
}
.event-card[data-availability="sold_out"] .event-card-image { opacity: 0.65; }
.event-card[data-availability="pulled"] { display: none; }
.event-card-body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 5px;
  flex: 1;
}
.event-card-date {
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary); letter-spacing: 0.04em;
  text-transform: uppercase;
}
.event-card-artist {
  font-family: var(--font-body); font-weight: 700;
  font-size: 17px; line-height: 1.25; color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.4em;
}
.event-card-venue {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.event-card-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-secondary);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  margin-top: 2px;
}
.event-card-footer {
  margin-top: auto; padding-top: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: var(--radius-sm); line-height: 1; min-height: 22px;
}
.badge-available { background: var(--badge-available-bg); color: var(--badge-available-text); }
.badge-fewleft { background: var(--badge-fewleft-bg); color: var(--badge-fewleft-text); }
.badge-soldout { background: var(--badge-soldout-bg); color: var(--badge-soldout-text); }
.badge-soldout .icon { display: inline-flex; width: 10px; height: 10px; }
.event-card-price {
  font-size: 12px; color: var(--text-secondary); font-weight: 500;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Empty state */
.event-grid-empty {
  grid-column: 1 / -1;
  padding: 56px 24px; text-align: center;
  color: var(--text-secondary);
  border: 1px dashed var(--divider);
  border-radius: var(--radius-sm);
}
.event-grid-empty strong {
  display: block; color: var(--text-primary); font-size: 18px; margin-bottom: 6px;
}

/* Load more */
.load-more-wrap { text-align: center; margin-top: 40px; }
.load-more {
  font-family: var(--font-body); font-weight: 600;
  font-size: 15px; padding: 12px 24px;
  background: var(--surface-white); color: var(--text-primary);
  border: 1.5px solid var(--text-primary);
  border-radius: var(--radius-sm); min-height: 44px; cursor: pointer;
  transition: background-color 100ms ease-out, color 100ms ease-out;
}
.load-more:hover { background: var(--text-primary); color: var(--surface-white); }

/* Footer */
footer {
  border-top: 1px solid var(--divider);
  background: var(--surface-cream);
  padding: 28px 0;
}
.footer-inner {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--container-pad-desktop);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; font-size: 14px; color: var(--text-secondary);
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  text-decoration: none; color: var(--text-secondary);
  transition: color 140ms ease-out;
}
.footer-links a:hover { color: var(--text-primary); text-decoration: underline; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 15, 30, 0.65);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 140ms ease-out;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface-white);
  border-radius: var(--radius-md);
  max-width: 560px; width: 100%;
  max-height: calc(100vh - 40px); overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  transform: translateY(20px);
  transition: transform 180ms ease-out;
  position: relative;
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-image {
  aspect-ratio: 16 / 9;
  background-color: #e5e7eb;
  background-size: cover; background-position: center;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.modal-body { padding: 24px 28px 28px; }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  transition: background 140ms ease-out;
  z-index: 1;
}
.modal-close:hover { background: rgba(255,255,255,1); }
.modal-eyebrow {
  font-size: 12px; font-weight: 700; color: var(--text-secondary);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px;
}
.modal-artist {
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.modal-venue { font-size: 15px; color: var(--text-secondary); margin-bottom: 24px; }
.modal-offer-block {
  background: var(--surface-cream);
  border-radius: var(--radius-sm);
  padding: 16px 18px; margin-bottom: 22px;
}
.modal-offer-block h3 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 15px; margin-bottom: 4px;
}
.modal-offer-block p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.modal-reassure {
  font-size: 13px; color: var(--text-secondary);
  text-align: center; margin-top: 10px; line-height: 1.5;
}
.modal-cta-primary {
  display: block; width: 100%;
  background: var(--lowes-red); color: var(--text-on-dark);
  padding: 16px 24px; font-weight: 600; font-size: 17px;
  border-radius: var(--radius-sm); min-height: 48px;
  text-decoration: none; text-align: center;
  transition: background-color 100ms ease-out, transform 100ms ease-out;
}
.modal-cta-primary:hover { background: var(--lowes-red-hover); }
.modal-cta-secondary {
  display: block; width: 100%;
  background: transparent; color: var(--text-primary);
  border: 1.5px solid var(--text-primary);
  padding: 14px 24px; font-weight: 600; font-size: 16px;
  border-radius: var(--radius-sm); min-height: 46px;
  text-decoration: none; text-align: center;
  margin-top: 10px;
  transition: background-color 100ms ease-out, color 100ms ease-out;
}
.modal-cta-secondary:hover { background: var(--text-primary); color: var(--surface-white); }

.claim-step { display: none; }
.claim-step.active { display: block; }
.claim-step-loading { text-align: center; padding: 36px 12px; }
.claim-spinner {
  display: inline-block; width: 44px; height: 44px;
  border: 3px solid var(--divider); border-top-color: var(--lowes-red);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
  margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.claim-step-loading p { font-size: 15px; color: var(--text-secondary); }
.code-reveal {
  background: linear-gradient(135deg, #fff 0%, #fff6e0 100%);
  border: 2px dashed var(--lowes-red);
  border-radius: var(--radius-sm); padding: 24px;
  text-align: center; margin-bottom: 18px;
}
.code-reveal .code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 28px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--lowes-navy); margin-bottom: 8px; user-select: all;
}
.code-reveal small {
  display: block; font-size: 12px; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.code-copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--text-secondary);
  color: var(--text-primary); padding: 6px 12px; font-size: 13px;
  border-radius: var(--radius-sm); margin-top: 10px;
  transition: background-color 100ms ease-out;
}
.code-copy-btn:hover { background: var(--divider); }
.code-copy-btn.copied {
  background: #DCF7E4; border-color: #2E9149; color: #155E2F;
}
.sold-out-block {
  background: #fbe9ea; border-left: 3px solid var(--lowes-red);
  padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 18px;
}
.sold-out-block h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.sold-out-block p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

.demo-banner {
  background: #0A1E3A; color: #fff;
  font-size: 11px; text-align: center;
  padding: 7px 16px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.demo-banner strong { color: #F5B14A; font-weight: 700; letter-spacing: 0.14em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Global overflow guard — prevents any stray wide child from creating
   horizontal scroll on small viewports. */
html, body { overflow-x: hidden; max-width: 100%; }

@media (max-width: 1024px) {
  .hero-inner, .how-inner, .perk-inner, .grid-container, .footer-inner {
    padding-left: var(--container-pad-tablet);
    padding-right: var(--container-pad-tablet);
  }
  .grid-toolbar {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

/* Tablet + smaller */
@media (max-width: 768px) {
  :root {
    --container-pad-desktop: var(--container-pad-tablet);
  }
  .hero { min-height: 540px; }
  .hero-inner { min-height: 480px; padding: 16px var(--container-pad-tablet) 0; }
  .hero-content { max-width: 100%; }
  .hero-eyebrow { font-size: 11px; padding: 5px 12px; }
  .lowes-lockup svg,
  .partner-lockup svg,
  .partner-lockup img { width: 92px; height: 92px; }

  .hero-marquee { margin-top: 20px; }
  .hero-marquee-eyebrow {
    padding: 0 var(--container-pad-tablet);
    font-size: 10px; letter-spacing: 0.14em;
  }
  .hero-marquee-item { font-size: 17px; }
  .hero-marquee-track { gap: 40px; }

  .how-inner {
    justify-content: flex-start;
    padding: 16px var(--container-pad-tablet);
    gap: 10px 14px;
    flex-wrap: wrap;
  }
  .how-step { font-size: 15px; gap: 10px; }
  .how-step .step-num { width: 28px; height: 28px; font-size: 14px; }

  .perk-inner { padding: 12px var(--container-pad-tablet); }
  .perk-summary { gap: 12px; font-size: 13.5px; }
  .perk-icon { width: 32px; height: 32px; }

  .grid-section { padding: 28px 0 72px; }

  /* Toolbar stacks: title/subtitle on top, search underneath */
  .grid-toolbar {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 14px;
  }
  .search-input-wrap { max-width: 100%; }

  /* Filter bar: horizontally scrollable single row so user isn't stuck
     with a wrapped 4-row filter stack. Native iOS momentum scroll. */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 10px 14px;
    scrollbar-width: none; /* Firefox */
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar > * { flex-shrink: 0; }
  .filter-bar-right {
    margin-left: 0;
    padding-left: 4px;
  }
  .filter-select { min-width: 130px; }

  .event-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }

  .modal { margin: 10px; max-height: calc(100vh - 20px); }
  .modal-body { padding: 20px 22px 24px; }
  .modal-artist { font-size: 24px; }
}

/* Phone */
@media (max-width: 480px) {
  .hero-inner, .how-inner, .perk-inner, .grid-container, .footer-inner {
    padding-left: var(--container-pad-mobile);
    padding-right: var(--container-pad-mobile);
  }
  .hero { min-height: 520px; }
  .hero-inner { min-height: 460px; padding-bottom: 48px; }
  .hero-headline { font-size: clamp(2.25rem, 10.5vw, 3rem); }
  .hero-subhead { font-size: 1rem; max-width: 100%; }
  .cta-primary { width: 100%; justify-content: center; padding: 16px 24px; }
  .lowes-lockup svg,
  .partner-lockup svg,
  .partner-lockup img { width: 80px; height: 80px; }

  .hero-marquee-eyebrow { padding: 0 var(--container-pad-mobile); }
  .hero-marquee-eyebrow::before, .hero-marquee-eyebrow::after { display: none; }
  .hero-marquee-eyebrow { justify-content: flex-start; }
  .hero-marquee-item { font-size: 15px; }
  .hero-marquee-track { gap: 28px; animation-duration: 120s; }

  .how-inner { gap: 10px; }
  .how-arrow { display: none; }
  .how-step { font-size: 14px; }

  .demo-banner { font-size: 10px; padding: 6px 12px; letter-spacing: 0.1em; }

  .perk-summary { gap: 10px; }

  .grid-title { font-size: 1.625rem !important; }
  .grid-title-sub { font-size: 13px; }

  .event-grid { grid-template-columns: 1fr; gap: 14px; }
  .event-card-body { padding: 14px 16px 16px; }
  .event-card-artist { font-size: 16px; min-height: auto; -webkit-line-clamp: 2; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .filter-select { min-width: 110px; font-size: 12.5px; padding: 7px 8px; }
  .date-pill { padding: 6px 11px; font-size: 11.5px; }

  /* Modal full-screen-ish feel on narrow phones */
  .modal { margin: 0; border-radius: 0; max-height: 100vh; min-height: 100vh; }
  .modal-image { border-radius: 0; }
  .modal-backdrop { padding: 0; }
  .modal-body { padding: 18px 20px 24px; }
  .modal-artist { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   PORT-SPECIFIC ADDITIONS (not in demos/lowes/index.html)
   ============================================================ */

/* Hide-utility for filter UI in Pass 1 (Pass 2 wires HTMX). */
.filters-hidden { display: none !important; }

/* Code strip — landing-page yellow strip surfacing the active code,
   per the funnel-design Frame 3. Only renders when authenticated AND
   current_code() returned a row. */
.code-strip {
  background: var(--badge-fewleft-bg);
  border-bottom: 2px dashed var(--badge-fewleft-text);
}
.code-strip-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px var(--container-pad-desktop);
}
.code-strip-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--badge-fewleft-text);
  margin-bottom: 8px;
}
.code-strip-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.code-strip-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.6);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}
.code-strip-copy {
  font-size: 13px;
  font-weight: 700;
  color: var(--lowes-navy);
  background: transparent;
  border: 1.5px solid var(--lowes-navy);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  cursor: pointer;
}
.code-strip-copy:hover {
  background: var(--lowes-navy);
  color: var(--surface-white);
}
.code-strip-help {
  font-size: 14px;
  color: var(--text-primary);
}

/* Hero nav links (sign-in / my-code / FAQ) on the right of the lockup. */
.hero-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}
.hero-nav-link {
  color: var(--text-on-dark);
  text-decoration: none;
  opacity: 0.92;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.hero-nav-link:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Inline error chip rendered under the modal's offer block when the
   /account/{partner}/mint POST fails. Replaces the demo's no-error
   path; structured fields (cooldown_until, mint_count) get specific
   copy from lowes.js renderClaimError(). */
.claim-error-chip {
  margin: 12px 0 0;
  padding: 10px 14px;
  font-size: 14px;
  color: #8A5A00;
  background: var(--badge-fewleft-bg);
  border-left: 3px solid var(--badge-fewleft-text);
  border-radius: var(--radius-sm);
}
