/* RangeTrades: the Pulse view (#/pulse/<coin>, pulse.js; docs/PULSE.md). The sides' own colors, longs
   teal and shorts violet (never the tested lights' green, amber or red); one column on a phone, a grid
   of cards on a wide page, the two pictures across it. */

.pulse { --long: #4fc3d9; --short: #b98cf5; --even: #9aa0a6; --pu-card: #1a1b1d; --pu-line: #2c3036; --pu-sub: #b9bfc6;
  color: var(--text); container: pupage / inline-size; }
body.view-pulse main { max-width: none; }
.pu { max-width: 1240px; margin: 0 auto; padding: 14px 0 40px; display: flex; flex-direction: column; gap: 14px; }
.pu-loading { padding: 24px 0; }
.pu-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.pu-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pulse h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--text); }
.pu-tabs { display: flex; flex-wrap: wrap; background: #1b1c1e; border-radius: 10px; padding: 3px; gap: 2px; }
.pu-tabs a { display: flex; flex-direction: column; align-items: center; padding: 6px 14px; border-radius: 8px; color: var(--muted);
  font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.25; }
.pu-tabs a span { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pu-tabs a.on { background: #2c3036; color: var(--text); }
.pu-lede { margin: 0; color: var(--pu-sub); font-size: 14px; }
.pu-key { white-space: nowrap; margin-left: 6px; color: var(--muted); }
.pu-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 8px; vertical-align: -1px; }
.pu-key i.long, .pu-split i.long { background: var(--long); }
.pu-key i.short, .pu-split i.short { background: var(--short); }
.pu-note { background: #1c2230; border: 1px solid #2d3a52; color: #c9d6ee; border-radius: 10px; padding: 9px 12px; font-size: 14px; }

.pu-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@container pupage (min-width: 760px) {
  .pu-grid { grid-template-columns: 1fr 1fr; }
  .pu-card.wide { grid-column: 1 / -1; }
}
.pu-card { background: var(--pu-card); border: 1px solid var(--pu-line); border-radius: 12px; padding: 12px 14px; min-width: 0;
  display: flex; flex-direction: column; gap: 8px; }
.pulse h3 { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pu-say { margin: 0; font-size: 16px; line-height: 1.4; display: flex; gap: 9px; align-items: flex-start; }
.pu-say i { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: .45em; background: var(--even); }
.pu-say.t-long i { background: var(--long); } .pu-say.t-short i { background: var(--short); }
.pu-sub { margin: 0; color: var(--pu-sub); font-size: 13.5px; line-height: 1.45; }
.pu-split { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #26282b; gap: 2px; }
.pu-split i { display: block; min-width: 2px; }
.pu-split-l { display: flex; justify-content: space-between; font-size: 12.5px; font-variant-numeric: tabular-nums; margin-top: -3px; }
.pu-split-l .long { color: var(--long); } .pu-split-l .short { color: var(--short); }
.pu-entries { display: flex; flex-direction: column; gap: 8px; }
.pu-entry { display: grid; grid-template-columns: 5.2em auto 1fr; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 9px;
  background: #202124; border-left: 3px solid var(--even); }
.pu-entry.t-long { border-left-color: var(--long); } .pu-entry.t-short { border-left-color: var(--short); }
.pu-entry b { font-size: 17px; font-variant-numeric: tabular-nums; }
.pu-entry span:last-child { color: var(--pu-sub); font-size: 14px; }
.pu-k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pu-piles { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.pu-piles li.t-long::marker { color: var(--long); } .pu-piles li.t-short::marker { color: var(--short); }

.pu-map, .pu-heat { width: 100%; height: auto; display: block; }
.pu-bar.long, .pu-cell.long { fill: var(--long); } .pu-bar.short, .pu-cell.short { fill: var(--short); }
.pu-bar { opacity: .9; }
.pu-grid-l { stroke: #2a2d31; stroke-width: 1; }
.pu-ax { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.pu-ax.dim { fill: #6b7178; font-size: 10px; }
.pu-now { stroke: #e3e3e3; stroke-width: 1.2; stroke-dasharray: 4 3; }
.pu-now-t { fill: #e3e3e3; font-size: 11.5px; font-weight: 700; }
.pu-pile { font-size: 12px; font-weight: 700; }
.pu-tag { fill: #121315; fill-opacity: .92; stroke: #33373d; stroke-width: 1; }
.pu-pile.long { fill: var(--long); } .pu-pile.short { fill: var(--short); }
.pu-side { font-size: 11px; } .pu-side.long { fill: var(--long); } .pu-side.short { fill: var(--short); }
.pu-price { fill: none; stroke: #f1f3f4; stroke-width: 1.4; }

.pu-why summary { cursor: pointer; color: var(--blue); font-size: 13.5px; list-style: none; }
.pu-why summary::-webkit-details-marker { display: none; }
.pu-why summary::before { content: "▸ "; } .pu-why[open] summary::before { content: "▾ "; }
.pu-why p { margin: 6px 0 0; color: var(--pu-sub); font-size: 13.5px; line-height: 1.5; }
.pu-foot { margin: 4px 0 0; font-size: 13px; line-height: 1.5; }

/* four views in the header: on a phone they fit beside the name (the 480px block in charts.css was sized
   for three) */
@media (max-width: 420px) {
  header.top .view-sw a { padding: 0 7px; font-size: 13px; }
}
@media (max-width: 640px) {
  .pu { padding-top: 8px; }
  .pu-tabs { width: 100%; justify-content: space-between; }
  .pu-tabs a { flex: 1; padding: 6px 4px; }
  .pu-say { font-size: 15px; }
}
