/* ==========================================================================
   /truth — fact-check page (loaded after aei.css, which carries the shared .vx-* UI language)
   Three tones: the cyan accent (correct, verified), neutral grey (unverified) and one warm tone (outdated, incorrect).
   ========================================================================== */
.tr { --t-ok: var(--a); --t-warn: #d8a35e; --t-none: #8a8a8a; }
.tr-sample { display: block; margin-top: 14px; font-size: 11.5px; color: var(--fg-4); }
.tr-hero-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); align-items: start; }
.tr-hero .vx-hero-copy { padding-top: 40px; }
.tr-facts li b { min-width: 0; }
.tr-v, .tr-tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); font-style: normal; font-size: 11px; line-height: 1.5; color: var(--fg-2); white-space: nowrap; --c: var(--t-none); }
.tr-v::before, .tr-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--c); flex: none; }
.tr-v.ok, .tr-tag.ok { --c: var(--t-ok); color: var(--t-ok); border-color: var(--a-line); }
.tr-v.warn, .tr-tag.warn { --c: var(--t-warn); color: var(--t-warn); border-color: rgba(216,163,94,.4); }
.tr-v.none, .tr-tag.none { --c: var(--t-none); color: var(--fg-2); border-style: dashed; border-color: #4a4a4d; }
.tr-v.none::before, .tr-tag.none::before { background: transparent; box-shadow: inset 0 0 0 1px var(--t-none); }
.tr .ax-qx-legend i.win { background: var(--t-ok); } .tr .ax-qx-legend i.warn { background: var(--t-warn); } .tr .ax-qx-legend i.none { background: transparent; box-shadow: inset 0 0 0 1px var(--t-none); }

/* ---------- 01 Fact check window ---------- */
.tr-check { font-size: 12.5px; box-shadow: 0 40px 120px rgba(0,0,0,.6); background: #0b0b0c; }
.tr-check .mock-top b span { color: var(--fg-2); }
.tr-check .mock-top b span:first-child { color: var(--fg); }
.tr-check-body { display: grid; gap: 12px; padding: 14px; min-height: 560px; }
.tr-score { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--a-line); border-radius: 12px; background: linear-gradient(180deg, rgba(1,194,225,.09), rgba(1,194,225,.015)); }
.tr-score-kpi { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l l" "v d"; align-items: baseline; gap: 0 10px; }
.tr-score-kpi small { grid-area: l; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.tr-score-kpi strong { grid-area: v; font-size: 32px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tr-score-kpi em { grid-area: d; font-style: normal; font-size: 12px; color: var(--t-ok); }
.tr-score-bar { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; }
.tr-score-bar i { width: var(--w); height: 100%; background: #333; }
.tr-score-bar i.ok { background: var(--t-ok); } .tr-score-bar i.warn { background: var(--t-warn); } .tr-score-bar i.none { background: #3a3a3d; }
.tr-score-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--fg-3); }
.tr-score-legend li { display: flex; align-items: center; gap: 6px; }
.tr-score-legend li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3a3a3d; }
.tr-score-legend li.ok::before { background: var(--t-ok); } .tr-score-legend li.warn::before { background: var(--t-warn); }
.tr-score-legend b { font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; }
.tr-stream { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tr-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: #0f0f10; color: var(--fg); animation: axPanel .5s var(--expo); transition: border-color .3s, background .3s, opacity .3s; }
.tr-item > span:first-child { font-size: 12.5px; line-height: 1.4; }
.tr-item > small { grid-column: 1; font-size: 11px; color: var(--fg-3); }
.tr-item > small b { font-weight: 500; color: var(--fg-2); }
.tr-item .tr-v { grid-column: 2; grid-row: 1 / span 2; }
.tr-item .tr-v.checking { color: var(--fg-3); }
.tr-item .tr-v.checking::before { background: transparent; border: 1px solid var(--fg-3); border-top-color: var(--a); border-radius: 50%; width: 9px; height: 9px; animation: trSpin .8s linear infinite; }
@keyframes trSpin { to { transform: rotate(360deg); } }
.tr-item.checking { border-color: var(--a-line); }
.tr-item.old { opacity: .55; }
.tr-check-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.tr-check-foot small { font-size: 11px; color: var(--fg-4); }

/* ---------- 03 Claim explorer ---------- */
.tr-claims { font-size: 13px; box-shadow: 0 40px 120px rgba(0,0,0,.6); background: #0b0b0c; }
.tr-claims .mock-top b span { color: var(--fg-2); }
.tr-claims-body { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.7fr); min-height: 440px; }
.tr-list { padding: 10px; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; margin: 0; list-style: none; }
.tr-q { display: grid; grid-template-columns: 8px minmax(0, 1fr); grid-template-rows: auto auto; gap: 3px 10px; align-items: center; width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid transparent; text-align: left; color: var(--fg-2); transition: background .25s, border-color .25s, color .25s, transform .4s var(--expo); }
.tr-q::before { content: ""; grid-row: 1 / span 2; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #555); box-shadow: 0 0 8px var(--c, transparent); }
.tr-q.hollow::before { background: transparent; box-shadow: inset 0 0 0 1px var(--c); }
.tr-q > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-q > small { font-size: 11px; color: var(--c, var(--fg-3)); }
.tr-q.hollow > small { color: var(--fg-3); }
.tr-q:hover, .tr-q:focus-visible { background: rgba(255,255,255,.03); color: var(--fg); outline: none; }
.tr-q.on { background: #151517; border-color: #2e2e31; color: var(--fg); transform: translateX(4px); }
.tr-q:focus-visible { box-shadow: 0 0 0 2px var(--a-line); }
.tr-panel { padding: 18px 22px 20px; min-width: 0; display: flex; flex-direction: column; gap: 14px; animation: axPanel .45s var(--expo); }
.tr-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tr-panel-head h4 { margin: 0; font-size: 16px; font-weight: 500; color: var(--fg); letter-spacing: -0.01em; line-height: 1.35; }
.tr-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tr-pair > div { display: grid; gap: 6px; align-content: start; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
.tr-pair small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); display: flex; align-items: center; gap: 8px; }
.tr-pair small::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.tr-pair p { margin: 0; font-size: 14px; color: var(--fg); line-height: 1.5; }
.tr-pair .said p { color: var(--fg-2); text-decoration: line-through; text-decoration-color: rgba(216,163,94,.6); text-decoration-thickness: 1px; }
.tr-pair .said.keep p { text-decoration: none; color: var(--fg); }
.tr-pair .fact { border-color: var(--a-line); background: linear-gradient(180deg, rgba(1,194,225,.07), rgba(1,194,225,.01)); }
.tr-pair .fact p::before { content: "✓ "; color: var(--t-ok); }
.tr-pair .fact.none p::before { content: "○ "; color: var(--t-none); }
.tr-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tr-meta > div { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); min-width: 0; }
.tr-meta small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.tr-meta b { font-weight: 500; color: var(--fg); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-meta span { font-size: 11.5px; color: var(--fg-3); }
.tr-engines { display: flex; gap: 5px; flex-wrap: wrap; }
.tr-engines i { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); font-style: normal; font-size: 10.5px; color: var(--fg-4); }
.tr-engines i.on { color: var(--fg); border-color: #4a4a4d; background: rgba(255,255,255,.04); }
.tr-fixrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: auto; padding: 12px 14px; border: 1px solid var(--a-line); border-radius: 12px; background: linear-gradient(90deg, rgba(1,194,225,.08), rgba(1,194,225,0) 70%); }
.tr-fixrow small { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--a); margin-bottom: 3px; }
.tr-fixrow b { display: block; font-weight: 500; color: var(--fg); font-size: 13.5px; }
.tr-fixrow span { display: block; font-size: 11.5px; color: var(--fg-3); margin-top: 2px; }
.tr-fixrow .btn { flex: none; }

/* ---------- 04 Spread by engine ---------- */
.tr-heat { padding: 8px 12px 12px; overflow-x: auto; }
.tr-heat table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 460px; }
.tr-heat th { padding: 10px 10px; font-weight: 500; color: var(--fg-3); font-size: 11px; letter-spacing: .04em; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.tr-heat th:not(:first-child) { text-align: center; }
.tr-heat td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); color: var(--fg); }
.tr-heat tr:last-child td { border-bottom: 0; }
.tr-heat td:first-child small { display: block; font-size: 10.5px; color: var(--fg-4); }
.tr-heat td:not(:first-child) { text-align: center; font-variant-numeric: tabular-nums; }
.tr-cell { display: inline-grid; place-items: center; min-width: 46px; padding: 3px 8px; border-radius: 6px; font-size: 11.5px; color: var(--fg-3); background: transparent; }
.tr-cell[data-l="1"] { background: rgba(216,163,94,.12); color: var(--fg); }
.tr-cell[data-l="2"] { background: rgba(216,163,94,.26); color: var(--fg); }
.tr-cell[data-l="3"] { background: rgba(216,163,94,.42); color: #000; }
.tr-heat tr:hover td { background: rgba(255,255,255,.025); }
.tr-heat tfoot td { color: var(--fg-3); font-size: 11.5px; border-top: 1px solid var(--line-soft); border-bottom: 0; }

/* ---------- 05 Verified facts ---------- */
.tr-memory-body { display: grid; gap: 12px; padding: 14px 16px 16px; }
.tr-facts-list { display: grid; gap: 4px; }
.tr-facts-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: #0f0f10; color: var(--fg); font-size: 13px; }
.tr-facts-list li span { display: grid; gap: 1px; min-width: 0; }
.tr-facts-list li small { font-size: 10.5px; color: var(--fg-4); }
.tr-facts-list li b { font-weight: 400; }
.tr-facts-list li.gap { border-style: dashed; background: transparent; color: var(--fg-2); }
.tr-memory-foot { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); font-size: 12.5px; color: var(--fg); }
.tr-memory-foot small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); flex: none; }

/* ---------- 06 From error to fix ---------- */
.tr-fix-tabs { margin-top: 20px; }
.tr-fix-body { display: grid; gap: 12px; padding: 16px; }
.tr-fix-kpi { display: flex; align-items: center; gap: 12px; }
.tr-fix-kpi strong { font-size: 34px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tr-fix-kpi small { display: block; font-size: 12px; color: var(--fg-2); }
.tr-fix-kpi em { display: block; font-style: normal; font-size: 12px; color: var(--a); }
.tr-chart { width: 100%; height: auto; display: block; overflow: visible; }
.tr-chart .grid line { stroke: #1f2023; stroke-dasharray: 2 4; }
.tr-chart .axis text { fill: #6b6b6b; font-size: 10px; }
.tr-chart .area { fill: url(#trFill); }
.tr-chart .line { fill: none; stroke: var(--t-warn); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; }
.tr-fix.in .tr-chart .line { animation: axDraw 1.4s var(--expo); }
.tr-chart .pt { fill: #0b0b0c; stroke: var(--t-warn); stroke-width: 2; }
.tr-chart .ev line { stroke: rgba(255,255,255,.25); stroke-dasharray: 3 3; transition: stroke .3s; }
.tr-chart .ev circle { fill: #0b0b0c; stroke: var(--fg-2); stroke-width: 1.5; cursor: pointer; transition: stroke .3s; }
.tr-chart .ev text { fill: var(--fg-3); font-size: 9.5px; text-anchor: middle; }
.tr-chart .ev.on line { stroke: var(--a); }
.tr-chart .ev.on circle { stroke: var(--a); fill: var(--a); }
.tr-chart .ev.on text { fill: var(--fg); }
.nv-tip { position: absolute; padding: 7px 10px; border-radius: 8px; background: #1c1c1d; border: 1px solid #333; font-size: 11px; color: var(--fg); pointer-events: none; transform: translate(-50%, -100%); white-space: nowrap; }
.nv-tip small { display: block; color: var(--fg-3); }
.nv-chart-wrap { position: relative; }
.tr-events { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tr-events li { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; color: var(--fg-2); cursor: default; transition: background .25s, color .25s; }
.tr-events li small { font-size: 11px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.tr-events li em { font-style: normal; font-size: 11px; color: var(--fg-3); }
.tr-events li.on, .tr-events li:hover { background: rgba(255,255,255,.04); color: var(--fg); }
.tr-events li.on em { color: var(--a); }

/* ---------- 07 Chain ---------- */
.tr-chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding-bottom: 32px; }
.tr-chain a { position: relative; display: grid; gap: 6px; align-content: start; padding: 20px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); transition: border-color .3s, transform .5s var(--expo); }
.tr-chain a:hover { border-color: rgba(1,194,225,.5); transform: translateY(-3px); }
.tr-chain a.on { border-color: var(--a-line); background: linear-gradient(180deg, rgba(1,194,225,.08), rgba(1,194,225,.01)); }
.tr-chain small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.tr-chain a.on small { color: var(--a); }
.tr-chain h3 { font-size: 15px; font-weight: 500; }
.tr-chain p { color: var(--fg-2); font-size: 13px; }
.tr-chain a:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 22px; color: var(--fg-4); font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tr-hero-grid { grid-template-columns: 1fr; }
  .tr-hero .vx-hero-copy { padding-top: 0; }
  .tr-check-body { min-height: 0; }
  .tr-chain { grid-template-columns: repeat(3, 1fr); }
  .tr-chain a:not(:last-child)::after { display: none; }
}
@media (max-width: 860px) {
  .tr-claims-body { grid-template-columns: 1fr; }
  .tr-list { border-right: 0; border-bottom: 1px solid var(--line-soft); flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .tr-q { flex: none; min-width: 220px; max-width: 250px; }
  .tr-q.on { transform: none; }
  .tr-claims .mock-top .ax-qx-legend { display: none; }
  .tr-pair, .tr-meta { grid-template-columns: 1fr; }
  .tr-fixrow { grid-template-columns: 1fr; }
  .tr-events li { grid-template-columns: 52px minmax(0, 1fr); }
  .tr-events li em { display: none; }
  .tr-chain { grid-template-columns: 1fr 1fr; }
  .tr-memory-foot { flex-wrap: wrap; }
}
@media (max-width: 600px) { .tr-chain { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tr-fix.in .tr-chart .line, .tr-item .tr-v.checking::before { animation: none; } }

/* ---------- Restraint pass: flat surfaces, hairlines instead of boxes, no gradients or glows ---------- */
.tr .mock { box-shadow: none; border-color: var(--line); }
.tr .vx-step { background: transparent; }
.tr .vx-step.on, .tr .vx-step:hover { background: rgba(255,255,255,.015); transform: none; }
.tr .vx-step .vx-sample { background: transparent; }
.tr-score { border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: none; padding: 4px 2px 14px; }
.tr-score-bar { height: 4px; }
.tr-stream { gap: 0; }
.tr-item { border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: none; padding: 11px 2px; }
.tr-item.checking { border-color: var(--line-soft); }
.tr-item.checking > span:first-child { color: var(--fg); }
.tr-item.old { opacity: .45; }
.tr-check-foot { border-top: 0; padding-top: 4px; }
.tr-pair > div, .tr-meta > div { background: none; border-color: var(--line-soft); }
.tr-pair .fact { border-color: var(--line-soft); border-left: 2px solid var(--a); background: none; }
.tr-fixrow { border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: none; padding: 14px 2px 0; }
.tr-engines i.on { background: none; border-color: #5a5a5d; }
.tr-cell { min-width: 0; padding: 0; border-radius: 0; background: none !important; color: var(--fg-3); }
.tr-cell[data-l="1"], .tr-cell[data-l="2"] { color: var(--fg); }
.tr-cell[data-l="3"] { color: var(--t-warn); font-weight: 500; }
.tr-heat th:not(:first-child), .tr-heat td:not(:first-child) { text-align: right; }
.tr-facts-list { gap: 0; }
.tr-facts-list li { border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: none; padding: 9px 2px; }
.tr-facts-list li.gap { border-style: solid; }
.tr-memory-foot { border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: none; padding: 12px 2px 0; }
.tr-chain a { background: transparent; }
.tr-chain a.on { background: transparent; border-color: var(--line); border-top: 2px solid var(--a); }
.tr-chain a:hover { transform: none; border-color: #3a3a3d; }
.tr .vx-hero-facts { border-top-color: var(--line-soft); }
.tr-v.ok, .tr-tag.ok { border-color: #2a3a3d; }
.tr-v.warn, .tr-tag.warn { border-color: #3d3326; }
.tr .ax-qx-legend { font-size: 10.5px; }
.tr-q.on { background: rgba(255,255,255,.03); border-color: transparent; transform: none; box-shadow: inset 2px 0 0 var(--a); border-radius: 0 10px 10px 0; }
.tr .vx-proc span.on { box-shadow: none; }
