/* Fonts (SIL OFL 1.1), served from this site: Figtree for the interface, Atkinson Hyperlegible Mono for raw ATS text. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/figtree-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/figtree-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/figtree-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/figtree-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/figtree-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/figtree-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/atkinson-hyperlegible-mono-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/atkinson-hyperlegible-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/atkinson-hyperlegible-mono-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/atkinson-hyperlegible-mono-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Tokens: black and white only. Marks differ by shape, not colour:
   wavy underline = missing, dotted underline = partial, tick = present. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #f3f3f3;
  --ink: #161616;
  --ink-2: #5e5e5e;
  --rule: #e2e2e2;
  --rule-2: #b8b8b8;
  --soft: color-mix(in srgb, var(--ink) 45%, transparent);
  --sans: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "Atkinson Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212; --surface: #181818; --tint: #222222; --ink: #ececec; --ink-2: #a2a2a2; --rule: #2e2e2e; --rule-2: #4c4c4c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121212; --surface: #181818; --tint: #222222; --ink: #ececec; --ink-2: #a2a2a2; --rule: #2e2e2e; --rule-2: #4c4c4c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.6 var(--sans); }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
mark { color: inherit; background: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* Header and intro */
.band { border-bottom: 1px solid var(--rule); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; }
.logo { font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.03em; text-decoration: none; }
.logo-o { position: relative; display: inline-block; }
.logo-o i { position: absolute; top: 0.08em; width: 0.18em; height: 0.18em; border-radius: 50%; }
.logo-o i:first-child { left: 0.06em; background: currentColor; }
.logo-o i:last-child { right: 0.06em; border: 0.045em solid currentColor; }
.privacy { font-size: 15px; color: var(--ink-2); }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; padding-block: 44px 36px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; max-width: 13ch; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 44ch; }

/* Inputs */
.tool { padding-top: 32px; }
.inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { display: flex; flex-direction: column; padding: 20px 22px 22px; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin-bottom: 12px; }
.card-head h2 { font-size: 20px; font-weight: 700; }
textarea {
  display: block; width: 100%; min-height: 300px; flex: 1; resize: vertical;
  padding: 14px 16px; border: 1px solid transparent; border-radius: 10px;
  background: var(--tint); color: var(--ink); font: 500 16px/1.55 var(--sans);
}
textarea::placeholder { color: var(--ink-2); }
textarea:focus-visible { outline: none; border-color: var(--ink); }
.switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--tint); }
.switch button { border: 1px solid transparent; background: none; padding: 5px 14px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); border-color: var(--rule); }
.cv-panel { flex: 1; display: flex; flex-direction: column; }
.dropzone { position: relative; flex: 1; min-height: 300px; display: grid; place-items: center; padding: 24px; text-align: center; border: 1.5px dashed var(--rule-2); border-radius: 10px; }
.dropzone.is-over { border-color: var(--ink); background: var(--tint); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dz { display: none; }
.dropzone[data-state="empty"] .dz-empty,
.dropzone[data-state="loading"] .dz-loading,
.dropzone[data-state="ready"] .dz-ready { display: grid; gap: 8px; justify-items: center; }
.dz-title { font-size: 20px; font-weight: 700; }
.dz-note, .dz-meta { font-size: 15px; color: var(--ink-2); }
.dz-file { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.dz-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.field-error { margin-top: 10px; padding-left: 10px; border-left: 3px solid var(--ink); font-size: 15px; font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-block: 24px 40px; }
.btn-primary { border: 0; border-radius: 999px; padding: 15px 32px; cursor: pointer; background: var(--ink); color: var(--bg); font-size: 18px; font-weight: 700; line-height: 1; }
.btn-primary:hover { opacity: 0.86; }
.btn-quiet { border: 0; background: none; padding: 4px 2px; cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.btn-quiet:hover { text-decoration-thickness: 2.5px; }
.btn-primary[disabled], .btn-quiet[disabled] { opacity: 0.5; cursor: progress; }

/* Proofreading marks, shared by the preview and the results */
.sp { border-radius: 4px; padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; scroll-margin: 140px; }
.sp--missing { text-decoration: underline wavy var(--ink) 1.5px; text-underline-offset: 5px; text-decoration-skip-ink: none; }
.sp--partial { text-decoration: underline dotted var(--ink) 2px; text-underline-offset: 5px; }
.sp--matched { background: var(--tint); }
.sp--matched::after { content: "✓"; margin-left: 2px; font-size: 0.7em; font-weight: 800; vertical-align: 0.4em; }
.sp--pref.sp--missing, .sp--pref.sp--partial { text-decoration-color: var(--soft); }
.sp--pref.sp--matched::after { color: var(--ink-2); }
mark.sp.is-pulsing { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Empty-state preview */
.preview { display: grid; gap: 14px; padding: 28px 0 16px; border-top: 1px solid var(--rule); }
.preview-title { font-size: 20px; font-weight: 700; }
.preview-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.preview-doc { padding: 18px 22px; border: 1px solid var(--rule); border-radius: 14px; font-size: 17px; line-height: 2; }
.preview-keys { display: grid; gap: 10px; font-size: 15.5px; color: var(--ink-2); }
.preview-keys mark { color: var(--ink); font-weight: 700; margin-right: 6px; }

/* Results */
.results { padding-block: 12px 24px; }
.verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; padding-top: 32px; border-top: 1px solid var(--rule); }
.verdict--plain { grid-template-columns: minmax(0, 1fr); }
.badge { width: 116px; height: 116px; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 2px solid var(--ink); }
.badge b { font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.badge span { font-size: 12.5px; font-weight: 700; line-height: 1.25; color: var(--ink-2); }
.verdict h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.verdict h2:focus { outline: none; }
.verdict-detail { margin-top: 6px; font-size: 17px; color: var(--ink-2); max-width: 62ch; }
.note { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); max-width: 70ch; }
.print-btn { margin-top: 10px; }

.result-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 36px; margin-top: 32px; align-items: start; }
.col-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.results h3 { font-size: 20px; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--ink-2); }
.legend mark { color: var(--ink); font-weight: 700; }
.doc { padding: 24px 28px; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 17px; line-height: 1.95; }
.doc .ln-h { font-weight: 700; }
.doc .ln-off { color: var(--ink-2); }

.side { display: grid; gap: 28px; }
.side h3 { font-size: 18px; }
.stickers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.stk { border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 13px; background: none; font-size: 15px; font-weight: 700; line-height: 1.3; cursor: pointer; text-align: left; }
.stk--missing { background: var(--ink); color: var(--bg); }
.stk--missing.stk--pref { background: none; color: var(--ink); }
.stk--partial { border-style: dashed; }
.stk--matched { border-color: transparent; background: var(--tint); }
.stk--matched.stk--pref { border-color: var(--rule); }
.stk[aria-expanded="true"] { outline: 2px solid var(--ink); outline-offset: 3px; }
.hint { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.detail { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--tint); font-size: 15.5px; }
.detail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.detail-head b { font-size: 17px; }
.detail p + p { margin-top: 4px; }
.detail .muted { color: var(--ink-2); }
.detail q { quotes: "“" "”"; }
.detail .btn-quiet { margin-top: 6px; }
.tag { font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }

/* ATS checks */
.ats { margin-top: 48px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.check { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--tint); }
.check-mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; line-height: 1; border: 1.5px solid var(--ink); }
.check--error .check-mark { background: var(--ink); color: var(--bg); }
.check--info .check-mark { border-color: var(--rule-2); color: var(--ink-2); }
.check--pass .check-mark { border-color: transparent; background: var(--surface); }
.check-title { font-weight: 700; }
.check-detail { margin-top: 2px; font-size: 15px; color: var(--ink-2); }
.examples { display: grid; gap: 4px; margin-top: 8px; }
.examples code { justify-self: start; padding: 3px 8px; border-radius: 6px; background: var(--surface); font: 400 14px/1.45 var(--mono); overflow-wrap: anywhere; }
.passes { margin-top: 14px; }
details > summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.empty-note { margin-top: 10px; color: var(--ink-2); }

/* What the ATS sees */
.ats-view { margin-top: 40px; }
.ats-view-note { margin: 6px 0 10px; font-size: 15px; color: var(--ink-2); max-width: 66ch; }
.ats-text {
  margin: 8px 0 0; padding: 18px 20px; max-height: 560px; overflow: auto; border-radius: 14px;
  background: var(--tint); font: 400 13.5px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
}
.ats-h { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ats-tag { color: var(--ink-2); white-space: pre; }
.ats-text mark.bad { background: var(--ink); color: var(--bg); border-radius: 3px; padding: 0 2px; }

/* Extra terms */
.extra { margin-top: 40px; max-width: 820px; }
.extra p { margin-top: 6px; font-size: 15px; color: var(--ink-2); max-width: 66ch; }
.terms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.term { padding: 4px 12px; border-radius: 999px; font-size: 15px; font-weight: 700; background: var(--tint); }
.term::before { margin-right: 6px; font-weight: 800; }
.term--yes::before { content: "✓"; }
.term--no::before { content: "✕"; color: var(--ink-2); }

.print-only { display: none; }

/* Footer */
.foot { margin-top: 64px; border-top: 1px solid var(--rule); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding-block: 24px 40px; font-size: 15px; color: var(--ink-2); }
.foot-inner p:first-child { max-width: 70ch; }

@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .logo { font-size: 24px; }
  .privacy { font-size: 13px; text-align: right; max-width: 15ch; line-height: 1.3; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 28px 24px; }
  .lead { font-size: 16.5px; }
  .tool { padding-top: 20px; }
  .inputs { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .card { padding: 16px; }
  textarea, .dropzone { min-height: 210px; }
  .preview-body, .result-grid, .checks { grid-template-columns: minmax(0, 1fr); }
  .verdict { gap: 18px; align-items: start; }
  .badge { width: 84px; height: 84px; }
  .badge b { font-size: 24px; }
  .badge span { font-size: 11px; }
  .verdict h2 { font-size: 22px; }
  .verdict-detail { font-size: 16px; }
  .side { order: -1; }
  .doc { padding: 18px; font-size: 16px; }
}

/* Print: a clean checklist plus the marked posting */
@media print {
  @page { margin: 16mm; }
  :root { --bg: #fff; --surface: #fff; --tint: #f3f3f3; --ink: #000; --ink-2: #333; }
  body { font-size: 11pt; }
  .band, .tool, .foot, .side, .ats, .ats-view, .extra, .print-btn, .legend { display: none !important; }
  .results { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .print-only { display: block; }
  .print-head { display: flex; justify-content: space-between; font-size: 10pt; color: #333; margin-bottom: 8mm; }
  .verdict { border: 0; padding: 0; }
  .badge { width: 80px; height: 80px; }
  .badge b { font-size: 22pt; }
  .verdict h2 { font-size: 17pt; }
  .checklist { margin-top: 8mm; }
  .checklist h3 { font-size: 13pt; margin: 6mm 0 2mm; }
  .checklist li { display: grid; grid-template-columns: 7mm 1fr; padding: 1.5mm 0; break-inside: avoid; }
  .checklist li::before { content: "☐"; font-size: 13pt; line-height: 1.2; }
  .checklist small { display: block; color: #333; }
  .result-grid { display: block; margin-top: 8mm; break-before: page; }
  .doc { border: 1px solid #999; border-radius: 0; padding: 6mm; font-size: 10.5pt; line-height: 1.8; }
  .sp { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
