/* Reading Notes & Evidence Verification Styles */
.media-file-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.media-file-links [hidden], .media-reading-note[hidden], .media-reading-note [hidden] {
  display: none;
}

.media-reading-note {
  background: #edefe3;
  border: 1px solid #d4dccb;
  border-radius: 6px;
  padding: 18px 22px;
  margin-bottom: 18px;
}

.media-reading-note h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--ink);
}

.media-reading-note p {
  font-size: 13.5px;
  line-height: 1.7;
  color: #3b4d3d;
}

.media-reading-note dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  margin: 16px 0 0;
}

.media-reading-note dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #556754;
}

.media-reading-note dd {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 500;
}

.media-dialog.with-reading-note .media-stage img {
  max-height: calc(100dvh - 370px);
}

.media-dialog.result-view .media-stage img {
  max-height: calc(100dvh - 490px);
}

@media (max-width: 760px) {
  .certificate-gallery .certificate-card:last-child {
    grid-column: auto;
    max-width: none;
  }
  .certificate-gallery .certificate-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 8px);
  }
  .media-file-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }
  .media-reading-note {
    padding: 16px;
  }
  .media-reading-note h3 {
    font-size: 17px;
  }
  .media-reading-note p {
    font-size: 13px;
  }
  .media-reading-note dl {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
  }
  .media-dialog.with-reading-note .media-stage img {
    max-height: calc(100dvh - 390px);
  }
  .media-dialog.result-view .media-stage img {
    max-height: calc(100dvh - 430px);
  }
}
