/* ============================================================
   Fortress AMS — Lease Detail overlay reskin (v1.12.1.0).
   The lp-* Lease Detail screen (royalty-screen.css) shipped on the
   Castle Gap warm palette; the overlay mounts at body level, so the
   dossier's #asset-detail-dialog token remap never reaches it. This
   file (1) remaps the warm mt- tokens inside #lp-overlay onto the
   Fortress cool palette — same mapping asset-dossier.css uses — and
   (2) overrides the block's hardcoded warm hex values with Fortress
   tokens (generated 1:1 from the lp- rules; regenerate if lp- styles
   change). Loads after royalty-screen.css.
   ============================================================ */

#lp-overlay {
    --mt-cream-100: var(--bg-surface);
    --mt-cream-50:  var(--bg-surface);
    --mt-tan-100:   var(--bg-tertiary);
    --mt-tan-200:   var(--ink-200);
    --mt-tan-300:   var(--ink-300);
    --mt-brown-900: var(--ink-900);
    --mt-brown-800: var(--text-secondary);
    --mt-brown-700: var(--gold-text);
    --mt-brown-600: var(--gold-text);
    --mt-brown-500: var(--gold-800);
    font-family: var(--font-body);
}

/* Dark Fortress chrome for the overlay header (was a burnt-orange
   gradient) — matches the dossier's featured header treatment. */
#lp-overlay .lp-head {
    background: var(--gradient-featured, linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%));
    border-bottom: 1px solid var(--chrome-border, rgba(255, 255, 255, .08));
}

/* ---- generated hardcoded-color overrides ---- */
#lp-overlay { color: var(--text-primary); }
#lp-overlay .lp-muted { color: var(--text-tertiary); }
/* (generated .lp-head gradient override removed — the dark-chrome rule above is the intended header treatment; codex P2) */
#lp-overlay .lp-head-entity { color: var(--chrome-text-muted); }
#lp-overlay .lp-bl { color: var(--text-muted); }
#lp-overlay .lp-bv { color: var(--text-primary); }
#lp-overlay .lp-days-amber { color: var(--gold-600); }
#lp-overlay .lp-tab { color: var(--text-tertiary); }
#lp-overlay .lp-tabcount { color: var(--text-secondary); }
#lp-overlay .lp-content { background: var(--bg-tertiary); }
#lp-overlay .lp-ro-note { color: var(--text-secondary); }
#lp-overlay .lp-card-meta { color: var(--text-muted); }
#lp-overlay .lp-derived:hover { border-color: var(--gold-700); }
#lp-overlay .lp-cardmeta-hint { color: var(--text-muted); }
#lp-overlay .lp-provenance-key { color: var(--text-tertiary); }
#lp-overlay .lp-l { color: var(--text-tertiary); }
#lp-overlay .lp-req { color: var(--gold-600); }
#lp-overlay .lp-v { color: var(--text-primary); }
#lp-overlay .lp-na { color: var(--text-muted); }
#lp-overlay .lp-frac { color: var(--text-tertiary); }
#lp-overlay .lp-status-amber, #lp-overlay .lp-pill.amber { color: var(--gold-600); background: var(--gold-050); border-color: var(--gold-300); }
#lp-overlay .lp-status-neutral, #lp-overlay .lp-pill.neutral { color: var(--text-secondary); }
#lp-overlay .lp-placeholder { color: var(--text-tertiary); }
#lp-overlay .lp-tbd { color: var(--gold-700); background: var(--gold-050); border: 1px dashed var(--gold-400); }
#lp-overlay .lp-loading, #lp-overlay .lp-error { color: var(--text-tertiary); }
#lp-overlay .lp-drawer-head { background: linear-gradient(to bottom, var(--gold-600), var(--gold-800)); }
#lp-overlay .lp-drawer-body { background: var(--bg-tertiary); }
#lp-overlay .lp-fld-l { color: var(--text-secondary); }
#lp-overlay .lp-fld input, #lp-overlay .lp-fld select, #lp-overlay .lp-fld textarea { color: var(--text-primary); }
#lp-overlay .lp-fld-hint { color: var(--text-muted); }
#lp-overlay .lp-calc:hover { border-color: var(--gold-700); }
#lp-overlay .lp-check { color: var(--text-primary); }
#lp-overlay .lp-form-hint { color: var(--text-tertiary); }
#lp-overlay .lp-btn-primary { border: 1px solid var(--gold-700); }
#lp-overlay .lp-btn-ghost { color: var(--text-secondary); }
#lp-overlay .lp-fracopt:hover { border-color: var(--gold-700); }
#lp-overlay .lp-fracopt span { color: var(--text-tertiary); }
#lp-overlay .lp-fracpop-note { color: var(--text-tertiary); }
#lp-overlay .lp-table tbody td { color: var(--text-primary); }
#lp-overlay .lp-table .lp-notes { color: var(--text-secondary); }
#lp-overlay .lp-empty .t { color: var(--text-tertiary); }
#lp-overlay .lp-add { border: 1px solid var(--gold-700); }
#lp-overlay .lp-hint { color: var(--text-muted); }
#lp-overlay .lp-combo-meta { color: var(--text-secondary); }
#lp-overlay .lp-combo-src { color: var(--text-muted); }
#lp-overlay .lp-combo-empty { color: var(--text-tertiary); }
#lp-overlay .lp-legal-text { color: var(--text-primary); }
#lp-overlay .lp-legal-text.lp-legal-empty { color: var(--text-tertiary); }
#lp-overlay .lp-legal-notes { color: var(--text-secondary); }
#lp-overlay .lp-rule { color: var(--text-secondary); }
#lp-overlay .lp-file-sub { color: var(--text-muted); }
#lp-overlay .lp-drop { color: var(--text-tertiary); }
#lp-overlay .lp-due.hot { border-color: var(--gold-300); background: var(--gold-050); }
#lp-overlay .lp-due.hot .lp-due-n { color: var(--gold-600); }
#lp-overlay .lp-due-l { color: var(--text-secondary); }
#lp-overlay .lp-due-note { color: var(--text-tertiary); }
#lp-overlay .lp-tl-date { color: var(--text-tertiary); }
#lp-overlay .lp-tl-who { color: var(--text-secondary); }
#lp-overlay .lp-tl-detail { color: var(--text-secondary); }
#lp-overlay .lp-warn { background: var(--gold-050); border: 1px solid var(--gold-300); color: var(--gold-800); }
#lp-overlay .lp-warn-note { color: var(--text-secondary); }
