/* The slopped.site header and its drawer (world/header.mjs makes the markup; slopped-brand, "Page pattern").
   Copied to every site by `npm run sync:brand`; never edit the copies. Uses the page's brand tokens when defined, so the network theme (/shared/theme.css, themes skill) dresses it too. */

/* the drawer's title is Archivo Black (self-hosted, copied by sync:brand); declared here too so every page has it */
@font-face { font-family: "Archivo Black"; src: url(/fonts/archivo-black-latin.woff2) format("woff2"); font-weight: 400 1000; font-display: swap; }
@font-face { font-family: "Archivo Black Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("Noto Sans Bold"), local("NotoSans-Bold"); size-adjust: 112%; }

/* ------------------------------------------------------------ the bar: masthead left, links + one icon right */
.sh-wrap { box-sizing: border-box; max-width: var(--sh-max, 1440px); margin: 0 auto; padding: 0 var(--sh-pad, 5%); }
.sh-wrap *, .sh-drawer, .sh-drawer * { box-sizing: border-box; }
header.sh {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 100px; margin: 0; padding: 0; border-bottom: 1px solid var(--line, #d4d2c9);
  background: none; color: var(--ink, #171815); font-family: Arial, Helvetica, sans-serif;
}
header.sh .masthead { display: flex; align-items: center; flex: none; min-width: 0; }
header.sh .brand { display: flex; align-items: center; flex: none; min-height: 42px; line-height: 0; }
header.sh .brand img { display: block; width: auto; height: 30px; }
header.sh .site-name {
  display: inline-flex; align-items: center; min-height: 42px; margin-left: 16px; padding-left: 17px;
  background: linear-gradient(var(--line, #d4d2c9), var(--line, #d4d2c9)) left center / 1px 22px no-repeat;
  color: var(--ink, #171815); font: 700 16px/1.2 Arial, Helvetica, sans-serif; letter-spacing: -.3px; text-decoration: none; white-space: nowrap;
}
header.sh .site-name:hover { text-decoration: underline; text-underline-offset: 4px; }
header.sh .sh-nav {
  display: flex; align-items: center; justify-content: flex-end; gap: 30px; flex: 1 1 auto; min-width: 0;
  margin: 0 0 0 auto; padding: 0; overflow: hidden; white-space: nowrap; font: 400 14px/1.2 Arial, Helvetica, sans-serif;
}
header.sh .sh-nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 0; color: var(--ink, #171815); text-decoration: none; }
header.sh .sh-nav a:hover, header.sh .sh-nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
header.sh.sh-fold .sh-nav { visibility: hidden; }

/* the one icon: a 42 px outlined circle with two lines (the brand's header buttons) */
.sh-menu {
  position: relative; display: block; flex: none; width: 42px; height: 42px; margin: 0; padding: 0;
  border: 1px solid var(--ink, #171815); border-radius: 50%; background: transparent; color: var(--ink, #171815);
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.sh-menu::before, .sh-menu::after { content: ""; position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 1px; background: currentColor; }
.sh-menu::before { top: 16px; }
.sh-menu::after { top: 22px; }
.sh-menu:focus-visible, .sh-drawer a:focus-visible, .sh-drawer button:focus-visible { outline: 3px solid var(--focus, #728600); outline-offset: 3px; }
.sh-menu:focus-visible { outline-offset: 5px; }

@media (max-width: 760px) {
  header.sh { height: 80px; gap: 12px; }
  header.sh .brand img { height: 24px; }
  header.sh .site-name { margin-left: 11px; padding-left: 12px; font-size: 15px; background-size: 1px 18px; }
  header.sh .sh-nav { display: none; }
}

/* ------------------------------------------------------------ the drawer */
dialog.sh-drawer {
  position: fixed; inset: 0; z-index: 1000; display: none; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; overflow: hidden; background: transparent; color: var(--ink, #171815);
  font: 400 15px/1.4 Arial, Helvetica, sans-serif; text-align: left;
}
dialog.sh-drawer[open], dialog.sh-drawer:target { display: block; }
dialog.sh-drawer::backdrop { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
html.sh-open, html.sh-open body { overflow: hidden; }
.sh-scrim { position: absolute; inset: 0; display: block; background: rgba(23, 24, 21, .42); cursor: default; }
:root[data-scheme="dark"] .sh-scrim { background: rgba(0, 0, 0, .6); } /* the network theme (themes skill) */
.sh-panel {
  position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column;
  width: min(380px, calc(100% - 44px)); overflow-y: auto; overscroll-behavior: contain;
  padding: 0 max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) 24px;
  border-left: 1px solid var(--ink, #171815); background: var(--paper, #f4f1e8);
}
.sh-drawer a { color: var(--ink, #171815); text-decoration: none; }
.sh-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: none;
  min-height: 64px; padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--ink, #171815);
}
.sh-top:has(+ .sh-own) { border-bottom: 0; } /* this site's pages belong to its name: one band, one rule under both */
.sh-title { /* a link home: 44 px tall, like every other control in the drawer */
  display: flex; align-items: center; min-height: 44px; min-width: 0; font-family: "Archivo Black", "Arial Black", "Archivo Black Fallback", Arial, sans-serif; font-size: 26px; font-weight: 1000;
  font-synthesis: none; letter-spacing: -1px; line-height: 1.05; overflow-wrap: anywhere;
}
.sh-close { position: relative; display: block; flex: none; width: 42px; height: 42px; border: 1px solid var(--ink, #171815); border-radius: 50%; }
.sh-close::before, .sh-close::after { content: ""; position: absolute; top: 19px; left: 11px; width: 18px; height: 2px; border-radius: 1px; background: var(--ink, #171815); transform: rotate(45deg); }
.sh-close::after { transform: rotate(-45deg); }
/* hover fills only where there is a pointer that hovers (a tap would leave them stuck black on phones) */
@media (hover: hover) {
  .sh-menu:hover { background: var(--ink, #171815); color: var(--paper, #f4f1e8); }
  .sh-close:hover { background: var(--ink, #171815); }
  .sh-close:hover::before, .sh-close:hover::after { background: var(--paper, #f4f1e8); }
}

/* ------------------------------------------------------------ the top of the drawer (2026-10-17, its rework)
   One band for this site, one shelf for the visitor's things, then the network:
   1. the band: the site's name, and under it its own pages as a run of bold words that wraps like a line of type
      (any count, 0 to 8+, never a half-filled grid row: no cells, no rules between them); an ink rule closes it.
   2. the shelf: the player, then the actions (Install, Saved ♡ …, the wallet, Theme) as rows of one grammar: a muted
      key, a bold value, a glyph at the far edge (› goes somewhere, ▾ chooses, ↗ opens a window), every row --sh-row
      tall, hairlines between. On a wide drawer the rows pair up on the network's two columns (flex-wrap, each half
      grows, so an odd one out takes the whole line, never half of it).
   3. Elsewhere's ink rule sits on the shelf's last hairline (margin-top: -1px), so the bands are ruled once each. */
.sh-panel { --sh-row: 44px; --sh-gut: 12px; }
.sh-own { display: flex; flex-wrap: wrap; column-gap: 22px; margin: -6px 0 0; padding: 0 0 8px; border-bottom: 1px solid var(--ink, #171815); }
.sh-own a { display: inline-flex; align-items: center; min-height: var(--sh-row); max-width: 100%; font-size: 17px; font-weight: 700; letter-spacing: -.3px; line-height: 1.15; overflow-wrap: anywhere; }
.sh-own a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* here: the acid mark the network list gives the current site */
.sh-own a[aria-current] { margin: 0 -5px; padding: 0 5px; background: linear-gradient(var(--acid, #e3ff59), var(--acid, #e3ff59)) center / 100% 1.55em no-repeat; color: var(--on-acid, #171815); }
.sh-drawer .sh-own a:focus-visible { outline-offset: 2px; }

/* the shelf's rows: Install, Saved ♡, a trade handle (net.js), the wallet (header.js), Theme (/shared/theme.js) */
.sh-actions { display: flex; flex-wrap: wrap; column-gap: var(--sh-gut); margin: 0; padding: 0; }
.sh-actions > * { flex: 1 1 100%; min-width: 0; }
.sh-actions > .sh-wallet { order: 1; }
.sh-actions > .sh-theme { order: 2; }
html:not(.can-install) .sh-drawer [data-install] { display: none !important; }
.sh-actions > [hidden] { display: none !important; }
.sh-actions > button, .sh-actions > a, .sh-np-pop {
  display: flex; align-items: center; gap: 2px 8px; min-height: var(--sh-row); margin: 0; padding: 6px 0; border: 0; border-bottom: 1px solid var(--line, #d4d2c9); border-radius: 0;
  background: transparent; color: var(--ink, #171815); font: 700 14px/1.25 Arial, Helvetica, sans-serif; text-align: left; text-decoration: none; cursor: pointer;
}
.sh-actions svg { display: none; } /* type, not icons: the key says what it is */
.sh-wallet .sh-wallet-k { font-weight: 400; color: var(--muted, #6b6b62); }
.sh-wallet b { font-weight: 700; }
/* the edge glyph: › on a link (it goes to another page) */
.sh-actions > a[href]::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px 0 auto; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.sh-actions > [aria-pressed="true"] { padding-left: 8px; background: var(--acid, #e3ff59); color: var(--on-acid, #171815); }
.sh-actions > button:hover, .sh-actions > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sh-drawer .sh-actions > :focus-visible, .sh-drawer .sh-np-pop:focus-visible { outline-offset: 2px; }

/* Elsewhere: every live site. An ink rule sets the network apart from this site; its heading is for screen readers,
   so each group's label (the brand's eyebrow: 11 px caps, muted) is the only one you see. Each label is a button that
   folds its group (header.js; remembered per visitor in the slopped_drawer cookie). Sites sit two to a row, the drawn
   icon and the name; the tagline is read out with the name (and shown when the drawer is wide, on desktop).
   Every row and label is 44 px tall on a touch screen, 36 / 32 px with a mouse (WCAG 2.5.8 with spacing). */
.sh-vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sh-else { position: relative; display: block; margin: -1px 0 0; padding: 0; border-top: 1px solid var(--ink, #171815); }
.sh-else ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; margin: 0 0 6px; padding: 0; list-style: none; }
.sh-else ul[hidden] { display: none; }
.sh-else li { margin: 0; padding: 0; min-width: 0; }
.sh-else h3 { /* one per group (world/site-groups.js) */
  margin: 0; padding: 0; color: var(--muted, #6b6b62); font: 700 11px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 2px; text-transform: uppercase; text-wrap: initial;
}
.sh-else h3 { display: flex; align-items: center; min-height: 36px; }
.sh-else h2 + h3 { margin-top: 4px; }
.sh-else ul + h3, .sh-else ul[hidden] + h3 { border-top: 1px solid var(--line, #d4d2c9); }
.sh-gbtn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 36px; margin: 0; padding: 0;
  border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer;
}
.sh-gbtn::after { /* a chevron: down when open, right when folded */
  content: ""; flex: none; width: 7px; height: 7px; margin-right: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg);
}
.sh-gbtn[aria-expanded="false"]::after { transform: rotate(-45deg); }
.sh-gbtn:hover { color: var(--ink, #171815); }
.sh-gbtn:focus-visible { outline: 3px solid var(--focus, #728600); outline-offset: 2px; border-radius: 4px; }
.sh-gbtn .sh-gn { margin-left: auto; letter-spacing: 1px; font-weight: 400; }
.sh-else a { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 9px; align-items: center; min-height: 36px; padding: 3px 0; }
/* each site's drawn icon (icons skill: /shared/icons.svg); ink in currentColor, its own highlight, paper behind */
.sh-else .sh-ico { grid-row: 1 / span 2; width: 24px; height: 24px; color: var(--ink, #171815); --icon-paper: var(--paper, #f4f1e8); }
.sh-else .sh-letter { display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 7px; font: 400 12px/1 "Archivo Black", "Arial Black", Arial, sans-serif; font-style: normal; }
.sh-else a > b, .sh-else a > span { grid-column: 2; }
.sh-else b { display: block; justify-self: start; max-width: 100%; font-size: 15px; font-weight: 700; letter-spacing: -.2px; line-height: 1.2; overflow-wrap: anywhere; }
/* the tagline: read with the name; shown only where the drawer is wide (below) */
.sh-else a > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sh-else a:hover b, .sh-else a:focus-visible b { text-decoration: underline; text-underline-offset: 3px; }
.sh-drawer .sh-else a:focus-visible { outline-offset: 2px; border-radius: 4px; }
.sh-else a[aria-current] b { padding: 0 5px; margin-left: -5px; background: var(--acid, #e3ff59); color: var(--on-acid, #171815); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
/* touch: 44 px rows and labels */
@media (pointer: coarse) {
  .sh-else a, .sh-else h3, .sh-gbtn { min-height: 44px; }
}
/* a wide screen: a wider drawer, and the taglines come back under the names */
@media (min-width: 1000px) and (min-height: 500px) {
  .sh-panel { width: min(560px, calc(100% - 44px)); --sh-gut: 20px; }
  .sh-actions > * { flex-basis: calc(50% - var(--sh-gut) / 2); }
  .sh-panel .sh-np-vol, .sh-panel .sh-np-out { flex-basis: calc(50% - var(--sh-gut) / 2); }
  .sh-panel .sh-np-vol { height: auto; min-height: var(--sh-row); transition: none; }
  .sh-panel .sh-np-vol[hidden] { display: none; }
  .sh-else ul { column-gap: 20px; }
  .sh-else a { grid-template-columns: 30px minmax(0, 1fr); column-gap: 11px; align-items: start; padding: 6px 0; }
  .sh-else .sh-ico { width: 30px; height: 30px; }
  .sh-else .sh-letter { font-size: 15px; border-radius: 8px; }
  .sh-else a > span { position: static; width: auto; height: auto; margin: 1px 0 0; overflow: visible; clip: auto; white-space: normal; display: block; color: var(--muted, #6b6b62); font-size: 12.5px; line-height: 1.3; }
}

/* ------------------------------------------------------------ the drawer's player (music skill, "Music while you browse")
   The shelf's first rows: the head (Play, the song and where it plays, its time, Next), then Volume and "Keep playing
   while I browse" as shelf rows. Nothing jumps when its state changes: the line always keeps two lines (so Next arriving
   only re-wraps it), the time sits on the title's line (out of the live region, which said it every second), and on a phone
   the Volume row opens rather than appears (instantly with reduced motion); on a wide drawer it shares a line with
   "Keep playing", so nothing moves at all. */
.sh-np { display: flex; flex-wrap: wrap; column-gap: var(--sh-gut, 12px); margin: 0; padding: 0; }
.sh-np[hidden] { display: none; }
.sh-np-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; flex: 1 1 100%; min-width: 0; padding: 8px 0; border-bottom: 1px solid var(--line, #d4d2c9); }
.sh-np-btn {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid var(--ink, #171815); border-radius: 50%;
  background: transparent; color: var(--ink, #171815); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.sh-np-next { grid-column: 3; grid-row: 1; }
.sh-np-btn[hidden] { display: none; }
.sh-np-next[hidden] + .sh-np-now { grid-column: 2 / -1; } /* idle: the words take Next's place (the two reserved lines keep the height) */
.sh-np-btn svg { display: block; }
.sh-np-play .sh-np-i-pause, .sh-np-play.on .sh-np-i-play { display: none; }
.sh-np-play.on .sh-np-i-pause { display: block; }
.sh-np-primary { background: var(--ink, #171815); color: var(--paper, #f4f1e8); }
.sh-np-now { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-content: center; min-width: 0; min-height: calc(15px * 1.25 + 12.5px * 1.3 * 2); margin: 0; padding: 0; line-height: 1.25; }
.sh-np-title { overflow: hidden; font-size: 15px; font-weight: 700; letter-spacing: -.2px; text-overflow: ellipsis; white-space: nowrap; }
.sh-np-time { color: var(--muted, #6b6b62); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; align-self: baseline; }
.sh-np-line { grid-column: 1 / -1; color: var(--muted, #6b6b62); font-size: 12.5px; line-height: 1.3; }
.sh-np-vol { display: flex; align-items: center; gap: 12px; flex: 1 1 100%; min-width: 0; height: var(--sh-row); border-bottom: 1px solid var(--line, #d4d2c9); color: var(--muted, #6b6b62); font-size: 14px; overflow: hidden; }
.sh-np-vol[hidden] { display: flex; height: 0; border-bottom-width: 0; opacity: 0; visibility: hidden; }
.sh-np-vol input { flex: 1 1 auto; min-width: 0; height: 44px; margin: 0; accent-color: var(--ink, #171815); cursor: pointer; }
.sh-np-out { display: flex; flex: 1 1 100%; min-width: 0; }
.sh-np-out[hidden] { display: none; }
/* "Keep playing while I browse": a shelf row. The button is the whole row (its name is just the label); its line
   ("Opens a small player window", aria-describedby) is drawn inside it, and ↗ in a circle sits at the edge, filled
   when the visitor's last choice makes it the thing to press (as Play is filled when it is) */
.sh-np-out { position: relative; }
.sh-np-pop { position: relative; width: 100%; padding: 7px 44px 25px 0; }
.sh-np-pop::before, .sh-np-pop::after { content: ""; position: absolute; top: 50%; right: 0; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; }
.sh-np-pop::before { border: 1px solid var(--ink, #171815); }
.sh-np-pop::after { background: currentColor; -webkit-mask: var(--sh-out) center / 14px 14px no-repeat; mask: var(--sh-out) center / 14px 14px no-repeat; }
.sh-np-pop { --sh-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5h10v10M19 5 6 18'/%3E%3C/svg%3E"); }
.sh-np-pop.sh-np-primary::before { background: var(--ink, #171815); }
.sh-np-pop.sh-np-primary::after { background: var(--paper, #f4f1e8); }
.sh-np-note { position: absolute; left: 0; right: 44px; bottom: 8px; color: var(--muted, #6b6b62); font-size: 12.5px; line-height: 1.3; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-np-pop:hover { text-decoration: underline; text-underline-offset: 4px; }
.sh-drawer .sh-np-btn:focus-visible, .sh-drawer .sh-np-vol input:focus-visible { outline: 3px solid var(--focus, #728600); outline-offset: 3px; }
@media (hover: hover) {
  .sh-np-btn:hover { background: var(--ink, #171815); color: var(--paper, #f4f1e8); }
}
@media (prefers-reduced-motion: no-preference) {
  .sh-np-vol { transition: height .2s ease, opacity .2s ease, visibility 0s; }
  .sh-np-vol[hidden] { transition: height .2s ease, opacity .12s ease, visibility 0s .2s; }
}
/* the header's one sign that music plays somewhere: a small acid dot on the menu icon, only while it plays (no chrome
   when idle). Still: no animation, so nothing to reduce */
.sh-np-dot { position: absolute; top: -3px; right: -3px; width: 13px; height: 13px; border: 1.5px solid var(--ink, #171815); border-radius: 50%; background: var(--acid, #e3ff59); pointer-events: none; }
.sh-np-dot[hidden] { display: none; }

@media (max-width: 760px) {
  .sh-top { min-height: 64px; }
  .sh-title { font-size: 22px; }
  .sh-panel { padding-left: 20px; padding-right: max(20px, env(safe-area-inset-right)); }
}

/* the slide: from the right, the scrim fades (none with reduced motion). :target is the no-JavaScript drawer. */
@media (prefers-reduced-motion: no-preference) {
  .sh-drawer .sh-panel { transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
  .sh-drawer .sh-scrim { transition: opacity .26s; }
  .sh-drawer.sh-anim:not(.sh-in) .sh-panel { transform: translateX(100%); }
  .sh-drawer.sh-anim:not(.sh-in) .sh-scrim { opacity: 0; }
  dialog.sh-drawer:target:not([open]) .sh-panel { animation: sh-slide .26s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes sh-slide { from { transform: translateX(100%); } }

/* forced colours (Windows High Contrast): the ☰ and × are drawn with backgrounds, which the system paints over, and
   the current site's acid fill vanishes; draw them in the system's text and highlight colours instead */
@media (forced-colors: active) {
  .sh-menu::before, .sh-menu::after, .sh-close::before, .sh-close::after { forced-color-adjust: none; background: ButtonText; }
  .sh-else a[aria-current] b, .sh-own a[aria-current], .sh-np-dot { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .sh-np-primary:not(.sh-np-pop), .sh-np-pop.sh-np-primary::before { forced-color-adjust: none; background: ButtonText; color: ButtonFace; }
  .sh-np-pop::after { forced-color-adjust: none; background: ButtonText; }
  .sh-np-pop.sh-np-primary::after { background: ButtonFace; }
  .sh-scrim { forced-color-adjust: none; background: rgba(0, 0, 0, .5); }
}
