/* THE HOME LANE'S OWN SHEET (Oct 6). How today's best plays were chosen (web/templates/_home_pipeline.html,
   web/static/pipeline.js): /sources' chip board (.srcmap) as a funnel - a dark board, neon traces, HUD labels in mono caps,
   the HUD line above it; without JS the stages are a plain list of cards. And the calibration chart in "How often we're
   right" (web/templates/_home_calibration.html). Colours are site.css's tokens; green and red only for the long and short
   side; every text >= 11.5px (the phone floor, tests/test_ux_viz10.py). */

/* ---------------------------------------------------------------- the section and its HUD line */
.pl { position: relative; margin: 46px 0 0; }
.pl-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin: 0 0 14px; }
.pl-hl { min-width: 0; flex: 1 1 380px; }
.pl-t { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.pl-sub { margin: 5px 0 0; max-width: 70ch; font-size: 14px; line-height: 1.45; color: var(--ink3); }
.pl-hud { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(79,140,255,.3); background: rgba(79,140,255,.06); box-shadow: inset 0 0 22px rgba(79,140,255,.07), 0 0 26px rgba(79,140,255,.06);
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.pl-hud > span + span::before { content: "·"; margin: 0 9px; color: var(--ink4); }
.pl-hud b { color: var(--ink); font-weight: 700; }
.pl-hud-k { color: var(--blue); }
.pl-led { display: inline-block; flex: none; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
@media (prefers-reduced-motion: no-preference) { .pl-led { animation: blink 1.6s steps(2, start) infinite; } }

/* ---------------------------------------------------------------- the board (pipeline.js); its card, hint and toast */
.pl-board { position: relative; border: 1px solid var(--line2); border-radius: 16px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, rgba(79,140,255,.07), rgba(79,140,255,0) 60%), linear-gradient(180deg, #0C0F14, #08090C); }
.pl-board canvas { display: block; width: 100%; outline: none; touch-action: manipulation; }
.pl-board canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); }
.pl-hint { position: absolute; left: 16px; bottom: 11px; z-index: 2; margin: 0; font-size: 11.5px; color: var(--ink3); pointer-events: none; }
.pl-card { position: absolute; z-index: 4; width: 330px; max-width: calc(100% - 24px); padding: 14px 16px 12px; border-radius: 12px;
  border: 1px solid var(--line2); border-top: 2px solid var(--c, var(--blue)); background: rgba(11,13,17,.96); backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.4); }
.pl-card .pl-sk { padding-right: 26px; }
.pl-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 7px; background: rgba(255,255,255,.05);
  color: var(--ink2); font-size: 15px; line-height: 1; cursor: pointer; }
.pl-x:hover { color: var(--ink); background: rgba(255,255,255,.1); }
.pl-toast { position: absolute; left: 50%; bottom: 8px; z-index: 5; max-width: 86%; padding: 7px 14px; border-radius: 999px; transform: translate(-50%, 8px);
  border: 1px solid var(--blue-dim); background: rgba(11,13,17,.95); color: var(--ink); font-size: 11.5px; text-align: center; opacity: 0;
  transition: opacity .35s, transform .35s; pointer-events: none; }
.pl-toast.on { opacity: 1; transform: translate(-50%, 0); }
.pl-hint { transition: opacity .3s ease; }
.pl-toasting .pl-hint { opacity: 0; }

/* ---------------------------------------------------------------- the stages as a list: the page without JS, the card's words */
.pl-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pl-s { min-width: 0; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.07); border-top: 2px solid var(--c, var(--blue));
  background: linear-gradient(180deg, #111419 0%, #0B0D11 100%); }
.pl-sk { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c, var(--blue)); }
.pl-sk b { font-weight: 700; }
.pl-no { font-size: 12px; color: var(--ink3); letter-spacing: .06em; }
.pl-n { margin: 0 0 6px; font-size: 13px; color: var(--ink3); }
.pl-n b { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.pl-say { margin: 0 0 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink2); }
.pl-parts { display: grid; gap: 3px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 12.5px; color: var(--ink3); }
.pl-parts li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.pl-parts b { color: var(--ink); font-size: 12.5px; }
.pl-parts small { font-size: 12px; color: var(--ink3); }
.pl-fine { margin: 0 0 8px; font-size: 12px; line-height: 1.45; color: var(--ink3); }
.pl-go { font-size: 13px; font-weight: 600; color: var(--ink2); text-decoration: none; }
.pl-go:hover { color: var(--blue); text-decoration: underline; }
/* with the board on, the list is for screen readers and search engines only (the card shows each item) */
.pl-js .pl-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- today's best plays: cards, on the board's last column */
.pl-plays { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0 0; }
.pl-c { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "lg m" "v v" "w w";
  align-items: center; gap: 2px 8px; min-width: 0; padding: 7px 10px 7px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(17,20,25,.96), rgba(11,13,17,.96)); color: var(--ink); text-decoration: none;
  transition: border-color .2s ease, box-shadow .3s ease, transform .2s ease; }
.pl-c .hf-lg { grid-area: lg; }
.pl-c-m { grid-area: m; display: flex; align-items: baseline; gap: 5px; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.pl-c-m b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }   /* a long symbol gives way, never the side */
.pl-c-m i { flex: none; font-style: normal; font-size: 12px; font-weight: 700; }
.pl-c-v { grid-area: v; white-space: nowrap; }
.pl-c-v b { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.pl-c-v small { font-size: 11.5px; color: var(--ink3); }
.pl-c-w { grid-area: w; font-size: 11.5px; color: var(--ink3); }
.pl-js .pl-c-w { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-js .pl-c-x { display: none; }                  /* on the board: one line a card (the list says the rest) */
.pl-js .pl-plays { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.pl-js .pl-c { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "lg m w v"; gap: 0 8px; padding: 5px 10px 5px 7px; }
.pl-long { border-left: 2px solid var(--mint-dim); }
.pl-short { border-left: 2px solid var(--red-dim); }
.pl-c:hover { border-color: rgba(79,140,255,.45); transform: translateY(-1px); }
.pl-long.pl-hit { border-color: rgba(56,242,164,.65); box-shadow: 0 0 0 1px rgba(56,242,164,.25), 0 0 22px rgba(56,242,164,.22); }
.pl-short.pl-hit { border-color: rgba(255,77,94,.65); box-shadow: 0 0 0 1px rgba(255,77,94,.25), 0 0 22px rgba(255,77,94,.2); }
.pl-wide .pl-plays { position: absolute; z-index: 2; margin: 0; transition: opacity .3s ease; }

/* a narrow board (pipeline.js: under 860px across) stacks its card, hint, toast and cards under the canvas */
.pl-board:not(.pl-wide) .pl-card { position: static; width: auto; max-width: none; margin: 0 10px 10px; }
.pl-board:not(.pl-wide) .pl-hint { position: static; padding: 0 14px 12px; }
.pl-board:not(.pl-wide) .pl-plays { margin: 0 10px 12px; }
.pl-board:not(.pl-wide) .pl-toast { bottom: auto; white-space: nowrap; }
@media (max-width: 900px) {
  .pl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .pl { margin-top: 40px; }
  .pl-t { font-size: 21px; }
  .pl-sub { font-size: 13.5px; }
  .pl-hud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 8px; border-radius: 12px; padding: 9px 12px 10px; letter-spacing: .05em; }
  .pl-hud-k { grid-column: 1 / -1; }
  .pl-hud > span + span::before { content: none; }
  .pl-hud > span:not(.pl-hud-k) { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .pl-hud b { font-size: 15px; }
  .pl-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- what we said vs what happened (web/calibration.py) */
.rlc-c { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); align-items: center; gap: 10px 30px; margin: 14px 0 0; padding: 16px 22px 14px 12px; }
.rlc-ch { min-width: 0; }
svg.rlc { display: block; width: 100%; height: auto; overflow: visible; }
.rlc text { font-family: var(--mono); font-size: 11px; }
.rlc-g { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 1; }
.rlc-t { fill: var(--ink3); }
.rlc-a { fill: var(--ink2); }
.rlc .rlc-h { fill: var(--ink3); font-size: 10.5px; opacity: .8; }
.rlc-diag { fill: none; stroke: var(--ink2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.rlc-b { cursor: help; }
.rlc-m { fill: none; stroke: var(--cyan); stroke-opacity: .55; stroke-width: 1.5; stroke-dasharray: 2 3; }
.rlc-d { fill: var(--cyan); fill-opacity: .3; stroke: var(--cyan); stroke-width: 1.5; filter: drop-shadow(0 0 6px rgba(95,211,232,.45)); }
.rlc-b.mk-on .rlc-d { fill-opacity: .6; }
.rlc .rlc-v { fill: var(--ink); font-weight: 700; font-size: 11.5px; }
.rlc-tx { min-width: 0; }
.rlc-hd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 6px; }
.rlc-hd b { font-size: 16px; color: var(--ink); }
.rlc-hd span { font-size: 12px; color: var(--cyan); letter-spacing: .06em; text-transform: uppercase; }
.rlc-s { margin: 0 0 10px; max-width: 80ch; font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
.rlc-l { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 4px 24px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 13px; color: var(--ink2); }
.rlc-l b { color: var(--ink); }
.rlc-l small { font-size: 12px; color: var(--ink3); }
.rlc-src { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink3); }
.rlc-src a { color: var(--ink2); }
@media (max-width: 759px) {
  .rlc-c { grid-template-columns: minmax(0, 1fr); padding: 14px 12px 12px 6px; }
  .rlc-tx { padding-left: 8px; }
}

/* the all-time line under the strip (data/ledger.py totals; owner, Oct 6: counters of every test run so far) */
.pl-all { flex-basis: 100%; margin: 6px 0 0; color: var(--ink3); font-size: 12px; letter-spacing: .02em; }
.pl-all b { color: var(--ink); font-weight: 700; }
.pl-all a { color: var(--ink2); }
