/* ============================================================================
   COURT DUTY - MOTION SYSTEM v1. Wired 21 Oct 2026.
   The orange full stop is the only thing on this site that moves on its own.

   THE SPEC, with every component captioned and two preview switches, is
   design/motion/index.html + README.md. It is not repeated here: the comments
   below are only the things that cannot be re-derived from the code.
   The rules: no motion is needed for the page to work; transform, opacity and
   clip-path only (never a layout property); a pending state is the same size as
   its resting state; one curve; exits faster than entrances; reduced motion
   removes movement, not information (section 9); we never animate content in on
   scroll.

   THE DOT IS SQUARE (owner, 21 Oct 2026) - the wordmark's own full stop, as Big
   Shoulders draws it. ONE TOKEN, --dot-r, sets it everywhere, which is why this
   is a file of its own and not an appendix to cd.css: the site runs on
   assets/cd.css and the page editor runs on assets/pp.css, two different token
   vocabularies, and the owner's "everywhere" has to mean both. Loaded by
   lib/render.js shell() and by lib/pages/editor.js, AFTER the stylesheet it sits
   on top of.
   ========================================================================== */

/* -------------------------------------------------- 0 COLOURS, RESOLVED ONCE */
/* Every colour and face the system uses is named here and nowhere else: the
   site's token first, the editor's second, a literal last. That is the whole
   bridge, and it is also what makes the editor's dark theme work for free,
   because --ink and --card flip there and the system follows. */
:root{
  --cd-on:var(--orange,var(--accent,#FF5A1F));
  --cd-wash:var(--orange-wash,var(--accent-wash,#FFEFE7));
  --cd-ink:var(--ink,#10161C);
  --cd-paper:var(--card,#FFFFFF);
  --cd-page:var(--bg,#F7F7F3);
  --cd-rule:var(--rule,#DADDD6);
  --cd-bad:var(--bad,#B3261E);
  --cd-font:var(--text,var(--sans,"Inter","Helvetica Neue",Arial,sans-serif));
  /* The house curve, stated literally: both stylesheets define an --ease-out and
     they are not the same curve. */
  --cd-ease:cubic-bezier(.23,1,.32,1);
}

/* ----------------------------------------------------------------- 1 TOKENS */
:root{
  --t-press:90ms; --t-state:160ms; --t-enter:240ms;
  --t-view:360ms; --t-mark:420ms; --t-loop:1100ms;
  --t-land:950ms; --t-land-wait:280ms; /* the full stop's landing on load (section 7) */
  --t-word:820ms; --t-word-step:70ms;  /* the home headline: each word rises from under its own line, one after another */
  --t-step:40ms;    /* one row behind the one before it, when real rows arrive */
  --t-step-sk:60ms; /* the same for skeleton rows, slower so the wait has a rhythm */
  --t-rise:1400ms;  /* the copy confirmation: shown, read, gone, all in one gesture */
  --t-dim:1800ms;   /* reduced motion's one breath, slower than any movement it replaces */
  --ease-in:cubic-bezier(.4,0,1,1);       /* exits only */
  --ease-move:cubic-bezier(.65,0,.35,1);  /* travels both ways, loops */
  --ease-snap:cubic-bezier(.2,1.5,.35,1); /* the success dot, nowhere else */
  --m-press:4px; --m-enter:8px; --m-slide:16px;
  --dot:10px; --dot-sm:7px; --dot-lg:14px;
  --dot-r:2px;  /* THE SHAPE, in one place: the wordmark's square stop */
  --bar-r:2px;
  /* Concentric squares only look concentric when the outer radius grows by the
     gap, so the ring's radius is derived, not typed. (A % radius clamps, so this
     is also right if the dot is ever set back to round.) */
  --ring-r:calc(var(--dot-r) + 4px);
}

/* ------------------------------------------------- 2 THE DOT: the primitive */
.cd-dot{
  display:inline-block;vertical-align:baseline;flex:none;
  width:var(--dot);height:var(--dot);border-radius:var(--dot-r);
  background:var(--cd-on);
  transition:background var(--t-state) var(--cd-ease);
}
.cd-dot--sm{width:var(--dot-sm);height:var(--dot-sm)}
.cd-dot--lg{width:var(--dot-lg);height:var(--dot-lg)}
.cd-dot--ink{background:var(--cd-ink)}
.cd-dot--bad{background:var(--cd-bad)}

/* (a) A region loading. 100cqw is the region's own width, so one markup fits any
   size; the box is a fixed height, so it cannot shift layout. */
.cd-load{container-type:inline-size;position:relative;height:var(--dot-lg)}
.cd-load__trail,.cd-load__dot{position:absolute;background:var(--cd-on)}
.cd-load__trail{
  left:0;top:calc(50% - 1px);height:2px;width:100%;
  transform-origin:left center;transform:scaleX(0);
  animation:cd-trail calc(var(--t-loop) * 1.5) var(--ease-move) infinite;
}
.cd-load__dot{
  top:calc(50% - var(--dot-lg) / 2);left:0;
  width:var(--dot-lg);height:var(--dot-lg);border-radius:var(--dot-r);
  animation:cd-run calc(var(--t-loop) * 1.5) var(--ease-move) infinite;
}
@keyframes cd-trail{0%{transform:scaleX(0)}44%,52%{transform:scaleX(1)}96%,100%{transform:scaleX(0)}}
@keyframes cd-run{0%{transform:translateX(0)}44%,52%{transform:translateX(calc(100cqw - var(--dot-lg)))}96%,100%{transform:translateX(0)}}

/* The resting pulse: slower than everything else on purpose. */
.cd-dot--pulse{animation:cd-pulse var(--t-loop) var(--ease-move) infinite alternate}
@keyframes cd-pulse{from{transform:scale(1);opacity:1}to{transform:scale(.5);opacity:.45}}

/* (b) The pending mark: the full stop after "Sending". The spec's .cd-orbit is
   NOT shipped — no icon-only button to put it in, and a spinning square is the
   one member of the family that stops reading as the stop (Eng, 21 Oct 2026). */
.cd-bounce{
  display:inline-block;vertical-align:baseline;flex:none;margin-left:.22em;
  width:var(--dot-sm);height:var(--dot-sm);border-radius:var(--dot-r);background:var(--cd-on);
  animation:cd-bounce calc(var(--t-loop) * .42) var(--ease-move) infinite alternate;
}
.cd-bounce--ink{background:var(--cd-ink)}
@keyframes cd-bounce{from{transform:translateY(0)}to{transform:translateY(-6px)}}

/* (c) Progress. The fill is already full width and clip-path opens it from the
   left, so at 0% what you see is exactly the dot and nothing is ever redrawn.
   --p is 0 to 1. --wait is indeterminate: never a fake percentage. */
.cd-prog{position:relative;height:var(--dot);border-radius:var(--bar-r);background:var(--cd-wash)}
.cd-prog__fill{
  position:absolute;inset:0;border-radius:var(--bar-r);background:var(--cd-on);
  clip-path:inset(0 calc(100% - max(var(--dot), var(--p,0) * 100%)) 0 0 round var(--bar-r));
  transition:clip-path var(--t-view) var(--cd-ease);
}
.cd-prog--wait .cd-prog__fill{transition:none;animation:cd-wait calc(var(--t-loop) * 1.6) var(--ease-move) infinite}
@keyframes cd-wait{
  0%  {clip-path:inset(0 calc(100% - var(--dot)) 0 0 round var(--bar-r))}
  28% {clip-path:inset(0 46% 0 6% round var(--bar-r))}
  50% {clip-path:inset(0 0 0 calc(100% - var(--dot)) round var(--bar-r))}
  78% {clip-path:inset(0 6% 0 46% round var(--bar-r))}
  100%{clip-path:inset(0 calc(100% - var(--dot)) 0 0 round var(--bar-r))}
}

/* (d) Success: the only overshoot in the system, which is what makes it mean
   something. (e) Error: the same stop, shaken once, never twice. */
.cd-mark{
  position:relative;display:inline-block;vertical-align:baseline;flex:none;
  width:var(--dot);height:var(--dot);border-radius:var(--dot-r);background:var(--cd-on);
  transform:scale(0);
  animation:cd-snap var(--t-mark) var(--ease-snap) both;
}
.cd-mark--lg{width:30px;height:30px}
.cd-mark--ink{background:var(--cd-ink)}
.cd-mark::after{
  content:"";position:absolute;inset:-4px;border-radius:var(--ring-r);
  border:2px solid var(--cd-on);
  animation:cd-ring calc(var(--t-mark) * 1.5) var(--cd-ease) both;
}
.cd-mark--ink::after{border-color:var(--cd-ink)}
@keyframes cd-snap{from{transform:scale(0)}to{transform:scale(1)}}
@keyframes cd-ring{from{transform:scale(.4);opacity:.55}to{transform:scale(2.6);opacity:0}}
.cd-mark--tick{display:inline-grid;place-items:center}
.cd-mark--tick svg{
  width:58%;height:58%;stroke:var(--cd-ink);stroke-width:2.6;fill:none;stroke-linecap:square;
  clip-path:inset(0 100% 0 0);
  animation:cd-tick var(--t-state) var(--cd-ease) var(--t-mark) both;
}
@keyframes cd-tick{to{clip-path:inset(0 0 0 0)}}
.cd-mark--bad{background:var(--cd-bad);transform:none;animation:cd-shake var(--t-enter) var(--ease-move) both}
.cd-mark--bad::after{display:none}   /* a ring is a small celebration */
.cd-shake{animation:cd-shake var(--t-enter) var(--ease-move) both}
@keyframes cd-shake{
  0%,100%{transform:translateX(0)}
  22%{transform:translateX(calc(var(--m-press) * -1))}
  46%{transform:translateX(var(--m-press))}
  70%{transform:translateX(-2px)}
  88%{transform:translateX(2px)}
}

/* --------------------------------------- 3 THE STACK: states without a shift */
/* All four labels share one grid cell, so a control is as wide as its widest
   word from the first paint and can never resize. With no JS the first label
   shows and the control is a plain working button. */
.cd-stack{display:inline-grid;align-items:center;justify-items:center}
.cd-stack > *{
  grid-area:1/1;display:inline-flex;align-items:baseline;gap:.1em;white-space:nowrap;
  opacity:0;visibility:hidden;transform:translateY(var(--m-enter));
  transition:opacity var(--t-state) var(--ease-in),transform var(--t-state) var(--ease-in),visibility 0s linear var(--t-state);
}
.cd-stack[data-cd="idle"]    > :nth-child(1),
.cd-stack[data-cd="pending"] > :nth-child(2),
.cd-stack[data-cd="ok"]      > :nth-child(3),
.cd-stack[data-cd="bad"]     > :nth-child(4){
  opacity:1;visibility:visible;transform:none;
  transition:opacity var(--t-enter) var(--cd-ease),transform var(--t-enter) var(--cd-ease),visibility 0s;
}
.cd-stack:not([data-cd]) > :nth-child(1){opacity:1;visibility:visible;transform:none}
.cd-stack[data-cd="pending"]{cursor:progress}
button.cd-stack[disabled]{opacity:1}   /* pending is said by the dot, not by grey */
/* The same rule for the buttons that are NOT a stack, which on this site is all of
   them: cd.css fades a submitting button to .6, so "Sending" arrived as a washed
   out button with a dot on it. The dot and the word say we are working; the
   cursor says it too. Only a button that is pending gets this - a button disabled
   because it cannot be used still looks unavailable. */
form .btn:disabled[aria-busy="true"]{opacity:1}

/* --------------------------------------------- 4 LOADING: skeletons, no shift */
/* A skeleton does not guess a height: it goes INSIDE the real element and takes
   that element's own line box with 1lh. So a skeleton card is the real card with
   its words blanked, and it cannot drift when the type scale changes. Only the
   width is a choice. */
.cd-sk{
  display:block;height:1em;height:1lh;   /* 1em is the fallback, 1lh is exact */
  position:relative;overflow:hidden;border-radius:4px;
  background:var(--cd-rule);opacity:.55;
}
.cd-sk::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,transparent 0,rgba(255,255,255,.9) 50%,transparent 100%);
  transform:translateX(-100%);
  animation:cd-sweep calc(var(--t-loop) * 1.25) var(--ease-move) infinite;
}
@keyframes cd-sweep{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
.cd-sk--jt{width:min(78%,22ch)}
.cd-sk--jc{width:min(46%,17ch)}
.cd-sk--jmeta{width:min(64%,26ch)}
.cd-sk--jp{width:5.5ch}
.cd-sk--l2{display:none;width:min(54%,13ch)}
.cd-sk--mark{border-radius:6px;opacity:.4;height:auto}
.cmark.cd-sk{height:var(--s);border-radius:6px}  /* the real tile owns its size */
/* A skeleton can only promise lines whose count is fixed: a two-line floor makes
   every phone card the same height, so the list cannot jump when data lands. */
/* The spec proposed .job .jt{min-height:2lh} here so every phone card would be
   the same height and the skeleton could not lie. NOT SHIPPED: it was an open
   question for the Director, not a decision, and MEASURED on the preview at 390
   the cards are still 190/140/140/140/121/140 px, because they differ by their
   optional meta and badge rows, not by their title. It would add a blank line
   under every one-line title and buy nothing. The skeleton is not on the board's
   first paint anyway - the server already sends the cards. */
@media (max-width:560px){
  .cd-sk--l2{display:block}
}
.cd-sk-row{animation:cd-fade var(--t-enter) var(--cd-ease) calc(var(--i,0) * var(--t-step-sk)) both}
@keyframes cd-fade{from{opacity:0}to{opacity:1}}
/* Real rows arriving after a load the reader asked for. Never on first paint. */
.cd-in{animation:cd-in var(--t-enter) var(--cd-ease) calc(var(--i,0) * var(--t-step)) both}
@keyframes cd-in{from{opacity:0;transform:translateY(var(--m-enter))}to{opacity:1;transform:none}}

/* An uploading photo: already there, half present, the stop stretching along its
   bottom edge. The box never changes size. */
.cd-up{position:relative;overflow:hidden;border-radius:6px;background:var(--cd-page)}
.cd-up img{display:block;width:100%;height:100%;object-fit:cover;opacity:.45;transition:opacity var(--t-view) var(--cd-ease)}
.cd-up[data-cd="ok"] img{opacity:1}
.cd-up .cd-prog{position:absolute;inset:auto 8px 8px 8px}
.cd-up[data-cd="ok"] .cd-prog{opacity:0;transition:opacity var(--t-state) var(--ease-in)}
.cd-up__mark{position:absolute;right:8px;bottom:8px}

/* The success card's own mark IS the system's success dot — it was already a
   44px orange disc with an ink tick, so wiring it is a shape and a curve, with
   no markup change. The card is revealed by dropping [hidden], which starts the
   animation from scratch, the same mechanism @starting-style uses on .done. */
.done .ok{
  position:relative;border-radius:var(--dot-r);transform:scale(0);
  animation:cd-snap var(--t-mark) var(--ease-snap) both;
}
.done .ok::after{
  content:"";position:absolute;inset:-6px;border-radius:calc(var(--dot-r) + 6px);
  border:2px solid var(--cd-on);
  animation:cd-ring calc(var(--t-mark) * 1.5) var(--cd-ease) both;
}

/* --------------------------------------------------- 5 MICRO-INTERACTIONS */
.cd-press{transition:transform var(--t-press) var(--cd-ease)}
.cd-press:active{transform:scale(.97)}

.cd-toast{
  position:fixed;left:50%;bottom:20px;z-index:40;
  display:flex;align-items:center;gap:10px;
  max-width:min(440px,calc(100vw - 32px));
  padding:12px 16px;border-radius:6px;
  background:var(--cd-ink);color:#fff;font:500 15.5px var(--cd-font);
  box-shadow:0 8px 28px rgba(16,22,28,.22);
  opacity:0;transform:translate(-50%,var(--m-slide));pointer-events:none;
  transition:opacity var(--t-state) var(--ease-in),transform var(--t-state) var(--ease-in);
}
.cd-toast[data-open]{
  opacity:1;transform:translate(-50%,0);
  transition:opacity var(--t-enter) var(--cd-ease),transform var(--t-enter) var(--cd-ease);
}
.cd-toast .cd-mark{background:var(--cd-on)}
.cd-toast .cd-mark::after{border-color:var(--cd-on)}
@media (max-width:860px){body.hassticky .cd-toast{bottom:92px}}  /* clear of the phone apply bar */

/* Copy-link, where there is no room for a toast. */
.cd-rise{
  position:absolute;left:50%;bottom:calc(100% + 6px);
  padding:3px 9px;border-radius:999px;white-space:nowrap;
  background:var(--cd-ink);color:#fff;font:600 12px var(--cd-font);
  letter-spacing:.04em;text-transform:uppercase;pointer-events:none;
  animation:cd-rise var(--t-rise) var(--cd-ease) both;
}
@keyframes cd-rise{
  0%{opacity:0;transform:translate(-50%,6px)}
  14%,72%{opacity:1;transform:translate(-50%,0)}
  100%{opacity:0;transform:translate(-50%,-6px)}
}

/* A real checkbox, so it works and is focusable with JS off. flex-direction is
   stated because a <label> is a column (see label.row above). */
.cd-sw{display:inline-flex;flex-direction:row;align-items:center;gap:12px;cursor:pointer;min-height:44px;font-size:15.5px;font-weight:400}
.cd-sw input{position:absolute;width:1px;height:1px;opacity:0;margin:0}
.cd-sw__t{
  position:relative;flex:none;width:46px;height:27px;border-radius:999px;
  background:var(--cd-paper);border:1.5px solid var(--cd-ink);box-sizing:border-box;
  transition:background var(--t-state) var(--cd-ease);
}
/* Knob and track stay ROUND on purpose: a switch is a control, not a full stop.
   The square is the name's mark and nothing else borrows it. */
.cd-sw__t::after{
  content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;
  border-radius:50%;background:var(--cd-ink);
  transition:transform var(--t-state) var(--cd-ease);
}
.cd-sw input:checked + .cd-sw__t{background:var(--cd-on)}
.cd-sw input:checked + .cd-sw__t::after{transform:translateX(19px)}
.cd-sw input:focus-visible + .cd-sw__t{outline:3px solid var(--cd-ink);outline-offset:2px}
.cd-sw:active .cd-sw__t::after{transform:scale(.92)}
.cd-sw input:checked + .cd-sw__t:active::after{transform:translateX(19px) scale(.92)}
/* a switch inside a compact list row (the editor's coach list) */
.cd-sw--sm{min-height:0;gap:8px}
.cd-sw--sm .cd-sw__t{width:36px;height:21px}
.cd-sw--sm .cd-sw__t::after{width:15px;height:15px}
.cd-sw--sm input:checked + .cd-sw__t::after{transform:translateX(15px)}
.cd-sw--sm input:checked + .cd-sw__t:active::after{transform:translateX(15px) scale(.92)}

/* Saved is the resting state and is already as wide as Saving, so the editor's
   header never twitches while you type. */
.cd-save{font:600 13px var(--cd-font);letter-spacing:.04em;text-transform:uppercase;color:var(--soft);min-height:22px}
.cd-save[data-cd="ok"]{color:var(--cd-ink)}

/* --------------------------------- 6 THE DOT ELSEWHERE (earns its keep only) */
/* Live: the one place a breathing dot says something a static label cannot —
   this page is switched on right now. Editor only. */
.cd-live{display:inline-flex;align-items:center;gap:9px;font:600 12px var(--cd-font);letter-spacing:.07em;text-transform:uppercase;color:var(--cd-ink)}
.cd-live--off{color:var(--soft)}
.cd-live--off .cd-dot{background:var(--cd-rule);animation:none}

/* Steps: every dot sits in a fixed 14px box and the current one is SCALED, not
   resized, so the train cannot move the form below it. data-s is server-
   rendered: this needs no JavaScript at all. */
.cd-steps{display:flex;align-items:center;list-style:none;margin:0;padding:0}
.cd-steps li{display:flex;align-items:center;flex:1;min-width:0}
.cd-steps li:last-child{flex:0 0 auto}
.cd-steps .d{flex:none;display:grid;place-items:center;width:var(--dot-lg);height:var(--dot-lg)}
.cd-steps .d::before{
  content:"";width:var(--dot);height:var(--dot);border-radius:var(--dot-r);
  background:var(--cd-paper);box-shadow:inset 0 0 0 1.5px var(--cd-ink);
  transition:transform var(--t-view) var(--cd-ease),background var(--t-view) var(--cd-ease),box-shadow var(--t-view) var(--cd-ease);
}
.cd-steps li[data-s=done] .d::before{background:var(--cd-ink);box-shadow:none}
.cd-steps li[data-s=now]  .d::before{background:var(--cd-on);box-shadow:none;transform:scale(1.4)}
.cd-steps .r{position:relative;flex:1;min-width:16px;height:2px;background:var(--cd-rule)}
.cd-steps .r::after{
  content:"";position:absolute;inset:0;background:var(--cd-ink);
  transform-origin:left center;transform:scaleX(0);
  transition:transform var(--t-view) var(--cd-ease);
}
.cd-steps li[data-s=done] .r::after{transform:scaleX(1)}

/* New since you last looked: a STATIC stop on the card corner — the mark is
   loudest when it does not move. The only motion is its exit once the card has
   been opened, and it never comes back. With JS off there is simply no dot. */
.cd-new{position:relative}
.cd-new::after{
  content:"";position:absolute;top:-5px;left:-5px;z-index:1;
  width:var(--dot);height:var(--dot);border-radius:var(--dot-r);background:var(--cd-on);
  box-shadow:0 0 0 2px var(--cd-page);
  transition:opacity var(--t-state) var(--ease-in),transform var(--t-state) var(--ease-in);
}
.cd-new[data-seen]::after{opacity:0;transform:scale(.5)}

/* ------------------------------- 6b THE EDITOR (/me, assets/pp.css tokens) */
/* The autosave pill was a SPINNING tick. A spinner is for a module you are
   waiting on; this is a status, not a wait, so it becomes the stop: breathing
   while saving, still and ink once saved, with the word beside it carrying the
   message. The pill is already as wide as its widest word, so the editor's
   header cannot twitch while you type. */
.saved svg{display:none}
.saved::before{
  content:"";flex:none;width:var(--dot-sm);height:var(--dot-sm);border-radius:var(--dot-r);
  background:var(--cd-ink);transition:background var(--t-state) var(--cd-ease);
}
.saved.saving::before{background:var(--cd-on);animation:cd-dim var(--t-loop) var(--ease-move) infinite}
.saved[data-cd=bad]::before{background:var(--cd-bad);animation:none}

/* The live pill's dot: the square stop, breathing slowly, and ONLY here. The
   same .pulse on a public profile page is left alone - a visitor reading a page
   does not need to be told it exists, and pp.css is its own approved system. */
.urlbar .live-pill .pulse{border-radius:var(--dot-r);animation:cd-pulse var(--t-loop) var(--ease-move) infinite alternate}
.urlbar .live-pill .pulse::after{display:none}
.urlbar .live-pill.off .pulse{animation:none}

/* The upload bar, drawn inside the picker's OWN fixed box, so nothing moves. */
.photo__pick img{transition:opacity var(--t-view) var(--cd-ease)}
.photo__pick[data-cd=pending] img{opacity:.45}
.photo__pick[data-cd] .cd-prog{position:absolute;left:6px;right:6px;bottom:6px;z-index:2}
/* Reading a CV: the same bar, along the bottom of the drop box it was dropped on. */
.cv{position:relative}
.cv[data-cd] .cd-prog{position:absolute;left:10px;right:10px;bottom:8px;z-index:2}

/* Focus needs no second marker — the 3px ink outline above is the answer. The
   real gap was focus landing flush against the edge of the screen, and on a
   phone job page under the fixed Apply bar. Not motion (design review, 21 Oct). */
:focus-visible{scroll-margin-block:20px 24px}
@media (max-width:860px){body.hassticky :focus-visible{scroll-margin-block:20px 86px}}

/* ----------------------------------------------------------- 7 THE FULL STOP */
/* THE SIGNATURE: the element that stays put and carries motion across the site.
   It arrives on load, it is the anchor of every page transition, and it is the
   loader while something is genuinely slow. It never loops on a resting page.

   THE TRAP, and it fails silently: the wordmark is rendered TWICE per page —
   header a.logo and footer span.logo (lib/render.js). Two rendered elements with
   one view-transition-name make the ready promise reject and the whole
   transition is skipped, with no console message. So ONLY the header's stop is
   named; tools/motion.test.mjs fails if a second one appears.
   The editor is a separate document with its own wordmark (.bar .cd-logo), so it
   gets the arrival and the loader but no name: nothing navigates there. */
/* inline-block is what makes the stop transformable at all - an inline box cannot
   be moved. It costs the Y-to-period kern pair, because the stop is no longer in
   the same inline text run as the word: MEASURED on the preview, the stop sat
   3.00px further right at the header's 30px and 2.40px at the phone's 24px, which
   is 0.1em in both cases, so the kern is proportional and so is the correction.
   Nothing else moved (nav x, header height and main y all delta 0), so this is
   the wordmark's own spacing, not a layout shift - and tools/motion.test.mjs now
   measures the wordmark's width so it cannot drift again. */
.top .logo i,.bar .cd-logo i{display:inline-block;margin-left:-.1em}
.top .logo i{view-transition-name:cd-stop}
::view-transition-group(cd-stop){animation-duration:var(--t-view)}

/* It arrives: one small, fast move, once. Suppressed when the browser is already
   carrying it across a navigation (html.cd-vt, set by the shell's own script
   before the first frame) — the stop cannot both travel and arrive. */
/* Owner, 21 Oct 2026: the quarter-second fade was "super fast, not cool". The stop now LANDS like a ball on court: a beat after the
   word, it drops in, squashes on impact, bounces once and settles. Still once per page, never a loop on a resting page. */
@media (prefers-reduced-motion:no-preference){
  .top .logo i,.bar .cd-logo i{transform-origin:50% 100%;animation:cd-stop-in var(--t-land) var(--cd-ease) var(--t-land-wait) both}
}
@keyframes cd-stop-in{
  0%  {opacity:0;transform:translateY(-.9em) scale(.55)}
  38% {opacity:1;transform:translateY(0) scale(1.18,.78)}
  56% {transform:translateY(-.22em) scale(.94,1.08)}
  74% {transform:translateY(0) scale(1.06,.94)}
  88% {transform:translateY(-.04em) scale(.99,1.01)}
  100%{opacity:1;transform:none}
}
html.cd-vt .top .logo i{animation:none}

/* It is the loader: data-cd-wait on <html> for the length of a real wait, and
   nothing else. There is no other page-level loader on this site — our pages are
   server-rendered, and a loader where there is no wait reads as slower. */
html[data-cd-wait] .top .logo i,html[data-cd-wait] .bar .cd-logo i{animation:cd-stop-wait var(--t-loop) var(--ease-move) infinite alternate}
@keyframes cd-stop-wait{from{opacity:1;transform:translateY(0)}to{opacity:.3;transform:translateY(-5px)}}

/* ------------------------------------------------------- 8 PAGE TRANSITIONS */
/* A classic multi-page site, so the browser does the work. A browser without the
   feature drops the at-rule and navigates exactly as it does today: no polyfill,
   no branch, nothing hidden. */
@media (prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
}
::view-transition-group(*){animation-duration:var(--t-view);animation-timing-function:var(--cd-ease)}
::view-transition-old(root),::view-transition-new(root){animation-duration:var(--t-view);animation-timing-function:var(--cd-ease)}

/* Board -> job: the clicked card's title and the club's mark are the only two
   things that travel. The names go on the clicked card ONLY, at click time
   (shell script, cdName) — a view-transition-name must be unique per document. */
.cd-vt-title{view-transition-name:cd-title}
.cd-vt-mark{view-transition-name:cd-mark}
::view-transition-group(cd-title),::view-transition-group(cd-mark){animation-duration:var(--t-view)}

/* The count rolls instead of blinking: a departure board. */
.cd-vt-count{view-transition-name:cd-count}
::view-transition-image-pair(cd-count){overflow:clip}
::view-transition-old(cd-count){animation:cd-roll-out var(--t-state) var(--ease-in) both}
::view-transition-new(cd-count){animation:cd-roll-in var(--t-enter) var(--cd-ease) both}
@keyframes cd-roll-out{to{transform:translateY(-80%);opacity:0}}
@keyframes cd-roll-in{from{transform:translateY(80%);opacity:0}}

/* Naming the top bar is what stops the whole page flashing on a filter change. */
.cd-vt-top{view-transition-name:cd-top}
.cd-vt-list{view-transition-name:cd-list}
::view-transition-old(cd-list),::view-transition-new(cd-list){animation-duration:var(--t-state)}

/* TYPES: a filter change must not read like going somewhere — the list settles.
   Types are NOT carried across a navigation, so the shell sets them on both
   documents, every time. */
:root:active-view-transition-type(settle) ::view-transition-group(root),
:root:active-view-transition-type(settle) ::view-transition-old(root),
:root:active-view-transition-type(settle) ::view-transition-new(root),
:root:active-view-transition-type(settle) ::view-transition-group(cd-count){animation-duration:var(--t-state)}

/* --------------------------------------------------------- 9 REDUCED MOTION */
/* One block. Movement goes, information stays, and nothing blinks — a hard blink
   is worse than the movement it replaces. Where we were waiting, the stop
   breathes in opacity only and the WORD beside it carries the message. That is
   why every pending state in this system has a word. */
@media (prefers-reduced-motion:reduce){
  .cd-load__dot,.cd-load__trail,.cd-bounce,.cd-sk::after,.cd-sk-row,.cd-in{animation:none}
  .cd-load__trail{transform:scaleX(1);opacity:.3}
  .cd-load__dot{transform:none;animation:cd-dim var(--t-dim) ease-in-out infinite}
  .cd-bounce,.cd-dot--pulse{animation:cd-dim var(--t-dim) ease-in-out infinite}
  /* NOT a full bar: a full bar means finished. It falls back to the stop. */
  .cd-prog--wait .cd-prog__fill{animation:cd-dim var(--t-dim) ease-in-out infinite;
    clip-path:inset(0 calc(100% - var(--dot)) 0 0 round var(--bar-r))}
  .cd-prog__fill{transition-duration:0s}
  .cd-steps .d::before,.cd-steps .r::after,.cd-new::after{transition:none}
  .cd-mark,.done .ok{animation:cd-fade var(--t-state) linear both;transform:none}
  .cd-mark::after,.done .ok::after{display:none}
  .cd-mark--tick svg{animation:none;clip-path:none}
  .cd-mark--bad,.cd-shake{animation:cd-fade var(--t-state) linear both;transform:none}
  .cd-stack > *{transition:opacity var(--t-state) linear,visibility 0s linear var(--t-state);transform:none}
  .cd-stack[data-cd] > *{transform:none}
  .cd-toast{transition:opacity var(--t-state) linear;transform:translate(-50%,0)}
  .cd-toast[data-open]{transform:translate(-50%,0)}
  .cd-rise{animation:cd-rise-rm var(--t-rise) steps(1,end) both}
  .cd-sw__t::after,.cd-press{transition:none}
  .cd-press:active,.cd-sw:active .cd-sw__t::after{transform:none}
  .urlbar .live-pill .pulse{animation:cd-dim var(--t-dim) ease-in-out infinite}
  .top .logo i,.bar .cd-logo i{animation:none}
  html[data-cd-wait] .top .logo i,html[data-cd-wait] .bar .cd-logo i{animation:cd-dim var(--t-dim) ease-in-out infinite}
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
}
@keyframes cd-dim{0%,100%{opacity:1}50%{opacity:.4}}
@keyframes cd-rise-rm{0%,96%{opacity:1;transform:translate(-50%,0)}100%{opacity:0;transform:translate(-50%,0)}}
