/* Underwriting page (underwriting.html). Loads after search.css and property.css,
   which hold the palette, the header and the Valuator's form and tiles. */

/* Colors for the Subordination Calculator (subordination.css reads these).
   Emerald and Dark share the deep-background set; Light gets darker inks. */
:root {
  --sd-line-strong: rgba(205, 168, 94, .38);
  --sd-ink-3: #8a948c;
  --sd-bank: #84b2de;  --sd-bank-soft: rgba(132, 178, 222, .12);
  --sd-carry: #dca847; --sd-carry-soft: rgba(220, 168, 71, .12);
  --sd-sub: #be95cd;   --sd-sub-soft: rgba(190, 149, 205, .13);
  --sd-cash: #6fb3ad;  --sd-cash-soft: rgba(111, 179, 173, .12);
  --sd-good: #61c596;  --sd-good-soft: rgba(97, 197, 150, .12);
  --sd-bad: #e97c6f;   --sd-bad-soft: rgba(233, 124, 111, .13);
  --sd-warn: #d9a54c;  --sd-warn-soft: rgba(217, 165, 76, .13);
}
:root[data-theme="dark"] { --sd-ink-3: #868b94; --sd-line-strong: rgba(205, 168, 94, .32); }
:root[data-theme="light"] {
  --sd-line-strong: rgba(120, 95, 40, .4);
  --sd-ink-3: #6c7683;
  --sd-bank: #2e5f92;  --sd-bank-soft: #e2eaf3;
  --sd-carry: #95670f; --sd-carry-soft: #f6edda;
  --sd-sub: #6a4879;   --sd-sub-soft: #efe8f2;
  --sd-cash: #2a6b66;  --sd-cash-soft: #dfedeb;
  --sd-good: #1d6a4b;  --sd-good-soft: #dfefe7;
  --sd-bad: #a53127;   --sd-bad-soft: #f8e5e3;
  --sd-warn: #8a5a12;  --sd-warn-soft: #f7eedc;
}

.uw-head h1 { margin: 4px 0 2px; font-size: 24px; line-height: 1.25; }
.uw-head .sub { color: var(--muted); }
.uw-prop { margin-top: 14px; }
.uw-prop .facts { grid-template-columns: repeat(4, 1fr); }
.uw-prop-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.uw-prop-actions .btn { white-space: normal; }
.uw-jump { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.uw-none p { margin: 0 0 8px; }
.uw-none p:last-child { margin: 0; }
.calc .send { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.calc .send .fine { margin: 0; }
#subordination-host { display: block; }

@media (max-width: 760px) {
  .uw-prop .facts { grid-template-columns: repeat(2, 1fr); }
}
@media print {
  .top, .crumbs, .uw-jump, .uw-prop-actions, .calc .send { display: none !important; }
}
.calc .income { display: contents; }
