/* =================================================================
   The web guides, dressed as part of isthmussoundcollective.com
   (Diego, 12 Nov 2026: "everything is just floating on nothing").
   Loaded after the manual's guide.css. The site's paper, its top
   bar, and every topic on a card: the picture on a plate, its
   numbered notes attached underneath.
   ================================================================= */

:root {
  --paper: #edede8;        /* the site's paper */
  --paper-2: #e2e2dc;
  --card: #f7f7f4;         /* the site's white */
  --line: rgba(25, 25, 23, 0.12);
  --bar: 56px;
}
body { background: var(--paper); }

/* ---- the site's top bar ---- */
.sitebar {
  position: sticky; top: 0; z-index: 30; height: var(--bar);
  display: flex; align-items: center; gap: 28px; padding: 0 28px;
  background: var(--paper); border-bottom: 1px solid var(--fg);
  font-family: var(--pixel); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
}
.sitebar a { text-decoration: none; }
.sitebar .home { letter-spacing: 0.2em; margin-right: auto; }
.sitebar nav { display: flex; gap: 22px; }
.sitebar nav a { color: var(--dim); }
.sitebar nav a:hover { color: var(--fg); }
.sitebar nav a[aria-current] { color: var(--fg); border-bottom: 1px solid var(--fg); padding-bottom: 2px; }
.sitebar .buy { border: 1px solid var(--fg); padding: 9px 14px; background: var(--fg); color: var(--paper); }
/* on a phone the bar has no room for the other manuals: they sit in a row under it (15 Nov 2026) */
.otherguides { display: none; }
.sitebar .buy:hover { background: var(--p-glass); color: var(--p-on-glass); }

/* ---- the contents column, under the bar ---- */
body > .wrap { min-height: calc(100vh - var(--bar)); }
.side { top: var(--bar); height: calc(100vh - var(--bar)); background: var(--paper); border-right: 1px solid var(--fg); padding-top: 26px; }
.side .home { display: none; }                         /* the bar has the way home now */
.side .ch { font-family: var(--text); font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.side .ch b { font-family: var(--pixel); font-size: 10px; color: var(--dim); display: inline-block; width: 22px; }
.side a.on .ch b { color: inherit; }
.side ol ol a { font-size: 13.5px; }
.side .pdf { background: var(--card); }

/* ---- the page ---- */
main { max-width: 1120px; padding: 40px clamp(20px, 4vw, 56px) 120px; }
.howto { display: none; }                               /* the contents column says it already */

/* the header: one glass block, like the site's panels */
.hero {
  background: var(--p-glass); color: var(--p-on-glass);
  border: 1px solid var(--fg); padding: 40px 44px; margin: 0 0 8px;
  grid-template-columns: 1fr auto; align-items: center;
}
.hero h1 { font-size: clamp(40px, 5vw, 72px); }
.hero .meta { color: inherit; opacity: 0.7; }
.hero img { width: 132px; background: var(--card); }
.hero .acts { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero .acts a {
  font-family: var(--pixel); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  text-decoration: none; border: 1px solid var(--fg); padding: 11px 16px; background: var(--card); color: var(--fg);
}
.hero .acts a.solid { background: var(--fg); color: var(--card); }

/* ---- chapters ---- */
section.chapter { border-top: 0; padding-top: 0; margin-top: 88px; }
.chapnum {
  display: flex; align-items: center; gap: 14px; margin: 0 0 6px; max-width: none;
  border-bottom: 1px solid var(--fg); padding-bottom: 12px;
}
.chapnum b { background: var(--fg); color: var(--paper); border: 0; padding: 6px 9px; }
section.chapter > h2 { margin: 26px 0 14px; }
section.chapter h3 { margin: 48px 0 14px; }

/* every topic on a card */
.card {
  background: var(--card); border: 1px solid var(--fg);
  padding: 0; margin: 0 0 18px; overflow: hidden;
}
.card > *:not(.fig):not(.cols):not(.plate-row) { margin-left: 32px; margin-right: 32px; }
.card > :first-child:not(.fig):not(.cols) { margin-top: 28px; }
.card > :last-child { margin-bottom: 28px; }
.card > .fig:last-child, .card > .cols:last-child { margin-bottom: 0; }

/* the picture sits on a plate across the card */
.card > .fig {
  margin: 0 0 4px; max-width: none !important; width: auto !important;
  background: var(--paper-2); border-bottom: 1px solid var(--fg);
  padding: 44px 32px 36px; display: flex; justify-content: center;
}
.card > .fig svg { width: 100%; max-width: 760px; }
.card > .fig.mid svg { max-width: 620px; }
.card > .fig.narrow svg { max-width: 380px; }

/* picture and notes side by side: the plate is the left column */
.card > .cols { gap: 0; margin: 0; align-items: stretch !important; }
.card > .cols > .fig {
  margin: 0; max-width: none !important; width: auto !important;
  background: var(--paper-2); border-right: 1px solid var(--fg);
  padding: 40px 32px; display: flex; align-items: center; justify-content: center;
}
.card > .cols > :not(.fig) { padding: 32px; }

/* the numbered notes: a tidy list with hairlines, attached to the picture */
.card .keys { gap: 0 40px; margin: 22px 32px 28px; }
.card .keys li { padding: 14px 0; border-top: 1px solid var(--line); }
.card .keys.two li:nth-child(-n+2), .card .keys:not(.two) li:first-child { border-top: 0; }

/* tables, steps, notes on cards too */
.card table.ref { width: calc(100% - 64px); }
.card .steps { border: 0; margin: 0; }
.card .steps li { padding: 28px 28px 32px; }
.card .note, .card .box { max-width: none; }
.note { border: 1px solid var(--fg); }

@media (max-width: 860px) {
  .sitebar { gap: 14px; padding: 0 16px; }
  .sitebar nav { display: none; }
  .otherguides { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 12px 16px; border-bottom: 1px solid var(--fg); background: var(--paper); font-family: var(--pixel); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; }
  .otherguides span { color: var(--dim); }
  .otherguides a { text-decoration: none; padding: 6px 0; }
  .otherguides a[aria-current] { border-bottom: 1px solid var(--fg); }
  .side { top: var(--bar); height: auto; }
  .hero { padding: 28px 22px; grid-template-columns: 1fr; }
  .hero img { width: 96px; }
  .card > *:not(.fig):not(.cols) { margin-left: 20px; margin-right: 20px; }
  .card > .fig { padding: 28px 16px 22px; }
  .card .keys { margin: 16px 20px 22px; }
  .card > .cols > .fig { border-right: 0; border-bottom: 1px solid var(--fg); }
  .card > .cols > :not(.fig) { padding: 20px; }
  .card table.ref { width: calc(100% - 40px); }
}
