/* Reach board — Swing Desk + Flow Desk. Scoped so it does not restyle the Decision Desk. */
.reach {
  --reach-pos: #3dba7a;
  --reach-neg: #e25b5b;
  --reach-line: rgba(255, 255, 255, 0.08);
}

.reach-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 1.25rem;
}

.reach-switch a {
  border: 1px solid var(--reach-line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.reach-switch a[aria-current="page"] {
  color: var(--text, #f4f7fb);
  border-color: rgba(125, 211, 199, 0.55);
  background: rgba(125, 211, 199, 0.08);
}

.reach-status {
  margin: 0.35rem 0 0;
}

.reach-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}

.reach-block h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.reach-block > .reach-lead {
  margin: 0 0 0.85rem;
}

.reach-etfs,
.reach-names {
  display: grid;
  gap: 0.75rem;
}

.reach-etfs {
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}

.reach-names {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin-top: 0.85rem;
}

.reach-card {
  background: var(--card, #121a24);
  border: 1px solid var(--reach-line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem 0.95rem;
}

.reach-card--name {
  padding: 0.7rem 0.8rem;
}

.reach-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.reach-card__sym {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.reach-card--name .reach-card__sym {
  font-size: 1rem;
}

.reach-spot {
  margin: 0.35rem 0 0.55rem;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 1.25rem;
}

.reach-card--name .reach-spot {
  font-size: 1.05rem;
}

.reach-kv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.28rem 0.75rem;
  margin: 0;
}

.reach-kv dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.reach-kv dd {
  margin: 0;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.85rem;
  text-align: right;
}

.reach-pill,
.reach-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--reach-line);
  color: var(--muted);
}

.reach-pill--pos {
  color: var(--reach-pos);
  border-color: rgba(61, 186, 122, 0.45);
}

.reach-pill--neg {
  color: var(--reach-neg);
  border-color: rgba(226, 91, 91, 0.45);
}

.reach-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.reach-chip--warn {
  color: #e8c56a;
  border-color: rgba(232, 197, 106, 0.5);
}

.reach-em {
  margin-top: 0.7rem;
}

.reach-em__labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.reach-em__track {
  position: relative;
  height: 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.reach-em__range {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(226, 91, 91, 0.35), rgba(255, 255, 255, 0.08), rgba(61, 186, 122, 0.35));
}

.reach-em__spot {
  position: absolute;
  top: -3px;
  width: 3px;
  height: calc(100% + 6px);
  background: #f4f7fb;
  border-radius: 2px;
  transform: translateX(-50%);
}

.reach-meter {
  height: 0.35rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 0.35rem;
  overflow: hidden;
}

.reach-meter > span {
  display: block;
  height: 100%;
  background: #7dd3c7;
  width: 0;
}

.reach-subhead {
  margin: 1.15rem 0 0.55rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.reach-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.reach-row {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  gap: 0.55rem;
  align-items: center;
  background: var(--card, #121a24);
  border: 1px solid var(--reach-line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

.reach-row__sym {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.reach-row__meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-family: var(--mono, ui-monospace, monospace);
}

.reach-row__px {
  font-family: var(--mono, ui-monospace, monospace);
  text-align: right;
}

.reach-lotto {
  margin-top: 1rem;
  border: 1px solid var(--reach-line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: rgba(125, 211, 199, 0.04);
}

.reach-lotto.is-closed {
  background: transparent;
  opacity: 0.85;
}

.reach-lotto h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.reach-empty {
  color: var(--muted);
  margin: 0.4rem 0;
}

.reach-legend {
  margin: 0.85rem 0 0;
}

@media (max-width: 900px) {
  .reach-layout {
    grid-template-columns: 1fr;
  }

  .reach-row {
    grid-template-columns: 3.6rem 1fr;
  }

  .reach-row__px {
    grid-column: 2;
    text-align: left;
  }
}
