/* Methodology and credits pages in the banknote world. Loads after banknote.css and uses its tokens. */
.lang-switch a, .lang-switch span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 32px; padding: 4px 8px; border-left: 1px solid var(--rule); font: 700 13px var(--font); letter-spacing: .04em; color: var(--ink); text-decoration: none; }
.lang-switch > :first-child { border-left: 0; }
.lang-switch [aria-current="page"] { background: var(--ink); color: var(--paper); }
.lang-switch a:hover { background: var(--paper-2); }
.mast-top .name { margin: 0; }

.doc { max-width: 820px; margin: 0 auto; padding: 18px var(--gap) 48px; }
.doc .back { display: inline-block; margin: 2px 0 6px; font-weight: 700; }
.doc-head { margin: 4px 0 18px; }
.doc .kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.doc h1 { margin: 6px 0 10px; font-size: 42px; line-height: 1.05; font-weight: 800; font-variation-settings: "wdth" 115; letter-spacing: -.01em; }
.doc .lede { margin: 0; font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 62ch; }
.doc h2 { margin: 36px 0 10px; padding-top: 14px; border-top: 1px solid var(--ink); font-size: 24px; line-height: 1.2; font-weight: 800; font-variation-settings: "wdth" 110; }
.doc .mpanel > h2:first-child, .doc .mpanel > :first-child { margin-top: 18px; }
.doc h3 { margin: 22px 0 6px; font-size: 18px; }
.doc p, .doc li { max-width: 68ch; line-height: 1.6; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 4px 0; }
.doc table { margin: 10px 0; width: 100%; }
.doc th, .doc td { text-align: left; white-space: normal; vertical-align: top; }
.doc th:first-child, .doc td:first-child { position: static; }
.doc td.num, .doc th.num { text-align: right; }
.doc .formula { margin: 12px 0; padding: 10px 12px; background: var(--paper-2); border: 1px solid var(--ink); font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; }
.doc .credit-list li { line-height: 1.45; }
@media (max-width: 600px) {
  .doc { padding: 12px 12px 40px; }
  .doc h1 { font-size: 30px; }
  .doc .lede { font-size: 16px; }
  .doc h2 { font-size: 21px; }
}
.doc .mpanel > .lede:first-child { margin-top: 18px; }
