.ld-page {
  margin: 23px 0 43px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  --ld-padding: clamp(16px, 2.25vw, 26px);
}
.ld-page [id] { scroll-margin-top: 70px; }
.ld-page h1:focus, .ld-page h2:focus { outline: 0; }
.ld-back, .ld-labels, .ld-address, .ld-case { display: flex; align-items: center; gap: 7px; }
.ld-back {
  width: fit-content;
  min-height: 34px;
  margin-bottom: 12px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
}
.ld-back:hover, .ld-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ld-return-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:4px 10px; margin-bottom:10px; }
.ld-return-row .ld-back { margin:0; }
.ld-browse:not([hidden]) { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--muted); }
.ld-browse button { color:var(--forest); border:1px solid var(--line); background:white; min-height:32px; border-radius:5px; padding:3px 9px; }
.ld-browse button:disabled { opacity:.45; cursor:default; }
/* The head of a lot's page is its card writ large: a dark band that says what kind of place it is, how its sale
   stands and when it is, then its name with where it is and under what number it is filed. */
.ld-head { margin-bottom: 14px; border: 1px solid #c9d5db; background: var(--white); }
.ld-labels { flex-wrap: wrap; gap: 8px; min-height: 40px; padding: 7px var(--ld-padding); background: #0b2733; color: #fff; font-size: 12.5px; line-height: 1.4; }
.ld-type, .ld-status, .ld-demo, .ld-fail { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; white-space: nowrap; }
.ld-type { color: #fff; font-size: 13px; }
.ld-type .icon { width: 15px; height: 15px; }
.ld-fail { padding: 1px 7px; background: #ffd166; color: #3b2a00; }
.ld-fail.ld-new { background: #bfe8cf; color: #134d2a; }
.ld-status { padding: 1px 7px; border: 1px solid rgb(255 255 255 / 45%); color: #fff; }
.ld-demo { padding: 1px 7px; color: #66512d; background: #f5eedc; }
.ld-day { margin-inline-start: auto; color: rgb(255 255 255 / 90%); font-weight: 650; white-space: nowrap; }
.ld-day em { margin-inline-start: 7px; padding: 1px 6px; background: #fff; color: #a34112; font-size: 12px; font-style: normal; font-weight: 800; }
.ld-head-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; padding: 14px var(--ld-padding) 15px; }
.ld-head h1 { margin: 0 0 6px; font-size: clamp(22px, 2.3vw, 29px); font-weight: 780; letter-spacing: -.04em; line-height: 1.25; overflow-wrap: anywhere; }
.ld-address { align-items: baseline; color: #33505c; font-size: 14.5px; line-height: 1.55; }
.ld-address .icon { align-self: flex-start; margin-top: 3px; color: var(--forest); }
.ld-case { flex-wrap: wrap; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ld-case span { color: var(--ink); font-weight: 680; }
.ld-action .save-action { min-height: 38px; border-radius: 0; white-space: nowrap; }
.ld-action .save-action[aria-pressed=true] { background: #e4f2f9; border-color: #046c9c; color: #046c9c; }

/* Beside the lot's pictures, what a bid turns on: the price in a block of our blue, as on the card; under it the
   steps the price came down by, and when and how the sale is held. */
.ld-hero {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
  grid-template-areas: "decision photo";
  align-items: start;
}
.ld-decision { grid-area: decision; min-width: 0; border: 1px solid #c9d5db; background: var(--white); }
.ld-price-block { padding: 16px var(--ld-padding) 17px; background: #046c9c; color: #fff; }
.ld-price-block h2 { color: rgb(255 255 255 / 82%); font-size: 12.5px; font-weight: 650; letter-spacing: 0; }
.ld-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 2px 0 0; font-size: clamp(31px, 3.4vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -.05em; }
.ld-ratio { padding: 2px 7px; background: #fff; color: #046c9c; font-size: 12.5px; font-weight: 650; letter-spacing: -.01em; }
.ld-ratio strong { font-weight: 800; }
.ld-exact { margin: 5px 0 0; color: rgb(255 255 255 / 86%); font-size: 13.5px; }
.ld-decision-body { padding: 4px 0 6px; }
.ld-decision .am-card-ladder { padding: 12px var(--ld-padding) 13px; border-top: 0; border-bottom: 1px solid #e3e9ec; }
.ld-decision .am-card-ladder li { grid-template-columns: 60px minmax(0,1fr) auto; min-height: 23px; font-size: 12.5px; }
.ld-decision .am-card-ladder b { font-size: 13px; }
.ld-auction-facts { margin: 0; padding: 4px var(--ld-padding) 6px; }
.ld-auction-facts > div { display: grid; grid-template-columns: minmax(84px,.6fr) minmax(0,1.4fr); gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #e7ecee; }
.ld-auction-facts > div:last-child, .ld-auction-facts > div:not([hidden]):has(~ div[hidden]:last-child):not(:has(~ div:not([hidden]))) { border-bottom: 0; }
.ld-auction-facts dt { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.ld-auction-facts dt .icon { width: 14px; height: 14px; }
.ld-auction-facts dd { margin: 0; font-size: 14.5px; font-weight: 680; letter-spacing: -.02em; line-height: 1.4; text-align: right; }
.ld-auction-facts .ld-date dd { color: #046c9c; font-size: 16px; font-weight: 780; }
.ld-auction-facts [data-detail-auction-time] { white-space: nowrap; }

.ld-page .ld-photo {
  grid-area: photo;
  min-width: 0;
  margin: 0;
  padding: var(--ld-padding);
  border: 1px solid #c9d5db;
  background: var(--white);
}
/* Every part of the page is headed the one way: a short bar of our blue, then its name. */
.ld-photo h2, .ld-section h2 { padding-left: 10px; border-left: 3px solid #046c9c; font-size: 17.5px; font-weight: 760; letter-spacing: -.035em; line-height: 1.25; }
.ld-photo h2 { margin-bottom: 12px; }
.ld-photo .enrichment-photo-placeholder { min-height: clamp(160px, 16vw, 235px); }
.ld-photo .enrichment-photo-placeholder > .icon { width: 25px; height: 25px; margin-inline: auto; color: var(--forest); }
.ld-photo .enrichment-photo-placeholder > p { text-align: center; }
.ld-photo .document-lookup { font-size: 13px; }
.ld-example { margin: 0; }
.ld-example img { display: block; width: 100%; height: clamp(205px, 29vw, 380px); object-fit: contain; background: #ecf0f2; }
.ld-example figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; }

.ld-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 7px 23px;
  align-items: stretch;
  margin: 14px 0;
  padding: 0 13px;
  overflow-x: auto;
  scrollbar-width: thin;
  border-block: 1px solid var(--line);
  background: var(--paper);
}
.ld-nav a { display: flex; align-items: center; flex: none; min-height: 43px; padding: 3px 2px 4px; color: var(--forest); font-size: 14px; font-weight: 700; white-space: nowrap; }
.ld-nav a:focus-visible { outline-offset: -3px; }
.ld-data {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border: 1px solid #c9d5db;
  background: var(--white);
}
/* What the lot is and how its sale is run, side by side under one heading. */
.ld-info { border: 1px solid #c9d5db; background: var(--white); }
.ld-info-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 clamp(18px, 3vw, 40px); }
.ld-info-grid h3 { margin: 2px 0 2px; color: #046c9c; font-size: 12.5px; font-weight: 750; letter-spacing: 0; }
.ld-page .ld-section { min-width: 0; margin: 0; padding: var(--ld-padding); }
.ld-data > section + section { border-left: 1px solid var(--line); }
.ld-section h2 { margin-bottom: 13px; }
.ld-facts { margin: 0; font-size: 14px; line-height: 1.55; }
.ld-facts > div { display: grid; grid-template-columns: minmax(92px, .65fr) minmax(0, 1.35fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid #e7ecee; align-items: baseline; }
.ld-facts dt { color: var(--muted); }
.ld-facts dd { margin: 0; font-weight: 620; white-space: pre-wrap; overflow-wrap: anywhere; }
.ld-source-fields { margin-top: 14px; color: var(--muted); font-size: 13px; }
.ld-source-fields summary { padding: 4px 0; cursor: pointer; }
.ld-source-fields .ld-facts { font-size: 12px; }
.ld-page .ld-followup { margin-top: 14px; }
.ld-page .case-timeline { border: 1px solid #c9d5db; background: var(--white); }
.ld-page .ct-heading { padding: 0; }
.ld-page .ct-record { font-size: 14px; }
.ld-public-records { border: 1px solid #c9d5db; background: var(--white); }
.ld-record-note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.ld-record-note a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.ld-record-address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  margin-top: 2px;
  padding: 6px 6px 6px 12px;
  background: #eef4f7;
  font-size: 14px;
}
.ld-record-address span { min-width: 0; white-space: pre-wrap; line-height: 1.6; }
.ld-record-address button { min-height: 34px; border-radius: 0; color: var(--forest); }
.ld-record-feedback { color: var(--forest); font-size: 13px; }
.ld-record-feedback:not(:empty), .ld-record-note + .ld-record-note { margin-top: 8px; }
.ld-record-manual {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
  resize: vertical;
}
.ld-record-manual:focus-visible { outline: 3px solid #367895; outline-offset: 3px; }
.ld-record-sources {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 8px;
  padding: 0;
  list-style: none;
}
.ld-record-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 10px;
  height: 100%;
  padding: 10px 12px;
  border: 1px solid #c9d5db;
  color: var(--forest);
  font-size: 14px;
}
.ld-record-link:hover { background: #f2f7f9; }
.ld-record-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ld-record-link span { grid-column: 1 / -1; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ld-page .detail-note.ld-source { margin: 20px 0 0; color: var(--muted); line-height: 1.65; font-size: 12px; }
.ld-source span { margin-left: 5px; }
.ld-source span:last-of-type { display: block; margin-left: 0; }
.ld-source .ld-source-link { display: inline-flex; }

@media (max-width: 710px) {
  .ld-page { margin-block: 12px 26px; }
  .ld-back { margin-bottom: 7px; min-height: 31px; }
  .ld-head { margin-bottom: 10px; }
  .ld-head-main { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 9px; padding-block: 11px 12px; }
  .ld-labels { gap: 6px; font-size: 12px; }
  .ld-address { font-size: 13px; }
  .ld-case { font-size: 12px; }
  .ld-action .save-action { min-height: 34px; padding: 5px 9px; font-size: 12px; }
  .ld-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "decision" "photo"; gap: 10px; }
  .ld-price-block { padding-block: 12px 13px; }
  .ld-info-grid { grid-template-columns: minmax(0, 1fr); }
  .ld-info-grid > div + div { margin-top: 14px; }
  .ld-photo h2, .ld-section h2 { font-size: 16.5px; }
  .ld-photo .enrichment-photo-placeholder { min-height: 102px; }
  .ld-example img { height: clamp(165px, 48vw, 250px); }
  .ld-nav { margin-block: 13px 11px; gap: 14px; padding-inline: 8px; }
  .ld-nav a { font-size: 13px; min-height: 42px; }
  .ld-data { grid-template-columns: minmax(0, 1fr); }
  .ld-data > section + section { border-left: 0; border-top: 1px solid var(--line); }
  .ld-facts { font-size: 13px; }
  .ld-facts > div { grid-template-columns: minmax(80px, .61fr) minmax(0, 1.39fr); }
  .ld-page .ld-followup { margin-top: 12px; }
}

@media (max-width: 900px) {
  .ld-record-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ld-record-sources { grid-template-columns: minmax(0, 1fr); }
}

/* The parts of the page other stylesheets draw are squared off as the rest is, and bordered in the same line.
   Only the round buttons that turn the pictures stay round. */
.ld-page *:not(.enrichment-photo-nav) { border-radius: 0 !important; }
.ld-page .ld-data > .ld-section, .ld-page :is(#lot-sale-comparables, #lot-review > *, .ld-followup > details) { border-color: #c9d5db; }
/* How large a picture is in pixels is nothing a bidder asks. */
.ld-page [data-photo-size], .ld-page .enrichment-photo-size { display: none; }
