/* ============================================================
   WONK v0.3.0 · components · requires wonk-tokens.css
   Class prefix: .wonk-
   Fonts: load Space Grotesk (400,500,700) + IBM Plex Mono (400,500,600,700)
   ============================================================ */

/* ---- base ---- */
.wonk,
.wonk body {
  background: var(--ak-ground);
  color: var(--ak-ink);
  font-family: var(--ak-font-sans);
  font-size: var(--ak-text-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wonk *, .wonk *::before, .wonk *::after { box-sizing: border-box; }

.wonk :focus-visible {
  outline: 2px solid var(--ak-a1-text);
  outline-offset: 2px;
  border-radius: var(--ak-radius);
}
.wonk ::selection { background: var(--ak-wash); color: var(--ak-ink); }

/* ---- typography ---- */
/* headings: mixed-case grotesk. uppercase-wide is reserved for
   page titles (.wonk-title) and labels (.wonk-label).
   element defaults (h1-h4, p, small, a) sit behind :where(.wonk), so
   they weigh as a bare element (0,0,1): any class wins, a component's
   or a utility's (Tailwind .text-sm, .m-0), and an app element rule
   loaded after wonk.css wins by order. */
:where(.wonk) h1, :where(.wonk) h2, :where(.wonk) h3, :where(.wonk) h4 {
  font-family: var(--ak-font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--ak-s3);
}
:where(.wonk) h1 { font-size: var(--ak-text-3xl); }
:where(.wonk) h2 { font-size: var(--ak-text-2xl); }
:where(.wonk) h3 { font-size: var(--ak-text-xl); }
:where(.wonk) h4 { font-size: var(--ak-text-lg); }
:where(.wonk) p  { margin: 0 0 var(--ak-s4); color: var(--ak-ink-2); }
/* links: the hover underline is for plain links only, never a WONK
   component (a.wonk-btn, a.wonk-navlink, ...): an a.wonk-btn keeps its
   full border. */
:where(.wonk) a { color: var(--ak-a1-text); text-decoration: none; }
:where(.wonk) a:where(:not([class*="wonk-"])) { border-bottom: 1px solid transparent; transition: border-color var(--ak-t-fast) var(--ak-ease); }
:where(.wonk) a:where(:not([class*="wonk-"])):hover { border-bottom-color: var(--ak-a1-text); }
:where(.wonk) small { font-size: var(--ak-text-sm); color: var(--ak-ink-3); }

/* h1.wonk-title keeps the title tracking and size over the h1 default */
.wonk .wonk-title {
  font-family: var(--ak-font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ak-track-title);
  font-size: var(--ak-text-2xl);
}
.wonk-label {
  font-family: var(--ak-font-mono);
  font-size: var(--ak-text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ak-track-label);
  color: var(--ak-ink-2);
}
.wonk-num {
  font-family: var(--ak-font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wonk code, .wonk-mono { font-family: var(--ak-font-mono); font-size: 0.9em; }
.wonk kbd {
  font-family: var(--ak-font-mono);
  font-size: var(--ak-text-xs);
  border: var(--ak-hairline-w) solid var(--ak-hairline);
  border-bottom-width: 2px;
  border-radius: var(--ak-radius);
  padding: 0.1rem 0.4rem;
  background: var(--ak-surface);
}

/* ---- square-wave divider (the WONK divider) ---- */
.wonk-divider {
  height: 24px;
  border: none;
  margin: var(--ak-s8) 0;
  background-color: var(--ak-hairline-strong);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='24'%3E%3Cpath d='M0,18 H20 V6 H44 V18 H76 V6 H88 V18 H132 V6 H164 V18 H192' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x center / 192px 24px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='24'%3E%3Cpath d='M0,18 H20 V6 H44 V18 H76 V6 H88 V18 H132 V6 H164 V18 H192' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x center / 192px 24px;
}
.wonk-divider--accent { background-color: var(--ak-a1-text); }
/* live signal: the wave scrolls. Only on live or loading states (a stream,
   a running query), like every other WONK motion. Reduced motion stops it. */
.wonk-divider--live {
  background-color: var(--ak-a1-text);
  -webkit-mask-position: 0 50%;
          mask-position: 0 50%;
  animation: wonk-wave-scroll 2.4s linear infinite;
}
@keyframes wonk-wave-scroll {
  to { -webkit-mask-position: -192px 50%; mask-position: -192px 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .wonk-divider--live { animation: none; }
}

/* plain hairline when the wave is too loud */
.wonk-rule { border: none; border-top: var(--ak-hairline-w) solid var(--ak-hairline); margin: var(--ak-s6) 0; }

/* ---- buttons ---- */
.wonk-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--ak-s2);
  font-family: var(--ak-font-mono);
  font-size: var(--ak-text-xs);
  letter-spacing: var(--ak-track-btn);
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  border-radius: var(--ak-radius);
  border: var(--ak-hairline-w) solid var(--ak-hairline-strong);
  background: transparent;
  color: var(--ak-ink);
  cursor: pointer;
  transition: background var(--ak-t-fast) var(--ak-ease),
              border-color var(--ak-t-fast) var(--ak-ease),
              transform var(--ak-t-fast) var(--ak-ease);
}
.wonk-btn:not([disabled]):hover { background: var(--ak-hover); transform: translateY(-1px); }
.wonk-btn:not([disabled]):active { background: var(--ak-active); transform: translateY(1px); }

.wonk-btn--primary {
  background: var(--ak-a1);
  border-color: var(--ak-a1);
  color: var(--ak-a1-ink);
  font-weight: 700;
}
.wonk-btn--primary:not([disabled]):hover { background: var(--ak-a1); filter: brightness(1.1); }
.wonk-btn--danger { border-color: var(--ak-err); color: var(--ak-err); }
.wonk-btn--danger:hover { background: color-mix(in srgb, var(--ak-err) 12%, transparent); }
.wonk-btn--quiet { border-color: transparent; color: var(--ak-ink-2); }
.wonk-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ---- forms ---- */
.wonk-field { display: flex; flex-direction: column; gap: var(--ak-s2); margin-bottom: var(--ak-s4); }
.wonk-input, .wonk-select, .wonk-textarea {
  font-family: var(--ak-font-sans);
  font-size: var(--ak-text-md);
  color: var(--ak-ink);
  background: var(--ak-surface);
  border: var(--ak-hairline-w) solid var(--ak-hairline);
  border-radius: var(--ak-radius);
  padding: 0.55rem 0.75rem;
  transition: border-color var(--ak-t-fast) var(--ak-ease);
}
.wonk-input:hover, .wonk-select:hover, .wonk-textarea:hover { border-color: var(--ak-hairline-strong); }
.wonk-input:focus, .wonk-select:focus, .wonk-textarea:focus {
  outline: none;
  border-color: var(--ak-a1-text);
}
/* select: WONK's own caret, inset from the right edge (the native arrow
   sits flush against the border). Two token-colored triangles form it. */
.wonk-select:not([multiple]):not([size]) {
  -webkit-appearance: none;
          appearance: none;
  padding-right: 2.5rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ak-ink-2) 50%),
    linear-gradient(135deg, var(--ak-ink-2) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem - 5px) 50%, calc(100% - 1.25rem) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
/* a 1px border color shift alone is not a focus indicator: add the ring */
.wonk-input:focus-visible, .wonk-select:focus-visible, .wonk-textarea:focus-visible {
  outline: 2px solid var(--ak-a1-text);
  outline-offset: 2px;
}
.wonk-input::placeholder, .wonk-textarea::placeholder { color: var(--ak-ink-3); }
.wonk-input--error { border-color: var(--ak-err); }
.wonk-help { font-size: var(--ak-text-sm); color: var(--ak-ink-3); }
.wonk-help--error { color: var(--ak-err); }

/* checkbox / radio */
.wonk-check {
  display: inline-flex;
  align-items: center;
  gap: var(--ak-s2);
  font-size: var(--ak-text-sm);
  color: var(--ak-ink-2);
  cursor: pointer;
}
.wonk-check input {
  appearance: none;
  width: 18px; height: 18px;
  margin: 0;
  border: var(--ak-hairline-w) solid var(--ak-hairline-strong);
  border-radius: var(--ak-radius);
  background: var(--ak-surface);
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: background var(--ak-t-fast) var(--ak-ease), border-color var(--ak-t-fast) var(--ak-ease);
}
.wonk-check input:checked { background: var(--ak-a1); border-color: var(--ak-a1); }
.wonk-check input[type="checkbox"]:checked::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--ak-a1-ink);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 82% 2%, 43% 60%);
}
.wonk-check input[type="radio"] { border-radius: var(--ak-radius-full); }
.wonk-check input[type="radio"]:checked::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: var(--ak-radius-full);
  background: var(--ak-a1-ink);
}

/* progress */
.wonk-progress {
  height: 6px;
  border-radius: var(--ak-radius-full);
  background: var(--ak-active);
  overflow: hidden;
}
.wonk-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ak-a1);
  transition: width var(--ak-t-slow) var(--ak-ease);
}

/* toggle */
.wonk-toggle { position: relative; display: inline-block; width: 42px; height: 24px; }
.wonk-toggle input { opacity: 0; width: 0; height: 0; }
.wonk-toggle .track {
  position: absolute; inset: 0;
  border: var(--ak-hairline-w) solid var(--ak-hairline-strong);
  border-radius: var(--ak-radius-full);
  background: var(--ak-surface);
  transition: background var(--ak-t-med) var(--ak-ease);
  cursor: pointer;
}
.wonk-toggle .track::before {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: var(--ak-radius-full);
  background: var(--ak-ink-2);
  transition: transform var(--ak-t-med) var(--ak-ease), background var(--ak-t-med) var(--ak-ease);
}
.wonk-toggle input:checked + .track { background: var(--ak-wash); border-color: var(--ak-a1); }
.wonk-toggle input:checked + .track::before { transform: translateX(18px); background: var(--ak-a1); }
/* the real checkbox is invisible, so the track carries its focus ring */
.wonk-toggle input:focus-visible + .track { outline: 2px solid var(--ak-a1-text); outline-offset: 2px; }

/* ---- avatar ---- */
.wonk-avatar {
  width: 40px; height: 40px;
  border-radius: var(--ak-radius-full);
  border: var(--ak-hairline-w) solid var(--ak-hairline-strong);
  display: inline-grid; place-content: center;
  font-family: var(--ak-font-mono);
  font-weight: 700;
  font-size: var(--ak-text-sm);
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: var(--ak-a1-text);
  background: var(--ak-surface);
  flex: none;
}
.wonk-avatar--sm { width: 28px; height: 28px; font-size: var(--ak-text-xs); }

/* ---- breadcrumbs ---- */
.wonk-crumbs { display: flex; align-items: center; gap: var(--ak-s2); font-size: var(--ak-text-sm); }
.wonk-crumbs a { color: var(--ak-ink-3); border-bottom: none; }
.wonk-crumbs a:hover { color: var(--ak-a1-text); }
.wonk-crumbs .sep { color: var(--ak-hairline-strong); font-family: var(--ak-font-mono); }
.wonk-crumbs .here { color: var(--ak-ink); }

/* ---- pagination ---- */
.wonk-pages { display: inline-flex; gap: var(--ak-s1); }
.wonk-page {
  min-width: 32px; height: 32px; padding: 0 var(--ak-s2);
  display: inline-grid; place-content: center;
  font-family: var(--ak-font-mono);
  font-size: var(--ak-text-xs);
  border: var(--ak-hairline-w) solid var(--ak-hairline);
  border-radius: var(--ak-radius);
  background: transparent;
  color: var(--ak-ink-2);
  cursor: pointer;
  transition: background var(--ak-t-fast) var(--ak-ease), border-color var(--ak-t-fast) var(--ak-ease);
}
.wonk-page:not([disabled]):hover { background: var(--ak-hover); border-color: var(--ak-hairline-strong); }
.wonk-page[aria-current="page"] {
  background: var(--ak-a1);
  border-color: var(--ak-a1);
  color: var(--ak-a1-ink);
  font-weight: 700;
}
.wonk-page[disabled] { opacity: 0.4; cursor: default; }

/* ---- menu (details-based, no JS needed) ---- */
.wonk-menu { position: relative; display: inline-block; }
.wonk-menu > summary { list-style: none; }
.wonk-menu > summary::-webkit-details-marker { display: none; }
/* click-away: when open, the summary grows an invisible full-screen layer */
.wonk-menu[open] > summary::before { content: ""; position: fixed; inset: 0; cursor: default; }
.wonk-menu .menu {
  position: absolute;
  top: calc(100% + 4px); left: 0; z-index: 50;
  min-width: 180px;
  display: flex; flex-direction: column;
  background: var(--ak-surface-2);
  border: var(--ak-hairline-w) solid var(--ak-hairline-strong);
  border-radius: var(--ak-radius);
  box-shadow: var(--ak-shadow);
  padding: var(--ak-s1);
  animation: wonk-pop var(--ak-t-fast) var(--ak-ease);
}
.wonk-menu .menu a,
.wonk-menu .menu button {
  font-family: var(--ak-font-sans);
  font-size: var(--ak-text-sm);
  text-align: left;
  color: var(--ak-ink-2);
  background: none; border: none;
  border-radius: var(--ak-radius);
  padding: var(--ak-s2) var(--ak-s3);
  cursor: pointer;
  text-decoration: none;
}
.wonk-menu .menu a:hover,
.wonk-menu .menu button:hover { background: var(--ak-wash); color: var(--ak-ink); }
.wonk-menu .menu .danger { color: var(--ak-err); }
.wonk-menu .menu .danger:hover { background: color-mix(in srgb, var(--ak-err) 12%, transparent); color: var(--ak-err); }
.wonk-menu .menu hr { border: none; border-top: var(--ak-hairline-w) solid var(--ak-hairline); margin: var(--ak-s1) 0; }
/* right-aligned panel: author-set, or added by wonk.js when a menu
   would run off the viewport's right edge */
.wonk-menu--end .menu { right: 0; left: auto; }

/* ---- alerts / callouts ---- */
.wonk-alert {
  display: flex; gap: var(--ak-s3); align-items: baseline;
  border: var(--ak-hairline-w) solid var(--ak-hairline);
  border-left: 3px solid var(--ak-info);
  border-radius: var(--ak-radius);
  background: var(--ak-surface);
  padding: var(--ak-s3) var(--ak-s4);
  font-size: var(--ak-text-sm);
  color: var(--ak-ink-2);
}
.wonk-alert strong { color: var(--ak-ink); }
.wonk-alert .ico { font-family: var(--ak-font-mono); font-weight: 700; color: var(--ak-info); flex: none; }
.wonk-alert--ok   { border-left-color: var(--ak-ok); }   .wonk-alert--ok .ico   { color: var(--ak-ok); }
.wonk-alert--warn { border-left-color: var(--ak-warn); } .wonk-alert--warn .ico { color: var(--ak-warn); }
.wonk-alert--err  { border-left-color: var(--ak-err); }  .wonk-alert--err .ico  { color: var(--ak-err); }

/* ---- accordion ---- */
/* two forms: a list (.wonk-acc > details) and a single details.wonk-acc.
   Both rotate the + and color the summary when open. */
.wonk-acc { border: var(--ak-hairline-w) solid var(--ak-hairline); border-radius: var(--ak-radius); }
.wonk-acc details + details { border-top: var(--ak-hairline-w) solid var(--ak-hairline); }
.wonk-acc summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--ak-s3) var(--ak-s4);
  font-weight: 500;
  color: var(--ak-ink-2);
  cursor: pointer;
  transition: color var(--ak-t-fast) var(--ak-ease), background var(--ak-t-fast) var(--ak-ease);
}
.wonk-acc summary::-webkit-details-marker { display: none; }
.wonk-acc summary:hover { background: var(--ak-hover); }
.wonk-acc summary::after {
  content: "+";
  font-family: var(--ak-font-mono);
  color: var(--ak-ink-3);
  transition: transform var(--ak-t-med) var(--ak-ease);
}
.wonk-acc details[open] > summary,
details.wonk-acc[open] > summary { color: var(--ak-a1-text); }
.wonk-acc details[open] > summary::after,
details.wonk-acc[open] > summary::after { transform: rotate(45deg); color: var(--ak-a1-text); }
.wonk-acc .body { padding: 0 var(--ak-s4) var(--ak-s4); font-size: var(--ak-text-sm); color: var(--ak-ink-2); }

/* ---- disclosure: headline first, detail behind a fold ----
   .wonk-fold       inline "How this works" unfold for prose
   .wonk-card--fold record card; the summary keeps the headline
   .wonk-row-toggle / .wonk-row-detail  expandable table rows (wonk.js)
   .wonk-more       "showing X of Y" list notice
   .wonk-fold-all   Unfold all / Fold all group (wonk.js)
   Every + is mono, ink-3, and rotates 45deg to a1-text when open. */
.wonk-fold > summary {
  list-style: none;
  display: inline-flex;
  align-items: baseline;
  gap: var(--ak-s2);
  font-family: var(--ak-font-sans);
  font-size: var(--ak-text-sm);
  color: var(--ak-ink-2);
  cursor: pointer;
  border-radius: var(--ak-radius);
  transition: color var(--ak-t-fast) var(--ak-ease);
}
.wonk-fold > summary::-webkit-details-marker { display: none; }
.wonk-fold > summary:hover { color: var(--ak-ink); }
.wonk-fold > summary::before,
.wonk-row-toggle::before {
  content: "+";
  display: inline-block;
  font-family: var(--ak-font-mono);
  color: var(--ak-ink-3);
  transition: transform var(--ak-t-med) var(--ak-ease), color var(--ak-t-fast) var(--ak-ease);
}
.wonk-fold[open] > summary::before,
.wonk-row-toggle[aria-expanded="true"]::before { transform: rotate(45deg); color: var(--ak-a1-text); }
.wonk-fold > .body {
  max-width: 65ch;
  margin-top: var(--ak-s2);
  padding-left: var(--ak-s3);
  border-left: var(--ak-hairline-w) solid var(--ak-hairline);
  font-size: var(--ak-text-sm);
  color: var(--ak-ink-2);
}
.wonk-fold > .body > :last-child { margin-bottom: 0; }

.wonk-card.wonk-card--fold { padding: 0; } /* beats .wonk-card, defined later */
.wonk-card--fold > summary {
  position: relative;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--ak-s1) var(--ak-s3);
  /* the right padding keeps the facts clear of the + */
  padding: var(--ak-s4) calc(var(--ak-s6) + 1.5rem) var(--ak-s4) var(--ak-s6);
  cursor: pointer;
  border-radius: var(--ak-radius);
  transition: background var(--ak-t-fast) var(--ak-ease);
}
.wonk-card--fold > summary::-webkit-details-marker { display: none; }
.wonk-card--fold > summary:hover { background: var(--ak-hover); }
.wonk-card--fold > summary .headline { font-family: var(--ak-font-sans); font-weight: 500; color: var(--ak-ink); }
.wonk-card--fold > summary .facts { font-family: var(--ak-font-mono); font-size: var(--ak-text-xs); color: var(--ak-ink-2); }
/* pinned top right: on a wrapped (phone) summary the + stays on the
   headline's first line, never alone on a middle line */
.wonk-card--fold > summary::after {
  content: "+";
  position: absolute;
  top: var(--ak-s4);
  right: var(--ak-s6);
  font-family: var(--ak-font-mono);
  color: var(--ak-ink-3);
  transition: transform var(--ak-t-med) var(--ak-ease), color var(--ak-t-fast) var(--ak-ease);
}
.wonk-card--fold[open] > summary::after { transform: rotate(45deg); color: var(--ak-a1-text); }
.wonk-card--fold > .body {
  padding: var(--ak-s4) var(--ak-s6) var(--ak-s6);
  border-top: var(--ak-hairline-w) solid var(--ak-hairline);
  font-size: var(--ak-text-sm);
  color: var(--ak-ink-2);
}
.wonk-card--fold > .body > :last-child { margin-bottom: 0; }

/* a button that reads as cell text */
.wonk-row-toggle {
  display: inline-flex;
  align-items: baseline;
  gap: var(--ak-s2);
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: none;
  border-radius: var(--ak-radius);
  cursor: pointer;
}
.wonk-row-toggle:hover { color: var(--ak-ink); }
.wonk-row-toggle:focus-visible { outline: 2px solid var(--ak-a1-text); outline-offset: 2px; }
.wonk-row-detail > td,
.wonk-table tr.wonk-row-detail:hover > td {
  background: var(--ak-surface-2);
  padding: var(--ak-s3) var(--ak-s4);
}

.wonk-more { font-family: var(--ak-font-mono); font-size: var(--ak-text-xs); color: var(--ak-ink-2); }
.wonk-more .wonk-btn { margin-left: var(--ak-s2); }

.wonk-fold-all { display: inline-flex; flex-wrap: wrap; gap: var(--ak-s1); }

/* ---- slider ---- */
.wonk-range { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; }
.wonk-range::-webkit-slider-runnable-track { height: 4px; border-radius: var(--ak-radius-full); background: var(--ak-active); }
.wonk-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px; margin-top: -6px;
  border-radius: var(--ak-radius-full);
  background: var(--ak-a1);
  border: 2px solid var(--ak-ground);
  transition: transform var(--ak-t-fast) var(--ak-ease);
}
.wonk-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.wonk-range::-moz-range-track { height: 4px; border-radius: var(--ak-radius-full); background: var(--ak-active); }
.wonk-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: var(--ak-radius-full); background: var(--ak-a1); border: 2px solid var(--ak-ground); }

/* ---- key-value list ---- */
.wonk-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--ak-s2) var(--ak-s6); margin: 0; }
.wonk-kv dt {
  font-family: var(--ak-font-mono);
  font-size: var(--ak-text-xs);
  letter-spacing: var(--ak-track-label);
  text-transform: uppercase;
  color: var(--ak-ink-3);
  padding-top: 2px;
}
.wonk-kv dd { margin: 0; font-size: var(--ak-text-sm); color: var(--ak-ink-2); }
/* a phone stacks each label over its value: a long label beside its
   value would push the value off screen */
@media (max-width: 640px) {
  .wonk-kv { grid-template-columns: minmax(0, 1fr); row-gap: var(--ak-s1); }
  .wonk-kv dd:not(:last-child) { margin-bottom: var(--ak-s3); }
}

/* ---- cards & stats ---- */
.wonk-card {
  background: var(--ak-surface);
  border: var(--ak-hairline-w) solid var(--ak-hairline);
  border-radius: var(--ak-radius);
  padding: var(--ak-s6);
}
.wonk-card--flat { background: transparent; }
.wonk-card--accent { border-top: 3px solid var(--ak-a1); }

.wonk-stat { display: flex; flex-direction: column; gap: var(--ak-s1); }
.wonk-stat .wonk-num { font-size: var(--ak-text-2xl); line-height: 1.1; }
/* legacy aliases: .delta-up / .delta-down color by direction. new code
   uses the sentiment classes below (wonk.fmt.delta returns them). */
.wonk-stat .delta-up { color: var(--ak-ok); }
.wonk-stat .delta-down { color: var(--ak-err); }

/* deltas: the arrow glyph carries the direction, the color carries the
   sentiment (a rise in errors is bad), so color is never the only
   signal. Usable on any element; .wonk .x also beats a component's own
   text color, such as .wonk-table td. */
.delta--good, .wonk .delta--good { color: var(--ak-ok); }
.delta--bad, .wonk .delta--bad { color: var(--ak-err); }
.delta--neutral, .wonk .delta--neutral { color: var(--ak-ink-2); }

/* drillable values: a stat or a number that opens its records.
   button.wonk-stat / .wonk-stat--drill: the whole tile is the button.
   .wonk-value-link: an inline number or record id, original case. */
button.wonk-stat,
.wonk-stat--drill {
  appearance: none;
  width: 100%;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  border-radius: var(--ak-radius);
  cursor: pointer;
}
/* no chrome, except on a tile that is also a .wonk-card: it keeps the
   card (and its --flat / --accent modifiers) */
button.wonk-stat:not(.wonk-card),
.wonk-stat--drill:not(.wonk-card) {
  padding: 0;
  background: transparent;
  border: 0;
}
button.wonk-stat .wonk-num,
.wonk-stat--drill .wonk-num {
  text-decoration: underline dotted;
  text-decoration-color: var(--ak-ink-3);
  text-underline-offset: 0.2em;
  transition: color var(--ak-t-fast) var(--ak-ease);
}
button.wonk-stat:hover .wonk-num,
.wonk-stat--drill:hover .wonk-num { color: var(--ak-a1-text); }
button.wonk-stat:focus-visible,
.wonk-stat--drill:focus-visible { outline: 2px solid var(--ak-a1-text); outline-offset: 4px; }

.wonk-value-link {
  display: inline;
  margin: 0;
  padding: 0;
  font-family: var(--ak-font-mono);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  font-variant-numeric: tabular-nums;
  text-align: inherit;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ak-a1-text);
  text-decoration: underline dotted;
  text-underline-offset: 0.2em;
  background: none;
  border: 0;
  border-radius: var(--ak-radius);
  cursor: pointer;
}
.wonk a.wonk-value-link,
.wonk a.wonk-value-link:hover { border-bottom: 0; } /* .wonk a draws its own underline */
.wonk-value-link:hover { text-decoration-style: solid; }
.wonk-value-link:focus-visible { outline: 2px solid var(--ak-a1-text); outline-offset: 2px; }

/* connective vertical hairline between stacked blocks (aktunes idiom) */
.wonk-stack > * + * { position: relative; margin-top: var(--ak-s12); }
.wonk-stack > * + *::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--ak-s12));
  left: 50%;
  width: var(--ak-hairline-w);
  height: var(--ak-s12);
  background: var(--ak-hairline);
}

/* ---- badges ---- */
.wonk-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--ak-s1);
  font-family: var(--ak-font-mono);
  font-size: var(--ak-text-xs);
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--ak-radius);
  border: var(--ak-hairline-w) solid var(--ak-hairline-strong);
  color: var(--ak-ink-2);
}
.wonk-badge--ok   { border-color: var(--ak-ok);   color: var(--ak-ok); }
.wonk-badge--warn { border-color: var(--ak-warn); color: var(--ak-warn); }
.wonk-badge--err  { border-color: var(--ak-err);  color: var(--ak-err); }
.wonk-badge--info { border-color: var(--ak-info); color: var(--ak-info); }
.wonk-badge--accent { border-color: var(--ak-a1-text); color: var(--ak-a1-text); }

/* ---- table ---- */
.wonk-table { width: 100%; border-collapse: collapse; font-size: var(--ak-text-sm); }
.wonk-table th {
  font-family: var(--ak-font-mono);
  font-size: var(--ak-text-xs);
  font-weight: 400;
  letter-spacing: var(--ak-track-label);
  text-transform: uppercase;
  color: var(--ak-ink-3);
  text-align: left;
  padding: var(--ak-s2) var(--ak-s3);
  border-bottom: var(--ak-hairline-w) solid var(--ak-hairline-strong);
}
.wonk-table td {
  padding: var(--ak-s3);
  border-bottom: var(--ak-hairline-w) solid var(--ak-hairline);
  color: var(--ak-ink-2);
}
.wonk-table tr:hover td { background: var(--ak-hover); }
/* a header with a hint reads as a term: dotted underline on its label
   (the sort button's text in a sortable header, not the arrow) */
.wonk-table th:is([data-tip], [data-hint], [data-term]):not(:has(.wonk-sort)),
.wonk-table th:is([data-tip], [data-hint], [data-term]) .wonk-sort {
  text-decoration: underline dotted;
  text-decoration-color: var(--ak-ink-3);
  text-underline-offset: 3px;
}
.wonk-table th:is([data-tip], [data-hint], [data-term]) .wonk-sort-arrow { display: inline-block; }
.wonk-table td.num, .wonk-table th.num { text-align: right; font-family: var(--ak-font-mono); font-variant-numeric: tabular-nums; }

/* ---- tabs ---- */
.wonk-tabs { display: flex; gap: var(--ak-s2); border-bottom: var(--ak-hairline-w) solid var(--ak-hairline); }
.wonk-tab {
  font-family: var(--ak-font-sans);
  font-size: var(--ak-text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ak-ink-3);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: var(--ak-s2) var(--ak-s3);
  margin-bottom: -1px;
  cursor: pointer;
  transition: color var(--ak-t-fast) var(--ak-ease), border-color var(--ak-t-fast) var(--ak-ease);
}
.wonk-tab:hover { color: var(--ak-ink); }
.wonk-tab[aria-selected="true"] { color: var(--ak-a1-text); border-bottom-color: var(--ak-a1); }

/* ---- modal ---- */
.wonk-modal[open] {
  background: var(--ak-surface);
  color: var(--ak-ink);
  border: var(--ak-hairline-w) solid var(--ak-hairline-strong);
  border-radius: var(--ak-radius);
  padding: var(--ak-s8);
  max-width: min(90vw, 32rem);
  box-shadow: var(--ak-shadow);
  animation: wonk-pop var(--ak-t-med) var(--ak-ease);
}
.wonk-modal::backdrop { background: var(--ak-overlay); backdrop-filter: blur(3px); }
@keyframes wonk-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* ---- toast ---- */
.wonk-toasts {
  position: fixed;
  bottom: var(--ak-s6);
  right: var(--ak-s6);
  display: flex;
  flex-direction: column;
  gap: var(--ak-s2);
  z-index: 100;
}
.wonk-toast {
  display: flex;
  align-items: center;
  gap: var(--ak-s3);
  background: var(--ak-surface);
  border: var(--ak-hairline-w) solid var(--ak-hairline-strong);
  border-left: 3px solid var(--ak-a1);
  border-radius: var(--ak-radius);
  padding: var(--ak-s3) var(--ak-s4);
  font-size: var(--ak-text-sm);
  box-shadow: var(--ak-shadow);
  animation: wonk-slide-in var(--ak-t-med) var(--ak-ease);
}
.wonk-toast--ok   { border-left-color: var(--ak-ok); }
.wonk-toast--warn { border-left-color: var(--ak-warn); }
.wonk-toast--err  { border-left-color: var(--ak-err); }
.wonk-toast-x {
  margin-left: auto;
  padding: 0 var(--ak-s1);
  font-family: var(--ak-font-mono);
  font-size: var(--ak-text-md);
  line-height: 1;
  color: var(--ak-ink-3);
  background: none;
  border: none;
  border-radius: var(--ak-radius);
  cursor: pointer;
  transition: color var(--ak-t-fast) var(--ak-ease);
}
.wonk-toast-x::before { content: "\00d7"; } /* the x lives in CSS so toast.textContent stays the message */
.wonk-toast-x:hover { color: var(--ak-ink); }
@keyframes wonk-slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: none; }
}

/* ---- hints: data-tip, .wonk-term, .wonk-hint-btn ----
   wonk.js owns hints: one box (.wonk-hint) for hover, focus, touch, and
   screen readers, on any [data-tip] (no class needed). Inverted look:
   ink box, ground text, mono. */
.wonk-hint {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: max-content;
  max-width: min(20rem, calc(100vw - 16px));
  background: var(--ak-ink);
  color: var(--ak-ground);
  font-family: var(--ak-font-mono);
  font-size: var(--ak-text-xs);
  line-height: 1.5;
  letter-spacing: 0.05rem;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
  padding: 0.3rem 0.55rem;
  border-radius: var(--ak-radius);
  pointer-events: auto; /* hoverable: the pointer can move onto the box */
  transition: opacity var(--ak-t-fast) var(--ak-ease);
}
@starting-style { .wonk-hint { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wonk-hint { transition: none; } }

/* a term with a definition: dotted underline, keyboard reachable */
.wonk-term {
  text-decoration: underline dotted;
  text-decoration-color: var(--ak-ink-3);
  text-underline-offset: 3px;
  cursor: help;
}

/* the standard "?" help button: a real button, outside the label */
.wonk-hint-btn {
  display: inline-grid;
  place-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  vertical-align: middle;
  font-family: var(--ak-font-mono);
  font-size: var(--ak-text-xs);
  line-height: 1;
  color: var(--ak-ink-2);
  background: transparent;
  border: var(--ak-hairline-w) solid var(--ak-hairline-strong);
  border-radius: var(--ak-radius);
  cursor: help;
  transition: color var(--ak-t-fast) var(--ak-ease),
              background var(--ak-t-fast) var(--ak-ease),
              border-color var(--ak-t-fast) var(--ak-ease);
}
.wonk-hint-btn:hover,
.wonk-hint-btn:focus-visible { color: var(--ak-ink); background: var(--ak-hover); border-color: var(--ak-a1-text); }

.wonk-hint-btn:focus-visible,
.wonk-term:focus-visible,
[data-tip][tabindex]:focus-visible,
[data-hint][tabindex]:focus-visible {
  outline: 2px solid var(--ak-a1-text);
  outline-offset: 2px;
  border-radius: var(--ak-radius);
}

/* no-JS fallback: a CSS-only tip for .wonk-tip[data-tip] on hover and
   keyboard focus. wonk.js adds .wonk-js to the root and owns hints. */
.wonk-tip { position: relative; }
.wonk-tip[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ak-ink);
  color: var(--ak-ground);
  font-family: var(--ak-font-mono);
  font-size: var(--ak-text-xs);
  letter-spacing: 0.05rem;
  padding: 0.3rem 0.55rem;
  border-radius: var(--ak-radius);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ak-t-fast) var(--ak-ease), transform var(--ak-t-fast) var(--ak-ease);
}
.wonk-tip:hover::after, .wonk-tip:focus-visible::after { opacity: 1; transform: translateX(-50%); }
.wonk-js .wonk-tip::after { content: none; }

/* ---- chart tooltips (Observable Plot's tip mark) ----
   Plot draws a white box with currentColor text; both are wrong on our
   grounds. Invert it to match .wonk-tip: ink box, ground text. */
.wonk g[aria-label="tip"] path {
  fill: var(--ak-ink);
  stroke: var(--ak-hairline-strong);
  stroke-width: 1;
}
.wonk g[aria-label="tip"] text,
.wonk g[aria-label="tip"] tspan {
  fill: var(--ak-ground);
}

/* ---- code block ---- */
.wonk-pre {
  font-family: var(--ak-font-mono);
  font-size: var(--ak-text-sm);
  background: var(--ak-surface);
  border: var(--ak-hairline-w) solid var(--ak-hairline);
  border-radius: var(--ak-radius);
  padding: var(--ak-s4);
  overflow-x: auto;
  color: var(--ak-ink-2);
}
.wonk-pre .tok-key { color: var(--ak-a1-text); }
.wonk-pre .tok-str { color: var(--ak-ok); }
.wonk-pre .tok-com { color: var(--ak-ink-3); font-style: italic; }

/* ---- log block ---- */
.wonk-log {
  font-family: var(--ak-font-mono);
  font-size: var(--ak-text-xs);
  line-height: 1.8;
  background: var(--ak-surface);
  border: var(--ak-hairline-w) solid var(--ak-hairline);
  border-radius: var(--ak-radius);
  padding: var(--ak-s4);
  overflow-x: auto;
  white-space: nowrap;
}
.wonk-log .ts { color: var(--ak-ink-3); }
.wonk-log .msg { color: var(--ak-ink-2); }
.wonk-log .lv-ok { color: var(--ak-ok); }
.wonk-log .lv-warn { color: var(--ak-warn); }
.wonk-log .lv-err { color: var(--ak-err); font-weight: 700; }

/* ---- app shell ---- */
.wonk-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.wonk-shell > * { min-width: 0; } /* a wide table scrolls in its region, never widens the page */
.wonk-side {
  border-right: var(--ak-hairline-w) solid var(--ak-hairline);
  padding: var(--ak-s6) var(--ak-s4);
  display: flex;
  flex-direction: column;
  gap: var(--ak-s2);
}
.wonk-side .brand {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ak-track-title);
  margin-bottom: var(--ak-s6);
}
.wonk-navlink {
  font-family: var(--ak-font-sans);
  font-size: var(--ak-text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ak-ink-3);
  padding: var(--ak-s2) var(--ak-s3);
  border-radius: var(--ak-radius);
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: color var(--ak-t-fast) var(--ak-ease), background var(--ak-t-fast) var(--ak-ease);
}
.wonk-navlink:hover { color: var(--ak-ink); background: var(--ak-hover); }
.wonk-navlink.active { color: var(--ak-a1-text); border-left-color: var(--ak-a1); background: var(--ak-wash); }
.wonk-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ak-s4);
  padding: var(--ak-s3) var(--ak-s6);
  border-bottom: var(--ak-hairline-w) solid var(--ak-hairline);
}

/* responsive shell: below 800px the shell is one column and .wonk-side
   is an off-canvas drawer. A button.wonk-drawer-btn[data-wonk-drawer]
   in the topbar (hidden above 800px) opens it; wonk.js wires it, and
   keeps the closed drawer inert. */
.wonk-drawer-btn { display: none; }
@media (max-width: 800px) {
  .wonk-shell { grid-template-columns: minmax(0, 1fr); }
  .wonk-topbar { flex-wrap: wrap; padding: var(--ak-s3) var(--ak-s4); }
  .wonk-drawer-btn { display: inline-flex; }
  .wonk-side {
    position: fixed;
    inset: 0 20% 0 0;
    z-index: 45; /* above a radio dock (40) */
    background: var(--ak-ground);
    overflow-y: auto;
    border-right-color: var(--ak-hairline-strong);
    transform: translateX(-100%);
    transition: transform var(--ak-t-med) var(--ak-ease);
  }
  .wonk-side.is-open { transform: translateX(0); box-shadow: var(--ak-shadow); }
}

/* ---- layout utilities ----
   .wonk-main     page padding and a centered 80rem column
   .wonk-section  one page section: bottom space, anchor offset, and
                  --ak-s4 between its children
   .wonk-row      wrapping row of controls or tiles
   .wonk-grid     auto-fit card grid; set --wonk-grid-min (default 260px)
   .wonk-sr       visually hidden, still read by screen readers */
.wonk-main { max-width: 80rem; margin: 0 auto; padding: var(--ak-s8); }
@media (max-width: 640px) { .wonk-main { padding: var(--ak-s4); } }
.wonk-section { margin-bottom: var(--ak-s12); scroll-margin-top: var(--ak-s6); }
/* .wonk .x beats .wonk p / .wonk h2, which reset margin-top to 0 */
.wonk-section > * + *, .wonk .wonk-section > * + * { margin-top: var(--ak-s4); }
.wonk-row { display: flex; flex-wrap: wrap; gap: var(--ak-s3); align-items: center; }
.wonk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--wonk-grid-min, 260px)), 1fr));
  gap: var(--ak-s4);
}
.wonk-grid > * { min-width: 0; }
.wonk-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- live / loading ---- */
.wonk-dot {
  width: 10px; height: 10px;
  border-radius: var(--ak-radius-full);
  background: var(--ak-a1);
  display: inline-block;
}
.wonk-dot--idle { background: var(--ak-ink-3); }
/* .wonk-dot--live gets irregular jitter from wonk.js; CSS fallback: */
.wonk-dot--live { animation: wonk-blink 1.2s steps(2, start) infinite; }
@keyframes wonk-blink { 50% { opacity: 0.15; } }

/* spectrum loader: give it 12 empty spans */
.wonk-spectrum { display: inline-flex; align-items: flex-end; gap: 3px; height: 28px; }
.wonk-spectrum span {
  width: 4px;
  background: var(--ak-a1);
  animation: wonk-spectrum 0.9s var(--ak-ease) infinite;
}
.wonk-spectrum span:nth-child(3n)  { animation-delay: -0.5s; background: var(--ak-a2-text); }
.wonk-spectrum span:nth-child(4n)  { animation-delay: -0.7s; }
.wonk-spectrum span:nth-child(5n)  { animation-delay: -0.2s; }
.wonk-spectrum span:nth-child(2n+1){ animation-delay: -0.35s; }
@keyframes wonk-spectrum {
  0%, 100% { height: 20%; }
  30% { height: 95%; }
  60% { height: 45%; }
}

.wonk-skeleton {
  border-radius: var(--ak-radius);
  background: linear-gradient(90deg, var(--ak-hover) 25%, var(--ak-active) 50%, var(--ak-hover) 75%);
  background-size: 200% 100%;
  animation: wonk-shimmer 1.4s linear infinite;
  min-height: 1em;
}
@keyframes wonk-shimmer { to { background-position: -200% 0; } }

/* ---- exotic: VU meter (JS fills bars; [data-wonk-vu]) ---- */
.wonk-vu { display: inline-flex; align-items: flex-end; gap: 3px; height: 64px; }
.wonk-vu .bar {
  display: block;
  width: 8px;
  border-radius: 2px;
  background: var(--ak-a1);
  transition: height 90ms linear;
}
.wonk-vu .bar.hot { background: var(--ak-warn); }
.wonk-vu .bar.clip { background: var(--ak-err); }

/* ---- exotic: knob (JS renders; [data-wonk-knob]) ---- */
.wonk-knob { display: inline-flex; flex-direction: column; align-items: center; gap: var(--ak-s1); user-select: none; }
.wonk-knob svg { cursor: ns-resize; display: block; }
.wonk-knob svg:focus-visible { outline: 2px solid var(--ak-a1-text); outline-offset: 3px; border-radius: var(--ak-radius-full); }
.wonk-knob .val { font-size: var(--ak-text-sm); }
/* knob value editor, unit, disabled state */
.wonk-knob .val-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  white-space: nowrap;
}
.wonk-knob .unit {
  font-size: var(--ak-text-xs);
  color: var(--ak-ink-3);
}
.wonk-knob svg[aria-disabled="true"] {
  cursor: not-allowed;
}
.wonk-knob.is-disabled {
  opacity: 0.45;
}
.wonk-knob.is-disabled .val {
  cursor: default;
}
.wonk-knob .val {
  cursor: text;
  border-radius: var(--ak-radius);
  padding: 0 0.15rem;
  transition: background var(--ak-t-fast) var(--ak-ease);
}
.wonk-knob .val:hover,
.wonk-knob .val:focus-visible {
  background: var(--ak-hover);
}
.wonk-knob .val:focus-visible {
  outline: 2px solid var(--ak-a1-text);
  outline-offset: 2px;
}
.wonk-knob input.val-edit {
  width: 4.5em;
  font-family: var(--ak-font-mono);
  font-weight: 700;
  font-size: var(--ak-text-sm);
  text-align: center;
  background: var(--ak-surface);
  color: var(--ak-ink);
  border: var(--ak-hairline-w) solid var(--ak-a1-text);
  border-radius: var(--ak-radius);
  padding: 0.05rem 0.2rem;
}
.wonk-knob input.val-edit::-webkit-inner-spin-button,
.wonk-knob input.val-edit::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.wonk-knob input.val-edit {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ---- exotic: oscilloscope (JS animates; [data-wonk-scope]) ---- */
.wonk-scope {
  position: relative;
  height: 120px;
  border: var(--ak-hairline-w) solid var(--ak-hairline);
  border-radius: var(--ak-radius);
  background: var(--ak-ground);
  overflow: hidden;
}
.wonk-scope canvas { display: block; width: 100%; height: 100%; }

/* ---- empty state ---- */
.wonk-empty {
  text-align: center;
  padding: var(--ak-s12) var(--ak-s6);
  color: var(--ak-ink-3);
}
.wonk-empty .glyph { font-size: 2.5rem; color: var(--ak-a2-text); margin-bottom: var(--ak-s3); }

/* ---- scroll reveal ----
   hidden only when JS is present (wonk.js adds .wonk-js to the root)
   AND wonk.js has armed the element (.is-armed, right before it starts
   watching it), so a no-JS page, or an element JS never saw, stays
   visible */
.wonk-js .wonk-reveal.is-armed:not(.is-in) {
  opacity: 0;
  transform: translateY(14px);
}
/* transition only on the way in: arming hides instantly, no fade-out */
.wonk-js .wonk-reveal.is-armed.is-in {
  transition: opacity var(--ak-t-slow) var(--ak-ease-out),
              transform var(--ak-t-slow) var(--ak-ease-out);
}

/* ---- scrollbars ---- */
.wonk::-webkit-scrollbar, .wonk *::-webkit-scrollbar { width: 10px; height: 10px; }
.wonk::-webkit-scrollbar-thumb, .wonk *::-webkit-scrollbar-thumb {
  background: var(--ak-hairline-strong);
  border-radius: var(--ak-radius-full);
  border: 2px solid var(--ak-ground);
}
.wonk::-webkit-scrollbar-track, .wonk *::-webkit-scrollbar-track { background: transparent; }
.wonk { scrollbar-width: thin; scrollbar-color: var(--ak-hairline-strong) transparent; }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .wonk *, .wonk *::before, .wonk *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
