/* Documentary Witness Pages — additional plates, 2026-11-25
   Deliberately uses the Royal House palette so the new cards sit inside the existing
   Documentary Witness Pages section instead of looking bolted on:
     ink        #2f1c10
     parchment  #f7f1e3 / #fffdf7
     gold       #b48a3a
*/

.rhd-witness-extra {
  margin: 2.5rem 0 0;
  padding: 0;
}

.rhd-witness-extra__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
}

.rhd-witness-card {
  display: flex;
  flex-direction: column;
  background: #fffdf7;
  border: 1px solid #d8c7a3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(47, 28, 16, 0.04);
}

.rhd-witness-card__plate {
  position: relative;
  background: #14100c;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.rhd-witness-card__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: saturate(0.95);
}

.rhd-witness-card__zoom {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(20, 16, 12, 0.82);
  color: #f3e6c8;
  font: 600 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid rgba(243, 230, 200, 0.25);
}

.rhd-witness-card__zoom:hover,
.rhd-witness-card__zoom:focus-visible {
  background: rgba(20, 16, 12, 0.95);
  border-color: rgba(243, 230, 200, 0.5);
}

.rhd-witness-card__body {
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.rhd-witness-card__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink, #2f1c10);
}

.rhd-witness-card__quote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
  color: #3a2a1c;
}

.rhd-witness-card__caption {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #6b5333;
}

.rhd-witness-card__rule {
  border: 0;
  border-top: 1px solid #e2d5b8;
  margin: 2px 0 0;
}

.rhd-witness-card__cite {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b5333;
}

.rhd-witness-extra__note {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e2d5b8;
  font-size: 13.5px;
  line-height: 1.6;
  color: #6b5333;
}

/* the full-page viewer */
.rhd-witness-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 7, 4, 0.92);
  padding: 24px;
}

.rhd-witness-viewer img {
  max-width: min(1100px, 96vw);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.rhd-witness-viewer__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(243, 230, 200, 0.4);
  background: rgba(20, 16, 12, 0.85);
  color: #f3e6c8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.rhd-witness-viewer__caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 16px;
  text-align: center;
  color: #e8d9b8;
  font-size: 13.5px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .rhd-witness-card__title { font-size: 17px; }
  .rhd-witness-card__quote { font-size: 15px; }
}
