/* Gazoomi placeholder palette (Gazoomi's own; replaced when Edward approves the brand). */
:root {
  --gz-ink: #1b2430;
  --gz-paper: #fbfaf7;
  --gz-teal: #0b6e69;
  --gz-teal-dark: #08504c;
  --gz-plum: #5b2a86;
  --gz-line: #d9d6cf;
  --gz-focus: #5b2a86;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--gz-ink);
  background: var(--gz-paper);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
a { color: var(--gz-teal-dark); }
:focus-visible { outline: 3px solid var(--gz-focus); outline-offset: 2px; }

.visually-hidden {
  position: absolute; 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: 8px; top: -48px; padding: 8px 12px; background: #fff; z-index: 10; }
.skip-link:focus { top: 8px; }

.site-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 8px 16px; background: var(--gz-teal); color: #fff;
}
.wordmark { display: inline-flex; align-items: center; min-height: 44px; }
.search { display: flex; flex: 1 1 420px; min-width: 0; }
.search select, .search input, .search button {
  min-height: 44px; font: inherit; border: 1px solid var(--gz-line); padding: 0 10px;
}
.search select { border-radius: 8px 0 0 8px; background: #f1efe9; max-width: 40%; }
.search input { flex: 1; min-width: 0; }
.search button { border-radius: 0 8px 8px 0; background: var(--gz-plum); color: #fff; cursor: pointer; }
.header-links { display: flex; gap: 8px; }
.header-links a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px;
  padding: 0 8px; color: #fff; text-decoration: none; border-radius: 8px;
}
.header-links a:hover { background: var(--gz-teal-dark); }
.agent-bar { margin-left: auto; }
.icon { width: 22px; height: 22px; fill: currentColor; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; }

.category-bar { background: var(--gz-teal-dark); }
.category-bar ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0 12px; list-style: none; }
.category-bar a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: #fff; text-decoration: none;
}
.menu-toggle {
  display: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  font: inherit; color: #fff; background: transparent; border: 0;
}

main { padding: 16px; max-width: 1200px; margin: 0 auto; }
.site-footer { padding: 24px 16px; border-top: 1px solid var(--gz-line); font-size: 0.95rem; }

@media (max-width: 640px) {
  .search { flex-basis: 100%; order: 3; }
  .menu-toggle { display: inline-flex; }
  .category-bar.js ul { display: none; }
  .category-bar.js.open ul { display: flex; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Listing cards (US1) */
.listings { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.listing { background: #fff; border: 1px solid var(--gz-line); border-radius: 12px; padding: 12px 16px; }
.listing-name { margin: 0 0 4px; font-size: 1.15rem; }
.listing-name a, .category-list a, .listing-categories a {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px;
}
.category-list { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; list-style: none; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; }
.badge-allowed { background: #dff3ee; color: #08504c; }
.badge-partly { background: #fff1d6; color: #6a4300; }
.badge-blocks { background: #fde2e1; color: #8a1c17; }
.badge-unknown { background: #ecebe7; color: #3d3a33; }
.paid-label:not(:empty) { padding: 2px 8px; border: 1px solid var(--gz-ink); border-radius: 4px; font-size: 0.85rem; }
.acts { margin: 0 0 8px; padding-left: 18px; }
.acts abbr { font-weight: 700; text-decoration: none; border-bottom: 1px dotted; }
.checked, .endorsement { margin: 4px 0; font-size: 0.92rem; }
.fresh { font-weight: 700; padding: 0 4px; border-radius: 4px; }
.fresh-live { color: #08504c; }
.fresh-stale { color: #6a4300; background: #fff1d6; }
.fresh-unknown { color: #3d3a33; background: #ecebe7; }
