/* deeds-briefs-1130 A "deal deeds" (Anton 08:27 ET 2026-11-30, mockup approved 09:40 ET): the Brass Deal Table's properties as miniatures of the REAL title deed
   (deal_deeds1130.js; on by default, ?dealdeeds=0 = off for one load). The deed is deedCard() at a fixed design width per shape, shrunk with CSS zoom so its
   collar, enamel ring, brackets, notches and diamond keep their true proportions; inside it the type is set larger than the full deed
   (the rent table is trimmed to its key lines) so the miniature still reads at 1440 and at 390. Every surface is the deed's own. */

/* ---- the miniature: design width and zoom per shape (--dz = zoom; final width = design width x zoom) */
.dd-stage { --dz: .72; display: block; position: relative; line-height: normal; text-align: left; pointer-events: none; }
.dd-stage .deed-card { zoom: var(--dz); margin: 0 auto; perspective: none; }
.dd-stage .deed-card[data-shape="circle"] { width: 176px; padding: 13px; }                 /* face 176 + collar (176 x 1.14465) */
.dd-stage .deed-card[data-shape="rect"] { width: 206px; }
.dd-stage .deed-card[data-shape="diamond"] { width: 236px; aspect-ratio: 1 / 1.02; margin-bottom: 0; }
.dd-stage .deed-flip { animation: none !important; transform: none; }
.dd-stage .deed-card.deed-card .deed-stamp { animation: none !important; }
.dd-stage .deed-front::after { animation: none !important; }                                 /* Nexus rim flicker: still in a list */
.dd-stage .cd-collar { filter: drop-shadow(0 6px 8px rgba(5, 8, 24, .55)) !important; }

/* ---- type inside the miniature (pre-zoom px; on screen x .70 to x .86, so a 15 px label reads at 10.5 px or more) */
.dd-stage .deed-card.deed-card .deed-kick { font-size: 12px !important; line-height: 1.15 !important; letter-spacing: .06em !important; white-space: normal !important; text-wrap: balance; }
.dd-stage .deed-card.deed-card .deed-name { font-size: 24px !important; line-height: 1.05 !important; }
.dd-stage .deed-card.deed-card .deed-meta { font-size: 15px !important; padding-top: 5px !important; gap: 6px; align-items: baseline; }
.dd-stage .deed-card.deed-card .deed-meta b { font-size: 20px !important; }
.dd-stage .deed-card.deed-card .deed-rows { font-size: 16px !important; margin-top: 3px !important; }
.dd-stage .deed-card.deed-card .deed-rows td { padding: 1px 2px !important; }
.dd-stage .deed-card.deed-card .deed-owner { font-size: 15.5px !important; gap: 5px !important; padding: 5px 0 0 !important; font-weight: 700; flex-wrap: nowrap !important; white-space: nowrap; }
.dd-stage .deed-card.deed-card .deed-owner b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.dd-stage .deed-card.deed-card .deed-owner .mini-piece { width: 24px !important; height: 24px !important; flex: 0 0 auto; }
/* MORTGAGED: the deed's own red stamp, set over the rent lines (a mortgaged deed pays no rent) so name and price stay clear */
.dd-stage .deed-card.deed-card .deed-stamp { font-size: 18px !important; letter-spacing: .02em !important; padding: 0 7px !important; border-width: 3px !important; top: auto !important; bottom: 20% !important; transform: translateX(-50%) rotate(-9deg) !important; }

/* Ironbrook circle: face 176 inside the cast-iron collar (collar = face x 1.14465, as on the full deed) */
.dd-stage .cd[data-shape="circle"] > .cd-collar { width: calc((100% - 26px) * 1.14465) !important; }
.dd-stage .deed-card[data-shape="circle"] .deed-front { padding: 9% 12% 13% !important; justify-content: center; }
.dd-stage .deed-card[data-shape="circle"] .deed-band { width: 100% !important; padding: 5px 8px !important; }
.dd-stage .deed-card[data-shape="circle"] .deed-rows { width: 94% !important; align-self: center; }
.dd-stage .deed-card[data-shape="circle"] .deed-meta { width: 94%; align-self: center; box-sizing: border-box; padding-left: 2px !important; padding-right: 2px !important; }
.dd-stage .deed-card[data-shape="circle"] .deed-owner { max-width: 74% !important; font-size: 14px !important; padding-top: 3px !important; }
.dd-stage .deed-card[data-shape="circle"] .deed-owner .mini-piece { width: 20px !important; height: 20px !important; }
.dd-stage .deed-card[data-shape="circle"] .deed-stamp { bottom: 30% !important; }
.dd-stage .deed-card[data-shape="rect"] .deed-stamp { bottom: 34% !important; }
/* Goldspire rect: the band sits under the top brackets; the owner clears the bottom pair */
.dd-stage .deed-card[data-shape="rect"] .deed-band { padding: calc(27px + var(--gbx)) calc(17px + var(--gbx)) 8px !important; }
.dd-stage .deed-card[data-shape="rect"] .deed-meta { padding-left: calc(18px + var(--gbx)) !important; padding-right: calc(18px + var(--gbx)) !important; }
.dd-stage .deed-card[data-shape="rect"] .deed-owner, .dd-stage .deed-card[data-shape="rect"] .deed-owner.bank { padding-bottom: calc(24px + var(--gbx)) !important; }
/* Nexus diamond: the text column is the rhombus's wide middle; the owner rides the base plate under the point */
.dd-stage .deed-card[data-shape="diamond"] .deed-front { padding: 13% 0 14% !important; }
.dd-stage .deed-card[data-shape="diamond"] .deed-band { width: 60% !important; padding: 4px 4px !important; }
.dd-stage .deed-card[data-shape="diamond"] .deed-meta { width: 64% !important; justify-content: space-between !important; }
.dd-stage .deed-card[data-shape="diamond"] .deed-rows { width: 62% !important; }
.dd-stage .deed-card[data-shape="diamond"] .deed-kick { font-size: 11px !important; letter-spacing: .04em !important; }
.dd-stage .deed-card[data-shape="diamond"] .deed-name { font-size: 22px !important; }
.dd-stage .deed-card[data-shape="diamond"] .deed-meta b { font-size: 18px !important; }
.dd-stage .deed-card[data-shape="diamond"] .deed-stamp { bottom: 22% !important; }   /* over the Rent / Set lines, clear of the price */
.dd-stage .deed-card[data-shape="diamond"] .deed-base { position: relative; left: auto; top: auto; transform: none; width: fit-content; max-width: 92%; margin: -6px auto 0; }
.dd-stage .deed-card[data-shape="diamond"] .deed-base .deed-owner { width: auto !important; font-size: 15.5px !important; }

/* ---- the deal slot around the miniature: no ivory chip any more, the deed is the object */
.dl-deed.dd-mini { flex: 0 0 auto; width: auto; max-width: none; min-height: 0; padding: 4px 2px 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible;
  display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dl-deed.dd-mini:focus-visible { outline: 3px solid var(--gold2); outline-offset: 3px; }
.dd-cap { display: flex; justify-content: center; align-items: center; min-height: 22px; padding: 3px 9px; font: 800 11px/1 Nunito, sans-serif; letter-spacing: .08em; color: #fff7e6;
  background: rgba(5, 9, 28, .85); box-shadow: inset 0 0 0 1px rgba(255, 214, 120, .35);
  --c: 4px; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.dd-cap .dl-pips i { width: 8px; height: 8px; }
.dd-kind { white-space: nowrap; }
.dd-on .dl-offer-card .dl-deeds { justify-content: center; align-items: flex-start; gap: 12px 10px; }
@media (prefers-reduced-motion: no-preference) { .dl-deed.dd-mini { transition: transform .15s; } .dl-deed.dd-mini:hover { transform: translateY(-3px); } }

/* ---- composer: unpicked stays the folded slip; picked opens to the miniature deed */
.dl-deed.dd-slipwrap .dd-stage, .dl-deed.dd-slipwrap .dd-cap { display: none; }
.dl-deed.dd-slipwrap:has(input:checked) { background: none; border: 0; box-shadow: none; padding: 6px 0 2px; align-items: center; gap: 6px; overflow: visible; }
.dl-deed.dd-slipwrap:has(input:checked) > .dl-band, .dl-deed.dd-slipwrap:has(input:checked) > .dl-body, .dl-deed.dd-slipwrap:has(input:checked) > .dl-mort { display: none; }
.dl-deed.dd-slipwrap:has(input:checked) > .dd-stage, .dl-deed.dd-slipwrap:has(input:checked) > .dd-cap { display: flex; }
.dl-deed.dd-slipwrap:has(input:checked) > .dd-stage { display: block; filter: drop-shadow(0 0 10px rgba(255, 200, 80, .55)); }
/* the checkbox: a 44 px gold tick plate at the deed's top right when picked (the label is the tap target either way) */
.dl-deed.dd-slipwrap:has(input:checked) input[type=checkbox] { top: 0; right: 0; width: 26px; height: 26px; accent-color: #f2b632; z-index: 4; }
.dd-on .dl-compose .dl-deeds { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); justify-items: stretch; }
.dd-on .dl-compose .dl-deed.dd-slipwrap:has(input:checked) { grid-column: span 1; }

/* ---- 1440: two sides side by side, deeds 2 across; the table widens a little to give them room */
@media (min-width: 601px) { .dd-stage { --dz: .84; } .dd-stage[data-shape="diamond"] { --dz: .92; } .dd-on .modal-card.dl-offer, .dd-on .modal-card.dl-modal { max-width: 880px; } }

/* ---- phones: the two sides stay side by side (the approved table); each side's deeds stack, one per row, at ~150 px */
@media (max-width: 600px) {
  .dd-stage { --dz: .70; }
  .dd-stage[data-shape="diamond"] { --dz: .63; }
  .dd-on .dl-offer-card .dl-deeds { flex-direction: column; align-items: center; gap: 10px; }
  .dd-on .dl-offer-card .dl-deed.dd-mini { flex-basis: auto; width: 100%; }
  .dd-on .dl-compose .dl-deeds { grid-template-columns: minmax(0, 1fr); }
  .dd-on .dl-compose .dl-deed.dd-slipwrap:has(input:checked) { padding-top: 8px; }
  .dd-cap { font-size: 10.5px; }
}
/* 360 px phones: the round and the plate keep the 390 size (.70: 141 / 144 px in a ~155 px column) so their rent lines stay
   11.2 px; the rhombus steps down to .58 and its rent lines up to 19 px (11 px on screen) */
@media (max-width: 360px) {
  .dd-stage[data-shape="diamond"] { --dz: .58; }
  .dd-stage .deed-card.deed-card[data-shape="diamond"] .deed-rows { font-size: 19px !important; }
  .dd-on .dl-compose .dd-stage[data-shape="rect"] { --dz: .68; }                               /* 140 px: inside the composer's 142 px cell */
  .dd-stage .deed-card.deed-card[data-shape="rect"] .deed-rows { font-size: 16.5px !important; }   /* 11.2 px at .68 */
}

/* ---- per-shape type fit (after the 1440 / 390 review): the circle's and the rhombus's text columns are narrower than the plate's */
.dd-stage .deed-card[data-shape="circle"] .deed-front { padding: 13% 15% 15% !important; }
.dd-stage .deed-card[data-shape="circle"] .deed-kick { font-size: 10.5px !important; letter-spacing: .04em !important; }
.dd-stage .deed-card[data-shape="circle"] .deed-name { font-size: 20px !important; }
.dd-stage .deed-card[data-shape="circle"] .deed-meta { font-size: 13px !important; }
.dd-stage .deed-card[data-shape="circle"] .deed-meta b { font-size: 17px !important; }
.dd-stage .deed-card[data-shape="circle"] .deed-rows { font-size: 14px !important; }
.dd-stage .deed-card[data-shape="circle"] .deed-owner { font-size: 13px !important; max-width: 64% !important; }
/* Nexus rhombus, ship fit (deeds-briefs-1130): the phone zoom is .63, so every line is set for >= 11 px on screen where it matters.
   The block is centred on the rhombus's wide middle (equal top and bottom padding) so its narrow top and bottom stay clear; the
   rent lines (Rent, Set) run 42% of the plate at 18 px (11.3 px on a 390 phone, 16.6 px at 1440) and stay
   inside the diamond; the street name steps up to 21 px, the price to 19 px; the kicker stays at the mockup's size (the band sits in the rhombus's
   narrow top, where a long set name like MONEY TERRACES only fits at that size). */
.dd-stage .deed-card[data-shape="diamond"] .deed-front { padding: 9% 0 9% !important; }
.dd-stage .deed-card[data-shape="diamond"] .deed-band { width: 60% !important; padding: 4px 3px !important; }
.dd-stage .deed-card[data-shape="diamond"] .deed-kick { font-size: 10.5px !important; letter-spacing: .03em !important; line-height: 1.1 !important; }
.dd-stage .deed-card[data-shape="diamond"] .deed-band .deed-kick { white-space: normal !important; overflow: visible; }
.dd-stage .deed-card[data-shape="diamond"] .deed-name { font-size: 21px !important; }
.dd-stage .deed-card[data-shape="diamond"] .deed-meta { font-size: 17px !important; width: 54% !important; padding-top: 2px !important; }
.dd-stage .deed-card[data-shape="diamond"] .deed-meta b { font-size: 19px !important; }
.dd-stage .deed-card[data-shape="diamond"] .deed-rows { font-size: 18px !important; width: 42% !important; margin-top: 0 !important; }
.dd-stage .deed-card[data-shape="diamond"] .deed-rows td { padding: 0 3px !important; line-height: 1.15; }
/* desktop: the rhombus (236 px design width) is drawn at .78 (184 px) inside the composer's ~186 px cells (at .92 it overhung the
   next slip), and at .76 (179 px) in an offer column so two sit side by side (at .92 two Nexus deeds stacked and the 1440x900 offer
   needed scrolling) */
@media (min-width: 601px) { .dd-on .dl-compose .dd-stage[data-shape="diamond"] { --dz: .78; } .dd-on .dl-offer-card .dd-stage[data-shape="diamond"] { --dz: .76; } }
/* Ironbrook circle rent lines: 16 px (11.2 px on a 390 phone) */
.dd-stage .deed-card[data-shape="circle"] .deed-rows { font-size: 16px !important; width: 100% !important; }
