/* Discovered company directory - extends the shared brand tokens. */
.discovered-lede,
.discovered-intro {
  max-width: 760px;
  margin: 0 auto 1rem;
  text-align: center;
  color: var(--text-secondary);
}

.discovered-lede {
  margin-top: -1rem;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 600;
}

.discovered-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem;
  margin: 2rem 0 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-card);
}

.discovered-tools h2 {
  flex-basis: 100%;
  font-size: 1.1rem;
}

.discovered-field {
  flex: 1 1 240px;
  min-width: 0;
}

.discovered-field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.discovered-field input,
.discovered-field select,
.discovered-tools button {
  min-height: 44px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font: inherit;
}

.discovered-field input,
.discovered-field select {
  width: 100%;
  color-scheme: dark;
}

.discovered-field input::placeholder {
  color: var(--text-muted);
}

.discovered-tools button {
  color: var(--accent);
  cursor: pointer;
}

.discovered-tools :disabled {
  opacity: 0.6;
  cursor: wait;
}

.discovered-tools :focus-visible,
.discovered-actions a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.discovered-status,
.discovered-empty {
  color: var(--text-muted);
  margin: 1rem 0;
}

.discovered-list {
  display: grid;
  gap: 1.25rem;
}

.discovered-row {
  display: grid;
  grid-template-columns: minmax(180px, 28%) minmax(0, 1fr);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
}

.discovered-row[hidden] {
  display: none;
}

.discovered-image {
  width: 100%;
  height: auto;
  align-self: center;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--bg-secondary);
}

.discovered-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  padding: 1.35rem;
  overflow-wrap: anywhere;
}

.discovered-body h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  line-height: 1.25;
}

.discovered-product {
  color: var(--accent);
  font-size: 0.9rem;
}

.discovered-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 0.9rem;
}

.discovered-meta dt {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.discovered-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.discovered-actions {
  margin-top: auto;
  text-align: right;
}

.discovered-actions a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--accent);
  font-weight: 600;
}

.dr-links .dr-request {
  margin-left: auto;
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-weight: 700;
}

.dr-links .dr-request:hover {
  background: var(--accent);
  color: var(--color-black);
  text-decoration: none;
}

.discovered-actions a:hover {
  text-decoration: underline;
}

.request-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-card);
}

.request-intro {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.request-field {
  margin-bottom: 1rem;
}

.request-field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.request-field input {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font: inherit;
}

.request-field input:focus-visible,
.request-submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.request-field input[readonly] {
  color: var(--text-muted);
}

.request-submit {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--color-black);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.request-note,
.request-status {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.discovered-website-unavailable {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .discovered-row {
    grid-template-columns: 1fr;
  }

  .discovered-image {
    max-width: 280px;
    justify-self: center;
  }

  .discovered-tools button {
    width: 100%;
  }
}
