/* Broker dossier — Pico CSS overrides (light mode, compact) */

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="light"] {
  --pico-line-height: 1.5;
}

h1 {
  font-size: 1.35rem;
}

h2 {
  font-size: 1.1rem;
}

h3,
h4 {
  font-size: 1rem;
}

/* Search: input + button on one row, matched height */
form.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.5rem;
  align-items: center;
  max-width: 36rem;
}

form.search-form label {
  grid-column: 1 / -1;
  margin-bottom: 0;
  font-size: 0.8125rem;
}

form.search-form input[type="search"],
form.search-form input:not([type]) {
  margin: 0;
  min-height: 2.125rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.875rem;
  line-height: 1.25;
}

form.search-form button[type="submit"] {
  margin: 0;
  min-height: 2.125rem;
  height: 2.125rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.875rem;
  line-height: 1.25;
  white-space: nowrap;
}

/* Secondary action buttons — less tall */
a[role="button"].secondary {
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
}

.panel-risk {
  padding: 0.85rem;
  border-radius: var(--pico-border-radius);
  border: 1px solid var(--pico-muted-border-color);
}

.panel-ok {
  border-color: #2e7d32;
}

.panel-warn {
  border-color: #ed6c02;
}

.panel-critical {
  border-color: #c62828;
}

.flag-ok {
  color: var(--pico-color);
}

.flag-warn {
  color: #ed6c02;
}

.flag-critical {
  color: #c62828;
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

iframe {
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
}

/* Compact tables on dossier pages */
figure table {
  font-size: 0.8125rem;
}

footer small {
  font-size: 0.75rem;
}

.source-live,
.source-configured {
  color: #2e7d32;
  font-weight: 600;
}

.source-sandbox {
  color: #ed6c02;
  font-weight: 600;
}

.source-optional {
  color: var(--pico-muted-color);
}

.source-unavailable {
  color: #c62828;
}
