.note-page {
  padding: clamp(5.5rem, 10vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
}

.note-page__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.note-page__crumb a {
  color: var(--muted);
  text-decoration: none;
}

.note-page__crumb a:hover {
  color: var(--text);
}

.note-page__crumb [aria-current="page"] {
  color: var(--faint);
}

.note-page__meta {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.note-page__title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.note-page__dek {
  margin: 0 0 2.25rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 42rem;
}

.note-prose {
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
}

.note-prose > * + * {
  margin-top: 1.15rem;
}

.note-prose h2 {
  margin: 2.5rem 0 0.85rem;
  font-size: clamp(1.25rem, 2.5vw, 1.45rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.note-prose h3 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.note-prose p {
  margin: 0;
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
}

.note-prose ul,
.note-prose ol {
  margin: 0;
  padding-left: 1.25rem;
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
}

.note-prose li + li {
  margin-top: 0.45rem;
}

.note-prose a {
  color: var(--accent-3);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.note-prose a:hover {
  color: var(--text);
}

.note-prose blockquote {
  margin: 1.5rem 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.98rem;
}

.note-prose .note-callout {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--bg-card);
  font-size: 0.98rem;
}

.note-prose .note-callout strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.note-sources {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.note-sources h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.note-sources ol {
  font-size: 0.9375rem;
  color: var(--muted);
}

.note-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.note-back:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .note-page__title {
    max-width: none;
  }
}

/* Keep the article navigation available at mobile widths. */
.note-nav { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.note-nav a { color: var(--text); text-decoration: none; }
.note-body .nav { flex-wrap: wrap; gap: .75rem; }
.note-page__meta { letter-spacing: .02em; color: var(--muted); }
.note-page__meta a { color: inherit; }
.note-page__crumb [aria-current="page"] { color: var(--muted); }
.note-callout strong { color: var(--muted); }
.note-skip { position: fixed; top: .5rem; left: 1rem; z-index: 1000; transform: translateY(-200%); padding: .75rem; background: var(--bg); color: var(--text); }
.note-skip:focus { transform: none; }
.note-body a:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 4px; }
@media (max-width: 480px) { .note-nav { font-size: .85rem; gap: .75rem; } }
@media (max-width: 480px) {
  .note-body .nav--v2 { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .note-nav { flex-wrap: wrap; }
}

/* Keep worked comparisons readable without widening the article on mobile. */
.note-table-wrap { max-width: 100%; overflow-x: auto; }
.note-table-wrap:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 4px; }
.note-table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.note-table caption { text-align: left; margin-bottom: .75rem; color: var(--muted); }
.note-table th, .note-table td { padding: .75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.note-table thead { background: var(--bg-card); }
.note-author { margin-top: 2rem !important; font-size: .9375rem; }
