/* Sprayed? — full-page Chemical guide. Scoped under .guide-page (added by mountGuide). */

.guide-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px var(--gutter) 48px;
  color: var(--ink);
}

.guide-page .gp-head {
  max-width: 68ch;
  margin-bottom: 20px;
}

.guide-page .gp-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.1;
}

.guide-page .gp-title:focus {
  outline: none;
}

.guide-page .gp-title:focus-visible {
  outline: 3px solid var(--upcoming);
  outline-offset: 4px;
  border-radius: 6px;
}

.guide-page .gp-intro {
  margin: 0 0 8px;
  font-size: 17px;
}

.guide-page .gp-note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Controls */

.guide-page .gp-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.guide-page .gp-search {
  flex: 1 1 320px;
  max-width: 560px;
  min-width: 0;
}

.guide-page .gp-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.guide-page .gp-input,
.guide-page .gp-select {
  width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  border: var(--border-thin);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* no iOS zoom */
  box-shadow: var(--shadow-xs);
}

.guide-page .gp-select {
  padding-right: 34px;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  font-weight: 700;
  cursor: pointer;
}

.guide-page .gp-kinds {
  order: 3;
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* The shared .chip count badge is white; keep its text ink on the ink-filled pressed chip. */
.guide-page .gp-kind .count {
  color: var(--ink);
}

.guide-page .gp-sort {
  flex: 0 0 auto;
  width: 150px;
}

.guide-page .gp-status {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Grid of sticker cards */

.guide-page .gp-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.guide-page .gp-grid > li {
  display: flex;
  min-width: 0;
}

.guide-page .gp-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-height: 44px;
  padding: 16px 16px 14px;
  margin: 0;
  text-align: left;
  color: var(--ink);
  font: inherit;
  border: var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.guide-page .gp-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow);
}

.guide-page .gp-card:active {
  transform: translate(1px, 1px);
  box-shadow: var(--shadow-xs);
}

.guide-page .gp-card:focus-visible {
  outline: 3px solid var(--upcoming);
  outline-offset: 3px;
}

.guide-page .gp-card-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.guide-page .gp-name {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.guide-page .gp-rank {
  flex: 0 0 auto;
  padding: 1px 8px;
  border: var(--border-thin);
  border-radius: 999px;
  background: var(--recent-soft);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.guide-page .gp-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.guide-page .gp-count {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.guide-page .gp-sum {
  font-size: 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-page .gp-more {
  margin-top: auto;
  padding-top: 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.guide-page .gp-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Empty state */

.guide-page .gp-empty {
  padding: 24px 20px;
  border: 2px dashed var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface);
  text-align: center;
}

.guide-page .gp-empty p {
  margin: 0 0 12px;
  font-weight: 600;
}

/* Phones */

@media (max-width: 600px) {
  .guide-page {
    padding-top: 16px;
  }

  .guide-page .gp-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .guide-page .gp-search,
  .guide-page .gp-sort,
  .guide-page .gp-kinds {
    flex: 0 0 auto;
    width: 100%;
  }

  .guide-page .gp-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-page .gp-card {
    transition: none;
  }

  .guide-page .gp-card:hover,
  .guide-page .gp-card:active {
    transform: none;
  }
}

/* County stream testing marker (streams.json) */
.guide-page .gp-stream {
  padding: 0 7px;
  border: 1.5px dashed var(--ink);
  border-radius: 999px;
  background: #E3F3FA;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.6;
}

/* Label hazards: "Who labels warn about" (hazards.json). Icon + text, never color alone. */
.guide-page .gp-hazards {
  order: 4;
  flex: 1 0 100%;
  min-width: 0;
}

.guide-page .gp-hz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-page .gp-hz-filter .count {
  color: var(--ink);
}

.guide-page .gp-hz-note {
  max-width: 68ch;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.guide-page .gp-hz-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 8px;
  border-top: 2px dashed var(--hairline);
}

.guide-page .gp-hz-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.guide-page .gp-hz-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.guide-page .gp-hz-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px 1px 5px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.guide-page .gp-hz-chip.is-high {
  border-width: 3px;
  border-style: double;
  font-weight: 800;
}

.guide-page .gp-hz-i {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* People chip echoes the signal-word chip styles (Danger = ink fill). */
.guide-page .gp-hz-people.sw-warning {
  background: #E6D8B8;
}

.guide-page .gp-hz-people.sw-danger {
  background: var(--ink);
  color: #FFFFFF;
}

/* Dogs & pets / Children: label precautions (dashed outline), or solid + bold when a label says harmful.
   The visually hidden text says which, so the style is never the only cue. */
.guide-page .gp-hz-aud.is-precaution {
  border-style: dashed;
}

.guide-page .gp-hz-aud.is-toxic {
  font-weight: 800;
}

.guide-page .gp-hz-filter .gp-hz-i {
  margin-right: -2px;
}
