/* =========================================================================
   Living Hordes documentation - shared stylesheet
   Edit here only. Every page loads this file.
   ========================================================================= */

:root {
  --bg: #f7f7f5;
  --bg-raised: #ffffff;
  --bg-sunken: #ececeb;
  --text: #1b1d1a;
  --text-dim: #5c5f58;
  --text-faint: #8a8d85;
  --rule: #d8d8d4;
  --accent: #4a7c3f;
  --accent-soft: #e8f0e4;
  --warn: #9a6b1c;
  --warn-soft: #f7efdc;
  --l1: #6b8f5e;
  --l2: #c08a2e;
  --l3: #b04a3a;
  --measure: 76ch;
  /* Largeur du cadre de page. Distinct de --page, qui est la couleur d accent.
     La mesure de lecture ci-dessus reste independante : elargir le cadre
     n allonge pas les lignes de texte, ca rend de la place aux schemas et
     reduit le vide lateral. */
  --shell: 1360px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161a;
    --bg-raised: #1c1f24;
    --bg-sunken: #101216;
    --text: #e6e6e2;
    --text-dim: #a3a69e;
    --text-faint: #6f736b;
    --rule: #2b2f36;
    --accent: #8fbf7a;
    --accent-soft: #1e2a1b;
    --warn: #e0b055;
    --warn-soft: #2a2417;
    --l1: #8fbf7a;
    --l2: #e0b055;
    --l3: #d97a66;
  }
}
:root[data-theme="dark"] {
  --bg: #14161a;
  --bg-raised: #1c1f24;
  --bg-sunken: #101216;
  --text: #e6e6e2;
  --text-dim: #a3a69e;
  --text-faint: #6f736b;
  --rule: #2b2f36;
  --accent: #8fbf7a;
  --accent-soft: #1e2a1b;
  --warn: #e0b055;
  --warn-soft: #2a2417;
  --l1: #8fbf7a;
  --l2: #e0b055;
  --l3: #d97a66;
}

/* ------------------------------------------------------------- language */
/* Any element carrying data-lang shows only in that language.
   Elements with no data-lang are language-neutral and always show.
   data-lang="both" matches neither rule, so it always shows: it marks a block
   that is deliberately identical in both languages, which is what lets the
   consistency check tell those apart from a block simply left untranslated. */
html[data-sitelang="en"] [data-lang="fr"] { display: none !important; }
html[data-sitelang="fr"] [data-lang="en"] { display: none !important; }

.langtoggle { display: flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.langtoggle button {
  border: 0; background: none; color: var(--text-faint); cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; padding: 6px 9px;
  letter-spacing: 0.04em;
}
.langtoggle button + button { border-left: 1px solid var(--rule); }
.langtoggle button:hover { color: var(--text); }
.langtoggle button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }

/* ------------------------------------------------ accent par page ------ */
/* Chaque page pose data-page sur <body>. Repère de navigation, rien de plus. */
:root {
  --page: var(--accent);
  --p-simulation: #b8792c;
  --p-density:    #a8503c;
  --p-migration:  #2f7d78;
  --p-hordes:     #6d5a96;
  --p-sealing:    #4a7c3f;
  --p-defense:    #3d6a94;
  --p-sound:      #97761c;
  --p-sandbox:    #5b6472;
  --p-immobility: #a33d5c;
  --p-performance: #6f7d2c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --p-simulation: #e0a355;
    --p-density:    #d97a66;
    --p-migration:  #63b6ae;
    --p-hordes:     #a294cc;
    --p-sealing:    #8fbf7a;
    --p-defense:    #79a8d4;
    --p-sound:      #d6b455;
    --p-sandbox:    #97a3b3;
    --p-immobility: #d97a99;
    --p-performance: #b3c06a;
  }
}
:root[data-theme="dark"] {
  --p-simulation: #e0a355;
  --p-density:    #d97a66;
  --p-migration:  #63b6ae;
  --p-hordes:     #a294cc;
  --p-sealing:    #8fbf7a;
  --p-defense:    #79a8d4;
  --p-sound:      #d6b455;
  --p-sandbox:    #97a3b3;
  --p-immobility: #d97a99;
  --p-performance: #b3c06a;
}
body[data-page="simulation"] { --page: var(--p-simulation); }
body[data-page="density"]    { --page: var(--p-density); }
body[data-page="migration"]  { --page: var(--p-migration); }
body[data-page="hordes"]     { --page: var(--p-hordes); }
body[data-page="sealing"]    { --page: var(--p-sealing); }
body[data-page="defense"]    { --page: var(--p-defense); }
body[data-page="sound"]      { --page: var(--p-sound); }
body[data-page="sandbox"]    { --page: var(--p-sandbox); }
body[data-page="immobility"] { --page: var(--p-immobility); }
body[data-page="performance"] { --page: var(--p-performance); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-wrap: break-word;
}

/* ---------------------------------------------------------------- chrome */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--bg-raised);
  position: sticky; top: 0; z-index: 20;
}
.masthead-inner {
  max-width: var(--shell); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  padding: 14px 0; text-decoration: none; color: var(--text); white-space: nowrap;
}
.brand b { font-size: 17px; letter-spacing: -0.01em; }
.brand span {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-faint);
}
.sitenav { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.tools { display: flex; gap: 6px; flex: none; align-items: center; }
.sitenav a {
  padding: 8px 9px; border-radius: 6px; font-size: 13.5px;
  color: var(--text-dim); text-decoration: none; white-space: nowrap;
}
.sitenav a:hover { background: var(--bg-sunken); color: var(--text); }
.sitenav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.themetoggle {
  border: 1px solid var(--rule); background: none; color: var(--text-dim);
  border-radius: 6px; padding: 6px 9px; cursor: pointer; font-size: 13px;
}
.themetoggle:hover { color: var(--text); }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: var(--shell); margin: 0 auto; padding: 0 24px; display: flex; gap: 48px; }
.toc { width: 200px; flex: none; padding-top: 56px; }
.toc-sticky { position: sticky; top: 84px; }
.toc h2 {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-faint); margin: 0 0 10px;
}
.toc a {
  display: block; padding: 4px 0 4px 11px; font-size: 13.5px;
  color: var(--text-dim); text-decoration: none; border-left: 2px solid var(--rule);
}
.toc a:hover { color: var(--accent); border-left-color: var(--accent); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
main { flex: 1; min-width: 0; padding: 56px 0 88px; }
.prose { max-width: var(--measure); }

/* ------------------------------------------------------------------ type */
.eyebrow {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.11em;
  color: var(--accent); font-weight: 600; margin: 0 0 10px;
}
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 18px; }
h2 {
  font-size: 21px; letter-spacing: -0.01em; margin: 52px 0 14px;
  padding-top: 20px; border-top: 1px solid var(--rule); scroll-margin-top: 80px;
}
h3 { font-size: 16px; margin: 30px 0 8px; scroll-margin-top: 80px; }
p { margin: 0 0 16px; }
.lead { font-size: 18.5px; line-height: 1.55; color: var(--text-dim); }
a { color: var(--accent); }
strong { font-weight: 640; }
ul, ol { margin: 0 0 16px; padding-left: 22px; max-width: var(--measure); }
li { margin-bottom: 6px; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em; background: var(--bg-sunken); padding: 1px 5px; border-radius: 4px;
}

/* ------------------------------------------------------------ layer card */
.layer { display: flex; gap: 14px; align-items: baseline; margin: 30px 0 8px; }
.layer-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; transform: translateY(1px); }
.layer-1 { background: var(--l1); }
.layer-2 { background: var(--l2); }
.layer-3 { background: var(--l3); }
.layer h3 { margin: 0; }
.layer-range {
  margin-left: auto; font-size: 12.5px; color: var(--text-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap;
}

/* -------------------------------------------------------- under the hood */
details.hood {
  margin: 18px 0 26px; border: 1px solid var(--rule);
  border-radius: 8px; background: var(--bg-raised); max-width: var(--measure);
}
details.hood > summary {
  cursor: pointer; list-style: none; padding: 11px 15px;
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  display: flex; align-items: center; gap: 9px;
}
details.hood > summary::-webkit-details-marker { display: none; }
details.hood > summary::before {
  content: "+"; font-family: ui-monospace, monospace; font-size: 15px;
  color: var(--accent); width: 12px;
}
details.hood[open] > summary::before { content: "\2212"; }
details.hood[open] > summary { border-bottom: 1px solid var(--rule); }
details.hood > summary:hover { color: var(--text); }
.hood-body { padding: 15px; font-size: 14.5px; }
.hood-body > :last-child { margin-bottom: 0; }
.hood-body table { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
.hood-body th, .hood-body td {
  text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--rule);
  font-size: 13.5px; vertical-align: top;
}
.hood-body th {
  color: var(--text-faint); font-weight: 600; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.hood-body td.k {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap; color: var(--accent);
}
.hood-body td.v {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap;
}
.tablescroll { overflow-x: auto; max-width: var(--measure); margin: 0 0 22px; }
.tablescroll table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tablescroll th, .tablescroll td {
  text-align: left; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top;
}
.tablescroll th {
  color: var(--text-faint); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.tablescroll td.k {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap; color: var(--accent);
}
.tablescroll td.v { white-space: nowrap; }

/* -------------------------------------------------------------- pagehead */
.pagehead { position: relative; padding-left: 20px; margin-bottom: 8px; }
.pagehead::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 6px; width: 4px;
  border-radius: 2px; background: var(--page);
}
.eyebrow { color: var(--page); }
.sitenav a[aria-current="page"] { color: var(--page); }

/* -------------------------------------------------------- chiffres clés -- */
.stats {
  display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0;
  padding: 0; list-style: none; max-width: var(--measure);
}
.stats li {
  flex: 1 1 130px; margin: 0; padding: 14px 16px;
  border: 1px solid var(--rule); border-radius: 9px; background: var(--bg-raised);
}
.stats b {
  display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px; line-height: 1.1; color: var(--page); font-weight: 600;
}
.stats span { display: block; margin-top: 5px; font-size: 12.5px; color: var(--text-dim); }

/* ------------------------------------------------------------ vignettes -- */
.cards a { display: flex; flex-direction: column; gap: 10px; }
.cardglyph { display: block; width: 46px; height: 46px; flex: none; }
.cardglyph svg { display: block; width: 100%; height: 100%; }

/* ------------------------------------------------------------ h&eacute;ros ---- */
/* Bande sombre dans les deux th&egrave;mes : c'est ce qui garde la texture lisible.
   Le titre vit dans l'image, pas en dessous. Trois plans d&eacute;rivent &agrave; des
   vitesses diff&eacute;rentes, ce qui produit la profondeur. */
.heroband {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 400px; display: flex; align-items: center;
  border-bottom: 1px solid var(--rule); background: #0c0e11;
}
.heroband .heroart {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
}
.heroband-inner {
  position: relative; z-index: 1;
  max-width: var(--shell); margin: 0 auto; padding: 0 24px; width: 100%;
}
.herotitle {
  margin: 0; font-size: clamp(44px, 7.2vw, 96px); line-height: 0.98;
  letter-spacing: -0.035em; color: #f2f1ec;
  text-shadow: 0 2px 40px rgba(0,0,0,0.55);
}
.herokicker {
  margin: 0 0 14px; font-size: 11.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: #8fbf7a; font-weight: 600;
}
.herolead {
  margin: 20px 0 0; max-width: 46ch; font-size: 17.5px; line-height: 1.55;
  color: #b9bcb4;
}
/* La signature du mod, pas un paragraphe : elle se lit d'un bloc, donc plus
   claire et plus large que du texte courant, sans concurrencer le titre. */
.heroslogan {
  margin: 18px 0 0; font-size: clamp(17px, 2.1vw, 23px); line-height: 1.35;
  letter-spacing: 0.005em; color: #dcdcd4; font-weight: 500;
  text-shadow: 0 2px 26px rgba(0,0,0,0.6);
}
@media (max-width: 900px) {
  .heroband { min-height: 320px; }
  .herolead { max-width: none; font-size: 16px; }
}

/* Le d&eacute;fil&eacute; de la banni&egrave;re. Chaque plan glisse d'exactement une p&eacute;riode de son
   propre contenu, en vitesse constante : le raccord est donc invisible et la
   marche n'a pas de fin. Toute autre courbe que `linear` ferait broncher le
   raccord, et un aller-retour ferait tourner la foule en rond. */
.cb { will-change: transform; }
/* HERO-DRIFT:debut - engendre par _gen_hero.py, ne pas editer a la main */
  .cb-0 { animation: d0 619s linear infinite; }
  .cb-1 { animation: d1 467s linear infinite; }
  .cb-2 { animation: d2 601s linear infinite; }
  .cb-3 { animation: d3 401s linear infinite; }
  .cb-4 { animation: d4 271s linear infinite; }
  @keyframes d0 { from{transform:translateX(0)} to{transform:translateX(-619px)} }   /* 1.0 px/s */
  @keyframes d1 { from{transform:translateX(0)} to{transform:translateX(-653px)} }   /* 1.4 px/s */
  @keyframes d2 { from{transform:translateX(0)} to{transform:translateX(-1200px)} }   /* 2.0 px/s */
  @keyframes d3 { from{transform:translateX(0)} to{transform:translateX(-1200px)} }   /* 3.0 px/s */
  @keyframes d4 { from{transform:translateX(0)} to{transform:translateX(-1200px)} }   /* 4.4 px/s */
/* HERO-DRIFT:fin */

/* ----------------------------------------------------------- animations -- */

/* Transfert anim&eacute; du sch&eacute;ma d'absorption */
.xfer { animation: xfer 6s linear infinite; }
@keyframes xfer {
  0%   { transform: translate(0,0); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translate(-96px,0); opacity: 0; }
}
/* Marcheur suivant le trac&eacute; du sch&eacute;ma de trajet */
.walker { animation: walkpath 16s ease-in-out infinite; }
@keyframes walkpath {
  0%   { transform: translate(0,0); }
  18%  { transform: translate(50px,-27px); }
  33%  { transform: translate(126px,-20px); }
  50%  { transform: translate(190px,-60px); }
  66%  { transform: translate(242px,-52px); }
  84%  { transform: translate(310px,-98px); }
  100% { transform: translate(360px,-110px); }
}

/* ---------------------------------------------------------------- figure */
figure {
  margin: 34px 0; max-width: 860px;
  background: var(--bg-raised); border: 1px solid var(--rule);
  border-radius: 10px; padding: 20px 20px 16px;
}
figure svg { display: block; width: 100%; height: auto; }
figcaption { font-size: 13px; color: var(--text-faint); margin-top: 14px; }
/* Diagrams that need more room than the reading measure allows. */
figure.wide-fig { max-width: none; }

/* ---------------------------------------------------------------- legend */
.legend {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin: 14px 0 0; padding: 0; list-style: none;
  font-size: 12.5px; color: var(--text-dim);
}
.legend li { display: flex; align-items: center; gap: 7px; margin: 0; }
.legend i {
  width: 11px; height: 11px; border-radius: 3px; flex: none; font-style: normal;
}

/* ------------------------------------------------------------ rule strip */
.rule-strip {
  display: flex; gap: 13px; align-items: flex-start;
  border: 1px solid var(--rule); border-radius: 9px; background: var(--bg-raised);
  padding: 14px 16px; margin: 14px 0; max-width: var(--measure); font-size: 15px;
}
.rule-strip b {
  flex: none; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); padding-top: 3px; width: 62px;
}
.rule-strip p { margin: 0; }

/* --------------------------------------------------------------- callout */
.note {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: 13px 16px; border-radius: 0 7px 7px 0; margin: 22px 0;
  font-size: 15px; max-width: var(--measure);
}
.note > :last-child { margin-bottom: 0; }

/* ---------------------------------------------- capture placeholder ---- */
/* ------------------------------------------------- authoring placeholder */
/* Delete these blocks as you fill each section in. */
.todo {
  border: 1px dashed var(--warn); background: var(--warn-soft);
  color: var(--warn); border-radius: 7px; padding: 12px 15px; margin: 16px 0;
  font-size: 14px; max-width: var(--measure);
}
.todo::before {
  content: "TO WRITE"; display: block; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; margin-bottom: 5px; opacity: 0.85;
}
.todo > :last-child { margin-bottom: 0; }
.todo ul { padding-left: 20px; margin-bottom: 0; }

/* ------------------------------------------------------------ index grid */
.hero { padding: 60px 0 8px; max-width: var(--measure); }
.hero h1 { font-size: 42px; }
.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px; margin: 34px 0 20px; padding: 0; list-style: none;
  /* La regle generique ul/ol plafonne a la mesure de lecture. Une grille de
     vignettes n est pas du texte : elle doit occuper toute la largeur. */
  max-width: none;
}
.cards li { margin: 0; }
.cards a {
  display: block; height: 100%; padding: 17px 19px; text-decoration: none;
  border: 1px solid var(--rule); border-radius: 9px; background: var(--bg-raised);
}
.cards a:hover { border-color: var(--accent); }
.cards h2 {
  font-size: 15.5px; margin: 0 0 6px; padding: 0; border: 0; color: var(--text);
}
.cards p { font-size: 13.5px; color: var(--text-dim); margin: 0; }
.wide { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--rule); margin-top: 40px; background: var(--bg-raised); }
.footer-inner {
  max-width: var(--shell); margin: 0 auto; padding: 26px 24px 40px;
  font-size: 13.5px; color: var(--text-faint);
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between;
}
.footer-inner a { color: var(--text-dim); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 900px) {
  .wrap { display: block; padding: 0 20px; }
  .toc { width: auto; padding-top: 28px; }
  .toc-sticky { position: static; }
  .toc a { display: inline-block; border-left: 0; padding: 4px 12px 4px 0; }
  main { padding: 24px 0 64px; }
  h1 { font-size: 27px; }
  .hero h1 { font-size: 31px; }
  .lead { font-size: 17px; }
  .sitenav { margin-left: 0; padding-bottom: 8px; }
  .layer { flex-wrap: wrap; }
  .layer-range { margin-left: 0; width: 100%; }
  .wide, .hero { padding-left: 20px; padding-right: 20px; }
}

/* ------------------------------------------------------- mouvement ------ */
/* Par d&eacute;faut on suit le r&eacute;glage syst&egrave;me. La bascule du bandeau pose
   data-motion sur <html> et l'emporte, dans les deux sens. */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) { scroll-behavior: auto; }
  html:not([data-motion="on"]) .xfer,
  html:not([data-motion="on"]) .walker,
  html:not([data-motion="on"]) .cb,
  html:not([data-motion="on"]) .ctapulse { animation: none; }
}
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] .xfer,
html[data-motion="off"] .walker,
html[data-motion="off"] .cb,
html[data-motion="off"] .ctapulse { animation: none; }

/* Invitation a cliquer sur un schema interactif. */
@keyframes ctapulse { 0%, 100% { stroke-opacity: 1; fill-opacity: 0.16; } 50% { stroke-opacity: 0.35; fill-opacity: 0.30; } }
.ctapulse { animation: ctapulse 2.2s ease-in-out infinite; }
/* Boutons dans un schema interactif. */
.dchip { cursor: pointer; }
.dchip rect { fill: transparent; stroke: var(--rule); stroke-width: 1.5; }
.dchip text { fill: var(--text-dim); }
.dchip:hover rect { stroke: var(--page); }
.dchip.on rect { fill: var(--page); fill-opacity: 0.22; stroke: var(--page); }
.dchip.on text { fill: var(--text); font-weight: 600; }
.dchip.off { opacity: 0.35; }
.dchip:focus-visible rect, #dissolve-cta:focus-visible rect { stroke-width: 3; }
#dissolve-cta { cursor: pointer; }
/* Barres de categories (densite) : survol, toucher, clavier. */
.catbar { cursor: pointer; outline: none; }
.catbar .catval { fill: var(--text-faint); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; }
.catbar:hover .catfill, .catbar.on .catfill, .catbar:focus-visible .catfill { stroke: var(--text); stroke-width: 1.5; }
.catbar.on text, .catbar:hover text { fill: var(--text); }
/* Liaisons cliquables du graphe de pieces (scellement). */
.rlink { cursor: pointer; outline: none; }
.rlink:hover line, .rlink:focus-visible line { stroke-width: 7; }
.rlink:focus-visible circle { stroke-width: 3; }
svg[tabindex]:focus-visible { outline: 2px solid var(--page); outline-offset: 4px; border-radius: 10px; }

.motiontoggle {
  border: 1px solid var(--rule); background: none; color: var(--text-dim);
  border-radius: 6px; padding: 6px 9px; cursor: pointer; font-size: 13px;
}
.motiontoggle:hover { color: var(--text); }
.motiontoggle[aria-pressed="true"] { color: var(--page); border-color: var(--page); }
