:root {
  --bg: #edf1f3;
  --surface: #ffffff;
  --ink: #132238;
  --muted: #54657a;
  --line: #cdd7de;
  /* rebeccapurple, the named CSS colour. It sits opposite the yellow release tag. */
  --accent: #663399;
  --on-accent: #ffffff;
  --tag: #f3b61f;
  --on-tag: #2a1d00;
  --danger: #b92a1a;
  --ok: #17734a;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --code: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1926;
    --surface: #162434;
    --ink: #e7eef4;
    --muted: #98a9ba;
    --line: #2b3c4f;
    --accent: #c3a6e8;
    --on-accent: #0e1926;
    --tag: #f3b61f;
    --danger: #ff8a7a;
    --ok: #6fd3a3;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.55 var(--body);
}
.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
main.wrap {
  padding-block: 2rem 4rem;
  min-height: 70vh;
}
.narrow {
  max-width: 38rem;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem);
  font-weight: 750;
}
h2 {
  font-size: 1.35rem;
  font-weight: 700;
}
h3 {
  font-size: 1.05rem;
  font-weight: 650;
}
section {
  margin-top: 3rem;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
code {
  font-family: var(--code);
  font-size: 0.9em;
}
.lede {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 36rem;
}
.meta {
  color: var(--muted);
  font-size: 0.9rem;
}
.meta a {
  color: inherit;
}
.empty {
  color: var(--muted);
  padding: 1.5rem 0;
  border-block: 1px solid var(--line);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  z-index: 2;
}

/* header and footer */
.top {
  border-bottom: 1px solid var(--line);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}
.brand {
  font: 800 1.4rem/1 var(--display);
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
}
.top nav {
  display: flex;
  gap: 1.25rem;
}
.top nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  padding: 0.5rem 0;
}
.top nav a:hover {
  text-decoration: underline;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

/* buttons and forms */
.btn {
  display: inline-block;
  font: 600 1rem/1.2 var(--body);
  padding: 0.7rem 1.1rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn:hover {
  filter: brightness(1.1);
}
.btn.quiet {
  background: transparent;
  color: var(--accent);
}
.btn.danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}
.btn.wide {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
}
button.link {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}
button.link:hover {
  color: var(--ink);
}
input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  width: 100%;
  min-width: 0;
}
input[type='radio'] {
  width: auto;
  margin-top: 0.3rem;
  accent-color: var(--accent);
}
input[type='file'] {
  padding: 0.5rem;
}
textarea {
  resize: vertical;
  font-family: var(--code);
  font-size: 0.92rem;
}
.form {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}
.form > * {
  width: 100%;
}
.form > .btn {
  width: auto;
}
.field {
  display: grid;
  gap: 0.3rem;
}
.field > span,
legend,
.send label {
  font-weight: 600;
}
.field small {
  color: var(--muted);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.choice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.choice b {
  display: block;
}
.choice span {
  color: var(--muted);
}
.choice b {
  color: var(--ink);
}
.row {
  display: flex;
  gap: 0.5rem;
}
.row .btn {
  flex: none;
}
.error,
.notice {
  border-left: 4px solid var(--danger);
  background: var(--surface);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.notice {
  border-color: var(--tag);
}
.notice p {
  margin-bottom: 0.5rem;
}

/* search */
.search {
  display: flex;
  gap: 0.5rem;
  max-width: 36rem;
  margin: 1.25rem 0;
}
.search.big input {
  font-size: 1.1rem;
  padding: 0.85rem 1rem;
  border-width: 2px;
  border-color: var(--ink);
}
.search.big .btn {
  padding-inline: 1.5rem;
}

/* home */
.hero {
  margin-top: 0;
  padding-block: clamp(1rem, 5vw, 3.5rem) 0.5rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 1.2rem + 5.2vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 14ch;
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}
.chips a {
  display: block;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
}
.chips a:hover {
  border-color: var(--ink);
}
.chips span {
  color: var(--muted);
  font-weight: 400;
  margin-left: 0.2rem;
}
.add-tool {
  margin: 1rem 0 2rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.add-tool summary {
  cursor: pointer;
  font-weight: 650;
}
.add-tool form {
  margin-top: 1rem;
}
.places {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1rem;
}
.tool-group {
  margin-top: 1.25rem;
}
.tool-group h2 {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.crumbs a + a::before {
  content: '/';
  margin: 0 0.4rem;
  color: var(--muted);
  display: inline-block;
}
.older {
  margin-top: 0.75rem;
}
.older summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  padding: 0.5rem 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.section-head h2 {
  margin: 0;
}

/* the version tag: a parts label with a punched hole */
.tag {
  display: inline-block;
  font: 650 0.85rem/1 var(--body);
  font-variant-numeric: tabular-nums;
  color: var(--on-tag);
  padding: 0.38rem 0.6rem 0.38rem 1.35rem;
  background:
    radial-gradient(circle at 0.72rem 50%, var(--bg) 0.17rem, transparent 0.2rem),
    var(--tag);
  clip-path: polygon(0.55rem 0, 100% 0, 100% 100%, 0.55rem 100%, 0 50%);
  white-space: nowrap;
  vertical-align: middle;
}
.badge {
  display: inline-block;
  font: 600 0.75rem/1 var(--body);
  letter-spacing: 0;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--muted);
  color: var(--muted);
  border-radius: 99px;
  vertical-align: middle;
}
.badge.pro {
  border-color: var(--tag);
  background: var(--tag);
  color: var(--on-tag);
}

/* mod list: rows, not cards */
.mods {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.mods > li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.mod-main {
  min-width: 0;
}
.mod-main p {
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
}
.mod-name {
  font: 700 1.15rem/1.25 var(--display);
  color: var(--ink);
  text-decoration: none;
  margin-right: 0.4rem;
}
.mod-name:hover {
  color: var(--accent);
  text-decoration: underline;
}
.mod-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex: none;
  text-align: right;
}
.sorts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-bottom: 0.75rem;
}
.sorts a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0;
}
.sorts a[aria-current] {
  color: var(--ink);
  font-weight: 650;
  box-shadow: inset 0 -2px var(--ink);
}
.cats {
  gap: 0.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.cats .count {
  font-size: 0.85em;
  font-weight: 400;
  color: var(--muted);
}
.pager ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.pager li > * {
  display: block;
  min-width: 2.25rem;
  padding: 0.3rem 0.5rem;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
}
.pager li b {
  background: var(--ink);
  color: var(--bg);
}
.pager li[aria-hidden] {
  padding: 0.3rem 0;
  color: var(--muted);
}
.pager-note {
  text-align: center;
  margin-top: 0.5rem;
}
.pager {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
  margin-top: 1.5rem;
  font-weight: 600;
}

/* mod page */
.mod-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  grid-template-areas: 'head get' 'body get';
  grid-template-rows: auto 1fr;
  column-gap: 3rem;
  align-items: start;
}
.mod-head {
  grid-area: head;
}
.mod-body {
  grid-area: body;
  min-width: 0;
  margin-top: 1.5rem;
  border-top: 2px solid var(--ink);
  padding-top: 1.5rem;
}
.get {
  grid-area: get;
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.get p {
  margin: 0;
}
.get-version {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.get summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
}
.hash {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
  background: var(--bg);
  padding: 0.6rem;
  border-radius: var(--radius);
  margin-top: 0.4rem;
}
.hash[data-copy] {
  cursor: copy;
}
.hash.copied {
  outline: 2px solid var(--ok);
}
.send {
  display: grid;
  gap: 0.4rem;
}
.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  text-align: right;
}
.releases,
.installs,
.tokens,
.endpoints {
  list-style: none;
  padding: 0;
  margin: 0;
}
.releases li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.release-head,
.device-head,
.installs li,
.tokens li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
}
.release-head a,
.device-head form,
.installs form,
.tokens form {
  margin-left: auto;
}

/* rendered markdown */
.prose {
  max-width: 42rem;
  overflow-wrap: anywhere;
}
.prose.small {
  font-size: 0.95rem;
  margin-top: 0.6rem;
}
.prose > :last-child {
  margin-bottom: 0;
}
.prose h1,
.prose h2,
.prose h3 {
  margin-top: 1.4em;
}
.prose h1 {
  font-size: 1.6rem;
}
.prose > :first-child {
  margin-top: 0;
}
.prose img {
  max-width: 100%;
  height: auto;
}
.prose pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
  overflow-x: auto;
}
.prose li {
  margin-bottom: 0.35em;
}
.prose blockquote {
  margin-inline: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

/* dashboard */
.device {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.device h3 {
  margin: 0;
}
.installs li,
.tokens li {
  padding: 0.5rem 0;
}
.tokens {
  margin-bottom: 1rem;
}
.state {
  font-size: 0.88rem;
  color: var(--muted);
}
.state.installed {
  color: var(--ok);
}
.endpoints li {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}
.endpoints code {
  overflow-wrap: anywhere;
}
.endpoints p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}
.auth {
  margin-inline: auto;
  max-width: 24rem;
}
#tokens .row {
  max-width: 30rem;
}

@media (max-width: 760px) {
  .mod-page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'head' 'get' 'body';
    grid-template-rows: auto;
  }
  .get {
    margin-top: 1rem;
  }
}
@media (max-width: 520px) {
  .mods > li {
    flex-direction: column;
    gap: 0.6rem;
  }
  .mod-side {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }
  .search {
    flex-wrap: wrap;
  }
  .search .btn {
    flex: 1;
  }
  .top nav {
    gap: 0.9rem;
  }
}

/* ---------- second round: catalog, moderation, stats, legal ---------- */
.foot {
  flex-wrap: wrap;
  align-items: baseline;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.25rem;
}
/* Sign out is a form, so it sits in the row like the links beside it. */
.foot form {
  display: contents;
}
.foot button.link {
  line-height: inherit;
}
.foot a {
  color: var(--muted);
}
.badge {
  margin-left: 0.35rem;
}
.brand .badge {
  vertical-align: middle;
  text-transform: uppercase;
}
h1 .badge {
  font-family: var(--body);
}
.badge.warn {
  border-color: var(--danger);
  color: var(--danger);
}
.badge.ok {
  border-color: var(--ok);
  color: var(--ok);
}
.verified {
  color: var(--ok);
  font-weight: 700;
}
.search {
  flex-wrap: wrap;
}
.search input[type='search'] {
  flex: 1 1 14rem;
}
.search select {
  flex: 1 1 9rem;
  width: auto;
}
.search:not(.big) {
  max-width: none;
}
.chips.small a {
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}
input[type='checkbox'] {
  width: auto;
  margin-top: 0.3rem;
  accent-color: var(--accent);
  flex: none;
}
.choice a {
  color: var(--accent);
}
.get .row .btn {
  flex: 1;
}
.wrap-row {
  flex-wrap: wrap;
}
.wrap-row input {
  flex: 1 1 14rem;
}
.notice {
  margin-bottom: 1.5rem;
}
.notice p:last-child,
p.notice {
  margin-bottom: 0;
}
p.notice {
  margin-bottom: 1.5rem;
}

/* tables and stats */
table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
th,
td {
  text-align: left;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}
th:last-child,
td:last-child {
  text-align: right;
  white-space: nowrap;
  padding-left: 1rem;
}
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0 3rem;
}
.chart {
  margin: 0;
}
.chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart rect {
  fill: var(--accent);
}
.chart rect.hit {
  fill: transparent;
}
.chart g:hover rect.hit {
  fill: color-mix(in srgb, var(--ink) 8%, transparent);
}
.chart text {
  fill: var(--muted);
  font-size: 12px;
}
.chart .axis {
  stroke: var(--muted);
}
.chart .grid {
  stroke: var(--line);
  stroke-dasharray: 3 3;
}
.chart details {
  margin-top: 0.75rem;
  max-width: 20rem;
}
.chart summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 1.5rem 2rem;
  margin: 1.5rem 0 0;
}
.tiles dt {
  color: var(--muted);
  font-size: 0.9rem;
}
.tiles dd {
  margin: 0;
  font: 750 2rem/1.15 var(--display);
  font-variant-numeric: tabular-nums;
}

/* moderation */
.cards,
.log {
  list-style: none;
  padding: 0;
  margin: 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}
.card p {
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
}
.quote {
  border-left: 3px solid var(--line);
  padding-left: 0.75rem;
  white-space: pre-wrap;
}
.log li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.log .meta {
  flex: none;
}
.legal h2 {
  margin-top: 2em;
}
.top-row {
  flex-wrap: wrap;
  row-gap: 0;
}
.top nav {
  flex-wrap: wrap;
}
.split + .meta,
table + .meta {
  margin-top: 1rem;
}
@media (max-width: 520px) {
  .top-row {
    padding-block: 0.5rem;
  }
  .top nav a {
    padding: 0.25rem 0;
  }
  .log li {
    flex-direction: column;
    gap: 0.15rem;
  }
}
main > p.meta:last-child { margin-top: 1.5rem; }

/* On a phone the page numbers get a row of their own under Previous and Next. */
@media (max-width: 560px) {
  .pager {
    flex-wrap: wrap;
  }
  .pager ol {
    order: 3;
    flex-basis: 100%;
  }
  .pager li > * {
    min-width: 2rem;
    padding: 0.3rem 0.35rem;
  }
}

/* tool cards, logos and the not-affiliated note */
.tool-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}
.tool-cards li {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.85rem 1rem;
}
.tool-cards li:hover {
  border-color: var(--ink);
}
.tool-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}
.tool-card b {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
}
.tool-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  margin: 0.6rem 0 0;
}
.tool-logo {
  flex: none;
  border-radius: 22%;
  object-fit: contain;
}
.tool-logo.letter {
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2em;
  line-height: 1;
}
.with-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
h2.with-logo .tool-logo.letter {
  font-size: 0.85em;
}
.disclaimer {
  margin: 0;
  font-size: 0.85rem;
}
.claim,
.claimed {
  margin: 0 0 0.75rem;
}
p.ok {
  color: var(--ok);
  font-weight: 600;
}

.tool-logo.s28 { width: 28px; height: 28px; font-size: 16px; }
.tool-logo.s32 { width: 32px; height: 32px; font-size: 18px; }
.tool-logo.s44 { width: 44px; height: 44px; font-size: 24px; }
.tool-logo.s48 { width: 48px; height: 48px; font-size: 26px; }

/* A field for scripts, not people: off screen and out of the tab order. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cf-turnstile {
  margin: 0.25rem 0 0.75rem;
}

/* userscript code preview */
.code-input {
  font-family: var(--code);
  font-size: 0.82rem;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
  tab-size: 2;
}
.code-block {
  --code-bg: #f7f9fb;
  --t-c: #5b6b7c;
  --t-s: #0f6b43;
  --t-k: #663399;
  --t-n: #9a4a05;
  --t-m: #0a5aa8;
  margin: 0.75rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--code-bg);
  overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .code-block {
    --code-bg: #0b141f;
    --t-c: #8496a8;
    --t-s: #6fd3a3;
    --t-k: #c3a6e8;
    --t-n: #f3b61f;
    --t-m: #7fb8ee;
  }
}
.code-block figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.45rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.85rem;
}
.code-name {
  font-family: var(--code);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.code-size {
  color: var(--muted);
  margin-right: auto;
  white-space: nowrap;
}
.code-view {
  max-height: 32rem;
  overflow: auto;
  margin: 0;
  padding: 0.75rem 1rem 0.75rem 0;
  font-family: var(--code);
  font-size: 0.82rem;
  line-height: 1.55;
  tab-size: 2;
  white-space: pre;
  counter-reset: line;
}
.code-view code {
  font-size: inherit;
}
.code-view .l {
  counter-increment: line;
}
.code-view .l::before {
  content: counter(line);
  display: inline-block;
  width: 3.25rem;
  padding-right: 0.9rem;
  text-align: right;
  color: var(--muted);
  opacity: 0.75;
  user-select: none;
  -webkit-user-select: none;
}
.t-c {
  color: var(--t-c);
  font-style: italic;
}
.t-s {
  color: var(--t-s);
}
.t-k {
  color: var(--t-k);
}
.t-n {
  color: var(--t-n);
}
.t-m {
  color: var(--t-m);
  font-weight: 600;
  font-style: normal;
}
.code-facts {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}
.code-facts li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.code-facts code {
  font-family: var(--code);
  font-size: 0.85em;
  overflow-wrap: anywhere;
}

/* releases with several files, and files held back */
.files {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}
.files li {
  padding: 0.2rem 0;
  overflow-wrap: anywhere;
}
.held {
  color: var(--danger, #b3261e);
  font-weight: 600;
}
.caution {
  margin: 0.4rem 0 0;
}
/* the small print under the facts in the Pac sidebar */
.fine {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.fine > :first-child {
  margin-top: 0;
}
.fine:empty {
  display: none;
}
.fine p {
  margin: 0 0 0.5rem;
}

/* signing in with GitHub, above the password form */
.alt-auth {
  margin-bottom: 1.25rem;
}
.alt-auth .meta {
  margin: 0.5rem 0 0;
}
.alt-auth .or {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* publish: the choice of where the files are */
.ways {
  display: flex;
  gap: 0.25rem;
  margin: 1rem 0 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.ways a {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}
.ways a:hover {
  color: var(--ink);
}
.ways a[aria-current] {
  background: var(--accent);
  color: var(--on-accent);
}

/* help links for a tool, and the sidebar they sit in on its pages */
.with-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  column-gap: 2.5rem;
  align-items: start;
}
.with-side > aside {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (max-width: 860px) {
  .with-side {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2rem;
  }
}
.help {
  /* sections are spaced apart by default, which opens a gap inside a sidebar */
  margin: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--tag);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.9rem 1rem;
}
.help h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}
.help ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.help .meta {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
}
.get .help {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  padding: 1rem 0 0;
}
.with-side.publish {
  grid-template-columns: minmax(0, 38rem) 16rem;
}
.with-side.publish > aside {
  margin-top: 9.5rem;
}
@media (max-width: 860px) {
  .with-side.publish {
    grid-template-columns: minmax(0, 1fr);
  }
  .with-side.publish > aside {
    margin-top: 0;
  }
}
