/* Watchtower page. Palette and type: briefs/watchtower.md "Design". Motif: line-art lighthouse, a beam that sweeps from the lamp, lamps that settle to green. */
@property --sweep { syntax: "<angle>"; inherits: true; initial-value: 0deg; }

:root {
  --bg: #FDFDFE; --wash: #F3F7FD; --ink: #0B1B3F; --muted: #4A5878; --line: #C7D3EA;
  --blue: #3768C5; --deep: #24509F; --beam: #6B9CE6; --green: #09C881; --white: #FFFFFF;
  --lk-bg: var(--bg); --lk-panel: var(--bg); --lk-ink: var(--ink); --lk-muted: var(--muted); --lk-line: var(--line);
  --lk-main: var(--blue); --lk-on-main: var(--white); --lk-link: var(--blue); --lk-focus: var(--blue); --lk-accent: var(--blue);
  --lk-font-display: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lk-font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lk-radius: 6px; --lk-max: 1120px; --lk-gutter: 16px;
  --wt-gut: clamp(16px, 5.56vw, 80px);
  --wt-h: max(680px, min(calc(100svh - var(--lk-bar)), 820px));
}
body { font-size: 18px; line-height: 1.6; }
a:hover { color: var(--deep); }
code { font: 500 0.88em/1.4 var(--lk-font-mono); }

/* ---------- Hero: a night coast seen from the foot of the tower. Low camera, the tower fills the right side,
   the searchlight sweeps over the copy. Layers (sky, far coast, fog, tower, near fog, rocks) shift on the pointer. ---------- */
:root { --lk-dock-bg: #09C881; --lk-dock-ink: #0B1B3F; --wt-sky: #0B1B3F; }
.wt-hero { position: relative; overflow: clip; }
.wt-band { position: relative; height: var(--wt-h); isolation: isolate; overflow: clip; color: #F5F8FF;
  background-color: var(--wt-sky);
  background-image: radial-gradient(60% 46% at 74% 80%, rgba(76, 122, 205, 0.55), transparent 70%), linear-gradient(180deg, #040A1E 0%, #08143A 38%, #142C66 66%, #22417F 76%, #0B1B3F 100%); }
.wt-px { translate: calc(var(--px, 0) * var(--dx, 0px)) calc(var(--py, 0) * var(--dy, 0px)); }
.wt-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.wt-stars, .wt-far, .wt-rocks { max-width: none; }
.wt-stars { position: absolute; left: -2%; top: -2%; width: 104%; height: 76%; --dx: -6px; --dy: -4px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.wt-starg { fill: #DCE8FF; opacity: 0.75; }
.wt-far { position: absolute; left: -2%; bottom: 0; width: 104%; height: 34%; --dx: -10px; --dy: -3px; }
.wt-head { fill: #0A1840; }
.wt-head--2 { fill: #0C1C47; }
.wt-glint path { fill: none; stroke: #8FB6F2; stroke-width: 1.5px; opacity: 0.28; vector-effect: non-scaling-stroke; }
.wt-farlh { fill: #0A1840; }
.wt-farlamp { fill: #EAF4FF; }
.wt-mist { position: absolute; pointer-events: none; }
.wt-mist--far { left: -10%; right: -10%; bottom: 14%; height: 26%; --dx: -14px; --dy: -2px;
  background: radial-gradient(40% 50% at 30% 60%, rgba(150, 184, 240, 0.22), transparent 70%), radial-gradient(36% 40% at 78% 50%, rgba(150, 184, 240, 0.16), transparent 70%); }
.wt-mist--near { z-index: 4; left: -10%; right: -10%; bottom: 2%; height: 20%; --dx: -28px; --dy: -4px;
  background: radial-gradient(34% 60% at 62% 70%, rgba(120, 160, 230, 0.2), transparent 70%), radial-gradient(30% 50% at 20% 80%, rgba(120, 160, 230, 0.14), transparent 70%); }

/* the tower: low angle, strong taper, lit lantern, green status windows */
.wt-tower { position: absolute; z-index: 3; right: max(3vw, calc((100% - 1440px) / 2 + 48px)); bottom: -1%; height: 105%; aspect-ratio: 520 / 1000; --dx: -20px; --dy: -8px; }
.wt-lh { position: relative; z-index: 2; display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 30px rgba(4, 10, 30, 0.6)); }
.wt-body { fill: #10234F; }
.wt-band-s { fill: #2C5BB4; }
.wt-wins rect { fill: #09C881; }
.wt-rim { fill: none; stroke: #A8C8F6; stroke-width: 2.5px; opacity: 0.7; vector-effect: non-scaling-stroke; }
.wt-rim--r { stroke: #3768C5; opacity: 0.45; }
.wt-corbels path { fill: none; stroke: #0A1638; stroke-width: 7px; stroke-linecap: round; }
.wt-lantern { fill: url(#wt-glass); }
.wt-mull { fill: none; stroke: #0A1638; stroke-width: 5px; }
.wt-dark { fill: #081433; }
.wt-edge { stroke: #5F8FDC; stroke-width: 2px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.wt-rail { fill: none; stroke: #0A1638; stroke-width: 6px; stroke-linecap: round; }
.wt-posts { fill: none; stroke: #0A1638; stroke-width: 3.5px; }
.wt-rod { fill: none; stroke: #5F8FDC; stroke-width: 3px; stroke-linecap: round; }
.wt-glow { position: absolute; z-index: 3; left: 50%; top: 20%; width: 92%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle closest-side, rgba(255, 255, 255, 0.9) 0%, rgba(190, 216, 255, 0.55) 18%, rgba(107, 156, 230, 0.22) 46%, transparent 100%); mix-blend-mode: screen; }

/* searchlight: a long cone from the lamp; it turns by --sweep (registered angle) */
.wt-beam { position: absolute; z-index: 1; top: 20%; height: 64vw; margin-top: -32vw; pointer-events: none; filter: blur(3px); }
.wt-beam--fore { right: 50%; width: 180vw; transform-origin: 100% 50%; transform: rotate(calc(9deg + var(--sweep)));
  clip-path: polygon(0 20%, 100% 49.4%, 100% 50.6%, 0 80%);
  background: linear-gradient(270deg, rgba(240, 247, 255, 0.85) 0%, rgba(176, 206, 250, 0.5) 6%, rgba(120, 165, 236, 0.24) 24%, rgba(107, 156, 230, 0.1) 55%, rgba(107, 156, 230, 0) 92%); }
.wt-beam--back { left: 50%; width: 90vw; transform-origin: 0 50%; transform: rotate(calc(9deg + var(--sweep)));
  clip-path: polygon(0 49.4%, 100% 28%, 100% 72%, 0 50.6%);
  background: linear-gradient(90deg, rgba(240, 247, 255, 0.55) 0%, rgba(150, 190, 245, 0.22) 14%, rgba(107, 156, 230, 0) 80%); }
.wt-rocks { position: absolute; z-index: 5; left: -3%; bottom: -1px; width: 106%; height: 20%; --dx: -34px; --dy: -6px; }
.wt-rock { fill: #030817; }
.wt-rockrim { fill: none; stroke: #2C5BB4; stroke-width: 2px; opacity: 0.55; vector-effect: non-scaling-stroke; }

/* copy column: left on wide screens */
.wt-col { position: absolute; z-index: 6; left: max(var(--wt-gut), calc((100% - 1280px) / 2)); top: calc(var(--wt-h) * 0.12); width: min(640px, 48%); }
.wt-h1 { font-family: var(--lk-font-display); color: #F5F8FF; margin: 0; }
.wt-name { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 600 14px/1.2 var(--lk-font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: #A9C6F5; }
.wt-nd { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.wt-headline { display: block; font-weight: 500; font-size: clamp(52px, 5.6vw, 86px); line-height: 0.98; letter-spacing: -0.02em; text-shadow: 0 2px 24px rgba(4, 10, 30, 0.6); }
.wt-one { margin: 22px 0 0; max-width: 24em; font-size: 20px; line-height: 1.5; color: #C9D7F1; }
.wt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 30px; }
.wt-btn { min-height: 0; padding: 14px 26px; border: 0; border-radius: 4px; background: var(--blue); color: var(--white); font-size: 17px; font-weight: 600; line-height: 1.2; }
.wt-btn:hover { background: var(--deep); color: var(--white); }
.wt-hero .wt-btn { background: var(--green); color: var(--night); box-shadow: 0 0 0 1px rgba(9, 200, 129, 0.4), 0 10px 30px -10px rgba(9, 200, 129, 0.7); }
.wt-hero .wt-btn:hover { background: #3FE0A3; color: var(--night); }
.wt-hero .wt-btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.wt-link { font-size: 17px; font-weight: 500; }
.wt-hero .wt-link { color: #DCE8FF; text-decoration-color: #6B9CE6; text-underline-offset: 4px; }
.wt-hero .wt-link:hover { color: #FFFFFF; text-decoration-color: currentColor; }
.wt-hero .wt-link:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.wt-status { flex-basis: 100%; font-size: 15px; min-height: 0; color: #9FF0CF; }
.wt-status:empty { display: none; }

/* status card: an example of the page the reader will have, a lit console under the tower */
.wt-panel { margin-top: clamp(28px, 5vh, 52px); }
.wt-cap { margin: 0 0 10px; font: 600 12px/1.3 var(--lk-font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: #A9BEE4; }
.wt-card { display: block; width: min(480px, 100%); padding: 16px 18px 14px; background: #0A1A40; border: 1px solid #2D4C8C; border-left: 3px solid var(--green); border-radius: 3px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8); }
.wt-card-h { margin: 0 0 14px; font: 500 20px/1.2 var(--lk-font-display); color: #F5F8FF; }
.wt-lamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; list-style: none; margin: 0; padding: 0; }
.wt-lamps li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.wt-lab { white-space: nowrap; font: 500 13px/1.3 var(--lk-font-body); color: #C0CFEC; }
.wt-toggle { margin-top: 14px; padding: 4px 0; border: 0; background: none; color: #C0CFEC; font: 500 15px/1.3 var(--lk-font-body);
  text-decoration: underline; text-decoration-color: #4F78C4; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.wt-toggle[hidden] { display: none; }
.wt-toggle:hover { color: #FFFFFF; text-decoration-color: currentColor; }
.wt-toggle:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; border-radius: 2px; }
.lk-reduced .wt-toggle { display: none; }

/* lamps: green, ink tick. While the intro runs (.wt-pre) they start as "checking" rings. */
.wt-lamp { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 4px; background: var(--green); }
.wt-card .wt-lamp { box-shadow: 0 0 16px rgba(9, 200, 129, 0.45); }
.wt-lamp svg { width: 62%; height: 62%; }
.wt-tick { fill: none; stroke: var(--ink); stroke-width: 3.2px; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.wt-pre .wt-lamp:not(.wt-on) { background: #0A1A40; box-shadow: inset 0 0 0 2px #6B9CE6; }
.wt-pre .wt-lamp:not(.wt-on) .wt-tick { stroke-dashoffset: 1; }
.wt-lamp.wt-on { transition: background-color 240ms ease-out, box-shadow 240ms ease-out; }
.wt-lamp.wt-on .wt-tick { transition: stroke-dashoffset 240ms ease-out; }
.wt-pre .wt-beam, .wt-pre .wt-glow { opacity: 0; }

/* idle: the searchlight sweeps down across the copy and back; lamp breathes; fog drifts. All stop off screen and when paused. */
@keyframes wt-idle { 0%, 100% { --sweep: 0deg; } 50% { --sweep: -11deg; } }
@keyframes wt-glow { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
@keyframes wt-fog { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
@keyframes wt-blink { 0%, 70%, 100% { opacity: 0.2; } 78%, 90% { opacity: 1; } }
.wt-idle .wt-beam { animation: wt-idle 12000ms ease-in-out infinite; }
.wt-idle .wt-glow { animation: wt-glow 6000ms ease-in-out infinite; }
.wt-idle .wt-mist--far { animation: wt-fog 22s ease-in-out infinite alternate; }
.wt-idle .wt-mist--near { animation: wt-fog 15s ease-in-out infinite alternate-reverse; }
.wt-idle .wt-farlamp { animation: wt-blink 4s linear infinite; }
.wt-paused .wt-beam, .wt-paused .wt-glow, .wt-paused .wt-mist, .wt-paused .wt-farlamp,
.wt-off .wt-beam, .wt-off .wt-glow, .wt-off .wt-mist, .wt-off .wt-farlamp { animation-play-state: paused; }

/* four areas under the band: an instrument strip; each one sets the checklist filter */
.wt-wrap { width: 100%; max-width: calc(1120px + 2 * var(--wt-gut)); margin-inline: auto; padding-inline: var(--wt-gut); }
.wt-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; margin-top: 0; padding-top: 0; padding-bottom: 24px; counter-reset: wc; }
.wt-cats li { counter-increment: wc; border-left: 1px solid var(--line); }
.wt-cats li:last-child { border-right: 1px solid var(--line); }
.wt-cat { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; align-items: start; height: 100%; padding: 26px 22px 24px; color: var(--ink); text-decoration: none; border-top: 3px solid var(--blue); transition: background-color 200ms, border-color 200ms; }
.wt-cat::after { content: counter(wc, decimal-leading-zero); position: absolute; right: 18px; top: 14px; font: 600 12px/1 var(--lk-font-mono); letter-spacing: 0.1em; color: var(--muted); }
.wt-cat svg { grid-row: span 2; display: block; width: 40px; height: 40px; fill: none; stroke: var(--blue); stroke-width: 2.5px; stroke-linecap: round; stroke-linejoin: round; }
.wt-cat .wt-h3 { margin: 6px 0 2px; font-size: 21px; }
.wt-cat p { font-size: 15px; line-height: 1.45; color: var(--muted); }
.wt-cat:hover { color: var(--ink); background: var(--wash); border-top-color: var(--green); }
.wt-cat:hover svg, .wt-cat:focus-visible svg { stroke: var(--deep); }
.wt-cat:hover .wt-h3, .wt-cat:focus-visible .wt-h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Phones and narrow screens: copy first, then the tower rising behind the status card ---------- */
@media (max-width: 1199px) {
  :root { --wt-gut: 16px; }
  body { font-size: 16px; line-height: 1.55; }
  .wt-band { height: auto; display: flex; flex-direction: column; padding: 36px 16px 28px; }
  .wt-col { display: contents; }
  .wt-copy { position: relative; z-index: 6; order: 1; }
  .wt-headline { font-size: clamp(44px, 11.5vw, 64px); line-height: 1; }
  .wt-name { margin-bottom: 14px; font-size: 13px; }
  .wt-one { margin-top: 16px; font-size: 18px; }
  .wt-actions { margin-top: 24px; gap: 14px 24px; }
  .wt-tower { position: relative; order: 2; right: auto; bottom: auto; align-self: flex-end; width: min(300px, 74vw); height: auto; margin: 4px -30px 0 0; }
  .wt-beam { height: 120vw; margin-top: -60vw; }
  .wt-beam--fore { width: 200vw; }
  .wt-glow { width: 110%; }
  .wt-panel { position: relative; z-index: 6; order: 3; margin-top: min(-62vw, -250px); width: min(58%, 340px); }
  .wt-card { padding: 12px 12px 10px; }
  .wt-card-h { font-size: 16px; margin-bottom: 10px; }
  .wt-lamps { display: flex; flex-direction: column; gap: 6px; }
  .wt-lamps li { flex-direction: row; align-items: center; gap: 10px; }
  .wt-lamp { width: 22px; height: 22px; border-radius: 3px; }
  .wt-cap { font-size: 11px; }
  .wt-far { height: 22%; }
  .wt-rocks { height: 12%; }
  .wt-cats { grid-template-columns: 1fr 1fr; padding-bottom: 8px; }
  .wt-cats li:nth-child(2n) { border-right: 1px solid var(--line); }
  .wt-cat { grid-template-columns: 1fr; padding: 20px 14px; }
  .wt-cat svg { grid-row: auto; width: 34px; height: 34px; margin-bottom: 6px; }
  .wt-cat .wt-h3 { font-size: 19px; }
}
@media (max-width: 380px) {
  .wt-panel { width: 60%; }
  .wt-card { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .wt-lamp.wt-on, .wt-lamp.wt-on .wt-tick { transition: none; }
  .wt-toggle { display: none; }
  .wt-px { translate: none; }
}

/* =====================================================================
   Below the hero: one night watch. A lighthouse rail on the left, the beam turns with the page,
   every section has its own shape. Final state is the default; .wt-js (set by JS) enables reveals.
   ===================================================================== */
:root { --fog: #E7EEF9; --fog2: #DCE7F6; --lit: #DDF5EA; --night: #0B1B3F; --night2: #14295E; }
.wt-h3 { font: 500 22px/1.25 var(--lk-font-display); margin-bottom: 12px; }

.wt-body { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 0 24px; max-width: calc(1328px + 2 * var(--wt-gut)); margin-inline: auto; padding-inline: var(--wt-gut); counter-reset: wts; }
.wt-flow { min-width: 0; }
.wt-flow .wt-wrap { max-width: none; padding-inline: 0; }
.wt-flow > section, .wt-flow > .wt-rota { position: relative; z-index: 1; }

/* rail: lighthouse + beam, sticky */
.wt-rail { position: relative; }
.wt-rstick { position: sticky; top: 8vh; height: 340px; width: 132px; }
.wt-rlh { position: absolute; left: 30px; top: 0; width: 60px; height: 150px; overflow: visible; }
.wt-rbeam { position: absolute; left: 60px; top: 17px; width: 230px; height: 96px; margin-top: -48px; transform-origin: 0 50%; pointer-events: none; z-index: 0;
  background: linear-gradient(90deg, rgba(107, 156, 230, 0.9), rgba(107, 156, 230, 0)); clip-path: polygon(0 50%, 100% 0, 100% 100%);
  opacity: calc(0.14 + var(--lit, 0) * 0.17); transform: rotate(var(--ang, 0deg)); transition: opacity 500ms ease-out; }
.wt-rlamps { position: absolute; left: 24px; top: 168px; list-style: none; display: grid; gap: 10px; }
.wt-rlamps li { width: 72px; height: 10px; border-radius: 2px; background: var(--line); transition: background-color 300ms, box-shadow 300ms; }
.wt-rlamps li.on { background: var(--green); box-shadow: 0 0 14px var(--green); }
@keyframes wt-aim { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .wt-rbeam { animation: wt-aim linear both; animation-timeline: scroll(root); }
  }
}

/* section heads: big outlined numeral, mono eyebrow with a lamp that settles green */
.wt-sec { padding-block: 72px 56px; scroll-margin-top: 16px; position: relative; }
.wt-hd { position: relative; counter-increment: wts; margin-bottom: 28px; padding-bottom: 22px; }
.wt-hd::before { content: counter(wts, decimal-leading-zero); position: absolute; right: 0; top: -26px; font: 500 clamp(72px, 9vw, 140px)/1 var(--lk-font-display); color: #E6EDF9; pointer-events: none; z-index: -1; }
.wt-hd::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: 0 50%; }
.wt-eye { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 14px; font: 600 13px/1.2 var(--lk-font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--deep); }
.wt-eye::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--blue); transition: background-color 400ms, box-shadow 400ms; }
.wt-seen .wt-eye::before { background: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.wt-cur .wt-eye::before { background: var(--green); box-shadow: 0 0 0 5px rgba(9, 200, 129, 0.25), inset 0 0 0 2px var(--green); }
.wt-tag { padding: 3px 8px; border-radius: 2px; border: 1px solid #A9BCE0; background: var(--fog2); color: var(--night); letter-spacing: 0.08em; font-size: 11px; }
.wt-tag--clear { background: var(--lit); }
.wt-h2 { font: 500 clamp(34px, 4.2vw, 58px)/1.04 var(--lk-font-display); letter-spacing: -0.015em; margin-bottom: 0; max-width: 13em; text-wrap: balance; }
.wt-lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin-bottom: 36px; max-width: 62ch; }
.wt-sec p { max-width: 68ch; }
@keyframes wt-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .wt-hd::after { animation: wt-draw linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
  }
}

/* reveal (JS adds .wt-js and .wt-rv) */
.wt-js .wt-rv { transform: translateY(22px); transition: transform 650ms cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.wt-js .wt-rv.in { transform: none; }

/* why: in the fog */
.wt-fog { overflow: clip; isolation: isolate; background: linear-gradient(180deg, transparent, var(--fog) 22%, var(--fog) 78%, transparent); }
.wt-fogband { position: absolute; inset: -10% -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(46% 42% at 18% 38%, #D3E0F4, transparent 70%), radial-gradient(40% 50% at 82% 64%, #D9E5F6, transparent 70%), radial-gradient(34% 30% at 55% 20%, #F3F7FD, transparent 70%); }
@keyframes wt-drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
@media (prefers-reduced-motion: no-preference) { .wt-fogband { animation: wt-drift 16s ease-in-out infinite alternate; } }
.wt-big { font: 400 clamp(22px, 2.3vw, 31px)/1.42 var(--lk-font-display); color: var(--night); max-width: 34em; }

/* what: in the clear, four lamp cards */
.wt-four { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: lc; }
.wt-lampcard { position: relative; padding: 52px 20px 22px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 4px; transition: transform 220ms, border-color 220ms, box-shadow 220ms; counter-increment: lc; }
.wt-lampcard::before { content: ""; position: absolute; left: 20px; top: 20px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--lit); transition: box-shadow 220ms; }
.wt-lampcard::after { content: counter(lc, decimal-leading-zero); position: absolute; right: 20px; top: 19px; font: 600 13px/1 var(--lk-font-mono); color: var(--muted); }
.wt-lampcard:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 14px 28px -16px rgba(36, 80, 159, 0.4); }
.wt-lampcard:hover::before { box-shadow: 0 0 0 9px var(--lit); }
.wt-lampcard p { font-size: 16px; line-height: 1.5; color: var(--muted); }
.wt-lampcard .wt-h3 { font-size: 21px; margin-bottom: 8px; }

/* try: the tool */
.wt-steps { max-width: 62ch; padding-left: 1.4em; margin-bottom: 8px; }
.wt-steps li + li { margin-top: 4px; }
.wt-tool { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 28px; box-shadow: 0 24px 48px -32px rgba(11, 27, 63, 0.35); }
.wt-tool[hidden] { display: none; }
.wt-ready .wt-steps { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; padding: 0; }
.wt-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.wt-field span { display: block; margin-bottom: 6px; font: 600 12px/1.2 var(--lk-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--deep); }
.wt-field input, .wt-field select { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font: 400 17px/1.3 var(--lk-font-body); transition: border-color 160ms; }
.wt-field input:hover, .wt-field select:hover { border-color: var(--beam); }
.wt-field input:focus-visible, .wt-field select:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-color: var(--blue); }
.wt-switches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.wt-sw { position: relative; display: block; text-align: left; padding: 16px 16px 16px 76px; border: 2px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); cursor: pointer; transition: border-color 200ms, background-color 200ms, transform 120ms; }
.wt-sw::before { content: ""; position: absolute; left: 16px; top: 50%; width: 46px; height: 26px; margin-top: -13px; border-radius: 4px; border: 2px solid var(--blue); background: #fff; transition: background-color 200ms, border-color 200ms; }
.wt-sw::after { content: ""; position: absolute; left: 22px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 2px; background: var(--blue); transition: transform 220ms cubic-bezier(.3, 1.4, .5, 1), background-color 200ms; }
.wt-sw[aria-checked="true"] { border-color: var(--green); background: var(--lit); }
.wt-sw[aria-checked="true"]::before { background: var(--green); border-color: var(--night); }
.wt-sw[aria-checked="true"]::after { transform: translateX(20px); background: var(--night); }
.wt-sw:hover { border-color: var(--blue); }
.wt-sw[aria-checked="true"]:hover { border-color: var(--night); }
.wt-sw:active { transform: scale(0.98); }
.wt-sw:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wt-sw-t { display: block; font: 500 19px/1.2 var(--lk-font-display); }
.wt-sw-s { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.wt-scrub { margin-bottom: 22px; }
.wt-scrub label { display: block; margin-bottom: 8px; font-size: 17px; }
.wt-scrub strong { font-weight: 600; }
.wt-scrub input[type=range] { width: 100%; height: 32px; accent-color: var(--blue); cursor: grab; }
.wt-scrub input[type=range]:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.wt-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wt-lane { padding: 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--wash); }
.wt-lane--mine { background: #fff; border: 2px solid var(--blue); }
.wt-lane-h { font: 500 21px/1.2 var(--lk-font-display); margin-bottom: 14px; }
.wt-track { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 16px; position: relative; }
.wt-track::before { content: ""; position: absolute; left: 7%; right: 7%; top: 50%; height: 2px; margin-top: -1px; background: var(--line); }
.wt-dot { position: relative; justify-self: center; width: 16px; height: 16px; border-radius: 50%; background: #B9C7E2; transition: transform 240ms cubic-bezier(.3, 1.4, .5, 1), background-color 240ms, opacity 240ms; opacity: 0.45; }
.wt-dot.on { opacity: 1; }
.wt-dot[data-s="aware"] { background: var(--green); }
.wt-dot[data-s="maybe"] { background: #fff; box-shadow: inset 0 0 0 3px var(--blue); }
.wt-dot.cur { transform: scale(1.6); box-shadow: 0 0 0 4px rgba(55, 104, 197, 0.25); }
.wt-dot[data-s="maybe"].cur { box-shadow: inset 0 0 0 3px var(--blue), 0 0 0 4px rgba(55, 104, 197, 0.25); }
.wt-chip { display: inline-block; margin-bottom: 8px; padding: 4px 10px; border-radius: 3px; font: 600 13px/1.3 var(--lk-font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--night); background: #D7E0F1; }
.wt-chip[data-s="aware"] { background: var(--green); }
.wt-chip[data-s="maybe"] { background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
.wt-said { min-height: 3.2em; font-size: 17px; line-height: 1.45; }
.wt-sum { margin: 20px 0; max-width: none; padding: 14px 18px; border-left: 4px solid var(--green); background: var(--lit); border-radius: 0 4px 4px 0; font-size: 17px; }
.wt-copyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.wt-copystatus { font-weight: 600; color: var(--night); }
.wt-copystatus:empty { display: none; }
.wt-tool .wt-btn { transition: background-color 160ms, transform 120ms; }
.wt-tool .wt-btn:active { transform: scale(0.97); }
.wt-fine { max-width: none; margin-top: 16px; font-size: 14px; color: var(--muted); }

/* when: compass sectors, wedge size = share of checklist items */
.wt-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; }
.wt-line .lk-phase { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0; border: 0; background: none; text-align: center; transition: transform 240ms; }
.wt-line .lk-phase:hover { transform: translateY(-4px); }
.wt-line .lk-phase .wt-ring { position: relative; display: grid; place-items: center; width: clamp(104px, 12vw, 150px); aspect-ratio: 1; margin: 0; border-radius: 50%;
  background: conic-gradient(var(--blue) 0 var(--deg, 90deg), var(--line) 0); transition: box-shadow 240ms; }
.wt-line .lk-phase .wt-ring::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: #fff; }
.wt-line .lk-phase .wt-ring::after { content: ""; position: absolute; left: 50%; top: 0; width: 3px; height: 50%; margin-left: -1.5px; border-radius: 2px; background: var(--beam); transform-origin: 50% 100%; opacity: 0; }
.wt-line .lk-phase:hover .wt-ring { box-shadow: 0 0 0 8px rgba(107, 156, 230, 0.25); }
.wt-line .lk-phase strong { position: relative; z-index: 1; display: block; margin: 0; font: 500 clamp(34px, 4vw, 54px)/1 var(--lk-font-display); color: var(--ink); }
.wt-line .lk-phase .wt-ph { margin: 0; font: 500 21px/1.25 var(--lk-font-display); color: var(--ink); }
@keyframes wt-sweepring { 0% { transform: rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: rotate(360deg); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .wt-js .wt-line.in .wt-ring::after { animation: wt-sweepring 1500ms cubic-bezier(.4, 0, .2, 1) both; animation-delay: calc(var(--k, 0) * 160ms); }
}

/* agent + you: a duty rota, two shifts */
.wt-rota { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.wt-shift { padding-block: 72px 56px; }
.wt-shift .wt-hd { margin-bottom: 8px; }
.wt-shift .wt-h2 { font-size: clamp(30px, 3.3vw, 46px); }
.wt-shift .wt-hd::before { font-size: clamp(60px, 7vw, 100px); }
.wt-shift--agent .wt-eye::before { background: var(--blue); }
.wt-shift--you .wt-eye::before { background: var(--green); box-shadow: none; }
.wt-slots { list-style: none; counter-reset: sl; }
.wt-slots li { position: relative; counter-increment: sl; padding: 16px 12px 16px 64px; border-bottom: 1px dashed var(--line); transition: background-color 200ms, padding-left 200ms; }
.wt-slots li::before { content: counter(sl, decimal-leading-zero); position: absolute; left: 12px; top: 16px; width: 38px; height: 28px; display: grid; place-items: center; border-radius: 3px; font: 600 13px/1 var(--lk-font-mono); background: var(--blue); color: #fff; transition: transform 200ms; }
.wt-shift--you .wt-slots li::before { background: var(--green); color: var(--night); }
.wt-slots li:hover { background: var(--wash); padding-left: 72px; }
.wt-slots li:hover::before { transform: scale(1.1); }

/* checklist: status lamp tiles */
.wt-items .lk-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 12px; list-style: none; }
.wt-items .lk-items .lk-cat { grid-column: 1 / -1; padding: 28px 0 4px; font: 600 14px/1 var(--lk-font-mono); letter-spacing: 0.12em; color: var(--deep); display: flex; align-items: center; gap: 14px; }
.wt-items .lk-items .lk-cat::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wt-items .lk-items .lk-item { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "id id" "title title" "who when"; gap: 6px 10px; align-items: end; padding: 16px 52px 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 4px; background: #fff; cursor: pointer;
  transition: transform 180ms, box-shadow 180ms, border-color 180ms, background-color 240ms; }
.wt-items .lk-items .lk-item[data-who="founder"] { border-left-color: var(--green); }
.wt-items .lk-items .lk-item[hidden], .wt-items .lk-items .lk-item.wt-out, .wt-items .lk-items .lk-cat.wt-out { display: none; }
.wt-items .lk-item .lk-id { grid-area: id; font: 600 12px/1 var(--lk-font-mono); letter-spacing: 0.1em; color: var(--muted); }
.wt-items .lk-item .lk-title { grid-area: title; font: 500 19px/1.25 var(--lk-font-display); color: var(--ink); }
.wt-items .lk-item .lk-who { grid-area: who; font-size: 14px; font-weight: 600; color: var(--deep); }
.wt-items .lk-item .lk-when { grid-area: when; font-size: 13px; color: var(--muted); }
.wt-items .lk-item::before { content: ""; position: absolute; right: 14px; top: 14px; width: 24px; height: 24px; border-radius: 3px; box-shadow: inset 0 0 0 2px var(--blue); background: #fff; transition: background-color 220ms, box-shadow 220ms; }
.wt-items .lk-item::after { content: ""; position: absolute; right: 21px; top: 19px; width: 10px; height: 5px; border-left: 3px solid var(--night); border-bottom: 3px solid var(--night); transform: rotate(-45deg) scale(0); transition: transform 220ms cubic-bezier(.3, 1.5, .5, 1); }
.wt-items .lk-item:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -14px rgba(36, 80, 159, 0.45); border-color: var(--blue); }
.wt-items .lk-item[data-who="founder"]:hover { border-left-color: var(--green); }
.wt-items .lk-item:hover::before { box-shadow: inset 0 0 0 2px var(--green); }
.wt-items .lk-item:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wt-items .lk-item[aria-checked="true"] { background: var(--lit); }
.wt-items .lk-item[aria-checked="true"]::before { background: var(--green); box-shadow: 0 0 0 5px rgba(9, 200, 129, 0.25); }
.wt-items .lk-item[aria-checked="true"]::after { transform: rotate(-45deg) scale(1); }
.wt-litcount { max-width: none; margin: 8px 0 4px; font: 600 14px/1.3 var(--lk-font-mono); letter-spacing: 0.06em; color: var(--deep); }
.wt-items .lk-filters { margin-bottom: 8px; }

/* money: beam rows. free is lit, the catch sits in fog, paid lies beyond the light */
.wt-money .lk-money { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.wt-money .lk-money th { background: transparent; border: 0; padding: 8px 14px; }
.wt-money .lk-money td { border: 0; padding: 16px 14px; border-top: 4px solid transparent; background: #fff; }
.wt-money .lk-money td:first-child { border-radius: 4px 0 0 4px; font: 500 20px/1.25 var(--lk-font-display); }
.wt-money .lk-money td:last-child { border-radius: 0 4px 4px 0; }
.wt-money .lk-money td[data-label="Free route"] { background: linear-gradient(90deg, #C9F0DD, var(--lit)); border-top-color: var(--green); font-weight: 500; }
.wt-money .lk-money td[data-label="The catch"] { background: repeating-linear-gradient(135deg, var(--fog) 0 10px, #DFE8F6 10px 20px); border-top-color: #8FA3C8; }
.wt-money .lk-money td[data-label="Paid from"] { background: #fff; border: 2px dashed var(--line); border-top: 4px dashed var(--night); font-weight: 600; }
.wt-money .lk-money td[data-label="Checked"], .wt-money .lk-money td[data-label="Source"] { background: var(--wash); font-size: 14px; color: var(--muted); }
.wt-money .lk-money tbody tr { transition: transform 200ms; }
.wt-money .lk-money tbody tr:hover { transform: translateX(6px); }
.wt-money .lk-money td::after, .wt-money .lk-money td[data-label="The catch"]::after { content: none; }
.wt-money .lk-money td[data-label="The catch"] { padding-left: 14px; }
@media (min-width: 1200px) {
  .wt-money .lk-money td[data-label="The catch"] { width: 32%; }
  .wt-money .lk-money td[data-label="Source"] { width: 14%; overflow-wrap: anywhere; }
}

/* end: example status board */
.wt-end { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.wt-plate img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.wt-boardwrap { background: var(--night); border-radius: 4px; padding: 20px 24px 12px; color: #fff; box-shadow: 0 24px 48px -28px rgba(11, 27, 63, 0.7); }
.wt-boardh { max-width: none; display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); font: 500 22px/1.2 var(--lk-font-display); }
.wt-boardwrap .wt-nd { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.wt-board { list-style: none; padding: 0; border: 0; background: transparent; }
.wt-board li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); line-height: 1.4; }
.wt-board li:last-child { border-bottom: 0; }
.wt-board .wt-lamp { width: 28px; height: 28px; border-radius: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .wt-js .wt-end:not(.in) .wt-board .wt-lamp { background: transparent; box-shadow: inset 0 0 0 2px #6B9CE6; }
  .wt-js .wt-end:not(.in) .wt-board .wt-tick { stroke-dashoffset: 1; }
  .wt-js .wt-board .wt-lamp { transition: background-color 260ms ease-out, box-shadow 260ms ease-out; transition-delay: calc(var(--k, 0) * 170ms); }
  .wt-js .wt-board .wt-tick { transition: stroke-dashoffset 260ms ease-out; transition-delay: calc(var(--k, 0) * 170ms + 120ms); }
}

/* run: terminal prompt, numbered questions, file tree */
.wt-prompt { max-width: 880px; margin-bottom: 40px; border-radius: 4px; overflow: hidden; background: var(--night); box-shadow: 0 24px 48px -28px rgba(11, 27, 63, 0.7); }
.wt-prompt::before { content: "agent prompt"; display: block; padding: 10px 16px 10px 70px; background: var(--night2); color: #C9D6F0; font: 500 13px/1.2 var(--lk-font-mono); letter-spacing: 0.06em;
  background-image: radial-gradient(circle, #FF6B6B 5px, transparent 5.5px), radial-gradient(circle, #F5C451 5px, transparent 5.5px), radial-gradient(circle, #09C881 5px, transparent 5.5px); background-size: 20px 20px; background-repeat: no-repeat; background-position: 16px 50%, 36px 50%, 56px 50%; }
.wt-prompt .lk-prompt-text { margin: 0; border: 0; border-radius: 0; background: var(--night); color: #EAF1FF; font: 500 16px/1.6 var(--lk-font-mono); padding: 20px 20px 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wt-prompt .lk-prompt-text::after { content: ""; display: inline-block; width: 9px; height: 1.1em; margin-left: 4px; vertical-align: text-bottom; background: var(--green); }
@keyframes wt-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) { .wt-prompt .lk-prompt-text::after { animation: wt-caret 1.1s steps(1) infinite; } }
.wt-prompt .lk-prompt-row { background: var(--night); padding: 8px 20px 20px; }
.wt-prompt .lk-copy-status { color: #9FF0CF; font-weight: 600; }
.wt-prompt .wt-btn { transition: background-color 160ms, transform 120ms; }
.wt-prompt .wt-btn:active { transform: scale(0.97); }
.wt-prompt .wt-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wt-run-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px; }
.wt-qs { list-style: none; counter-reset: q; }
.wt-qs li { position: relative; counter-increment: q; padding: 0 0 18px 48px; }
.wt-qs li::before { content: counter(q); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font: 600 15px/1 var(--lk-font-display); }
.wt-qs li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 2px; background: var(--line); }
.wt-qs li:last-child::after { content: none; }
.wt-files { list-style: none; border-left: 2px solid var(--line); margin-left: 6px; }
.wt-files li { position: relative; padding: 0 0 14px 22px; }
.wt-files li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 14px; height: 2px; background: var(--line); }
.wt-files code { display: block; color: var(--ink); font-weight: 600; transition: color 160ms; }
.wt-files li:hover code { color: var(--blue); }
.wt-note { margin-top: 14px; font-size: 16px; color: var(--muted); }

/* terms: a chart legend with a symbol per entry */
.wt-legend .lk-terms { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0; margin: 0; padding: 48px 0 0; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.wt-legend .lk-terms::before { content: "Key"; position: absolute; left: 0; top: 0; right: 0; padding: 12px 20px; background: var(--wash); border-bottom: 1px solid var(--line); font: 600 12px/1.2 var(--lk-font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--deep); }
.wt-legend .lk-terms > div { position: relative; padding: 16px 18px 16px 62px; box-shadow: inset -1px -1px 0 var(--line); transition: background-color 200ms; }
.wt-legend .lk-terms > div:hover { background: var(--wash); }
.wt-legend .lk-terms > div::before { content: ""; position: absolute; left: 22px; top: 20px; width: 20px; height: 20px; background: var(--blue); transition: transform 240ms cubic-bezier(.3, 1.5, .5, 1); }
.wt-legend .lk-terms > div:hover::before { transform: scale(1.3) rotate(8deg); }
.wt-legend .lk-terms > div:nth-child(4n+1)::before { border-radius: 50%; }
.wt-legend .lk-terms > div:nth-child(4n+2)::before { background: var(--green); border-radius: 4px; }
.wt-legend .lk-terms > div:nth-child(4n+3)::before { transform: rotate(45deg) scale(0.8); background: var(--beam); }
.wt-legend .lk-terms > div:nth-child(4n+3):hover::before { transform: rotate(60deg) scale(1.05); }
.wt-legend .lk-terms > div:nth-child(4n)::before { background: var(--night); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.wt-legend .lk-terms dt { font: 500 19px/1.25 var(--lk-font-display); }
.wt-legend .lk-terms dd { margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.wt-legend .lk-terms dt:target { outline: 3px solid var(--blue); outline-offset: 4px; }

/* next: one step on, the lamp passes along */
.wt-nextsec .lk-next { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.wt-nextsec .lk-next > div { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 4px; background: #fff; transition: transform 220ms, box-shadow 220ms; }
.wt-nextsec .lk-next > div:last-child { background: var(--night); border-color: var(--night); color: #fff; }
.wt-nextsec .lk-next > div:last-child h3 { color: #fff; }
.wt-nextsec .lk-next h3 { font: 500 26px/1.2 var(--lk-font-display); margin-bottom: 12px; }
.wt-nextsec .lk-next > div:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -20px rgba(11, 27, 63, 0.5); }
.wt-nextsec .lk-next > div:first-child::after { content: "\2192"; position: absolute; right: -52px; top: 50%; margin-top: -24px; width: 40px; text-align: center; font: 500 40px/48px var(--lk-font-display); color: var(--blue); }
@keyframes wt-nudge { 50% { transform: translateX(8px); } }
@media (prefers-reduced-motion: no-preference) { .wt-nextsec .lk-next > div:first-child::after { animation: wt-nudge 2.2s ease-in-out infinite; } }
.wt-nextsec .lk-next ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.wt-nextsec .lk-next .lk-guide { color: inherit; }
.wt-nextsec .lk-next a { color: #fff; }
.wt-nextsec .lk-next > div:first-child a { color: var(--blue); }

/* buttons: shared feel */
.wt-btn:focus-visible, .wt-catbar-btn:focus-visible, .lk-filter:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.lk-item.wt-out, .lk-cat.wt-out { display: none; }
.wt-catbar { max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; font-size: 16px; }
.wt-catbar[hidden] { display: none; }
.wt-catbar-btn { padding: 6px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); font-size: 15px; font-weight: 500; }
.wt-catbar-btn:hover { border-color: var(--blue); }

@media (max-width: 1199px) {
  .wt-body { display: block; padding-inline: 16px; }
  .wt-rail { display: none; }
  .wt-sec, .wt-shift { padding-block: 44px 32px; }
  .wt-hd { margin-bottom: 20px; padding-bottom: 16px; }
  .wt-hd::before { font-size: 64px; top: -14px; }
  .wt-h2 { font-size: 32px; }
  .wt-shift .wt-h2 { font-size: 30px; }
  .wt-lede { font-size: 17px; margin-bottom: 24px; }
  .wt-big { font-size: 21px; }
  .wt-four { grid-template-columns: 1fr 1fr; }
  .wt-line { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .wt-rota { grid-template-columns: 1fr; }
  .wt-end { grid-template-columns: 1fr; gap: 24px; }
  .wt-run-grid { grid-template-columns: 1fr; }
  .wt-nextsec .lk-next { grid-template-columns: 1fr; gap: 48px; }
  .wt-nextsec .lk-next > div:first-child::after { right: 50%; margin-right: -20px; top: auto; bottom: -48px; margin-top: 0; transform: rotate(90deg); animation: none; }
  .wt-tool { padding: 18px 16px; }
  .wt-fields, .wt-switches, .wt-lanes { grid-template-columns: 1fr; }
  .wt-money .lk-money { border-spacing: 0; }
  .wt-money .lk-money tr { margin-bottom: 14px; padding: 0; border: 0; border-radius: 4px; overflow: hidden; }
  .wt-money .lk-money td { border-radius: 0 !important; padding: 12px 14px; border-top-width: 0; }
  .wt-money .lk-money td[data-label="Free route"] { border-left: 6px solid var(--green); }
  .wt-money .lk-money td[data-label="The catch"] { border-left: 6px solid #8FA3C8; padding-left: 14px; }
  .wt-money .lk-money td[data-label="Paid from"] { border: 0; border-left: 6px dashed var(--night); }
  .wt-money .lk-money tbody tr:hover { transform: none; }
  .wt-money .lk-money td[data-label="Thing"] { background: var(--night); color: #fff; }
  .wt-legend .lk-terms { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .wt-four { grid-template-columns: 1fr; }
  .wt-line .lk-phase .wt-ph { font-size: 18px; }
  .wt-items .lk-items { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .wt-lampcard, .wt-sw, .wt-items .lk-item, .wt-slots li, .wt-money .lk-money tbody tr, .wt-nextsec .lk-next > div, .wt-line .lk-phase { transition: none; }
  .wt-lampcard:hover, .wt-items .lk-item:hover, .wt-money .lk-money tbody tr:hover, .wt-nextsec .lk-next > div:hover, .wt-line .lk-phase:hover { transform: none; }
}

.wt-rota .wt-sec { z-index: 1; }
