:root {
  --truth-bg: #060a08;
  --truth-bg-deep: #040605;
  --truth-panel: rgba(7, 14, 12, 0.9);
  --truth-panel-strong: rgba(10, 19, 16, 0.96);
  --truth-panel-soft: rgba(11, 22, 18, 0.76);
  --truth-line: rgba(140, 185, 165, 0.18);
  --truth-line-strong: rgba(183, 255, 89, 0.2);
  --truth-text: #f2f7eb;
  --truth-muted: #9bb0a2;
  --truth-acid: #b7ff59;
  --truth-cyan: #63e6ff;
  --truth-amber: #ffbf5e;
  --truth-pink: #ff7c8b;
  --truth-lime: #55ff9a;
  --truth-ink: #07110f;
  --truth-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

html,
body {
  min-height: 100%;
  background: var(--truth-bg);
}

body.truth-body {
  position: relative;
  min-height: 100vh;
  color: var(--truth-text);
  font-family: "IBM Plex Mono", monospace;
  background:
    radial-gradient(circle at top right, rgba(99, 230, 255, 0.08), transparent 28%),
    radial-gradient(circle at left 15%, rgba(183, 255, 89, 0.06), transparent 22%),
    linear-gradient(180deg, #08100d 0%, #050806 52%, #030403 100%);
}

body.truth-body::before,
body.truth-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body.truth-body::before {
  background:
    linear-gradient(90deg, rgba(99, 230, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(183, 255, 89, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
}

body.truth-body::after {
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.018),
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.24;
}

body.truth-body > * {
  position: relative;
  z-index: 1;
}

.truth-body .site-header {
  background: rgba(5, 10, 8, 0.9);
  border-bottom: 1px solid rgba(183, 255, 89, 0.1);
  backdrop-filter: blur(10px);
}

.truth-body .brand {
  color: var(--truth-text);
  text-decoration: none;
}

.truth-body .nav a {
  color: var(--truth-muted);
}

.truth-body .nav a.active,
.truth-body .nav a:hover {
  color: var(--truth-acid);
}

.truth-shell {
  padding: 42px 0 80px;
}

.truth-hero,
.truth-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--truth-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(183, 255, 89, 0.11), transparent 24%),
    radial-gradient(circle at bottom left, rgba(99, 230, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(13, 25, 21, 0.94), rgba(5, 10, 8, 0.96));
  box-shadow: var(--truth-shadow);
}

.truth-hero::before,
.truth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 0 48%, rgba(255, 255, 255, 0.018) 50%, transparent 52%);
  opacity: 0.35;
  pointer-events: none;
}

.truth-hero {
  padding: 28px;
  margin-bottom: 18px;
}

.truth-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 360px);
  gap: 18px;
}

.truth-hero-copy {
  min-width: 0;
}

.truth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(183, 255, 89, 0.24);
  background: rgba(183, 255, 89, 0.08);
  color: var(--truth-acid);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.truth-title,
.truth-panel h2,
.truth-panel h3 {
  font-family: "Space Grotesk", sans-serif;
}

.truth-title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.truth-title span {
  color: var(--truth-acid);
}

.truth-subtitle {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--truth-muted);
  font-size: 1rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.truth-link,
.truth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 192, 171, 0.18);
  background: rgba(5, 11, 9, 0.55);
  color: var(--truth-text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.truth-link:hover,
.truth-button:hover {
  transform: translateY(-1px);
  border-color: rgba(183, 255, 89, 0.34);
  background: rgba(13, 23, 19, 0.92);
}

.truth-button {
  cursor: pointer;
  font-family: inherit;
}

.truth-button.primary {
  border-color: rgba(183, 255, 89, 0.26);
  background: rgba(183, 255, 89, 0.14);
  color: var(--truth-acid);
}

.hero-protocol {
  padding: 22px;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(14, 27, 22, 0.96), rgba(6, 10, 8, 0.98));
}

.hero-protocol h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.05;
}

.protocol-list,
.source-list,
.disclosure-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.protocol-list {
  display: grid;
  gap: 12px;
}

.protocol-list li,
.source-list li,
.disclosure-list li {
  position: relative;
  padding-left: 18px;
  color: var(--truth-muted);
  line-height: 1.7;
}

.protocol-list li::before,
.source-list li::before,
.disclosure-list li::before {
  content: "*";
  position: absolute;
  left: 0;
  color: var(--truth-acid);
}

.hero-metrics,
.metric-grid,
.detail-grid {
  display: grid;
  gap: 12px;
}

.hero-metrics {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 18px;
}

.hero-metrics:empty,
.metric-grid:empty,
.summary-copy:empty,
.chart-legend:empty,
.hero-actions:empty {
  display: none;
}

.hero-pill,
.metric-card,
.mini-stat,
.stack-item {
  border-radius: 18px;
  border: 1px solid rgba(148, 192, 171, 0.12);
  background: rgba(6, 12, 10, 0.58);
}

.hero-pill {
  padding: 15px 16px;
}

.hero-pill .eyebrow,
.panel-kicker,
.metric-card .eyebrow,
.mini-stat .eyebrow,
.log-table th,
.chart-readout,
.table-note {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-pill .eyebrow,
.panel-kicker,
.metric-card .eyebrow,
.mini-stat .eyebrow {
  color: var(--truth-muted);
}

.hero-pill strong,
.metric-card .value,
.mini-stat .value {
  display: block;
  margin-top: 6px;
  color: var(--truth-text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.hero-pill strong {
  font-size: 1rem;
}

.control-layout {
  display: grid;
  grid-template-columns: minmax(310px, 370px) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.truth-panel {
  padding: 22px;
}

.truth-panel h2,
.truth-panel h3 {
  margin: 0;
  line-height: 1.05;
}

.panel-kicker {
  margin-bottom: 10px;
}

.panel-copy,
.field-group small,
.toggle-copy span,
.source-note,
.chart-note,
.table-note,
.microcopy {
  color: var(--truth-muted);
  line-height: 1.75;
}

.control-panel {
  display: grid;
  gap: 16px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label,
.toggle-copy strong {
  font-size: 0.94rem;
  font-weight: 600;
}

.field-input,
.field-select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 192, 171, 0.16);
  background: rgba(4, 8, 7, 0.8);
  color: var(--truth-text);
  font: inherit;
}

.field-input::placeholder {
  color: rgba(155, 176, 162, 0.55);
}

.field-input:focus,
.field-select:focus {
  outline: none;
  border-color: rgba(99, 230, 255, 0.46);
  box-shadow: 0 0 0 3px rgba(99, 230, 255, 0.12);
}

.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 192, 171, 0.12);
  background: rgba(6, 12, 10, 0.58);
}

.toggle-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--truth-acid);
}

.status-banner,
.warning-banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  line-height: 1.75;
}

.status-banner {
  border: 1px solid rgba(99, 230, 255, 0.18);
  background: rgba(99, 230, 255, 0.08);
  color: var(--truth-cyan);
}

.warning-banner {
  border: 1px solid rgba(255, 191, 94, 0.18);
  background: rgba(255, 191, 94, 0.08);
  color: var(--truth-amber);
}

.warning-banner ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.hidden {
  display: none !important;
}

.summary-copy {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.summary-copy p {
  margin: 0;
  color: var(--truth-muted);
  line-height: 1.8;
}

.summary-copy .summary-lead {
  color: var(--truth-text);
  font-size: 1.02rem;
}

.summary-copy .summary-pulse {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 192, 171, 0.14);
  background: rgba(7, 14, 12, 0.7);
  color: var(--truth-text);
  font-size: 0.82rem;
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-top: 18px;
}

.metric-card {
  padding: 16px;
}

.metric-card .value {
  font-size: 1.55rem;
  line-height: 1.05;
}

.metric-card .subtext {
  margin-top: 8px;
  color: var(--truth-muted);
  line-height: 1.7;
  font-size: 0.9rem;
}

.metric-card.good .value {
  color: var(--truth-lime);
}

.metric-card.warn .value {
  color: var(--truth-amber);
}

.metric-card.bad .value {
  color: var(--truth-pink);
}

.chart-stack {
  display: grid;
  gap: 18px;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.chart-panel {
  min-height: 360px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-head p {
  margin: 10px 0 0;
  color: var(--truth-muted);
  line-height: 1.75;
}

.chart-readout {
  min-width: 200px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 192, 171, 0.12);
  background: rgba(4, 8, 7, 0.76);
  color: var(--truth-muted);
  line-height: 1.65;
}

.chart-readout:empty {
  display: none;
}

.chart-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(148, 192, 171, 0.12);
  background:
    radial-gradient(circle at top left, rgba(99, 230, 255, 0.06), transparent 30%),
    linear-gradient(180deg, rgba(12, 23, 19, 0.96), rgba(4, 8, 7, 0.96));
}

.chart-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.016),
    rgba(255, 255, 255, 0.016) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

.chart-shell svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  z-index: 1;
}

.chart-note {
  padding: 24px 20px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 192, 171, 0.12);
  background: rgba(5, 11, 9, 0.62);
  color: var(--truth-muted);
  font-size: 0.85rem;
}

.legend-chip i {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 999px;
}

.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.mini-grid,
.stack-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mini-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.mini-stat,
.stack-item {
  padding: 14px;
}

.mini-stat .value {
  font-size: 1rem;
}

.stack-item strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.weight-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(183, 255, 89, 0.2);
  background: rgba(183, 255, 89, 0.1);
  color: var(--truth-acid);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-list {
  display: grid;
  gap: 10px;
}

.source-list a {
  color: var(--truth-cyan);
  text-decoration: none;
}

.source-list a:hover {
  text-decoration: underline;
}

.disclosure-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 192, 171, 0.08);
}

.log-wrap {
  margin-top: 16px;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(148, 192, 171, 0.12);
  background: rgba(4, 8, 7, 0.7);
}

.log-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.log-table th,
.log-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 192, 171, 0.08);
  text-align: left;
}

.log-table th {
  position: sticky;
  top: 0;
  background: rgba(5, 10, 8, 0.95);
  color: var(--truth-muted);
}

.log-table td {
  color: var(--truth-text);
  font-size: 0.92rem;
}

.log-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.signal-boost {
  color: var(--truth-lime) !important;
}

.signal-brake {
  color: var(--truth-amber) !important;
}

.manifest-link {
  margin-top: 16px;
}

.truth-footer {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 192, 171, 0.1);
  background: rgba(5, 10, 8, 0.72);
  color: var(--truth-muted);
  line-height: 1.75;
}

.wp-toggle {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 20;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 192, 171, 0.16);
  background: rgba(5, 10, 8, 0.84);
  color: var(--truth-text);
  cursor: pointer;
}

@media (max-width: 1180px) {
  .truth-hero-grid,
  .control-layout,
  .chart-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid > article[style] {
    grid-column: auto !important;
  }
}

@media (max-width: 760px) {
  .truth-shell {
    padding-top: 22px;
  }

  .truth-hero,
  .truth-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .truth-title {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .hero-actions,
  .inline-fields,
  .panel-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-metrics,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .chart-readout {
    min-width: 0;
  }

  .wp-toggle {
    left: 10px;
    bottom: 10px;
  }
}
