/* Townmall — static site styles (cream / ink / red) */
:root {
  --cream: #f7f7f4;
  --cream-deep: #eaeae6;
  --ink: #1b1b1a;
  --ink-soft: #191918;
  --red: #c62724;
  --red-dark: #aa1e1c;
  --muted: #666;
  --quiet: #999;
  --line: #deded9;
  --line-strong: #bdbdb8;
  --border: #c9c9c4;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }

.mall { overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
.mall > main { flex: 1; }

/* Topbar */
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -1px;
}
.brand small {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 8px;
  letter-spacing: 2.3px;
  margin-top: 2px;
  font-weight: 600;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 2px solid var(--ink);
  font-size: 29px;
  letter-spacing: -4px;
  padding-right: 5px;
  flex-shrink: 0;
}
.brand-mark span,
.footer-brand span,
.period { color: var(--red); }

.topbar nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.topbar nav a,
.text-button {
  font-size: 12px;
  font-weight: 600;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}
.text-button, .under-button {
  border: 0;
  background: none;
  color: inherit;
}
.nav-cta, .solid-button {
  background: var(--red);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--red);
  padding: 15px 20px;
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s, background .2s;
}
.nav-cta:hover, .solid-button:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}
.solid-button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.under-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: underline;
  font-size: 12px;
  font-weight: 600;
  margin-top: 12px;
  padding: 0;
}
.inline-cta { width: auto; display: inline-flex; }

/* Hero (homepage) */
.hero {
  padding: 42px 5% 0;
  min-height: calc(100dvh - 82px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-top, .hero-bottom, .hero-index, .section-head, .directory-label {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.eyebrow, .issue, .hero-index, .directory-label, .panel-kicker, .manifesto-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.eyebrow { color: var(--red); }
.red-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 8px;
  vertical-align: middle;
}
.issue { color: #858580; }
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(66px, 8.2vw, 150px);
  letter-spacing: -.095em;
  line-height: .98;
  font-weight: 600;
  margin: 35px 0 30px;
}
.hero h1 em,
.section-head h2 i,
.manifesto h2 em,
.merchant h2 em,
.page-hero h1 em { font-style: normal; color: var(--red); }
.hero-bottom { align-items: end; padding-bottom: 45px; }
.hero-bottom p { font-size: 18px; line-height: 1.55; max-width: 465px; margin: 0; }
.round-arrow {
  width: 68px;
  height: 68px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.round-arrow:hover { background: var(--ink); color: white; }
.hero-index {
  padding: 18px 0;
  border-top: 1px solid var(--line-strong);
  color: #777;
}

/* Directory / sections */
.directory { padding: 100px 5% 120px; background: var(--cream-deep); }
.section-head h2, .manifesto h2, .merchant h2 {
  font: 600 clamp(48px, 5.8vw, 93px)/1.02 'Space Grotesk', sans-serif;
  letter-spacing: -.075em;
  margin: 20px 0 55px;
}
.section-head > p {
  max-width: 310px;
  line-height: 1.7;
  font-size: 14px;
  margin-top: 75px;
  color: var(--muted);
}
.directory-tools { display: flex; gap: 12px; flex-wrap: wrap; }
.search, .town-select {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  padding: 0 20px;
  height: 55px;
  border: 1px solid transparent;
}
.search { flex: 1; min-width: 200px; }
.search input, .town-select select {
  border: 0; outline: 0; background: transparent; width: 100%; font-size: 13px;
}
.directory-label {
  padding: 35px 0 15px;
  border-bottom: 1px solid #b5b5b0;
  width: 100%;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.shop-card {
  background: var(--cream);
  min-height: 360px;
  padding: 27px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.shop-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px #00000014; }
.shop-card-top {
  display: flex;
  justify-content: space-between;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.shop-town { display: flex; gap: 5px; align-items: center; font-size: 11px; color: #777; }
.shop-card h3 {
  font: 600 28px/1.1 'Space Grotesk', sans-serif;
  letter-spacing: -1.5px;
  margin: 10px 0;
}
.shop-desc { font-size: 13px; line-height: 1.6; color: var(--muted); }
.shop-cover {
  height: 140px;
  background-size: cover;
  background-position: center;
  margin: -27px -27px 18px;
  border-bottom: 1px solid var(--line);
  background-color: #e0e0da;
}
.shop-tagline { font-size: 13px; color: var(--red); font-weight: 600; margin: 4px 0; }
.demo-pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--ink);
  color: var(--cream);
  padding: 3px 7px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Manifesto */
.manifesto {
  background: var(--ink-soft);
  color: var(--cream);
  padding: 120px 5%;
  display: grid;
  grid-template-columns: 26% 1fr;
  gap: 40px;
}
.manifesto-label { line-height: 1.6; color: #aaa; }
.manifesto h2 { margin: 0 0 35px; }
.manifesto > div > p { max-width: 580px; font-size: 17px; line-height: 1.7; color: #aaa; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 80px;
}
.steps > div { border-top: 1px solid #555; padding-top: 20px; }
.steps span { color: #e7423c; font-size: 11px; display: block; margin-bottom: 35px; font-weight: 700; }
.steps strong { display: block; font: 600 20px 'Space Grotesk', sans-serif; margin-bottom: 8px; }
.steps p { font-size: 12px; color: #999; margin: 0; }

/* Merchant pitch */
.merchant {
  padding: 120px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  align-items: start;
}
.merchant h2 { margin-bottom: 30px; }
.merchant-intro > p { max-width: 390px; color: var(--muted); line-height: 1.7; }
.price-tag {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #ccc;
  margin-top: 60px;
  padding-top: 20px;
}
.price-tag strong {
  font: 600 77px 'Space Grotesk', sans-serif;
  letter-spacing: -7px;
}
.price-tag span { font-size: 10px; line-height: 1.8; letter-spacing: 1px; font-weight: 700; }
.merchant-panel {
  background: var(--cream-deep);
  padding: 45px;
  min-height: 440px;
}
.merchant-panel h3 {
  font: 600 43px/1.08 'Space Grotesk', sans-serif;
  letter-spacing: -3px;
  margin: 26px 0;
}
.merchant-panel > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 380px;
}
.merchant-panel .solid-button { margin-top: 20px; width: 100%; justify-content: center; }

/* Footer */
footer {
  background: var(--ink-soft);
  color: #eee;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  padding: 65px 5%;
  font-size: 12px;
}
.footer-brand {
  font: 700 39px 'Space Grotesk', sans-serif;
  letter-spacing: -3px;
}
footer p { color: #999; }
footer > div:last-child { display: flex; flex-direction: column; gap: 12px; }
footer > div:last-child span { color: #888; margin-top: 20px; }
footer a:hover { color: var(--red); }

/* Page hero (inner pages) */
.page-hero { padding: 48px 5% 40px; }
.page-hero h1 {
  font: 600 clamp(48px, 6vw, 96px)/1.02 'Space Grotesk', sans-serif;
  letter-spacing: -.075em;
  margin: 20px 0 18px;
}
.page-lede {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.65;
  color: #555;
  margin: 0 0 24px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

/* Pitch grid */
.pitch-grid {
  padding: 40px 5% 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pitch-grid > div { border-top: 1px solid #ccc; padding-top: 16px; }
.pitch-grid span { color: var(--red); font-size: 11px; font-weight: 700; }
.pitch-grid strong {
  display: block;
  font: 600 18px 'Space Grotesk', sans-serif;
  margin: 20px 0 8px;
}
.pitch-grid p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }
.pitch-cta { padding-top: 40px; }

/* Category chips & badges */
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.chip {
  border: 1px solid var(--border);
  background: var(--cream);
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
}
.chip.active, .chip:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.cat-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  padding: 4px 8px;
  margin: 0 0 8px;
}
.reach-badges {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.reach-badges li {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .4px;
  border: 1px solid var(--border);
  padding: 4px 8px;
  color: #555;
  background: var(--cream);
}

/* Forms */
.merchant-form label, .apply-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin: 15px 0;
}
.merchant-form input,
.merchant-form textarea,
.merchant-form select,
.apply-form input,
.apply-form textarea,
.apply-form select {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--cream);
  padding: 13px;
  margin-top: 7px;
  outline-color: var(--red);
}
.apply-form textarea { min-height: 85px; resize: vertical; }
.form-error { color: var(--red); font-size: 13px; margin: 12px 0; }
.form-success {
  background: var(--cream-deep);
  border-left: 4px solid var(--red);
  padding: 24px;
  margin: 24px 0;
}
.form-success h3 {
  font: 600 28px 'Space Grotesk', sans-serif;
  letter-spacing: -1px;
  margin: 0 0 12px;
}
.form-success p { color: var(--muted); line-height: 1.6; margin: 0 0 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.form-actions .solid-button { width: auto; }
.ghost-button {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 15px 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ghost-button:hover { background: var(--ink); color: white; }

.apply-layout {
  padding: 0 5% 100px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: start;
}
.apply-aside {
  background: var(--cream-deep);
  padding: 32px;
  position: sticky;
  top: 100px;
}
.apply-aside h3 {
  font: 600 24px 'Space Grotesk', sans-serif;
  letter-spacing: -1px;
  margin: 0 0 12px;
}
.apply-aside p, .apply-aside li {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.apply-aside ol { padding-left: 18px; margin: 12px 0; }
.reach-fieldset {
  border: 1px solid var(--border);
  padding: 16px;
  margin: 18px 0;
}
.reach-fieldset legend {
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
}
.check-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 13px !important;
  font-weight: 500 !important;
  margin: 10px 0 !important;
}
.check-label input { width: auto !important; margin: 0 !important; }

.item-builder {
  border: 1px solid var(--border);
  padding: 16px;
  margin: 16px 0;
  background: #fafaf8;
}
.item-builder h4 {
  font: 600 16px 'Space Grotesk', sans-serif;
  margin: 0 0 12px;
}
.item-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.item-roster {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  border-top: 1px solid #ccc;
}
.item-roster li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  font-size: 13px;
}
.item-roster span { color: #777; font-size: 11px; display: block; }
.item-roster button {
  border: 0;
  background: none;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Shop profile */
.shop-profile-cover {
  height: min(42vw, 360px);
  min-height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #e0e0da;
}
.shop-profile-intro { padding: 28px 5% 0; }
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #666;
}
.crumb a:hover { color: var(--red); }
.shop-tagline-lg {
  font-size: 18px;
  color: var(--red);
  font-weight: 600;
  margin: 8px 0 14px;
}
.shop-profile-body {
  padding: 20px 5% 100px;
  display: grid;
  grid-template-columns: 1.4fr .7fr;
  gap: 40px;
}
.profile-block {
  margin-bottom: 40px;
  border-top: 1px solid #d5d5d0;
  padding-top: 18px;
}
.profile-block h2 {
  font: 600 28px 'Space Grotesk', sans-serif;
  letter-spacing: -1px;
  margin: 0 0 14px;
}
.profile-block p { line-height: 1.7; color: #444; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.gallery-grid img { width: 100%; height: 140px; object-fit: cover; }
.plain-list { margin: 12px 0 0; padding-left: 18px; line-height: 1.7; color: #444; }
.product-list { margin-top: 12px; }
.product {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 13px;
}
.product-title strong { display: block; font-size: 14px; }
.product-title small { display: block; color: #888; margin-top: 4px; }
.kind-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--red);
  margin-right: 6px;
}
.aside-card {
  background: var(--cream-deep);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.aside-card h3 {
  font: 600 22px 'Space Grotesk', sans-serif;
  letter-spacing: -1px;
  margin: 0 0 16px;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  margin: 10px 0;
  line-height: 1.4;
  color: #444;
}
.ext-links { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

/* Opportunities */
.opp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.opp-card {
  background: var(--cream);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 280px;
  border: 1px solid transparent;
}
.opp-card h3 {
  font: 600 24px/1.15 'Space Grotesk', sans-serif;
  letter-spacing: -1px;
  margin: 4px 0;
}
.opp-meta { font-size: 12px; color: #777; }
.opp-card p { font-size: 13px; color: var(--muted); line-height: 1.55; flex: 1; }
.opp-card .solid-button { margin-top: auto; width: fit-content; }

.empty {
  text-align: center;
  padding: 95px 20px;
  background: var(--cream);
  margin-top: 22px;
}
.empty h3 {
  font: 600 32px 'Space Grotesk', sans-serif;
  letter-spacing: -2px;
  margin: 18px 0 0;
}
.empty p { font-size: 13px; color: #777; }
.quiet { color: #999; font-size: 12px; }
.pad-section { padding: 0 5% 100px; }

.town-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.town-card {
  background: var(--cream-deep);
  padding: 32px;
  display: block;
  transition: transform .15s;
}
.town-card:hover { transform: translateY(-3px); }
.town-card h3 {
  font: 600 32px 'Space Grotesk', sans-serif;
  letter-spacing: -2px;
  margin: 12px 0 8px;
}
.town-card p { font-size: 13px; color: var(--muted); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 900px) {
  .shop-profile-body, .apply-layout, .pitch-grid { grid-template-columns: 1fr; }
  .aside-card, .apply-aside { position: static; }
  .pitch-grid { gap: 32px; }
  .item-row-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .topbar { height: 70px; }
  .topbar nav, .issue { display: none; }
  .nav-actions { gap: 12px; }
  .nav-cta { padding: 12px; font-size: 11px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 35px; height: 35px; }
  .hero { min-height: 700px; }
  .hero h1 { font-size: clamp(55px, 10vw, 90px); }
  .section-head > p { margin-top: 20px; }
  .manifesto { grid-template-columns: 1fr; gap: 45px; }
  .merchant { grid-template-columns: 1fr; gap: 55px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .nav-actions .text-button { display: none; }
  .hero { min-height: calc(100dvh - 70px); padding-top: 28px; }
  .hero h1 { font-size: clamp(49px, 12vw, 72px); }
  .hero-bottom p { font-size: 14px; max-width: 270px; }
  .round-arrow { width: 52px; height: 52px; }
  .directory, .manifesto, .merchant { padding-top: 75px; padding-bottom: 75px; }
  .section-head { display: block; }
  .section-head h2, .manifesto h2, .merchant h2 { font-size: 53px; margin-bottom: 24px; }
  .shop-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; margin-top: 55px; }
  .merchant-panel { padding: 28px; }
  .merchant-panel h3 { font-size: 38px; }
  footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* —— Merchant auth / dashboard —— */
.merchant-auth-wrap {
  max-width: 440px;
  margin: 0 auto 80px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fffef9;
  font-family: 'Space Grotesk', Inter, sans-serif;
  letter-spacing: -0.01em;
}
.merchant-auth-wrap input,
.merchant-auth-wrap button,
.merchant-auth-wrap label {
  font-family: 'Space Grotesk', Inter, sans-serif;
}
.merchant-auth-hero { padding-bottom: 24px; }

/* Dashboard type matches brand mark (Space Grotesk) */
.dash-main {
  width: 100%;
  font-family: 'Space Grotesk', Inter, sans-serif;
  letter-spacing: -0.01em;
}
.dash-main .quiet,
.dash-main .page-lede,
.dash-main .eyebrow,
.dash-main .fb-import-lede,
.dash-main .fb-import-status,
.dash-main .fb-preview-fields,
.dash-main .fb-thumb figcaption,
.dash-main .roster-item,
.dash-main .check-label {
  font-family: 'Space Grotesk', Inter, sans-serif;
}
.merchant-dashboard-form.apply-form label {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.merchant-dashboard-form.apply-form input,
.merchant-dashboard-form.apply-form textarea,
.merchant-dashboard-form.apply-form select,
.merchant-dashboard-form .under-button,
.merchant-dashboard-form .solid-button,
.dash-actions .solid-button,
.dash-actions .under-button {
  font-family: 'Space Grotesk', Inter, sans-serif;
}
.dash-hero .page-lede {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-weight: 500;
  letter-spacing: -0.015em;
}

/* Dashboard content shell — equal L/R margins, centered */
.dash-shell {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px) 96px;
  box-sizing: border-box;
}
.dash-hero.page-hero {
  padding: 36px 0 20px;
}
.dash-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin: 14px 0 12px;
  letter-spacing: -0.06em;
}
.dash-hero .page-lede {
  max-width: 54ch;
  margin: 0;
  font-size: 15px;
  color: #555;
}
.dash-alert {
  margin: 0 0 20px;
}
#dash-who {
  font-size: 12px;
  font-weight: 600;
}

.merchant-dashboard-form {
  margin: 0;
  max-width: none;
}

/* Section panels */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.dash-panel {
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 22px 18px;
}
.dash-panel-menu {
  grid-column: 1 / -1;
}
.dash-section {
  font: 600 20px 'Space Grotesk', sans-serif;
  letter-spacing: -0.8px;
  margin: 0 0 14px;
}
.dash-panel .dash-section { margin-top: 0; }
.merchant-dashboard-form.apply-form label {
  margin: 0 0 14px;
}
.merchant-dashboard-form.apply-form label:last-child {
  margin-bottom: 0;
}
.merchant-dashboard-form.apply-form input,
.merchant-dashboard-form.apply-form textarea,
.merchant-dashboard-form.apply-form select {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color .15s, box-shadow .15s;
}
.merchant-dashboard-form.apply-form input:focus,
.merchant-dashboard-form.apply-form textarea:focus,
.merchant-dashboard-form.apply-form select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(198, 39, 36, 0.18);
}
.merchant-dashboard-form .check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px;
  cursor: pointer;
}
.merchant-dashboard-form .check-label input {
  width: auto;
  margin: 2px 0 0;
  flex-shrink: 0;
}
.dash-item-add-btn {
  margin-top: 10px;
}

/* Sticky-feel save bar */
.dash-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(247, 247, 244, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 -8px 24px rgba(27, 27, 26, 0.04);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.roster-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.roster-item small { display: block; color: var(--muted); margin-top: 4px; }

@media (max-width: 800px) {
  .dash-grid { grid-template-columns: 1fr; gap: 16px; }
  .dash-panel-menu { grid-column: auto; }
  .merchant-auth-wrap { margin-left: clamp(20px, 5vw, 48px); margin-right: clamp(20px, 5vw, 48px); }
  .dash-shell { padding-left: max(20px, 4vw); padding-right: max(20px, 4vw); }
  .dash-hero h1 { font-size: clamp(32px, 8vw, 44px); }
  .dash-actions { padding: 16px; }
}

/* —— Facebook import (merchant dashboard) —— */
.fb-import-card {
  margin: 0 0 20px;
  padding: 28px 26px 22px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(27, 27, 26, 0.03);
}
.fb-import-head h2 {
  font: 600 26px 'Space Grotesk', sans-serif;
  letter-spacing: -1px;
  margin: 6px 0 8px;
}
.fb-import-lede { max-width: 62ch; margin: 0 0 20px; }
.fb-import-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.fb-import-path {
  padding: 20px 0 8px;
}
.fb-import-path:first-child {
  padding-right: 28px;
  border-right: 1px solid var(--line);
}
.fb-import-path:last-child {
  padding-left: 28px;
}
.fb-path-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.fb-import-path .dash-section {
  margin: 0 0 12px;
  font-size: 18px;
}
.fb-import-path .under-button { margin-top: 4px; }
.fb-import-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: var(--cream-deep);
  border-left: 3px solid var(--red);
  font-size: 13px;
  font-weight: 500;
  border-radius: 0 2px 2px 0;
}
.fb-import-status-err { border-left-color: #8a1f1c; color: #5a1513; }
.fb-import-preview {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.fb-preview-fields {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.fb-preview-fields li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 8px;
  align-items: start;
}
.fb-preview-fields strong {
  text-transform: capitalize;
  color: var(--muted);
  font-weight: 600;
}
.fb-will-fill { color: var(--red); font-style: normal; font-size: 11px; font-weight: 700; }
.fb-already { color: var(--quiet); font-style: normal; font-size: 11px; }
.fb-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 14px;
}
.fb-thumb {
  margin: 0;
  width: 120px;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 3px;
  overflow: hidden;
}
.fb-thumb img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  background: var(--cream-deep);
}
.fb-thumb figcaption {
  font-size: 10px;
  font-weight: 600;
  padding: 5px 8px;
  color: var(--muted);
}
.fb-thumb-broken { opacity: 0.45; }
.fb-replace-label { margin: 14px 0; }
.fb-import-apply-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.fb-import-apply-row .solid-button { width: auto; }

.dash-photos-block {
  margin: 0 0 20px;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  background: #fffef9;
  border-radius: 4px;
}
.dash-photos-block .dash-section { margin-top: 0; }
.dash-photos-block > .quiet { margin: 0 0 12px; max-width: 56ch; }
.dash-photos-block .fb-thumb:first-child {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}
.dash-photos-block .fb-thumb:first-child figcaption {
  color: var(--red);
  font-weight: 700;
}

@media (max-width: 800px) {
  .fb-import-card { padding: 22px 18px 18px; }
  .fb-import-paths {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .fb-import-path:first-child {
    padding-right: 0;
    padding-bottom: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .fb-import-path:last-child {
    padding-left: 0;
    padding-top: 16px;
  }
  .fb-preview-fields li { grid-template-columns: 1fr; }
  .fb-thumb, .fb-thumb img { width: 104px; }
  .fb-thumb img { height: 78px; }
}

/* —— Wave A/B: public UI polish + scale directory —— */
.topbar nav a,
.nav-actions .text-button,
.nav-cta,
.chip,
.search input,
.ghost-button,
.form-actions .solid-button,
.page-lede,
.quiet {
  font-family: 'Space Grotesk', Inter, sans-serif;
  letter-spacing: -0.01em;
}
.directory-label,
.eyebrow,
.issue,
.panel-kicker,
.manifesto-label,
.hero-index {
  font-family: 'Space Grotesk', Inter, sans-serif;
  /* keep wide tracking from base label rule — do not tighten */
}
.topbar nav a,
.nav-actions .text-button {
  font-weight: 500;
}
.content-shell {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}
.page-lede {
  color: var(--muted);
  max-width: 34rem;
}
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.ghost-button:hover {
  background: var(--ink);
  color: #fff;
}
.ghost-button:disabled { opacity: .5; cursor: not-allowed; }

#directory-more {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}
.directory-end { text-align: center; margin: 0; }
#directory-status {
  min-height: 1.2em;
  font-size: 12px;
  color: var(--quiet);
  margin: 8px 0 0;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 5% 20px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.mobile-nav a {
  display: block;
  padding: 14px 4px;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.mobile-nav-cta {
  margin-top: 12px;
  border: 0;
  background: var(--red);
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 14px 16px;
}

@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .mobile-nav:not([hidden]) { display: flex; }
  /* Keep brand + toggle + compact CTA */
  .topbar .nav-actions .text-button { display: none; }
}

.publish-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 4px 10px;
  font: 600 11px/1 'Space Grotesk', Inter, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  border: 1px solid var(--line-strong);
}
.publish-badge.is-live {
  color: #1a6b3c;
  border-color: #1a6b3c;
  background: #e8f6ee;
}
.publish-badge.is-draft {
  color: #856404;
  border-color: #e0c56a;
  background: #fff8e6;
}
.dash-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.dash-title-row h1 { margin: 0; }

.merchant-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 20px;
}
.merchant-path article {
  border: 1px solid var(--line);
  background: #fffef9;
  padding: 22px 20px;
}
.merchant-path span {
  display: block;
  font: 700 11px/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 12px;
}
.merchant-path strong {
  display: block;
  font: 600 20px/1.15 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.merchant-path p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.success-steps {
  margin: 12px 0 16px;
  padding-left: 1.2em;
  color: var(--ink);
}
.success-steps li { margin: 6px 0; }
.forgot-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
}
.town-card.coming {
  opacity: 0.72;
  pointer-events: none;
  border-style: dashed;
}
.town-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.pad-section { padding: 0 5% 100px; }

@media (max-width: 800px) {
  .merchant-path { grid-template-columns: 1fr; }
}
