/* =========================================================
   MKM Lodge — Task 27.3 PRODUCTION · Signature Polish (rev 27.2)
   Activate: html.mkm-polish-27-2
   Activate: <html class="mkm-polish-27-2"> + load AFTER polish.css
   Color / opacity / box-shadow / border-color / CSS vars only.
   Chamber: no selectors.
   ========================================================= */

/* —— Dashboard (beat polish.css Task 19.6 !important via higher specificity) —— */
html.mkm-polish-27-2 #dashboard-view .kpi-label {
  color: rgba(212, 175, 55, 0.90);
}

html.mkm-polish-27-2 #dashboard-view .members-table th {
  color: #A3A3A3;
}

html.mkm-polish-27-2 #dashboard-view .members-table tbody tr:hover {
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.28);
}

html.mkm-polish-27-2 #dashboard-view .kpi-card {
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 8px 20px rgba(0, 0, 0, 0.38),
    0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

html.mkm-polish-27-2 #dashboard-view .kpi-card:hover {
  border-color: rgba(212, 175, 55, 0.26) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 10px 24px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(212, 175, 55, 0.12) inset !important;
}

/* Non-hero underlines: polish uses 0.25; nudge to 0.32 — keep gold visible */
html.mkm-polish-27-2 #dashboard-view .kpi-card:not(:nth-child(5))::after {
  opacity: 0.32 !important;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.85), transparent) !important;
}

/* Hero KPI underline stays expressive */
html.mkm-polish-27-2 #dashboard-view .kpi-card:nth-child(5)::after {
  opacity: 1 !important;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent) !important;
}

/* —— Trust —— */
html.mkm-polish-27-2 #trust-view .trust-cti-of,
html.mkm-polish-27-2 #trust-view .trust-meta,
html.mkm-polish-27-2 #trust-view .trust-factor-sub,
html.mkm-polish-27-2 #trust-view .trust-history-note,
html.mkm-polish-27-2 #trust-view .trust-log-row > span:first-child {
  color: #A8A29A;
}

html.mkm-polish-27-2 #trust-view .trust-track {
  background:
    linear-gradient(90deg,
      #7A2438 0%,
      #7A2438 28%,
      #8F7F52 28%,
      #8F7F52 62%,
      #3F8A5F 62%,
      #3F8A5F 100%) !important;
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

html.mkm-polish-27-2 #trust-view .trust-marker {
  box-shadow:
    0 0 0 2px rgba(212, 175, 55, 0.28),
    0 0 8px rgba(212, 175, 55, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.55) !important;
}

/* —— Capital (legend captions only; series untouched) —— */
html.mkm-polish-27-2 #investments-view .alloc-legend-meta,
html.mkm-polish-27-2 #investments-view .capital-empty-text,
html.mkm-polish-27-2 #investments-view .capital-drawer-field label,
html.mkm-polish-27-2 #investments-view .member-fixture-bar label {
  color: #A3A3A3;
}

html.mkm-polish-27-2 #investments-view .alloc-legend-name {
  color: #F0EBE3;
}

/* —— Rites —— */
html.mkm-polish-27-2 #rites-view {
  --r20-muted: rgba(210, 204, 188, 0.78);
  --r20-dim: rgba(210, 204, 188, 0.58);
  --r20-gold-line: rgba(212, 175, 85, 0.24);
}

html.mkm-polish-27-2 #rites-view .rites-container.r20--wide {
  border-color: rgba(212, 175, 85, 0.24);
}

html.mkm-polish-27-2 #rites-view .r20-degree-state,
html.mkm-polish-27-2 #rites-view .r20-meter-val,
html.mkm-polish-27-2 #rites-view .r20-meter-note,
html.mkm-polish-27-2 #rites-view .r20-degree-blurb {
  color: var(--r20-dim);
}

/* —— Sanctum —— */
html.mkm-polish-27-2 #sanctum-view .pyramid-segment.current,
html.mkm-polish-27-2 #sanctum-view .pyramid-segment[data-current='true'] {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 12px rgba(212, 175, 55, 0.18) !important;
}

html.mkm-polish-27-2 #sanctum-view .pyramid-segment.current:hover,
html.mkm-polish-27-2 #sanctum-view .pyramid-segment[data-current='true']:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 16px rgba(212, 175, 55, 0.24) !important;
}

html.mkm-polish-27-2 #sanctum-view .sanctum-bar-fill {
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.12);
}

html.mkm-polish-27-2 #sanctum-view .sanctum-pathways-kicker,
html.mkm-polish-27-2 #sanctum-view .sanctum-stat-label {
  color: #A3A3A3;
}
