/* Official AZ — Arizona's local business board
 *
 * Brand colors, fonts, shadows, and shapes are CSS variables in :root below. Change them there.
 *
 * Contrast (WCAG AA), checked on the backgrounds they're used on:
 *   --ink on --white 17.7:1 and on --tint 16.6:1 · --muted on --tint 7.5:1 · --green on --tint 6.5:1
 *   white on the button gradient (--green to --green-mid) 7.0–5.3:1 · white on --green-dark 12.3:1
 *   white on the "New" badge gradient (--copper-text to #9E5B2B) 6.2–5.3:1 · --sun on --green-dark 6.7:1
 *   --copper (#B26B34) is 4.2:1 on white: star, borders, gradients in large headlines only.
 *   --sun (#F2B632) is decorative on light backgrounds; text in sun only on dark green.
 */

/* Fonts are hosted on this site (no requests to Google or anyone else).
 * Anton and Figtree: SIL Open Font License, see /assets/fonts/LICENSE-*.txt */
@font-face {
  font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/anton-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("fonts/figtree-latin-variable.woff2") format("woff2-variations"), url("fonts/figtree-latin-variable.woff2") format("woff2");
}

:root {
  /* Brand */
  --green: #00664F;          /* primary */
  --green-mid: #007A5E;      /* lighter end of the button gradient (white text still 5.3:1) */
  --green-dark: #003D2F;     /* hover, dark bands, footer */
  --green-tint: #E6F2EE;
  --copper: #B26B34;         /* logo star, highlights */
  --copper-text: #8F5225;    /* copper for small text */
  --copper-tint: #F8EEE4;
  --sun: #F2B632;            /* small accents */

  /* Surfaces and text */
  --white: #FFFFFF;
  --tint: #F5F8F7;           /* alternate section background (light green-tinted gray) */
  --ink: #15191C;
  --muted: #4A5258;
  --line: #E1E6E4;           /* hairlines */
  --field-border: #7E868C;   /* form field edges (3:1 or more) */
  --danger: #A3261B;
  --danger-tint: #FBEDEB;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  --grad-brand: linear-gradient(100deg, var(--green) 0%, var(--copper) 100%);
  --grad-dark: linear-gradient(150deg, #00523F 0%, var(--green-dark) 55%, #022A21 100%);
  --grad-new: linear-gradient(135deg, var(--copper-text) 0%, #9E5B2B 100%);

  /* Type */
  --font-display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 8px rgba(0, 61, 47, .06);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 61, 47, .08);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .05), 0 18px 40px rgba(0, 61, 47, .14);
  --shadow-btn: 0 1px 2px rgba(0, 0, 0, .08), 0 6px 16px rgba(0, 102, 79, .28);
  --shadow-btn-hover: 0 2px 4px rgba(0, 0, 0, .08), 0 10px 24px rgba(0, 102, 79, .34);

  /* Shape */
  --radius: 10px;            /* buttons, inputs */
  --radius-card: 18px;       /* cards */
  --radius-lg: 22px;         /* frames, big panels */
  --focus-color: var(--copper);
  --lift: translateY(-4px);
}

[hidden] { display: none !important; }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }

h1, h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  line-height: 1; letter-spacing: .005em; margin: 0 0 .45em; color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3, h4 { font-family: var(--font-body); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .4em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus-color); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { top: 1rem; color: var(--white); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; position: relative; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 46px; padding: .7rem 1.35rem;
  font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.15;
  color: var(--white); background: var(--grad-primary); border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow-btn); text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s, color .18s;
}
.btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-btn-hover); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--focus-color); outline-offset: 3px; }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-outline, .btn-white {
  background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.btn-outline:hover, .btn-white:hover { color: var(--green-dark); background: var(--white); box-shadow: var(--shadow); }
.btn-white { border: 0; color: var(--green-dark); box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 14px 34px rgba(0, 0, 0, .35); }
.btn-white:hover { box-shadow: 0 3px 6px rgba(0, 0, 0, .14), 0 18px 40px rgba(0, 0, 0, .42); }
.btn-large { font-size: 1.1rem; padding: .95rem 1.7rem; min-height: 56px; }
.btn-small { min-height: 40px; padding: .45rem .95rem; font-size: .93rem; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 10px rgba(0, 102, 79, .2); }
.btn-small.btn-outline { box-shadow: var(--shadow-sm); }
.btn-block { display: flex; width: 100%; }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 18px rgba(242, 182, 50, .35); }
.btn-sun:hover { color: var(--ink); }
.btn-cta { padding: .55rem 1.1rem; min-height: 44px; }
.btn-cta strong { color: var(--sun); font-weight: 900; }
.btn-danger { background: var(--danger); color: var(--white); box-shadow: 0 6px 16px rgba(163, 38, 27, .25); }
.btn-danger:hover { background: #7E1D15; }
.btn-outline.btn-danger { background: var(--white); color: var(--danger); border-color: #EBC4BF; box-shadow: var(--shadow-sm); }
.btn-outline.btn-danger:hover { background: var(--danger-tint); color: #7E1D15; }
.link-quiet { color: var(--muted); }
.link-arrow { font-weight: 800; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Ticker (homepage) ---------- */

.ticker { position: relative; display: flex; align-items: stretch; background: var(--ink); color: var(--white); font-weight: 800; font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; }
.ticker-window { overflow: hidden; flex: 1; }
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 38s linear infinite; }
.ticker-list { display: flex; list-style: none; margin: 0; padding: .55rem 0; }
.ticker-list li { white-space: nowrap; padding-right: 1.6rem; }
.ticker-list li::after { content: "•"; color: var(--sun); padding-left: 1.6rem; }
/* Pauses on hover, or with the Pause/Play toggle (works with keyboard and touch). */
.ticker-window:hover .ticker-track,
.ticker-toggle:checked ~ .ticker-window .ticker-track { animation-play-state: paused; }
.ticker-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ticker-pause { order: 2; flex: none; display: flex; align-items: center; padding: 0 .9rem; cursor: pointer; border-left: 1px solid rgba(255, 255, 255, .25); color: var(--sun); font-size: .78rem; }
.ticker-pause .when-paused { display: none; }
.ticker-toggle:checked + .ticker-pause .when-paused { display: inline; }
.ticker-toggle:checked + .ticker-pause .when-running { display: none; }
.ticker-toggle:focus-visible + .ticker-pause { outline: 3px solid var(--sun); outline-offset: -3px; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header (sticky glass) ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(0, 61, 47, .1);
  transition: box-shadow .25s ease, background-color .25s ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(255, 255, 255, .97); }
}
.site-header.is-scrolled { box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 61, 47, .08); background: rgba(255, 255, 255, .86); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-star { color: var(--copper); width: 30px; height: 30px; filter: drop-shadow(0 2px 4px rgba(178, 107, 52, .35)); }
.brand-name { font-family: var(--font-display); font-size: 1.7rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 800; padding: .25rem 0; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { color: var(--green); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .35em; }
.admin-badge { background: var(--copper-tint); color: var(--copper-text); font-weight: 800; font-size: .85rem; padding: .3rem .85rem; border-radius: 999px; }

/* ---------- Background depth: glows + fading dot grid (hero and closing CTA) ---------- */

.has-glow { position: relative; overflow: hidden; isolation: isolate; }
.glow-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; }
.glow-green { width: 620px; height: 620px; left: -160px; top: -220px; background: radial-gradient(circle, rgba(0, 138, 106, .22) 0%, rgba(0, 138, 106, 0) 68%); }
.glow-copper { width: 560px; height: 560px; right: -140px; top: 10%; background: radial-gradient(circle, rgba(178, 107, 52, .18) 0%, rgba(178, 107, 52, 0) 68%); }
.glow-sun { width: 460px; height: 460px; left: 38%; bottom: -260px; background: radial-gradient(circle, rgba(242, 182, 50, .2) 0%, rgba(242, 182, 50, 0) 68%); }
.dot-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0, 61, 47, .16) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 0%, transparent 75%);
}

/* ---------- Hero ---------- */

.hero { padding: 5rem 0 4.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1rem; color: var(--copper-text); font-weight: 800; font-size: .92rem; text-transform: uppercase; letter-spacing: .1em; }
.kicker-star { width: 18px; height: 18px; color: var(--copper); flex: none; }
.hero h1 { font-size: clamp(3rem, 8.5vw, 6.4rem); margin-bottom: .3em; }
.hero h1 .hl { color: var(--green); }
.grad-text {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  color: var(--green);                  /* fallback if gradient text isn't supported */
  -webkit-text-fill-color: transparent;
}
.lead { font-size: 1.22rem; color: var(--muted); line-height: 1.55; }
.hero .lead { font-size: 1.3rem; color: var(--ink); max-width: 560px; margin-bottom: 1.85rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero-visual { position: relative; padding: 4.25rem 0 3.5rem; }
.float-badges { list-style: none; margin: 0; padding: 0; }
.float-badge {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .45rem;
  background: var(--white); color: var(--ink); font-weight: 800; font-size: .9rem; white-space: nowrap;
  padding: .55rem .95rem; border-radius: 999px; box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.float-badge .icon { width: 1.15em; height: 1.15em; color: var(--green); }
.fb-star { width: 1.05em; height: 1.05em; color: var(--copper); }
.fb-1 { top: .4rem; left: -1.2rem; }
.fb-2 { top: 1.6rem; right: -1rem; animation-delay: -2s; }
.fb-3 { bottom: .2rem; left: 2.5rem; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.search-bar { position: relative; z-index: 1; background: var(--white); border-radius: var(--radius-lg); padding: 1.3rem 1.35rem 1.4rem; box-shadow: var(--shadow-lg); border: 1px solid rgba(0, 61, 47, .06); }
.search-bar label { display: block; font-weight: 800; margin-bottom: .45rem; }
.search-row { display: flex; gap: .6rem; }
.search-row input { flex: 1; min-width: 0; }
.search-row .btn { flex: none; }
.search-row-2 { align-items: end; }
.search-row-2 > div { flex: 1; min-width: 0; }

/* ---------- Sections ---------- */

.section { padding: 5rem 0; }
.section-tight { padding: 2.5rem 0 4rem; }
.section-tint, .section-paper { background: var(--tint); }
.section-title { margin-bottom: .3em; }
.section-title-gap { margin-top: 3.25rem; }
.section-lead { color: var(--muted); font-size: 1.15rem; margin-bottom: 2.25rem; max-width: 640px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section-head .section-title { margin: 0; }
.page-head { position: relative; padding: 3.75rem 0 2.25rem; margin-bottom: 1rem; background: linear-gradient(180deg, var(--tint) 0%, var(--white) 100%); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: .3em; }
.page-head .lead { margin: 0; max-width: 700px; }

/* Scroll reveal (see assets/site.js): homepage sections below the hero, only when the page opted in.
 * Other pages show their content immediately. */
.reveal-on:not(.reveal-done) .page-home main > section:not(:first-child):not(.is-visible) { opacity: 0; transform: translateY(24px); }
.reveal-on .page-home main > section:not(:first-child) { transition: opacity .6s ease, transform .6s ease; }

/* ---------- Cards ---------- */

.card-grid, .post-list, .member-listings, .chip-list, .tile-grid, .features { list-style: none; margin: 0; padding: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
/* Hairline border that turns into a green-to-copper gradient on hover */
.card {
  display: flex; flex-direction: column;
  border: 1px solid transparent; border-radius: var(--radius-card); padding: 1.4rem 1.45rem 1.3rem;
  background: linear-gradient(var(--white), var(--white)) padding-box, linear-gradient(var(--line), var(--line)) border-box;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.card:hover {
  transform: var(--lift); box-shadow: var(--shadow-lg);
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--grad-brand) border-box;
}
.card-top { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: .85rem; }
.card-head { flex: 1; min-width: 0; }
.avatar {
  flex: none; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-family: var(--font-display); font-size: 1.6rem; line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 14px rgba(0, 61, 47, .22);
}
.avatar-green { background: var(--grad-primary); color: var(--white); }
.avatar-dark { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%); color: var(--sun); }
/* Approved logo: shown whole (never cropped) inside the same circle */
.avatar-logo { background: var(--white); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 4px 12px rgba(0, 61, 47, .12); }
.avatar-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; display: block; }
.avatar-large { width: 84px; height: 84px; font-size: 2.6rem; }
.business-title { display: flex; align-items: center; gap: 1rem; }
.business-title h1 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.page-head .business-title { margin-bottom: .5rem; }
.badge-new {
  flex: none; background: var(--grad-new); color: var(--white); font-weight: 900; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .08em; padding: .25rem .65rem; border-radius: 999px;
  box-shadow: 0 4px 10px rgba(143, 82, 37, .3);
}
.card-title { font-family: var(--font-body); font-weight: 800; font-size: 1.3rem; text-transform: none; line-height: 1.15; margin: 0 0 .35rem; overflow-wrap: anywhere; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--green); text-decoration: underline; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin: 0; font-size: .9rem; }
.tag {
  display: inline-block; background: var(--copper-tint); color: var(--copper-text);
  font-weight: 800; font-size: .78rem; letter-spacing: .02em; padding: .2rem .65rem; border-radius: 999px; text-decoration: none; line-height: 1.4;
}
a.tag:hover { background: #F2DFCC; color: var(--copper-text); }
.card-city { display: inline-flex; align-items: center; gap: .25rem; color: var(--muted); font-weight: 600; }
.card-city .icon { width: 1em; height: 1em; color: var(--copper); }
.card-desc { color: var(--muted); margin: 0 0 1rem; font-size: .98rem; }
.card-desc:last-child { margin-bottom: 0; }
.card-date { color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: auto; }

/* Blog cards: same card, optional cover image */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card { padding: 0; overflow: hidden; }
.post-card-img { width: 100%; height: 200px; object-fit: cover; display: block; background: var(--tint); }
.post-card-body { padding: 1.25rem 1.45rem 1.4rem; }
.post-card .card-meta { margin-bottom: .6rem; }

/* ---------- Homepage blocks ---------- */

.chip-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.05rem; border-radius: 999px;
  background: var(--white); color: var(--ink); text-decoration: none; font-weight: 800; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, color .18s;
}
.chip:hover { color: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.chip-count { background: var(--grad-primary); color: var(--white); border-radius: 999px; padding: 0 .5rem; font-size: .8rem; }

.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: .4rem; min-height: 96px; height: 100%;
  padding: 1rem 1.15rem; background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: var(--lift); box-shadow: var(--shadow-lg); color: var(--green-dark); }
.tile-name { font-weight: 800; line-height: 1.25; }
.tile-count { font-size: .88rem; font-weight: 600; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-tile {
  display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.25rem;
  background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow); color: var(--muted); line-height: 1.35;
}
.feature-tile strong { display: block; color: var(--ink); font-weight: 900; font-size: 1.05rem; margin-bottom: .1rem; }
.icon-tile {
  flex: none; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(135deg, var(--green-tint) 0%, var(--copper-tint) 100%); color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(0, 102, 79, .08), 0 6px 14px rgba(0, 61, 47, .1);
}
.icon-tile .icon { width: 26px; height: 26px; }

.phone-card:hover { transform: none; }
.phone-card .card-title { font-size: 1.05rem; }
.phone-card .avatar { width: 42px; height: 42px; font-size: 1.3rem; border-radius: 13px; }
.phone-card .card-desc { font-size: .88rem; }
.phone-card .card-city { margin: 0 0 .5rem; font-size: .85rem; }

.search-band { background: var(--tint); padding: 4rem 0; }
.search-band .section-title { margin-bottom: 1.2rem; }
.search-band .search-bar { max-width: 900px; }

.cta-band { background: var(--grad-dark); color: var(--white); padding: 6rem 0; text-align: center; }
.cta-band .glow-green { background: radial-gradient(circle, rgba(0, 160, 120, .35) 0%, rgba(0, 160, 120, 0) 68%); }
.cta-band .glow-copper { background: radial-gradient(circle, rgba(178, 107, 52, .3) 0%, rgba(178, 107, 52, 0) 68%); }
.cta-band .glow-sun { background: radial-gradient(circle, rgba(242, 182, 50, .22) 0%, rgba(242, 182, 50, 0) 68%); }
.cta-band .dot-grid { background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.4px); }
.cta-band h2 { color: var(--white); font-size: clamp(2.4rem, 6.5vw, 4.8rem); max-width: 16ch; margin: 0 auto .4em; text-shadow: 0 4px 24px rgba(0, 0, 0, .25); }
.cta-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.5rem; font-size: 1.15rem; color: var(--green-tint); margin-bottom: 2.25rem; }
.cta-stats strong { font-family: var(--font-display); font-weight: 400; font-size: 2.4rem; color: var(--sun); margin-right: .35rem; vertical-align: -.12em; }
.cta-band :focus-visible { outline-color: var(--sun); }

/* ---------- Forms ---------- */

.listing-form { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); border: 1px solid rgba(0, 61, 47, .06); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.4rem; margin-bottom: 1.6rem; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 800; font-size: .97rem; margin-bottom: .4rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="password"],
input[type="url"], input[type="datetime-local"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; min-height: 48px; padding: .65rem .9rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--field-border); border-radius: var(--radius); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04);
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus-color); outline-offset: 2px; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 102, 79, .12); }
::placeholder { color: #6A7176; opacity: 1; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-weight: 700; font-size: .95rem; margin: .4rem 0 0; }
.hint { color: var(--muted); font-size: .92rem; margin: .4rem 0 0; }
.optional { color: var(--muted); font-weight: 500; }
.check { display: flex !important; align-items: flex-start; gap: .65rem; font-weight: 600 !important; cursor: pointer; line-height: 1.5; }
.check input { width: 22px; height: 22px; margin: .05rem 0 0; accent-color: var(--green); flex: none; }
.check a { font-weight: 800; }
.check.is-disabled { color: var(--muted); cursor: not-allowed; }
fieldset.optins { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 1.1rem 1.25rem 1rem; margin: 0; display: grid; gap: .65rem; background: var(--tint); }
fieldset.optins legend { font-weight: 800; padding: 0 .4rem; }
fieldset.optins .hint { margin: 0 0 .2rem; }
/* Spam trap: off screen, zero visible area, skipped by Tab (tabindex -1) and screen readers (aria-hidden). Not type="hidden", so bots still fill it. */
.hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap; }
.hp * { width: 1px !important; height: 1px !important; min-height: 0 !important; min-width: 0 !important; padding: 0 !important; border: 0 !important; }
.form-note { color: var(--muted); margin: 1rem 0 0; font-size: .95rem; }

.list-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.list-preview { position: sticky; top: 100px; }
.preview-label { display: flex; align-items: center; gap: .45rem; font-weight: 800; margin: 0 0 .75rem; color: var(--copper-text); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; }
.preview-card { box-shadow: var(--shadow-lg); }
.preview-card .is-placeholder { color: var(--muted); font-style: italic; }
.preview-card .tag.is-placeholder { font-style: normal; color: var(--copper-text); }
.preview-card .btn { cursor: default; }

.notice { border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; border: 1px solid; box-shadow: var(--shadow-sm); }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.notice-error { background: var(--danger-tint); border-color: #EBC4BF; }
.notice-success { background: var(--green-tint); border-color: #BFDDD1; }
.notice-info { background: var(--copper-tint); border-color: #EBCFB6; }

/* Show/hide password button */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 3.25rem; }
.pw-toggle { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 44px; height: 40px; padding: 0; display: inline-grid; place-items: center; background: transparent; color: var(--muted); border: 0; border-radius: 8px; cursor: pointer; }
.pw-toggle:hover { color: var(--green); background: var(--green-tint); }
.pw-toggle[aria-pressed="true"] { color: var(--green); }
.pw-toggle svg { display: block; }

/* ---------- FAQ ---------- */

.faq details { background: var(--white); border-radius: var(--radius-card); margin-bottom: .85rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 3rem 1.15rem 1.35rem; position: relative; font-weight: 800; font-size: 1.05rem; border-radius: var(--radius-card); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--green); font-weight: 800; line-height: 1; }
.faq details[open] { box-shadow: var(--shadow); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding: 0 1.35rem 1.15rem; margin: 0; }
.faq-cta { margin-top: 2rem; padding: 1.5rem; background: var(--tint); border-radius: var(--radius-card); }
.faq-cta p:last-child { margin-bottom: 0; }

/* ---------- Browse ---------- */

.filters {
  display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 1rem; align-items: end;
  background: var(--white); border-radius: var(--radius-lg); padding: 1.35rem 1.5rem; margin-bottom: 2.25rem; box-shadow: var(--shadow); border: 1px solid rgba(0, 61, 47, .06);
}
.filters .field label { font-size: .93rem; }
.filter-actions { display: flex; align-items: center; gap: 1rem; }
.result-count { color: var(--muted); font-weight: 700; margin-bottom: 1rem; }
.empty { text-align: center; background: var(--tint); border: 1.5px dashed #C3CCC9; border-radius: var(--radius-card); padding: 2.75rem 1.5rem; }
.empty p { color: var(--muted); }
.empty p:last-child { margin-bottom: 0; }
/* A row of buttons that wraps on phones: keep a gap between them */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.empty .btn-row { justify-content: center; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; color: var(--muted); }

/* ---------- Business page ---------- */

.crumbs { font-size: .95rem; margin-bottom: .75rem; display: flex; gap: .4rem; flex-wrap: wrap; font-weight: 600; }
.crumbs span { color: var(--muted); }
.business-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.business-body { font-size: 1.1rem; overflow-wrap: anywhere; background: var(--white); border-radius: var(--radius-card); padding: 1.85rem; box-shadow: var(--shadow); border: 1px solid rgba(0, 61, 47, .06); }
.business-body p:last-child { margin-bottom: 0; }
.business-actions { position: sticky; top: 100px; background: var(--white); border-radius: var(--radius-card); padding: 1.4rem; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: .75rem; border: 1px solid rgba(0, 61, 47, .06); }
.business-actions .hint { margin: 0; }
.page-head .card-meta { margin-top: .25rem; }

/* ---------- Thanks ---------- */

.thanks-badge { display: inline-grid; place-items: center; width: 88px; height: 88px; border-radius: 28px; background: var(--grad-dark); color: var(--sun); margin-bottom: 1.5rem; box-shadow: var(--shadow-lg); }
.thanks-badge svg { width: 46px; height: 46px; }
.center .btn { margin: .25rem; }

/* ---------- Members ---------- */

.member-form { display: grid; gap: 1.2rem; }
.member-form .btn-large { justify-self: start; }
.member-form .form-note { margin: 0; }
.member-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.member-head h2 { margin: 0; }
.member-listings { margin: 0 0 1rem; display: grid; gap: 1rem; }
.member-account { margin-top: 3rem; padding: 1.75rem; border-radius: var(--radius-card); background: var(--tint); }
.member-note { margin-bottom: 1rem; }
.status { display: inline-block; font-weight: 800; font-size: .8rem; padding: .2rem .65rem; border-radius: 999px; }
.status-live { background: var(--green-tint); color: var(--green-dark); }
.status-pending { background: var(--copper-tint); color: var(--copper-text); }
.status-rejected { background: var(--danger-tint); color: var(--danger); }
.status-needs_fix { background: #FFF2CC; color: #6B4A00; }
.review-note { margin-top: .8rem; padding: .75rem .9rem; border-radius: var(--radius); font-size: .95rem; }
.review-note p { margin: 0 0 .35rem; }
.review-note p:last-child { margin-bottom: 0; }
.review-note-fix { background: #FFF6DB; border: 1px solid #F0D98C; }
.review-note-rejected { background: var(--danger-tint); border: 1px solid #EBC4BF; }
.fix-note p { margin: 0 0 .4rem; }
.fix-note p:last-child { margin: 0; }
/* Super admin: Needs a fix / Reject choices */
.review-choices { display: grid; gap: .6rem; margin: .5rem 0 .9rem; }
.review-choice { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.review-choice > summary { cursor: pointer; font-weight: 800; padding: .7rem .9rem; min-height: 44px; }
.review-choice[open] > summary { border-bottom: 1px solid var(--line); }
.review-choice form { display: grid; gap: .8rem; padding: .9rem; }
.review-choice .btn { justify-self: start; }
/* Logo field */
.logo-now { display: flex; gap: 1rem; margin: .2rem 0 .6rem; flex-wrap: wrap; }
.logo-now figure { margin: 0; text-align: center; font-size: .82rem; color: var(--muted); }
.logo-now img { width: 72px; height: 72px; object-fit: contain; border-radius: 50%; border: 1px solid var(--line); background: var(--white); padding: 6px; display: block; margin: 0 auto .3rem; }
.logo-field input[type="file"] { font: inherit; max-width: 100%; padding: .55rem 0; }
.logo-compare { display: flex; gap: 1.25rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.logo-compare figure { margin: 0; text-align: center; font-size: .85rem; font-weight: 700; color: var(--muted); }
.logo-compare img, .logo-compare .avatar { width: 96px; height: 96px; margin: 0 auto .35rem; }
.logo-compare img { object-fit: contain; border-radius: 50%; border: 1px solid var(--line); background: var(--white); padding: 8px; display: block; }
.member-logo { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.member-logo h2 { margin-top: 0; }
.member-logo .listing-form { padding: 1.25rem; }
.logo-remove { margin-top: .9rem; }
.member-listings .card-top { margin: .4rem 0 .3rem; align-items: center; }
.member-listings .card-title { margin: 0; }
.status-hidden { background: #ECEFEE; color: #4A5552; }
.member-listings .card-meta { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; }
.member-actions { margin-top: .9rem; }
.member-actions form { margin: 0; }
.verify-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; }
.verify-note p { margin: 0; flex: 1 1 280px; }
.verify-note form { margin: 0; }
.confirm-box { padding: 1.5rem 1.4rem; border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.confirm-box h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 0; }
.confirm-danger { border-color: #EBC4BF; border-top: 5px solid var(--danger); }
/* Super admin: edit review */
.diff-table { width: 100%; border-collapse: collapse; margin: .75rem 0 1rem; font-size: .95rem; table-layout: fixed; }
.diff-table th, .diff-table td { text-align: left; vertical-align: top; padding: .6rem .65rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.diff-table th { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.diff-table th:first-child { width: 22%; }
.diff-before { background: #FBEDEB; color: #6E1C14; }
.diff-after { background: #E7F4EF; color: #0C3D30; }
.diff-label { font-weight: 800; overflow-wrap: normal !important; }
@media (max-width: 640px) {
  .diff-table, .diff-table tbody { display: block; }
  .diff-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .diff-table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); padding: .5rem 0; }
  .diff-table th[scope="row"] { grid-column: 1 / -1; width: auto; border: 0; padding: .1rem 0 .4rem; }
  .diff-table td { border: 0; border-radius: 8px; margin: 0 .2rem; }
  .diff-table td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: .8; margin-bottom: .2rem; }
}
.edit-decide { display: grid; gap: .75rem; }
.edit-decide textarea { min-height: 80px; }
.setup-note { text-align: left; margin-top: 2rem; }

/* ---------- Super admin ---------- */

.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.admin-top h1 { margin: 0; font-size: 2.6rem; }
.admin-auth { max-width: 440px; display: grid; gap: 1.1rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; }
.tabs a { padding: .75rem 1rem .65rem; text-decoration: none; color: var(--muted); font-weight: 800; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--green); }
.tabs a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
.tabs .count { display: inline-block; min-width: 1.8em; text-align: center; background: var(--tint); border-radius: 999px; padding: 0 .45em; font-size: .82rem; color: var(--ink); }
.admin-item { background: var(--white); border-radius: var(--radius-card); padding: 1.4rem 1.5rem; margin-bottom: 1.25rem; scroll-margin-top: 100px; box-shadow: var(--shadow); border: 1px solid rgba(0, 61, 47, .06); }
.admin-item:target { box-shadow: 0 0 0 3px var(--copper), var(--shadow); }
.admin-item-head h2 { font-family: var(--font-body); font-weight: 800; text-transform: none; font-size: 1.45rem; margin-bottom: .35rem; }
.admin-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem 1.25rem; margin: 1rem 0; }
.admin-details dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.admin-details dd { margin: 0; overflow-wrap: anywhere; }
.admin-desc { background: var(--tint); border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: 1rem; overflow-wrap: anywhere; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.admin-actions form { margin: 0; }
.admin-edit { margin-bottom: 2rem; }
.admin-export { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.admin-export .hint { margin: 0; }
.optin-list { list-style: none; margin: 0; padding: 0; }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow); border: 1px solid rgba(0, 61, 47, .06); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: .8rem .95rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child th, .admin-table tr:last-child td { border-bottom: 0; }
.admin-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.admin-table tbody th { font-weight: 800; }
.row-actions { white-space: nowrap; }
.row-actions a { margin-right: .75rem; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.editor-toolbar button { min-height: 40px; padding: .35rem .8rem; font: inherit; font-size: .93rem; font-weight: 700; background: var(--white); color: var(--ink); border: 1.5px solid var(--field-border); border-radius: 8px; cursor: pointer; box-shadow: var(--shadow-sm); }
.editor-toolbar button:hover { border-color: var(--ink); }
.editor-toolbar button:focus-visible { outline: 3px solid var(--focus-color); outline-offset: 2px; }
.editor-body { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .97rem; line-height: 1.55; }
.format-help { margin-top: .6rem; }
.format-help summary { cursor: pointer; font-weight: 800; color: var(--green); }
.format-help ul { margin: .5rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.format-help code, .post-body code { background: var(--tint); padding: .05rem .35rem; border-radius: 5px; font-size: .9em; color: var(--ink); }
.image-picker { display: grid; grid-template-columns: 1fr 1fr auto; gap: .75rem 1rem; align-items: end; margin-top: .5rem; }
.image-picker .field-error { grid-column: 1 / -1; margin: 0; }
.cover-thumb { max-width: 260px; height: auto; border-radius: var(--radius); display: block; box-shadow: var(--shadow-sm); }
input[type="file"] { font: inherit; max-width: 100%; }
.delete-post { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* ---------- Blog ---------- */

.cat-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.cat-filter a { display: inline-block; padding: .5rem 1.05rem; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 800; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.cat-filter a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-filter a[aria-current="page"] { background: var(--grad-primary); color: var(--white); box-shadow: var(--shadow-btn); }
.post-head { padding-bottom: 1.75rem; }
.post-head h1 { font-size: clamp(2.3rem, 5.6vw, 3.8rem); }
.post-meta { margin: .25rem 0 0; color: var(--muted); font-weight: 600; }
.post-content { padding-top: 2rem; padding-bottom: 4rem; }
.post-cover { margin: 0 0 2.25rem; }
.post-cover img, .post-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.post-body { font-size: 1.13rem; line-height: 1.75; overflow-wrap: anywhere; }
.post-body h2 { font-size: 2rem; margin: 2.25rem 0 .5rem; }
.post-body h3 { font-size: 1.35rem; margin: 1.75rem 0 .5rem; }
.post-body ul, .post-body ol { padding-left: 1.4rem; margin: 0 0 1.1em; }
.post-body li { margin-bottom: .4rem; }
.post-body blockquote { margin: 1.75rem 0; padding: 1.1rem 1.4rem; border-left: 4px solid var(--copper); background: var(--tint); border-radius: 0 var(--radius-card) var(--radius-card) 0; font-weight: 700; font-size: 1.2rem; }
.post-body blockquote p { margin: 0; }
.post-body img { max-width: 100%; height: auto; }
.post-figure { margin: 2rem 0; }
.post-cta { position: relative; overflow: hidden; margin: 3rem 0 1.5rem; padding: 2.4rem 2rem; text-align: center; background: var(--grad-dark); color: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.post-cta h2 { color: var(--white); font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .35rem; }
.post-cta p { color: var(--green-tint); max-width: 520px; margin-left: auto; margin-right: auto; }
.post-cta p:last-child { margin-bottom: 0; }
.post-cta .btn { background: var(--white); color: var(--green-dark); box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 12px 28px rgba(0, 0, 0, .3); }
.post-cta .btn:hover { color: var(--green-dark); }
.post-cta :focus-visible { outline-color: var(--sun); }
.post-back { margin: 0; }
.preview-bar { background: var(--sun); color: var(--ink); padding: .65rem 0; box-shadow: var(--shadow-sm); }
.preview-bar a { color: var(--ink); font-weight: 800; }

/* ---------- Privacy and Terms ---------- */

.legal { max-width: 780px; }
.legal h2 { font-size: 2rem; margin-top: 2.25rem; }
.legal h3 { margin-top: 1.25rem; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1em; }
.legal li { margin-bottom: .4rem; }
.legal .updated { color: var(--muted); font-weight: 600; }
.legal table { width: 100%; border-collapse: separate; border-spacing: 0; margin: .5rem 0 1.5rem; font-size: .97rem; background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .65rem .75rem; border-bottom: 1px solid var(--line); }
.legal tr:last-child td { border-bottom: 0; }
.legal th { background: var(--tint); font-weight: 800; }
.legal-contact { background: var(--tint); border-radius: var(--radius-card); padding: 1.15rem 1.35rem; }
.legal-contact address { font-style: normal; }

/* ---------- Footer ---------- */

.site-footer { background: var(--grad-dark); color: var(--green-tint); padding: 4.5rem 0 1.5rem; }
.site-footer a { color: var(--white); text-underline-offset: .2em; }
.site-footer a:hover { color: var(--sun); }
.site-footer :focus-visible { outline-color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: .45rem; color: var(--white); font-family: var(--font-display); font-size: 1.9rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1; margin-bottom: .8rem; }
.footer-star { width: 26px; height: 26px; color: var(--sun); flex: none; }
.footer-about .btn { margin-top: .5rem; }
.site-footer .btn-sun { color: var(--ink); }
.site-footer .btn-sun:hover { color: var(--ink); }
.footer-heading { font-family: var(--font-body); font-weight: 900; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--sun); margin: .3rem 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col address { font-style: normal; line-height: 1.6; margin-bottom: 1rem; color: var(--white); }
.footer-small { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 3rem; padding-top: 1.25rem; font-size: .92rem; }
.footer-small p { margin: 0; }
.footer-small address { font-style: normal; margin-bottom: .75rem; }

/* ---------- Responsive ---------- */

/* "Anything special right now?" (deal, event, job) on the listing form */
fieldset.extras { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 1.1rem 1.25rem 1.1rem; margin: 0; display: grid; gap: .6rem; }
fieldset.extras legend { font-weight: 800; padding: 0 .4rem; }
fieldset.extras > .hint { margin: 0 0 .2rem; }
details.extra { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
details.extra > summary { display: flex; align-items: center; gap: .55rem; min-height: 48px; padding: .6rem .9rem; cursor: pointer; font-weight: 800; color: var(--green); list-style: none; }
details.extra > summary::-webkit-details-marker { display: none; }
details.extra > summary::after { content: "+"; margin-left: auto; font-size: 1.35rem; line-height: 1; }
details.extra[open] > summary::after { content: "\2212"; }
details.extra > summary .icon { width: 22px; height: 22px; }
details.extra[open] { background: var(--tint); }
.extra-body { display: grid; gap: .9rem; padding: .2rem .9rem 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.check-hint { margin: -.35rem 0 .1rem 2.05rem !important; }

/* Browse: invite banner while the board is still growing */
.invite-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin: 0 0 1.75rem; padding: 1.1rem 1.35rem; border-radius: var(--radius-card); background: var(--tint); border: 1px solid var(--line); border-left: 5px solid var(--green); }
.invite-banner p { margin: 0; font-weight: 700; flex: 1 1 260px; }

/* Listing page: current deal, event, job */
.listing-extras { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .65rem; }
.listing-extras li { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--line); }
.listing-extras .icon { flex: none; width: 24px; height: 24px; color: var(--green); margin-top: .1rem; }
.listing-extras .extra-label { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.listing-extras strong { display: block; }
.listing-extras .extra-detail { color: var(--muted); font-size: .95rem; }

/* Homepage: who's behind Official AZ */
.about-band { text-align: center; }
.about-band p { font-size: 1.1rem; max-width: 620px; margin: 0 auto .9rem; }

@media (max-width: 1100px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .fb-1 { left: 0; } .fb-2 { right: 0; }
}
@media (max-width: 1000px) {
  .card-grid, .post-list, .features { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field:first-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .browser-frame { width: 72%; }
  .phone-frame { right: 0; bottom: 0; width: 220px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1rem; }
  .list-layout { grid-template-columns: 1fr; }
  .list-preview { position: static; order: -1; }
  .business-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .business-actions { position: static; order: -1; }
  .image-picker { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 1rem; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 2.75rem 0 3rem; }
  .page-head { padding: 2.25rem 0 1.25rem; margin-bottom: 0; }
  .page-head + .section-tight { padding-top: 1.25rem; }
  .field-row { grid-template-columns: 1fr; }
  .header-inner { padding-top: .6rem; padding-bottom: .5rem; min-height: 0; row-gap: .35rem; column-gap: .75rem; }
  .header-inner::after { content: ""; order: 3; flex-basis: 100%; height: 0; }
  .brand { order: 1; flex: 1 1 auto; }
  .brand-name { font-size: 1.45rem; }
  .brand-star { width: 24px; height: 24px; }
  .site-nav { display: contents; }
  .site-nav .btn { order: 2; font-size: .86rem; min-height: 42px; padding: .4rem .75rem; }
  .site-nav a:not(.btn) { order: 4; margin-right: 1.25rem; padding: .3rem 0; }
  .site-nav a:not(.btn):last-of-type { margin-right: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  /* Floating badges sit in a row above the search card on phones */
  .hero-visual { padding: 0; }
  .float-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
  .float-badge { position: static; animation: none; font-size: .82rem; padding: .45rem .8rem; box-shadow: var(--shadow); }
  .search-row { flex-direction: column; }
  .search-row-2 { align-items: stretch; }
  .search-row .btn { width: 100%; }
  .card-grid, .post-list, .features { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .tile { min-height: 0; padding: .8rem .85rem; font-size: .93rem; }
  .form-grid { grid-template-columns: 1fr; }
  .listing-form { padding: 1.25rem; }
  .filters { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-band { padding: 4rem 0; }
  .business-body { padding: 1.25rem; }
  .post-cta { padding: 1.9rem 1.25rem; }
  .legal table { font-size: .88rem; table-layout: fixed; }
  .legal th, .legal td { padding: .5rem .45rem; overflow-wrap: break-word; }
  .legal th:first-child { width: 34%; }
  .legal th:last-child { width: 5.4rem; }
  .glow-green { width: 420px; height: 420px; }
  .glow-copper { width: 380px; height: 380px; }
}

/* Very narrow phones: keep all four nav links on one row */
@media (max-width: 359px) {
  .site-nav a:not(.btn) { margin-right: .9rem; font-size: .94rem; }
}

/* Less motion: no lifting, floating, scroll reveal, or ticker movement. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none !important; width: auto; }
  .ticker-list { flex-wrap: wrap; justify-content: center; padding: .55rem 1rem; }
  .ticker-list[aria-hidden="true"], .ticker-pause { display: none; }
  .card:hover, .tile:hover, .chip:hover, .btn:hover, .cat-filter a:hover { transform: none; }
  .float-badge { animation: none; }
  main > section { opacity: 1 !important; transform: none !important; }
}

@media print {
  .site-header, .site-footer, .ticker, .business-actions .btn, .glow-layer, .float-badges { display: none; }
  .card, .search-bar, .filters, .business-actions { box-shadow: none; }
}

/* Super admin: import */
.import-list { max-height: 340px; overflow: auto; margin: .5rem 0 0; padding: .4rem .9rem .9rem 2rem; font-size: .9rem; }
.import-list li { margin-bottom: .3rem; }
.import-table td { font-size: .92rem; }

/* Super admin: listings as a collapsible list */
.row-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 1rem; }
.row-tools input[type=search] { flex: 1 1 260px; min-width: 0; }
.row-tools .row-flagged { margin: 0; }
.row-tools .hint { flex-basis: 100%; margin: 0; }
details.admin-row { margin-bottom: .5rem; scroll-margin-top: 100px; }
details.admin-row > summary { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .75rem; list-style: none; cursor: pointer; background: var(--white); border: 1px solid rgba(0, 61, 47, .1); border-radius: 12px; padding: .75rem 2.4rem .75rem 1rem; position: relative; box-shadow: var(--shadow); }
details.admin-row > summary::-webkit-details-marker { display: none; }
details.admin-row > summary::after { content: ""; position: absolute; right: 1rem; top: 50%; width: .55rem; height: .55rem; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
details.admin-row[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
details.admin-row > summary:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
details.admin-row:target > summary { box-shadow: 0 0 0 3px var(--copper), var(--shadow); }
.admin-row-name { font-weight: 800; flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.admin-row-meta { color: var(--muted, #5b6b66); font-size: .9rem; }
.admin-row-flags { display: flex; flex-wrap: wrap; gap: .3rem; }
.flag { font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--tint); color: var(--green); }
.flag-check { background: #fde4e1; color: #9b1c12; }
.flag-edit { background: #fff1d6; color: #7a4a00; }
details.admin-row > .admin-item { margin: .5rem 0 1rem; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: .5rem 0 1rem; }
.pager .is-disabled { opacity: .45; pointer-events: none; }
.pager-at { font-weight: 700; color: var(--muted); font-size: .95rem; }
.admin-row-when { flex-basis: 100%; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.flag-new { background: #C8643B; color: #fff; letter-spacing: .04em; vertical-align: .15em; margin-left: .25rem; }
