/* ─────────────────────────────────────────────────────────────────────
   US Admin Timeline — hand-drawn "graph-paper / crayon" reskin.
   Light engineering-paper background, marker-coloured nodes, sketchy
   ink boxes. Palette lives entirely in :root so the JS (getCSS) keeps
   working — only the values changed, not the variable names.
   ───────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Komix';
  src: url('fonts/custom/Komix.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Cactus Jack';
  src: url('fonts/custom/Cactus%20Jack.otf') format('opentype');
  font-display: swap;
}

:root{
  /* paper + ink */
  --paper:#fcfdf7;            /* page base sheet            */
  --paper-warm:#f8f5ea;       /* side panel / cards         */
  --paper-bright:#fffdf2;     /* hover sheets               */
  --grid:rgba(43,122,176,0.11);
  --grid-major:rgba(43,122,176,0.18);
  --ink:#2b2b2b;              /* graphite body text         */
  --muted:#6f6f6f;            /* pencil-grey secondary text */
  --line:#33373a;             /* sketch border ink          */
  --accent:#2e9bd6;           /* marker cyan                */

  /* legacy aliases kept so nothing references a dead var */
  --bg:var(--paper);
  --panel:var(--paper-warm);
  --chip:var(--paper-bright);

  /* crayon box — node fills (var names unchanged for getCSS) */
  --rep:#e63e4e;              /* Republican president — marker red    */
  --dem:#2e9bd6;              /* Democratic president — marker sky    */
  --pres:#e0a52e;             /* other-party president — goldenrod    */
  --vp:#7cb840;               /* vice president — grass green         */
  --official:#27b0a8;         /* officials — teal                     */
  --sec:#e8862e;              /* Sec. of State — amber                */
  --secdef:#d6519e;           /* Sec. of Defense — magenta-pink       */
  --institution:#2bb6e0;      /* institutions — cyan                  */
  --cabinet:#8a6fe0;          /* dept directors — violet              */
  --branch:#6fa82e;           /* security branches — leaf green       */
}

html,body{height:100%; margin:0;
  font-family:'Space Grotesk', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
}
/* engineering graph-paper: fine 24px grid + heavier 120px major lines */
body{
  color:var(--ink);
  overflow:hidden;
  background-color:var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid-major) 1.4px, transparent 1.4px),
    linear-gradient(90deg, var(--grid-major) 1.4px, transparent 1.4px);
  background-size:24px 24px, 24px 24px, 120px 120px, 120px 120px;
  background-position:-1px -1px, -1px -1px, -1px -1px, -1px -1px;
}
.wrap{display:grid; grid-template-columns: 1fr 380px; height:100%;}
#graph{position:relative;}                 /* transparent → paper shows through */

/* ── right-hand sheet ────────────────────────────────────────────────── */
.side{
  border-left:2px solid var(--line);
  background:rgba(248,245,234,0.90);
  box-shadow:-3px 0 0 rgba(43,43,43,0.05);
  padding:16px 16px 30px;
  overflow:auto;
}

/* hand-drawn wordmark, echoing the multi-colour poster title */
.brandmark{
  font-family:'Komix','Cactus Jack', cursive;
  font-size:32px; line-height:0.95; letter-spacing:.01em;
  margin:2px 0 5px; transform:rotate(-1.2deg);
  text-shadow:1.5px 1.5px 0 rgba(43,43,43,0.10);
}
.brandmark .bm-1{color:var(--rep);}         /* US       — red */
.brandmark .bm-2{color:var(--rep);}         /* ADMIN    — red */
.brandmark .bm-3{color:var(--rep);}         /* TIMELINE — red */
.tagline{
  font-family:'Alice', Georgia, 'Times New Roman', serif;
  font-style:italic; font-size:13px; color:var(--muted);
  margin:0 0 18px; line-height:1.4;
}

/* letterspaced serif caps + crayon underline, like the poster captions */
.section-label, h1{
  font-family:'Alice', Georgia, 'Times New Roman', serif;
  text-transform:uppercase; letter-spacing:.20em;
  font-size:15px; font-weight:400; color:var(--ink);
  display:inline-block; margin:0 0 12px; padding-bottom:3px;
}
.section-label::after, h1::after{
  content:""; display:block; height:5px; margin-top:4px;
  background:var(--rep);
  border-radius:45% 55% 50% 50% / 100% 100% 100% 100%;
  transform:rotate(-.5deg);
}
.hint{
  font-family:'Space Grotesk', system-ui, sans-serif;
  font-size:12px; color:var(--muted); margin:0 0 12px; line-height:1.45;
}

/* ── sketch card (notebook-box border trick) ─────────────────────────── */
.card{
  background:var(--paper-warm);
  border:2px solid var(--line);
  border-radius:255px 14px 225px 16px / 16px 225px 14px 255px;
  box-shadow:2px 3px 0 rgba(43,43,43,0.10);
  padding:14px 16px;
}

/* ── floating control bar — a taped paper note ───────────────────────── */
.topnav{
  position:absolute;
  left:12px; right:12px; top:12px;
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
  background:rgba(252,253,247,0.94);
  border:2px solid var(--line);
  border-radius:14px 230px 16px 240px / 220px 16px 240px 14px;
  box-shadow:2px 3px 0 rgba(43,43,43,0.10);
  padding:10px 13px;
  backdrop-filter: blur(2px);
  z-index:10;
}
/* bits of "tape" pinning the note */
.topnav::before, .topnav::after{
  content:""; position:absolute; top:-9px; width:42px; height:17px;
  background:rgba(244,194,13,0.34);
  border:1px dashed rgba(43,43,43,0.22);
  transform:rotate(-4deg);
}
.topnav::before{left:34px;}
.topnav::after{right:34px; transform:rotate(3deg);}

.legend{
  display:flex; gap:7px 11px; align-items:center; flex-wrap:wrap;
  padding-right:8px;
  border-right:1.5px dashed rgba(43,43,43,0.22);
  margin-right:4px;
  max-width:100%;
}
.legend-item{
  display:inline-flex; align-items:center; gap:5px;
  font-family:'JetBrains Mono', ui-monospace, monospace;
  font-size:10.5px; color:var(--ink); white-space:nowrap;
}
/* crayon swatches: irregular blobs with an ink outline */
.dot{
  width:12px; height:12px; display:inline-block; flex-shrink:0;
  border:1.5px solid var(--line);
  border-radius:42% 58% 55% 45% / 55% 45% 60% 40%;
  transform:rotate(-6deg);
}
.dot.pres{background:var(--pres);}
.dot.rep{background:var(--rep);}
.dot.dem{background:var(--dem);}
.dot.vp{background:var(--vp);}
.dot.official{background:var(--official);}
.dot.secretary{background:var(--sec);}
.dot.secdef{background:var(--secdef);}
.dot.institution{background:var(--institution);}
.dot.cabinet{background:var(--cabinet);}
.dot.branch{background:var(--branch);}

.controls{display:flex; gap:8px; align-items:center; flex-wrap:wrap;}

/* ── buttons — marker-outlined paper chips ───────────────────────────── */
.btn{
  appearance:none;
  border:2px solid var(--line);
  background:var(--paper-warm);
  color:var(--ink);
  border-radius:12px 16px 10px 14px / 14px 10px 16px 12px;
  padding:7px 11px;
  font-family:'JetBrains Mono', ui-monospace, monospace;
  font-size:11.5px; letter-spacing:.02em;
  cursor:pointer;
  box-shadow:1.5px 2px 0 rgba(43,43,43,0.12);
  transition:transform .06s, box-shadow .06s, background .12s;
}
.btn:hover{background:var(--paper-bright); transform:translate(-.5px,-.5px); box-shadow:2.5px 3px 0 rgba(43,43,43,0.16);}
.btn:active{transform:translate(1px,1.5px); box-shadow:.5px 1px 0 rgba(43,43,43,0.12);}
.btn.primary{background:rgba(46,155,214,0.16); border-color:var(--accent);}
.btn.arrow{padding:7px 12px; font-size:15px; line-height:1; font-weight:700;}
.btn:disabled{opacity:.4; cursor:default; box-shadow:none; transform:none;}
.match-count{
  font-family:'JetBrains Mono', ui-monospace, monospace;
  font-size:11px; color:var(--muted);
  min-width:70px; text-align:center; white-space:nowrap;
}

.searchwrap{
  display:flex; gap:8px; align-items:center;
  border-left:1.5px dashed rgba(43,43,43,0.22);
  padding-left:10px;
  margin-left:2px;
  flex:1 1 260px;
}
input[type="text"]{
  width:260px; max-width:52vw;
  background:var(--paper-bright);
  border:2px solid var(--line);
  border-radius:10px 14px 10px 14px / 14px 10px 14px 10px;
  padding:7px 11px;
  font-family:'JetBrains Mono', ui-monospace, monospace;
  font-size:12px; color:var(--ink);
  outline:none;
}
input[type="text"]::placeholder{color:rgba(111,111,111,0.7);}
input[type="text"]:focus{border-color:var(--accent);}
select{
  background:var(--paper-bright);
  border:2px solid var(--line);
  border-radius:10px 14px 10px 14px / 14px 10px 14px 10px;
  padding:7px 11px;
  font-family:'JetBrains Mono', ui-monospace, monospace;
  font-size:12px; color:var(--ink);
  outline:none; max-width:52vw; cursor:pointer;
}
label.cb{
  display:flex; gap:6px; align-items:center;
  font-family:'JetBrains Mono', ui-monospace, monospace;
  font-size:11px; color:var(--muted);
}
label.cb input{accent-color:var(--accent);}

.row{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px;}
.chip{
  background:var(--paper-bright);
  border:2px solid var(--line);
  color:var(--ink);
  border-radius:12px 16px 12px 16px / 16px 12px 16px 12px;
  padding:5px 11px;
  font-family:'JetBrains Mono', ui-monospace, monospace;
  font-size:11.5px;
  transform:rotate(-.6deg);
}

/* details panel typography */
.title{
  font-family:'Alice', Georgia, serif;
  font-size:20px; font-weight:400; line-height:1.15;
  margin:0 0 5px; color:var(--ink);
}
.sub{
  font-family:'JetBrains Mono', ui-monospace, monospace;
  font-size:11px; letter-spacing:.04em; text-transform:uppercase;
  margin:0 0 8px; color:var(--muted);
}
ul{margin:8px 0 0 18px; padding:0;}
li{margin:6px 0; color:var(--ink); font-size:13.5px; line-height:1.45;}
.empty{
  color:var(--muted); font-size:13px; line-height:1.45;
  font-family:'Alice', Georgia, serif; font-style:italic;
}

/* ── the SVG graph itself ────────────────────────────────────────────── */
svg{width:100%; height:100%;}

/* connectors read like ruled pencil / faint marker lines */
.link{stroke:rgba(51,55,58,0.30); stroke-width:1.5;}
.link.vp{stroke:rgba(124,184,64,0.45); stroke-dasharray:5 5;}
.link.official{stroke:rgba(39,176,168,0.40); stroke-dasharray:2 4;}
.link.secretary{stroke:rgba(232,134,46,0.42); stroke-dasharray:2 4;}
.link.secdef{stroke:rgba(214,81,158,0.42); stroke-dasharray:2 4;}
.link.cabinet{stroke:rgba(138,111,224,0.40); stroke-dasharray:2 3;}

/* nodes = wobbly crayon blobs (rough filter) with an ink marker outline */
.node circle{
  stroke:var(--line); stroke-width:2;
  fill-opacity:0.82;
  filter:url(#rough);
}
.node text{
  font-family:'Space Grotesk', system-ui, sans-serif;
  font-size:12px; font-weight:500; fill:var(--ink);
  paint-order:stroke; stroke:var(--paper); stroke-width:3px; stroke-linejoin:round;
  pointer-events:none;
}
.node .label-muted{
  font-family:'JetBrains Mono', ui-monospace, monospace;
  fill:var(--muted); font-size:10.5px; font-weight:400;
}
.node.selected circle{stroke:var(--ink); stroke-width:3.5; fill-opacity:0.95;}

/* ── "?" hint icon + about panel ─────────────────────────────────────── */
.hint-icon {
  cursor: pointer;
  font-family:'Alice', Georgia, serif;
  font-size: 17px; font-weight:700;
  color: var(--accent);
  user-select: none;
  transition: color 0.2s, transform .12s;
}
.hint-icon:hover { color: var(--rep); transform:rotate(8deg); }
.hint-panel {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-.4deg);
  background: var(--paper-warm);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 255px 16px 225px 18px / 18px 225px 16px 255px;
  padding: 22px 24px;
  max-width: 650px; max-height: 80vh;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 4px 6px 0 rgba(43,43,43,0.14);
}
.hint-panel h3 {
  margin: 0 0 10px 0;
  font-family:'Alice', Georgia, serif;
  text-transform:uppercase; letter-spacing:.16em;
  font-size: 15px; font-weight:400; color: var(--ink);
}
.hint-panel p { margin: 6px 0; font-size: 13.5px; line-height: 1.5; }
.hint-panel strong{ color:var(--rep); }
.hint-panel table {
  width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px;
}
.hint-panel th, .hint-panel td {
  border: 1.5px solid var(--line); padding: 7px; vertical-align: top;
}
.hint-panel th { background: var(--paper-bright); color: var(--ink); font-weight: 700; }
.hint-panel .close-btn {
  position: absolute; top: 12px; right: 14px;
  cursor: pointer; font-size: 18px; color: var(--rep);
}

/* ── tag picker popover (light paper rework) ─────────────────────────── */
.tag-trigger-wrap { position: relative; display: inline-block; }
#tagTrigger { display: inline-flex; align-items: center; gap: 6px; }
.tag-trigger-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--accent); color: var(--paper);
  font-family:'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 700;
}
.tag-trigger-badge[hidden] { display: none; }
.tag-trigger-caret { font-size: 9px; color: var(--muted); line-height: 1; }

.tag-popover {
  position: absolute; top: calc(100% + 10px); left: 0;
  width: 380px; max-width: 92vw;
  background: var(--paper-warm);
  border: 2px solid var(--line);
  border-radius: 16px 230px 16px 230px / 220px 16px 230px 16px;
  box-shadow: 4px 6px 0 rgba(43,43,43,0.14);
  z-index: 30;
  padding: 16px 16px 12px;
  color: var(--ink);
}
.tag-popover[hidden] { display: none; }

.tag-pop-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 13px;
}
.tag-pop-title {
  font-family:'Alice', Georgia, serif;
  text-transform:uppercase; letter-spacing:.14em;
  font-size: 15px; font-weight: 400; color: var(--ink);
}
.tag-pop-actions { display: flex; align-items: center; gap: 10px; }
.tag-pop-reset, .tag-pop-close {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family:'JetBrains Mono', monospace; color: var(--muted);
}
.tag-pop-reset { font-size: 11px; }
.tag-pop-close { font-size: 14px; line-height: 1; }
.tag-pop-reset:hover, .tag-pop-close:hover { color: var(--rep); }

.tag-pop-cats {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline;
  margin-bottom: 13px;
  font-family:'JetBrains Mono', monospace; font-size: 12px;
}
.cat-pill {
  background: none; border: none; padding: 0 0 1px; cursor: pointer;
  color: var(--muted);
  font-family:'JetBrains Mono', monospace; font-size: 12px;
}
.cat-pill.is-active {
  color: var(--ink); font-weight: 700;
  box-shadow: inset 0 -5px 0 rgba(124,184,64,0.45);
}
.cat-pill:not(.is-active):hover { color: var(--ink); text-decoration: underline; }
.cat-more { font-style: italic; color: var(--muted); font-size: 12px; cursor: pointer; }
.cat-more:hover { color: var(--ink); }

.tag-pop-search { position: relative; margin-bottom: 10px; }
.tag-pop-search input {
  width: 100%; box-sizing: border-box;
  background: var(--paper-bright);
  border: 2px solid var(--line);
  border-radius: 10px 14px 10px 14px / 14px 10px 14px 10px;
  padding: 9px 12px;
  font-family:'JetBrains Mono', monospace; font-size: 12.5px;
  color: var(--ink); outline: none;
}
.tag-pop-search input::placeholder { color: rgba(111,111,111,0.6); }
.tag-pop-search input:focus { border-color: var(--accent); }

.tag-pop-list { max-height: 360px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.tag-item {
  padding: 10px 8px;
  border-bottom: 1.5px dashed rgba(43,43,43,0.14);
  cursor: pointer; border-radius: 8px;
  transition: background 0.12s;
}
.tag-item:last-child { border-bottom: none; }
.tag-item:hover { background: rgba(124,184,64,0.10); }
.tag-item-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper-bright);
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 3px 9px 3px 7px; border-radius: 999px;
  font-family:'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 500; line-height: 1.35;
}
.tag-chip-dot {
  width: 9px; height: 9px; flex-shrink: 0;
  border:1px solid var(--line);
  border-radius: 42% 58% 55% 45% / 55% 45% 60% 40%;
}
.tag-count { font-family:'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }
.tag-cat-label {
  font-family:'Alice', Georgia, serif;
  font-size: 12px; font-style: italic; color: var(--muted); margin-bottom: 3px;
}
.tag-desc { font-size: 12.5px; color: rgba(43,43,43,0.82); line-height: 1.45; }
.tag-item.is-hidden-role .tag-chip {
  background: rgba(230,62,78,0.12);
  border-color: rgba(230,62,78,0.45);
  text-decoration: line-through; opacity: 0.7;
}
.tag-item.is-hidden-role::before {
  content: "hidden — click to show";
  display: block;
  font-family:'JetBrains Mono', monospace;
  font-size: 10px; font-style: italic;
  color: rgba(230,62,78,0.8);
  margin-bottom: 4px; letter-spacing: 0.3px;
}
.tag-item.is-disabled { opacity: 0.4; cursor: not-allowed; }
.tag-item.is-disabled:hover { background: none; }
.tag-empty {
  padding: 18px 8px; color: var(--muted);
  font-family:'Alice', Georgia, serif; font-style: italic;
  font-size: 13px; text-align: center;
}

/* ── agenda cross-reference colouring ────────────────────────────────── */
.agenda-ref {
  cursor: pointer; font-weight: 600;
  border-bottom: 1.5px dotted currentColor; text-decoration: none;
}
.agenda-ref:hover { filter: brightness(0.85); border-bottom-style: solid; }

/* ── glossary term: click to expand "what / why" ─────────────────────── */
.term-ref {
  cursor: pointer;
  border-bottom: 1.5px dashed rgba(46,155,214,0.7);
}
.term-ref:hover { background: rgba(46,155,214,0.12); }
.term-ref.is-open { background: rgba(46,155,214,0.16); border-bottom-color: var(--accent); }
.term-def {
  margin: 8px 0 3px 0; padding: 10px 12px;
  border: 1.5px solid var(--line);
  background: rgba(46,155,214,0.08);
  border-radius: 12px 16px 12px 16px / 16px 12px 16px 12px;
  font-size: 12.5px; line-height: 1.5; list-style: none;
}
.term-def-what { color: var(--ink); }
.term-def-why { color: var(--muted); margin-top: 5px; }
.term-def-label {
  font-family:'JetBrains Mono', monospace;
  color: var(--accent); font-weight: 700; font-size:11px; text-transform:uppercase; letter-spacing:.04em;
}

/* ── mobile floating summon buttons + scrim (desktop: hidden) ─────────── */
.mobile-fabs { display: none; }
.mobile-scrim { display: none; }

/* ─────────────────────────────────────────────────────────────────────
   MOBILE LAYOUT (≤768px)
   Default view is just the timeline. The menu (legend / controls /
   search) slides down from the top; the details/info sheet slides in
   from the right. Two floating buttons summon each; a scrim dismisses.
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* graph takes the whole screen — side panel is pulled out of flow */
  .wrap { grid-template-columns: 1fr; }

  /* ── floating summon buttons ──────────────────────────────────────── */
  .mobile-fabs {
    display: flex;
    position: fixed;
    top: 10px; left: 10px; right: 10px;
    justify-content: space-between;
    pointer-events: none;            /* only the buttons catch taps */
    z-index: 45;
  }
  .m-fab {
    pointer-events: auto;
    display: inline-flex; align-items: center; gap: 6px;
    appearance: none;
    border: 2px solid var(--line);
    background: rgba(252,253,247,0.96);
    color: var(--ink);
    border-radius: 12px 16px 10px 14px / 14px 10px 16px 12px;
    padding: 9px 14px;
    font-family:'JetBrains Mono', ui-monospace, monospace;
    font-size: 12.5px; letter-spacing: .02em; font-weight: 500;
    box-shadow: 1.5px 2px 0 rgba(43,43,43,0.16);
    backdrop-filter: blur(2px);
  }
  .m-fab:active { transform: translate(1px,1.5px); box-shadow: .5px 1px 0 rgba(43,43,43,0.12); }
  .m-fab-glyph { font-size: 15px; line-height: 1; }

  /* ── dismiss scrim ────────────────────────────────────────────────── */
  .mobile-scrim {
    display: block;
    position: fixed; inset: 0;
    background: rgba(43,43,43,0.28);
    backdrop-filter: blur(1px);
    z-index: 50;
  }
  .mobile-scrim[hidden] { display: none; }

  /* ── menu drawer (slides down from the top) ───────────────────────── */
  .topnav {
    position: fixed;
    left: 0; right: 0; top: 0;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    border-radius: 0 0 18px 18px;
    border-width: 0 0 2px 0;
    padding: 16px 16px 18px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 60;
    transform: translateY(-105%);
    transition: transform .26s cubic-bezier(.4,.0,.2,1);
    box-shadow: 0 6px 14px rgba(43,43,43,0.18);
  }
  .topnav.is-open { transform: translateY(0); }
  .topnav::before, .topnav::after { display: none; }   /* drop the tape on mobile */

  .legend {
    border-right: none;
    border-bottom: 1.5px dashed rgba(43,43,43,0.22);
    padding-right: 0; padding-bottom: 12px;
    margin-right: 0;
    gap: 9px 14px;
  }
  .legend-item { font-size: 12px; }

  .controls { gap: 8px; }
  .controls .btn { flex: 1 1 auto; justify-content: center; text-align: center; }

  .tag-trigger-wrap, #tagTrigger { display: block; width: 100%; }
  #tagTrigger { justify-content: center; }
  /* popover opens as a centred sheet rather than an offscreen dropdown */
  .tag-popover {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 92vw; max-width: 420px;
    max-height: 80vh; overflow-y: auto;
    z-index: 120;
  }

  .searchwrap {
    border-left: none;
    padding-left: 0; margin-left: 0;
    flex: 1 1 auto;
  }
  .searchwrap input[type="text"] { flex: 1 1 auto; width: auto; max-width: none; }

  /* ── info / details sheet (slides in from the right) ──────────────── */
  .side {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(420px, 88vw);
    border-left: 2px solid var(--line);
    box-shadow: -6px 0 14px rgba(43,43,43,0.18);
    padding: 20px 18px 30px;
    z-index: 60;
    transform: translateX(105%);
    transition: transform .26s cubic-bezier(.4,.0,.2,1);
    -webkit-overflow-scrolling: touch;
  }
  .side.is-open { transform: translateX(0); }

  /* keep the about panel above the drawers */
  .hint-panel { z-index: 200; max-width: 92vw; }
}
