.lot-enrichment, .lot-trades { margin-block: 20px 23px; }
.lot-enrichment h3, .lot-trades h3 { margin-bottom: 10px; }
.enrichment-record { font-size: 13px; line-height: 1.6; }
.enrichment-record[aria-busy=true], .enrichment-message, .enrichment-error, .trade-basis { color: var(--muted); }
.enrichment-error { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.enrichment-error .secondary { padding: 5px 9px; font-size: 12px; }
.enrichment-source { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.enrichment-source .out-link { display: inline-flex; align-items: center; font-size: inherit; }
.enrichment-subtitle { margin: 11px 0 5px; font-size: 13px; }
.enrichment-inventory, .enrichment-highlight { display: grid; border: 1px solid var(--line); border-radius: 7px; margin: 6px 0 8px; background: #f2f7f9; }
.enrichment-inventory { grid-template-columns: repeat(3,minmax(0,1fr)); }
.enrichment-highlight { grid-template-columns: repeat(2,minmax(0,1fr)); }
.enrichment-inventory > div, .enrichment-highlight > div { padding: 7px 9px; min-width: 0; }
.enrichment-inventory > div + div, .enrichment-highlight > div:nth-child(even) { border-left: 1px solid var(--line); }
.enrichment-highlight > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.enrichment-inventory dt, .enrichment-highlight dt { color: var(--muted); font-size: 12px; }
.enrichment-inventory dd, .enrichment-highlight dd { margin: 2px 0 0; color: var(--forest); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.lot-enrichment .document-lookup { scroll-margin-top: 60px; font-size: 13px; }
.document-source > a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }
.lot-enrichment > .enrichment-message { margin-bottom: 5px; font-size: 13px; }

.enrichment-gallery figure { margin: 0; }
.enrichment-stage { position: relative; display: grid; place-items: center; height: clamp(170px, 34dvh, 335px); background: #ecf0f2; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.enrichment-full-photo { position: relative; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; width: 100%; height: 100%; min-height: 0; cursor: zoom-in; }
.enrichment-full-photo > span { position: absolute; inset-inline-end: 9px; inset-block-end: 9px; padding: 3px 9px; color: white; background: #111f25e0; border-radius: 4px; font-size: 12px; font-weight: 650; }
.enrichment-full-photo:focus-visible { outline-offset: -4px; }
.enrichment-full-photo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.enrichment-photo-error { padding: 0 45px; text-align: center; color: var(--muted); }
.enrichment-photo-nav { position: absolute; inset-block-start: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; background: white; color: var(--forest); border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 2px 9px #12232b1c; }
.enrichment-photo-nav[data-move="-1"] { inset-inline-start: 9px; }
.enrichment-photo-nav[data-move="1"] { inset-inline-end: 9px; }
.enrichment-gallery figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 5px; min-height: 20px; color: var(--muted); }
.enrichment-gallery figcaption small { flex: none; display: grid; justify-items: end; font-size: 11px; font-variant-numeric: tabular-nums; }
.enrichment-thumbnails { display: flex; gap: 5px; overflow-x: auto; padding: 4px; margin: 2px -4px 0; scrollbar-width: thin; }
.enrichment-thumbnails button { flex: 0 0 58px; height: 44px; padding: 2px; background: #ecf0f2; border: 1px solid var(--line); border-radius: 5px; }
.enrichment-thumbnails button[aria-pressed=true] { border: 2px solid var(--forest); padding: 1px; }
.enrichment-thumbnails img { display: block; width: 100%; height: 100%; border-radius: 3px; object-fit: cover; }

.enrichment-viewer {
  position: fixed;
  inset: 0;
  width: min(1080px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100dvh - 20px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: #f8faf8;
  background: #172024;
  border: 1px solid #4d5e65;
  border-radius: 12px;
}
.enrichment-viewer::backdrop { background: #0c1418df; }
.enrichment-viewer-head, .enrichment-viewer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; }
.enrichment-viewer-head strong { font-size: 16px; line-height: 1.4; }
.enrichment-viewer-head button { flex: none; width: 40px; height: 40px; display: grid; place-items: center; color: white; border: 1px solid #4d5e65; border-radius: 50%; }
.enrichment-viewer-stage { position: relative; background: #0e1315; }
.enrichment-viewer-scroll { display: flex; width: 100%; height: min(68dvh, 750px); overflow: auto; overscroll-behavior: contain; }
.enrichment-viewer-scroll > img { display: block; flex: none; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.enrichment-viewer-scroll.is-actual-size > img { max-width: none; max-height: none; }
.enrichment-viewer-scroll > p { margin: auto; }
.enrichment-viewer-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 10px; padding: 7px 14px 0; font-size: 13px; }
.enrichment-viewer-tools > span { margin-right: auto; font-variant-numeric: tabular-nums; }
.enrichment-viewer-tools :is(button,a) { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; color: inherit; }
.enrichment-viewer-tools button { border: 1px solid #6d7f87; background: transparent; border-radius: 5px; padding: 2px 8px; font: inherit; }
.enrichment-viewer-tools a { text-decoration: underline; text-underline-offset: 3px; }
.enrichment-viewer-tools a .icon { width: 15px; height: 15px; }
.enrichment-original-status { display:flex; align-items:center; gap:8px; padding:3px 14px 0; font-size:12px; color:#cddadf; }
.enrichment-original-status button { color:inherit; padding:4px; text-decoration:underline; text-underline-offset:3px; }
.enrichment-viewer [hidden], .enrichment-full-photo[hidden] { display: none; }
.enrichment-viewer-foot { align-items: start; font-variant-numeric: tabular-nums; }
.enrichment-viewer .enrichment-source { margin: 0; color: #d4e0e5; }
.enrichment-viewer .enrichment-source .out-link { color: #c9e6f2; }
.enrichment-viewer [data-viewer-count] { flex: none; }
.ld-imagery-stage { position: relative; isolation: isolate; width: 100%; height: clamp(210px,28vw,365px); background: #ecf0f2; border-radius: 7px; overflow: hidden; }
.ld-imagery-caption { margin: 6px 0 12px; color: var(--ink); font-size: 12px; line-height: 1.5; }
.enrichment-photo-note { display: flex; align-items: flex-start; gap: 8px; margin-block: 8px; color: var(--muted); font-size: 13px; }
.enrichment-photo-note .icon { flex: none; width: 17px; height: 17px; margin-top: 2px; }
#court-lookup { scroll-margin-top: 90px; }

.enrichment-facts { grid-template-columns: minmax(90px, 120px) minmax(0,1fr); gap: 0 10px; margin: 10px 0 0; }
.enrichment-facts dd, .enrichment-descriptions p { white-space: pre-wrap; overflow-wrap: anywhere; }
.enrichment-descriptions { display: grid; gap: 11px; margin-top: 12px; }
.enrichment-descriptions > div { padding: 10px 12px; background: #f2f5f7; border-radius: 7px; }
.enrichment-descriptions h4 { margin: 0 0 4px; font-size: 13px; }

.ld-photo .enrichment-stage { height: auto; aspect-ratio: 16 / 10; max-height: 500px; background: #edf2f4; }
.ld-photo .enrichment-full-photo { position: absolute; inset: 0; }
.ld-photo .enrichment-photo-nav { width: 42px; height: 42px; }
.ld-photo .enrichment-thumbnails { gap: 8px; padding-block: 7px; }
.ld-photo .enrichment-thumbnails button { flex-basis: 76px; height: 54px; }
.ld-photo .enrichment-photo-placeholder { display: flex; flex-direction: column; justify-content: center; gap: 15px; min-height: 235px; padding: clamp(14px, 3vw, 27px); background: #ecf3f6; border: 1px solid var(--line); border-radius: 9px; }
.enrichment-photo-placeholder-copy { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); }
.enrichment-photo-mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #c3d4db; border-radius: 8px; color: var(--forest); background: #fff; font-size: 19px; }
.enrichment-photo-placeholder-copy .enrichment-photo-state { margin-bottom: 3px; font-size: clamp(15px, 2vw, 19px); font-weight: 750; color: var(--ink); line-height: 1.35; }
.ld-photo .enrichment-photo-placeholder .document-lookup { margin: 0; padding: 12px 0 0; background: transparent; border-top: 1px solid #cbd8de; border-radius: 0; }
.ld-photo .enrichment-photo-placeholder .document-search-header .out-link { gap: 6px; padding: 5px 10px; border: 1px solid var(--forest); border-radius: 5px; background: white; color: var(--forest); font-weight: 700; min-height: 36px; }
.ld-photo .document-lookup { scroll-margin-top: 100px; }
.ld-photo .enrichment-inventory { margin: 10px 0 0; background: #fff; }
.ld-photo .enrichment-inventory > div { padding: 7px 10px; }
.ld-photo .enrichment-inventory dd { font-variant-numeric: tabular-nums; }
[data-detail-description] .enrichment-subtitle { margin-top: 20px; font-size: 15px; }
.enrichment-detail-note { margin-top: 10px; color: var(--muted); font-size: 13px; }
.enrichment-detail-note a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }

.trade-basis { margin-block: 3px 9px; font-size: 12px; }
.trade-list { margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.trade-list li { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 5px 12px; padding: 8px 1px; }
.trade-list li + li { border-top: 1px solid #e7ecee; }
.trade-detail { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 6px; }
.trade-match { padding: 1px 5px; color: var(--forest); background: #ebf1f3; border-radius: 4px; font-size: 11px; font-weight: 650; }
.trade-building { font-size: 13px; }
.trade-spec { flex: 0 0 100%; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.trade-price { text-align: right; color: var(--forest); font-size: 15px; font-variant-numeric: tabular-nums; }
.trade-earlier { margin-top: 5px; }
.trade-earlier summary { cursor: pointer; color: var(--forest); font-size: 12px; padding: 6px 0; }
.trade-earlier summary:focus-visible { outline: 3px solid #367895; outline-offset: 2px; }
.trade-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 5px; color: var(--muted); font-size: 12px; }
.trade-pagination .secondary { padding: 5px 9px; font-size: 12px; }

@media (max-width: 480px) {
  .enrichment-stage { height: clamp(155px, 30dvh, 250px); }
  .ld-photo .enrichment-photo-placeholder { min-height: 0; gap: 12px; }
  .ld-photo .enrichment-photo-nav { width: 38px; height: 38px; }
  .ld-photo .enrichment-thumbnails button { flex-basis: 58px; height: 44px; }
  .ld-photo .enrichment-inventory > div { padding-inline: 7px; }
  .enrichment-facts { grid-template-columns: minmax(75px, 85px) minmax(0,1fr); font-size: 13px; }
  .enrichment-inventory > div, .enrichment-highlight > div { padding: 6px 7px; }
  .trade-price { font-size: 13px; }
}
