/* ============================================================
   O5 - Marked on site.  Layout marking seen from above.
   Ground: asphalt (dark, native) / daylight concrete (light).
   Paint: white and blue only. Structure: string lines, stakes, chainage.
   ============================================================ */

@font-face { font-family: "O5 Stencil"; src: url("../fonts/bigshoulders-stencil-display.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "O5 Text"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "O5 Text"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "O5 Text"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "O5 Mark"; src: url("../fonts/Syne-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #010101;
  --ink: #F2F1EC;
  --ink-2: #C9C8C2;
  --ink-3: #A09F99;
  --line: rgba(242, 241, 236, 0.18);
  --line-2: rgba(242, 241, 236, 0.4);
  --paint-w: #F2F1EC;
  --paint-b: #4D8DFF;
  --paint-edge: transparent;
  --string: #4D8DFF;
  --blue: #0943A0;
  --blue-2: #2F6BD8;
  --blue-3: #4D8DFF;
  --blue-4: #BFD2F7;
  --on-blue: #FFFFFF;
  --panel: #0B0B0B;
  --panel-2: #141414;
  --panel-3: #1D1D1C;
  --head: #1F1F1E;
  --on-head: #F2F1EC;
  --stake: #E4E3DE;
  --stake-edge: #010101;
  --tape: #0943A0;
  --tape-hi: #1A57C9;
  --hatch: rgba(242, 241, 236, 0.16);
  --lift: 0 14px 28px rgba(0, 0, 0, 0.6), 0 3px 6px rgba(0, 0, 0, 0.5);
  --target: rgba(77, 141, 255, 0.16);
  --target-2: rgba(77, 141, 255, 0.3);
  --stake-shadow: rgba(0, 0, 0, 0.9);
  --set-alpha: 0.62;
}

:root[data-theme="light"] {
  color-scheme: light;
  --ground: #E9E7E3;
  --ink: #2A2A2A;
  --ink-2: #444341;
  --ink-3: #5A5852;
  --line: rgba(42, 42, 42, 0.2);
  --line-2: rgba(42, 42, 42, 0.46);
  --paint-w: #FFFFFF;
  --paint-b: #0943A0;
  --paint-edge: #2A2A2A;
  --string: #0943A0;
  --blue: #0943A0;
  --blue-2: #2F6BD8;
  --blue-3: #0943A0;
  --blue-4: #BFD2F7;
  --on-blue: #FFFFFF;
  --panel: #F5F4F1;
  --panel-2: #E4E1DB;
  --panel-3: #D8D4CD;
  --head: #2A2A2A;
  --on-head: #F5F4F1;
  --stake: #FFFFFF;
  --stake-edge: #2A2A2A;
  --tape: #0943A0;
  --tape-hi: #1A57C9;
  --hatch: rgba(42, 42, 42, 0.14);
  --lift: 0 14px 26px rgba(60, 52, 40, 0.24), 0 3px 6px rgba(60, 52, 40, 0.18);
  --target: rgba(9, 67, 160, 0.1);
  --target-2: rgba(9, 67, 160, 0.2);
  --stake-shadow: rgba(58, 50, 38, 0.4);
  --set-alpha: 0.8;
}

:root {
  --pad: clamp(16px, 4vw, 64px);
  --nav-h: 64px;
  --f-stencil: "O5 Stencil", "Arial Narrow", sans-serif;
  --f-text: "O5 Text", "Helvetica Neue", Arial, sans-serif;
  --f-mark: "O5 Mark", "O5 Text", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background-color: var(--ground);
  background-size: 512px 512px;
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
canvas, svg { display: block; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* hub stake: symbols #stk-hub and #stk-tape; the viewBox puts the hub centre 14/32 across and 12/72 down */
.stk { position: absolute; width: 26px; height: 58.5px; overflow: visible; pointer-events: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

:focus-visible { outline: 2px dashed var(--paint-b); outline-offset: 3px; }

.wm { font-family: var(--f-mark); font-weight: 700; letter-spacing: -0.02em; }

.wrap, .wrap-wide { width: min(100% - 2 * var(--pad), 1472px); margin-inline: auto; }

.h2 {
  font-family: var(--f-stencil);
  font-weight: 750;
  text-transform: uppercase;
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-wrap: balance;
  max-width: 22ch;
}
.h2-xl { font-size: clamp(3.5rem, 9vw, 6rem); }
.sec-lede { margin-top: 1.1rem; max-width: 60ch; color: var(--ink-2); font-size: 1.1875rem; }
.aside-line { margin-top: 3rem; font-family: var(--f-stencil); font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.25rem; color: var(--ink-3); }

/* ---------- controls in the marking grammar ---------- */
/* Box button: a painted box marked at its four corners. */
.box-btn {
  --c: var(--line-2);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 40px; min-width: 40px; padding: 0 0.7rem;
  background:
    linear-gradient(var(--c), var(--c)) left top / 8px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) left top / 1.5px 8px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 8px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 1.5px 8px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 8px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 1.5px 8px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 8px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 1.5px 8px no-repeat;
  border: 0; border-radius: 0;
  font-family: var(--f-stencil); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem;
  cursor: pointer;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.box-btn:hover { --c: var(--ink); background-color: var(--panel-3); }
.box-btn[aria-pressed="true"], .lang-btn[aria-current="true"] { --c: var(--paint-b); color: var(--paint-b); }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Flagged stake: the primary action. A stake head with blue flagging tape tied on. */
.stake-cta {
  display: inline-flex; align-items: center;
  text-decoration: none; color: var(--on-blue);
  min-height: 40px;
  cursor: pointer;
}
.stake-head { width: 22px; height: 22px; flex: none; position: relative; z-index: 1; }
.stake-head rect { fill: var(--stake); stroke: var(--stake-edge); stroke-width: 1.5; }
.stake-head circle { fill: var(--stake-edge); }
.stake-cta .tape {
  margin-left: -3px;
  display: inline-flex; align-items: center;
  height: 32px; padding: 0 1.35rem 0 0.8rem;
  background: var(--tape);
  clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 50%, 100% 100%, 0 100%);
  font-family: var(--f-stencil); font-weight: 750; text-transform: uppercase; letter-spacing: 0.07em; font-size: 1rem;
  white-space: nowrap;
  transform-origin: left center;
  transition: background-color 180ms var(--ease-out), transform 260ms var(--ease-out);
}
.stake-cta:hover .tape { background: var(--tape-hi); transform: translateX(3px) rotate(-1.2deg); }
.stake-cta:active .tape { transform: translateX(1px); }
.stake-cta.is-big .stake-head { width: 30px; height: 30px; }
.stake-cta.is-big .tape { height: 46px; font-size: 1.3rem; padding: 0 1.9rem 0 1.1rem; clip-path: polygon(0 0, 100% 0, calc(100% - 15px) 50%, 100% 100%, 0 100%); }

.text-link {
  color: var(--ink); text-decoration: none; font-weight: 600;
  background: linear-gradient(90deg, var(--paint-b) 0 60%, transparent 60% 100%) left bottom / 10px 2px repeat-x;
  padding-bottom: 3px;
  transition: color 160ms var(--ease-out);
}
.text-link:hover { color: var(--paint-b); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: transparent;
  transition: background-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.nav.is-scrolled, .nav.is-open { background-color: var(--ground); background-image: var(--ground-img, none); background-size: 512px 512px; box-shadow: 0 1px 0 var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 1.5rem; padding-inline: max(var(--pad), calc((100% - 1472px) / 2)); }
.nav-wm { font-size: 1.45rem; text-decoration: none; color: var(--ink); }
.nav-links { display: flex; gap: 0.25rem; margin-left: auto; }
.nav-links a {
  position: relative; padding: 0.5rem 0.6rem; text-decoration: none; color: var(--ink-2);
  font-family: var(--f-stencil); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem;
  transition: color 160ms var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.25rem; height: 2px;
  background: linear-gradient(90deg, var(--paint-b) 0 60%, transparent 60%) left / 8px 2px repeat-x;
  transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="true"], .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-tools { display: flex; align-items: center; gap: 0.5rem; }
.lang { display: inline-flex; gap: 2px; }
.lang .box-btn { min-width: 40px; padding: 0 0.5rem; text-decoration: none; }
.theme-btn .ico-moon { display: none; }
:root[data-theme="light"] .theme-btn .ico-sun { display: none; }
:root[data-theme="light"] .theme-btn .ico-moon { display: block; }
.menu-btn { display: none; }
.menu { position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0; overflow-y: auto; overscroll-behavior: contain; background-color: var(--ground); background-image: var(--ground-img, none); background-size: 512px 512px; padding: 1rem var(--pad) 2rem; }
:root.menu-open, :root.menu-open body { overflow: hidden; }
.menu nav { display: grid; }
.menu nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--f-stencil); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.35rem; }
.menu .lang { margin-top: 1rem; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--nav-h)); margin-top: calc(-1 * var(--nav-h)); padding-top: var(--nav-h); overflow: hidden; }
.hero-ground { position: absolute; inset: 0; pointer-events: none; }
.hero-marks { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-frags { position: absolute; inset: 0; }
.hero-frags canvas { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; will-change: transform; }
.hero-line { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.hero-copy {
  position: relative; z-index: 2;
  min-height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(9rem, 30vh, 19rem) max(var(--pad), calc((100% - 1472px) / 2)) clamp(3rem, 8vh, 6rem);
}
.h1-wrap { position: relative; }
.h1 {
  position: relative; z-index: 1;
  font-family: var(--f-stencil); font-weight: 780; text-transform: uppercase;
  font-size: clamp(3.1rem, 6.3vw, 6rem); line-height: 0.92; letter-spacing: 0.01em;
  color: var(--paint-w);
}
.h1-a, .h1-b { white-space: nowrap; }
.h1-b { color: var(--paint-b); }
:root[data-theme="light"] .h1-a { color: var(--ink); }
.bl { display: inline-block; width: 0; height: 0; }
.h1-spray { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; }
/* once the sprayed layer sits on the text, the paint is what you see; the DOM text stays for reading, selecting and assistive tech */
.h1-wrap.is-painted .h1-a, .h1-wrap.is-painted .h1-b { color: transparent; }
@media (forced-colors: active) {
  .h1-spray { display: none; }
  .h1-wrap.is-painted .h1-a, .h1-wrap.is-painted .h1-b { color: CanvasText; }
}
.expand { display: flex; align-items: baseline; gap: 0.8rem; margin-top: 2.7rem; font-size: 1.3rem; }
.expand .wm { font-size: 1.35rem; }
.expand-t { font-family: var(--f-stencil); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.3rem; color: var(--ink); }
.lede { margin-top: 1rem; max-width: 44ch; font-size: clamp(1.1875rem, 1.5vw, 1.375rem); line-height: 1.5; color: var(--ink-2); }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.25rem; margin-top: 2rem; }
.cue { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 1rem; }
.cue:hover { color: var(--ink); }
.cue-mark { width: 26px; height: 38px; }

/* ---------- centerpiece: the day, marked out ---------- */
.day { position: relative; }
.day-stage { position: relative; padding: 6rem var(--pad) 5rem; }
.day-head { max-width: 62ch; }
.day-sub { margin-top: 0.9rem; color: var(--ink-2); max-width: 52ch; font-size: 1.125rem; }
.day-sub.is-order { display: none; }
/* French runs longer: the heading keeps two lines so the day still docks on the planner at 1440 x 900 */
.day-head:lang(fr) { max-width: none; }
.day-head .h2:lang(fr) { max-width: 26ch; }
.day-lines { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.day-date, .day-count { display: none; }
.lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem 1.5rem; margin-top: 2rem; }
.lane-head .station { font-family: var(--f-stencil); font-weight: 700; color: var(--paint-b); letter-spacing: 0.06em; font-size: 0.95rem; }
.lane-head h3 { font-family: var(--f-text); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.lane-head p { color: var(--ink-3); font-size: 0.9rem; }
.entries { display: grid; gap: 1rem; margin-top: 0.8rem; }
.frag { display: block; }
.frag-t { font-family: var(--f-stencil); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); font-size: 1rem; }
.frag canvas { display: block; }
.ans { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.6rem; align-items: baseline; }
.ans-time { font-family: var(--f-stencil); font-weight: 750; font-size: 1.3rem; letter-spacing: 0.03em; color: var(--paint-b); font-variant-numeric: tabular-nums; }
.ans-text { font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--ink); }
.ans-meta { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; font-size: 0.9375rem; color: var(--ink-2); }
.own {
  display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1.75px solid var(--paint-b); color: var(--paint-b);
  font-family: var(--f-stencil); font-weight: 750; font-size: 0.875rem; letter-spacing: 0.02em;
}
/* status: a stencilled word with a painted dash under it, not a chip */
.st {
  margin-left: auto;
  font-family: var(--f-stencil); font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; line-height: 1.1;
  color: var(--ink);
  background: linear-gradient(90deg, var(--paint-b) 0 70%, transparent 70%) left bottom / 9px 2px repeat-x;
  padding-bottom: 3px;
}
.day-sig { margin-top: 3rem; }
.sig { font-family: var(--f-stencil); font-weight: 780; text-transform: uppercase; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; color: var(--paint-w); }
:root[data-theme="light"] .sig { color: var(--ink); }
.sig-sub { margin-top: 0.4rem; color: var(--ink-3); font-size: 1rem; }
.next-link { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.next-link:hover span { color: var(--paint-b); }
.next-mark { width: 24px; height: 34px; }

/* JS-driven stage: everything placed by the line. */
.day.is-live { height: 330vh; }
.day.is-live .day-stage {
  position: sticky; top: var(--nav-h);
  height: calc(100svh - var(--nav-h)); padding: 0; overflow: hidden;
}
.day.is-live .day-head { position: absolute; left: max(var(--pad), calc((100% - 1472px) / 2)); top: clamp(1.25rem, 4vh, 2.75rem); z-index: 3; }
.day.is-live .day-subs { display: grid; }
.day.is-live .day-sub { grid-area: 1 / 1; }
.day.is-live .day-sub.is-order { display: block; opacity: 0; }
.day.is-live .day-date, .day.is-live .day-count {
  display: block; position: absolute; left: 0; top: 0; margin: 0; opacity: 0;
  font-family: var(--f-stencil); font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; color: var(--ink);
  white-space: nowrap;
}
.day.is-live .day-count { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.day.is-live .day-count b { color: var(--paint-b); font-weight: 780; }
.day.is-live .lanes, .day.is-live .entries { display: block; margin: 0; }
.day.is-live .lane.is-hidden { display: none; }
.day.is-live .lane-head, .day.is-live .frag, .day.is-live .ans, .day.is-live .day-sig {
  position: absolute; left: 0; top: 0; margin: 0; will-change: transform, opacity;
}
.day.is-live .lane-head { opacity: 0; }
.day.is-live .frag { transform-origin: 50% 50%; z-index: 2; }
.day.is-live .frag-t { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.day.is-live .ans { opacity: 0; clip-path: inset(0 100% 0 0); }
.day.is-live .day-sig { opacity: 0; z-index: 2; }
.day.is-live .entry.is-hidden { display: none; }
.day.is-live .lanes { position: static; }

/* ---------- sections ---------- */
.sec { position: relative; padding-top: clamp(5.5rem, 9vw, 8.5rem); }
.sec-head { margin-bottom: clamp(2rem, 3.5vw, 3rem); }
.proof .wrap-wide { position: relative; }

/* ---------- product frame (planner + live team) ---------- */
.app {
  --rail-w: 236px; --main-pad: 20px; --col-gap: 12px; --col-min: 220px; --col-max: 330px; /* day.js docks the centerpiece lanes on these */
  position: relative;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line-2);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.app-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: 0.5rem 1.25rem; background: var(--head); color: var(--on-head);
}
.app-title { font-weight: 600; font-size: 1.0625rem; }
.app-tabs { display: flex; gap: 4px; }
.tab {
  height: 32px; padding: 0 0.9rem; border: 0; cursor: pointer;
  background: transparent; color: var(--on-head);
  font-weight: 600; font-size: 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(242, 241, 236, 0.28);
}
.tab:hover { box-shadow: inset 0 0 0 1px rgba(242, 241, 236, 0.7); }
.tab[aria-pressed="true"] { background: var(--blue); box-shadow: none; color: #fff; }
.demo-note {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.25rem; border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 0.875rem; font-weight: 500;
}
.demo-note .ico { width: 16px; height: 16px; color: var(--paint-b); }
.kb-help { margin-top: 0.8rem; color: var(--ink-3); font-size: 0.875rem; max-width: 80ch; }
.kb-touch { display: none; }
.lbl { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3); }
.count-pill { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 0.4rem; text-align: center; font-size: 0.72rem; font-weight: 600; letter-spacing: 0; color: var(--paint-b); box-shadow: inset 0 0 0 1px var(--line-2); }

/* avatars: crew paint codes (A blue, B white, C light blue, D pale blue) */
.av {
  display: inline-grid; place-items: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.02em;
}
.cA { background: #0943A0; color: #fff; }
.cB { background: #F2F1EC; color: #111; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3); }
.cC { background: #4D8DFF; color: #010101; }
.cD { background: #BFD2F7; color: #0B1F3F; }

/* ----- month view ----- */
.mo { padding: 1rem 1.25rem 1.25rem; }
.mo-tools { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.mo-label { font-family: var(--f-stencil); font-weight: 750; text-transform: uppercase; font-size: 1.9rem; letter-spacing: 0.02em; line-height: 1; }
.mo-wd { display: grid; grid-template-columns: repeat(7, 1fr); padding-bottom: 0.4rem; }
.mo-wd span { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); padding-left: 8px; }
.mo-grid { position: relative; box-shadow: inset 0 1px 0 var(--line), inset 1px 0 0 var(--line); }
.mo-week { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); }
.mo-day {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left;
  height: 146px; padding: 8px 8px; border: 0; margin: 0;
  background: transparent; cursor: pointer;
  box-shadow: inset -1px -1px 0 var(--line);
  transition: background-color 150ms var(--ease-out);
}
/* grid points: a small painted cross where the layout lines meet */
.mo-day::after { content: ""; position: absolute; right: -4.5px; bottom: -4.5px; width: 9px; height: 9px; z-index: 1; background: linear-gradient(var(--ink-3), var(--ink-3)) center / 9px 1.5px no-repeat, linear-gradient(var(--ink-3), var(--ink-3)) center / 1.5px 9px no-repeat; }
.mo-day:hover { background: var(--panel-2); }
.mo-day.is-wknd { background: var(--panel-2); }
.mo-day.is-wknd:hover { background: var(--panel-3); }
.mo-day.is-out .mo-n { color: var(--ink-3); }
.mo-n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; font-family: var(--f-stencil); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.mo-day.is-today { box-shadow: inset 0 0 0 2px var(--paint-b); }
.mo-day.is-today .mo-n { background: var(--blue); color: #fff; }
.mo-note {
  position: absolute; left: 6px; right: 6px; bottom: 6px;
  display: flex; align-items: center; gap: 5px;
  padding: 2px 6px; background: var(--panel-3);
  font-size: 0.6875rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mo-note i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--paint-b); }
.mo-bar {
  position: absolute; height: 22px; pointer-events: none;
  display: flex; align-items: center; gap: 4px; padding: 0 8px;
  font-size: 0.78rem; font-weight: 600; white-space: nowrap; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.mo-bar .nt { font-weight: 400; opacity: 0.8; overflow: hidden; text-overflow: ellipsis; }
.mo-bar .nm { overflow: hidden; text-overflow: ellipsis; flex: none; max-width: 100%; }
.mo-bar.is-cont-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 12px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 12px), transparent); }
.mo-bar.is-done::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 1.5px, transparent 1.5px 6px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.16) 0 1.5px, transparent 1.5px 6px); }
.mo-bar.is-paused::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.34) 0 4px, transparent 4px 9px); }
.mo-bar .chk { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; position: relative; }
.mo-bar > span { position: relative; }
.p-sealing { background: #0943A0; color: #fff; }
.p-striping { background: #F2F1EC; color: #111; }
.p-crack { background: #4D8DFF; color: #010101; }
.p-measure { background: #BFD2F7; color: #0B1F3F; }
.p-shop { background: #4A4946; color: #F2F1EC; }
.p-curb { background: #2F6BD8; color: #fff; }
.p-lot { background: #D6D5CF; color: #111; }
:root[data-theme="light"] .p-striping, :root[data-theme="light"] .p-lot { box-shadow: inset 0 0 0 1px #2A2A2A; }
.p-striping.is-done::before, .p-lot.is-done::before, .p-measure.is-done::before { background: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.12) 0 1.5px, transparent 1.5px 6px), repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.12) 0 1.5px, transparent 1.5px 6px); }
.mo-more {
  position: absolute; height: 18px; padding: 0 6px; pointer-events: none;
  display: inline-flex; align-items: center;
  font-size: 0.72rem; font-weight: 600; color: var(--ink-2); background: var(--panel-3);
}
.mo-expand {
  position: fixed; z-index: 60; pointer-events: none;
  box-shadow: inset 0 0 0 2px var(--paint-b);
  transform-origin: 0 0;
}

/* ----- day view ----- */
.dv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--line); }
.crumb { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9375rem; }
.crumb button { border: 0; background: none; padding: 0.2rem 0; cursor: pointer; color: var(--ink-2); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.crumb button:hover { color: var(--ink); }
.crumb b { font-weight: 600; }
.crumb .sep { width: 14px; height: 14px; color: var(--ink-3); }
.dv-nav { display: flex; gap: 4px; margin-left: 0.4rem; }
.dv-nav .box-btn { min-height: 32px; min-width: 32px; padding: 0; }
.dv-nav .ico { width: 16px; height: 16px; }
.dv-grid { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); }
.dv-rail { padding: 1rem; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 1.1rem; }
.rail-block .lbl { display: flex; align-items: center; margin-bottom: 0.5rem; }
.rail-crew { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.rail-wrap { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  display: flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 8px 3px 3px;
  background: var(--panel-2); border: 0; cursor: grab; text-align: left;
  font-size: 0.8125rem; font-weight: 500; color: var(--ink);
  touch-action: none; user-select: none; -webkit-user-select: none;
  transition: opacity 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
.chip:hover { background: var(--panel-3); }
.chip.is-placed { opacity: 0.45; }
.chip.is-src { opacity: 0.4; }
.chip.is-picked { outline: 2px dashed var(--paint-b); outline-offset: 2px; opacity: 1; }
.chip-wt, .chip-eq { padding: 3px 8px; min-height: 28px; font-size: 0.78rem; }
.grip { width: 8px; height: 14px; flex: none; color: var(--ink-3); }
.unit { font-size: 0.66rem; font-weight: 600; padding: 0 4px; color: var(--paint-b); box-shadow: inset 0 0 0 1px var(--line-2); }
.eq-dot { width: 10px; height: 10px; flex: none; border-radius: 2px; background: var(--paint-b); }
.dv-main { min-width: 0; padding: 1rem var(--main-pad) 1.25rem; }
.dv-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0.75rem 1.5rem; margin-bottom: 1rem; }
.dv-top .lbl { margin-bottom: 0.4rem; }
.note-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; background: var(--panel-2); font-size: 0.8125rem; }
.note-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--paint-b); }
.arr { display: grid; gap: 4px; }
.arr-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0.6rem; align-items: center; font-size: 0.8125rem; }
.arr-row b { font-variant-numeric: tabular-nums; font-weight: 600; }
.arr-row > span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arr-avs { display: inline-flex; gap: 2px; margin-right: 6px; vertical-align: middle; }
.arr-avs .av { width: 20px; height: 20px; font-size: 0.55rem; }
.bcast { font-size: 0.8125rem; color: var(--ink-2); margin-top: 0.5rem; }
.dv-cols { display: flex; gap: var(--col-gap); overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.col { position: relative; flex: 1 0 var(--col-min); max-width: var(--col-max); background: var(--panel); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.col-head { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--head); color: var(--on-head); }
.col-idx { flex: none; display: grid; place-items: center; width: 22px; height: 22px; background: var(--stake); color: #111; box-shadow: 0 0 0 1.5px var(--stake-edge); font-family: var(--f-stencil); font-weight: 750; font-size: 0.85rem; }
.col-name { font-weight: 600; font-size: 0.875rem; line-height: 1.25; }
.col-note { font-size: 0.75rem; opacity: 0.78; }
.col-st { margin-left: auto; flex: none; font-family: var(--f-stencil); font-weight: 750; font-size: 0.95rem; letter-spacing: 0.05em; color: #7FAAFF; }
.marks { display: grid; gap: 8px; }
.mk { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 1px 8px; align-items: start; font-size: 0.8125rem; line-height: 1.3; }
.mk-t { grid-row: 1 / span 2; font-family: var(--f-stencil); font-weight: 750; font-size: 1rem; line-height: 1.15; color: var(--paint-b); font-variant-numeric: tabular-nums; }
.mk-x { color: var(--ink); }
.mk .mk-av { grid-column: 3; grid-row: 1 / span 2; width: 20px; height: 20px; font-size: 0.55rem; }
.mk-st { grid-column: 2; font-family: var(--f-stencil); font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8125rem; color: var(--ink-2); }
/* entries set on the line keep the line's status mark: a stencilled word over a painted dash */
.mk.is-set { padding: 4px 5px; margin: 0 -5px; }
.mk.is-set .mk-st { justify-self: start; color: var(--ink); background: linear-gradient(90deg, var(--paint-b) 0 70%, transparent 70%) left bottom / 9px 2px repeat-x; padding-bottom: 3px; }
.bcast.is-set { padding: 4px 6px; margin-inline: -6px; }
/* on arrival each one is washed in blue and its status stencilled in, one after another */
.is-set.is-arriving { animation: arrive 1500ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 120ms); }
.mk.is-arriving .mk-st { animation: stencil-in 650ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 120ms + 380ms); }
@keyframes arrive { from { background-color: var(--target-2); box-shadow: inset 0 0 0 1.5px var(--paint-b); } to { background-color: transparent; box-shadow: inset 0 0 0 1.5px transparent; } }
@keyframes stencil-in { from { clip-path: inset(-2px 100% -4px 0); } to { clip-path: inset(-2px 0 -4px 0); } }
.col-body { padding: 10px 12px 12px; display: grid; gap: 10px; }
.zone { min-height: 44px; padding: 6px; background: var(--panel-2); display: grid; gap: 6px; transition: background-color 120ms var(--ease-out), box-shadow 120ms var(--ease-out); }
.zone.is-target, .card.is-target, .veh-row.is-target { background: var(--target); box-shadow: inset 0 0 0 1.5px var(--paint-b), 0 0 0 2px var(--panel), 0 0 0 3.5px var(--paint-b); }
.zone.is-kb-target, .card.is-kb-target { box-shadow: inset 0 0 0 2px var(--paint-b); background: var(--target); }
.card { background: var(--panel); padding: 6px; box-shadow: 0 0 0 1px var(--line); }
.card-h { display: flex; align-items: center; gap: 6px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; font-size: 0.8125rem; font-weight: 600; border: 0; background: none; width: 100%; padding: 0; text-align: left; color: var(--ink); }
.card-h .cnt { margin-left: auto; font-size: 0.6875rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* touch screens place by tapping (planner.js onTap): the rail and the cards scroll and pan like the rest of the page */
@media (pointer: coarse) {
  .chip, .card-h { touch-action: manipulation; }
  .kb-keys { display: none; }
  .kb-touch { display: inline; }
}
.card.is-src { opacity: 0.4; }
.card.is-new { animation: settle 520ms var(--ease-out); }
@keyframes settle { from { box-shadow: 0 0 0 2px var(--paint-b); } to { box-shadow: 0 0 0 1px var(--line); } }
.tray { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.wt-pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; font-size: 0.6875rem; font-weight: 500; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.wt-pill .unit { font-size: 0.6rem; box-shadow: none; padding: 0; }
.tray-empty { width: 100%; padding: 3px 6px; font-size: 0.6875rem; color: var(--ink-3); border: 1px dashed var(--line-2); }
.veh { display: grid; gap: 5px; }
.veh-row { display: grid; gap: 3px; padding: 5px 6px; background: var(--panel-2); font-size: 0.78rem; }
.veh-eq { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.veh-drv { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.veh-drv .av { width: 18px; height: 18px; font-size: 0.5rem; }
.slot-empty { border: 1px dashed var(--line-2); padding: 1px 6px; color: var(--ink-3); font-size: 0.72rem; }
.list { display: grid; gap: 3px; font-size: 0.8rem; }
.list li { display: grid; grid-template-columns: 10px 1fr; gap: 4px; }
.list li::before { content: ""; width: 5px; height: 5px; margin-top: 0.45em; background: var(--paint-b); border-radius: 50%; }
.list.is-info li::before { background: var(--ink-3); }
.dv-empty { padding: 3rem 1.5rem; text-align: center; color: var(--ink-2); }
.dv-empty .box-btn { margin-top: 1rem; }
.ghost {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  box-shadow: var(--lift); cursor: grabbing;
  opacity: 0.96;
}
.cursor-mark { position: fixed; left: 0; top: 0; z-index: 95; width: 26px; height: 26px; pointer-events: none; transition: opacity 200ms; }
.cursor-mark path { fill: var(--paint-w); stroke: #010101; stroke-width: 1.4; }
.app.is-busy .dv-cols { scroll-behavior: auto; }

/* ----- live team ----- */
.lt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 1rem 1.25rem 0.5rem; }
.lt-title { font-weight: 600; font-size: 1.375rem; }
.live-tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--paint-b); box-shadow: inset 0 0 0 1px var(--paint-b); }
.live-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--paint-b); }
.lt-upd { margin-left: auto; font-size: 0.8125rem; color: var(--ink-3); font-style: italic; }
.lt-sub { padding: 0 1.25rem; color: var(--ink-3); font-size: 0.875rem; }
.lt-vitals { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; padding: 0.75rem 1.25rem 1rem; font-size: 0.9375rem; color: var(--ink-2); }
.lt-vitals b { font-family: var(--f-stencil); font-weight: 750; font-size: 1.5rem; color: var(--ink); margin-right: 0.35rem; font-variant-numeric: tabular-nums; }
.ticker { position: relative; display: flex; align-items: stretch; height: 42px; margin: 0 1.25rem; background: var(--head); color: var(--on-head); overflow: hidden; }
.ticker-lbl { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; box-shadow: 1px 0 0 rgba(242, 241, 236, 0.18); position: relative; z-index: 2; background: var(--head); }
.ticker-lbl i { width: 7px; height: 7px; border-radius: 50%; background: #4D8DFF; }
.ticker-view { position: relative; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
.ticker-track { display: flex; width: max-content; height: 100%; align-items: center; animation: tick 38s linear infinite; }
.ticker.is-paused .ticker-track { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; font-size: 0.8125rem; white-space: nowrap; position: relative; }
.tk::after { content: ""; position: absolute; right: 0; top: 50%; width: 1px; height: 12px; margin-top: -6px; background: rgba(242, 241, 236, 0.3); }
.tk-sq { display: inline-grid; place-items: center; width: 20px; height: 20px; font-size: 0.55rem; font-weight: 600; }
.tk b { font-weight: 600; }
.tk .at { opacity: 0.8; }
.tk .ago { opacity: 0.7; font-variant-numeric: tabular-nums; }
.tk-ico { width: 14px; height: 14px; fill: none; stroke: #4D8DFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stations { position: relative; padding: 1.25rem 1.25rem 1.25rem 3.25rem; display: grid; gap: 1.25rem; }
.stations::before { content: ""; position: absolute; left: 1.55rem; top: 1.25rem; bottom: 1.25rem; width: 1.5px; background: var(--string); }
.stn { position: relative; background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.stn .stk { width: 22px; height: 49.5px; left: calc(-1.7rem - 9.6px); top: calc(24px - 8.25px); }
.stn-ch { position: absolute; left: -3.1rem; top: 36px; font-family: var(--f-stencil); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--paint-b); writing-mode: vertical-rl; transform: rotate(180deg); }
.stn-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.9rem; width: 100%; padding: 12px 14px; border: 0; background: var(--panel-2); text-align: left; cursor: pointer; color: var(--ink); }
.stn-head:hover { background: var(--panel-3); }
.stn-name { font-weight: 600; font-size: 1.0625rem; }
.stn-count { font-family: var(--f-stencil); font-weight: 750; color: var(--paint-b); font-size: 1.2rem; }
.stn-count small { font-family: var(--f-text); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-left: 3px; }
.stn-ended { font-size: 0.8125rem; font-style: italic; color: var(--ink-3); }
.stn-chev { margin-left: auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 240ms var(--ease-out); align-self: center; }
.stn-head[aria-expanded="true"] .stn-chev { transform: rotate(180deg); }
.stn-body[hidden] { display: none; }
.w-cols, .w-row { display: grid; grid-template-columns: minmax(200px, 1.4fr) 108px minmax(170px, 1.4fr) minmax(150px, 1fr) 64px 24px; gap: 0 12px; align-items: center; }
.w-cols { padding: 6px 14px; font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.13em; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.w-row { width: 100%; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; color: var(--ink); font-size: 0.875rem; }
.w-row:hover { background: var(--panel-2); }
.w-row.is-ended { color: var(--ink-3); }
.w-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.w-av { display: grid; place-items: center; width: 36px; height: 36px; flex: none; font-size: 0.78rem; font-weight: 600; }
.w-row.is-on .w-av { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--paint-b); }
.w-name { font-weight: 600; font-size: 0.9375rem; display: block; }
.state { display: inline-flex; align-items: center; gap: 5px; font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state.on { color: var(--paint-b); }
.state.end { color: var(--ink-3); }
.w-start b { font-variant-numeric: tabular-nums; font-weight: 600; display: block; }
.w-start small { font-size: 0.75rem; font-style: italic; color: var(--ink-3); }
.w-cur { min-width: 0; }
.w-cur > span:first-child { display: block; font-weight: 500; }
.tools { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.tool { font-size: 0.6875rem; padding: 0 5px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.loc { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 500; }
.loc .ico { width: 14px; height: 14px; }
.loc.ok { color: var(--ink); }
.loc.unv { color: var(--ink-2); }
.loc.off { color: var(--paint-b); }
.hrs { font-family: var(--f-stencil); font-weight: 750; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.hrs small { font-size: 0.8rem; opacity: 0.7; }
.w-chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 240ms var(--ease-out); }
.w-row[aria-expanded="true"] .w-chev { transform: rotate(180deg); }
.w-open { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease-out); }
.w-open.is-open { grid-template-rows: 1fr; }
.w-open > div { overflow: hidden; }
.tl { margin: 4px 14px 14px; padding: 14px; background: var(--panel-2); }
.tl-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.tl svg { width: 100%; height: auto; overflow: visible; }
.tl-hr { font-size: 11px; fill: var(--ink-3); font-family: var(--f-text); font-weight: 600; }
.tl-tick { stroke: var(--line-2); stroke-width: 1; }
.tl-rail { fill: var(--panel-3); }
.tl-shift { fill: var(--blue); }
.tl-shift-lbl { fill: #fff; font-size: 11px; font-weight: 600; font-family: var(--f-text); }
.tl-stem { stroke: var(--ink-3); stroke-width: 1.2; }
.tl-mk circle { fill: var(--panel); stroke: var(--paint-b); stroke-width: 1.8; }
.tl-mk path { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tl-now line { stroke: var(--paint-b); stroke-width: 2; }
.tl-now rect { fill: var(--paint-b); }
.tl-now text { fill: var(--panel); font-size: 11px; font-weight: 600; font-family: var(--f-text); }
:root[data-theme="light"] .tl-now text { fill: #fff; }
.ev { margin-top: 10px; display: grid; gap: 2px; }
.ev-shift { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--paint-b); padding-bottom: 6px; border-bottom: 1px dashed var(--line-2); margin-bottom: 4px; }
.ev li.ev-shift { display: block; }
.ev li { display: grid; grid-template-columns: 50px 22px minmax(0, 1fr); gap: 8px; align-items: start; padding: 5px 0; font-size: 0.84rem; }
.ev time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); }
.ev svg { width: 18px; height: 18px; fill: none; stroke: var(--paint-b); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ev .d { color: var(--ink-2); }
.ev .ph { display: inline-block; margin-left: 6px; padding: 0 5px; font-size: 0.68rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-2); }
.lt-bench { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 0 1.25rem 1.25rem 3.25rem; }
.bench { padding: 12px 14px; background: var(--panel-2); font-size: 0.875rem; }
.bench h3 { font-size: 0.9375rem; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bench ul { display: grid; gap: 4px; color: var(--ink-2); }
.bench li b { color: var(--ink); font-weight: 600; }
.bench .x-mark { width: 14px; height: 14px; fill: none; stroke: var(--paint-b); stroke-width: 2.2; stroke-linecap: round; }

/* ---------- arc: the line runs on, one station per step ---------- */
.arc-run { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 clamp(1rem, 2vw, 2rem); padding-top: 80px; }
.arc-run::before { content: ""; position: absolute; left: -1rem; right: -1rem; top: 24px; height: 1.5px; background: var(--string); }
.arc-st { position: relative; }
.arc-st:nth-child(even) { padding-top: clamp(2rem, 5vw, 4.5rem); }
.arc-st > .stk { left: calc(6px - 11.4px); top: calc(-56px - 9.75px); }
.arc-ch { display: block; font-family: var(--f-stencil); font-weight: 780; font-size: 1.9rem; line-height: 1; letter-spacing: 0.03em; color: var(--paint-b); font-variant-numeric: tabular-nums; }
/* each step's mark is a real layout mark, captioned the way a crew would read it */
.arc-mark { position: absolute; right: 0; top: 0; display: grid; justify-items: center; gap: 2px; }
.arc-mark canvas { width: 64px; height: 64px; }
.arc-cap { font-family: var(--f-stencil); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; color: var(--ink-3); }
.arc-st:nth-child(even) .arc-mark { top: clamp(2rem, 5vw, 4.5rem); }
.arc-st h3 { margin-top: 0.8rem; font-family: var(--f-stencil); font-weight: 750; text-transform: uppercase; font-size: 1.55rem; line-height: 1; letter-spacing: 0.02em; max-width: calc(100% - 76px); }
.arc-st p { margin-top: 0.6rem; color: var(--ink-2); font-size: 1rem; max-width: 30ch; }

/* ---------- careers (careers.html): each role is a station on one string line ---------- */
.careers { padding-bottom: clamp(6rem, 12vw, 10rem); }
.roles { position: relative; margin-top: 3rem; padding-left: 44px; display: grid; }
.roles::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 1.5px; background: var(--string); }
.role { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto auto; align-items: baseline; gap: 0.5rem 2rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.role:last-child { border-bottom: 1px solid var(--line); }
.role > .stk { left: calc(-38px - 11.4px); top: calc(1.1rem + 0.8rem - 9.75px); }
.role-ch { font-family: var(--f-stencil); font-weight: 700; color: var(--paint-b); letter-spacing: 0.06em; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.role-name { font-family: var(--f-stencil); font-weight: 750; text-transform: uppercase; font-size: 1.6rem; letter-spacing: 0.02em; line-height: 1; }
.role-where { color: var(--ink-3); font-size: 0.95rem; }

/* ---------- close ---------- */
.close { padding-bottom: clamp(6rem, 12vw, 10rem); }
.close-in { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); }
.close-x { width: clamp(150px, 22vw, 300px); height: clamp(150px, 22vw, 300px); }
.close-act { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }
.close-mail { color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { padding: 2.5rem 0 3rem; box-shadow: inset 0 1px 0 var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; position: relative; }
.foot-brand { display: flex; align-items: baseline; gap: 0.7rem; }
.foot-brand .wm { font-size: 1.35rem; }
.foot-exp { font-family: var(--f-stencil); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.foot-copy { color: var(--ink-3); font-size: 0.9375rem; margin-left: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-tools { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .arc-run { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 0; padding-left: 44px; }
  .arc-run::before { left: 6px; right: auto; top: 0; bottom: 0; width: 1.5px; height: auto; }
  .arc-st:nth-child(even) { padding-top: 0; }
  .arc-st > .stk { left: calc(-38px - 11.4px); top: calc(14px - 9.75px); }
  .arc-st:nth-child(even) .arc-mark, .arc-mark { top: 0; }
  .arc-st p { max-width: 52ch; }
  .w-cols { display: none; }
  .w-row { grid-template-columns: minmax(0, 1fr) auto 24px; grid-template-areas: "who hrs chev" "start start start" "cur cur cur" "loc loc loc"; gap: 6px 10px; }
  .w-who { grid-area: who; } .w-start { grid-area: start; display: flex; gap: 8px; align-items: baseline; } .w-cur { grid-area: cur; } .w-loc { grid-area: loc; } .hrs { grid-area: hrs; } .w-chev { grid-area: chev; }
  .w-start b { display: inline; }
}
@media (max-width: 860px) {
  .dv-grid { grid-template-columns: 1fr; }
  .dv-rail { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: 1fr; }
  .rail-crew { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .dv-top { grid-template-columns: 1fr; }
  .mo-day { height: 104px; padding: 5px; }
  .mo-bar { height: 10px; padding: 0; font-size: 0; }
  .mo-bar > * { display: none; }
  .mo-note { display: none; }
  .mo-more { font-size: 0.62rem; height: 14px; padding: 0 3px; }
  .lt-bench { grid-template-columns: 1fr; }
  .close-in { grid-template-columns: 1fr; }
  /* the day timeline would draw its hours and markers at a few px here; the event list under it carries the same day */
  .tl > svg { display: none; }
}
@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  body { font-size: 1.0625rem; }
  .nav-in { gap: 0.5rem; }
  .nav-tools .lang { display: none; }
  .theme-txt { display: none; }
  .nav-tools { gap: 0.35rem; }
  .stake-cta .tape { height: 30px; padding: 0 1.05rem 0 0.6rem; font-size: 0.9rem; }
  .stake-cta.is-big .tape { height: 44px; font-size: 1.2rem; }
  .hero-copy { padding-top: clamp(10rem, 34vh, 18rem); }
  .h1 { font-size: clamp(2.6rem, 13.2vw, 4rem); line-height: 0.95; }
  .h1-a, .h1-b { display: block; }
  .expand { flex-wrap: wrap; gap: 0.2rem 0.7rem; margin-top: 2.3rem; }
  .expand-t { font-size: 1.1rem; }
  .mo { padding: 0.75rem; }
  .mo-label { font-size: 1.5rem; }
  .mo-wd span { padding-left: 3px; font-size: 0.6rem; letter-spacing: 0.04em; }
  .mo-n { font-size: 0.9rem; min-width: 20px; height: 20px; }
  .app-bar { padding: 0.5rem 0.75rem; }
  .app-title { font-size: 0.9375rem; }
  .dv-main { padding: 0.75rem; }
  .dv-rail { padding: 0.75rem; }
  .col { flex-basis: 232px; }
  .stations { padding-left: 2.4rem; padding-right: 0.75rem; }
  .stations::before { left: 1.05rem; }
  .stn .stk { left: calc(-1.35rem - 9.6px); }
  .stn-ch { left: -2.35rem; }
  .ticker { margin: 0 0.75rem; }
  .lt-bench { padding-left: 2.4rem; padding-right: 0.75rem; }
  .role { grid-template-columns: 1fr auto; }
  .role-ch { grid-column: 1; grid-row: 1; }
  .role-name { grid-column: 1; grid-row: 2; }
  .role-where { grid-column: 1; grid-row: 3; }
  .role .text-link { grid-row: 1 / span 3; grid-column: 2; align-self: center; }
  .role > .stk { top: calc(1.1rem + 0.7rem - 9.75px); }
  .foot-copy { margin-left: 0; flex-basis: 100%; }
}
/* French nav tape: Planifier un appel needs 380px; below that the nav says Parlons-en (hero and closing tapes keep the long label) */
.tape-short { display: none; }
@media (max-width: 379px) {
  .nav .tape-long { display: none; }
  .nav .tape-short { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .ticker-track { animation: none !important; }
  .ticker-view { overflow-x: auto; }
}

/* ---------- additions: hero stamp, centerpiece modes ---------- */
.hero-stamp {
  position: absolute; left: 0; top: 0; margin: 0;
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--f-stencil); font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; color: var(--ink);
}
.hs-t { color: var(--paint-b); }
.hs-s { background: linear-gradient(90deg, var(--paint-b) 0 70%, transparent 70%) left bottom / 9px 2px repeat-x; padding-bottom: 3px; }
/* French: the settled "qui fait quoi?" answers with a crew assignment, one stamped line per person */
.hero-stamp.is-crew { display: grid; justify-items: start; gap: 0.3rem; }
.day.is-live.is-static { height: auto; }
.day.is-live.is-static .day-stage { position: relative; top: 0; }
.day.is-live:not(.is-narrow) .ans-text { font-size: clamp(1rem, 1.45vh, 1.2rem); }
.day.is-live:not(.is-narrow) .ans-time { font-size: clamp(1.3rem, 2vh, 1.6rem); }
.day.is-live:not(.is-narrow) .lane-head h3 { font-size: clamp(1.0625rem, 1.55vh, 1.3rem); }
.day.is-narrow .ans { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 0.5rem; }
.day.is-narrow .ans-meta { grid-column: 3; grid-row: 1; align-self: center; }
.day.is-narrow .ans-time { font-size: 1.1rem; }
.day.is-narrow .ans-text { font-size: 0.875rem; }
.day.is-narrow .sig-sub { display: none; }
.day.is-narrow .who { display: none; }
.day.is-narrow .own { width: 28px; height: 28px; font-size: 0.8125rem; }
.day.is-narrow .st { font-size: 0.875rem; }
.day.is-narrow .lane-head { display: flex; align-items: baseline; gap: 0.5rem; }
.day.is-narrow .lane-head p { display: none; }
.day.is-narrow .lane-head h3 { font-size: 0.95rem; }
.day.is-live .day-sig { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.25rem 2rem; }
.day.is-live .day-sig .next-link { margin-top: 0; }
.day.is-live .day-sig .sig-sub { flex-basis: 100%; order: 2; }
.day.is-narrow .day-sig { display: grid; justify-content: start; }
.day.is-narrow .sig { font-size: 1.5rem; }
.day.is-narrow .next-link { font-size: 0.95rem; }

/* ---------- centerpiece: the ground under the pinned stage ---------- */
.day-ground, .day-ghosts { display: none; }
.day.is-live .day-stage { background-color: var(--ground); background-image: var(--ground-img, none); background-size: 512px 512px; }
.day.is-live .day-ground { display: block; position: absolute; left: 0; top: 0; pointer-events: none; }
.day.is-live .day-ghosts { display: block; position: absolute; inset: 0; pointer-events: none; }
.day-ghosts canvas { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; opacity: 0; }
.day.is-compact .lane-head p { display: none; }
/* wide: the signature stands on the planner's rail, under the broadcast lane */
.day.is-live:not(.is-narrow) .day-sig { display: grid; gap: 0.5rem; justify-content: stretch; }
.day.is-live:not(.is-narrow) .sig { font-size: clamp(1.8rem, 2.2vw, 2.4rem); line-height: 0.98; }
.day.is-live:not(.is-narrow) .day-sig .sig-sub { order: 0; flex-basis: auto; margin-top: 0; }
.day.is-live:not(.is-narrow) .next-link { margin-top: 0.6rem; align-items: flex-start; }
.day.is-live .ans { z-index: 2; }
