/* The legacy archive is presentation only; current account access is separate. */
.lh-page,
.lh-detail-body {
  color: var(--dam-text, var(--theme-text, #eeeae1));
  overflow-wrap: anywhere;
}
.lh-page .lh-notice {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid var(--line, #39412f);
  border-radius: 10px;
  background: var(--dam-surface, var(--theme-surface, #1c2118));
}
.lh-notice > strong { display: block; font-size: 13px; line-height: 1.6; }
.lh-notice > p { margin: 7px 0 0; color: var(--dam-muted, var(--muted, #afb4a3)); font-size: 12px; line-height: 1.75; }
.lh-capture { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line, #39412f); }
.lh-capture > div { min-width: 0; }
.lh-capture dt,
.lh-fields dt { margin: 0 0 4px; color: var(--dam-muted, var(--muted, #afb4a3)); font-size: 11px; line-height: 1.6; }
.lh-capture dd,
.lh-fields dd { margin: 0; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.lh-datasets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.lh-datasets .lh-dataset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 130px;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line, #39412f);
  border-radius: 8px;
  background: var(--dam-surface, var(--theme-surface, #1c2118));
  color: inherit;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 550;
  cursor: pointer;
}
.lh-datasets .lh-dataset:hover { background: var(--dam-raised, var(--theme-raised, #292f22)); }
.lh-datasets .lh-dataset[aria-pressed="true"] { border-color: var(--gold, #e6bd62); background: var(--theme-gold-soft, #393320); color: var(--theme-accent, #f1d187); }
.lh-dataset-count { font-size: 11px; font-weight: 500; opacity: .85; }
.lh-dataset:focus-visible,
.lh-page [data-legacy-record]:focus-visible { outline: 2px solid var(--gold, #e6bd62); outline-offset: 3px; }
.dam-shell .mg-page.lh-page .lh-toolbar { align-items: flex-end; }
.dam-shell .mg-page.lh-page .lh-toolbar .mg-search { flex: 1 1 320px; max-width: none; min-width: 0; }
.dam-shell .mg-page.lh-page .lh-toolbar .mg-filter { flex: 0 1 240px; min-width: 0; }
.dam-shell .mg-page.lh-page .lh-toolbar :is(input, select) { width: 100%; min-width: 0; }
.lh-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; margin-top: 16px; }
.lh-record { display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid var(--line, #39412f); border-radius: 10px; background: var(--dam-surface, var(--theme-surface, #1c2118)); }
.lh-record-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lh-record-head > div { flex: 1; min-width: 0; }
.lh-record h2 { margin: 0; color: inherit; font-size: 16px; line-height: 1.5; font-weight: 550; }
.lh-record-subtitle { margin: 5px 0 0; color: var(--dam-muted, var(--muted, #afb4a3)); font-size: 12px; line-height: 1.7; }
.lh-review { display: inline-flex; flex-shrink: 0; padding: 4px 7px; border-radius: 5px; color: var(--theme-accent, #f1d187); background: var(--theme-gold-soft, #393320); font-size: 10px; line-height: 1.6; }
.lh-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin: 20px 0; }
.lh-fields > div { min-width: 0; }
.lh-fields .lh-wide-field { grid-column: 1 / -1; }
.lh-field-note { display: block; margin-top: 3px; color: var(--dam-muted, var(--muted, #afb4a3)); font-size: 11px; line-height: 1.65; }
.lh-record-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line, #39412f); }
.lh-record-foot > p { flex: 1 1 130px; margin: 0; color: var(--dam-muted, var(--muted, #afb4a3)); font-size: 11px; line-height: 1.7; }
.lh-record-foot .btn { min-height: 44px; flex: 0 0 auto; }
.lh-coverage { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line, #39412f); }
.lh-coverage > h2,
.lh-detail-section > h3 { margin: 0 0 10px; color: inherit; font-size: 14px; font-weight: 550; line-height: 1.6; }
.lh-coverage > p { margin: 0; color: var(--dam-muted, var(--muted, #afb4a3)); font-size: 12px; line-height: 1.75; }
.lh-detail-head > h2 { min-width: 0; overflow-wrap: anywhere; }
.lh-detail-body > .lh-notice { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line, #39412f); border-radius: 8px; background: var(--dam-raised, var(--theme-raised, #292f22)); }
.lh-detail-section + .lh-detail-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line, #39412f); }
.lh-detail-section .lh-fields { margin: 0; }
.lh-review-list { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.8; }
.lh-review-list > li + li { margin-top: 6px; }
.lh-captured-text { margin-top: 24px; border: 1px solid var(--line, #39412f); border-radius: 8px; background: var(--dam-surface, var(--theme-surface, #1c2118)); }
.lh-captured-text > summary { min-height: 44px; padding: 13px 16px; font-size: 12px; font-weight: 550; line-height: 1.6; cursor: pointer; }
.lh-captured-text > summary:focus-visible { outline: 2px solid var(--gold, #e6bd62); outline-offset: 2px; border-radius: 8px; }
.lh-captured-text > pre { margin: 0; padding: 0 16px 16px; max-width: 100%; font: inherit; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .lh-page .lh-notice { padding: 16px; }
  .lh-capture { display: grid; gap: 12px; }
  .lh-datasets { gap: 8px; }
  .lh-datasets .lh-dataset { flex-basis: calc(33.333% - 8px); padding: 10px 8px; }
  .dam-shell .mg-page.lh-page .lh-toolbar :is(.mg-search, .mg-filter) { flex: 1 1 100%; }
  .lh-record { padding: 16px; }
  .lh-record-head { flex-wrap: wrap; }
  .lh-record-head > div { flex-basis: 100%; }
  .lh-fields { gap: 14px; }
  .lh-detail-body .lh-fields { grid-template-columns: 1fr; }
}
@media (forced-colors: active) {
  .lh-datasets .lh-dataset[aria-pressed="true"] { border-width: 2px; border-color: Highlight; }
  .lh-review { border: 1px solid currentColor; }
}
