/* Direction: market ledger — warm paper, deep forest ink, a signal-green for deals */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f3f0e8;
  --surface: #faf8f5;
  --surface-2: #e7e5dd;
  --border: #d1d1c9;
  --border-strong: #abada6;
  --ink: #15211c;
  --muted: #5d625d;
  --accent: #0f6b4f;
  --accent-hover: #0d5b43;
  --accent-ink: #ffffff;
  --accent-text: #0b5a42;
  --accent-strong: #0f6b4f;
  --accent-soft: #d3ddd3;
  --accent-border: #8cb4a3;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #d8e3d3;
  --success-strong: #116d34;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #ebddcd;
  --warning-strong: #994607;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #ecd7d0;
  --danger-strong: #b91c1c;
  --chart-1: #0f6b4f;
  --chart-2: #1880a2;
  --chart-3: #4a3d8f;
  --chart-4: #a24b7e;
  --chart-5: #7c350b;
  --chart-6: #7a7515;

  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius-card: 14px;
  --x-on-photo: #ffffff;
  --x-good: #0f6b4f;
  --x-mid: #a04a07;
  --x-bad: #a82a1f;
  --font-sans: "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.02em;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #020f0b;
  --surface: #1b2723;
  --surface-2: #0f1b17;
  --border: #25312d;
  --border-strong: #4e5754;
  --ink: #f3f0e8;
  --muted: #939690;
  --accent: #0f6b4f;
  --accent-hover: #338169;
  --accent-ink: #ffffff;
  --accent-text: #619d8b;
  --accent-strong: #539581;
  --accent-soft: #05231a;
  --accent-border: #08382a;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #062816;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #291e0b;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #2a120f;
  --danger-strong: #d16969;
  --chart-1: #297d60;
  --chart-2: #2393b9;
  --chart-3: #7b72c9;
  --chart-4: #b75d90;
  --chart-5: #be6435;
  --chart-6: #8e8802;
}

/* busy state while htmx fetches, researches and rates listings */
.run-busy { display: none; }
#results.htmx-request .run-idle { display: none; }
#results.htmx-request .run-busy { display: inline-flex; }
#results.htmx-request .deal { opacity: 0.55; transition: opacity 0.2s; }
#results.is-running .run-idle { display: none; }
#results.is-running .run-busy { display: inline-flex; }
#results.is-running .deal { opacity: 0.55; }
.deal { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.deal:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.35); }
html.reduced-motion .deal:hover { transform: none; }
/* negotiation drawer */
.nego > summary { list-style: none; }
.nego > summary::-webkit-details-marker { display: none; }
.nego[open] .nego-chev { transform: rotate(180deg); }
.nego-chev { transition: transform 0.2s ease; }
