/* Regulation: a pine band with the river (one lane per instrument, a dot per dated move over
   twelve months), then quiet paper: latest moves and every instrument with the competitors
   positioning on it (a dot per firm, sized by its facts; twentyfifty ringed in chartreuse). */

.rg-band { background: radial-gradient(110% 120% at 10% -20%, #14524a 0%, var(--pine) 50%, #072823 100%); color: #e6efe9; }
.rg-band .in { max-width: 1240px; margin: 0 auto; padding: 30px 20px 34px; }
.rg-band h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin: 0 0 10px; letter-spacing: -0.02em; }
.rg-lede { font-family: var(--serif); font-size: 1.18rem; line-height: 1.55; color: #dce9e1; max-width: 46em; margin: 0 0 26px; }

.rv { position: relative; padding: 4px 0 2px; }
.rv-axis { position: relative; height: 22px; margin-left: 150px; border-bottom: 1px solid rgba(162, 205, 156, 0.25); }
.rv-axis span { position: absolute; bottom: 5px; transform: translateX(-2px); font-size: 0.72rem; color: #8fb0a3; white-space: nowrap; }
.rv-axis span b { color: #c4d8cd; font-weight: 600; }
.rv-axis .rv-now { transform: translateX(-100%); color: var(--chartreuse); }
.rv-juris { margin: 10px 0 2px; font-size: 0.72rem; color: #8fb0a3; font-weight: 600; letter-spacing: 0.02em; }
.rv-lane { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; height: 24px; }
.rv-name { color: #e6efe9; text-decoration: none; font-size: 0.84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }
.rv-name:hover { color: var(--chartreuse); }
.rv-lane.quiet .rv-name { color: #7f9c91; font-weight: 400; }
.rv-track { position: relative; height: 100%; }
.rv-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(162, 205, 156, 0.22); }
.rv-lane.quiet .rv-track::before { background: rgba(162, 205, 156, 0.1); }
.rv-grid { position: absolute; top: 3px; bottom: 3px; width: 1px; background: rgba(162, 205, 156, 0.07); }
.rv-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 2px var(--pine), 0 0 12px rgba(162, 205, 156, .6); }
.rv-dot:hover, .rv-dot:focus-visible { background: var(--chartreuse); transform: scale(1.35); outline: none; }
.rv-tip { position: absolute; z-index: 4; max-width: 300px; background: #fff; color: var(--ink); border-radius: 8px; padding: 8px 11px; font-size: 0.82rem; line-height: 1.4; box-shadow: 0 12px 34px rgba(2, 20, 17, .45); pointer-events: none; opacity: 0; transform: translateY(-100%); transition: opacity .12s; }
.rv-tip.on { opacity: 1; }
@media (max-width: 700px) {
  .rv-axis { margin-left: 96px; }
  .rv-lane { grid-template-columns: 96px minmax(0, 1fr); }
  .rv-axis span:nth-child(even) { display: none; }
  .rv-axis span b { display: none; }
}

.rg-cols { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .rg-cols { grid-template-columns: 1fr; gap: 0; } }
.rg-moves { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--pine-deep); }
.rg-moves li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rg-moves li > span:last-child { display: block; }
.rg-date { color: var(--muted); font-size: 0.84rem; }
.rg-chip { display: inline-block; background: var(--pine-deep); color: #fff; border-radius: 5px; padding: 1px 8px; font-size: 0.78rem; font-weight: 600; text-decoration: none; white-space: nowrap; margin-right: 6px; vertical-align: 1px; }
.rg-chip:hover { background: var(--accent); color: #fff; }
.rg-title { color: var(--ink); font-weight: 600; text-decoration: none; }
.rg-title:hover { color: var(--accent); text-decoration: underline; }
.rg-moves .small { display: block; margin-top: 2px; }
@media (max-width: 700px) { .rg-moves li { grid-template-columns: 1fr; } }
.rg-aside { padding-top: 6px; }
.rg-aside h3 { margin: 0 0 8px; }
.rg-aside p { color: var(--ink-soft); font-size: 0.9rem; }
.rg-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 0.84rem; }

/* every instrument */
.rg-board { margin-top: 10px; }
.rg-juris { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--muted); margin: 26px 0 4px; }
.rg-list { border-top: 1px solid var(--line); }
.rg { border-bottom: 1px solid var(--line); }
.rg > summary { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.6fr) 130px 160px; gap: 18px; align-items: center; padding-top: 12px !important; padding-bottom: 12px !important; }
.rg-name b { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--pine-deep); }
.rg-name span { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.3; display: block; }
.rg-pos, .pz { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; min-height: 20px; }
.rg-pos i, .pz i { display: block; width: var(--s); height: var(--s); border-radius: 50%; background: var(--pine-deep); opacity: .78; }
.rg-pos i.us, .pz.us i { background: var(--pine); opacity: 1; box-shadow: 0 0 0 2.5px var(--chartreuse); }
.rg-pos em { font-style: normal; font-size: 0.78rem; color: var(--muted); margin-left: 4px; }
.rg-last b { color: var(--ink); font-weight: 600; }
.rg-uschip { display: inline-block; border-radius: 999px; padding: 2px 10px; background: var(--pine); color: #fff; font-size: 0.78rem; white-space: nowrap; box-shadow: inset 0 0 0 2px var(--chartreuse); }
@media (max-width: 900px) {
  .rg > summary { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

.rg-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 4px 0 22px 38px; }
@media (max-width: 900px) { .rg-body { grid-template-columns: 1fr; padding-left: 0; gap: 8px; } }
.rg-body h4 { font-family: var(--serif); font-size: 1rem; color: var(--pine-deep); margin: 8px 0 10px; }
.rg-tl { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--sage); }
.rg-tl li { position: relative; padding: 0 0 13px 6px; line-height: 1.4; }
.rg-tl li::before { content: ""; position: absolute; left: -23px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); }
.rg-tl .rg-date { display: block; font-size: 0.78rem; }
.rg-tl a { font-weight: 600; }
.rg-tl .small { display: block; }

.rg-bars { list-style: none; margin: 0; padding: 0; }
.rg-bars li { display: grid; grid-template-columns: 170px minmax(0, 1fr) 34px; gap: 10px; align-items: center; padding: 3px 0; font-size: 0.88rem; }
.rg-bars li a { color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-bars li a:hover { color: var(--accent); text-decoration: underline; }
.rg-bars li.us a { font-weight: 700; }
.rg-bar { display: flex; gap: 2px; height: 10px; }
.rg-bar i { display: block; height: 100%; border-radius: 2px; }
.rg-bar i:last-child { border-radius: 2px 4px 4px 2px; }
.rg-bar i.live, .rg-key.live { background: var(--pine-deep); }
.rg-bar i.rep, .rg-key.rep { background: var(--sage); }
.rg-bars li.us .rg-bar i.live { box-shadow: 0 0 0 2px var(--chartreuse); }
.rg-bars .num { text-align: right; color: var(--ink-soft); }
.rg-legend .rg-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin: 0 4px 0 8px; }
.rg-legend .rg-key:first-child { margin-left: 0; }
.rg-fact { padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.rg-fact p { margin: 0 0 3px; }
.rg-fact blockquote { margin: 4px 0; padding-left: 10px; border-left: 3px solid var(--sage); color: var(--ink-soft); font-family: var(--serif); }
.rg-other li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.rg-how { margin-top: 30px; max-width: 80ch; }


/* polish: market talk behind each lane, the legend, twentyfifty's standing */
.rv-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.8rem; color: #a9c2b6; margin: -12px 0 18px; }
.rv-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 8px rgba(162, 205, 156, .7); }
.lg-talk { width: 18px; height: 10px; border-radius: 2px; background: rgba(162, 205, 156, .45); }
.rv-talk { position: absolute; top: 6px; bottom: 6px; border-radius: 2px; box-shadow: inset -2px 0 0 #0b3832; background: rgba(162, 205, 156, var(--o)); }
.rv-lane:hover .rv-track::before { background: rgba(183, 201, 88, .5); }
.rv-lane:hover .rv-name { color: #fff; }
.rv-dot { z-index: 1; }
.rv-us { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--chartreuse); margin-left: 6px; vertical-align: 1px; }
.rg-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rg-pos b { font-family: var(--serif); font-size: 1.02rem; color: var(--ink); margin-right: 8px; min-width: 22px; }
.rg-pos i { opacity: var(--o, .78); }
.rg-pos em { font-style: normal; color: var(--muted); font-size: 0.82rem; }

.rg-stand { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 16px; }
.rg-stand h2 { margin: 0 0 6px; font-size: 1.2rem; }
.rg-stand-sum { color: var(--ink-soft); margin: 0 0 4px; }
.rg-stand-sum b { font-family: var(--serif); font-size: 1.25rem; color: var(--pine-deep); }
.rg-stand h3 { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--muted); margin: 14px 0 4px; }
.rg-stand-list { list-style: none; margin: 0; padding: 0; }
.rg-stand-list li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.rg-stand-list li:last-child { border-bottom: 0; }
.rg-stand-list a { font-weight: 600; color: var(--pine-deep); text-decoration: none; }
.rg-stand-list a:hover { color: var(--accent); text-decoration: underline; }
.rg-stand-list .num { color: var(--ink-soft); }
.rg-stand-list.silent a { color: var(--rose); }
.rg-stand-foot { font-size: 0.78rem; color: var(--muted); margin: 12px 0 0; }

/* panels */
.rg-cols { margin-top: 26px; gap: 24px; }
.panel .rg-moves { border-top: 0; }
.panel .rg-moves li:last-child { border-bottom: 0; }
.rg-board { margin-top: 0; }
.rg-board .rg-juris:first-of-type { margin-top: 6px; }
.rg-how { margin-top: 8px; }
.rg-cols { margin-bottom: 22px; }
.rg-cols > .panel { margin-bottom: 0; }
