/* Direction: Redheart Hospital — clinical crimson, ruby accents, deep maroon bands, paper-white cards */
/* 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: #fdf6f6;
  --surface: #ffffff;
  --surface-2: #fbeaec;
  --border: #f0d3d7;
  --border-strong: #b9adae;
  --ink: #2a0d13;
  --muted: #7b5257;
  --accent: #b00d2a;
  --accent-hover: #960b24;
  --accent-ink: #ffffff;
  --accent-text: #9b0b23;
  --accent-strong: #6e101e;
  --accent-soft: #fde7ea;
  --accent-border: #da8d9a;
  --success: #146b3c;
  --success-ink: #ffffff;
  --success-soft: #e1e5e0;
  --success-strong: #146b3c;
  --warning: #a84c06;
  --warning-ink: #ffffff;
  --warning-soft: #f3e2d9;
  --warning-strong: #a84c06;
  --danger: #bf1526;
  --danger-ink: #ffffff;
  --danger-soft: #f6dbdd;
  --danger-strong: #bf1526;
  --chart-1: #b00d2a;
  --chart-2: #9a700e;
  --chart-3: #125e06;
  --chart-4: #178288;
  --chart-5: #0040b1;
  --chart-6: #a545b6;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.02em;
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-input: 10px;
  --card-pad: 1.25rem;
  --x-on-photo: #ffffff;
  --x-pulse: rgba(176, 13, 42, 0.38);
  --gradient-crimson: linear-gradient(135deg, #7d0a1c 0%, #b00d2a 52%, #45070f 100%);
  --gradient-ruby: linear-gradient(120deg, #fde7ea 0%, #fbeaec 60%, #fdf6f6 100%);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #0f0203;
  --surface: #271b1c;
  --surface-2: #1b0f10;
  --border: #312526;
  --border-strong: #574e4f;
  --ink: #fdf6f6;
  --muted: #9e9495;
  --accent: #b00d2a;
  --accent-hover: #bc314a;
  --accent-ink: #ffffff;
  --accent-text: #cf6c7d;
  --accent-strong: #cb5f72;
  --accent-soft: #32040c;
  --accent-border: #570715;
  --success: #146b3c;
  --success-ink: #ffffff;
  --success-soft: #101910;
  --success-strong: #579573;
  --warning: #a84c06;
  --warning-ink: #ffffff;
  --warning-soft: #311204;
  --warning-strong: #bb733d;
  --danger: #bf1526;
  --danger-ink: #ffffff;
  --danger-soft: #36060b;
  --danger-strong: #d56570;
  --chart-1: #c52c3b;
  --chart-2: #af8118;
  --chart-3: #299a18;
  --chart-4: #22959c;
  --chart-5: #3b79ee;
  --chart-6: #b858c9;
}

.rhh-band {
  background-image: var(--gradient-crimson);
}

.rhh-ruby {
  background-image: var(--gradient-ruby);
}

.rhh-rule {
  background-image: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 55%, transparent 100%);
  height: 3px;
}

.rhh-alive {
  animation: rhh-pulse 2.4s ease-out infinite;
}

@keyframes rhh-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--x-pulse);
  }
  70%,
  100% {
    box-shadow: 0 0 0 14px transparent;
  }
}

html.reduced-motion .rhh-alive {
  animation: none;
}

.rhh-log {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
}

.rhh-log th,
.rhh-log td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.rhh-log th {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.rhh-log tbody tr:hover {
  background: var(--surface-2);
}
