/* Shared additions for the classics, transcription notices, and site search. */
.content-notice, .attribution-box {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border, #aaa);
  border-radius: .5rem;
}
.content-notice { border-inline-start: .3rem solid var(--accent, #9a652e); }
.content-notice h2, .attribution-box h2 { margin-top: 0; }
.attribution-box { font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.attribution-box dt { font-weight: 600; }
.attribution-box dd { margin-inline-start: 1rem; }
.library-toc ol { columns: 2 12rem; }
.library-toc li { break-inside: avoid; }
.library-section { scroll-margin-top: 6rem; }
.library-section p { white-space: pre-line; line-height: 1.85; }
.doubt-notice {
  display: inline;
  padding: .15rem .4rem;
  border: 1px solid currentColor;
  border-radius: .25rem;
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg-soft, #777);
}
.search-form label { display: block; margin-bottom: .5rem; }
.search-controls { display: flex; gap: .5rem; }
.search-controls input, .search-controls button {
  font: inherit;
  color: inherit;
  background: var(--bg, transparent);
  border: 1px solid var(--border, #aaa);
  border-radius: .35rem;
  padding: .6rem .8rem;
}
.search-controls input { flex: 1; min-width: 0; }
.search-controls button { cursor: pointer; }
.search-form select { font: inherit; color: inherit; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: .35rem; padding: .6rem .8rem; margin-bottom: 1rem; max-width: 100%; }
.search-category-label, .search-language-label {
  display: inline-block; font-size: 14px; line-height: 1.45; border: 1px solid var(--border);
  border-radius: .25rem; padding: .05rem .4rem; margin: 0 .4rem .35rem 0;
}
.search-category-label { color: var(--accent); }
.search-language-label { color: var(--fg-muted); }
.search-results { padding-inline-start: 1.5rem; }
.search-results li { padding: .8rem 0; border-bottom: 1px solid var(--border, #aaa); }
.search-results h2 { font-size: 1.15rem; margin: 0 0 .4rem; }
.search-results p { margin: 0; overflow-wrap: anywhere; }
.search-results mark { color: #151515; background: #f3d776; }
.library-poem .library-section p { white-space: pre-line; }

.search-results-heading { margin: 28px 0 8px; font-size: 1.25rem; }
