:root {
  --ink: #171412;
  --muted: #69625d;
  --paper: #f7f4ef;
  --surface: #ffffff;
  --line: #ded8d0;
  --brand: #c6422d;
  --brand-dark: #8f2f20;
  --gold: #d89b35;
  --green: #4f725d;
  --nav-height: 68px;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(43, 34, 28, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: var(--nav-height);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid #1665a8;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }
.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 216, 208, 0.9);
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100% - 32px, 1180px);
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Site-wide navigation: every spoke, on every page, always reachable
   without scrolling — lives inside the sticky header itself rather than
   only in the bottom mobile-nav (which becomes non-fixed and scrolls out
   of reach on wider screens). Horizontally scrollable on narrow screens
   so it never wraps into extra header height. */
.site-nav {
  display: flex;
  gap: 4px;
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
  padding: 0 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  flex: 0 0 auto;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); background: var(--paper); }
.site-nav a.is-active, .site-nav a[aria-current="page"] { color: white; background: var(--ink); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand);
  color: white;
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.08rem; line-height: 1.1; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 0.68rem; }
.header-actions { display: flex; gap: 8px; }

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover { border-color: var(--ink); }
.icon-button svg, .search-control svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.hero-shell {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
  padding: 18px 0 24px;
}

.eyebrow, .card-label {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; }

.top-features, .content-grid { display: grid; gap: 14px; }
.feature-card, .content-card, .platform-note, .search-section, .pulse-card, .prototype-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-card, .content-card, .platform-note, .pulse-card, .prototype-card {
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover, .content-card:hover, .platform-note:hover, .pulse-card:hover, .prototype-card:hover {
  border-color: #c8beb4;
  box-shadow: 0 20px 46px rgba(43, 34, 28, 0.12);
  transform: translateY(-3px);
}

.feature-card:active, .content-card:active, .platform-note:active, .pulse-card:active, .prototype-card:active {
  transform: translateY(-1px) scale(0.995);
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.feature-card {
  min-height: 210px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.feature-card h2, .content-card h2 { margin-bottom: 9px; font-size: 1.4rem; }
.feature-card p:not(.card-label), .content-card p:not(.card-label), .platform-note p { color: var(--muted); }
.feature-card--deal {
  background: linear-gradient(145deg, #fff8ea, #ffffff 65%);
  border-top: 4px solid var(--gold);
}

.feature-card--product {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 20px;
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.feature-card--product p:not(.card-label) { color: #cfc8c2; }
.feature-card--product .card-label { color: #f0bd68; }
.product-art {
  width: 86px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 45px 45px 20px 20px;
  background: #e7ddd0;
  transform: rotate(-4deg);
}

.product-art span {
  width: 46px;
  height: 46px;
  border: 8px solid var(--brand);
  border-radius: 50%;
  background: #f4c86f;
}

.text-link {
  width: fit-content;
  color: inherit;
  font-weight: 750;
  text-underline-offset: 4px;
}
.text-link:hover { text-decoration-thickness: 2px; }

.wheel-section { padding: 4px 0 24px; }
.wheel-section .section-heading { margin-bottom: 10px; }
.section-heading { margin-bottom: 16px; }
.section-heading h1, .search-section h2 { margin-bottom: 0; font-size: clamp(1.9rem, 7vw, 3rem); }
.section-heading > p { margin: 12px 0 0; color: var(--muted); }
.wheel-layout { display: grid; gap: 26px; align-items: start; }
.wheel-wrap {
  position: relative;
  width: min(calc(100vw - 16px), 580px);
  aspect-ratio: 1;
  margin-inline: auto;
  filter: drop-shadow(0 18px 28px rgba(43, 34, 28, 0.13));
}

.hub-wheel { display: block; width: 100%; height: 100%; overflow: visible; }

/* Wheel 2.0 — Concept C (Bold Editorial). Each wedge is a <g class="wedge">
   wrapping the slice path, an icon, and a label; the whole group lifts
   outward on hover/focus via per-slice CSS custom properties (--liftNx/y),
   since each slice's "outward" direction differs. */
.hub-wheel .wedge {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 200ms ease-in-out, filter 200ms ease-in-out;
}
.hub-wheel a:hover .wedge, .hub-wheel a:focus-visible .wedge { filter: brightness(1.07); }
.hub-wheel a.is-active .wedge { filter: brightness(1.1) saturate(1.05); }
.hub-wheel a:focus { outline: none; }
.hub-wheel a:focus-visible .slice { stroke: #1665a8; stroke-width: 3; }
.hub-wheel a.is-active .slice { stroke: #f4ead4; stroke-width: 2.5; }
.hub-wheel .slice { stroke: #f4ead4; stroke-width: 1.5; }

.hub-wheel .wedge-icon { color: #d9a94a; opacity: 0.92; transition: opacity 200ms ease-in-out, filter 200ms ease-in-out; }
.hub-wheel a:hover .wedge-icon, .hub-wheel a:focus-visible .wedge-icon, .hub-wheel a.is-active .wedge-icon { opacity: 1; filter: brightness(1.3); }

.hub-wheel text {
  fill: #fdf6e9;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.hub-wheel .slice-1 { fill: url(#wheel-g1); }
.hub-wheel .slice-2 { fill: url(#wheel-g2); }
.hub-wheel .slice-3 { fill: url(#wheel-g3); }
.hub-wheel .slice-4 { fill: url(#wheel-g4); }
.hub-wheel .slice-5 { fill: url(#wheel-g5); }
.hub-wheel .slice-6 { fill: url(#wheel-g6); }

/* per-slice outward lift on hover/focus/active — 8px along each wedge's bisector */
.hub-wheel a:nth-of-type(1):hover .wedge, .hub-wheel a:nth-of-type(1):focus-visible .wedge, .hub-wheel a:nth-of-type(1).is-active .wedge { transform: translate(4px, -6.9px) scale(1.035); }
.hub-wheel a:nth-of-type(2):hover .wedge, .hub-wheel a:nth-of-type(2):focus-visible .wedge, .hub-wheel a:nth-of-type(2).is-active .wedge { transform: translate(8px, 0) scale(1.035); }
.hub-wheel a:nth-of-type(3):hover .wedge, .hub-wheel a:nth-of-type(3):focus-visible .wedge, .hub-wheel a:nth-of-type(3).is-active .wedge { transform: translate(4px, 6.9px) scale(1.035); }
.hub-wheel a:nth-of-type(4):hover .wedge, .hub-wheel a:nth-of-type(4):focus-visible .wedge, .hub-wheel a:nth-of-type(4).is-active .wedge { transform: translate(-4px, 6.9px) scale(1.035); }
.hub-wheel a:nth-of-type(5):hover .wedge, .hub-wheel a:nth-of-type(5):focus-visible .wedge, .hub-wheel a:nth-of-type(5).is-active .wedge { transform: translate(-8px, 0) scale(1.035); }
.hub-wheel a:nth-of-type(6):hover .wedge, .hub-wheel a:nth-of-type(6):focus-visible .wedge, .hub-wheel a:nth-of-type(6).is-active .wedge { transform: translate(-4px, -6.9px) scale(1.035); }

.hub-wheel .hub-ring { fill: url(#wheel-hub); stroke: #b8862f; stroke-width: 1.5; }
.hub-wheel .hub-ring-inner { fill: none; stroke: #d9a94a; stroke-width: 1; opacity: 0.55; }
.hub-wheel .hub-emblem {
  fill: #d9a94a;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.platform-note { padding: 26px; }
.platform-note.is-updating { animation: previewIn 220ms ease; }
.platform-note h2 { margin-bottom: 14px; font-size: 1.7rem; }
@keyframes previewIn {
  from { opacity: 0.72; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pizza Styles Explorer (homepage, below the wheel) */
.style-explorer { padding: 8px 0 36px; }
.style-explorer .section-heading { margin-bottom: 16px; }
.style-explorer-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.style-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.style-card:hover { border-color: #c8beb4; box-shadow: 0 20px 46px rgba(43, 34, 28, 0.12); transform: translateY(-3px); }
.style-card__media { aspect-ratio: 4 / 3; background: var(--paper); }
.style-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.style-card__body { padding: 18px 20px 20px; display: grid; gap: 6px; }
.style-card__body h3 { margin: 0; font-size: 1.25rem; }
.style-card__description { margin: 0; color: var(--muted); font-size: 0.92rem; }
.style-card__note { margin: 2px 0 0; color: var(--muted); font-size: 0.8rem; font-style: italic; }
.style-card__actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }

@media (min-width: 680px) {
  .style-explorer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .style-explorer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  background: var(--brand);
  color: white;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.button--dark { background: var(--ink); border-color: var(--ink); }
.icon-external { width: 13px; height: 13px; margin-left: 7px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.content-grid { padding-bottom: 56px; }
.content-card {
  min-height: 230px;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.content-card > div:last-child { flex: 1; }
.avatar-placeholder, .opportunity-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eee6dc;
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 850;
}
.opportunity-icon { border-radius: 14px; background: #e3ece5; color: var(--green); font-size: 1.4rem; }
.poll-card { display: block; }
.poll { display: grid; gap: 8px; margin-top: 16px; }
.poll label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.poll label:hover { border-color: var(--brand); }
.poll input { accent-color: var(--brand); }
.poll .button { margin-top: 4px; }

.vendor-offers { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.vendor-offers .section-heading { margin-bottom: 16px; }
.vendor-offers .section-heading h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
.vendor-offers .section-heading > p { color: var(--muted); font-size: 0.88rem; max-width: 340px; }
.vendor-offers .section-heading > p a { color: inherit; }

.pulse-section { padding-bottom: 24px; }
.pulse-section .section-heading { margin-bottom: 12px; }
.pulse-section .section-heading h2 { margin-bottom: 0; font-size: clamp(1.8rem, 6vw, 2.55rem); }
.pulse-grid { display: grid; gap: 10px; }
.pulse-card { min-height: 96px; padding: 12px 14px; }
.pulse-card h3 { margin-bottom: 5px; font-size: 1.02rem; line-height: 1.14; }
.pulse-card h3 a { text-underline-offset: 4px; }
.pulse-card > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.pulse-cta { display: inline-block; margin-top: 10px; }

.search-section {
  padding: 17px;
  display: grid;
  gap: 16px;
  background: #ebe3d9;
  box-shadow: none;
}
.search-section > div > p:last-child { margin: 12px 0 0; color: var(--muted); }
.search-control {
  min-height: 56px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 15px;
  border: 1px solid #c9beb2;
  border-radius: 14px;
  background: white;
}
.search-control input { min-width: 0; border: 0; outline: 0; background: transparent; }
.search-control button {
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  font-weight: 750;
  cursor: pointer;
}
.search-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; }
.search-examples span { color: var(--muted); font-size: 0.82rem; }
.search-examples button {
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid #c9beb2;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.search-examples button:hover { background: white; }
.placeholder-notice {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: #fff8ea;
  color: var(--muted);
  font-size: 0.9rem;
}

.ticker { border-block: 1px solid #393431; background: var(--ink); color: white; }
.ticker-inner {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
  padding: 14px 0;
  overflow: hidden;
}
.ticker-track { display: block; }
.ticker-set { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ticker-set--duplicate { display: none; }
.ticker p, .ticker a { margin: 0; color: #d8d2cc; font-size: 0.78rem; }
.ticker a { text-decoration: none; }
.ticker a:hover, .ticker a:focus-visible { color: white; text-decoration: underline; text-underline-offset: 3px; }
.ticker span { margin-right: 6px; color: #f0bd68; font-weight: 850; text-transform: uppercase; }

/* Continuous right-to-left crawl — only when the user hasn't asked for
   reduced motion. Without this media query (or in browsers that don't
   support it), the ticker stays the static, wrapping list above: real
   content, no duplication, no animation. This is deliberately CSS-only —
   no JS timer — so there's nothing to fail into a broken state. */
@media (prefers-reduced-motion: no-preference) {
  .ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-crawl 36s linear infinite;
    will-change: transform;
  }
  .ticker-set { flex-wrap: nowrap; gap: 32px; padding-right: 32px; }
  .ticker-set--duplicate { display: flex; }
  .ticker-track a { white-space: nowrap; }
  .ticker-track:hover, .ticker-track:focus-within { animation-play-state: paused; }
}

@keyframes ticker-crawl {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--nav-height);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}
.mobile-nav a {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: clamp(0.57rem, 2.4vw, 0.7rem);
  font-weight: 700;
  text-decoration: none;
}
.mobile-nav a span { color: inherit; font-size: 1.22rem; line-height: 1; }
.mobile-nav a:hover, .mobile-nav a.is-active { color: var(--brand-dark); }

@media (min-width: 680px) {
  .hero-shell { width: min(100% - 56px, 1180px); padding-top: 24px; }
  .header-inner, .ticker-inner, .site-nav { width: min(100% - 56px, 1180px); }
  .top-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
  .section-heading > p { max-width: 290px; margin: 0 0 4px; text-align: right; }
  .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pulse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pulse-card:last-child { grid-column: 1 / -1; }
  .poll-card { grid-column: 1 / -1; }
  .search-section { grid-template-columns: minmax(0, 0.7fr) minmax(340px, 1.3fr); align-items: center; padding: 23px; }
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .brand strong { font-size: 1.2rem; }
  .brand small { font-size: 0.74rem; }
  .feature-card { min-height: 230px; padding: 28px; }
  .wheel-section { padding: 6px 0 32px; }
  .wheel-layout { grid-template-columns: minmax(620px, 1.35fr) minmax(280px, 0.65fr); gap: 64px; }
  .wheel-wrap { width: min(100%, 720px); }
  .platform-note { padding: 34px; }
  .content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pulse-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pulse-card:last-child { grid-column: auto; }
  .poll-card { grid-column: auto; }
  .search-section { padding: 28px; }
  .mobile-nav {
    position: static;
    width: min(100% - 56px, 760px);
    height: 62px;
    margin: 0 auto;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }
  .mobile-nav a { color: #3d3733; font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Shared static prototype page styles */
.prototype-main {
  width: min(100% - 32px, 960px);
  margin-inline: auto;
  padding: 28px 0 64px;
}
.breadcrumb { margin-bottom: 19px; color: var(--muted); font-size: 0.85rem; }
.breadcrumb a { text-underline-offset: 3px; }
.page-hero { max-width: 760px; margin-bottom: 22px; }
.page-hero h1 { margin-bottom: 9px; font-size: clamp(1.9rem, 6.5vw, 3.1rem); }
.page-hero > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.status-badge {
  width: fit-content;
  margin-bottom: 16px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}
.header-admin-actions { display: flex; align-items: center; gap: 12px; }
.header-admin-actions .status-badge { margin-bottom: 0; }
.prototype-grid { display: grid; gap: 14px; }
.prototype-card { min-height: 170px; padding: 22px; }
.prototype-card h2 { margin-bottom: 10px; font-size: 1.35rem; }
.prototype-card p { color: var(--muted); }
.prototype-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* Verification queue summary (admin-image-review.html) */
.review-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.review-card { margin-bottom: 24px; }
.review-actions { flex-wrap: wrap; }
.review-actions--source { margin-top: 10px; align-items: center; gap: 12px; }
.review-io { margin-bottom: 14px; }

/* Google Places candidate search (admin-image-review.html) */
.google-results { margin-bottom: 28px; }
.google-results__grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.google-candidate {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.google-candidate__media { aspect-ratio: 4 / 3; background: var(--paper); }
.google-candidate__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.google-candidate__media p { display: flex; align-items: center; justify-content: center; height: 100%; padding: 12px; text-align: center; font-size: 0.78rem; }
.google-candidate__body { display: flex; flex-direction: column; gap: 6px; padding: 14px; flex: 1; }
.google-candidate__name { margin: 0; font-weight: 800; }
.google-candidate__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.google-candidate > .button { margin: 0 14px 14px; }

/* Google Places photo review grid — step 2 of admin-image-review.html:
   choose one of up to 10 real photos as the cover image. Mirrors
   .google-results/.google-candidate above (step 1: confirm the business). */
.photo-review { margin-bottom: 28px; }
.photo-review__grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.photo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.photo-card--selected { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.photo-card--gallery { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.photo-card--rejected { opacity: 0.55; }
.photo-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--paper); }
.photo-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card__media p { display: flex; align-items: center; justify-content: center; height: 100%; padding: 12px; text-align: center; font-size: 0.78rem; }
.candidate-badge--rejected { background: rgba(23, 20, 18, 0.72); }
.candidate-badge--gallery { background: var(--gold); color: var(--ink); }
.photo-card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px; flex: 1; }
.photo-card__position { margin: 0; font-weight: 800; }
.photo-card__reference {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: monospace;
  font-size: 0.68rem;
}
.photo-card__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 0 14px 14px; }

/* Photo Quality Queue (admin-image-review.html) — businesses flagged
   "needs better cover" from an already-approved business's review card. */
.quality-queue { border-top: 4px solid var(--gold); }
.quality-queue__list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.quality-queue__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.quality-queue__name { margin: 0; font-weight: 800; }

@media (min-width: 680px) {
  .prototype-main { width: min(100% - 56px, 960px); padding-top: 64px; }
  .prototype-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Businesses directory (August MVP) */
.directory-hero { margin-bottom: 15px; }

/* Hero image band (js/visual-assets.js). [hidden] already gets
   display:none from the browser's default stylesheet, so a page with
   no approved asset for its data-hero-media id renders with zero
   layout difference from before this existed — no placeholder image,
   no reserved empty space. */
.hero-media {
  margin-bottom: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--paper);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Homepage only: a shallow editorial strip below the platform intro,
   before the wheel — atmosphere, not the focal point. Fixed height
   (not aspect-ratio) so it stays a strip at every container width. */
.hero-media--home { aspect-ratio: unset; height: 150px; margin-bottom: 12px; }
.page-hero--home { margin-bottom: 14px; }

.quick-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { border-color: #c8beb4; }
.chip--sort.is-active { background: var(--ink); border-color: var(--ink); color: white; }
.chip--style.is-active { background: var(--brand); border-color: var(--brand); color: white; }
.chip-divider { flex: 0 0 auto; width: 1px; height: 24px; background: var(--line); margin: 0 2px; }

.featured-pizzeria {
  position: relative;
  display: grid;
  gap: 0;
  margin-bottom: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.featured-pizzeria__media { position: relative; }
.featured-pizzeria__media img { display: block; width: 100%; height: 220px; object-fit: cover; }
.featured-pizzeria__media .photo-placeholder { height: 220px; }
.featured-pizzeria__body { padding: 22px; }
.featured-pizzeria__body h2 { margin-bottom: 10px; font-size: 1.7rem; }
.featured-pizzeria__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 0.88rem; }
.featured-pizzeria__specialty { margin-top: 4px; }
.featured-pizzeria__actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; }

.rating { display: inline-flex; align-items: center; gap: 3px; font-weight: 750; }
.rating span[aria-hidden] { color: var(--gold); }
.muted { color: var(--muted); font-weight: 500; }
.dot { color: var(--line); }

.status-pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 750; white-space: nowrap; }
.status-pill--open { background: #e3ece5; color: var(--green); }
.status-pill--closed { background: #f5e6e2; color: var(--brand-dark); }
/* Verification-queue states (admin-image-review.html) */
.status-pill--queued { background: #fbeed4; color: #8a5a12; }
.status-pill--muted { background: var(--paper); color: var(--muted); }

.filter-bar {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.filter-field { display: grid; gap: 6px; }
.filter-field--search { grid-column: 1 / -1; }
.filter-field--search .search-control { min-height: 44px; }
.filter-field--search .search-control button { min-height: 32px; padding: 0 12px; background: transparent; color: var(--muted); font-weight: 700; }
.filter-field label { font-size: 0.74rem; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.filter-field select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.filter-toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  cursor: pointer;
}
.filter-toggle input { accent-color: var(--brand); }
.filter-reset { justify-self: start; }

/* Desktop: search/filter container reads as a compact tool, not a
   full-width banner — capped width, left-aligned with the listings below
   it (which stay full width), search+category on one row, and Reset
   sitting inline with the last filter field rather than the toggles. */
@media (min-width: 1024px) {
  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    max-width: 850px;
  }
  .filter-field--search { flex: 0 1 500px; max-width: 520px; min-width: 450px; }
  .filter-field--search .search-control { width: 100%; }
  .filter-field:not(.filter-field--search) { flex: 0 0 150px; min-width: 0; }
  .filter-reset { order: 1; margin-left: 2px; align-self: end; }
  .filter-toggles { order: 2; flex-basis: 100%; }
}

.results-count { margin-bottom: 14px; color: var(--muted); font-size: 0.85rem; }

.business-grid { display: grid; gap: 16px; padding-bottom: 8px; }

.business-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.business-card:hover { border-color: #c8beb4; box-shadow: 0 20px 46px rgba(43, 34, 28, 0.12); transform: translateY(-3px); }
.business-card:active { transform: translateY(-1px) scale(0.995); }
.business-card[hidden] { display: none; }

.business-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--paper); }
.business-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.business-card__media .photo-placeholder { position: absolute; inset: 0; }

/* Editorial fallback card — shown whenever a listing's real photo cannot
   be confidently verified. Deterministic variants (assigned by list
   position, see the `variant` argument each page's card-render function
   passes in) so adjacent cards on the same page don't look identical.
   No cartoon pizza, no giant food illustration — just a restrained
   textured surface, a small line icon, and understated location/category
   text. Textures here are CSS-approximated (gradients/dot patterns), not
   photography — the real texture photography in the Visual Asset Library
   (flour-on-dark-stone, etc.) isn't approved yet; this reuses the site's
   existing palette instead of inventing/faking approved imagery. */
.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  background: linear-gradient(155deg, #f3ece0, var(--paper) 75%);
}
.photo-placeholder[hidden] { display: none; }
.photo-placeholder__icon { width: 34px; height: 34px; opacity: 0.8; }
.photo-placeholder__icon svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.photo-placeholder__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 14px;
}
.featured-pizzeria__media .photo-placeholder__icon,
.business-modal__media .photo-placeholder__icon { width: 48px; height: 48px; }
.featured-pizzeria__media .photo-placeholder__label,
.business-modal__media .photo-placeholder__label { font-size: 0.76rem; }

/* Variant 1 — charcoal, storefront silhouette */
.photo-placeholder--v1 { background: linear-gradient(155deg, #322d28, #171412 78%); }
.photo-placeholder--v1 .photo-placeholder__icon { color: #d9a94a; opacity: 0.85; }
.photo-placeholder--v1 .photo-placeholder__label { color: #cfc6ba; }

/* Variant 2 — warm cream, oven peel */
.photo-placeholder--v2 { background: linear-gradient(155deg, #f3ece0, #e7dcc7 82%); }
.photo-placeholder--v2 .photo-placeholder__icon { color: #8f5a34; }
.photo-placeholder--v2 .photo-placeholder__label { color: var(--muted); }

/* Variant 3 — muted terracotta/charcoal, exterior window */
.photo-placeholder--v3 { background: linear-gradient(155deg, #4a332c, #241d19 82%); }
.photo-placeholder--v3 .photo-placeholder__icon { color: #e2b877; opacity: 0.85; }
.photo-placeholder--v3 .photo-placeholder__label { color: #d8cabc; }

/* Variant 4 — dark stone with a subtle flour-dust dot texture */
.photo-placeholder--v4 {
  background-color: #262220;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(247,244,239,0.16) 0 1.5px, transparent 1.6px),
    radial-gradient(circle at 62% 15%, rgba(247,244,239,0.12) 0 1px, transparent 1.1px),
    radial-gradient(circle at 40% 62%, rgba(247,244,239,0.14) 0 1.5px, transparent 1.6px),
    radial-gradient(circle at 80% 70%, rgba(247,244,239,0.10) 0 1px, transparent 1.1px),
    radial-gradient(circle at 25% 85%, rgba(247,244,239,0.13) 0 1.5px, transparent 1.6px),
    linear-gradient(155deg, #322c27, #201c19 82%);
  background-size: 60px 60px, 70px 70px, 80px 80px, 55px 55px, 65px 65px, 100% 100%;
}
.photo-placeholder--v4 .photo-placeholder__label { color: #cfc6ba; }

/* Approved cover photo + required attribution — only rendered once verifiedBusinessMatch
   and approvedAsCover are both true (see js/businesses.js applyCoverImage). */
.cover-image { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Business logo — the fallback tier between a real photo and the editorial
   placeholder (see applyCoverImage). Shown at its natural aspect ratio,
   never cropped/stretched like a cover photo, on the placeholder's own
   background so a non-square logo still fills the card sensibly. */
.cover-logo {
  position: absolute;
  inset: 0;
  width: 60%;
  height: 60%;
  margin: auto;
  object-fit: contain;
  display: block;
}
.image-attribution {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  margin: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(23, 20, 18, 0.55);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.62rem;
}

/* Candidate photo — admin-image-review.html only. Deliberately distinct from
   .cover-image: a candidate is unreviewed and must never appear on the public
   site until a human approves it (see js/admin-image-review.js). */
.candidate-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.candidate-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(23, 20, 18, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.price-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(23, 20, 18, 0.72);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
}
.deal-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
}
.modal-deals { display: grid; gap: 10px; margin: 4px 0; }
.modal-deals__item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.modal-deals__item p { margin: 2px 0 0; font-size: 0.86rem; color: var(--muted); }
.modal-deals__item h4 { margin: 0; font-size: 0.94rem; }

/* Admin deal manager (admin-image-review.html) */
.deals-manager { margin-top: 20px; }
.deals-manager__list { display: grid; gap: 10px; margin: 14px 0; padding: 0; list-style: none; }
.deals-manager__list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.deals-manager__list li[data-deal-inactive] { opacity: 0.6; }
.deals-manager__list h4 { margin: 0 0 2px; font-size: 0.94rem; }
.deals-manager__list p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.deals-manager__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.deals-manager__form { display: grid; gap: 12px; margin: 14px 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.deals-manager__days { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.deals-manager__days legend { font-size: 0.74rem; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; width: 100%; }
.deals-manager__days label { display: inline-flex; align-items: center; gap: 5px; font-size: 0.85rem; }

.favorite-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
}
.favorite-btn svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.favorite-btn[aria-pressed="true"] { color: var(--brand); border-color: var(--brand); }
.favorite-btn[aria-pressed="true"] svg { fill: var(--brand); }
.business-card > .favorite-btn {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
}
.business-card .card-link::after { z-index: 1; }

.business-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px; }
.business-card__title-row { display: flex; align-items: flex-start; gap: 10px; }
.business-card__logo {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eee6dc;
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-weight: 850;
}
.business-card__title-row h3 { margin-bottom: 2px; font-size: 1.08rem; line-height: 1.2; }
.business-card__address { margin: 0; color: var(--muted); font-size: 0.78rem; }
.business-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.85rem; }
.business-card__styles { display: flex; flex-wrap: wrap; gap: 6px; }
.style-pill {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}
.business-card__description { flex: 1; margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.42; }
.business-card__specialty { margin: 0; font-size: 0.84rem; }
.business-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.business-card__cta { position: relative; z-index: 1; margin-top: 6px; width: 100%; }

.empty-state { padding: 32px 0; color: var(--muted); text-align: center; }

.business-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}
.business-modal[hidden] { display: none; }
.business-modal__backdrop { position: absolute; inset: 0; background: rgba(23, 20, 18, 0.55); }
.business-modal__panel {
  position: relative;
  width: min(100%, 620px);
  max-height: min(88vh, 780px);
  overflow-y: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 70px rgba(23, 20, 18, 0.35);
}
.business-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
}
.business-modal__close svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.business-modal__media { position: relative; }
.business-modal__media img { display: block; width: 100%; height: 220px; object-fit: cover; }
.business-modal__media .photo-placeholder { height: 220px; }
.business-modal__body { padding: 24px; display: grid; gap: 10px; }
.business-modal__body h2 { margin-bottom: 0; font-size: 1.5rem; }
.business-modal__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 0.88rem; }
.business-modal__address { margin: 0; color: var(--muted); }

@media (min-width: 680px) {
  .featured-pizzeria { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .featured-pizzeria__media img,
  .featured-pizzeria__media .photo-placeholder { height: 100%; min-height: 280px; }
  .filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
  .filter-toggles { grid-column: 1 / -1; }
  .business-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-modal__media img,
  .business-modal__media .photo-placeholder { height: 260px; }
}

@media (min-width: 1024px) {
  .business-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
