/* ==========================================================================
   Methodology module (prefix: mt-) — Design v2 "Consumer-security clean".
   Overview: dark-glow landing hero, navy stat band, illustrated document cards,
   icon principle cards, feature rows, rounded tables, FAQ accordion, CTA banner.
   Documents: light hero with meta chips, docs layout (rounded navigation card +
   TOC), "In brief" card, readable prose blocks, stacked tables on phones.
   Tokens only; mobile-first (360px); robust to long translations and CJK;
   dark-mode and print safe. Monospace only for IDs, hashes, commands and code.
   ========================================================================== */

/* ------------------------------------------------- long-translation safety */
/* Long compounds (German, Russian) must never widen a grid track or a chip:
   allow breaks anywhere when a word does not fit; tables keep whole words and scroll. */
:is(.mt-ovhero, .mt-hero, .mt-docs, .mt-ovbrief, .mt-ovdocs, .mt-ovprinciples, .mt-m2r, .mt-ovstandards, .mt-ovversions, .mt-ovreading, .mt-ovfaq, .mt-ovcta) {
  overflow-wrap: anywhere;
}
:is(.mt-ovhero, .mt-hero, .mt-docs, .mt-ovbrief, .mt-ovdocs, .mt-ovprinciples, .mt-m2r, .mt-ovstandards, .mt-ovversions, .mt-ovreading, .mt-ovfaq, .mt-ovcta):is(:lang(de), :lang(ru)) {
  hyphens: auto;
}
.mt-table .data-table {
  overflow-wrap: break-word;
  /* Inter's tabular figures also widen hyphens ("SHA - 256"); keep them for numeric cells only. */
  font-variant-numeric: normal;
}
.mt-table .data-table .num {
  font-variant-numeric: tabular-nums;
}
/* buttons with long labels wrap instead of widening their container */
:is(.mt-ovhero, .mt-cta, .mt-cite, .mt-calc) .btn {
  white-space: normal;
  max-width: 100%;
  text-align: center;
}
:is(.mt-ovhero__grid, .mt-hero__grid, .mt-ovbrief__grid, .mt-feature, .mt-ovversions__grid, .mt-cta, .mt-releases, .mt-release, .mt-release__fixes, .mt-calc__foot, .mt-chain, .mt-mnav, .mt-cite) {
  grid-template-columns: minmax(0, 1fr);
}

/* ------------------------------------------------------------ version chip */
.mt-version {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  max-width: 100%;
  margin: 0;
  padding: 0.45em 1em 0.45em 0.8em;
  border-radius: var(--r-pill);
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1.35;
}
.mt-version__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-success) 22%, transparent);
}
.mt-version--dark {
  background: color-mix(in srgb, #ffffff 10%, transparent);
  color: var(--c-band-fg);
  border: 1px solid color-mix(in srgb, #ffffff 16%, transparent);
}
.mt-version--dark .mt-version__dot {
  background: #ccff00;
  box-shadow: 0 0 0 4px rgba(204, 255, 0, 0.22);
}

/* =========================================================== OVERVIEW PAGE */

/* ---------------------------------------------------------------- hero */
.mt-ovhero {
  padding-block: var(--s-5) var(--s-8);
  margin-bottom: 0;
  overflow: hidden;
}
.mt-ovhero .breadcrumbs {
  margin-bottom: var(--s-6);
}
.mt-ovhero .breadcrumbs a {
  color: var(--c-band-muted);
}
.mt-ovhero .breadcrumbs [aria-current] {
  color: var(--c-band-fg);
}
.mt-ovhero__grid {
  gap: var(--s-7);
}
.mt-ovhero__title {
  margin-top: var(--s-5);
  color: var(--c-band-fg);
  max-width: 14ch;
  overflow-wrap: break-word;
}
.mt-ovhero__title em {
  color: #ccff00;
}
.mt-ovhero__lead {
  color: #d4d4d4;
}
.mt-ovhero .btn-row {
  margin-top: var(--s-6);
}
.mt-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-6);
  color: #d4d4d4;
  font-size: var(--fs-sm);
  font-weight: 550;
}
.mt-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-width: 0;
}
.mt-trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ccff00;
  color: #000000;
}
.mt-trust__icon .icon {
  stroke-width: 2.5;
}
.mt-ovhero__art {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 620px;
}
.mt-ovhero__img {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
@media (min-width: 1080px) {
  .mt-ovhero {
    padding-block: var(--s-6) var(--s-9);
  }
  .mt-ovhero__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
}

/* -------------------------------------------------------- in brief + stats */
.mt-ovbrief__grid {
  display: grid;
  gap: var(--s-5) var(--s-8);
  align-items: start;
}
.mt-ovbrief__title {
  font-size: var(--fs-2xl);
  line-height: 1.1;
  max-width: 16ch;
}
.mt-ovbrief__summary {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--c-ink-2);
  max-width: 62ch;
}
.mt-ovbrief__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
@media (min-width: 960px) {
  .mt-ovbrief__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}
.mt-statband {
  margin-top: var(--s-7);
  border-radius: var(--r-xl);
  padding: var(--s-6) var(--s-5);
}
.mt-statband__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6) var(--s-5);
}
.mt-statband__value {
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: var(--tracking-display);
  color: #ccff00;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.mt-statband__note {
  font-size: var(--fs-xs);
  color: var(--c-band-muted);
}
/* value, then label, then note (dt comes first in the markup) */
.mt-statband__item {
  display: grid;
  grid-template-areas: 'value' 'label' 'note';
  align-content: start;
  gap: 0.35rem;
  min-width: 0;
}
.mt-statband__item dd {
  display: contents;
}
.mt-statband__value {
  grid-area: value;
}
.mt-statband__item dt {
  grid-area: label;
  margin-top: 0.4rem;
  font-weight: 650;
  font-size: var(--fs-sm);
  line-height: 1.35;
  color: var(--c-band-fg);
}
.mt-statband__note {
  grid-area: note;
}
@media (min-width: 960px) {
  .mt-statband {
    padding: var(--s-7) var(--s-7);
  }
  .mt-statband__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mt-statband__item + .mt-statband__item {
    border-left: 1px solid var(--c-band-rule);
    padding-left: var(--s-5);
  }
}

/* ------------------------------------------------------------ document cards */
.mt-doccards {
  list-style: none;
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .mt-doccards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1080px) {
  .mt-doccards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.mt-doccard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.mt-doccard:hover,
.mt-doccard:focus-within {
  box-shadow: var(--shadow-md);
  border-color: var(--c-rule-strong);
  transform: translateY(-3px);
}
.mt-doccard__media {
  padding: var(--s-3) var(--s-3) 0;
}
.mt-doccard__media .illustration {
  border-radius: calc(var(--r-xl) - 8px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@media (min-width: 720px) {
  .mt-doccard__media .illustration {
    aspect-ratio: 4 / 3;
  }
}
.mt-doccard__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
  padding: var(--s-5) var(--s-5) var(--s-5);
}
.mt-doccard__top {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.mt-doccard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
}
.mt-doccard__title {
  font-size: var(--fs-lg);
  line-height: 1.25;
}
.mt-doccard__title a {
  color: var(--c-ink);
  text-decoration: none;
}
.mt-doccard__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
}
.mt-doccard__title a:focus-visible {
  outline: none;
}
.mt-doccard:focus-within {
  outline: var(--focus);
  outline-offset: 3px;
}
.mt-doccard__text {
  color: var(--c-ink-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.mt-doccard__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-2);
}
.mt-doccard__facts li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  padding: 0.35em 0.8em;
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  font-size: var(--fs-xs);
  color: var(--c-ink-2);
  min-width: 0;
}
.mt-doccard__facts strong {
  color: var(--c-accent-text);
  font-weight: 750;
}
.mt-doccard__more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: var(--s-2);
  font-weight: 650;
  color: var(--c-accent-text);
}
.mt-doccard__more .icon {
  transition: transform 0.15s;
}
.mt-doccard:hover .mt-doccard__more .icon {
  transform: translateX(3px);
}

/* ---------------------------------------------------------------- principles */
.mt-principles {
  list-style: none;
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .mt-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1080px) {
  .mt-principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.mt-principle {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-width: 0;
  padding: var(--s-6);
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-xl);
}
.mt-principle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
  margin-bottom: var(--s-2);
}
.mt-principle__title {
  font-size: var(--fs-lg);
}
.mt-principle__text {
  color: var(--c-ink-2);
  font-size: var(--fs-sm);
  line-height: 1.65;
}
.mt-principle__rule {
  margin-top: auto;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.45;
}
.mt-principle__rule-k {
  display: inline-block;
  margin-right: 0.35em;
  padding: 0.1em 0.6em;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-size: var(--fs-2xs);
  font-weight: 700;
  vertical-align: 0.1em;
}

/* ------------------------------------------------------------ feature rows */
.mt-feature {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
.mt-feature .section-head {
  margin-bottom: var(--s-6);
}
.mt-feature__art {
  margin: 0;
  width: 100%;
  max-width: 600px;
  justify-self: center;
}
@media (min-width: 960px) {
  .mt-feature {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: var(--s-8);
  }
  .mt-feature--reverse .mt-feature__art {
    order: -1;
  }
  .mt-feature--reverse {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

/* ------------------------------------------------- chain (method → record) */
.mt-chain {
  list-style: none;
  counter-reset: mt-chain;
  display: grid;
  gap: var(--s-2);
}
.mt-chain__step {
  counter-increment: mt-chain;
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: var(--s-4);
  padding-bottom: var(--s-3);
}
.mt-chain__step::before {
  content: counter(mt-chain);
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-weight: 700;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}
.mt-chain__step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: -4px;
  width: 2px;
  border-radius: 2px;
  background: var(--c-accent-soft);
}
.mt-chain__label {
  font-weight: 700;
  color: var(--c-ink);
  padding-top: 0.45rem;
}
.mt-chain__text {
  color: var(--c-ink-2);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.mt-m2r__records {
  margin-top: var(--s-8);
}
.mt-m2r__records-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  margin-bottom: var(--s-5);
}
.mt-m2r__records-title {
  font-size: var(--fs-lg);
}

/* ------------------------------------------------------- versions section */
.mt-ovversions__grid {
  display: grid;
  gap: var(--s-5) var(--s-8);
}
.mt-ovversions__head .section-head {
  margin-bottom: var(--s-5);
}
.mt-ovversions__body > * + * {
  margin-top: var(--s-5);
}
@media (min-width: 1080px) {
  .mt-ovversions__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
  .mt-ovversions__head {
    position: sticky;
    top: calc(var(--header-h) + var(--s-6));
    align-self: start;
  }
}

/* ------------------------------------------------------ background reading */
.mt-ovreading__links {
  margin-top: 0;
}

/* -------------------------------------------------------------------- FAQ */
.mt-ovfaq__inner {
  max-width: calc(880px + var(--gutter) * 2);
}

/* -------------------------------------------------------------- CTA banner */
.mt-ovcta {
  padding-block: var(--s-8) 0;
}
.mt-cta {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  border-radius: var(--r-xl);
  padding: var(--s-7) var(--s-5);
}
.mt-cta__title {
  font-size: var(--fs-2xl);
  line-height: 1.1;
  color: var(--c-band-fg);
  max-width: 20ch;
}
.mt-cta__lead {
  margin-top: var(--s-4);
  color: #d4d4d4;
  max-width: 56ch;
}
.mt-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
@media (min-width: 960px) {
  .mt-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: var(--s-8) var(--s-8);
  }
  .mt-cta__actions {
    justify-content: flex-end;
    max-width: 420px;
  }
}

/* ========================================================== DOCUMENT PAGES */

/* ---------------------------------------------------------------- hero */
.mt-hero {
  padding-block: var(--s-5) var(--s-7);
}
.mt-hero .breadcrumbs {
  margin-bottom: var(--s-6);
}
.mt-hero__grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
.mt-hero__kicker {
  margin-bottom: var(--s-3);
}
.mt-hero__title {
  max-width: 20ch;
  overflow-wrap: break-word;
}
.mt-hero__lead {
  max-width: 58ch;
}
.mt-hero__art {
  display: none;
}
@media (min-width: 720px) {
  .mt-hero__art {
    display: block;
    max-width: 420px;
  }
}
@media (min-width: 1080px) {
  .mt-hero {
    padding-block: var(--s-6) var(--s-8);
  }
  .mt-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: var(--s-8);
  }
  .mt-hero__art {
    max-width: none;
  }
}
.mt-hero__art .illustration {
  box-shadow: var(--shadow-md);
}

/* meta chips */
.mt-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-6);
}
.mt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  max-width: 100%;
  min-height: 36px;
  padding: 0.35em 0.95em;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  color: var(--c-ink-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.35;
}
.mt-chip .icon {
  color: var(--c-muted);
}
.mt-chip__k {
  color: var(--c-muted);
  font-weight: 550;
}
.mt-chip .mono {
  font-size: 0.95em;
  color: var(--c-ink);
}
.mt-chip--version {
  background: var(--c-accent-soft);
  border-color: transparent;
  color: var(--c-accent-text);
}
.mt-chip--version .icon {
  color: var(--c-success);
  stroke-width: 2.5;
}

/* ------------------------------------------------------------ docs layout */
.mt-docs {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: minmax(0, 1fr);
  padding-block: var(--s-6) var(--section-y);
}
.mt-side {
  display: none;
}
@media (min-width: 1080px) {
  .mt-docs {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: var(--s-8);
    padding-top: var(--s-7);
  }
  .mt-side {
    display: block;
  }
  .mt-side__inner {
    position: sticky;
    top: calc(var(--header-h) + var(--s-6));
    display: grid;
    gap: var(--s-4);
    max-height: calc(100vh - var(--header-h) - var(--s-7));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: var(--s-2);
    scrollbar-width: thin;
  }
}
@media (min-width: 1280px) {
  .mt-docs {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: var(--s-9);
  }
}

/* document navigation card */
.mt-docnav {
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-sm);
}
.mt-docnav__title {
  padding: 0 var(--s-2) var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-ink);
}
.mt-docnav__list {
  list-style: none;
  display: grid;
  gap: 2px;
}
.mt-docnav__link {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.5rem 0.6rem;
  border-radius: var(--r-md);
  color: var(--c-ink-2);
  font-size: var(--fs-sm);
  font-weight: 550;
  line-height: 1.3;
  text-decoration: none;
}
.mt-docnav__link:hover {
  background: var(--c-surface-2);
  color: var(--c-ink);
  text-decoration: none;
}
.mt-docnav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--c-surface-2);
  color: var(--c-muted);
}
.mt-docnav__label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.mt-docnav__link.is-current {
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
  font-weight: 650;
}
.mt-docnav__link.is-current .mt-docnav__icon {
  background: var(--c-accent);
  color: var(--c-accent-ink);
}

/* mobile navigation (details) */
.mt-mnav {
  display: grid;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.mt-mnav__item {
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
}
.mt-mnav__item > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
  font-weight: 650;
  color: var(--c-ink);
}
.mt-mnav__item > summary::-webkit-details-marker {
  display: none;
}
.mt-mnav__item > summary > span {
  flex: 1;
  min-width: 0;
}
.mt-mnav__item > summary::after {
  content: '+';
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-surface-2);
  font-size: 1.15rem;
  font-weight: 500;
}
.mt-mnav__item[open] > summary::after {
  content: '−';
}
.mt-mnav__item .icon {
  color: var(--c-accent-text);
}
.mt-mnav .toc,
.mt-docnav--mobile {
  margin: 0 var(--s-3) var(--s-3);
  box-shadow: none;
  border: 0;
  padding: var(--s-2) var(--s-2) var(--s-3);
}
.mt-docnav--mobile {
  background: transparent;
}
@media (min-width: 1080px) {
  .mt-mnav {
    display: none;
  }
}

/* --------------------------------------------------------------- article */
.mt-article {
  min-width: 0;
}

/* "In brief" card */
.mt-brief {
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-xl);
  background: var(--c-accent-soft);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.mt-brief__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--c-accent-text);
}
.mt-brief__title::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.mt-brief__text {
  margin-top: var(--s-3);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--c-ink);
  font-weight: 500;
  max-width: 68ch;
}
.mt-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.mt-figure-stat {
  display: grid;
  grid-template-areas: 'value' 'label' 'note';
  align-content: start;
  gap: 0.2rem;
  min-width: 0;
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
.mt-figure-stat dd {
  display: contents;
}
.mt-figure-stat__value {
  grid-area: value;
  font-size: var(--fs-xl);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  color: var(--c-accent-text);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.mt-figure-stat dt {
  grid-area: label;
  margin-top: 0.25rem;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--c-ink);
  line-height: 1.3;
}
.mt-figure-stat__note {
  grid-area: note;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  line-height: 1.4;
}
@media (min-width: 720px) {
  .mt-brief {
    padding: var(--s-6) var(--s-6);
  }
}
@media (min-width: 1280px) {
  .mt-figures {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* sections */
.mt-sec {
  margin-top: var(--s-8);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.mt-sec__title {
  font-size: var(--fs-xl);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--s-5);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.mt-sub,
.mt-sec > .mt-sub {
  margin-top: var(--s-7);
}
.mt-sub__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--s-4);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.mt-sec > * + *,
.mt-sub > * + * {
  margin-top: var(--s-5);
}
.mt-sec > .mt-sec__title + *,
.mt-sub > .mt-sub__title + * {
  margin-top: 0;
}

/* ------------------------------------------------------------ prose blocks */
.mt-p {
  max-width: 72ch;
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--c-ink-2);
  overflow-wrap: break-word;
}
.mt-p strong,
.mt-list strong {
  color: var(--c-ink);
}
.mt-table .data-table a {
  text-decoration: none;
}
.mt-table .data-table a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.mt-p a,
.mt-list a,
.mt-defs a,
.mt-callout a,
.mt-steps a,
.mt-faq__a a,
.mt-cite a,
.mt-figure a {
  color: var(--c-accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.mt-article code,
.mt-ovversions code,
.mt-calc code {
  font-variant-ligatures: none;
  font-family: var(--f-mono);
  font-size: 0.86em;
  padding: 0.1em 0.38em;
  border-radius: var(--r-xs);
  background: var(--c-surface-2);
  color: var(--c-ink);
  overflow-wrap: anywhere;
}
.mt-small {
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.mt-more {
  margin-top: var(--s-5);
}

/* lists */
.mt-list {
  list-style: none;
  display: grid;
  gap: var(--s-3);
  max-width: 72ch;
  color: var(--c-ink-2);
  line-height: 1.7;
}
.mt-list > li {
  position: relative;
  padding-left: 1.6em;
  overflow-wrap: break-word;
}
.mt-list > li::before {
  content: '';
  position: absolute;
  left: 0.2em;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
}
.mt-list--ordered {
  counter-reset: mt-ol;
}
.mt-list--ordered > li {
  counter-increment: mt-ol;
  padding-left: 2.2em;
}
.mt-list--ordered > li::before {
  content: counter(mt-ol);
  top: 0.15em;
  width: 1.55em;
  height: 1.55em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
  font-size: var(--fs-xs);
  font-weight: 700;
  left: 0;
}

/* procedure steps */
.mt-steps {
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
}
.mt-steps__title {
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: var(--s-4);
}
.mt-steps__list {
  list-style: none;
  counter-reset: mt-step;
  display: grid;
  gap: var(--s-3);
}
.mt-steps__item {
  counter-increment: mt-step;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-surface);
}
.mt-steps__item::before {
  content: counter(mt-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-weight: 700;
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.mt-steps__body {
  padding-top: 0.2rem;
  color: var(--c-ink-2);
  font-size: var(--fs-sm);
  line-height: 1.65;
  overflow-wrap: break-word;
}
.mt-steps__head {
  color: var(--c-ink);
}
@media (min-width: 720px) {
  .mt-steps {
    padding: var(--s-6);
  }
}

/* definitions */
.mt-defs {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  .mt-defs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.mt-defs__row {
  min-width: 0;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
.mt-defs dt {
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: var(--s-1);
}
.mt-defs dd {
  color: var(--c-ink-2);
  font-size: var(--fs-sm);
  line-height: 1.65;
  overflow-wrap: break-word;
}

/* callouts */
.mt-callout {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-accent-soft);
  color: var(--c-ink);
}
.mt-callout__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--c-surface);
  color: var(--c-accent-text);
}
.mt-callout__label {
  font-weight: 700;
  color: var(--c-ink);
}
.mt-callout__text {
  margin-top: var(--s-1);
  color: var(--c-ink-2);
  line-height: 1.65;
  max-width: 70ch;
}
.mt-callout--criterion {
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(204, 255, 0, 0.16), transparent 70%),
    var(--c-band);
  color: var(--c-band-fg);
  border: 1px solid var(--c-band-rule);
}
.mt-callout--criterion .mt-callout__icon {
  background: #ccff00;
  color: #000000;
}
.mt-callout--criterion .mt-callout__icon .icon {
  stroke-width: 2.5;
}
.mt-callout--criterion .mt-callout__label {
  color: #ccff00;
}
.mt-callout--criterion .mt-callout__text {
  color: var(--c-band-fg);
  font-size: var(--fs-md);
  font-weight: 550;
}
.mt-callout--criterion a {
  color: #ccff00;
}
.mt-callout--warning {
  background: var(--c-amber-soft);
}
.mt-callout--warning .mt-callout__icon {
  color: var(--c-amber-ink);
}
.mt-callout--planned {
  background: var(--c-teal-soft);
}
.mt-callout--planned .mt-callout__icon {
  color: var(--c-teal);
}
@media (max-width: 480px) {
  .mt-callout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-3);
  }
}

/* code */
.mt-code {
  margin-inline: 0;
  margin-bottom: 0;
  min-width: 0;
}
.mt-code__label {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  margin-bottom: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink-2);
}
.mt-code__label .icon {
  margin-top: 0.2em;
  color: var(--c-accent-text);
}
.mt-code pre {
  margin: 0;
  font-variant-ligatures: none;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  background: #000000;
  color: #f5f5f5;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}
.mt-code pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  overflow-wrap: normal;
}
@media (prefers-color-scheme: dark) {
  .mt-code pre {
    background: #000000;
    border: 1px solid var(--c-rule);
  }
}

/* formula */
.mt-formula {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-left: 4px solid var(--c-accent-line);
}
.mt-formula__label {
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--c-muted);
}
.mt-article .mt-formula__expr,
.mt-formula__expr {
  padding: 0;
  background: none;
  font-family: var(--f-mono);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--c-ink);
  overflow-wrap: anywhere;
}

/* figure */
.mt-figure {
  margin-inline: 0;
  margin-bottom: 0;
  max-width: 560px;
}
.mt-figure__img {
  border-radius: var(--r-xl);
}
.mt-figure figcaption {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--c-muted);
  line-height: 1.55;
}
.mt-figure__no {
  font-weight: 700;
  color: var(--c-ink-2);
}

/* ------------------------------------------------------------------ tables */
.mt-table {
  min-width: 0;
}
.mt-table .data-table caption {
  padding: var(--s-4) var(--s-5) var(--s-3);
  line-height: 1.4;
  caption-side: top;
}
.mt-table__no {
  display: inline-block;
  margin-right: 0.35em;
  padding: 0.15em 0.65em;
  border-radius: var(--r-pill);
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
  font-size: var(--fs-2xs);
  font-weight: 700;
  vertical-align: 0.1em;
}
.mt-table__cap {
  font-weight: 650;
  color: var(--c-ink);
}
.mt-table .data-table thead th {
  white-space: normal;
  font-size: var(--fs-xs);
  color: var(--c-ink-2);
}
.mt-table .data-table th,
.mt-table .data-table td {
  line-height: 1.5;
  overflow-wrap: break-word;
}
.mt-table .data-table tbody th {
  font-weight: 650;
  color: var(--c-ink);
}
.mt-table .data-table tbody td {
  color: var(--c-ink-2);
}
.mt-table .data-table tfoot th,
.mt-table .data-table tfoot td {
  background: var(--c-surface-2);
  font-weight: 700;
  color: var(--c-ink);
  border-top: 1px solid var(--c-rule-strong);
  border-bottom: 0;
}
.mt-table .data-table tbody tr:last-child th,
.mt-table .data-table tbody tr:last-child td {
  border-bottom: 0;
}
.mt-table--compact .data-table th,
.mt-table--compact .data-table td {
  padding-block: 0.65rem;
}
.mt-td {
  min-width: 0;
  overflow-wrap: break-word;
}
.mt-cell-list {
  list-style: none;
  display: grid;
  gap: 0.15rem;
}
.mt-table__note {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--c-muted);
  max-width: 72ch;
}
@media (min-width: 720px) {
  .mt-table--cols-5 .data-table,
  .mt-table--cols-4 .data-table {
    min-width: 640px;
  }
}

/* phones: tables with 3+ columns become stacked cards */
@media (max-width: 719px) {
  .mt-table--stack .table-wrap {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .mt-table--stack .data-table,
  .mt-table--stack .data-table tbody,
  .mt-table--stack .data-table tfoot,
  .mt-table--stack .data-table tr,
  .mt-table--stack .data-table th,
  .mt-table--stack .data-table td {
    display: block;
    width: 100%;
  }
  .mt-table--stack .data-table caption {
    display: block;
    padding: 0 0 var(--s-3);
  }
  .mt-table--stack .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .mt-table--stack .data-table tr {
    margin-bottom: var(--s-3);
    background: var(--c-surface);
    border: 1px solid var(--c-rule);
    border-radius: var(--r-lg);
    overflow: hidden;
  }
  .mt-table--stack .data-table tbody tr:hover {
    background: var(--c-surface);
  }
  .mt-table--stack .data-table tbody th,
  .mt-table--stack .data-table tfoot th {
    padding: var(--s-3) var(--s-4);
    background: var(--c-surface-2);
    border-bottom: 1px solid var(--c-rule);
    font-size: var(--fs-sm);
  }
  .mt-table--stack .data-table td {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--s-3);
    padding: 0.65rem var(--s-4);
    border-bottom: 1px solid var(--c-rule);
    text-align: left;
  }
  .mt-table--stack .data-table td:last-child {
    border-bottom: 0;
  }
  .mt-table--stack .data-table td::before {
    content: attr(data-label);
    font-size: var(--fs-xs);
    font-weight: 650;
    color: var(--c-muted);
    line-height: 1.5;
  }
  .mt-table--stack .data-table td.is-empty {
    display: none;
  }
  .mt-table--stack .data-table td.num {
    text-align: left;
  }
}
@media (max-width: 359px) {
  .mt-table--stack .data-table td {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }
}

/* --------------------------------------------------------------------- FAQ */
.mt-faq summary {
  align-items: flex-start;
}
.mt-faq summary::after {
  margin-top: -0.1rem;
}
.mt-faq__q {
  font-size: var(--fs-md);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0;
  min-width: 0;
  overflow-wrap: break-word;
}
.mt-faq__a p {
  max-width: 70ch;
  line-height: 1.7;
}
.mt-faq__item {
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.mt-faq__item[open] {
  box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------------ records */
.mt-records {
  margin-top: var(--s-5);
}

/* ----------------------------------------------------------- further reading */
.mt-reading {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  .mt-reading {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mt-read--related {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1280px) {
  .mt-reading {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mt-read--related {
    grid-column: auto;
  }
}
.mt-read {
  min-width: 0;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
}
.mt-read__title {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  font-weight: 700;
  color: var(--c-ink);
}
.mt-read__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--c-surface);
  color: var(--c-accent-text);
}
.mt-read__links {
  list-style: none;
  display: grid;
  gap: var(--s-3);
}
.mt-read__links .arrow-link {
  align-items: flex-start;
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.mt-read__links .arrow-link .icon {
  margin-top: 0.05em;
  flex-shrink: 0;
}
.mt-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.mt-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35em 0.95em;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  color: var(--c-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.mt-pill:hover {
  border-color: var(--c-accent-line);
  color: var(--c-accent-text);
  text-decoration: none;
}

/* --------------------------------------------------- document control + cite */
.mt-control {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1280px) {
  .mt-control {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
  }
}
@media (max-width: 359px) {
  .mt-control__grid.meta-grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.mt-cite {
  display: grid;
  gap: var(--s-3);
  justify-items: start;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-accent-soft);
}
.mt-cite__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  color: var(--c-ink);
}
.mt-cite__label .icon {
  color: var(--c-accent-text);
}
.mt-cite__text {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--c-ink-2);
  overflow-wrap: anywhere;
}
.mt-sec--control > .mt-small {
  margin-top: var(--s-5);
}

/* -------------------------------------------------------------------- pager */
.mt-pager {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--s-8);
}
@media (min-width: 560px) {
  .mt-pager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.mt-pager__link {
  display: grid;
  gap: 0.3rem;
  padding: var(--s-5);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  color: var(--c-ink);
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.mt-pager__link:hover {
  text-decoration: none;
  border-color: var(--c-accent-line);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.mt-pager__link--next {
  text-align: right;
  justify-items: end;
}
.mt-pager__dir {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--c-accent-text);
}
.mt-pager__title {
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: break-word;
}
.mt-pager__id {
  font-size: var(--fs-2xs);
  color: var(--c-muted);
}
@media (max-width: 559px) {
  .mt-pager__spacer {
    display: none;
  }
}

/* ======================================================= SCORING: WEIGHTS */
.mt-weights {
  margin-inline: 0;
  margin-bottom: 0;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
}
.mt-weights__bar {
  display: flex;
  gap: 4px;
  height: 44px;
}
.mt-weights__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-radius: 10px;
  font-size: var(--fs-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}
.mt-weights__seg > span {
  padding-inline: 0.25rem;
  overflow: hidden;
  text-overflow: clip;
}
.mt-weights__seg--leak,
.mt-weights__sw--leak {
  background: var(--c-accent);
  color: var(--c-accent-ink);
}
.mt-weights__seg--security,
.mt-weights__sw--security {
  background: color-mix(in srgb, var(--c-accent) 55%, var(--c-surface));
  color: var(--c-ink);
}
.mt-weights__seg--performance,
.mt-weights__sw--performance {
  background: var(--c-teal);
  color: #ffffff;
}
.mt-weights__seg--reliability,
.mt-weights__sw--reliability {
  background: color-mix(in srgb, var(--c-teal) 45%, var(--c-surface));
  color: var(--c-ink);
}
.mt-weights__seg--transparency,
.mt-weights__sw--transparency {
  background: var(--c-amber);
  color: #000000;
}
.mt-weights__legend ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
}
.mt-weights__legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-width: 0;
}
.mt-weights__legend strong {
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}
.mt-weights__sw {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
@media (max-width: 559px) {
  .mt-weights__seg > span {
    display: none;
  }
  .mt-weights__bar {
    height: 28px;
  }
}

/* ===================================================== SCORING: CALCULATOR */
.mt-calc {
  padding: var(--s-5);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.mt-calc__head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
}
.mt-calc__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
}
.mt-calc__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.3;
}
.mt-calc__intro {
  margin-top: var(--s-1);
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
  max-width: 64ch;
}
.mt-calc__inputs {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--s-5);
}
@media (min-width: 560px) {
  .mt-calc__inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .mt-calc__inputs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.mt-calc__field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  min-width: 0;
}
.mt-calc__field label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--c-ink);
  line-height: 1.35;
  flex: 1;
}
.mt-calc__w {
  color: var(--c-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mt-calc__field input {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--c-rule-strong);
  border-radius: var(--r-md);
  background: var(--c-paper);
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.mt-calc__field input:hover {
  border-color: var(--c-muted);
}
.mt-calc__field input:focus {
  outline: var(--focus);
  outline-offset: 1px;
  border-color: var(--c-accent-line);
}
.mt-calc__open {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
}
.mt-calc__open input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--c-accent);
}
.mt-calc__open label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink);
}
.mt-calc__foot {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-5);
  align-items: start;
}
@media (min-width: 720px) {
  .mt-calc__foot {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .mt-calc {
    padding: var(--s-6);
  }
}
.mt-calc__submit {
  justify-self: start;
}
.mt-calc__result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.mt-calc__cell {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
}
.mt-calc__cell--final {
  background: var(--c-accent-soft);
}
.mt-calc__k {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-muted);
}
.mt-calc__v,
.mt-calc__final {
  font-size: var(--fs-xl);
  font-weight: 750;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--c-ink);
}
.mt-calc__final {
  color: var(--c-accent-text);
}
.mt-calc.is-capped .mt-calc__cell--final {
  background: var(--c-amber-soft);
}
.mt-calc.is-capped .mt-calc__final {
  color: var(--c-amber-ink);
}
.mt-calc__note {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
  line-height: 1.5;
}

/* =================================================== CHANGELOG: RELEASES */
.mt-releases {
  list-style: none;
  display: grid;
  gap: var(--s-4);
}
.mt-release {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-xl);
  background: var(--c-surface);
}
@media (min-width: 720px) {
  .mt-release {
    padding: var(--s-6);
  }
}
.mt-release__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
}
.mt-release__title {
  font-size: var(--fs-xl);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.mt-release__fixes {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
}
.mt-release__fixes-title {
  font-size: var(--fs-md);
}
.mt-release__fixes .mt-small {
  margin: 0;
}

/* ================================================================ dark mode */
@media (prefers-color-scheme: dark) {
  .mt-callout--criterion {
    background:
      radial-gradient(70% 120% at 100% 0%, rgba(204, 255, 0, 0.13), transparent 70%),
      #111111;
  }
  .mt-doccard__media .illustration,
  .mt-ovhero__img,
  .mt-hero__art .illustration,
  .mt-feature__art .illustration,
  .mt-figure__img {
    filter: saturate(0.95);
  }
}

/* ==================================================================== print */
@media print {
  .mt-side,
  .mt-mnav,
  .mt-pager,
  .mt-calc,
  .mt-ovhero__art,
  .mt-hero__art,
  .mt-feature__art,
  .mt-doccard__media,
  .mt-ovcta,
  .mt-doccard__more,
  .mt-cite .btn {
    display: none !important;
  }
  .mt-docs {
    display: block;
    padding: 0;
  }
  .mt-hero,
  .mt-ovhero {
    padding-block: 0 1rem;
  }
  .mt-ovhero__title,
  .mt-ovhero__lead,
  .mt-cta__title,
  .mt-trust,
  .mt-statband__item dt {
    color: #000 !important;
  }
  .mt-ovhero .breadcrumbs a,
  .mt-ovhero .breadcrumbs [aria-current] {
    color: #555 !important;
  }
  .mt-version,
  .mt-version--dark,
  .mt-chip,
  .mt-brief,
  .mt-statband,
  .mt-callout,
  .mt-callout--criterion,
  .mt-steps,
  .mt-cite,
  .mt-read,
  .mt-weights {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #bbb !important;
    box-shadow: none !important;
  }
  .mt-callout--criterion .mt-callout__text,
  .mt-callout--criterion .mt-callout__label,
  .mt-statband__value,
  .mt-figure-stat__value {
    color: #000 !important;
  }
  .mt-statband__note {
    color: #444 !important;
  }
  .mt-doccard,
  .mt-principle,
  .mt-release,
  .mt-defs__row,
  .mt-steps__item,
  .mt-faq__item {
    break-inside: avoid;
    box-shadow: none !important;
    transform: none !important;
  }
  .mt-faq__item > :not(summary) {
    display: block !important;
  }
  .mt-code pre {
    background: #f3f4f7 !important;
    color: #000 !important;
    white-space: pre-wrap;
    border: 1px solid #ccc;
  }
  .mt-doccard__title a::after {
    content: none;
  }
  .mt-sec {
    margin-top: 1.5rem;
  }
}
