.methodological-notes {
  --notes-ink: #171717;
  --notes-muted: #676767;
  --notes-line: #d8d8d8;
  --notes-panel: #f5f5f5;
  width: min(100% - 48px, 980px);
  margin: 0 auto;
  padding: 72px 0 112px;
  color: var(--notes-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

.methodological-notes__hero {
  max-width: 800px;
  margin-bottom: 72px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--notes-line);
}

.methodological-notes__eyebrow,
.methodological-notes__version,
.methodological-notes__section-label,
.methodological-notes__references-label {
  margin: 0;
  color: #b60000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.methodological-notes__hero h1 {
  max-width: 920px;
  margin: 18px 0 20px;
  color: var(--notes-ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.08;
}

.methodological-notes__subtitle {
  margin: 0 0 18px;
  color: var(--notes-ink);
  font-size: 20px;
  line-height: 1.45;
}

.methodological-notes__version {
  color: var(--notes-muted);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: none;
}

.methodological-notes__intro {
  max-width: 760px;
  margin: 30px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
  line-height: 1.65;
}

.methodological-notes__part {
  margin-top: 80px;
}

.methodological-notes__part-header {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--notes-ink);
}

.methodological-notes__part-number {
  padding-top: 4px;
  color: #b60000;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.methodological-notes__part h2 {
  margin: 0;
  color: var(--notes-ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.14;
}

.methodological-notes__section {
  margin-top: 52px;
}

.methodological-notes__section h3 {
  margin: 0 0 20px;
  color: var(--notes-ink);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.methodological-notes__section h4 {
  margin: 32px 0 10px;
  color: var(--notes-ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

.methodological-notes p,
.methodological-notes li {
  font-size: 16px;
  line-height: 1.72;
}

.methodological-notes p { margin: 0 0 18px; }
.methodological-notes ul,
.methodological-notes ol { margin: 0 0 22px; padding-left: 24px; }
.methodological-notes li + li { margin-top: 8px; }

.methodological-notes__footnote {
  color: var(--notes-muted);
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.methodological-notes__steps { list-style: decimal; }

.methodological-notes__lead {
  max-width: 790px;
  color: var(--notes-muted);
}

.methodological-notes__note {
  margin-top: 20px;
  padding: 20px 22px;
  border-left: 3px solid #b60000;
  background: #faf7f7;
  color: #3d3d3d;
}

.methodological-notes__formula {
  margin: 20px 0;
  padding: 22px;
  border: 1px solid var(--notes-line);
  background: var(--notes-panel);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.8;
}

.methodological-notes__formula p:last-child,
.methodological-notes__note p:last-child { margin-bottom: 0; }

.methodological-notes__formula-note {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid var(--notes-line);
  color: var(--notes-muted);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.methodological-notes__table-wrap {
  margin: 24px 0 20px;
  overflow-x: auto;
  border: 1px solid var(--notes-line);
}

.methodological-notes table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
  text-align: left;
}

.methodological-notes th,
.methodological-notes td {
  padding: 12px 14px;
  border-bottom: 1px solid #e4e4e4;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.45;
}

.methodological-notes th {
  color: #fff;
  background: #3b3b3b;
  font-size: 12px;
  font-weight: 700;
}

.methodological-notes tbody tr:nth-child(even) { background: #f7f8fa; }
.methodological-notes tbody tr:last-child td { border-bottom: 0; }

.methodological-notes__table-caption {
  margin-top: -4px;
  color: var(--notes-muted);
  font-size: 13px;
  line-height: 1.55;
}

.methodological-notes__references {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--notes-line);
}

.methodological-notes__references h3 {
  margin: 12px 0 20px;
  color: var(--notes-ink);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}
.methodological-notes__references-list { list-style: none; padding-left: 0; }
.methodological-notes__references-list li { padding: 16px 0; border-bottom: 1px solid var(--notes-line); }
.methodological-notes__references-list strong { color: var(--notes-ink); }
.methodological-notes__references-list a { color: #9f0000; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }

html.dark .methodological-notes {
  --notes-ink: #f1efee;
  --notes-muted: #bcb8b7;
  --notes-line: #454242;
  --notes-panel: #252323;
}

html.dark .methodological-notes__note { background: #2a2424; color: #e1dddd; }
html.dark .methodological-notes table { background: #1d1b1b; }
html.dark .methodological-notes tbody tr:nth-child(even) { background: #242121; }
html.dark .methodological-notes th { background: #444242; }
html.dark .methodological-notes td { border-color: #383535; }

@media (max-width: 700px) {
  .methodological-notes { width: min(100% - 40px, 980px); padding: 48px 0 76px; }
  .methodological-notes__hero { margin-bottom: 52px; padding-bottom: 36px; }
  .methodological-notes__hero h1 { font-size: 28px; }
  .methodological-notes__subtitle { font-size: 18px; }
  .methodological-notes__intro { font-size: 18px; }
  .methodological-notes__part { margin-top: 58px; }
  .methodological-notes__part-header { grid-template-columns: 1fr; gap: 8px; }
  .methodological-notes__section { margin-top: 42px; }
  .methodological-notes__section h3 { font-size: 22px; }
  .methodological-notes__references h3 { font-size: 22px; }
}
