/* The Melbourne Exchange
   Swiss-technical: strict grid, Helvetica, hairlines, one accent, no radii.
   Reads as an instrument catalogue rather than a content site. */

:root {
  --ground: #FAFAF9;
  --surface: #FFFFFF;
  --ink: #121214;
  --muted: #55555C;
  --faint: #6E6E76;
  --rule: #E0DFDC;
  --rule-strong: #C6C5C1;
  --accent: #EC1F2E;
  --accent-solid: #EC1F2E; /* button fill: MI's exact red, never theme-shifted */
  --accent-ink: #121214; /* MI puts dark ink on the red button, not white */
  --ok: #16733F;
  --warn: #8A5D00;

  --unit: 0.5rem;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #101012;
    --surface: #17171A;
    --ink: #EDEDEF;
    --muted: #A8A8B0;
    --faint: #8E8E97;
    --rule: #28282D;
    --rule-strong: #3A3A41;
    --accent: #FF3D4A;
    --accent-solid: #EC1F2E;
    --accent-ink: #121214;
    --ok: #4FBF84;
    --warn: #D9A521;
  }
}

:root[data-theme="dark"] {
  --ground: #101012;
  --surface: #17171A;
  --ink: #EDEDEF;
  --muted: #A8A8B0;
  --faint: #8E8E97;
  --rule: #28282D;
  --rule-strong: #3A3A41;
  --accent: #FF3D4A;
  --accent-solid: #EC1F2E;
  --accent-ink: #121214;
  --ok: #4FBF84;
  --warn: #D9A521;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 calc(var(--unit) * 3) calc(var(--unit) * 10);
}

/* ---------- masthead ---------- */

.masthead { border-bottom: 1px solid var(--rule-strong); }

.masthead-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: calc(var(--unit) * 4) calc(var(--unit) * 3);
  display: flex;
  flex-wrap: wrap;
  /* Centre, not baseline. Baseline was fine when the masthead was two pieces of
     text; it is wrong the moment one of them is a logo and another is a boxed
     button, because a border shifts a box relative to its own baseline. */
  align-items: center;
  gap: calc(var(--unit) * 2);
}

.wordmark {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--unit) * 1.25);
}

/* MI's square device, used as a mask rather than as a coloured image, so the
   red is exactly --accent-solid in both themes. The supplied red raster is a
   third red once converted out of CMYK, and two reds on one page is the
   mismatch we already fixed once on the Squarespace site. */
.mark {
  width: 1.35em;
  height: 1.35em;
  flex: none;
  background: var(--accent-solid);
  -webkit-mask: url(mi-mark.png) center / contain no-repeat;
  mask: url(mi-mark.png) center / contain no-repeat;
}

.tagline { margin: 0; color: var(--muted); font-size: 0.875rem; }

/* ---------- filters ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--unit) calc(var(--unit) * 4);
  padding: calc(var(--unit) * 3) 0;
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--unit);
}

/* Was mono, uppercase and tracked. With three filter rows and seven column
   headers that put ten shouting labels on one screen, and they competed with
   the data they were labelling. */
.filter-label {
  font-size: 0.875rem;
  color: var(--faint);
  margin-right: var(--unit);
}

/* Square, hairlined, butted together: a bank of switches, not pills. */
.filter-group button[data-filter-type],
.filter-group button[data-filter-tag] {
  font: inherit;
  font-size: 0.875rem;
  padding: calc(var(--unit) * 0.75) calc(var(--unit) * 1.75);
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  margin-left: -1px;
  transition: color 160ms, background-color 160ms, border-color 160ms;
}

.filter-group button[data-filter-type]:first-of-type,
.filter-group button[data-filter-tag]:first-of-type { margin-left: 0; }
.filter-group button[data-filter-type]:hover,
.filter-group button[data-filter-tag]:hover { color: var(--ink); }

.filter-group button[data-filter-type].is-active,
.filter-group button[data-filter-tag].is-active {
  background: var(--accent-solid);
  border-color: var(--accent-solid);
  color: var(--accent-ink);
  position: relative;
  z-index: 1;
}

.filters select {
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  padding: calc(var(--unit) * 0.75) var(--unit);
}

.count {
  font-size: 0.875rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  margin-left: var(--unit);
}

/* ---------- index table ---------- */

.index-scroll { overflow-x: auto; }

.index {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.index thead th {
  text-align: left;
  padding: var(--unit) calc(var(--unit) * 1.5);
  border-bottom: 1px solid var(--rule-strong);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--faint);
  white-space: nowrap;
}

.index thead th.num { text-align: right; }

.index thead button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  letter-spacing: inherit;
  text-transform: inherit;
}

/* The arrow marks the column the table is actually sorted by, so two sortable
   headers cannot both claim it. */
.index thead button.is-sorted::after { content: " \25BC"; font-size: 0.7em; color: var(--accent); }
.index thead button.is-sorted { color: var(--ink); }
.index thead button:hover { color: var(--ink); }

.index tbody tr { border-bottom: 1px solid var(--rule); }
.index tbody tr:hover { background: var(--surface); }

.index td {
  padding: calc(var(--unit) * 1.75) calc(var(--unit) * 1.5);
  vertical-align: top;
}

.index td.num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}

.index td.date { color: var(--faint); }

/* The mapping table: one row per configured control, read out of the file.
   Denser than the library index because it is reference, not browsing. */
.mapping { font-size: 0.875rem; margin-top: calc(var(--unit) * 3); }
.mapping td { padding: calc(var(--unit) * 0.9) calc(var(--unit) * 1.5); }
.mapping td:first-child { color: var(--faint); white-space: nowrap; }
.mapping-name { font-weight: 700; }
.mapping-feel { color: var(--muted); }
.mapping .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); }

.mapping-fold { margin-top: calc(var(--unit) * 3); }

.mapping-fold summary {
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--faint);
  padding: var(--unit) 0;
  border-top: 1px solid var(--rule);
}

.mapping-fold summary:hover { color: var(--ink); }
.mapping-fold[open] summary { color: var(--ink); }
.mapping-fold .mapping { margin-top: 0; }

.maker, .model, .spec { display: block; }

.maker { font-weight: 700; }
.model, .spec { color: var(--muted); font-size: 0.875rem; }

.row-title {
  display: block;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.005em;
}

.row-title:hover { color: var(--accent); }

/* Author names in the By column are links to that maker's page. Underlining
   every one turns the column into a wall of rules, so the hover carries it. */
.index td a { text-decoration: none; }
.index td a:hover { color: var(--accent); text-decoration: underline; }

.spec {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.15em;
}

/* One fact per column. No bar: it was a picture of the number beside it. */

/* The short columns hold their line so the title column keeps the slack. */
.usage { color: var(--muted); white-space: nowrap; }
.kind { color: var(--muted); white-space: nowrap; }
.index td[data-label="By"] { white-space: nowrap; }
.index td[data-label="Setup"] { min-width: 16rem; }

/* ---------- entry ---------- */

.entry, .prose {
  max-width: 42rem;
  padding-top: calc(var(--unit) * 5);
  display: flex;
  flex-direction: column;
  gap: calc(var(--unit) * 3);
}

.entry-head { display: flex; flex-direction: column; gap: var(--unit); }

.author-head {
  padding: calc(var(--unit) * 5) 0 calc(var(--unit) * 4);
  border-bottom: 1px solid var(--rule);
  margin-bottom: calc(var(--unit) * 4);
}

.entry h1, .prose h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.byline { margin: 0; color: var(--muted); font-size: 0.9375rem; max-width: 60ch; }
.description { font-size: 1.0625rem; display: flex; flex-direction: column; gap: calc(var(--unit) * 2); }
.description p { margin: 0; }
.description ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: calc(var(--unit) * 0.5); }
.description code { font-family: var(--mono); font-size: 0.875em; color: var(--muted); }
.description a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* Tags are hairlined squares, matching the filter switches they lead to. */
.tags { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--unit); }

.tag {
  font-size: 0.875rem;
  padding: calc(var(--unit) * 0.5) calc(var(--unit) * 1.25);
  border: 1px solid var(--rule-strong);
  color: var(--muted);
  text-decoration: none;
}

.tag:hover { color: var(--ink); border-color: var(--ink); }

.checked {
  margin: 0;
  padding: calc(var(--unit) * 1.5) calc(var(--unit) * 2);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--warn);
  font-size: 0.875rem;
  color: var(--muted);
}

.checked strong { display: block; color: var(--ink); }
.checked--checked { border-left-color: var(--ok); }

/* ---------- download ---------- */

.get { display: flex; flex-direction: column; gap: var(--unit); }

/* Buttons follow melbourneinstruments.com: solid brand red, dark ink, uppercase,
   tracked out, square corners, generous padding. Not a web-app pill. */
.download {
  align-self: flex-start;
  padding: calc(var(--unit) * 2.5) calc(var(--unit) * 5);
  background: var(--accent-solid);
  color: var(--accent-ink);
  border: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 160ms;
}

.download:hover { opacity: 0.88; }

.install { margin: 0; font-size: 0.875rem; color: var(--muted); }

/* `display: flex` beats the hidden attribute, so the gate needs this or it
   shows on every entry page from the moment it loads. */
.gate[hidden] { display: none; }

.gate {
  display: flex;
  flex-direction: column;
  gap: var(--unit);
  margin-top: var(--unit);
  padding: calc(var(--unit) * 2);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
}

.gate label { font-size: 0.875rem; color: var(--muted); }

.gate-row { display: flex; flex-wrap: wrap; gap: var(--unit); }

.gate input {
  font: inherit;
  flex: 1 1 14rem;
  min-height: 2.75rem;
  padding: 0 var(--unit);
  border: 1px solid var(--rule-strong);
  background: var(--ground);
  color: var(--ink);
}

.gate button {
  font: inherit;
  font-weight: 700;
  min-height: 2.75rem;
  padding: 0 calc(var(--unit) * 3);
  border: 0;
  background: var(--ink);
  color: var(--ground);
  cursor: pointer;
}

.gate-note { margin: 0; font-size: 0.75rem; color: var(--faint); }

/* ---------- panel preview ---------- */

.panel {
  display: flex;
  flex-direction: column;
  gap: calc(var(--unit) * 2);
  padding: calc(var(--unit) * 2.5);
  background: var(--surface);
  border: 1px solid var(--rule);
  overflow-x: auto;
}

/* Sentence case, in the page's own typeface. Mono uppercase is for things that
   label a control or a column, not for saying "DETAILS" above the details. */
.panel h2, .detail h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel-page { display: flex; flex-direction: column; gap: var(--unit); }

.panel-page-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
}

.knob-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(4rem, 1fr));
  gap: var(--unit);
  min-width: 34rem;
}

.knob {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--unit) * 0.5);
  text-align: center;
}

.knob-dial {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: var(--knob, transparent);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.knob-name { font-size: 0.75rem; line-height: 1.2; word-break: break-word; }

.knob-detail {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--faint);
}

.knob--empty { visibility: hidden; }

/* ---------- facts ---------- */

.detail { display: flex; flex-direction: column; gap: var(--unit); }

.facts { margin: 0; display: flex; flex-direction: column; }

.facts div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: calc(var(--unit) * 2);
  padding: calc(var(--unit) * 1.25) 0;
  border-top: 1px solid var(--rule);
}

.facts div:last-child { border-bottom: 1px solid var(--rule); }

.facts dt { font-size: 0.875rem; color: var(--faint); }

.facts dd { margin: 0; }

/* ---------- prose, colophon ---------- */

/* The column is a flex stack with an even gap, which leaves a heading floating
   equidistant from the section above and the paragraph it belongs to. Pulling it
   down closes that up so a heading reads as attached to its own text. */
.prose h2 {
  margin-top: calc(var(--unit) * 3);
  margin-bottom: calc(var(--unit) * -1.5);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
/* A step within a section, not a section. Separated from h2 by size alone:
   red would fail contrast at this size, and red is the accent here, not a way
   of emphasising text. */
.prose h3 {
  margin: calc(var(--unit) * 1.5) 0 calc(var(--unit) * -1.5);
  font-size: 1rem;
}

.prose p { margin: 0; }
.placeholder { color: var(--faint); font-style: italic; }

/* The read-it-from-your-file claim, shown working on a real export. */
.example {
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--accent-solid);
  padding: calc(var(--unit) * 2) calc(var(--unit) * 2.5);
  display: flex;
  flex-direction: column;
  gap: var(--unit);
}

.example-head { margin: 0; font-size: 0.875rem; color: var(--faint); }

/* The interim email route. Stated plainly, not dressed as an alert. */
.notice {
  border: 1px solid var(--rule-strong);
  padding: calc(var(--unit) * 2) calc(var(--unit) * 2.5);
}

.notice p { margin: 0; }
.notice a { color: var(--accent); }

.example ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.example li { font-size: 0.9375rem; }

.terms { font-size: 0.875rem; color: var(--muted); }
.empty { color: var(--muted); }

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

.colophon {
  max-width: 72rem;
  margin: 0 auto;
  padding: calc(var(--unit) * 4) calc(var(--unit) * 3) calc(var(--unit) * 6);
  border-top: 1px solid var(--rule);
  color: var(--faint);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: var(--unit);
}

.colophon p { margin: 0; max-width: 44rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}

/* ---------- small screens: the table restacks ---------- */

@media (max-width: 48rem) {
  .index thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .index, .index tbody, .index tr, .index td { display: block; width: 100%; }

  .index tbody tr {
    padding: calc(var(--unit) * 2) 0;
    border-bottom: 1px solid var(--rule-strong);
  }

  .index td { padding: calc(var(--unit) * 0.5) 0; }

  .index td[data-label="By"]::before,
  .index td[data-label="Type"]::before,
  .index td[data-label="Panel"]::before,
  .index td[data-label="Added"]::before,
  .index td[data-label="Downloads"]::before {
    content: attr(data-label) " ";
    font-size: 0.8125rem;
    color: var(--faint);
  }

  .index td.num { text-align: left; }
  .facts div { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* ---------- nav ---------- */

.nav { display: flex; align-items: center; gap: calc(var(--unit) * 3); margin-left: auto; }

.nav a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  /* 4px above, and 2px padding plus the 2px rule below, so the text sits on the
     optical centre rather than at the top of a stretched box. */
  padding: 4px 0 2px;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- search ---------- */

.search { padding-top: calc(var(--unit) * 4); }

.search input {
  font: inherit;
  font-size: 1.0625rem;
  width: 100%;
  max-width: 34rem;
  min-height: 3rem;
  padding: 0 calc(var(--unit) * 1.5);
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
}

.search input::placeholder { color: var(--faint); }

/* ---------- cover ---------- */

.cover {
  display: flex;
  flex-direction: column;
  gap: calc(var(--unit) * 3);
  padding: calc(var(--unit) * 9) 0 calc(var(--unit) * 7);
  border-bottom: 1px solid var(--rule);
}

.cover h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cover-lede { margin: 0; max-width: 46ch; font-size: 1.125rem; color: var(--muted); }

.cover-actions { display: flex; flex-wrap: wrap; gap: var(--unit); align-items: center; }

/* The outline twin of .download — same box, same type, no fill. */
.secondary {
  padding: calc(var(--unit) * 2.5) calc(var(--unit) * 5);
  border: 1px solid var(--rule-strong);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
}

.secondary:hover { border-color: var(--ink); }

/* ---------- routes ---------- */

.routes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: calc(var(--unit) * 5);
  padding: calc(var(--unit) * 6) 0;
  border-bottom: 1px solid var(--rule);
}

.routes article { display: flex; flex-direction: column; gap: var(--unit); }
.routes h2 { margin: 0; font-size: 1.125rem; letter-spacing: -0.015em; }
.routes h2 a { text-decoration: none; }
.routes h2 a:hover { color: var(--accent); }
.routes p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

.more { font-weight: 700; text-decoration: none; color: var(--accent); }

/* ---------- prose lists ---------- */

.prose .lede { font-size: 1.125rem; color: var(--muted); }
.prose ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: var(--unit); }
.prose li { padding-left: 0.2rem; }

.browse-title {
  margin: calc(var(--unit) * 6) 0 0;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

/* ---------- account link in nav ---------- */

/* `.nav a` is a class plus an element, so it outranks a bare `.nav-account` and
   its padding shorthand wipes this one out. Matching the specificity is the fix;
   reordering the file would not help. */
.nav a.nav-account {
  padding: calc(var(--unit) * 0.75) calc(var(--unit) * 1.5);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav a.nav-account:hover { border-color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- starter prompt ---------- */

.prompt {
  border: 1px solid var(--rule-strong);
  background: var(--surface);
}

.prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--unit);
  padding: var(--unit) calc(var(--unit) * 1.5);
  border-bottom: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--faint);
}

.prompt-head button {
  font: inherit;
  font-size: 0.8125rem;
  padding: calc(var(--unit) * 0.5) calc(var(--unit) * 1.5);
  border: 1px solid var(--rule-strong);
  background: var(--ground);
  color: var(--ink);
  cursor: pointer;
  min-height: 2rem;
}

.prompt-head button:hover { border-color: var(--accent); color: var(--accent); }

.prompt pre {
  margin: 0;
  padding: calc(var(--unit) * 2);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  white-space: pre-wrap;
  color: var(--muted);
}

/* ---------- account form ---------- */

.account-form {
  display: flex;
  flex-direction: column;
  gap: calc(var(--unit) * 0.75);
  max-width: 24rem;
  padding: calc(var(--unit) * 2.5);
  border: 1px solid var(--rule-strong);
  background: var(--surface);
}

.account-form label { font-size: 0.875rem; color: var(--muted); }

.account-form input {
  font: inherit;
  min-height: 2.75rem;
  padding: 0 var(--unit);
  border: 1px solid var(--rule-strong);
  background: var(--ground);
  color: var(--ink);
  margin-bottom: var(--unit);
}

.account-form button {
  font: inherit;
  font-weight: 700;
  min-height: 2.75rem;
  border: 0;
  background: var(--accent-solid);
  color: var(--accent-ink);
  cursor: pointer;
  margin-top: var(--unit);
}

.account-form button:hover { opacity: 0.88; }

/* ---------- submission form ---------- */

.submit-form,
.signin {
  display: flex;
  flex-direction: column;
  gap: calc(var(--unit) * 3);
  border: 1px solid var(--rule-strong);
  padding: calc(var(--unit) * 3);
}

.field { display: flex; flex-direction: column; gap: calc(var(--unit) * 0.75); }
.field[hidden] { display: none; }

.submit-form label,
.signin label { font-weight: 700; font-size: 0.9375rem; }

.submit-form input,
.submit-form select,
.submit-form textarea,
.signin input {
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  padding: calc(var(--unit) * 1.25);
}

.submit-form textarea { resize: vertical; }
.submit-form input[type="file"] { padding: calc(var(--unit) * 1.25); cursor: pointer; }
.submit-form input::placeholder,
.submit-form textarea::placeholder,
.signin input::placeholder { color: var(--faint); }

.field-note { margin: 0; font-size: 0.875rem; color: var(--faint); }
.field-note:not(:empty) { padding-top: calc(var(--unit) * 0.25); }

/* MI's button: solid brand red, dark ink, uppercase, square. */
.submit-form button,
.signin button {
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-solid);
  border: 0;
  padding: calc(var(--unit) * 2) calc(var(--unit) * 4);
  margin-top: calc(var(--unit) * 3);
  align-self: flex-start;
  cursor: pointer;
}

.submit-form button:hover,
.signin button:hover { opacity: 0.88; }
.submit-form button:disabled,
.signin button:disabled { opacity: 0.5; cursor: default; }

.result {
  margin: 0;
  border-left: 3px solid var(--ok);
  padding: calc(var(--unit) * 2) calc(var(--unit) * 2.5);
  background: var(--surface);
}

.result--bad { border-left-color: var(--accent-solid); }

.signin { gap: calc(var(--unit) * 2); }
.signin button { margin-top: var(--unit); }

/* The two routes through Build it are a fork, and the reader is scanning for
   which one they are on. A rule above each and the mode name as the heading
   makes the branch visible; a slightly larger heading alone did not. */
.prose h3 {
  border-top: 1px solid var(--rule);
  padding-top: calc(var(--unit) * 3);
  margin-top: calc(var(--unit) * 3);
}

.route { color: var(--muted); }

/* Consent is a choice, so it looks like one: a real checkbox, never pre-ticked,
   with the whole sentence clickable. */
.opt-in {
  display: flex;
  gap: var(--unit);
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
  cursor: pointer;
  margin-top: var(--unit);
}

.opt-in input { margin-top: 0.2em; flex: none; }
