/* Lights On (siscto.si/lights-on/, v1.9.0): the site list with its small lines, the before and after view, the sources.
   It builds on the Heat Watch list and chart styles of sis-near.css. Built by Codeflex. */

/* ---------- the list ---------- */
.lo-tools .sg-chipbar { justify-content: center; }
.lo-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.lo-list.short > li:nth-child(n+25) { display: none; }
.lo-more { margin-top: 16px; }
[data-lo-count] { margin-bottom: 10px; text-align: center; }
.lo-row a, .lo-head { display: grid; grid-template-columns: 44px minmax(0, 1.6fr) minmax(120px, 1fr) 104px 104px 110px; gap: 8px 16px; align-items: center; }
.lo-row a { padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); color: inherit; text-decoration: none; transition: border-color .2s, background .2s; }
.lo-row a:hover { border-color: var(--line-2); background: rgba(255, 180, 94, .04); }
.lo-row.on a { border-color: var(--flare); background: rgba(255, 154, 60, .06); }
.lo-rank { font-family: var(--f-display); font-size: 15px; color: var(--dim); text-align: center; }
.lo-n b { display: block; color: var(--ice); font-weight: 700; overflow-wrap: anywhere; }
.lo-n small { display: block; color: var(--dim); font-size: 13.5px; }
.lo-spark { display: block; height: 30px; min-width: 0; }
.lo-spark svg { display: block; width: 100%; height: 30px; overflow: visible; }
.lo-spark polyline { fill: none; stroke: var(--flare); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lo-spark circle { fill: #ffd9a8; }
.lo-v { font-family: var(--f-mono); font-size: 13.5px; color: var(--mute); text-align: right; white-space: nowrap; }
.lo-v b { display: block; color: var(--ice); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lo-v small { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.lo-head { padding: 0 18px 6px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.lo-head span:nth-child(n+4) { text-align: right; }
.lo-head span:first-child { text-align: center; }
.lo-wait { margin-top: 14px; text-align: center; color: var(--mute); }

/* ---------- before and after ---------- */
.lo-view { display: grid; gap: clamp(14px, 2vw, 22px); }
.lo-pick { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; align-items: end; }
.lo-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(12px, 1.8vw, 20px); align-items: stretch; }
.lo-shot { margin: 0; padding: clamp(12px, 1.6vw, 18px); display: grid; gap: 10px; align-content: start; justify-items: center; text-align: center; }
.lo-shot canvas { display: block; width: 100%; max-width: 420px; height: auto; aspect-ratio: 1 / 1; border-radius: 10px; background: #05060a; image-rendering: pixelated; image-rendering: crisp-edges; }
.lo-shot figcaption { font-family: var(--f-mono); font-size: 13px; color: var(--mute); line-height: 1.5; }
.lo-shot figcaption b { display: block; color: var(--ice); font-size: 15px; font-weight: 600; }
.lo-side { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 2.2vw, 26px); }
.lo-side .cta-row { margin-top: auto; }
.lo-side .cta-row .btn { flex: 1 1 150px; }
.lo-dl { display: grid; gap: 10px; margin: 0; }
.lo-dl > div { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.lo-dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.lo-dl dt { color: var(--dim); }
.lo-dl dd { margin: 0; color: var(--ice); overflow-wrap: anywhere; }
.lo-chart .ev { stroke: var(--ion); }
.lo-chart .hw-key { justify-content: center; }
.lo-note { text-align: center; color: var(--mute); max-width: 920px; margin: 0 auto; line-height: 1.6; }

.lo-code { overflow-wrap: anywhere; word-break: break-word; }
/* ---------- sources, the set ---------- */
.lo-srcs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 20px); }
.lo-srcs .card { display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 2.2vw, 26px); }
.lo-srcs .card > p:last-child { margin-top: auto; }
.lo-srcs .h3, .lo-srcs .body-copy { overflow-wrap: anywhere; }
.lo-ack { margin: clamp(16px, 2vw, 24px) auto 0; max-width: 900px; text-align: center; color: var(--dim); font-size: 14px; line-height: 1.6; }
.lo-set .card { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; text-align: center; align-items: center; }
.lo-set .card .link-arrow { margin-top: auto; }

@media (max-width: 1100px) {
  .lo-srcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lo-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lo-side { grid-column: 1 / -1; }
}
@media (max-width: 1020px) {
  .lo-row a, .lo-head { grid-template-columns: 34px minmax(0, 1fr) 92px 92px 96px; }
  .lo-row .lo-spark, .lo-head span:nth-child(3) { display: none; }
}
@media (max-width: 700px) {
  .lo-pick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lo-pick .sg-label:first-child { grid-column: 1 / -1; }
  .lo-srcs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  /* phones: the name on its own line, the two figures under it, each with its label beside it */
  .lo-head { display: none; }
  .lo-row a { grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "r n n" "r v f"; gap: 8px 10px; padding: 12px 14px; }
  .lo-rank { grid-area: r; align-self: start; padding-top: 2px; }
  .lo-n { grid-area: n; }
  .lo-row .lo-v { grid-area: v; text-align: left; display: flex; align-items: baseline; gap: 7px; }
  .lo-row .lo-v.f { grid-area: f; }
  .lo-row .lo-v.y { display: none; }
  .lo-v small { letter-spacing: .04em; font-size: 10px; }
  .lo-shot { padding: 10px; }
  .lo-shot figcaption { font-size: 12px; }
  .lo-tools .sg-chip { flex: 1 1 auto; justify-content: center; }
  .lo-chart .ax { font-size: 15px; }
  .lo-chart .evt { font-size: 14px; }
}
