/* CV Compiler /resume-checker. Paper base, centered hero, flat editorial rows. */

@font-face { font-family: "Space Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/uploads-pre-acq/fonts/SpaceMonoRegular/SpaceMonoRegular.woff2") format("woff2"); }
@font-face { font-family: "Cerebri Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/partner-review/vendor/fonts/CerebriSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Cerebri Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/partner-review/vendor/fonts/CerebriSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "Cerebri Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/partner-review/vendor/fonts/CerebriSans-SemiBold.woff2") format("woff2"); }

:root {
  --paper: #f5f2ea;
  --paper-deep: #ece7db;
  --paper-edge: #e0d9ca;
  --sheet: #ffffff;
  --ink: #17181c;
  --ink-soft: #55565e;
  --ink-faint: #67676f;
  --purple: #4a2de0;
  --purple-dark: #3a20c2;
  --purple-tint: rgba(74, 45, 224, 0.13);
  --mint: #6ddba1;
  --mint-ink: #17774a;
  --mint-tint: rgba(79, 201, 138, 0.26);
  --rule: rgba(23, 24, 28, 0.14);
  --rule-strong: rgba(23, 24, 28, 0.3);
  --error: #a3211a;

  --sans: "Cerebri Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Space Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-micro: 0.75rem;
  --fs-tag: 0.8125rem;
  --fs-small: 0.9375rem;
  --fs-body: 1.125rem;
  --fs-lead: 1.3125rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 1.35rem + 1.5vw, 2.375rem);
  --fs-h1: clamp(2.375rem, 1.6rem + 3.3vw, 3.75rem);
  --fs-quote: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem);
  --fs-btn: 1rem;
  --fs-sheet: 0.84375rem;
  --fs-sheet-name: 1.375rem;

  --gutter: 32px;
  --wrap: 1176px;
  --label: 296px;
  --gap: clamp(72px, 9vw, 132px);
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.8, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-body); line-height: 1.62;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
section[id], div[id] { scroll-margin-top: 24px; }

.skip {
  position: absolute; left: 16px; top: -80px; padding: 12px 18px;
  background: var(--ink); color: #fff; font-size: var(--fs-small); font-weight: 600; border-radius: var(--radius);
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2 { font-weight: 500; letter-spacing: -0.035em; }
h1 { font-size: var(--fs-h1); line-height: 1.02; }
h2 { font-size: var(--fs-h2); line-height: 1.1; }
h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 600; letter-spacing: -0.012em; }

.tag {
  font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint);
}

/* Buttons keep their colour family on hover and move by one pixel. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 13px 28px; border: 0; border-radius: 999px;
  background: var(--purple); color: #fff; font-size: var(--fs-btn); font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(23, 24, 28, 0.2);
  transition: background-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn:hover { background: var(--purple-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(58, 32, 194, 0.24); }
.btn:active { transform: none; }
.btn[disabled] { background: #8f8ca6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--small { min-height: 44px; padding: 9px 20px; font-size: var(--fs-small); }
.btn--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule-strong); }
.btn--quiet:hover { background: var(--paper-deep); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- Header ---------- */
.top__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand {
  font-family: var(--mono); font-weight: 400; font-size: 1.1875rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap; margin-right: auto;
}
.nav ul { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.nav a {
  display: inline-block; padding: 10px 0; font-size: var(--fs-small); color: var(--ink-soft);
  text-decoration: none; transition: color 160ms var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav-toggle {
  display: none; align-items: center; min-height: 44px; padding: 8px 16px; background: transparent;
  border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--rule-strong);
  font-size: var(--fs-small); font-weight: 600; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(44px, 7vw, 96px) 0 0; text-align: center; }
.hero__lead {
  max-width: 31em; margin: 22px auto 0; font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-soft);
}

.upload {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; text-align: left;
  max-width: 600px; margin: 36px auto 0; padding: 18px 18px 18px 26px;
  background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 14px;
  box-shadow: 0 1px 0 rgba(23, 24, 28, 0.05), 0 14px 34px -18px rgba(23, 24, 28, 0.28);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.upload.is-drag { border-color: var(--purple); background: #f4f1ff; }
.upload__text { flex: 1 1 240px; }
.upload__title { font-size: var(--fs-body); font-weight: 600; line-height: 1.3; }
.upload__meta { margin-top: 2px; font-size: var(--fs-small); color: var(--ink-soft); }
.upload__action { flex: 0 0 auto; }
/* Messages added by the shared uploader. */
.upload noscript { flex: 1 1 100%; }
.upload__status { flex: 1 1 100%; font-size: var(--fs-small); font-weight: 500; color: var(--error); }
.upload + div { max-width: 600px; margin: 18px auto 0; font-size: var(--fs-small); font-weight: 500; text-align: left; }
.upload + div p { margin-bottom: 10px; }
.upload + div button {
  min-height: 44px; padding: 8px 18px; background: transparent; border: 0; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 600; cursor: pointer;
}
.hero__note { margin-top: 16px; font-size: var(--fs-small); color: var(--ink-faint); }

/* ---------- Framed scene with the annotated resume ---------- */
.scene {
  position: relative; margin-top: clamp(40px, 5vw, 64px); padding: clamp(32px, 4vw, 48px) 20px;
  border-radius: var(--radius); overflow: hidden; text-align: left;
  background: linear-gradient(135deg, #e6dece 0%, #d9d0bd 48%, #cfc7d6 100%);
}
.scene__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet {
  position: relative; max-width: 780px; margin: 0 auto; padding: 38px 52px 42px 76px;
  background: var(--sheet); border-radius: 3px; color: #1c1d22;
  font-size: var(--fs-sheet); line-height: 1.5;
  box-shadow: 0 1px 1px rgba(40, 30, 10, 0.12), 0 22px 44px -16px rgba(40, 30, 10, 0.42);
}
.sheet__name { font-size: var(--fs-sheet-name); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.sheet__role { margin-top: 2px; color: #3d3e46; }
.sheet__h {
  margin: 16px 0 7px; padding-bottom: 4px; border-bottom: 1px solid #1c1d22;
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.sheet__org { margin-top: 10px; font-weight: 600; }
.sheet__org:first-of-type { margin-top: 0; }
.sheet__job { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; margin-top: 6px; }
.sheet__job span:first-of-type { font-style: italic; }
.sheet ul { margin-top: 3px; }
.sheet li { position: relative; padding-left: 14px; }
.sheet li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 4px; height: 4px; border-radius: 50%; background: #1c1d22; }
.ln { position: relative; }
.sheet mark { padding: 1px 3px; margin: 0 -3px; border-radius: 2px; color: inherit; background: var(--purple-tint); }
.sheet mark.m-r { background: var(--mint-tint); }
.sheet mark.m-b { background: linear-gradient(90deg, var(--purple-tint) 0 50%, var(--mint-tint) 50% 100%); }

.n {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 50%; background: var(--purple); color: #fff;
  font-family: var(--mono); font-size: var(--fs-micro); font-weight: 400; line-height: 1; font-style: normal;
}
.n--r { background: var(--mint-ink); }
.n--b { background: linear-gradient(90deg, var(--purple) 0 50%, var(--mint-ink) 50% 100%); }
.sheet .n { position: absolute; left: -46px; top: -2px; }
.sheet .n::after {
  content: ""; position: absolute; left: 100%; top: 50%; width: 14px; height: 1px; background: currentColor;
  color: var(--rule-strong);
}

@keyframes n-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes n-idle { 0%, 82%, 100% { box-shadow: 0 0 0 0 rgba(74, 45, 224, 0); } 88% { box-shadow: 0 0 0 7px rgba(74, 45, 224, 0.16); } }
.sheet .n { animation: n-in 420ms var(--ease) both, n-idle 10s ease-in-out infinite; }
.sheet .n[data-i="1"] { animation-delay: 300ms, 2s; }
.sheet .n[data-i="2"] { animation-delay: 480ms, 4s; }
.sheet .n[data-i="3"] { animation-delay: 660ms, 6s; }
.sheet .n[data-i="4"] { animation-delay: 840ms, 8s; }
.sheet .n[data-i="5"] { animation-delay: 1020ms, 10s; }

.nw { white-space: nowrap; }

/* Wide screens: the HTML page sits exactly on the photo's painted Letter sheet, at the photo's own 3:2
   proportion, with the numbered notes out in the folder margin. Narrower screens keep the flowing sheet. */
@media (min-width: 1180px) {
  .scene { container-type: inline-size; aspect-ratio: 1536 / 1024; padding: 0; overflow: visible; background: none; }
  .scene__bg { border-radius: var(--radius); }
  .sheet {
    position: absolute; left: 28.58%; top: 8.79%; width: 42.84%; min-height: 83.5%; max-width: none; margin: 0;
    padding: 30px 30px 30px 34px; border-radius: 2px;
    font-size: clamp(0.71875rem, 1.063cqw, 0.78125rem); line-height: 1.45;
  }
  .sheet__name { font-size: clamp(1.125rem, 1.72cqw, 1.3125rem); }
  .sheet__h { margin: 13px 0 6px; padding-bottom: 3px; font-size: 0.6875rem; }
  .sheet .n { left: -78px; top: -3px; outline: 2px solid rgba(255, 255, 255, 0.9); }
  .sheet .n::after { width: 48px; margin-left: 2px; color: #cfc6dd; }
}

.scene__cap { margin-top: 14px; font-size: var(--fs-small); color: var(--ink-faint); text-align: center; }

/* Legend under the scene */
.legend { max-width: 880px; margin: clamp(36px, 4vw, 52px) auto 0; text-align: left; border-top: 1px solid var(--rule); }
.legend li {
  display: grid; grid-template-columns: 24px 104px 1fr; gap: 0 18px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.legend .tag { padding-top: 5px; }
.legend p { font-size: 1.0625rem; line-height: 1.5; }
.legend strong { font-weight: 600; }

/* ---------- Sections: left label column, flat content ---------- */
.sec { padding-top: var(--gap); }
.sec__in { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); gap: 0 56px; align-items: start; }
.sec__head { position: sticky; top: 28px; }
.sec__head .tag { display: block; margin-bottom: 14px; }
.sec__body { max-width: 780px; }
.sec__body > p + p { margin-top: 1.05em; }
.sec__body > h3 { margin-top: 2.4em; }
.sec__body > h3 + p { margin-top: 0.55em; }
.sec__body > .ev + p, .sec__body > .cards + p { margin-top: 32px; }
.sec__body > .steps + p { margin-top: 18px; }
.sec__body > .out + .steps { margin-top: 24px; }
.lede { font-size: var(--fs-lead); line-height: 1.5; }
.sec a:not(.btn) { color: var(--purple-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sec a:not(.btn):hover { color: var(--purple); text-decoration-thickness: 2px; }
q, .q { quotes: "\201C" "\201D"; }

/* Rows panel (three reader questions) */
.rows { margin-top: 36px; background: var(--paper-deep); border: 1px solid var(--rule); border-radius: var(--radius); }
.rows > li { padding: 28px 30px 30px; border-left: 3px solid var(--purple); margin: 0; }
.rows > li + li { border-top: 1px solid var(--rule); }
.rows > li:nth-child(2) { border-left-color: var(--mint-ink); }
.rows > li:nth-child(3) { border-left-color: var(--ink); }
.rows h3 { margin-bottom: 10px; }
.rows p + p { margin-top: 0.9em; }
.eg {
  margin-top: 16px; padding: 14px 18px; background: var(--sheet); border-radius: 3px;
  font-size: 1rem; line-height: 1.5; box-shadow: 0 1px 2px rgba(40, 30, 10, 0.1);
}
.eg dt { font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.eg dd + dt { margin-top: 12px; }
.eg dd { margin-top: 2px; }

/* ATS diagram: resume line to stored field */
.map { margin-top: 36px; padding: 28px 30px 22px; background: var(--paper-deep); border: 1px solid var(--rule); border-radius: var(--radius); }
.map__heads, .map li { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; }
.map__heads { padding-bottom: 12px; }
.map__heads span:last-child { grid-column: 3; }
.map li { padding: 7px 0; }
.map__src {
  padding: 9px 14px; background: var(--sheet); border-radius: 3px; font-size: var(--fs-small); line-height: 1.4;
  box-shadow: 0 1px 2px rgba(40, 30, 10, 0.1);
}
.map__from { display: none; }
.map__link { position: relative; height: 1px; background: var(--purple); opacity: 0.55; }
.map__link::after {
  content: ""; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--purple);
}
.map__field { padding: 4px 0 4px 16px; font-size: var(--fs-small); line-height: 1.4; }
.map__field b { display: block; font-family: var(--mono); font-size: var(--fs-micro); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint-ink); }
.map__field span + b { margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.chips i { padding: 1px 9px; border-radius: 999px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule-strong); font-style: normal; font-size: var(--fs-tag); }
.cap { margin-top: 14px; font-size: var(--fs-small); color: var(--ink-faint); }

/* Numbered points and steps */
.points { margin-top: 18px; border-top: 1px solid var(--rule); }
.points li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 4px 28px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.points h4 { margin: 0; font-size: var(--fs-body); font-weight: 600; line-height: 1.4; }
.points p { font-size: 1.0625rem; line-height: 1.55; }
.steps { margin-top: 14px; counter-reset: s; }
.steps li { position: relative; padding: 10px 0 10px 44px; counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 11px; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.5px var(--rule-strong);
  font-family: var(--mono); font-size: var(--fs-micro);
}
.steps strong { font-weight: 600; }

/* Skills with evidence */
.ev { width: 100%; margin-top: 28px; border-collapse: collapse; font-size: 1rem; line-height: 1.45; text-align: left; }
.ev caption { caption-side: bottom; padding-top: 12px; font-size: var(--fs-small); color: var(--ink-faint); text-align: left; }
.ev th, .ev td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ev thead th { font-family: var(--mono); font-size: var(--fs-micro); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); border-bottom-color: var(--rule-strong); }
.ev tbody th { font-weight: 600; white-space: nowrap; }
.ev td:last-child { padding-right: 0; color: var(--ink-soft); }
.yes, .no { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.yes::before, .no::before { content: ""; width: 11px; height: 11px; border-radius: 50%; }
.yes::before { background: var(--mint-ink); }
.no::before { box-shadow: inset 0 0 0 1.5px var(--ink-faint); }
.no { color: var(--ink-soft); }

.worksheet {
  display: flex; align-items: center; gap: 24px; margin-top: 40px; padding: 22px 26px;
  background: var(--paper-deep); border: 1px solid var(--rule); border-radius: var(--radius);
}
.worksheet img { flex: 0 0 auto; width: 110px; height: auto; border-radius: 2px; background: var(--sheet); box-shadow: 0 6px 16px -8px rgba(40, 30, 10, 0.45); }
.worksheet h3 { margin-bottom: 6px; }
.worksheet p { font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
.worksheet .btn { margin-top: 14px; }

/* Score cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.cards li { padding: 22px 22px 24px; background: var(--paper-deep); border-radius: var(--radius); }
.cards h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.cards p { font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
.cards .tag { display: block; margin-bottom: 18px; color: var(--purple); }

/* Finished output */
.out { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 32px; }
.out figure { max-width: 620px; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #e9e2d3, #d8d1e2); }
.out img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.out figcaption { padding: 12px 18px; background: var(--paper-deep); font-size: var(--fs-small); color: var(--ink-soft); }
.links { margin-top: 18px; border-top: 1px solid var(--rule); }
.links li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.links a { font-weight: 600; }
.links p { margin-top: 3px; font-size: 1rem; color: var(--ink-soft); }

/* ---------- Quote ---------- */
.quote { padding-top: var(--gap); }
.quote figure { max-width: 900px; margin: 0 auto; padding: clamp(36px, 5vw, 60px) 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); text-align: center; }
.quote blockquote p { font-size: var(--fs-quote); line-height: 1.24; font-weight: 500; letter-spacing: -0.025em; }
.quote figcaption { margin-top: 24px; font-family: var(--mono); font-size: var(--fs-tag); color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 20px 0;
  font-size: var(--fs-h3); font-weight: 600; line-height: 1.35; letter-spacing: -0.012em; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font-family: var(--mono); font-weight: 400; color: var(--purple); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: 42em; padding: 0 0 24px; }

/* ---------- Closing ---------- */
.close { padding: var(--gap) 0; text-align: center; }
.close .wrap > p { max-width: 30em; margin: 16px auto 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.foot { padding: 44px 0 52px; border-top: 1px solid var(--rule); font-size: var(--fs-small); color: var(--ink-soft); }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.foot__about { margin-top: 12px; max-width: 26em; }
.foot__h { margin-bottom: 8px; font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.foot li a { display: inline-block; padding: 5px 0; text-decoration: none; }
.foot li a:hover { text-decoration: underline; }
.foot__legal { margin-top: 36px; color: var(--ink-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  :root { --label: 240px; }
  .sec__in { gap: 0 40px; }
  .nav ul { gap: 4px 18px; }
}
@media (max-width: 940px) {
  .sec__in { grid-template-columns: minmax(0, 1fr); }
  .sec__head { position: static; margin-bottom: 26px; }
  .sec__head h2 { max-width: 16em; }
  .nav-toggle { display: inline-flex; order: 2; }
  .top__in > .btn { order: 1; }
  .top__in { flex-wrap: wrap; gap: 12px 14px; padding-top: 12px; padding-bottom: 12px; }
  .nav { flex: 1 1 100%; order: 3; }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding-bottom: 6px; }
  .nav a { display: block; padding: 11px 0; border-top: 1px solid var(--rule); font-size: var(--fs-body); }
}
@media (max-width: 760px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .cards .tag { margin-bottom: 10px; }
  .points li { grid-template-columns: minmax(0, 1fr); }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
  .sheet { padding: 30px 26px 34px 52px; }
  .sheet .n { left: -38px; width: 22px; height: 22px; }
  .sheet .n::after { width: 8px; }
  .legend li { grid-template-columns: 24px 1fr; }
  .legend .tag { grid-column: 2; padding-top: 3px; }
  .legend p { grid-column: 2; margin-top: 2px; }

  /* Diagram stacks in reading order: the resume line, a short drop, then the field it becomes. */
  .map { padding: 22px 20px 14px; }
  .map__heads { display: none; }
  .map li { display: flex; flex-direction: column; align-items: stretch; padding: 14px 0; border-top: 1px solid var(--rule); }
  .map li:first-of-type { border-top: 0; padding-top: 0; }
  .map__link { width: 1px; height: 14px; margin: 0 0 0 20px; }
  .map__link::after { right: auto; left: -3px; top: auto; bottom: -3px; }
  .map__field { padding: 8px 0 0; }
  .map__from { display: block; margin-bottom: 3px; font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }

  /* Evidence table becomes one card per skill. */
  .ev thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ev tbody, .ev tr, .ev th, .ev td { display: block; }
  /* A block-level table leaves the caption as a shrink-to-fit table caption, one word per line. */
  .ev { display: flex; flex-direction: column; }
  .ev caption { display: block; order: 2; width: 100%; }
  .ev tr { padding: 16px 18px; margin-top: 10px; background: var(--paper-deep); border-radius: var(--radius); }
  .ev th, .ev td { padding: 0; border: 0; }
  .ev tbody th { font-size: var(--fs-body); margin-bottom: 8px; }
  .ev td { margin-top: 4px; }
  .ev td[data-l]::before { content: attr(data-l) ": "; color: var(--ink-faint); }
  .ev td:last-child { margin-top: 10px; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; --fs-body: 1.0625rem; --fs-lead: 1.1875rem; --fs-h3: 1.1875rem; --fs-sheet: 0.78125rem; --fs-sheet-name: 1.1875rem; }
  .top__in { min-height: 64px; gap: 12px 10px; }
  .top__in > .btn { padding: 9px 14px; }
  .nav-toggle { padding: 8px 13px; }
  .hero { padding-top: 28px; }
  .hero__lead { margin-top: 16px; }
  .upload { margin-top: 26px; padding: 18px; }
  .upload__text { flex-basis: 100%; }
  .upload__action { width: 100%; }
  .scene { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-radius: 0; padding: 56px 14px 48px; }
  .sheet { padding: 24px 16px 28px 44px; }
  .sheet .n { left: -34px; width: 20px; height: 20px; }
  .sheet .n::after { display: none; }
  .sheet__job { display: block; }
  .sheet__job span { display: block; }
  .rows > li { padding: 22px 20px 24px; }
  .worksheet { flex-direction: column; align-items: flex-start; }
  .worksheet > div { min-width: 0; width: 100%; }
  .worksheet .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.4; }
  .faq summary { padding: 18px 0; }
}
@media (max-width: 560px) {
  /* Compact header action; the hero keeps the full upload label. */
  .btn__opt { display: none; }
}
@media (max-width: 380px) {
  .btn--small { padding: 9px 14px; }
  .brand { font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet .n { animation: none; }
  .btn, .upload, .nav a { transition: none; }
}
@media print {
  .top, .upload, .foot, .close { display: none; }
}
