/* Compact Method layout, loaded after method.css. */

/* hero legend: each ring's count and name, a link to its section (the lede says what the counts are) */
.mt-legend a { display: grid; gap: 2px; color: inherit; text-decoration: none; }
.mt-legend a:hover span { text-decoration: underline; text-underline-offset: .2em; }
.mt-legend a:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }

/* the steps, read top to bottom: the step, what I did, what it gave (a big numeral and its unit), the detail */
.mt-steps::before { top: 20px; }
.mt-step-i { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--raise); font: 700 16px / 1 var(--sans); color: var(--fg-2); }
.mt-steps h3 { margin-top: 18px; }
.m-steps .mt-step-r { margin-top: 12px; max-width: none; display: flex; align-items: baseline; justify-content: center; gap: 8px; font: 600 clamp(15px, 1.2vw, 18px) / 1 var(--sans); color: var(--fg-2); }
.mt-step-r b { font: 700 clamp(40px, 4.4vw, 64px) / 1 var(--sans); letter-spacing: -.04em; color: var(--fg); font-variant-numeric: tabular-nums; }
@media (max-width: 699px) { .mt-step-i { width: 32px; height: 32px; font-size: 14px; } .mt-steps h3 { margin-top: 10px; } .m-steps .mt-step-r { margin-top: 8px; font-size: 14px; } .mt-step-r b { font-size: 34px; } }
@media (max-width: 359px) { .mt-step-r b { font-size: 28px; } }

/* a standard: the number, one line, the link */
.mt-line { margin-top: clamp(16px, 2.4vh, 26px); max-width: 22em; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.4; color: var(--fg-2); text-wrap: balance; }

/* (both columns start at the top, so opening the toggle grows the bars downward and the number stays put) */
.mt-std .m-std { align-items: start; }

/* the toggle under the bars */
.mt-more { margin-top: clamp(16px, 2.6vh, 28px); }
.mt-more > summary, .mt-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--fg); font: 600 15px/1.2 var(--sans); cursor: pointer; list-style: none;
}
.mt-more > summary::-webkit-details-marker { display: none; }
.mt-more > summary::after, .mt-toggle::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.mt-more[open] > summary::after, .mt-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.mt-more > summary:hover, .mt-toggle:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.mt-more > summary:focus-visible, .mt-toggle:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.mt-more .m-bars { margin-top: clamp(16px, 2.4vh, 24px); }

/* limits: labels to scan; the sentences show when asked */
.mt-lim { width: min(100%, 860px); display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 3vh, 32px); }
.mt-limits:not(.is-open) span { display: none; }


/* below a desktop: a standard is one screen, not two (the copy and its top rules fit together) */
@media (max-width: 1023px) {
  .mt-std .m-std { gap: clamp(28px, 4vh, 40px); }
  .mt-std .m-std > * { min-height: 0; }
  .mt-std .m-std-chart { padding-top: 0; }
}

.m-std-k[id], .m-head h2[id] { scroll-margin-top: calc(var(--nav-h) + 18px); }
