:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --ink: #111827;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --accent: #0f766e;
  --accent-2: #2563eb;
  --warm: #be123c;
  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
  --tile-min: 220px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(15, 118, 110, .08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 420px);
  color: var(--ink);
  font-size: 15px;
}

body.bg-fixed {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .76) 42%, rgba(255, 255, 255, .36) 100%),
    url("/images/backgrounds/podies-hero-fixed-a.webp") center / cover fixed no-repeat,
    var(--bg);
}

body.bg-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86) 0%, rgba(248, 250, 252, .72) 440px, rgba(248, 250, 252, .96) 860px),
    url("/images/backgrounds/podies-hero-section-b.webp") center top / 100% auto no-repeat,
    var(--bg);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 66px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: baseline;
  font-size: 34px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .03em;
  white-space: nowrap;
}

.brand-hot,
.footer-brand span {
  color: var(--accent);
}

.main-nav,
.right-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.main-nav { justify-content: center; }
.right-tools { justify-content: end; }

.nav-button,
.tool-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 12px;
  background: transparent;
  color: #334155;
  white-space: nowrap;
}

.nav-button:hover,
.tool-button:hover {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

.catalogue-page {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px 22px 0;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.25fr);
  gap: 22px 34px;
  align-items: end;
  margin: 12px 0 26px;
  padding-bottom: 8px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.result-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-route {
  display: inline-block;
}

.home-route:hover {
  color: var(--accent-2);
}

.home-route:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .45);
  outline-offset: 4px;
  border-radius: 4px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 7vw, 82px);
  line-height: .95;
  letter-spacing: 0;
}

.hero-home-link {
  display: inline-block;
}

.hero-home-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .55);
  outline-offset: 8px;
  border-radius: 8px;
}

.text-shimmer {
  display: inline-block;
  color: transparent;
  background:
    linear-gradient(
      105deg,
      #111827 0%,
      #111827 34%,
      #0f766e 45%,
      #2563eb 50%,
      #111827 62%,
      #111827 100%
    );
  background-size: 260% 100%;
  background-position: 130% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: heading-shimmer 7.6s ease-in-out infinite;
}

@keyframes heading-shimmer {
  0%,
  24% { background-position: 130% 0; }
  62%,
  100% { background-position: -130% 0; }
}

.hero-lead {
  max-width: 620px;
  margin: 18px 0 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.45;
}

.intent-box {
  grid-column: 2;
  display: grid;
  align-self: center;
  min-width: 0;
}

.search-tabs {
  grid-template-columns: 1fr;
  align-items: end;
  filter: drop-shadow(0 18px 42px rgba(15, 23, 42, .1));
}

.tab-radio {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.tab-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 0 18px;
  background: #e8edf2;
  color: #475569;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.tab-label:hover {
  background: #f8fafc;
  color: var(--ink);
}

#tab-manual:checked + .tab-label {
  min-height: 54px;
  background: #fff;
  color: var(--accent);
  transform: translateY(1px);
}

.tab-panels {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 0 8px 8px;
  background: rgba(255, 255, 255, .98);
}

.tab-panel {
  display: none;
  gap: 12px;
  padding: 18px;
}

#tab-ai:checked ~ .tab-panels .tab-panel-ai,
#tab-manual:checked ~ .tab-panels .tab-panel-manual {
  display: grid;
}

.field-title,
.tab-panel-manual label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.tab-panel-ai textarea {
  min-width: 0;
  width: 100%;
  min-height: 118px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px 16px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  outline: 0;
  resize: vertical;
}

.tab-panel-ai textarea:focus,
.tab-panel-manual select:focus {
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .14);
}

.tab-panel-manual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tab-panel-manual .intent-actions {
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
}

.tab-panel-manual select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 10px;
  background: #f8fafc;
  color: var(--ink);
  text-transform: none;
}

.intent-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.intent-actions button,
.load-row button,
.facet-head button,
.active-chips button,
.suggestion-rail button {
  border: 0;
  border-radius: 999px;
}

.intent-actions button {
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.intent-actions button:first-child {
  background: #15803d;
  color: #fff;
}

.intent-actions button:last-child {
  background: var(--surface-2);
  color: #334155;
}

.shelf-summary {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(240, 253, 250, .82);
  color: #115e59;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.suggestion-rail {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-rail button,
.active-chips button {
  min-height: 34px;
  padding: 7px 12px;
  background: #e0f2fe;
  color: #075985;
  font-size: 13px;
  font-weight: 750;
}

.suggestion-rail button:nth-child(2n) { background: #dcfce7; color: #166534; }
.suggestion-rail button:nth-child(3n) { background: #ffe4e6; color: #9f1239; }

.pilot-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 0;
}

.pilot-stats div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .72);
}

.pilot-stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.pilot-stats dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 25px;
  font-weight: 850;
}

.catalogue-shell {
  display: block;
}

.facet-panel {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.category-facet-panel {
  position: static;
  margin-bottom: 28px;
}

.facet-head,
.facet-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.facet-head { justify-content: space-between; }

.facet-head h2,
.results-head h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.facet-head button {
  min-height: 30px;
  padding: 5px 10px;
  background: var(--surface-2);
  color: #334155;
}

.facet-panel.is-collapsed label {
  display: none;
}

.facet-panel label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.facet-panel select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  text-transform: none;
}

.results-panel {
  min-width: 0;
}

.results-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin: 0 0 14px;
}

.active-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.results-tools {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.image-size-toggle {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.image-size-toggle:hover {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.size-icon {
  display: grid;
  grid-template-columns: 7px 11px;
  grid-template-rows: 7px 11px;
  gap: 3px;
  align-items: end;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.size-icon span {
  display: block;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.size-icon span:nth-child(1) { width: 7px; height: 7px; opacity: .62; }
.size-icon span:nth-child(2) { width: 11px; height: 7px; opacity: .78; }
.size-icon span:nth-child(3) { width: 7px; height: 11px; opacity: .78; }
.size-icon span:nth-child(4) { width: 11px; height: 11px; }

.active-chips button::after {
  content: " x";
  color: rgba(7, 89, 133, .7);
}

.pod-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--tile-min), 1fr));
  align-content: start;
  align-items: start;
  gap: 16px;
}

@media (min-width: 721px) {
  .pod-grid.is-home-reserved {
    min-height: 6500px;
  }
}

.pod-card,
.category-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .055);
}

.media-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f1f5f9;
}

.media-link::before {
  content: "Image pending";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.media-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 32%,
    rgba(255, 255, 255, .58) 46%,
    rgba(255, 255, 255, .16) 55%,
    transparent 68%,
    transparent 100%
  );
  transform: translateX(-130%);
  opacity: 0;
}

.media-link img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .22s ease, filter .22s ease;
  z-index: 1;
}

.media-link img.image-error {
  opacity: 0;
}

.pod-card:hover .media-link img {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.03);
}

.pod-card:hover .media-link::after,
.pod-card:focus-within .media-link::after {
  opacity: 1;
  animation: image-shimmer 3.8s ease-in-out infinite;
}

@keyframes image-shimmer {
  0% { transform: translateX(-130%); }
  54%,
  100% { transform: translateX(130%); }
}

@media (prefers-reduced-motion: reduce) {
  .text-shimmer {
    color: var(--ink);
    background: none;
    animation: none;
  }

  .pod-card:hover .media-link::after,
  .pod-card:focus-within .media-link::after {
    animation: none;
    opacity: 0;
  }
}

.pod-copy {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.card-title h2,
.pod-copy h2 {
  display: -webkit-box;
  min-height: 38px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 820;
}

.pod-copy h2 a,
.pod-copy p a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.pod-copy h2 a {
  min-height: 28px;
}

.pod-copy p a {
  min-height: 74px;
}

.pod-copy h2 a:hover,
.pod-copy p a:hover {
  color: var(--accent);
}

.pod-copy p {
  display: -webkit-box;
  min-height: 74px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  color: #475569;
  font-size: 13px;
  line-height: 1.42;
}

.source-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.source-row span,
.source-row a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-row a {
  color: inherit;
}

.source-row a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.price-row {
  color: #0f766e;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 32px;
}

.chip-row span,
.chip-row a,
.chip-row button,
.corner-badge {
  border: 0;
  border-radius: 999px;
  padding: 6px 9px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 750;
}

.chip-row a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  text-decoration: none;
}

.chip-row button {
  min-height: 30px;
}

.chip-row a:hover,
.chip-row button:hover {
  background: #ccfbf1;
  color: #115e59;
}

.corner-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  background: rgba(255, 255, 255, .9);
  color: var(--accent);
  z-index: 3;
}

.empty-state {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 36px;
  background: rgba(255, 255, 255, .72);
  text-align: center;
}

.empty-state h3 { margin: 0 0 8px; font-size: 22px; }
.empty-state p { margin: 0; color: var(--muted); }

.load-row {
  display: flex;
  justify-content: center;
  margin: 26px 0 8px;
}

.load-row button {
  min-height: 42px;
  padding: 8px 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.site-footer {
  max-width: 1480px;
  margin: 46px auto 0;
  padding: 28px 22px 44px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.footer-bottom p {
  max-width: 720px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.footer-bottom .privacy-note {
  max-width: 860px;
  color: #475569;
}

.footer-bottom a { color: var(--accent); }
.footer-bottom nav { display: grid; gap: 8px; font-size: 13px; }
.ai-resource-panel {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.72);
}
.ai-resource-panel h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
}
.ai-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ai-resource-links a,
.copy-ai-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(14, 165, 233, 0.08);
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}
.copy-ai-button {
  cursor: pointer;
  font: inherit;
}
.ai-resource-panel textarea {
  width: 100%;
  min-height: 150px;
  margin-top: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
  color: var(--ink);
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}
.ai-resource-panel pre {
  overflow-x: auto;
  margin: 12px 0 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
  color: var(--ink);
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.copy-ai-status {
  min-height: 20px;
}

.page {
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px;
}

.page-title,
.category-head h1 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.15;
}

.filter-row,
.tag-cloud,
.related div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill,
.related a,
.tag-cloud a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff;
  color: #334155;
  font-size: 12px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.store-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .045);
}

.store-card:hover {
  border-color: #99f6e4;
  box-shadow: 0 12px 28px rgba(15, 118, 110, .12);
}

.store-thumb {
  position: relative;
  display: block;
  width: calc(100% + 28px);
  margin: 0 -14px 5px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef2f7;
}

.store-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .22s ease, filter .22s ease;
}

.store-card:hover .store-thumb img {
  transform: scale(1.025);
  filter: saturate(1.05) contrast(1.02);
}

.store-thumb.is-empty {
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.store-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 840;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-domain,
.store-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-screenshot {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.store-profile {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(280px, 1.05fr);
  gap: 22px;
  align-items: stretch;
  margin: 0 0 24px;
}

.store-profile .store-screenshot {
  min-height: 100%;
}

.store-profile-copy {
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.store-profile-copy h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.15;
}

.store-profile-copy p {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
}

.store-profile-copy .profile-source {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.store-profile-copy a {
  color: var(--accent);
}

.store-screenshot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: #eef2f7;
}

.store-screenshot figcaption {
  margin: 0;
  padding: 9px 11px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.store-screenshot.is-empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.records {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 14px 60px;
}

.records a { color: var(--accent); overflow-wrap: anywhere; }
.records h1 { margin: 0 0 8px; font-size: 34px; }
.lead { color: var(--muted); margin: 0 0 22px; }
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
}

.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.pager span {
  color: var(--ink);
  font-weight: 760;
}

.record { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 16px; border-top: 1px solid var(--line); padding: 18px 0; }
.image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.details h2 { margin: 0 0 8px; font-size: 20px; }
.summary { font-size: 16px; line-height: 1.4; margin: 0 0 12px; }
dl { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 6px 12px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; }

@media (max-width: 980px) {
  :root { --tile-min: 190px; }
  .hero-panel,
  .catalogue-shell,
  .store-profile {
    grid-template-columns: 1fr;
  }
  .intent-box,
  .suggestion-rail {
    grid-column: 1;
  }
  .search-tabs {
    grid-template-columns: 1fr;
  }
  .facet-panel {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facet-head { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --tile-min: 156px; }
  .nav-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 0 12px;
  }
  .brand { font-size: 29px; }
  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  .main-nav .nav-button { flex: 0 0 auto; }
  .right-tools { grid-column: 2; }
  .catalogue-page { padding: 12px 12px 0; }
  .hero-copy h1 { font-size: 43px; }
  .hero-lead { font-size: 16px; }
  .search-tabs {
    grid-template-columns: 1fr 1fr;
  }
  .tab-label {
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 0 10px;
    text-align: center;
  }
  #tab-manual:checked + .tab-label {
    min-height: 48px;
  }
  .tab-panels {
    border-radius: 0 0 8px 8px;
  }
  .tab-panel {
    padding: 13px;
  }
  .tab-panel-ai textarea {
    min-height: 86px;
    font-size: 16px;
  }
  .tab-panel-manual {
    grid-template-columns: 1fr;
  }
  .tab-panel-manual .intent-actions,
  .intent-actions {
    grid-template-columns: 1fr;
  }
  body.bg-fixed {
    background-attachment: scroll;
    background-position: 58% top;
  }
  .intent-actions button { min-height: 46px; }
  .results-head {
    display: grid;
    align-items: start;
  }
  .active-chips { justify-content: start; }
  .pod-grid { gap: 10px; }
  .pod-copy { padding: 9px; }
  .pod-copy h2 { font-size: 13px; min-height: 33px; }
  .pod-copy p { font-size: 12px; }
  .footer-bottom { grid-template-columns: 1fr; }
  .record { grid-template-columns: 1fr; }
  dl { grid-template-columns: 1fr; }
}

.discovery-hub {
  margin: 8px 0 26px;
  overflow-wrap: anywhere;
}

.discovery-hub-title {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 34px);
  letter-spacing: 0;
}

.discovery-hub-intro {
  margin: 10px 0 14px;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.4;
}

.discovery-hub-nav {
  max-width: 100%;
}

.discovery-hub-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.discovery-hub-links li {
  margin: 0;
}

.discovery-hub-links a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  min-height: 36px;
  background: #ffffff;
  color: #1e293b;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
}

.discovery-hub-links a:hover,
.discovery-hub-links a:focus-visible {
  border-color: #cbd5e1;
  color: var(--accent);
}

.discovery-hub-links a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .45);
  outline-offset: 2px;
}

@media (max-width: 680px) {
  .discovery-hub-title {
    font-size: 30px;
  }

  .discovery-hub-links a {
    padding: 7px 10px;
    font-size: 14px;
    min-height: 34px;
  }
}
