/* =====================================================================
   Earshot product page (/earshot). Page-specific styles only.
   ===================================================================== */

/* Screenshots */
.es-shot {
  margin: 0;
}

.es-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #15171c;
  box-shadow:
    0 1px 0 rgba(30, 30, 30, 0.04),
    0 30px 60px -30px rgba(30, 30, 30, 0.22),
    0 14px 28px -14px rgba(30, 30, 30, 0.10);
}

.es-shot figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.es-shot--wide {
  margin-top: 56px;
}

.es-hero-shot {
  display: block;
  width: 100%;
  height: auto;
}

.es-hero-note {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin: 12px 0 0;
  text-align: center;
}

/* Diagrams */
.es-diagram {
  margin: 0;
}

.es-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.es-diagram text {
  font-family: var(--sans);
}

.es-diagram .es-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.es-diagram--narrow {
  display: none;
  max-width: 420px;
  margin: 0 auto;
}

.es-diagram figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
}

.es-diagram-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.es-diagram-wrap + .steps {
  margin-top: 40px;
}

/* Filter examples */
.es-code {
  margin: 0;
  background: #1F1F1F;
  color: #F2F2F2;
  border-radius: var(--radius);
  padding: 22px 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.75;
  overflow-x: auto;
  white-space: pre;
  max-width: 100%;
}

.es-code .c { color: #9C9C9C; }
.es-code .t { color: #F7A6A4; }

/* Triage labels */
.es-triage {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 480px;
}

.es-triage li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.es-triage b {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}

.es-triage b::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
  background: var(--text-soft);
}

.es-triage .is-respond b::before { background: #2E9E5B; }
.es-triage .is-monitor b::before { background: #3D7BD9; }
.es-triage .is-escalate b::before { background: var(--accent); }

/* Reddit detail panel and tool list */
.es-panel {
  margin-top: 40px;
}

.es-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  max-width: 480px;
}

.es-tools li {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  background: var(--accent-soft);
  color: var(--accent-2);
  border-radius: 6px;
  padding: 4px 9px;
}

.two-up__visual img {
  max-width: 100%;
}

/* Let grid columns shrink so the code sample scrolls inside its box, not the page */
.two-up__row > * {
  min-width: 0;
}

.build-card h3 {
  overflow-wrap: anywhere;
}

/* Responsive */
@media (max-width: 900px) {
  .es-diagram--wide { display: none; }
  .es-diagram--narrow { display: block; }
  .es-diagram-wrap { padding: 24px 18px; }
}

@media (max-width: 640px) {
  .es-triage { grid-template-columns: 1fr; }
  .es-code { font-size: 0.78rem; padding: 18px; }
  .es-shot--wide { margin-top: 40px; }
  .es-diagram-wrap { padding: 20px 12px; }
}
