/* ═══════════════════════════════════════════════════════════════════════
   Отцы (Patristics Tab) — isolated stylesheet
═══════════════════════════════════════════════════════════════════════ */

#panel-patristics {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.pat-wrap {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.pat-header h3 {
  margin: 0 0 .25rem 0;
  font-size: 1.1rem;
}

.pat-provenance {
  margin: 0;
  font-size: .8rem;
  color: #6b6155;
}

.pat-search-bar {
  display: flex;
  gap: .5rem;
}

.pat-input {
  flex: 1;
  padding: .5rem .75rem;
  border: 1px solid #c8a56a55;
  border-radius: 6px;
  font-size: .95rem;
}

.pat-btn {
  padding: .5rem 1rem;
  border: 1px solid #7f1d1d;
  background: #7f1d1d;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: .9rem;
}
.pat-btn:hover { background: #991b1b; }

.pat-results {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.pat-hit {
  padding: .6rem .8rem;
  border: 1px solid #c8a56a33;
  border-radius: 6px;
  background: #fefaf3;
}

.pat-hit-author {
  font-weight: 600;
  font-size: .85rem;
  color: #4c1d95;
  margin-bottom: .25rem;
}

.pat-hit-lang {
  font-weight: 400;
  color: #6b6155;
  font-size: .75rem;
}

.pat-hit-excerpt {
  font-size: .9rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.pat-hint {
  padding: 2rem;
  text-align: center;
  color: #c8a56a99;
  font-size: .9rem;
}

.pat-error {
  color: #b91c1c;
}

@media (prefers-color-scheme: dark) {
  .pat-hit { background: #2a2620; border-color: #c8a56a33; }
  .pat-hit-author { color: #b794f6; }
}
