/* A station board: an old split-flap board (flap), an amber LED panel (led), a blue
   enamel station board (classic). It fills the frame it is shown in and scales with it;
   its letters are cells board.js turns. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.board-page { background: #0e0f11; font-family: "Helvetica Neue", Arial, sans-serif; color: #e8e8e3; }
.solari {
  --cell: #18191c; --cell-top: #222428; --ink: #f4f3ea; --head: #ffc400; --edge: #000; --row: #1c1d21; --panel: #26282c;
  --size: clamp(11px, 2.05vw, 30px);
  min-height: 100%; display: flex; flex-direction: column; padding: clamp(6px, 1.4vw, 18px); gap: clamp(4px, 1vw, 12px);
}
.solari-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 0 4px; }
.solari-title { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.solari-kind { color: var(--head); font-weight: 800; letter-spacing: .18em; font-size: calc(var(--size) * .62); }
.solari-station { color: var(--ink); font-size: calc(var(--size) * 1.15); font-weight: 700; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.solari-clock { color: var(--head); font: 700 calc(var(--size) * 1.35)/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; background: #000; padding: .12em .35em; border-radius: 4px; box-shadow: inset 0 0 0 1px #333; }
.solari-panel { flex: 1; display: flex; flex-direction: column; background: linear-gradient(#2c2e33, var(--panel)); border: 1px solid #000; border-radius: 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 18px rgba(0,0,0,.5); padding: .45em .5em .55em; font-size: var(--size); }
.solari-cols, .solari-row { display: grid; grid-template-columns: 5.6em 1fr 6.6em 4.6em 1.4em; align-items: center; gap: .55em; }
.solari-cols { padding: 0 .35em .35em; border-bottom: 1px solid #000; box-shadow: 0 1px 0 rgba(255,255,255,.06); margin-bottom: .3em;
  color: var(--head); font: 700 calc(var(--size) * .48)/1.2 "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; letter-spacing: .14em; }
.solari-rows { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: .18em; }
.solari-row { background: var(--row); border-radius: 3px; padding: .14em .35em; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), inset 0 -1px 0 #000; }
.solari-row > span { min-width: 0; overflow: hidden; white-space: nowrap; }
.solari-row [data-width] { font: 700 1em/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.cells { display: inline-flex; gap: .09em; }
.cell { position: relative; display: inline-block; width: .9em; height: 1.32em; line-height: 1.32em; text-align: center; color: var(--ink);
  background: linear-gradient(var(--cell-top) 0 50%, var(--cell) 50% 100%); border-radius: .1em; box-shadow: 0 1px 0 var(--edge), inset 0 1px 0 rgba(255,255,255,.07); overflow: hidden; }
.cell::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.8); box-shadow: 0 1px 0 rgba(255,255,255,.05); }
.cell.flip { animation: flip .07s linear; }
@keyframes flip { 0% { transform: perspective(4em) rotateX(0); } 50% { transform: perspective(4em) rotateX(-80deg); filter: brightness(.55); } 100% { transform: perspective(4em) rotateX(0); } }
.c-num .cell { color: #fff; } .c-cat .cell { color: var(--head); }
.lamp { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: #2a2a2a; box-shadow: inset 0 1px 2px #000; vertical-align: middle; }
.lamp.on { background: #ffd400; box-shadow: 0 0 .6em rgba(255, 212, 0, .85); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }
.solari-row.tomorrow .cell { color: #a9a9a2; }
.solari-foot { display: flex; justify-content: space-between; gap: 12px; color: #8b8f94; font-size: calc(var(--size) * .5); padding: 0 4px; }
.solari-foot strong { color: var(--head); } .solari-foot a { color: #8b8f94; text-decoration: none; }
/* led: amber dots on black, letters that change at once */
.board-led { background: #050505; }
.solari-led { --cell: #050505; --cell-top: #050505; --ink: #ffb000; --head: #ffb000; --row: #0a0a0a; --panel: #0b0b0b; }
.solari-led .cell { box-shadow: none; text-shadow: 0 0 .35em rgba(255, 176, 0, .8); background-image: radial-gradient(rgba(255,176,0,.06) 30%, transparent 32%); background-size: .18em .18em; }
.solari-led .cell::after { display: none; }
.solari-led .c-num .cell { color: #ffb000; }
/* classic: a station's blue enamel board, white letters */
.board-classic { background: #0b2440; }
.solari-classic { --cell: #0d2a49; --cell-top: #12345a; --ink: #fff; --head: #ffc400; --edge: #061526; --row: #103154; --panel: #12355b; }
@media (prefers-reduced-motion: reduce) { .cell.flip, .lamp.on { animation: none; } }
@media (max-width: 640px) { .solari { --size: clamp(10px, 3vw, 20px); } .solari-cols, .solari-row { grid-template-columns: 5.4em 1fr 6.4em 1.2em; } .c-cat { display: none; } }
