.document-directory {
  padding: clamp(48px, 7vw, 86px) 0;
  background: #f3f7fc;
  border-top: 1px solid #dbe5f1;
}

.document-directory-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.document-directory-heading h2,
.document-directory-heading p { margin: 0; }
.document-directory-heading h2 { color: var(--navy-deep, #001b4d); font-size: clamp(2rem, 4vw, 3.5rem); }
.document-directory-heading > strong { padding: 10px 14px; color: #002b6f; background: #e3edf9; border-radius: 8px; white-space: nowrap; }

.document-directory-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  align-items: end;
  gap: 10px;
  padding: 18px;
  background: #fff;
  border: 1px solid #ccd9e9;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 43, 111, 0.07);
}

.document-directory-filters label { display: grid; gap: 6px; }
.document-directory-filters label span { color: #52637b; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.document-directory-filters input {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  color: #001b4d;
  background: #fff;
  border: 1px solid #afbed2;
  border-radius: 7px;
}
.document-directory-filters button {
  min-height: 44px;
  padding: 9px 14px;
  color: #002b6f;
  background: #e7eef8;
  border: 1px solid #b8c9dd;
  border-radius: 7px;
  font-weight: 800;
  cursor: pointer;
}

.document-directory-status { margin: 14px 0; color: #5c6d83; font-size: 0.82rem; font-weight: 700; }
.document-directory-list { display: grid; gap: 10px; }
.document-directory-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid #ccd9e9;
  border-radius: 12px;
}
.document-directory-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #001b4d;
  background: #ffc928;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}
.document-directory-copy h3,
.document-directory-copy p { margin: 0; }
.document-directory-copy h3 { color: #001b4d; font-size: 1.05rem; }
.document-directory-copy small,
.document-directory-filename { color: #65758a; overflow-wrap: anywhere; }
.document-directory-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 5px !important; color: #52637b; font-size: 0.67rem; font-weight: 750; }
.document-directory-access { padding: 3px 7px; background: #e5edf7; border-radius: 999px; }
.document-directory-access-public { color: #12663a; background: #ddf7e7; }
.document-directory-access-representative { color: #171717; background: #ffc928; }
.document-directory-access-eaf_staff,
.document-directory-access-eaf_administrator { color: #fff; background: #002b6f; }
.document-directory-download { padding: 10px 13px; color: #fff; background: #003d91; border-radius: 7px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.document-directory-download:hover { background: #001b4d; }
.document-directory-empty { margin: 0; padding: 32px; color: #5c6d83; background: #fff; border: 1px dashed #bdcce0; border-radius: 12px; text-align: center; }

html[data-eaf-theme-context="public"][data-eaf-night-mode="true"] .document-directory {
  color: #d8e1eb;
  background: #0b1119;
  border-color: #35485d;
}
html[data-eaf-theme-context="public"][data-eaf-night-mode="true"] :is(.document-directory-filters, .document-directory-card, .document-directory-empty) {
  color: #d8e1eb;
  background: #111923;
  border-color: #35485d;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}
html[data-eaf-theme-context="public"][data-eaf-night-mode="true"] :is(.document-directory-copy h3, .document-directory-heading h2) { color: #f0f4f8; }
html[data-eaf-theme-context="public"][data-eaf-night-mode="true"] :is(.document-directory-heading p, .document-directory-status, .document-directory-filename, .document-directory-copy small) { color: #b5c1ce; }

@media (max-width: 900px) {
  .document-directory-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .document-directory-heading { align-items: start; flex-direction: column; }
  .document-directory-filters { grid-template-columns: 1fr; }
  .document-directory-card { grid-template-columns: 48px minmax(0, 1fr); }
  .document-directory-mark { width: 46px; height: 46px; }
  .document-directory-download { grid-column: 2; justify-self: start; }
}
