/* Why: Merlive's site is one of Victor's family (skills.victorsaly.com): paper and ink, one marigold, rules in
   three weights, square corners, no shadows. The tokens are that site's, value for value, so the two read as one
   hand. Merlive's own setup reads this file for the colours of every diagram drawn on the site. */
@font-face {
  font-family: 'Atkinson Hyperlegible Next Variable';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next Variable';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Atkinson Hyperlegible Mono Variable';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/atkinson-hyperlegible-mono-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --quiet: #525252; /* 7.8:1 on paper */
  --hush: #6b6b6b; /* 5.3:1 on paper */
  --rule: #cfcfcf;
  --wash: #f4f4f4;
  --mark: #ffc400;
  --mark-ink: #000000;
  --font: 'Atkinson Hyperlegible Next Variable', 'Atkinson Hyperlegible', system-ui, sans-serif;
  --mono: 'Atkinson Hyperlegible Mono Variable', ui-monospace, 'SF Mono', Menlo, monospace;
  --heavy: 8px;
  --strong: 3px;
  --hair: 1px;
  --gutter: clamp(16px, 4vw, 40px);
  --page: 1240px;
  --measure: 68ch;
  --side: 15.5rem; /* the docs' list of pages: its longest name on one line */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1c1c; /* charcoal: pure black under light text glares */
    --ink: #e6e6e6;
    --quiet: #b0b0b0;
    --hush: #9a9a9a;
    --rule: #454545;
    --wash: #262626;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--hush) var(--paper);
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

::selection {
  background: var(--mark);
  color: var(--mark-ink);
}

h1,
h2,
h3,
h4 {
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

code,
pre,
kbd {
  font-family: var(--mono);
  font-size: 0.9em;
}

pre {
  margin: 0;
  padding: 14px 16px;
  background: var(--wash);
  border: var(--hair) solid var(--rule);
  overflow-x: auto;
  line-height: 1.5;
}

pre code {
  font-size: 1em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
select,
textarea,
input {
  font: inherit;
  color: inherit;
  border-radius: 0;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--page));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The frame: Merlive's mark and name, the three places to go, the source. */
.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  z-index: 10;
}
.skip:focus {
  top: 8px;
}
.bar {
  border-bottom: var(--hair) solid var(--ink);
}
.bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 24px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.25rem;
}
.mark {
  flex: none;
}
.mark .box {
  fill: var(--ink);
}
.mark .dot {
  fill: var(--mark);
}
.wordmark {
  font-weight: 800;
  letter-spacing: -0.02em;
}
/* Marigold letters do not read on white, so on paper "live" is underlined in it; on charcoal the letters are. */
.wordmark .live {
  text-decoration: underline;
  text-decoration-color: var(--mark);
  text-decoration-thickness: 0.17em;
  text-underline-offset: 0.06em;
  text-decoration-skip-ink: none;
}
@media (prefers-color-scheme: dark) {
  .wordmark .live {
    color: var(--mark);
    text-decoration: none;
  }
}
.places {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 4px;
  margin: 0 -10px 0 auto;
  padding: 0;
  list-style: none;
}
.places a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 10px 13px;
  text-decoration: none;
  border-bottom: var(--strong) solid transparent;
  white-space: nowrap;
}
.places a:hover {
  border-bottom-color: var(--rule);
}
.places a[aria-current] {
  font-weight: 700;
  border-bottom-color: var(--mark);
}
.foot {
  margin-top: clamp(64px, 10vw, 120px);
  border-top: var(--strong) solid var(--ink);
  padding: 28px 0 48px;
  font-size: 0.95rem;
  color: var(--quiet);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
}
.foot b {
  color: var(--ink);
}
.family {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* The separator is drawn after each item, so a line that wraps starts on a word, never on a dot. */
.family li:not(:last-child)::after {
  content: '·';
  padding: 0 0.45em;
  color: var(--hush);
}

/* The install line: the one filled action, written as an added line of a diff. */
.install {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: stretch;
  border: var(--strong) solid var(--ink);
  background: var(--paper);
  transition: background-color 220ms var(--ease-out);
  max-width: 720px;
}
.install .gutter {
  display: grid;
  place-items: center;
  border-right: var(--hair) solid var(--ink);
  background: var(--mark);
  color: var(--mark-ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
}
.install .tick {
  display: none;
}
.install .cmd {
  align-self: center;
  padding: 14px 16px;
  font-size: clamp(0.88rem, 0.8rem + 0.4vw, 1.05rem);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.install .copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-left: var(--strong) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 1rem;
  padding: 0 20px;
  min-height: 52px;
  cursor: pointer;
  transition: transform 140ms var(--ease-out);
}
.install .copy:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.install .copy:active {
  transform: scale(0.97);
}
.install .copy:focus-visible {
  outline-offset: -7px;
  outline-color: var(--paper);
}
.install[data-copied] {
  background: var(--mark);
}
.install[data-copied] .cmd {
  color: var(--mark-ink);
}
.install[data-copied] .plus {
  display: none;
}
.install[data-copied] .tick {
  display: block;
}
.works {
  font-size: 0.95rem;
  color: var(--quiet);
  max-width: 720px;
}

/* A plain button: an ink outline, as a tag is. The install line's Copy stays the only filled one. */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 16px;
  border: var(--hair) solid var(--ink);
  background: var(--paper);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
}
.tag {
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.85rem;
  border: var(--hair) solid currentColor;
  padding: 1px 10px;
}

/* The home page. */
.head {
  padding-top: clamp(28px, 5vw, 64px);
  display: grid;
  gap: 16px;
}
.head h1 {
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 16ch;
}
.lede {
  max-width: 76ch;
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem);
}
.cta {
  display: grid;
  gap: 12px;
}
.section {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid;
  gap: 18px;
}
.section > h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  letter-spacing: -0.02em;
  padding-top: 18px;
  border-top: var(--heavy) solid var(--ink);
}
.section > p {
  max-width: var(--measure);
}
.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--strong) solid var(--ink);
}
.doors li {
  padding: 16px 20px 20px 0;
  border-bottom: var(--hair) solid var(--ink);
  display: grid;
  gap: 6px;
  align-content: start;
}
.doors h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  letter-spacing: -0.01em;
}
.doors p {
  color: var(--quiet);
  font-size: 0.95rem;
}

/* One block of Mermaid, drawn twice. Merlive's column is the after: it carries the marigold bar. */
.pair {
  display: grid;
  gap: 12px;
  margin: 0;
}
@media (min-width: 900px) {
  .pair {
    grid-template-columns: 1fr 1fr;
  }
}
.pair figure {
  margin: 0;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}
.pair figcaption {
  padding: 6px 0;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: var(--hair) solid var(--rule);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.pair figcaption span {
  font-weight: 400;
  color: var(--quiet);
  font-size: 0.85rem;
}
.pair figure.ours figcaption {
  box-shadow: inset 0 -6px 0 var(--mark);
  padding-bottom: 10px;
}
/* A pane scrolls sideways before its picture is shown smaller than a label can be read at. */
.pane {
  overflow-x: auto;
  padding: 12px;
  border: var(--hair) solid var(--rule);
  align-self: start;
}
/* Mermaid's own pictures are drawn on white, so they sit on white in both schemes. */
.pane.theirs {
  background: #fff;
  color: #000;
}
.pane img {
  max-width: none;
  width: clamp(calc(var(--w) * 0.6px), 100%, calc(var(--w) * 1px));
}
.none {
  padding: 12px;
  border: var(--hair) dashed var(--hush);
  font-size: 0.95rem;
  color: var(--quiet);
  overflow-wrap: anywhere;
  align-self: start;
}
.live-frame {
  display: block;
  width: 100%;
  height: 980px;
  border: var(--hair) solid var(--rule);
  background: #fff;
}

/* Drag between: the two drawings one over the other, Merlive's cut at a handle. Built as Cloisto's compare is,
   in this site's manner: square, ink, no shadow. The handle is black and marigold, with a white edge, because
   it crosses Mermaid's white page and this site's own, light or dark. */
.views,
.seg {
  display: flex;
  gap: 8px;
}
.views .button,
.seg .button {
  min-height: 36px;
  padding: 2px 12px;
  font-size: 0.9rem;
}
.filters .views {
  margin-left: auto;
}
.handle,
.cmp {
  display: none;
}
.pair[data-view='drag'] .handle {
  display: flex;
}
.pair[data-view='drag'] {
  grid-template-columns: 1fr;
  position: relative;
  --pos: 50%;
}
.pair[data-view='drag'] > figure {
  grid-area: 1 / 1;
}
.pair[data-view='drag'] figcaption {
  padding-bottom: 10px;
}
.pair[data-view='drag'] figure.ours figcaption {
  justify-self: end;
  border-bottom-color: transparent;
}
.pair[data-view='drag'] :is(.pane, .none) {
  overflow: hidden;
  align-self: stretch;
  display: grid;
  justify-items: center;
  align-content: start;
}
.pair[data-view='drag'] .pane :is(img, svg) {
  width: min(100%, calc(var(--w, 9999) * 1px));
}
.pair[data-view='drag'] figure.ours :is(.pane, .none) {
  background: var(--paper);
  clip-path: inset(0 0 0 var(--pos));
}
.pair[data-view='drag'] .handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #000;
  outline: 1px solid #fff;
  pointer-events: none;
  align-items: center;
}
.grip {
  /* Half-way down the drawings, and held on the screen while a tall pair is scrolled past. */
  position: sticky;
  top: 30vh;
  bottom: 30vh;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: -20.5px;
  display: grid;
  place-items: center;
  background: var(--mark);
  color: var(--mark-ink);
  border: 2px solid #000;
  outline: 1px solid #fff;
  font-weight: 700;
  pointer-events: auto;
  cursor: ew-resize;
  touch-action: none;
}
.pair[data-view='drag'] + .cmp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.pair[hidden] + .cmp {
  display: none;
}
.cmp input[type='range'] {
  flex: 1;
  min-width: 120px;
  min-height: 44px;
  accent-color: var(--ink);
}
.prose > .views,
.prose > .cmp {
  max-width: none;
}

/* The docs: the list of pages down one side, the page beside it. */
.docs {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-top: clamp(20px, 3vw, 36px);
  align-items: start;
}
.side {
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  padding: 8px 0 24px;
  font-size: 0.95rem;
}
.side summary {
  display: none;
}
.side h2 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 18px 0 6px;
}
.side > nav > h2:first-child,
.side details > nav > h2:first-child {
  margin-top: 0;
}
/* The list is a path, as in the mark: one ink line, and the dot on it is where you are. */
.side ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--ink);
}
.side li a {
  display: block;
  position: relative;
  padding: 3px 0 3px 16px;
  text-decoration: none;
}
.side li a:hover {
  text-decoration: underline;
}
.side li a[aria-current] {
  font-weight: 700;
}
.side li a[aria-current]::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0.62em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mark);
  border: 2px solid var(--ink);
}
.prose {
  min-width: 0;
  display: grid;
  gap: 16px;
  justify-items: start;
}
.prose > * {
  max-width: var(--measure);
  width: 100%;
}
.prose h1 {
  font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  max-width: 22ch;
}
.prose h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  letter-spacing: -0.02em;
  margin-top: 28px;
  padding-top: 14px;
  border-top: var(--strong) solid var(--ink);
  max-width: none;
}
.prose h3 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-top: 14px;
}
.prose h4 {
  font-size: 1.05rem;
  margin-top: 8px;
}
/* A heading is its own link, shown only when the reader is on it. */
.prose :is(h2, h3) a {
  text-decoration: none;
}
.prose :is(h2, h3) a:hover {
  text-decoration: underline;
}
.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 6px;
}
.prose li > :is(ul, ol) {
  margin-top: 6px;
}
.prose li > p + p {
  margin-top: 8px;
}
.prose blockquote {
  margin: 0;
  padding: 4px 0 4px 18px;
  border-left: var(--strong) solid var(--mark);
  color: var(--quiet);
}
.prose hr {
  border: 0;
  border-top: var(--hair) solid var(--rule);
  margin: 8px 0;
}
.prose > pre,
.prose > .scroll,
.prose > .pair,
.prose > .cards,
.prose > figure {
  max-width: none;
}
/* A table wider than its column scrolls inside itself, not the page. */
.scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  line-height: 1.45;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 14px 8px 0;
  border-bottom: var(--hair) solid var(--rule);
}
th {
  border-bottom: var(--hair) solid var(--ink);
  white-space: nowrap;
}
td code {
  overflow-wrap: anywhere;
}
.drawn {
  margin: 0;
  display: grid;
  gap: 8px;
}
.drawn figcaption {
  font-size: 0.9rem;
  color: var(--quiet);
}
.next {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: var(--hair) solid var(--ink);
  max-width: none;
  font-weight: 700;
}
.edit {
  font-size: 0.9rem;
  color: var(--quiet);
}

/* The library: every sample, drawn twice. */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--strong) solid var(--ink);
  column-gap: 28px;
}
.tiles li {
  border-bottom: var(--hair) solid var(--ink);
}
.tiles a {
  display: grid;
  gap: 2px;
  padding: 14px 0 16px;
  text-decoration: none;
}
.tiles a:hover b {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
.tiles b {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.tiles span {
  color: var(--quiet);
  font-size: 0.9rem;
}
.find {
  display: grid;
  gap: 8px;
  max-width: 720px;
}
.find label {
  font-weight: 700;
}
.find input,
.field {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: var(--strong) solid var(--ink);
  background: var(--paper);
}
.found {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--hair) solid var(--ink);
  max-width: var(--measure);
}
.found:empty {
  display: none;
}
.found li {
  border-bottom: var(--hair) solid var(--rule);
}
.found a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 8px 0;
  text-decoration: none;
}
.found a:hover b {
  text-decoration: underline;
}
.found b {
  font-weight: 400;
}
.found span {
  color: var(--quiet);
  font-size: 0.85rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--paper);
  padding: 10px 0;
  border-bottom: var(--hair) solid var(--ink);
}
.filters .button {
  min-height: 36px;
  padding: 2px 12px;
  font-size: 0.9rem;
}
.cards {
  display: grid;
  gap: 0;
}
.card {
  padding: 18px 0 22px;
  border-bottom: var(--hair) solid var(--ink);
  display: grid;
  gap: 10px;
  scroll-margin-top: 64px;
}
.card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.card h3 a {
  text-decoration: none;
}
.card h3 a:hover {
  text-decoration: underline;
}
.card:target h3 {
  box-shadow: inset 0 -0.5em 0 var(--mark);
  justify-self: start;
}
@media (prefers-color-scheme: dark) {
  .card:target h3 {
    box-shadow: none;
    color: var(--mark);
  }
}
.result {
  font-size: 0.9rem;
  color: var(--quiet);
}
.result b {
  color: var(--ink);
}
.card details {
  font-size: 0.9rem;
}
.card summary,
.more summary {
  cursor: pointer;
  font-weight: 700;
}
.card pre {
  margin-top: 8px;
}
.card .foot-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 0.9rem;
  align-items: baseline;
}
body[data-show='drawn'] .card:not([data-result='drawn']),
body[data-show='less'] .card:not([data-result='less']),
body[data-show='partly'] .card:not([data-result='partly']),
body[data-show='refused'] .card:not([data-result='refused']),
body[data-show='left'] .card:not([data-result='left']) {
  display: none;
}

/* Try it: the Mermaid on one side, the two drawings of it beside each other. */
.try {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
@media (min-width: 1100px) {
  .try {
    grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
    align-items: start;
  }
}
.try-source {
  display: grid;
  gap: 10px;
}
.try-source label,
.try-row label {
  font-weight: 700;
  font-size: 0.95rem;
}
.try-source textarea {
  width: 100%;
  min-height: 26rem;
  padding: 12px 14px;
  border: var(--strong) solid var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.5;
  resize: vertical;
  white-space: pre;
  overflow: auto;
  tab-size: 2;
}
select {
  min-height: 40px;
  padding: 4px 10px;
  border: var(--hair) solid var(--ink);
  background: var(--paper);
  max-width: 100%;
}
.try-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
/* A long name in a list gives way to the column it is in, never the other way round. */
.try-row select {
  flex: 1 1 8rem;
  min-width: 0;
}
.try .pair figcaption {
  align-items: center;
  min-height: 56px;
}
.try .pair figcaption label {
  font-weight: 400;
  font-size: 0.85rem;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.try .pair figcaption select {
  min-height: 34px;
  font-size: 0.85rem;
}
.try .pair figure {
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
  gap: 0;
}
.try .pane {
  min-height: 12rem;
}
.try .pane svg {
  display: block;
  max-width: 100%;
  height: auto;
}
#live {
  display: block;
  width: 100%;
  height: min(82vh, 860px);
  border: var(--hair) solid var(--rule);
  background: #fff;
}
.said {
  font-size: 0.9rem;
  color: var(--quiet);
  margin-top: 10px;
}
.said b {
  color: var(--ink);
}
.checks {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  border-top: var(--hair) solid var(--rule);
}
.checks li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0 8px;
  padding: 5px 0;
  border-bottom: var(--hair) solid var(--rule);
}
.checks .id {
  font-family: var(--mono);
  font-weight: 700;
}
.checks .detail {
  grid-column: 2;
  color: var(--quiet);
}
/* A broken rule is said in words and by a heavy ink bar, never by colour alone. */
.checks li[data-ok='false'] {
  border-left: var(--heavy) solid var(--ink);
  padding-left: 8px;
  font-weight: 700;
}
.more {
  border-top: var(--hair) solid var(--rule);
  padding-top: 12px;
  display: grid;
  gap: 10px;
}
.more textarea {
  width: 100%;
  min-height: 9rem;
  padding: 10px 12px;
  border: var(--hair) solid var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.85rem;
}
[hidden] {
  display: none !important;
}

/* On Try it the dragged pictures have no size written on them, so each keeps its own. */
#dragged .pane :is(img, svg) {
  width: auto;
  max-width: 100%;
}

@media (max-width: 860px) {
  .docs {
    grid-template-columns: 1fr;
  }
  /* On a phone the list of pages folds away above the page, and opens when asked. */
  .side {
    position: static;
    max-height: none;
    padding: 0;
    border-bottom: var(--hair) solid var(--ink);
  }
  .side summary {
    display: block;
    cursor: pointer;
    font-weight: 700;
    padding: 12px 0;
  }
  .side details > nav {
    padding-bottom: 16px;
  }
  .live-frame {
    display: none;
  }
}
@media (max-width: 560px) {
  .places a {
    padding-inline: 8px;
  }
  .brand {
    padding-top: 10px;
  }
}
@media (max-width: 480px) {
  .install {
    grid-template-columns: 2rem 1fr;
  }
  .install .copy {
    grid-column: 1 / -1;
    justify-content: center;
    border-left: 0;
    border-top: var(--strong) solid var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}

@media print {
  .bar,
  .side,
  .foot,
  .filters {
    display: none;
  }
  .docs {
    display: block;
  }
}
