/* "What we test": one reading column with the page's contents beside it. Loaded after /static/scan.css,
   followup.css and ../shared/site.css. No cards, no icons: rules, type and the order of the spec do the work. */

.m-page {
  display: grid; grid-template-columns: minmax(180px, 250px) minmax(0, 820px); column-gap: clamp(40px, 6vw, 112px);
  padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(96px, 10vw, 152px);
}
/* anchors land under the sticky header, with air */
.m-page [id] { scroll-margin-top: calc(var(--hd) + 28px); }

/* ---------- head ---------- */
.m-head { grid-column: 2; padding-bottom: clamp(48px, 6vw, 88px); }
.m-h1 { font-weight: 300; font-size: var(--t-display); line-height: 1.03; letter-spacing: -0.045em; max-width: 15ch; text-wrap: balance; }
.m-intro { margin-top: 24px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }

/* ---------- contents ---------- */
.m-toc { grid-column: 1; grid-row: 2; align-self: start; position: sticky; top: calc(var(--hd) + 28px); padding-top: 28px; border-top: 1px solid var(--line-strong); }
.m-toc ol { display: grid; gap: 2px; }
.m-toc a { display: block; padding: 5px 0 5px 12px; border-left: 1px solid transparent; margin-left: -1px; font-size: 14px; line-height: 1.35; color: var(--ink-3); text-decoration: none; transition: color .2s, border-color .2s; }
.m-toc a:hover { color: var(--ink); }
.m-toc a.is-current { color: var(--ink); border-left-color: var(--ink); }
.m-toc ol ol { margin: 2px 0 6px 12px; }
.m-toc ol ol a { font-size: 13px; padding-top: 3px; padding-bottom: 3px; }

/* ---------- sections ---------- */
.m-doc { grid-column: 2; grid-row: 2; min-width: 0; }
.m-sec { border-top: 1px solid var(--ink); padding: 26px 0 clamp(64px, 7vw, 104px); }
.m-h2 { font-weight: 400; font-size: var(--t-h2); line-height: 1.15; letter-spacing: -0.025em; max-width: 24ch; text-wrap: balance; }
.m-lead { margin-top: 18px; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }
.m-acts { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* the scan: the one action in the accent, as on the home page */
.m-scan { display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 20px 0 22px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font: var(--w-btn) 16.5px/1 var(--font); white-space: nowrap; transition: background .2s; }
.m-scan::after { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1.5 7h10.5M8 3l4 4-4 4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1.5 7h10.5M8 3l4 4-4 4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.m-scan:hover { background: var(--accent-2); }
.m-btn-line { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font: var(--w-btn) 16px/1.2 var(--font); transition: background .2s; }
.m-btn-line:hover { background: rgba(18,20,19,.04); }

/* scan and audit side by side: two columns under one rule, a hairline between them */
.m-diff { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); }
.m-diff > div { padding: 20px 28px 4px 0; }
.m-diff > div + div { padding: 20px 0 4px 28px; border-left: 1px solid var(--line-strong); }
.m-diff dt { font-size: var(--t-h3); font-weight: var(--w-title); line-height: 1.3; letter-spacing: -0.01em; }
.m-diff dd { margin: 8px 0 0; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }

/* the three directions: the question left, what we do and what you receive right */
.m-dirs { margin-top: 36px; }
.m-dir { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 36px; padding: 24px 0 28px; border-top: 1px solid var(--line-strong); }
.m-dir h3 { font-weight: var(--w-title); font-size: var(--t-h3); line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.m-dir p { font-size: 16.5px; line-height: 1.55; }
.m-dir .m-out { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; }
.m-dir:target h3 { text-decoration: underline; text-decoration-color: var(--accent-deep); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* how we verify: five numbered steps on one line of time, then the two limits */
.m-steps { margin-top: 30px; counter-reset: step; }
.m-steps li { counter-increment: step; position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 0 0 22px; }
.m-steps li::before { content: counter(step); grid-row: 1 / span 2; font: 400 13px/1 var(--mono); color: var(--ink); width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; background: var(--bg); position: relative; z-index: 1; }
.m-steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 28px; bottom: 0; width: 1px; background: var(--line-strong); }
.m-steps h3 { grid-column: 2; padding-top: 3px; font-size: 18px; font-weight: 400; line-height: 1.35; letter-spacing: -0.01em; }
.m-steps p { grid-column: 2; margin-top: 4px; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.m-uncert { margin-top: 18px; padding: 4px 0 4px 18px; border-left: 2px solid var(--ink); font-size: clamp(18px, 1.45vw, 20px); line-height: 1.5; max-width: 56ch; text-wrap: pretty; }
.m-fine { margin-top: 16px; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); max-width: 64ch; }

#faq .h-qs { margin-top: 18px; }
#faq .h-qs > div:first-child { border-top: 0; }

/* ---------- narrow ---------- */
@media (max-width: 1080px) {
  .m-page { grid-template-columns: minmax(0, 1fr); }
  .m-head, .m-doc { grid-column: 1; }
  .m-toc { display: none; }
  .m-doc { grid-row: auto; }
}
@media (max-width: 760px) {
  .m-page { padding-top: 40px; }
  .m-h1 { font-size: clamp(36px, 10vw, 46px); } /* the phone display size, as on home */
  .m-intro { font-size: 17.5px; }
  .m-diff { grid-template-columns: 1fr; }
  .m-diff > div, .m-diff > div + div { padding: 18px 0 6px; border-left: 0; }
  .m-diff > div + div { border-top: 1px solid var(--line); margin-top: 12px; }
  .m-dir { grid-template-columns: 1fr; gap: 10px; }
  .m-acts .btn-ink, .m-scan, .m-btn-line { width: 100%; justify-content: center; }
  .m-steps li { grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; }
}

/* the report's marks (owner, 27.10): green numbers for the sections and the three directions (the steps stay ink);
   the orange marker for the key links (.mk in scan.css) */
.m-page { counter-reset: m-sec; }
.m-sec { counter-increment: m-sec; }
.m-sec > .m-h2::before { content: counter(m-sec, decimal-leading-zero); display: block; width: max-content; margin-bottom: 16px; padding: 4px 6px 3px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); font: 400 12px/1 var(--mono); letter-spacing: .02em; }
.m-dirs { counter-reset: m-dir; }
.m-dir { counter-increment: m-dir; }
.m-dir h3::before { content: counter(m-dir, decimal-leading-zero); display: inline-block; margin-right: 12px; padding: 4px 6px 3px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); font: 400 12px/1 var(--mono); letter-spacing: .02em; vertical-align: 4px; }

/* phones (27.10): a direction's title wraps under its words, not under its number; the page ends on the last
   section's own air, not on that plus 96 px more */
@media (max-width: 760px) {
  .m-dir h3 { padding-left: 38px; text-indent: -38px; text-wrap: pretty; }
  .m-dir h3::before { text-indent: 0; }
  .m-page { padding-bottom: 0; }
  .m-sec { padding-bottom: 56px; }
}
