/* Margined Self check block. Scoped under .msc so it sits inside any Webflow page.
   Paper ground, Forest Black type, Limestone hairlines, Graphite secondary text.
   Burgundy does one job: it marks what needs attention. */
.msc {
  --msc-paper: #F7F6F2;
  --msc-ink: #181713;
  --msc-line: #E0DBD3;
  --msc-muted: #6E6B66;
  --msc-attn: #4C2218;
  --msc-panel: #EFECE6;
  --msc-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --msc-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--msc-ink);
  background: var(--msc-paper);
  font-family: var(--msc-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.msc *, .msc *::before, .msc *::after { box-sizing: border-box; }
.msc-wrap { max-width: 1120px; margin: 0 auto; padding: 72px 24px; }
.msc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.msc-label { font: 500 12px/1.2 var(--msc-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--msc-muted); margin: 0 0 16px; }
.msc-label--attn { color: var(--msc-attn); }
.msc h2, .msc h3, .msc h4 { font-family: var(--msc-display); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.msc-h { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; }
.msc-h3 { font-size: 24px; line-height: 1.15; }
.msc-lede { color: var(--msc-ink); font-size: 18px; max-width: 34em; margin: 20px 0 0; }
.msc-small { font-size: 13px; color: var(--msc-muted); }
.msc-small a, .msc a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.msc-rule { border: 0; border-top: 1px solid var(--msc-line); margin: 48px 0; }

/* Form */
.msc-form { display: flex; gap: 0; border-bottom: 1px solid var(--msc-ink); margin-top: 8px; }
.msc-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.msc-input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 22px/1.3 var(--msc-body); color: var(--msc-ink); padding: 14px 0; outline: none; }
.msc-input::placeholder { color: var(--msc-muted); }
.msc-input:focus-visible { box-shadow: inset 0 -2px 0 var(--msc-ink); }
.msc-btn { appearance: none; border: 1px solid var(--msc-ink); background: var(--msc-ink); color: var(--msc-paper); font: 500 15px/1 var(--msc-body); padding: 14px 20px; cursor: pointer; white-space: nowrap; min-height: 44px; }
.msc-btn:hover { background: #000; }
.msc-btn:disabled { opacity: 0.5; cursor: default; }
.msc-btn--ghost { background: transparent; color: var(--msc-ink); }
.msc-btn--ghost:hover { background: var(--msc-panel); }
.msc-form .msc-btn { border: 0; margin-bottom: 6px; }
.msc-link { appearance: none; background: none; border: 0; padding: 0; color: var(--msc-ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.msc-error { color: var(--msc-attn); margin-top: 12px; font-size: 15px; }
.msc-fine { margin-top: 16px; }

/* Running */
.msc-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--msc-line); }
.msc-steps li { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--msc-line); }
.msc-n { font: 500 13px/1 var(--msc-body); color: var(--msc-muted); font-variant-numeric: tabular-nums; }
.msc-state { font-size: 13px; color: var(--msc-muted); }
.msc-done .msc-state { color: var(--msc-ink); }
.msc-now { margin-top: 16px; color: var(--msc-muted); font-size: 15px; min-height: 1.5em; }

/* Confirm */
.msc-confirm { margin-top: 32px; padding: 24px; background: var(--msc-panel); }
.msc-confirm fieldset { border: 0; margin: 0 0 20px; padding: 0; }
.msc-confirm legend { font: 500 15px/1.3 var(--msc-body); margin-bottom: 12px; }
.msc-options { display: flex; flex-wrap: wrap; gap: 8px; }
.msc-chip { position: relative; }
.msc-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.msc-chip span { display: inline-block; padding: 8px 12px; border: 1px solid var(--msc-line); background: var(--msc-paper); font-size: 14px; cursor: pointer; }
.msc-chip input:checked + span { border-color: var(--msc-ink); background: var(--msc-ink); color: var(--msc-paper); }
.msc-chip input:focus-visible + span { outline: 2px solid var(--msc-ink); outline-offset: 2px; }
.msc-other { margin-top: 10px; width: 100%; border: 0; border-bottom: 1px solid var(--msc-ink); background: transparent; font: inherit; padding: 8px 0; }

/* Result */
.msc-score { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 4px; }
.msc-score b { font: 500 clamp(64px, 9vw, 112px)/0.9 var(--msc-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.msc-score span { font: 400 22px/1 var(--msc-display); color: var(--msc-muted); }
.msc-score--pending { display: block; font: 400 22px/1.2 var(--msc-display); color: var(--msc-muted); }
.msc-band { font: 500 20px/1.3 var(--msc-display); margin: 8px 0 0; max-width: 26em; }
.msc-as { margin-top: 16px; font-size: 15px; color: var(--msc-muted); }
.msc-as strong { color: var(--msc-ink); font-weight: 500; }
.msc-section { margin-top: 56px; }
.msc-section > .msc-h3 { margin-bottom: 8px; }
.msc-section > p.msc-small { margin: 0 0 20px; }

.msc-top { list-style: none; margin: 0; padding: 0; counter-reset: top; }
.msc-top li { padding: 18px 0; border-top: 1px solid var(--msc-line); display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.msc-top li::before { counter-increment: top; content: counter(top); font: 500 13px/1.6 var(--msc-body); color: var(--msc-attn); }
.msc-top h4 { font-size: 18px; line-height: 1.3; }
.msc-ev { font-size: 14px; color: var(--msc-muted); margin: 6px 0 0; overflow-wrap: anywhere; }
.msc-fix { font-size: 15px; margin: 6px 0 0; }
.msc-fix::before { content: 'Fix: '; font-weight: 600; }
.msc-why { font-size: 15px; margin: 6px 0 0; }

/* Ranking */
.msc-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.msc-table th { text-align: left; font: 500 11px/1.2 var(--msc-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--msc-muted); padding: 0 8px 10px 0; border-bottom: 1px solid var(--msc-ink); }
.msc-table td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--msc-line); vertical-align: middle; font-size: 15px; }
.msc-table .msc-r { width: 40px; color: var(--msc-muted); }
.msc-table .msc-s { width: 64px; text-align: right; font-weight: 500; }
.msc-table .msc-barcell { width: 32%; }
.msc-bar { height: 6px; background: var(--msc-line); position: relative; }
.msc-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--msc-ink); }
.msc-you td { font-weight: 600; }
.msc-you .msc-bar i { background: var(--msc-attn); }
.msc-firm small { display: block; color: var(--msc-muted); font-weight: 400; font-size: 13px; }
.msc-gaps { list-style: none; padding: 0; margin: 24px 0 0; }
.msc-gaps li { padding: 10px 0; border-top: 1px solid var(--msc-line); font-size: 15px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.msc-gaps li span:last-child { color: var(--msc-muted); }
.msc-add { display: flex; gap: 8px; margin-top: 20px; align-items: flex-end; }
.msc-add input { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--msc-ink); background: transparent; font: inherit; padding: 10px 0; }

/* Dimensions */
.msc-dims { border-top: 1px solid var(--msc-ink); }
.msc-dim { border-bottom: 1px solid var(--msc-line); }
.msc-dim > summary { list-style: none; display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: baseline; padding: 18px 0; cursor: pointer; }
.msc-dim > summary::-webkit-details-marker { display: none; }
.msc-dim > summary:focus-visible { outline: 2px solid var(--msc-ink); outline-offset: 2px; }
.msc-dim > summary .msc-dname { font: 500 20px/1.2 var(--msc-display); }
.msc-dim > summary .msc-dscore { font: 500 20px/1 var(--msc-display); font-variant-numeric: tabular-nums; }
.msc-dim > summary .msc-dscore small { font: 400 14px var(--msc-body); color: var(--msc-muted); }
.msc-dim[open] > summary .msc-dname::after { content: ''; }
.msc-dbody { padding: 0 0 20px 44px; }
.msc-dbody > p.msc-small { margin: 0 0 12px; }
.msc-dnote { margin: 8px 0 4px; }
.msc-check { padding: 14px 0; border-top: 1px solid var(--msc-line); }
.msc-check h5 { margin: 0; font: 600 15px/1.35 var(--msc-body); display: flex; gap: 10px; align-items: baseline; }
.msc-tag { font: 500 11px/1 var(--msc-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--msc-muted); }
.msc-tag--fail { color: var(--msc-attn); }
.msc-passed { margin-top: 8px; }
.msc-passed summary { cursor: pointer; font-size: 14px; color: var(--msc-muted); padding: 8px 0; }
.msc-passed ul { margin: 0; padding: 0 0 0 18px; font-size: 14px; }
.msc-passed li { margin: 4px 0; }

.msc-human { list-style: none; margin: 0; padding: 0; }
.msc-human li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--msc-line); font-size: 15px; }
.msc-human li b { font-weight: 500; }
.msc-door { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.msc-door a.msc-btn { text-decoration: none; display: inline-flex; align-items: center; color: var(--msc-paper); }
.msc-door a.msc-btn--ghost { color: var(--msc-ink); }
.msc-method { margin-top: 40px; }


/* The AI test */
.msc-ai-steps li { align-items: baseline; }
.msc-ai-q > summary { grid-template-columns: 150px 1fr; }
.msc-ai-q > summary .msc-dname { font: 500 16px/1.35 var(--msc-body); }
.msc-ai-q > summary .msc-tag { padding-top: 3px; }
.msc-answer { white-space: pre-wrap; font-size: 15px; line-height: 1.6; max-width: 46em; overflow-wrap: anywhere; }
.msc-ai-firms .msc-s { width: 120px; }

@media (max-width: 860px) {
  .msc-ai-q > summary { grid-template-columns: 1fr; gap: 4px; }
  .msc-wrap { padding: 48px 16px; }
  .msc-grid { grid-template-columns: 1fr; gap: 32px; }
  .msc-human li { grid-template-columns: 1fr; gap: 4px; }
  .msc-dbody { padding-left: 0; }
  .msc-table .msc-barcell { display: none; }
  .msc-input { font-size: 19px; }
  .msc-lede { font-size: 16px; }
}
@media print {
  .msc { background: #fff; }
  .msc-form, .msc-add, .msc-door, .msc-noprint { display: none !important; }
  .msc-dim:not([open]) .msc-dbody { display: block; }
  .msc-bar i, .msc-you .msc-bar i { background: #000; }
}

/* Waiting: one wait, one reveal */
.msc-wait-steps li { grid-template-columns: 32px 1fr auto; }
.msc-wait-steps .msc-sname { color: var(--msc-muted); }
.msc-wait-steps .msc-on .msc-sname, .msc-wait-steps .msc-done .msc-sname { color: var(--msc-ink); }
.msc-wait-steps .msc-on .msc-state { color: var(--msc-ink); }
.msc-wait-steps .msc-on .msc-n::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--msc-attn); margin-right: 6px; vertical-align: middle; }
.msc-wait-steps .msc-done .msc-state::before { content: '✓ '; }
.msc-left { color: var(--msc-ink); }

/* Result head */
.msc-rankline { margin: 10px 0 0; font-size: 16px; }
.msc-topfix > summary { list-style: none; cursor: pointer; }
.msc-topfix > summary::-webkit-details-marker { display: none; }
.msc-topfix > summary::after { content: 'How to fix'; display: block; margin-top: 4px; font: 400 13px var(--msc-body); color: var(--msc-muted); text-decoration: underline; text-underline-offset: 3px; }
.msc-topfix[open] > summary::after { content: ''; }

/* Six cards */
.msc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--msc-ink); border-left: 1px solid var(--msc-line); }
.msc-card { appearance: none; text-align: left; background: transparent; border: 0; border-right: 1px solid var(--msc-line); border-bottom: 1px solid var(--msc-line); padding: 20px 20px 18px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; cursor: pointer; font: inherit; color: var(--msc-ink); min-height: 170px; }
.msc-card:hover { background: var(--msc-panel); }
.msc-card:focus-visible { outline: 2px solid var(--msc-ink); outline-offset: -2px; }
.msc-card--open { background: var(--msc-panel); box-shadow: inset 0 -2px 0 var(--msc-ink); }
.msc-card-name { font: 500 12px/1.2 var(--msc-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--msc-muted); }
.msc-card-score { font: 500 40px/1 var(--msc-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.msc-card-score small { font: 400 15px var(--msc-body); color: var(--msc-muted); letter-spacing: 0; }
.msc-card-line { font-size: 15px; line-height: 1.4; }
.msc-card-more { font-size: 13px; color: var(--msc-muted); text-decoration: underline; text-underline-offset: 3px; }
.msc-area { margin-top: 24px; padding: 24px; background: var(--msc-panel); max-width: 52em; }
.msc-area .msc-h3 { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.msc-area-score { font-variant-numeric: tabular-nums; color: var(--msc-muted); }
.msc-area > p { margin: 0 0 16px; }
.msc-area-fix { border-top: 1px solid var(--msc-line); padding-top: 16px; }
.msc-area-fix .msc-label { margin-bottom: 8px; }
.msc-area-fixt { font-weight: 600; margin: 0; }
.msc-seedetails, .msc-more { margin-top: 16px; }
.msc-seedetails > summary, .msc-more > summary { cursor: pointer; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; width: fit-content; }
.msc-seedetails[open] > summary, .msc-more[open] > summary { margin-bottom: 12px; }
.msc-printonly { display: none; }

/* Claude */
.msc-instead { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--msc-line); max-width: 36em; }
.msc-instead li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--msc-line); }

/* How this works */
.msc-how { margin-top: 56px; border-top: 1px solid var(--msc-ink); }
.msc-how > summary { cursor: pointer; padding: 18px 0; font: 500 20px/1.2 var(--msc-display); list-style: none; }
.msc-how > summary::-webkit-details-marker { display: none; }
.msc-how > summary::after { content: ' +'; color: var(--msc-muted); }
.msc-how[open] > summary::after { content: ' −'; }
.msc-howbody { max-width: 52em; padding-bottom: 24px; }
.msc-howbody > p { margin: 0 0 12px; }
.msc-door.msc-section { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

@media (max-width: 860px) {
  .msc-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-left: 0; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; scroll-padding-inline: 16px; gap: 10px; border-top: 0; scrollbar-width: none; }
  .msc-cards::-webkit-scrollbar { display: none; }
  .msc-card { flex: 0 0 78%; scroll-snap-align: start; border: 1px solid var(--msc-line); border-top: 1px solid var(--msc-ink); min-height: 180px; }
  .msc-area { padding: 18px; }
}
@media print {
  .msc-cards > .msc-card .msc-card-more, .msc-area#msc-area, .msc-seedetails > summary { display: none; }
  .msc-printonly { display: block; }
  .msc-printonly .msc-area { break-inside: avoid; }
}


/* Progress and the form on the waiting screen */
.msc-progress { height: 2px; background: var(--msc-line); margin-top: 18px; position: relative; overflow: hidden; }
.msc-progress i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--msc-ink); transition: width 1s linear; }
.msc-lead { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--msc-ink); max-width: 34em; }
.msc-lead .msc-label { margin-bottom: 8px; }
.msc-lead-intro { margin: 0 0 16px; font-size: 15px; }
.msc-field-row { margin-bottom: 14px; display: grid; gap: 4px; }
.msc-field-row label { font: 500 13px/1.3 var(--msc-body); }
.msc-field-row input { border: 0; border-bottom: 1px solid var(--msc-ink); background: transparent; font: 400 17px/1.3 var(--msc-body); color: var(--msc-ink); padding: 8px 0; outline: none; border-radius: 0; min-height: 44px; }
.msc-field-row input:focus-visible { box-shadow: inset 0 -2px 0 var(--msc-ink); }
.msc-field-row small { font-size: 13px; color: var(--msc-muted); }
.msc-field-row--err input { border-bottom-color: var(--msc-attn); }
.msc-err { color: var(--msc-attn) !important; }
.msc-consent { display: grid; grid-template-columns: 22px 1fr; gap: 8px 10px; align-items: start; margin: 18px 0 16px; font-size: 14px; }
.msc-consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--msc-ink); }
.msc-consent small { grid-column: 2; font-size: 13px; }
.msc-lead .msc-btn { margin-top: 4px; }
.msc-lead > .msc-small { margin: 12px 0 0; }
.msc-lead--sent p:last-child { margin: 0; font-size: 16px; }
.msc-unlock .msc-lead { margin-top: 0; padding-top: 0; border-top: 0; }
.msc-unlockline { margin: 16px 0 0; font-size: 15px; }
.msc-card-more { white-space: nowrap; }
.msc-cap { font-size: 15px; color: var(--msc-muted); }

/* Its own rule: a browser that does not know ::details-content drops only this one. */
@media print {
  .msc details::details-content { content-visibility: visible; display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  .msc-steps li { transition: color 0.2s ease; }
}

/* One screen: the website and the details */
.msc-start { margin-top: 28px; max-width: 34em; }
.msc-start .msc-lead { margin-top: 0; padding-top: 0; border-top: 0; max-width: none; }
.msc-site-row .msc-input { font-size: 22px; padding: 10px 0; }
.msc-start > .msc-btn { margin-top: 4px; }

/* Keep this report: email it or download the PDF */
.msc-keep-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.msc-keep-note { margin: 12px 0 0; min-height: 1.4em; }

/* The bot trap in the details form: off screen, never seen or tabbed to. */
.msc-hp { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* The Check block at the end of the report. */
.msc-checkblock { flex: 1 1 100%; max-width: 640px; }
.msc-checkblock .msc-h3 { margin: 8px 0 12px; }
.msc-checkblock p:not(.msc-label) { margin: 0 0 20px; }
.msc-door .msc-checkblock + .msc-link { margin-top: 8px; }
