/* Qumrán notes in Conocimiento (tag #qumran): parchment look ported from
   the QDR template (qumran.dev, MIT), restored after the archaeology
   vertical was removed. Only .qm-note / .qm-photos / .qm-edit. */
@font-face {
  font-family: 'QumranScroll';
  src: url('/data/fonts/4Q416jan.ttf') format('truetype');
  font-display: swap;
}

.qm-photos {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(122, 92, 40, 0.3);
}
.qm-photos-h {
  font: 700 0.7rem/1 Georgia, serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8a5a1a;
  margin-bottom: 0.6rem;
}
.qm-photos figure { background: rgba(0, 0, 0, 0.06); border-color: rgba(122, 92, 40, 0.25); }
.qm-photos img { height: auto; max-height: 22rem; object-fit: contain; }
.dark .qm-photos { border-top-color: rgba(218, 165, 32, 0.2); }
.dark .qm-photos-h { color: #DAA520; }
.dark .qm-photos figure { background: rgba(0, 0, 0, 0.3); border-color: rgba(218, 165, 32, 0.18); }
/* Qumrán notes (Conocimiento, public reader + admin reading view): QDR look.
   Wooden rollers on both edges, parchment between; the Hebrew lines use the
   admin's Mar Muerto font ('QmNote', injected by KnMd.qumran). Each fragment
   (## f1) is a gold reference; the photo embedded under it shows below its
   text. Spanish lines stay LTR (unicode-bidi: plaintext). */
.kn-md.qm-note {
  padding: 1.75rem 1.5rem;
  border-radius: 14px;
  color: #3f3220;
  background: #f2e7cf;
  box-shadow: none;
}
.qm-note p, .qm-note li {
  font-family: 'QmNote', 'QumranScroll', 'Times New Roman', serif;
  font-size: 1.7rem;
  line-height: 2;
  unicode-bidi: plaintext;
  text-align: start;
}
.qm-note p:not(:has(> strong:first-child)) { font-family: Georgia, serif; font-size: 1rem; }
.qm-note p strong {
  font: 400 0.7rem Georgia, serif;
  color: #8a5a1a;
  opacity: 0.75;
  margin-inline-end: 0.5em;
  vertical-align: middle;
}
.qm-note h1, .qm-note h2, .qm-note h3 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #8a5a1a;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 1.75rem 0 0.25rem;
  direction: ltr;
}
.qm-note img {
  display: block;
  max-width: 100%;
  max-height: 26rem;
  margin: 0.75rem auto 0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.dark .kn-md.qm-note {
  color: #E6D7C3;
  background: #2a2014;
  box-shadow: none;
}
.dark .qm-note h1, .dark .qm-note h2, .dark .qm-note h3,
.dark .qm-note p strong { color: #DAA520; }
@media (max-width: 640px) {
  .kn-md.qm-note { padding: 1rem 0.75rem; }
  .qm-note p, .qm-note li { font-size: 1.35rem; }
}

/* Admin editor of a Qumrán note: square Hebrew (the scroll font is only for
   the reading view / preview). */
.qm-edit .kn-cm .cm-content {
  font-family: 'Noto Serif Hebrew', 'Ezra SIL', 'SBL Hebrew', 'Times New Roman', serif;
  font-size: 1.15em;
}
.qm-note .qm-w { cursor: pointer; border-radius: 4px; padding: 0 0.1em; transition: background 0.2s; }
.qm-note .qm-w:hover, .qm-note .qm-w:focus { background: rgba(138, 90, 26, 0.18); outline: none; }
.dark .qm-note .qm-w:hover, .dark .qm-note .qm-w:focus { background: rgba(218, 165, 32, 0.2); color: #F4D03F; }
/* IAA photos under the scroll text (added by KnMd.qumran, no button). */
.qm-note .qm-photos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.qm-note .qm-photos figure { margin: 0; text-align: center; }
.qm-note .qm-photos img { margin: 0 auto; cursor: zoom-in; max-height: 20rem; }
.qm-note .qm-photos figcaption { font: 0.7rem Georgia, serif; color: #8a5a1a; margin-top: 0.35rem; direction: ltr; }
.dark .qm-note .qm-photos figcaption { color: #DAA520; }
.qm-note .qm-photos .qm-photos-h { grid-column: 1 / -1; margin: 0; border: 0; }
