.leads-page.forced-sales { max-width: 58rem; margin: 1.65rem auto 4.5rem; }
.forced-sales {
  --mount: #ece5d9;
  --frame-border: #8d826c;
  --gold: #f9c341;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .forced-sales {
    --mount: #22201b;
    --frame-border: #554e41;
    --gold: #f7c548;
  }
}
:root[data-theme="dark"] .forced-sales {
  --mount: #22201b;
  --frame-border: #554e41;
  --gold: #f7c548;
}

.forced-sales figure { margin: 0; min-width: 0; }
.forced-sales figcaption { margin-top: .55rem; color: var(--muted); font: .93rem/1.42 var(--serif); }
.forced-sales figcaption a { color: var(--ink-2); }
.forced-sales img { max-width: 100%; height: auto; display: block; }
.forced-sales code { font: .82em var(--mono); background: var(--bg-2); padding: .08em .3em; }

/* Article */
.fs-mast {
  margin-top: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem) 0;
  border-block: 1px solid var(--ink);
}
.forced-sales .fs-mast .page-title {
  margin: 0 0 .7rem;
  font-size: clamp(2.5rem, 4.4vw, 3.6rem);
  line-height: 1.02;
  text-wrap: balance;
}
.forced-sales .nw { white-space: nowrap; }
.fs-deck { margin: 0; max-width: 70ch; color: var(--ink-2); font: 1.2rem/1.45 var(--serif); }

.forced-sales h2, .forced-sales h3 {
  margin: 0 0 .65em;
  padding: 0;
  border: 0;
  color: var(--ink);
  font: 500 clamp(1.7rem, 3.4vw, 2.35rem)/1.15 var(--serif);
  text-transform: none;
  letter-spacing: -.025em;
}
.forced-sales h3 { margin: 1.5rem 0 .4rem; font-size: 1.35rem; }
.case-section, .fs-method, .fs-appendix {
  display: block;
  margin: 1.7rem 0 0;
  font: 1.16rem/1.55 var(--serif);
  color: var(--ink-2);
  scroll-margin-top: 2rem;
}
.case-section + .case-section, .fs-method, .fs-appendix {
  border-top: 1px solid var(--rule);
  padding-top: 1.65rem;
}
.forced-sales section p { max-width: 68ch; margin: 0 0 1em; }
.forced-sales section a { color: var(--ink-2); text-underline-offset: .15em; }
.forced-sales .source-note { font-size: 1rem; }
.forced-sales .method-next { max-width: 66ch; margin: .5rem 0 0; padding-left: 1.35rem; }
.forced-sales .method-next li { margin: 0 0 .85rem; }
.forced-sales .method-next strong { color: var(--ink); font-weight: 600; }
.wipe-grid, .harvard-evidence, .facing-pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 2.7vw, 1.8rem);
  margin: 1.3rem 0 1.5rem;
}
.forced-sales .ledger-note p { margin: 0 0 .85rem; }
.wipe-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25em 1em; }

.wipe-stage {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  background: var(--mount);
  border: 1px solid var(--frame-border);
  line-height: 0;
}
.wipe-base { width: 100%; height: auto; display: block; }
.wipe-overlay {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--split, 50%));
  pointer-events: none;
}
.wipe-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wipe-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  background: #f8f5ee;
  box-shadow: 0 0 0 1px rgba(0,0,0,.45);
  transform: translateX(-1px);
  pointer-events: none;
}
.wipe-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, .85);
  color: #fff;
  border: 1.5px solid #f8f5ee;
  display: grid;
  place-items: center;
  font: 600 .85rem/1 var(--mono);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.wipe-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.wipe-stage:has(.wipe-range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Archival scans */
.scan-zoom { display: block; line-height: 0; cursor: zoom-in; border: 1px solid var(--rule); }
.scan-frame {
  display: inline-block;
  position: relative;
  max-width: 100%;
  line-height: 0;
  vertical-align: top;
}
.scan-frame img { width: 100%; }
.ink-mark {
  position: absolute;
  pointer-events: none;
  background: var(--gold);
  opacity: .44;
  mix-blend-mode: multiply;
}
.forced-sales:has(#fs-highlights:not(:checked)) .ink-mark { display: none; }

.extra-scans {
  border-block: 1px solid var(--rule);
  margin: 1.6rem 0 2rem;
}
.extra-scans summary {
  cursor: pointer;
  padding: .85rem .25rem;
  font: 500 1.15rem/1.3 var(--serif);
  color: var(--ink);
}
.extra-scans summary::marker { color: var(--muted); font-size: .7em; }

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 1rem; }
.leads-table {
  width: 100%;
  border-collapse: collapse;
  font: .96rem/1.45 var(--serif);
  color: var(--ink-2);
}
.leads-table thead th {
  text-align: left;
  font: 600 .74rem/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
  padding: .65rem .8rem .65rem 0;
}
.leads-table td, .leads-table tbody th {
  vertical-align: top;
  padding: .85rem .9rem .85rem 0;
  border-bottom: 1px solid var(--rule);
}
.leads-table td:last-child, .leads-table th:last-child { padding-right: 0; }
.leads-table a { color: var(--ink); text-underline-offset: 2px; }

.leads-table caption { text-align: left; margin: 0 0 .4em; font-style: italic; }
.match-results { max-width: 65ch; font-variant-numeric: tabular-nums; }
.match-results tbody th { text-align: left; font-weight: 400; }
.match-results td, .match-results thead th:not(:first-child) { text-align: right; }

/* Lightbox Dialog */
.fs-viewer {
  width: min(74rem, 94vw);
  max-width: 94vw;
  max-height: 92dvh;
  padding: 1rem;
  box-sizing: border-box;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
}
.fs-viewer::backdrop { background: rgba(0, 0, 0, .76); }
.fs-viewer header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  padding-bottom: .65rem;
}
.forced-sales .fs-viewer h2 { margin: 0; font-size: 1.2rem; }
.fs-viewer button {
  white-space: nowrap;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--rule);
  padding: .4rem .68rem;
  cursor: pointer;
  font: .84rem var(--mono);
}
.viewer-body {
  padding: .75rem;
  background: var(--mount);
  text-align: center;
  overflow: auto;
  max-height: 66dvh;
  overscroll-behavior: contain;
}
.viewer-body .scan-frame img { width: auto; max-width: 100%; max-height: 64vh; }
.viewer-body.magnified { text-align: left; }
.viewer-body.magnified .scan-frame { width: max(180%, var(--scan-width)); max-width: none; }
.viewer-body.magnified .scan-frame img { width: 100%; max-height: none; }
.viewer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: .65rem;
  font: .8rem/1.4 var(--mono);
}
.fs-viewer .magnify[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.forced-sales :is(a, summary, button, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 740px) {
  .harvard-evidence { grid-template-columns: 1fr; gap: 1.05rem; }
  .fs-deck { max-width: 58ch; }
  .harvard-evidence .wipe-figure { max-width: 29rem; }
}
@media (max-width: 580px) {
  .wipe-grid, .facing-pages { grid-template-columns: 1fr; }
  .case-section, .fs-method, .fs-appendix { font-size: 1.08rem; }
  .fs-appendix .leads-table { min-width: 39rem; }
}
@media print {
  .forced-sales .scan-zoom, .forced-sales figcaption, .wipe-figure { break-inside: avoid; }
  .fs-viewer { display: none; }
}
