.documents-page.portal-main {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 6px 14px 28px;
  background: #fff;
}
.document-list { display: grid; min-width: 0; }
.documents-page .directory-title h1 { font-size: clamp(19px, 2vw, 25px); line-height: 1.35; }
.document-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid #ededf1;
}
.document-photo {
  width: 80px;
  height: 86px;
  flex: 0 0 80px;
  object-fit: contain;
  border-radius: 5px;
}
.document-entry-content { flex: 1; min-width: 0; }
.document-entry-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.document-entry-name { display: flex; align-items: baseline; gap: 9px; flex: 1; min-width: 0; }
.document-serial { flex: 0 0 auto; color: #b00020; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.document-entry :is(h1, h2) {
  margin: 0;
  color: #1b1b21;
  font: 650 14px/1.5 Inter, 'Noto Sans Devanagari', sans-serif;
  overflow-wrap: anywhere;
}
.document-downloads { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; min-width: 0; }
.document-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 5px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #e8cdd2;
  border-radius: 5px;
  background: #fff;
  color: #b00020;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.document-download .icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.document-download:hover { background: #fff3f5; border-color: #b00020; }
.document-download:focus-visible, .document-back:focus-visible { outline: 2px solid #b00020; outline-offset: 3px; }
.document-empty, .document-pending { margin: 12px 0; color: #62626f; font-size: 13px; }
.document-checklist { max-width: 1050px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #ececf0; color: #565661; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.document-checklist p { margin: 0 0 10px; }
.document-checklist h2 { margin: 15px 0 12px; padding: 0 0 0 11px; border: 0; border-left: 3px solid #bc001f; border-radius: 0; background: transparent; color: #25252d; font-size: 14px; font-weight: 700; line-height: 1.6; }
.document-checklist ul { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.document-checklist li { display: flex; align-items: flex-start; gap: 8px; }
.document-checklist li svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 3px; fill: none; stroke: #00a56d; stroke-width: 1.8; }
.document-back { display: inline-flex; min-height: 44px; align-items: center; color: #a6001b; text-decoration: none; font-size: 13px; font-weight: 600; }
.document-detail .document-entry h1 { font-size: clamp(18px, 2.5vw, 25px); }
.document-preview-note { color: #61616c; font-size: 12px; }
@media (min-width: 701px) {
  .documents-page.portal-main { padding: 12px clamp(24px, 3.5vw, 72px) 42px; }
  .document-entry { gap: 16px; padding: 18px 0; }
  .document-photo { width: 100px; height: 106px; flex-basis: 100px; }
  .document-entry h2 { font-size: 16px; }
  .document-download { min-width: 110px; min-height: 42px; font-size: 12px; }
  .document-checklist { font-size: 14px; }
  .document-checklist h2 { font-size: 15px; }
}
@media (max-width: 359px) {
  .document-photo { width: 58px; height: 66px; flex-basis: 58px; }
  .document-entry { gap: 8px; }
  .document-entry-main { gap: 7px; }
  .document-entry-name { gap: 6px; }
  .document-download { padding-inline: 7px; }
}
