/* mk.css — /anatomy (Vera's spec, Sep 28 2026): "The Red Pen". A statement
   on the desk, marked up one line at a time. home.css supplies the base;
   every class here is mk- so nothing collides with the homepage's stmt__.
   Flat: white sheet, hairlines, a red pen. No shadows, gradients or glow. */
.mk { --pen: var(--red); --rule: #E7E4DC; --mono: "IBM Plex Mono", ui-monospace, monospace; }
.mk section { position: relative; }
.h-ink { color: var(--ink); }

/* 1. hero */
.mk-hero { padding: clamp(150px, 16vw, 200px) 0 140px; }
.mk-hero h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1.04; letter-spacing: -0.025em; max-width: 12em; }
.mk-hero__p { text-wrap: pretty; color: var(--snow-2); font-size: 19px; margin-top: 26px; max-width: 34em; }

/* 2. the desk */
.mk-desk { padding: 140px 0 120px; }
.mk-lede { font-size: 19px; color: var(--ink-2); max-width: 36em; }
.mk-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 44px 0 24px; font-size: 15px; color: var(--ink); }
.mk-legend li { display: flex; align-items: center; gap: 10px; }
.mk-key { display: inline-grid; place-items: center; width: 30px; height: 24px; font: 600 18px var(--head); }
.mk-key--real { color: var(--ink-2); }
.mk-key--theirs { border: 2px solid var(--pen); border-radius: 50%; width: 34px; height: 20px; }

.mk-sheet { background: #FFF; color: var(--ink); max-width: 880px; border: 1px solid var(--line-l); padding: 56px 56px 48px; font-family: var(--mono); }
.mk-head { padding-right: 160px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.mk-issuer { font: 600 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.mk-title { font: 400 22px/1.3 var(--head); margin-top: 6px; }
.mk-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 18px; font-size: 13px; }
.mk-meta dt { color: var(--ink-2); } .mk-meta dd { font-weight: 500; }
.mk-section { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-top: 40px; padding: 0 160px 10px 0; }
.mk-hint { text-transform: none; letter-spacing: 0; color: var(--pen); margin-left: 10px; }

.mk-row { display: grid; grid-template-columns: 1fr auto 160px; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 15px; list-style: none; }
.mk-row::-webkit-details-marker { display: none; }
.mk-label { min-width: 0; }
.mk-calc { display: block; font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.mk-amt, .mk-num { font: 500 18px var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.mk-row--total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: -1px; padding-top: 22px; font-weight: 600; }
.mk-row--total .mk-amt { font-size: 22px; }

.mk-line summary { cursor: pointer; transition: background 200ms; }
.mk-line summary:hover .mk-label { color: var(--pen); }
.mk-line summary:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }
.mk-margin { position: relative; height: 36px; display: flex; align-items: center; padding-left: 20px; border-left: 1px solid var(--rule); }
.mk-mark { height: 34px; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mk-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 450ms cubic-bezier(.3,.6,.2,1); }
.mk-mark--real { width: 40px; stroke: var(--ink-2); stroke-width: 3.5; }
.mk-mark--theirs { stroke: var(--pen); stroke-width: 3; }
.mk-line[open] .mk-mark path { stroke-dashoffset: 0; }
/* The circled amount: on a processor's line the pen circles the figure itself.
   The oval lives inside .mk-amt, so it is sized to that row's figure with an
   even margin. A closed line hides the path, whose round cap otherwise shows
   as a dot before the stroke is drawn. */
.mk-line--theirs .mk-amt { position: relative; }
.mk-mark--theirs { position: absolute; left: -30px; top: -13px; width: calc(100% + 48px); height: calc(100% + 26px); pointer-events: none; }
.mk-line:not([open]) .mk-mark path { opacity: 0; }
.mk-line--theirs[open] .mk-amt { color: var(--pen); }

.mk-reveal { padding: 4px 160px 26px 0; border-bottom: 1px solid var(--rule); font: 400 16px/1.65 var(--body); color: var(--ink-2); }
.mk-line[open] .mk-reveal { animation: mkin 350ms ease 200ms both; }
.mk-verdict { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.mk-verdict--real { color: var(--ink-2); }
.mk-verdict--theirs { color: var(--pen); }
@keyframes mkin { from { opacity: 0; transform: translateY(-6px); } }
.mk-note { font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 60em; margin-top: 18px; }
body[data-scene="dark"] .mk-note { color: var(--snow-2); }

/* 3. the number that is not on the page */
.mk-sum { padding: 170px 0; }
.mk-sum h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.1; max-width: 14em; }
.mk-sum__div { font: 500 22px var(--mono); color: var(--snow-2); margin-top: 48px; }
.mk-sum__figs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 72px; margin-top: 18px; }
.mk-sum__big span { display: inline-block; font: 600 clamp(120px, 16vw, 220px)/.9 var(--head); letter-spacing: -.05em; color: var(--snow); padding-bottom: 14px; border-bottom: 9px double var(--red); }
.mk-sum small { display: block; font: 400 15px var(--body); color: var(--snow-2); margin-top: 16px; letter-spacing: 0; max-width: 22em; }
.mk-sum__bench span { font: 600 64px/1 var(--head); color: var(--snow-2); letter-spacing: -.03em; }
.mk-sum__prose { margin-top: 64px; max-width: 36em; display: grid; gap: 18px; font-size: 18px; color: var(--snow-2); }

/* 4. close */
.mk-close { padding: 160px 0; }
.mk-close h2 { font-size: clamp(32px, 3.8vw, 52px); }
.mk-close .cta { margin-top: 30px; }
.mk-fee { font-size: 14px; color: var(--ink-2); max-width: 44em; margin-top: 28px; }
.mk-fee a { border-bottom: 1px solid currentColor; }

@media (max-width: 760px) {
  .mk-sheet { padding: 28px 18px; }
  .mk-head, .mk-section { padding-right: 0; }
  .mk-row { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .mk-margin { grid-column: 1 / -1; border-left: 0; padding-left: 0; height: auto; }
  .mk-margin:empty { display: none; }
  .mk-line:not([open]) .mk-margin { display: none; }
  .mk-reveal { padding-right: 0; }
  .mk-amt, .mk-num { font-size: 16px; }
  .mk-line--theirs .mk-amt { margin-left: 24px; }
  .mk-mark--theirs { left: -24px; width: calc(100% + 34px); }
}
@media (prefers-reduced-motion: reduce) {
  .mk-mark path { transition: none; }
  .mk-line[open] .mk-reveal { animation: none; }
}
