/* DEE RECORDS Build 17 — site-wide readability and contrast layer */
:root {
  --dee-text-primary: #F7F8F6;
  --dee-text-secondary: #D1D8D2;
  --dee-text-muted: #B8C2BA;
  --dee-text-subtle: #AAB5AC;
  --dee-gold-readable: #F0CF78;
  --dee-border-readable: rgba(240, 207, 120, .48);
}
html { color-scheme: dark; }
body { color: var(--dee-text-primary) !important; }
/* Body copy, descriptions, captions and helper text */
p, li, dd, dt, figcaption, small, summary,
.description, .description *, .subtitle, .sub-title,
.lead, .muted, .hint, .helper-text, .form-hint,
.card-description, .section-description, .empty-state,
footer, footer * {
  color: var(--dee-text-secondary);
}
/* Keep headings crisp and unmistakable */
h1, h2, h3, h4, h5, h6,
.title, .page-title, .section-title, .card-title {
  color: var(--dee-text-primary) !important;
}
/* Labels and navigation */
label, legend, .form-label, .field-label,
nav a, header a, .site-nav a, .top nav a,
.admin-nav a, .sidebar a, .menu a {
  color: #E8ECE8;
}
/* Secondary and subdued text: raise contrast without changing status colors */
[ class~="muted" ], [class~="text-muted"],
.text-secondary, .secondary-text, .meta, .metadata,
.eyebrow, .est, .breadcrumb, .timestamp {
  color: var(--dee-text-muted) !important;
}
/* Inputs: readable values, labels, placeholders and select menus */
input, textarea, select, option, .form-control,
[contenteditable="true"] {
  color: var(--dee-text-primary) !important;
  background-color: #111A14;
  border-color: rgba(240,207,120,.48) !important;
}
input::placeholder, textarea::placeholder {
  color: #B7C2B9 !important;
  opacity: 1 !important;
}
select option { background: #111A14; color: #F7F8F6; }
/* Buttons and interactive controls */
button, .btn, .button, [role="button"], input[type="button"],
input[type="submit"] { text-shadow: none; }
button:not(.gold):not(.primary), .btn:not(.gold):not(.primary),
.button:not(.gold):not(.primary) {
  color: #F7F8F6;
}
.btn.gold, .button.gold, button.gold, .btn.primary,
button.primary, input[type="submit"] {
  color: #17130A !important;
}
a { text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:not(.btn):not(.button) { color: #F0CF78; }
a:not(.btn):not(.button):hover { color: #FFE7A6; }
/* Cards, panels and tables */
th { color: #F7F8F6 !important; }
td { color: #DCE3DD; }
.card, .panel, .glass-card, .stat-card, .table-wrap,
.modal, dialog, .notice, .alert {
  border-color: rgba(240,207,120,.34);
}
/* Status states retain clear semantic colors */
.success, .status-success, .text-success, [data-status="success"] { color: #8FE0A9 !important; }
.warning, .status-warning, .text-warning, [data-status="warning"] { color: #F4D47C !important; }
.error, .status-error, .text-error, [data-status="error"] { color: #FF9B9B !important; }
/* Keyboard and touch accessibility */
:focus-visible { outline: 3px solid #F0CF78 !important; outline-offset: 3px; }
button, a, input, select, textarea { -webkit-tap-highlight-color: rgba(240,207,120,.22); }
/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
