/* The Barometer — dark-chrome instrument page. Vanilla, CSS only.
   Sibling of the-judge/judge.css. Every figure is rendered at build time from
   barometer.json; this file only decides how a ruler looks next to a reading. */

.bar-wrap { max-width: 62rem; }
.bar-wrap > p:first-of-type { color: #e8e8f0; font-size: 1.06rem; line-height: 1.75; }

/* ── verdict panel ── */
.bar-verdict {
  display: flex; gap: 1rem; align-items: flex-start;
  margin: 1.6rem 0 2rem; padding: 1.1rem 1.25rem;
  background: linear-gradient(180deg, #16161a, #0f0f13);
  border: 1px solid #3a3a44; border-left: 3px solid #CC0000; border-radius: 4px;
}
.bar-vtag {
  flex: none; font: 700 .62rem/1 'JetBrains Mono', monospace; letter-spacing: .16em;
  text-transform: uppercase; color: #CC0000; padding-top: .35rem;
}
.bar-verdict p { margin: 0 0 .5rem; color: #e8e8f0; line-height: 1.65; }
.bar-vrun { font-family: 'JetBrains Mono', monospace; font-size: .74rem; color: #8a8a96; }
.bar-vrun code { color: #c8c8d0; }

/* ── blocks ── */
.bar-block { margin: 2.6rem 0 0; }
.bar-block h2 {
  font: 800 1.3rem/1.25 Inter, system-ui, sans-serif; letter-spacing: -.015em; color: #e8e8f0;
  margin: 0 0 .6rem; padding: 0; border: none;
}
.bar-sub { font-size: .92rem; line-height: 1.6; color: #b8b8c4; max-width: 76ch; margin: 0 0 1rem; }
.bar-foot { font-size: .8rem; line-height: 1.6; color: #8a8a96; max-width: 80ch; margin: .9rem 0 0; }
.bar-note { display: block; font: .68rem/1.45 'JetBrains Mono', monospace; color: #6f6f7c; margin-top: .25rem; max-width: 48ch; }
.bar-mde { color: #CC0000; }
.bar-disq { font-family: 'JetBrains Mono', monospace; color: #e8a33d; }

/* ── tables ── */
.bar-tbl { width: 100%; border-collapse: collapse; font-size: .82rem; }
.bar-tbl th {
  text-align: left; padding: .45rem .55rem; border-bottom: 1px solid #3a3a44;
  font: .62rem/1 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: #8a8a96;
}
.bar-tbl td { padding: .5rem .55rem; border-bottom: 1px solid #1f1f26; color: #b8b8c4; vertical-align: top; }
.bar-tbl td b { color: #e8e8f0; }
.bar-thin td, .bar-thin td b { color: #6f6f7c; }
.bar-cond td i { display: inline-block; height: .5rem; background: #CC0000; vertical-align: middle; margin-right: .4rem; border-radius: 2px; max-width: 8rem; }
.bar-sys { font-family: 'JetBrains Mono', monospace; font-size: .72rem; color: #8a8a96; max-width: 34ch; }

/* ── movement bars ── */
.bar-moves { display: grid; gap: .3rem; }
.bar-move {
  display: grid; grid-template-columns: minmax(12rem, 1.3fr) 3fr 2.4rem minmax(9rem, 1.2fr);
  align-items: center; gap: .8rem; padding: .3rem .4rem; border-radius: 3px;
}
.bar-move:hover { background: rgba(255,255,255,.03); }
.bar-model { font-family: 'JetBrains Mono', monospace; font-size: .74rem; color: #c8c8d0; overflow-wrap: anywhere; }
.bar-track { position: relative; display: block; height: .55rem; background: #1a1a20; border-radius: 3px; overflow: visible; }
.bar-track i { display: block; height: 100%; border-radius: 3px; background: #3a3a44; }
.bar-track em { position: absolute; top: -.25rem; bottom: -.25rem; width: 2px; background: #CC0000; }
.bar-clear1 .bar-track i { background: #e8a33d; }
.bar-clear2 .bar-track i { background: #CC0000; }
.bar-flips { font-family: 'JetBrains Mono', monospace; font-weight: 700; text-align: right; color: #e8e8f0; }
.bar-below .bar-flips, .bar-below .bar-model { color: #6f6f7c; }
.bar-verdictcell { font: .66rem/1.3 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: #8a8a96; }
.bar-clear1 .bar-verdictcell { color: #e8a33d; }
.bar-clear2 .bar-verdictcell { color: #CC0000; }

/* ── panel grid ── */
.bar-scroll { overflow-x: auto; }
.bar-grid td.bar-cell { font-family: 'JetBrains Mono', monospace; font-size: .72rem; white-space: nowrap; }
.bar-grid td.bar-cell .v { color: #e8e8f0; }
.bar-grid td.bar-cell .r { color: #CC0000; margin-left: .45rem; }
.bar-grid td.bar-cell .t { color: #e8a33d; margin-left: .45rem; }
.bar-grid td.bar-cell .r::before { content: "\2205 "; color: #6f6f7c; }
.bar-grid td.bar-cell .t::before { content: "\2702 "; color: #6f6f7c; }
.bar-grid td.bar-cell-refused { background: rgba(204,0,0,.08); }
.bar-grid td.bar-cell-empty { background: rgba(232,163,61,.06); }
.bar-chan { font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: #6f6f7c; }

.bar-may p { font-size: .92rem; line-height: 1.65; color: #b8b8c4; max-width: 76ch; }
.bar-may code { color: #c8c8d0; }

@media (max-width: 720px) {
  .bar-move { grid-template-columns: 1fr 2fr 2.2rem; }
  .bar-verdictcell { grid-column: 1 / -1; }
}
