:root {
  --note-ink: #17201d;
  --note-muted: #5b6863;
  --note-line: #d9e0dc;
  --note-surface: #f6f8f7;
  --note-accent: #006f63;
}

.notation-note {
  width: min(calc(100% - 2rem), 980px);
  padding-bottom: 4rem;
  color: var(--note-ink);
}

nav a[aria-current="page"] {
  color: var(--note-accent);
  font-weight: 650;
}

.note-header {
  max-width: 860px;
  padding: clamp(2.4rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}

.overline {
  margin: 0 0 0.75rem;
  color: var(--note-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.note-header h1 {
  max-width: 820px;
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 790px;
  margin: 0;
  color: var(--note-muted);
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  line-height: 1.55;
}

.notation-note > section {
  padding: 1.2rem 0 clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--note-line);
}

.notation-note h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.notation-note section > p {
  max-width: 800px;
  color: var(--note-muted);
}

.notation,
.colour-type,
.fibrifold {
  color: var(--note-ink);
  font-family: "STIX Two Math", "Cambria Math", Georgia, "Times New Roman", serif;
  font-variant-numeric: lining-nums;
}

.notation,
.grouped {
  white-space: nowrap;
}

sup,
sub {
  line-height: 0;
}

.table-scroll {
  margin: 1.4rem 0 1rem;
  overflow-x: auto;
  border: 1px solid var(--note-line);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--note-line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--note-muted);
  background: var(--note-surface);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.colour-type,
.fibrifold {
  font-size: 1.06rem;
  font-weight: 650;
  white-space: nowrap;
}

.pair-separator {
  margin: 0 0.45rem;
  color: #98a29e;
}

.count-note {
  margin-bottom: 0;
  padding-left: 0.85rem;
  border-left: 3px solid var(--note-accent);
}

.sources {
  padding-bottom: 1.4rem !important;
}

.sources p {
  margin-bottom: 0;
}

.notation-note footer {
  padding-top: 1.2rem;
  border-top: 1px solid var(--note-line);
}

@media (max-width: 700px) {
  .notation-note {
    width: min(calc(100% - 1.25rem), 980px);
  }

  .note-header {
    padding-top: 2.7rem;
  }

  th,
  td {
    padding: 0.72rem 0.78rem;
  }

  .pair-separator {
    display: block;
    height: 0.28rem;
    overflow: hidden;
    color: transparent;
  }
}

@media print {
  .site-header,
  .skip-link,
  footer {
    display: none !important;
  }

  .notation-note {
    width: auto;
    padding: 0;
  }

  .note-header {
    padding-top: 0;
  }
}
