/* ATS Resume Converter: stylesheet
   Palette: cool bond paper, deep ink, blue-pencil accent, highlighter yellow (keyword matches), pen red (problems only). */

:root {
  --paper: #f3f6f9;
  --sheet: #ffffff;
  --ink: #14202e;
  --ink-2: #44546a;
  --rule: #cfd8e2;
  --rule-strong: #94a6ba;
  --pencil: #2349c9;
  --pencil-deep: #1a3aa3;
  --pencil-wash: #e6ecfb;
  --mark: #ffe566;
  --pen: #b42334;
  --pen-wash: #fbe9ec;
  --ok: #1c7048;
  --ok-wash: #e4f3ea;
  --warn: #8a5a00;
  --warn-wash: #fdf1d6;

  --f-ui: "Bahnschrift", "DIN Alternate", "Avenir Next", "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-read: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --f-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;

  --w-page: 1120px;
  --r: 3px;
}

*, *::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(--f-ui);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--pencil-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pencil); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-ui); line-height: 1.12; margin: 0; letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 0.75rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.6rem 0.9rem; border-radius: var(--r); z-index: 50; }
.skip-link:focus { top: 0.75rem; }

.wrap { width: min(100% - 2.5rem, var(--w-page)); margin-inline: auto; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.95rem; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.wordmark-glyph { width: 26px; height: 30px; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 2px; padding: 5px 4px; display: grid; gap: 3px; align-content: start; }
.wordmark-glyph i { display: block; height: 2px; background: var(--ink); }
.wordmark-glyph i:nth-child(2) { width: 70%; background: var(--pencil); }
.wordmark-glyph i:nth-child(3) { width: 85%; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding-block: 0.3rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--rule-strong); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--pencil); }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 700; padding: 0.8rem 1.25rem; border-radius: var(--r); border: 2px solid var(--pencil); background: var(--pencil); color: #fff; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--pencil-deep); border-color: var(--pencil-deep); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-small { padding: 0.5rem 0.85rem; font-size: 0.95rem; }
.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Hero */
.hero { padding-block: clamp(2.2rem, 5vw, 4.2rem) clamp(2.5rem, 5vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 1.1rem; max-width: 14ch; }
.hero-sub { font-size: 1.2rem; color: var(--ink-2); max-width: 36ch; margin-bottom: 1.6rem; }

/* Demo: one resume, two readings */
.demo { position: relative; }
.demo-controls { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; margin-bottom: 1rem; background: var(--sheet); }
.demo-controls button { font: inherit; font-weight: 600; font-size: 0.95rem; padding: 0.55rem 0.95rem; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.demo-controls button + button { border-left: 2px solid var(--ink); }
.demo-controls button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.demo-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.demo-label { font-weight: 700; font-size: 0.95rem; margin: 0 0 0.5rem; }

.sheet { position: relative; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 2px; padding: 1rem 1rem 1.1rem; min-height: 21rem; }
.sheet::before, .sheet::after { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--rule-strong); border-radius: 2px; background: var(--sheet); z-index: -1; }
.sheet::before { transform: translate(5px, 5px); }
.sheet::after { transform: translate(10px, 10px); border-color: var(--rule); }
.sheet-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; margin: 0; }
.sheet-role { margin: 0 0 0.8rem; color: var(--ink-2); font-size: 0.9rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--rule); }
.sheet-body { display: grid; gap: 0.5rem 0.9rem; grid-template-columns: 0.8fr 1.2fr; font-size: 0.82rem; line-height: 1.35; }
.sheet-body[data-layout="single"] { grid-template-columns: 1fr; }
.cell { margin: 0; padding-left: 0.5rem; border-left: 3px solid var(--rule); overflow-wrap: anywhere; }
.cell.is-head { font-weight: 800; }
.cell[data-sec="exp"] { border-left-color: var(--pencil); }
.cell[data-sec="edu"] { border-left-color: var(--pen); }
.cell[data-sec="side"] { border-left-color: var(--rule-strong); }

.extract { background: var(--ink); color: #eaf0f7; border-radius: 2px; padding: 1rem 1rem 1.1rem; min-height: 21rem; }
.extract .demo-label { color: #fff; }
.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; font-family: var(--f-mono); font-size: 0.78rem; line-height: 1.35; }
.lines li { padding-left: 0.5rem; border-left: 3px solid #4b5b70; overflow-wrap: anywhere; }
.lines li[data-sec="exp"] { border-left-color: #7d9bff; }
.lines li[data-sec="edu"] { border-left-color: #ff8f9c; }
.demo-note { margin: 1.6rem 0 0; font-size: 0.86rem; color: var(--ink-2); max-width: 62ch; }

/* Content bands */
.band { padding-block: clamp(2.2rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
.band-title { font-size: clamp(1.7rem, 3.2vw, 2.3rem); letter-spacing: -0.025em; margin-bottom: 1.1rem; max-width: 22ch; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.5rem); align-items: start; }
.read { font-family: var(--f-read); font-size: 1.1875rem; line-height: 1.68; }
.read p { max-width: 66ch; }
.aside-box { border-left: 3px solid var(--pencil); padding: 0.2rem 0 0.2rem 1rem; font-size: 0.97rem; color: var(--ink-2); }
.aside-box strong { color: var(--ink); }

/* Ruled lists */
.rule-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rule-list li { border-bottom: 1px solid var(--rule-strong); }
.rule-list a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr); gap: 1.2rem; align-items: baseline; padding: 1.05rem 0.2rem; text-decoration: none; color: var(--ink); }
.rule-list a:hover { background: var(--sheet); }
.rule-list .rl-title { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.rule-list a:hover .rl-title { text-decoration: underline; text-decoration-color: var(--pencil); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.rule-list .rl-desc { color: var(--ink-2); font-size: 0.98rem; }
.rule-list .rl-meta { color: var(--ink-2); font-size: 0.9rem; white-space: nowrap; }

/* Fact table (country pages) */
.facts { font-family: var(--f-ui); font-size: 0.98rem; line-height: 1.5; width: 100%; border-collapse: collapse; font-size: 1rem; margin: 1.2rem 0 1.6rem; background: var(--sheet); border: 1.5px solid var(--ink); }
.facts th, .facts td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.facts th { width: 11rem; font-weight: 700; background: var(--pencil-wash); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }

/* Article */
.article-head { padding-block: clamp(2rem, 4vw, 3.2rem) 1.4rem; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -0.03em; font-weight: 800; max-width: 20ch; margin-bottom: 1rem; }
.deck { font-size: 1.22rem; color: var(--ink-2); max-width: 46ch; margin-bottom: 0.9rem; }
.byline { font-size: 0.93rem; color: var(--ink-2); margin: 0; }
.crumbs { font-size: 0.92rem; margin: 0 0 1.2rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }

.article { position: relative; padding-bottom: 3rem; }
.article-body { font-family: var(--f-read); font-size: 1.1875rem; line-height: 1.7; width: min(100%, 41rem); margin-left: 0; }
.article-body h2 { font-family: var(--f-ui); font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 2.4rem 0 0.8rem; letter-spacing: -0.02em; }
.article-body h3 { font-family: var(--f-ui); font-size: 1.25rem; margin: 1.8rem 0 0.5rem; letter-spacing: -0.01em; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; }
.article-body li { margin-bottom: 0.4em; }
.article-body strong { font-weight: 700; }
.article-body code, .code-inline { font-family: var(--f-mono); font-size: 0.88em; background: var(--pencil-wash); padding: 0.08em 0.35em; border-radius: 2px; }

/* Margin notes: carry sources, caveats and disagreements next to the claim they qualify */
.note { float: right; clear: right; width: 15.5rem; margin: 0.15rem -18.5rem 1rem 0; font-family: var(--f-ui); font-size: 0.9rem; line-height: 1.4; color: var(--ink-2); border-left: 3px solid var(--pencil); padding: 0.1rem 0 0.1rem 0.8rem; }
.note strong { color: var(--ink); display: block; margin-bottom: 0.15rem; }
.note.note-disputed { border-left-color: var(--pen); }

.callout { font-family: var(--f-ui); background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 2px; padding: 1rem 1.1rem; margin: 1.6rem 0; font-size: 1rem; line-height: 1.5; }
.callout h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

.checklist { list-style: none; padding: 0; font-family: var(--f-ui); font-size: 1.02rem; line-height: 1.45; }
.checklist li { position: relative; padding: 0.55rem 0 0.55rem 2rem; border-bottom: 1px solid var(--rule); margin: 0; }
.checklist li::before { content: ""; position: absolute; left: 0.1rem; top: 0.8rem; width: 1rem; height: 1rem; border: 2px solid var(--ink); border-radius: 2px; background: var(--sheet); }

.sources { font-family: var(--f-ui); font-size: 0.95rem; border-top: 2px solid var(--ink); margin-top: 3rem; padding-top: 1rem; line-height: 1.5; }
.sources h2 { font-size: 1.15rem !important; margin: 0 0 0.6rem !important; }
.sources li { margin-bottom: 0.35rem; }

.faq { font-family: var(--f-ui); border-top: 1px solid var(--rule-strong); }
.faq:last-of-type { border-bottom: 1px solid var(--rule-strong); }
.faq summary { cursor: pointer; font-weight: 700; padding: 0.85rem 0; font-size: 1.05rem; list-style-position: outside; }
.faq .faq-a { padding: 0 0 1rem; font-family: var(--f-read); font-size: 1.1rem; line-height: 1.6; max-width: 60ch; }
.faq-wrap { margin-top: 1.2rem; }

.template-box { position: relative; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 2px; margin: 1.4rem 0; }
.template-box pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; font-family: var(--f-mono); font-size: 0.85rem; line-height: 1.5; white-space: pre-wrap; }
.template-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding: 0.55rem 0.8rem; border-bottom: 1.5px solid var(--ink); background: var(--pencil-wash); flex-wrap: wrap; font-family: var(--f-ui); font-size: 0.95rem; font-weight: 600; }
.js-gumroad { display: none; }
.js-gumroad.is-on { display: block; }

/* Checker tool */
.file-field { margin-bottom: 1.3rem; padding: 1rem 1.1rem; border: 1.5px dashed var(--rule-strong); background: var(--sheet); border-radius: 2px; }
.file-field input[type="file"] { font: inherit; max-width: 100%; }
.file-field input[type="file"]::file-selector-button { font: inherit; font-weight: 700; padding: 0.5rem 0.9rem; margin-right: 0.8rem; border: 2px solid var(--ink); background: transparent; color: var(--ink); border-radius: var(--r); cursor: pointer; }
.file-field input[type="file"]::file-selector-button:hover { background: var(--ink); color: #fff; }
.file-note { margin: 0.7rem 0 0; font-size: 0.95rem; color: var(--ink-2); max-width: 70ch; }
.file-note:empty { display: none; }
.file-note-bad { color: var(--pen); font-weight: 600; }
.tool-head { padding-block: clamp(1.8rem, 4vw, 3rem) 1.2rem; }
.tool-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -0.03em; font-weight: 800; margin-bottom: 0.7rem; max-width: 18ch; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; }
.field label, .field .lbl { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field .hint { font-size: 0.9rem; color: var(--ink-2); margin: 0 0 0.4rem; }
.field textarea { width: 100%; min-height: 20rem; resize: vertical; font-family: var(--f-mono); font-size: 0.86rem; line-height: 1.5; padding: 0.8rem; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--sheet); color: var(--ink); }
.field textarea:focus-visible { outline: 3px solid var(--pencil); outline-offset: 1px; }
.field select { font: inherit; padding: 0.55rem 0.7rem; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--sheet); color: var(--ink); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin-top: 1.1rem; }
.tool-actions .grow { flex: 1; }
.privacy-line { font-size: 0.92rem; color: var(--ink-2); margin: 0.9rem 0 0; }

.results { margin-top: 2rem; scroll-margin-top: 1rem; }
.results:empty { display: none; }
.summary-bar { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; align-items: baseline; padding: 1rem 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule-strong); margin-bottom: 1.4rem; }
.summary-bar .big { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.summary-bar .small { display: block; font-size: 0.92rem; color: var(--ink-2); margin-top: 0.25rem; font-weight: 500; letter-spacing: 0; }
.results h2 { font-size: 1.5rem; margin: 1.8rem 0 0.7rem; letter-spacing: -0.02em; }
.findings { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.finding { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.8rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.finding .mk { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.95rem; line-height: 1; margin-top: 0.1rem; }
.finding-pass .mk { background: var(--ok-wash); color: var(--ok); border: 1.5px solid var(--ok); }
.finding-warn .mk { background: var(--warn-wash); color: var(--warn); border: 1.5px solid var(--warn); }
.finding-fail .mk { background: var(--pen-wash); color: var(--pen); border: 1.5px solid var(--pen); }
.finding-info .mk { background: var(--pencil-wash); color: var(--pencil-deep); border: 1.5px solid var(--pencil); }
.finding strong { display: block; }
.finding p { margin: 0.15rem 0 0; font-size: 0.97rem; color: var(--ink-2); }
.kw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.kw-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.kw-list li { padding: 0.2rem 0.55rem; border-radius: 2px; font-size: 0.93rem; font-weight: 600; }
.kw-hit li { background: var(--mark); color: var(--ink); }
.kw-miss li { background: var(--sheet); border: 1.5px dashed var(--pen); color: var(--pen); }
.marked { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 2px; padding: 1rem; font-family: var(--f-mono); font-size: 0.84rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 26rem; overflow: auto; }
.marked mark { background: var(--mark); color: var(--ink); padding: 0 0.1em; }
.fine-print { font-size: 0.92rem; color: var(--ink-2); max-width: 68ch; margin-top: 1.4rem; }
.empty-note { border-left: 3px solid var(--pen); padding: 0.4rem 0 0.4rem 1rem; color: var(--ink); font-weight: 600; }

/* Footer */
.site-foot { border-top: 2px solid var(--ink); margin-top: 3rem; padding-block: 2rem 2.4rem; font-size: 0.95rem; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-foot h2 { font-size: 1rem; color: var(--ink); margin-bottom: 0.6rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 0.3rem; }
.site-foot a { color: var(--ink-2); }
.foot-small { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 1rem; font-size: 0.88rem; }

/* Responsive */
@media (max-width: 1000px) {
  .note { float: none; width: auto; margin: 1rem 0; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .tool-grid, .kw-grid, .foot-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .rule-list a { grid-template-columns: 1fr; gap: 0.25rem; }
  .rule-list .rl-meta { white-space: normal; }
  .demo-panels { grid-template-columns: 1fr; }
  .sheet, .extract { min-height: 0; }
  .facts th { width: 7.5rem; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .read, .article-body { font-size: 1.125rem; }
  .site-head .wrap { gap: 0.6rem; }
  .site-nav ul { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .site-head, .site-foot, .tool-actions, .demo-controls { display: none; }
  body { background: #fff; }
}

/* ======================================================================
   Colour layer. Four section colours carry meaning everywhere:
   blue = experience, coral = education, green = skills, amber = contact.
   The same colours are used for guides and countries, so the page reads as one system.
   ====================================================================== */
:root {
  --blue: #2349c9;       --blue-tint: #e3eaff;   --blue-bright: #7d9bff;
  --coral: #c9304a;      --coral-tint: #ffe5e9;  --coral-bright: #ff8f9c;
  --green: #0b7d5b;      --green-tint: #d9f4e8;  --green-bright: #19b98a;
  --amber: #f2a516;      --amber-tint: #fff0c9;  --amber-bright: #ffc95c;
  --violet: #6a43dd;     --violet-tint: #ebe5ff;
  --accent: var(--blue);
  --accent-tint: var(--blue-tint);
}
.accent-blue   { --accent: var(--blue);   --accent-tint: var(--blue-tint); }
.accent-coral  { --accent: var(--coral);  --accent-tint: var(--coral-tint); }
.accent-green  { --accent: var(--green);  --accent-tint: var(--green-tint); }
.accent-amber  { --accent: var(--amber);  --accent-tint: var(--amber-tint); }
.accent-violet { --accent: var(--violet); --accent-tint: var(--violet-tint); }

[data-c="blue"]   { --c: var(--blue); }
[data-c="coral"]  { --c: var(--coral); }
[data-c="green"]  { --c: var(--green); }
[data-c="amber"]  { --c: var(--amber); }
[data-c="violet"] { --c: var(--violet); }

/* Stripe above the header: the four section colours */
.stripe { height: 8px; background: linear-gradient(90deg, var(--blue) 0 25%, var(--coral) 25% 50%, var(--green-bright) 50% 75%, var(--amber) 75% 100%); }
.wordmark-glyph i:nth-child(1) { background: var(--blue); }
.wordmark-glyph i:nth-child(2) { background: var(--coral); width: 70%; }
.wordmark-glyph i:nth-child(3) { background: var(--green-bright); width: 85%; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Hero */
.hero { background: var(--blue-tint); border-bottom: 1px solid #c3d1fb; }
.hero h1 { color: var(--ink); }

/* Demo: each section keeps its colour in both panels */
.demo-controls { border-color: var(--blue); }
.demo-controls button + button { border-left-color: var(--blue); }
.demo-controls button { color: var(--blue); font-weight: 700; }
.demo-controls button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.sheet { border-color: var(--blue); box-shadow: 0 0 0 0 transparent; }
.sheet::before { border-color: #93a7ee; }
.sheet::after { border-color: #c3d1fb; }
.cell { border-left-width: 4px; padding: 0.3rem 0.5rem; }
.cell[data-sec="exp"]     { background: var(--blue-tint);  border-left-color: var(--blue); }
.cell[data-sec="edu"]     { background: var(--coral-tint); border-left-color: var(--coral); }
.cell[data-sec="skills"]  { background: var(--green-tint); border-left-color: var(--green-bright); }
.cell[data-sec="contact"] { background: var(--amber-tint); border-left-color: var(--amber); }
.lines li { border-left-width: 4px; }
.lines li[data-sec="exp"]     { border-left-color: var(--blue-bright); }
.lines li[data-sec="edu"]     { border-left-color: var(--coral-bright); }
.lines li[data-sec="skills"]  { border-left-color: var(--green-bright); }
.lines li[data-sec="contact"] { border-left-color: var(--amber-bright); }
.extract { background: #0f1a34; }

/* Bands */
.band--sun, .band--mint, .band--blue { border-top: 0; }
.band--sun  { background: var(--amber-tint); }
.band--sun .aside-box { border-left-color: var(--amber); }
.band--mint { background: var(--green-tint); }
.band--mint .aside-box { border-left-color: var(--green); }
.band--blue { background: var(--blue); color: #fff; }
.band--blue .band-title { color: #fff; max-width: 26ch; }
.btn-light { background: #fff; color: var(--blue); border-color: #fff; }
.btn-light:hover { background: var(--amber-tint); color: var(--blue); border-color: var(--amber-tint); }

/* Coloured markers on lists */
.rule-list li[data-c] a { box-shadow: inset 7px 0 0 var(--c); padding-left: 1.2rem; }
.rule-list li[data-c] a:hover { background: var(--sheet); }
.rule-list.has-chip a { grid-template-columns: auto minmax(0, 0.9fr) minmax(0, 1.9fr); align-items: center; }
.chip { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 0.4rem; border-radius: 2px; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em; color: #fff; background: var(--c, var(--blue)); }
[data-c="amber"] .chip, .chip[data-c="amber"] { color: var(--ink); }
.chip-row { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.6rem 1rem; }
.chip-row a { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); font-weight: 700; text-decoration: none; padding: 0.35rem 0.5rem 0.35rem 0.35rem; background: #fff; border: 1.5px solid var(--ink); border-radius: 2px; font-family: var(--f-ui); font-size: 1rem; }
.chip-row a:hover { background: var(--ink); color: #fff; }

/* Article pages take their colour from the page accent */
.article-top { background: var(--accent-tint); border-bottom: 5px solid var(--accent); }
.article-head { padding-bottom: 1.8rem; }
.article-head .byline, .article-head .crumbs, .article-head .crumbs a { color: var(--ink-2); }
.article-body h2 { padding-left: 0.8rem; border-left: 6px solid var(--accent); }
.article-body .sources h2, .article-body .callout h3 { border-left: 0; padding-left: 0; }
.note { border-left-color: var(--accent); }
.note.note-disputed { border-left-color: var(--pen); }
.facts { border-color: var(--accent); }
.facts th { background: var(--accent-tint); }
.callout { background: var(--accent-tint); border-color: var(--accent); }
.template-box { border-color: var(--accent); }
.template-bar { background: var(--accent-tint); border-bottom-color: var(--accent); }
.checklist li::before { border-color: var(--accent); }
.sources { border-top-color: var(--accent); }
.faq summary::marker { color: var(--accent); font-size: 1.1em; }
.faq { border-top-color: var(--accent); }
.faq:last-of-type { border-bottom-color: var(--accent); }
.aside-box { border-left-color: var(--accent); }
.article-body a { color: var(--accent); }
.accent-amber .article-body a, .accent-amber .crumbs a { color: var(--amber-deep, #8a5a00); }
.accent-amber .article-body h2 { border-left-color: var(--amber); }
.accent-amber .btn { color: var(--ink); background: var(--amber); border-color: var(--amber); }
.accent-amber .btn:hover { background: #ffbc3d; border-color: #ffbc3d; }
.accent-amber .btn-quiet { background: transparent; border-color: var(--ink); color: var(--ink); }
.accent-amber .btn-quiet:hover { background: var(--ink); color: #fff; }
.accent-coral .btn { background: var(--coral); border-color: var(--coral); }
.accent-coral .btn:hover { background: #a82339; border-color: #a82339; }
.accent-green .btn { background: var(--green); border-color: var(--green); }
.accent-green .btn:hover { background: #086148; border-color: #086148; }
.accent-violet .btn { background: var(--violet); border-color: var(--violet); }
.accent-violet .btn:hover { background: #5232bb; border-color: #5232bb; }
.accent-coral .btn-quiet, .accent-green .btn-quiet, .accent-violet .btn-quiet { background: transparent; border-color: var(--ink); color: var(--ink); }
.accent-coral .btn-quiet:hover, .accent-green .btn-quiet:hover, .accent-violet .btn-quiet:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.accent-coral .article-body a:not(.btn), .accent-green .article-body a:not(.btn), .accent-violet .article-body a:not(.btn) { color: var(--accent); }
.article-body a.btn { color: #fff; }
.accent-amber .article-body a.btn { color: var(--ink); }
.article-body a.btn-quiet { color: var(--ink); }
.article-body a.btn-quiet:hover { color: #fff; }

/* Checker */
.file-field { border-color: var(--blue); background: var(--blue-tint); }
.summary-bar { border-top: 6px solid var(--blue); background: var(--sheet); padding: 1rem 1.1rem; }
.summary-bar > div:nth-child(1) .big { color: var(--blue); }
.summary-bar > div:nth-child(2) .big { color: var(--green); }
.summary-bar > div:nth-child(3) .big { color: var(--coral); }
.results h2 { padding-left: 0.7rem; border-left: 6px solid var(--blue); }
.tool-head { background: var(--blue-tint); }

/* Footer */
.site-foot { background: var(--ink); color: #c7d3e3; border-top: 0; margin-top: 0; position: relative; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: linear-gradient(90deg, var(--blue) 0 25%, var(--coral) 25% 50%, var(--green-bright) 50% 75%, var(--amber) 75% 100%); }
.site-foot { padding-top: 3rem; }
.site-foot h2 { color: #fff; }
.site-foot a { color: #c7d3e3; }
.site-foot a:hover { color: #fff; }
.foot-small { border-top-color: #34445e; color: #9fb0c6; }
main { padding-bottom: 3rem; }
main:has(.band--blue:last-child) { padding-bottom: 0; }

@media (max-width: 900px) {
  .rule-list.has-chip a { grid-template-columns: auto 1fr; }
  .rule-list.has-chip .rl-desc, .rule-list.has-chip .rl-meta { grid-column: 2; }
}

/* Polish */
.sheet-body { grid-template-columns: 1fr 1fr; }
.sheet-body[data-layout="single"] { grid-template-columns: 1fr; }
.cell { font-size: 0.8rem; padding: 0.3rem 0.4rem; }
.article { padding-top: 2rem; }
.site-foot::before { background: linear-gradient(90deg, var(--coral) 0 25%, var(--green-bright) 25% 50%, var(--amber) 50% 75%, var(--violet) 75% 100%); }


/* Match with this job */
.advice { margin: 0.4rem 0 1.4rem; padding-left: 1.3rem; font-size: 1.05rem; line-height: 1.5; }
.advice li { margin-bottom: 0.6rem; padding-left: 0.3rem; }
.advice li::marker { font-weight: 800; color: var(--blue); }
.results h3 { font-size: 1.15rem; margin: 1.4rem 0 0.6rem; }
.gap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.gap-list li { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr) minmax(0, 1.6fr); gap: 0.8rem; align-items: baseline; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.gap-term { font-weight: 700; overflow-wrap: anywhere; }
.gap-where { color: var(--ink-2); font-size: 0.95rem; }
.pri { display: inline-block; font-size: 0.82rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 2px; text-align: center; }
.pri-high { background: var(--coral); color: #fff; }
.pri-medium { background: var(--amber); color: var(--ink); }
.pri-low { background: #dfe6ee; color: var(--ink); }
.pri-nice { background: var(--blue-tint); color: var(--blue); border: 1px solid var(--blue); }
@media (max-width: 700px) { .gap-list li { grid-template-columns: 1fr; gap: 0.2rem; } .pri { justify-self: start; } }


/* Add-to-resume and downloads */
.gap-list li { grid-template-columns: 7.2rem minmax(0, 1fr) minmax(0, 1.6fr) auto; }
.add-panel { grid-column: 1 / -1; background: var(--sheet); border: 1.5px solid var(--blue); border-radius: 2px; padding: 0.8rem 1rem; margin-top: 0.4rem; }
.add-panel[hidden] { display: none; }
.add-form p { margin: 0 0 0.6rem; font-size: 0.97rem; }
.add-form label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.add-form textarea { width: 100%; font: inherit; font-size: 0.95rem; padding: 0.5rem; border: 1.5px solid var(--ink); border-radius: 2px; margin-bottom: 0.6rem; }
.add-form label.check { font-weight: 500; display: flex; gap: 0.5rem; align-items: flex-start; margin-bottom: 0.7rem; }
.add-form label.check input { margin-top: 0.3rem; }
.add-msg { color: var(--pen); font-weight: 600; min-height: 0; }
.add-msg:empty { display: none; }
.added-note { background: var(--green-tint); border-left: 5px solid var(--green); padding: 0.7rem 1rem; margin: 0 0 1.2rem; font-weight: 600; }
.download-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1rem; }
.download-row .dl-label { font-weight: 700; margin-right: 0.3rem; }
#dl-msg { margin-top: 0.5rem; }
@media (max-width: 700px) { .gap-list li { grid-template-columns: 1fr; } .gap-list .gap-add { justify-self: start; } }


/* Improve and download */
.improve { background: var(--blue-tint); border: 1.5px solid var(--blue); padding: 1.1rem 1.2rem 1.3rem; margin: 0 0 1.8rem; }
.results .improve h2 { margin-top: 0; }
.improve-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.6rem; }
.improve-col h3 { margin-top: 0; font-size: 1.1rem; }
.opt-list { list-style: none; padding: 0; margin: 0 0 0.8rem; }
.opt-list li { margin-bottom: 0.35rem; }
.opt-list label.check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 500; }
.opt-list input { margin-top: 0.3rem; }
.hint-inline { color: var(--ink-2); font-style: normal; font-size: 0.9rem; }
.improve-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.improve-actions .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.changes { background: #fff; border-left: 5px solid var(--green); padding: 0.7rem 1rem; margin-top: 1rem; font-size: 0.95rem; }
.changes ul { margin: 0.3rem 0 0.4rem; padding-left: 1.1rem; }
.changes li { margin-bottom: 0.3rem; }
.tpl-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 0.7rem; }
.tpl { display: grid; gap: 0.1rem; padding: 0.5rem 0.7rem; background: #fff; border: 1.5px solid var(--rule-strong); border-radius: 2px; cursor: pointer; position: relative; }
.tpl input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tpl span { font-size: 0.85rem; color: var(--ink-2); }
.tpl.on { border-color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); background: #fff; }
.tpl:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.fit-row { margin: 0 0 0.7rem; display: flex; gap: 0.6rem; align-items: center; }
.fit-row select { font: inherit; padding: 0.35rem 0.5rem; border: 1.5px solid var(--ink); border-radius: 2px; background: #fff; }
.preview-box { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; background: #dfe6f2; padding: 12px; min-height: 8rem; border: 1px solid #c3d1fb; font-size: 0.92rem; color: var(--ink-2); }
.preview-page { background: #fff; box-shadow: 0 1px 6px rgba(20, 32, 46, 0.25); }
.preview-cap { flex-basis: 100%; margin: 0; font-size: 0.88rem; }
@media (max-width: 900px) { .improve-grid { grid-template-columns: 1fr; } }

/* Shorten step */
.shorten { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1.5px dashed var(--blue); }
.short-meter { background: #fff; border-left: 5px solid var(--amber); padding: 0.55rem 0.85rem; margin: 0 0 0.9rem; font-size: 0.95rem; }
.ok-text { color: #0b6b43; font-weight: 700; }
.bad-text { color: #a4172d; font-weight: 700; }
.cut-h { margin: 1.1rem 0 0.1rem; font-size: 1rem; }
.cut-sub { margin: 0 0 0.4rem; }
.cut-job { margin: 0.7rem 0 0.2rem; font-weight: 700; font-size: 0.9rem; color: var(--ink-soft, #3a4658); }
.cut-list { list-style: none; padding: 0; margin: 0 0 0.4rem; }
.cut-list li { margin-bottom: 0.45rem; }
.cut-list label.check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 500; }
.cut-list input { margin-top: 0.3rem; flex: none; }
.cut-why { display: block; font-style: normal; font-weight: 400; font-size: 0.88rem; color: #4a5568; }
.cut-save { display: block; font-size: 0.8rem; color: #4a5568; }
.cut-prev { display: block; font-weight: 400; font-size: 0.84rem; color: #5a6475; margin-top: 0.1rem; }
.cut-tips { margin: 0.2rem 0 1rem; padding-left: 1.1rem; font-size: 0.93rem; }
.cut-tips li { margin-bottom: 0.4rem; }
@media (min-width: 901px) and (min-height: 860px) { .improve-col-preview { position: sticky; top: 0.8rem; align-self: start; } }

.cut-details { margin: 1rem 0 0.4rem; }
.cut-details > summary { cursor: pointer; font-weight: 700; font-size: 1rem; padding: 0.2rem 0; }

/* Highlighted nav tab and the checker on the home page */
.site-nav a.nav-cta { background: var(--blue); color: #fff; padding: 0.4rem 0.95rem; border-bottom: 0; border-radius: 3px; box-shadow: 0 2px 0 rgba(0,0,0,0.18); }
.site-nav a.nav-cta:hover { background: #1b3bb5; }
.site-nav a.nav-cta[aria-current="page"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.band--checker { background: #fff; border-block: 1.5px solid var(--blue); }
.band--checker .band-title { margin-top: 0; }
.band--checker textarea { min-height: 12rem; }

.hero-check h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 0.8rem; max-width: 20ch; }
.hero-check .hero-sub { margin-bottom: 1.4rem; }
.hero-h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 1rem; max-width: 18ch; color: var(--ink); }
.hero-demo { padding-block: clamp(2rem, 4vw, 3.2rem); }

/* Guided flow: steps, drop zone, template thumbnails, download bar */
.steps { list-style: none; display: flex; gap: 0.4rem; margin: 0 0 1.2rem; padding: 0; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.8rem 0.35rem 0.4rem; background: #fff; border: 1.5px solid #c3d1fb; border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: #5a6475; }
.steps .step-n { display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: #e3eaff; color: var(--blue); font-weight: 800; font-size: 0.85rem; }
.steps li.on { border-color: var(--blue); color: var(--ink); box-shadow: 0 2px 0 var(--blue); }
.steps li.on .step-n { background: var(--blue); color: #fff; }
.steps li.done { color: #0b6b43; border-color: #9fd9bd; }
.steps li.done .step-n { background: #19a974; color: transparent; position: relative; }
.steps li.done .step-n::after { content: ""; position: absolute; width: 0.3rem; height: 0.6rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.dz-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone { display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.4rem; border: 2px dashed var(--blue); background: #fff; border-radius: 6px; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.dropzone:hover, .dropzone.over { background: #eef2ff; border-style: solid; }
.dz-input:focus-visible + .dropzone { outline: 3px solid var(--ink); outline-offset: 3px; }
.dz-icon { flex: none; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--blue); position: relative; }
.dz-icon::before { content: ""; position: absolute; left: 50%; top: 50%; width: 0.7rem; height: 0.7rem; border: solid #fff; border-width: 3px 0 0 3px; transform: translate(-50%, -30%) rotate(45deg); }
.dz-icon::after { content: ""; position: absolute; left: 50%; top: 32%; width: 3px; height: 38%; background: #fff; transform: translateX(-50%); }
.dz-text { display: flex; flex-direction: column; flex: 1; font-size: 0.95rem; color: #4a5568; }
.dz-text strong { font-size: 1.1rem; color: var(--ink); }
.dz-btn { flex: none; background: var(--ink); color: #fff; font-weight: 700; padding: 0.55rem 1rem; border-radius: 3px; }
.file-field .hint { margin-top: 0.6rem; }
.tpl { display: flex; align-items: center; gap: 0.7rem; }
.tpl-t { display: flex; flex-direction: column; }
.mini { flex: none; width: 2.7rem; height: 3.5rem; background: #fff; border: 1px solid #b9c3d6; padding: 0.35rem 0.3rem; display: flex; flex-direction: column; gap: 0.17rem; box-shadow: 0 1px 0 rgba(0,0,0,0.08); }
.mini i { display: block; height: 0.32rem; background: #1b2430; width: 70%; }
.mini b { display: block; height: 0.13rem; background: #b9c3d6; }
.mini b:nth-of-type(2) { width: 85%; } .mini b:nth-of-type(4) { width: 60%; }
.mini-modern i { background: #2349c9; } .mini-modern b:nth-of-type(1) { background: #2349c9; height: 0.17rem; }
.mini-classic { align-items: center; } .mini-classic i { background: #1b2430; width: 55%; height: 0.26rem; }
.mini-compact { gap: 0.1rem; } .mini-compact i { height: 0.24rem; } .mini-compact b { height: 0.1rem; }
.dl-bar { position: sticky; bottom: 0.7rem; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; background: var(--ink); color: #fff; padding: 0.7rem 1rem; border-radius: 6px; margin-top: 1.4rem; box-shadow: 0 6px 18px rgba(16,24,40,0.28); }
.dl-bar-t { font-size: 0.93rem; }
.dl-bar-b { display: flex; gap: 0.4rem; }
.dl-bar .btn-quiet { background: transparent; color: #fff; border-color: #fff; }
@media (max-width: 640px) { .dropzone { flex-wrap: wrap; } .dz-btn { width: 100%; text-align: center; } .steps li { font-size: 0.82rem; padding-right: 0.6rem; } .dl-bar-t { display: none; } .dl-bar { justify-content: center; } }
.field label.dropzone { display: flex; align-items: center; gap: 1rem; margin: 0; font-weight: 400; font-size: 1rem; }
.dropzone .dz-text { display: flex; flex-direction: column; gap: 0.1rem; }
.dropzone .dz-text span { font-weight: 400; }
.dropzone .dz-icon { display: block; }
@media (max-width: 640px) {
  .site-nav ul { gap: 0.5rem 0.9rem; }
  .site-nav a { font-size: 0.9rem; }
  .site-nav a.nav-cta { padding: 0.3rem 0.7rem; }
  .steps { gap: 0.3rem; }
  .steps li { font-size: 0.76rem; gap: 0.3rem; padding: 0.25rem 0.5rem 0.25rem 0.3rem; }
  .steps .step-n { width: 1.3rem; height: 1.3rem; font-size: 0.75rem; }
}

/* ---------- More colour ---------- */
.band--checker { background: linear-gradient(135deg, #e3eaff 0%, #efe8ff 48%, #ffe9ee 100%); border-block: 0; position: relative; }
.band--checker::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--blue) 0 25%, var(--coral) 25% 50%, var(--green-bright) 50% 75%, var(--amber) 75% 100%); }
.hl { background: linear-gradient(transparent 62%, var(--amber-bright) 62% 92%, transparent 92%); padding-inline: 0.12em; }
.steps li[data-step="1"] { --s: var(--blue);  --st: var(--blue-tint); }
.steps li[data-step="2"] { --s: var(--coral); --st: var(--coral-tint); }
.steps li[data-step="3"] { --s: var(--green); --st: var(--green-tint); }
.steps li[data-step="4"] { --s: #b57a00;      --st: var(--amber-tint); }
.steps li { border-color: transparent; background: #fff; }
.steps .step-n { background: var(--st); color: var(--s); }
.steps li.on { background: var(--s); color: #fff; border-color: var(--s); box-shadow: 0 3px 0 rgba(0,0,0,0.18); }
.steps li.on .step-n { background: #fff; color: var(--s); }
.steps li.done { background: var(--st); color: var(--s); border-color: transparent; }
.steps li.done .step-n { background: var(--s); }
.dropzone { background: linear-gradient(135deg, #fff 0%, #f6f1ff 100%); border-color: var(--violet); }
.dropzone:hover, .dropzone.over { background: linear-gradient(135deg, #fff7dd 0%, #ffe9ee 100%); border-color: var(--coral); }
.dz-icon { background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 4px 10px rgba(35,73,201,0.35); }
.dz-btn { background: linear-gradient(135deg, var(--blue), var(--violet)); }
.band--checker .file-field { background: transparent; border: 0; padding: 0; }
.band--checker label[for="resume-text"], .band--checker label[for="jd-text"] { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 3px; }
.band--checker label[for="resume-text"] { background: var(--blue-tint); color: var(--blue); }
.band--checker label[for="jd-text"] { background: var(--green-tint); color: var(--green); }
.band--checker textarea { background: #fff; border-color: #aab9ee; }
#jd-text { border-color: #9bd9bf; }
#load-sample { background: var(--amber-tint); border-color: #b57a00; color: #5c3d00; }
#load-sample:hover { background: var(--amber-bright); }
.improve { position: relative; background: #fff; border-color: var(--violet); }
.improve::before { content: ""; position: absolute; inset: -2px -2px auto -2px; height: 7px; background: linear-gradient(90deg, var(--blue) 0 25%, var(--coral) 25% 50%, var(--green-bright) 50% 75%, var(--amber) 75% 100%); }
.improve > h2 { padding-top: 0.4rem; }
.improve-col:nth-child(1) h3 { background: var(--blue-tint); color: var(--blue); padding: 0.4rem 0.7rem; border-left: 5px solid var(--blue); }
.improve-col-preview h3 { background: var(--green-tint); color: var(--green); padding: 0.4rem 0.7rem; border-left: 5px solid var(--green); }
.shorten { border-top-color: var(--coral); }
.shorten > h3 { background: var(--coral-tint); color: var(--coral); padding: 0.4rem 0.7rem; border-left: 5px solid var(--coral); }
.cut-quick, .cut-quick > summary { color: var(--green); } .cut-roles, .cut-roles > summary { color: #8a5a00; } .cut-bullets > summary { color: var(--coral); } .cut-deeper > summary { color: var(--violet); }
.cut-list input, .opt-list input { accent-color: var(--blue); }
.short-meter { border-left-color: var(--violet); background: var(--violet-tint); }
.tpl.on { border-color: var(--violet); background: var(--violet-tint); }
.dl-bar { background: linear-gradient(120deg, #17203a 0%, #2349c9 60%, #6a43dd 100%); }
.dl-bar .btn { background: var(--amber-bright); color: #1b2430; border-color: var(--amber-bright); }
.dl-bar .btn-quiet { background: transparent; color: #fff; border-color: #fff; }
#faq { background: linear-gradient(180deg, #f4efff 0%, #fff 100%); }
#faq .faq { background: #fff; border: 1.5px solid #e3dcf7; border-left: 6px solid var(--c, var(--blue)); border-radius: 4px; margin-bottom: 0.55rem; padding-inline: 1rem; }
#faq .faq:nth-of-type(4n+1) { --c: var(--blue); } #faq .faq:nth-of-type(4n+2) { --c: var(--coral); } #faq .faq:nth-of-type(4n+3) { --c: var(--green-bright); } #faq .faq:nth-of-type(4n) { --c: var(--amber); }
#faq .faq[open] { background: #fcfbff; box-shadow: 0 4px 12px rgba(106,67,221,0.12); }
#faq .faq summary { color: var(--ink); }
#faq .faq:last-of-type { border-bottom: 1.5px solid #e3dcf7; }
.hero-demo { background: linear-gradient(135deg, #e3eaff 0%, #d9f4e8 100%); }
#faq .faq summary { list-style-position: inside; }
#faq .faq summary::marker { color: var(--c, var(--blue)); }

/* Tagline */
.wordmark-text { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark-name { font-size: 1.2rem; }
.tagline { font-size: 0.78rem; font-weight: 600; letter-spacing: 0; color: #4a5568; }
.foot-tag { font-weight: 700; margin-bottom: 0.4rem; }
@media (max-width: 520px) { .tagline { display: none; } }

.hero-what { max-width: 66ch; margin: -0.6rem 0 1.4rem; font-size: 1rem; color: var(--ink-2); background: rgba(255,255,255,0.7); border-left: 5px solid var(--amber); padding: 0.55rem 0.9rem; }

/* Jump button */
.jump { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; display: inline-flex; align-items: center; gap: 0.5rem; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.95rem; color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); padding: 0.7rem 1.1rem 0.7rem 0.8rem; border-radius: 999px; box-shadow: 0 6px 18px rgba(35,73,201,0.4); transition: transform 0.15s, bottom 0.2s; }
.jump[hidden] { display: none; }
.jump:hover { transform: translateY(-2px); }
.jump:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.jump.up { bottom: 5rem; }
.jump-arrow { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff; position: relative; flex: none; }
.jump-arrow::before { content: ""; position: absolute; left: 50%; top: 50%; width: 0.5rem; height: 0.5rem; border: solid var(--blue); border-width: 2.5px 0 0 2.5px; transform: translate(-50%, -25%) rotate(45deg); }
@media (max-width: 520px) { .jump { right: 0.7rem; padding: 0.6rem 0.9rem 0.6rem 0.65rem; font-size: 0.88rem; } }
@media print { .jump { display: none; } }

/* Job match card at the top of the results */
.match-card { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem 1.6rem; align-items: start; background: #fff; border: 2px solid var(--ink); border-left: 10px solid var(--c, var(--violet)); border-radius: 6px; padding: 1.1rem 1.3rem; margin: 0 0 1.4rem; box-shadow: 0 6px 16px rgba(23,32,58,0.10); }
.match-card.mc-low { --c: var(--coral); } .match-card.mc-mid { --c: var(--amber); } .match-card.mc-good { --c: var(--green-bright); }
.match-card h2 { margin: 0 0 0.3rem; font-size: 1.25rem; }
.mc-score { display: flex; flex-direction: column; min-width: 9.5rem; }
.mc-pct { font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--c, var(--violet)); }
.mc-low .mc-pct { color: var(--coral); } .mc-mid .mc-pct { color: #b57a00; } .mc-good .mc-pct { color: var(--green); }
.mc-small { font-size: 0.85rem; color: #4a5568; margin-top: 0.25rem; }
.mc-bar { display: block; height: 8px; border-radius: 99px; background: #e8ebf3; margin-top: 0.55rem; overflow: hidden; }
.mc-bar i { display: block; height: 100%; background: var(--c, var(--violet)); border-radius: 99px; }
.mc-lead { margin: 0 0 0.7rem; }
.mc-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gap-chip { display: inline-flex; align-items: center; gap: 0.45rem; border: 1.5px solid var(--ink); background: #fff; border-radius: 999px; padding: 0.3rem 0.8rem 0.3rem 0.35rem; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.gap-chip:hover, .gap-chip.on { background: var(--violet-tint); border-color: var(--violet); }
.gap-chip:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.gc-pri { font-size: 0.7rem; font-weight: 800; padding: 0.12rem 0.5rem; border-radius: 99px; background: #e8ebf3; color: #3a4658; text-transform: uppercase; letter-spacing: 0.03em; }
.gap-chip.pri-high .gc-pri { background: var(--coral); color: #fff; }
.gap-chip.pri-medium .gc-pri { background: var(--amber-bright); color: #4a3200; }
.mc-panel { margin-top: 0.8rem; }
.mc-actions { margin: 0.9rem 0 0; }
.match-card-empty { grid-template-columns: 1fr auto; align-items: center; --c: var(--violet); }
.match-card-empty p { margin: 0; }
@media (max-width: 640px) { .match-card, .match-card-empty { grid-template-columns: 1fr; } .mc-score { flex-direction: row; align-items: center; gap: 0.9rem; flex-wrap: wrap; } .mc-bar { width: 100%; } .mc-pct { font-size: 2.4rem; } }

.gap-chip.pri-place .gc-pri, .pri.pri-place { background: var(--violet-tint); color: var(--violet); }
.pl-set { border: 0; padding: 0; margin: 0 0 0.7rem; }
.pl-set legend { font-weight: 700; padding: 0; margin-bottom: 0.3rem; }
.add-form label.check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 500; margin-bottom: 0.4rem; }

/* Bigger, sharper preview; readable dropdowns */
.preview-box { max-height: 72vh; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; padding: 0.9rem 0.6rem; }
.preview-box .preview-page { display: block; max-width: 100%; box-shadow: 0 2px 10px rgba(16,24,40,0.22); background: #fff; }
.preview-box .preview-cap { align-self: stretch; margin: 0; }
.preview-tools { margin: 0 0 0.5rem; }
.lp { width: min(96vw, 940px); max-height: 94vh; border: 0; border-radius: 8px; padding: 0; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.lp::backdrop { background: rgba(16, 24, 40, 0.65); }
.lp-bar { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 1rem; background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 2; }
.lp-body { padding: 1rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; overflow-y: auto; max-height: calc(94vh - 3.5rem); background: #e8ebf3; }
.lp-body .preview-page { max-width: 100%; box-shadow: 0 2px 12px rgba(16,24,40,0.25); background: #fff; }
select, select option { font-size: 1rem; line-height: 1.5; }
select option { padding: 0.45rem 0.7rem; }
.fit-row select, #short-target, #fit-select { font-size: 1rem; padding: 0.5rem 0.7rem; min-width: 11rem; }

/* Live "where it goes" excerpts */
.ex { background: #f6f8fc; border: 1px solid #cfd8ea; border-radius: 4px; padding: 0.5rem 0.7rem; margin: 0.4rem 0 0.7rem; font-size: 0.9rem; }
.ex-row { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #4a5568; line-height: 1.5; }
.ex-head { font-weight: 800; color: var(--ink); }
.ex-gap { color: #9aa5b8; }
.ex-new { background: var(--green-tint); color: #064e3b; font-weight: 700; border-left: 4px solid var(--green-bright); padding-left: 0.45rem; margin-block: 1px; }
.add-live { margin: 0.4rem 0 0.2rem; }
.add-live-h { margin: 0; font-size: 0.9rem; color: #4a5568; }
.mc-added { background: var(--green-tint); border: 1.5px solid var(--green-bright); border-radius: 6px; padding: 0.6rem 0.8rem 0.2rem; margin: 0.2rem 0 0.9rem; animation: mcflash 1.2s ease-out; }
.mc-added-h { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; color: #064e3b; }
@keyframes mcflash { from { box-shadow: 0 0 0 6px rgba(25,185,138,0.45); } to { box-shadow: 0 0 0 0 rgba(25,185,138,0); } }
@media (prefers-reduced-motion: reduce) { .mc-added { animation: none; } }
.add-form .ex-row, .mc-added .ex-row { margin: 0; }
.add-form .add-live-h { margin: 0.3rem 0 0; }

/* ---------- Big buttons (pills), colours, arrows ---------- */
.pill-select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { --pc: var(--blue); --pct: var(--blue-tint); font: inherit; font-weight: 700; font-size: 1rem; padding: 0.5rem 1.05rem; border-radius: 999px; border: 2px solid var(--pc); background: #fff; color: var(--ink); cursor: pointer; transition: background 0.12s, transform 0.12s; }
.pill:hover { background: var(--pct); transform: translateY(-1px); }
.pill.on { background: var(--pc); color: #fff; box-shadow: 0 3px 0 rgba(0,0,0,0.18); }
.pill:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.pc-blue { --pc: var(--blue); --pct: var(--blue-tint); }
.pc-coral { --pc: var(--coral); --pct: var(--coral-tint); }
.pc-green { --pc: var(--green); --pct: var(--green-tint); }
.pc-amber { --pc: #d99100; --pct: var(--amber-tint); }
.pc-violet { --pc: var(--violet); --pct: var(--violet-tint); }
.pill.pc-amber.on { color: #1b2430; background: var(--amber-bright); border-color: #d99100; }
.country-field { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; width: 100%; }
.country-lbl { font-weight: 800; font-size: 1.05rem; background: linear-gradient(135deg, var(--coral), #e8573f); color: #fff; padding: 0.4rem 0.9rem; border-radius: 4px; box-shadow: 0 3px 0 rgba(0,0,0,0.18); }
.country-panel { flex-basis: 100%; background: #fff; border: 2px solid var(--violet); border-radius: 6px; padding: 0.8rem 0.9rem; box-shadow: 0 8px 20px rgba(106,67,221,0.16); }
.cp-l { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.cp-search { width: 100%; font: inherit; font-size: 1.05rem; padding: 0.6rem 0.8rem; border: 2px solid var(--ink); border-radius: 4px; margin-bottom: 0.6rem; }
.cp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.35rem; max-height: 17rem; overflow-y: auto; padding: 0.2rem; }
.cp-item { font: inherit; font-size: 1.05rem; font-weight: 600; text-align: left; padding: 0.55rem 0.8rem; border: 1.5px solid #d6dcec; border-radius: 4px; background: #fff; color: var(--ink); cursor: pointer; }
.cp-item:hover, .cp-item:focus-visible { background: var(--violet-tint); border-color: var(--violet); outline: none; }
.cp-none, .cp-note { font-size: 0.9rem; color: #4a5568; margin: 0.5rem 0 0; }
.fit-row { align-items: center; flex-wrap: wrap; gap: 0.5rem 0.8rem; }
.fit-lbl { font-weight: 800; padding: 0.25rem 0.7rem; border-radius: 4px; background: var(--green-tint); color: var(--green); }
.shorten .fit-lbl { background: var(--coral-tint); color: var(--coral); }
/* look cards: one colour each */
.tpl { --t: var(--blue); --tt: var(--blue-tint); border-left: 7px solid var(--t); }
.tpl[data-t="clean"] { --t: var(--blue); --tt: var(--blue-tint); }
.tpl[data-t="modern"] { --t: var(--violet); --tt: var(--violet-tint); }
.tpl[data-t="classic"] { --t: var(--coral); --tt: var(--coral-tint); }
.tpl[data-t="compact"] { --t: var(--green); --tt: var(--green-tint); }
.tpl { background: linear-gradient(90deg, var(--tt), #fff 60%); }
.tpl strong { color: var(--t); }
.tpl.on { background: var(--tt); border-color: var(--t); box-shadow: inset 0 0 0 2px var(--t), 0 3px 0 rgba(0,0,0,0.12); }
.tpl .mini i { background: var(--t); }
.tpl .mini b:nth-of-type(1) { background: var(--t); opacity: 0.55; }
/* download buttons: one colour each */
[data-dl="pdf"].btn { background: var(--coral); border-color: var(--coral); color: #fff; }
[data-dl="docx"].btn { background: var(--blue); border-color: var(--blue); color: #fff; }
[data-dl="txt"].btn { background: var(--green); border-color: var(--green); color: #fff; }
.download-row [data-dl].btn:hover { filter: brightness(1.12); }
.dl-bar [data-dl="pdf"].btn { background: var(--amber-bright); border-color: var(--amber-bright); color: #1b2430; }
.dl-bar [data-dl="docx"].btn { background: #a9c0ff; border-color: #a9c0ff; color: #11214f; }
.dl-bar [data-dl="txt"].btn { background: #7ee8c2; border-color: #7ee8c2; color: #06382a; }
/* arrows */
.nav-arrow { display: inline-block; font-weight: 900; margin-left: 0.15rem; animation: navbob 1.6s ease-in-out infinite; }
@keyframes navbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .nav-arrow { animation: none; } }
.jump-arrow { display: inline-grid; place-items: center; font-size: 1.1rem; font-weight: 900; line-height: 1; color: var(--blue); }
.jump-arrow::before { display: none; }

.country-hint { font-size: 0.9rem; color: #4a5568; margin: 0.5rem 0 0.3rem; }

/* Country format note */
.cf-note { background: #fff8e1; border: 1.5px solid var(--amber); border-left-width: 7px; border-radius: 4px; padding: 0.6rem 0.8rem; margin: 0 0 0.8rem; display: grid; gap: 0.3rem; }
.cf-note > strong { color: #8a5a00; }
.cf-note > span { font-size: 0.92rem; color: #4a5568; }
.cf-note label.check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 600; font-size: 0.92rem; }
.cf-note input { margin-top: 0.25rem; accent-color: var(--amber); }

.cf-plain { background: #eefaf4; border-color: var(--green-bright); }
.cf-plain > strong { color: var(--green); }
.cf-hint { font-size: 0.85rem; color: #5a6475; }
.style-row .pills .pill { font-size: 0.95rem; padding: 0.45rem 0.9rem; }

/* ---------- Big checkboxes with a green tick ---------- */
main input[type="checkbox"], main input[type="radio"] { appearance: none; -webkit-appearance: none; flex: none; display: inline-grid; place-content: center; width: 1.65rem; height: 1.65rem; margin: 0.05rem 0.1rem 0 0; border: 2.5px solid var(--ink); background: #fff; cursor: pointer; position: relative; transition: background 0.12s, border-color 0.12s, transform 0.12s; }
main input[type="checkbox"] { border-radius: 6px; }
main input[type="radio"] { border-radius: 50%; }
main input[type="checkbox"]:hover, main input[type="radio"]:hover { border-color: var(--green); transform: scale(1.06); }
main input[type="checkbox"]:checked, main input[type="radio"]:checked { background: #19a974; border-color: #0b7d5b; }
main input[type="checkbox"]::before { content: ""; width: 0.5rem; height: 0.92rem; border: solid #fff; border-width: 0 3.5px 3.5px 0; transform: rotate(45deg) translate(-1px, -2px) scale(0); transition: transform 0.12s; }
main input[type="checkbox"]:checked::before { transform: rotate(45deg) translate(-1px, -2px) scale(1); }
main input[type="radio"]::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #fff; transform: scale(0); transition: transform 0.12s; }
main input[type="radio"]:checked::before { transform: scale(1); }
main input[type="checkbox"]:focus-visible, main input[type="radio"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
main input[type="checkbox"]:disabled, main input[type="radio"]:disabled { opacity: 0.45; cursor: not-allowed; border-style: dashed; }
label.check { font-size: 1rem; }
.cf-note label.check, .opt-list label.check, .cut-list label.check, .add-form label.check { gap: 0.7rem; align-items: center; }
.cut-list label.check { align-items: flex-start; }
.tpl input[type="radio"] { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; }
.tpl input[type="radio"]::before { display: none; }
/* contact form */
.contact-form { max-width: 36rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea { width: 100%; font: inherit; font-size: 1rem; padding: 0.6rem 0.75rem; border: 2px solid var(--ink); border-radius: 4px; background: #fff; }
.contact-msg { min-height: 1.4rem; color: var(--coral); font-weight: 600; }

/* Drop zone states: file chosen, reading, problem */
.dropzone.has-file { border-style: solid; border-color: var(--green-bright); background: linear-gradient(135deg, #fff 0%, #e6f7ef 100%); }
.dropzone.has-file .dz-icon { background: linear-gradient(135deg, #19a974, #0b7d5b); box-shadow: 0 4px 10px rgba(11,125,91,0.35); }
.dropzone.has-file .dz-icon::after { display: none; }
.dropzone.has-file .dz-icon::before { width: 0.5rem; height: 0.95rem; border: solid #fff; border-width: 0 3.5px 3.5px 0; transform: translate(-50%, -62%) rotate(45deg); }
.dropzone.has-file .dz-text strong::before { content: "Uploaded: "; font-weight: 600; color: var(--green); }
.dropzone.busy { border-style: solid; border-color: var(--blue); animation: dzpulse 1.2s ease-in-out infinite; }
@keyframes dzpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(35,73,201,0.35); } 50% { box-shadow: 0 0 0 6px rgba(35,73,201,0); } }
.dropzone.bad { border-style: solid; border-color: var(--coral); background: linear-gradient(135deg, #fff 0%, #ffe9ee 100%); }
.dropzone.bad .dz-icon { background: var(--coral); }
.dropzone.bad .dz-text strong { color: var(--coral); }
.dz-text strong { overflow-wrap: anywhere; }
.dz-text { min-width: 0; }
@media (prefers-reduced-motion: reduce) { .dropzone.busy { animation: none; } }
[data-theme="dark"] .dropzone.bad { background: var(--coral-tint); }

/* =====================================================================
   Light and dark mode: the header button and the device setting choose.
   ===================================================================== */
.head-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.theme-toggle { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; flex: none; }
.theme-toggle:hover { background: var(--ink); color: var(--paper); }
.theme-toggle .ico-sun { display: none; }
[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
[data-theme="dark"] .theme-toggle { border-color: var(--rule-strong); }
@media (max-width: 640px) { .head-right { gap: 0.6rem; } }

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d1424; --sheet: #151e33; --ink: #e8ecf6; --ink-2: #aab6cc; --rule: #26324d; --rule-strong: #3c4c70;
  --pencil: #4a6cf0; --pencil-deep: #6a87ff; --pencil-wash: #1b2850; --mark: #ffe566;
  --pen: #ff8a98; --pen-wash: #3a2029; --ok: #52d6a2; --ok-wash: #123428; --warn: #ffc95c; --warn-wash: #3a2e0e;
  --blue: #4a6cf0; --blue-tint: #1b2850; --blue-bright: #7d9bff;
  --coral: #e8556d; --coral-tint: #3a2029; --coral-bright: #ff8f9c;
  --green: #1f9f75; --green-tint: #123428; --green-bright: #2fd3a0;
  --amber: #f2a516; --amber-tint: #3a2e0e; --amber-bright: #ffc95c;
  --violet: #8f78ff; --violet-tint: #2a2354;
}
[data-theme="dark"] a { color: var(--pencil-deep); }
[data-theme="dark"] .btn { background: var(--blue); border-color: var(--blue); color: #fff; }
[data-theme="dark"] .btn:hover { background: var(--blue); border-color: var(--blue); filter: brightness(1.18); }
[data-theme="dark"] .btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
[data-theme="dark"] .btn-quiet:hover { background: #26324d; color: #fff; border-color: var(--ink); filter: none; }
[data-theme="dark"] .btn-light { background: #e8ecf6; color: #14202e; border-color: #e8ecf6; }
[data-theme="dark"] .nav-cta, [data-theme="dark"] .site-nav a.nav-cta { color: #fff; }
/* dark surfaces that used the ink colour as a background */
[data-theme="dark"] .skip-link, [data-theme="dark"] .demo-controls button[aria-pressed="true"], [data-theme="dark"] .lp-bar, [data-theme="dark"] .extract, [data-theme="dark"] .site-foot { background: #070b16; color: #e8ecf6; }
[data-theme="dark"] .site-foot { color: #aebbd0; }
[data-theme="dark"] .site-foot h2 { color: #e8ecf6; }
[data-theme="dark"] .site-foot a { color: #c9d6ff; }
[data-theme="dark"] .demo-controls { border-color: var(--rule-strong); }
[data-theme="dark"] .hero { border-bottom-color: var(--rule); }
[data-theme="dark"] .hero-demo { background: linear-gradient(135deg, #16224a 0%, #11332a 100%); }
[data-theme="dark"] .band--checker { background: linear-gradient(135deg, #131d42 0%, #1d1a40 48%, #2a1a2b 100%); }
[data-theme="dark"] #faq { background: linear-gradient(180deg, #1a1740 0%, #0d1424 100%); }
[data-theme="dark"] .band--blue { background: #1a2a6c; }
/* cards and fields */
[data-theme="dark"] .match-card, [data-theme="dark"] .improve, [data-theme="dark"] .short-meter, [data-theme="dark"] .changes,
[data-theme="dark"] .country-panel, [data-theme="dark"] .cp-item, [data-theme="dark"] .gap-chip, [data-theme="dark"] .pill,
[data-theme="dark"] .steps li, [data-theme="dark"] #faq .faq, [data-theme="dark"] .band--checker textarea, [data-theme="dark"] .field textarea,
[data-theme="dark"] .contact-form input, [data-theme="dark"] .contact-form select, [data-theme="dark"] .contact-form textarea,
[data-theme="dark"] .cp-search, [data-theme="dark"] .chip-row a, [data-theme="dark"] .file-field { background: var(--sheet); color: var(--ink); }
[data-theme="dark"] .steps li { border-color: transparent; }
[data-theme="dark"] .steps li.on { background: var(--s); color: #fff; }
[data-theme="dark"] .steps li.done { background: var(--st); color: var(--s); }
[data-theme="dark"] .steps li[data-step="4"] { --s: #ffc95c; }
[data-theme="dark"] .steps li[data-step="4"].on { color: #1b2430; }
[data-theme="dark"] .pill:hover { background: var(--pct); }
[data-theme="dark"] .pill.on { background: var(--pc); color: #fff; }
[data-theme="dark"] .pill.pc-amber.on { color: #1b2430; }
[data-theme="dark"] .gap-chip:hover, [data-theme="dark"] .gap-chip.on { background: var(--violet-tint); }
[data-theme="dark"] .tpl { background: linear-gradient(90deg, var(--tt), var(--sheet) 60%); }
[data-theme="dark"] .tpl.on { background: var(--tt); }
[data-theme="dark"] .dropzone { background: linear-gradient(135deg, var(--sheet) 0%, #1f1b3f 100%); }
[data-theme="dark"] .dropzone:hover, [data-theme="dark"] .dropzone.over { background: linear-gradient(135deg, #3a2e0e 0%, #3a2029 100%); }
[data-theme="dark"] .dropzone.has-file { background: var(--green-tint); }
[data-theme="dark"] .cf-note { background: var(--amber-tint); }
[data-theme="dark"] .cf-plain { background: var(--green-tint); }
[data-theme="dark"] .ex { background: #1b2640; border-color: #33456b; }
[data-theme="dark"] .ex-new { background: var(--green-tint); }
[data-theme="dark"] .preview-box, [data-theme="dark"] .lp-body { background: #1a2440; border-color: #33456b; }
[data-theme="dark"] .mc-bar { background: #26324d; }
[data-theme="dark"] .gc-pri, [data-theme="dark"] .pri-low { background: #2a3550; color: var(--ink-2); }
[data-theme="dark"] .gap-chip.pri-high .gc-pri { background: var(--coral); color: #fff; }
[data-theme="dark"] .gap-chip.pri-medium .gc-pri { background: var(--amber-bright); color: #4a3200; }
[data-theme="dark"] #faq .faq { border-color: #2f3a63; }
[data-theme="dark"] #faq .faq[open] { background: #1a2340; box-shadow: 0 4px 14px rgba(0,0,0,0.4); }
[data-theme="dark"] .hl { background: linear-gradient(transparent 62%, rgba(242,165,22,0.55) 62% 92%, transparent 92%); }
[data-theme="dark"] .country-lbl { color: #fff; }
[data-theme="dark"] main input[type="checkbox"], [data-theme="dark"] main input[type="radio"] { background: var(--sheet); border-color: var(--rule-strong); }
[data-theme="dark"] main input[type="checkbox"]:checked, [data-theme="dark"] main input[type="radio"]:checked { background: #19a974; border-color: #52d6a2; }
[data-theme="dark"] .mini { background: #fff; }
[data-theme="dark"] .mc-added { background: var(--green-tint); }
[data-theme="dark"] .gc-term, [data-theme="dark"] .cp-item { color: var(--ink); }
[data-theme="dark"] .jump-arrow { background: #fff; color: #2349c9; }
[data-theme="dark"] mark, [data-theme="dark"] .marked mark { color: #14202e; }
[data-theme="dark"] .added-note { background: var(--ok-wash); color: var(--ink); }
/* greys, ambers, greens and reds that were fixed colours */
[data-theme="dark"] .add-live-h,
[data-theme="dark"] .cf-hint,
[data-theme="dark"] .cf-note > span,
[data-theme="dark"] .country-hint,
[data-theme="dark"] .cp-none,
[data-theme="dark"] .cp-note,
[data-theme="dark"] .cut-prev,
[data-theme="dark"] .cut-save,
[data-theme="dark"] .cut-why,
[data-theme="dark"] .dz-text,
[data-theme="dark"] .ex-row,
[data-theme="dark"] .gc-pri,
[data-theme="dark"] .mc-small,
[data-theme="dark"] .steps li,
[data-theme="dark"] .tagline { color: var(--ink-2); }
[data-theme="dark"] #load-sample,
[data-theme="dark"] .cf-note > strong,
[data-theme="dark"] .cut-roles,
[data-theme="dark"] .cut-roles > summary,
[data-theme="dark"] .gap-chip.pri-medium .gc-pri,
[data-theme="dark"] .mc-mid .mc-pct { color: #ffc95c; }
[data-theme="dark"] .ok-text,
[data-theme="dark"] .steps li.done { color: #52d6a2; }
[data-theme="dark"] .bad-text { color: #ff8a98; }
[data-theme="dark"] .dl-bar [data-dl="txt"].btn,
[data-theme="dark"] .ex-new,
[data-theme="dark"] .mc-added-h { color: #b9f3dc; }
[data-theme="dark"] .cf-note > strong { color: #ffc95c; }
[data-theme="dark"] .cf-plain > strong { color: #52d6a2; }
@media print { [data-theme="dark"] body { background: #fff; color: #000; } }
[data-theme="dark"] .hero-what { background: rgba(21, 30, 51, 0.85); color: var(--ink-2); }
[data-theme="dark"] .hero-what strong { color: var(--ink); }

/* Back to home tab and jump-down links */
.site-nav a.nav-back { display: inline-flex; align-items: center; gap: 0.35rem; border: 2px solid var(--ink); border-radius: 999px; padding: 0.25rem 0.85rem; font-weight: 700; color: var(--ink); border-bottom-width: 2px; }
.site-nav a.nav-back:hover { background: var(--ink); color: var(--paper); border-bottom-color: var(--ink); }
.nav-back-arrow { font-weight: 900; transition: transform 0.15s; }
.site-nav a.nav-back:hover .nav-back-arrow { transform: translateX(-3px); }
[data-theme="dark"] .site-nav a.nav-back { border-color: var(--rule-strong); }
.jump-row { margin: 0.2rem 0 1.2rem; }
.jump-link { display: inline-flex; align-items: center; gap: 0.5rem; }
.jl-arrow { display: inline-block; font-weight: 900; animation: navbob 1.6s ease-in-out infinite; }
.jump-down .jump-arrow { color: var(--blue); }
@media (prefers-reduced-motion: reduce) { .jl-arrow { animation: none; } }
.article-body a.jump-link, .jump-link { font-family: var(--f-ui); font-weight: 700; font-size: 1rem; padding: 0.6rem 1rem; color: #fff; text-decoration: none; }
.jl-arrow { font-size: 1.3em; line-height: 1; }
.site-head .wrap { gap: 0.8rem 1.2rem; flex-wrap: nowrap; }
.site-head .wordmark { flex: none; }
.head-right { flex: 1 1 auto; justify-content: flex-end; gap: 0.7rem; flex-wrap: nowrap; }
.site-nav ul { gap: 0.55rem 1rem; flex-wrap: nowrap; }
.site-nav a { white-space: nowrap; }
.site-nav a.nav-back { padding: 0.2rem 0.7rem; }
@media (max-width: 1200px) { .site-head .wrap { flex-wrap: wrap; } .head-right { flex-wrap: wrap; justify-content: flex-start; } .site-nav ul { flex-wrap: wrap; } }
