/* Retro deal board (board.js). Always a dark sign, in light and dark mode. Colours from the palette:
   white #F1F1F1 14.6:1, yellow #FCC934 10.6:1, green #57B26C 6.3:1, grey #BDBDBD 8.8:1, all on #1F1F1F. */
.lb-wrap { padding-top: 22px; }
.lb { background: #1F1F1F; color: #F1F1F1; border-radius: 18px; padding: 22px 26px 16px; display: flex; gap: 28px; align-items: stretch;
  box-shadow: inset 0 0 0 5px #BDBDBD, inset 0 0 0 7px #808080; }
.theme-dark .lb { box-shadow: inset 0 0 0 1px #808080; }
.lb-grid { flex: 1 1 auto; min-width: 0; order: 1; }
.lb-side { flex: 0 0 280px; order: 2; display: flex; flex-direction: column; justify-content: center; gap: 12px; border-left: 1px solid #808080; padding-left: 26px; }
.lb-live { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.lb-dot { width: 10px; height: 10px; border-radius: 50%; background: #57B26C; flex: 0 0 auto; }   /* steady: nothing blinks */
.lb-paused .lb-dot { background: #808080; }
.lb-title { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 500; font-size: 42px; line-height: 1.02; color: #FFFFFF; }
.lb-title b { color: #FCC934; }
.lb-text { margin: 0; font-size: 15px; }
.lb-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lb-ctl button { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid #BDBDBD; background: transparent; color: #FFFFFF; font-weight: 600; font-size: 14px; }
.lb-ctl button:hover { background: rgba(189, 189, 189, .15); }
.lb :focus-visible { outline: 3px solid #FCC934; outline-offset: 2px; }
.lb-pg { font-size: 13px; }

/* The board: columns on wide screens. Text wraps instead of being cut off. */
.lb-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .55fr) minmax(0, .95fr) minmax(0, .75fr) minmax(0, 1.55fr); column-gap: 18px; align-items: center; }
.lb-hd { font-size: 15px; font-weight: 600; color: #FCC934; padding-bottom: 8px; }
.lb-rows { background-image: radial-gradient(circle, rgba(128, 128, 128, .28) 1.4px, transparent 1.7px); background-size: 7px 7px; border-radius: 6px; }
.lb-rows .lb-row { min-height: 52px; padding: 4px 0; font-family: Doto, "Courier New", monospace; font-weight: 900; font-size: 34px; letter-spacing: 1px; line-height: 1.05;
  text-transform: uppercase; overflow-wrap: anywhere; text-shadow: 0 0 6px rgba(241, 241, 241, .35); }
.lb-rows .amb { color: #FCC934; text-shadow: 0 0 6px rgba(252, 201, 52, .4); }
.lb-rows .grn { color: #57B26C; text-shadow: 0 0 6px rgba(87, 178, 108, .4); }
.lb-k { display: none; }
.lb-ow { font-family: Inter, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; text-shadow: none; color: #BDBDBD; }
.lb-city { all: unset; cursor: pointer; border-radius: 6px; overflow-wrap: anywhere; }
.lb-city:hover { color: #FCC934; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lb-city:focus-visible { outline: 3px solid #FCC934; outline-offset: 3px; }
.lb-foot { margin: 10px 0 0; font-size: 12px; color: #BDBDBD; }
/* New page: each row draws in from the left, one after another. Off for reduced motion (style.css). */
.lb-in { animation: lb-scan .7s steps(14) both; }
@keyframes lb-scan { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Home page: the board is the page. */
.lb-home { padding-top: 28px; padding-bottom: 12px; }
.lb-home .lb-side { flex-basis: 300px; }
.lb-access { font-size: 14px; }
.lb-link { all: unset; cursor: pointer; color: #FCC934; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lb-link:focus-visible { outline: 3px solid #FCC934; outline-offset: 2px; border-radius: 4px; }
.lb-all { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 12px;
  background: #FCC934; color: #1F1F1F; font-weight: 700; text-decoration: none; }
.lb-all:hover { background: #E89500; color: #1F1F1F; }
.lb-status { margin: 0 auto 28px; font-size: 14px; }
.lb-status:empty { display: none; }
.home-nav { margin-left: auto; }
.nav-link { text-decoration: none; }

/* Medium screens and zoom: the heading and controls go on top. */
@media (max-width: 980px) {
  .lb { flex-direction: column; gap: 16px; }
  .lb-side { order: 0; flex: 0 0 auto; border-left: 0; padding-left: 0; gap: 8px; }
  .lb-title { font-size: 32px; }
  .lb-rows .lb-row { font-size: 30px; }
}
/* Narrow screens and high zoom: each deal stacks into two lines, nothing is hidden or cut off. */
@media (max-width: 640px) {
  .lb-wrap { padding-left: 12px; padding-right: 12px; padding-top: 14px; }
  .lb { padding: 16px 14px 12px; border-radius: 14px; }
  .lb-title { font-size: 28px; }
  .lb-text { font-size: 14px; }
  .lb-hd { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  /* Line 1: destination and fare. Line 2: airport, saving and status, in plain type. */
  .lb-rows .lb-row { grid-template-columns: auto auto minmax(0, 1fr); column-gap: 12px; row-gap: 4px; padding: 8px 0; font-size: 24px; letter-spacing: 0;
    border-bottom: 1px solid rgba(128, 128, 128, .5); }
  .lb-rows .lb-row:last-child { border-bottom: 0; }
  .lb-rows .c-city { grid-row: 1; grid-column: 1 / 3; }
  .lb-rows .c-fare { grid-row: 1; grid-column: 3; justify-self: end; text-align: right; }
  .lb-rows .c-from, .lb-rows .c-off, .lb-rows .c-st { grid-row: 2; font-family: Inter, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .3px; text-shadow: none; }
  .lb-rows .c-st { justify-self: end; }
  .lb-k { display: inline; }
  .lb-ow { display: block; }
}
