:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #15181d;
  --muted: #5b6472;
  --line: #e4e7ec;
  --brand: #1b6ef3;
  --brand-ink: #ffffff;
  --ok-bg: #e7f6ec;
  --ok-ink: #116b33;
  --warn-bg: #fff4e2;
  --warn-ink: #8a5a00;
  --err-bg: #fdeaea;
  --err-ink: #a11f1f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216; --surface: #171b21; --ink: #e9edf3; --muted: #9aa4b2;
    --line: #262c35; --ok-bg: #11301d; --ok-ink: #5fd089; --warn-bg: #3a2c10;
    --warn-ink: #e8b25a; --err-bg: #3a1716; --err-ink: #f1908d; --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.55; font-size: 16px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }

header.site {
  border-bottom: 1px solid var(--line); background: var(--surface);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--ink); }
.logo span { color: var(--brand); }
nav.top a { color: var(--muted); font-size: 14px; margin-left: 18px; }

.hero { padding: 40px 0 8px; }
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 17px; max-width: 70ch; margin: 0 0 6px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.trust span {
  font-size: 12.5px; color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
}

.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 8px; }
@media (max-width: 680px) { .tools { grid-template-columns: 1fr; } h1 { font-size: 25px; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h3 { margin: 0; font-size: 17px; }
.spec-badge {
  font-size: 11.5px; color: var(--muted); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; text-align: right;
}
.drop {
  display: block; border: 1.5px dashed var(--line); border-radius: 12px;
  padding: 26px 16px; text-align: center; cursor: pointer; transition: .15s;
  background: var(--bg);
}
.drop:hover, .drop:focus, .drop.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--bg)); outline: none; }
.drop-inner { display: flex; align-items: center; justify-content: center; gap: 12px; }
.drop-icon {
  width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-size: 20px; font-weight: 700; flex: none;
}
.drop-text { text-align: left; display: flex; flex-direction: column; }
.drop-text strong { font-size: 15px; }
.drop-text span { font-size: 12.5px; color: var(--muted); }

.result { margin-top: 14px; }
.result.hidden { display: none; }
.working { color: var(--muted); font-size: 14px; padding: 8px 0; }
.preview { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-align: center; }
.preview img { max-width: 100%; max-height: 220px; border-radius: 6px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pill { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.pill.ok { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; font-weight: 700; }
.warn { background: var(--warn-bg); color: var(--warn-ink); border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-bottom: 10px; }
.err { background: var(--err-bg); color: var(--err-ink); border-radius: 8px; padding: 10px 12px; font-size: 14px; }

.btn {
  display: block; width: 100%; text-align: center; border: 0; cursor: pointer;
  border-radius: 10px; padding: 11px 14px; font-size: 15px; font-weight: 600; font-family: inherit;
}
.btn.download { background: var(--brand); color: var(--brand-ink); }
.btn.download:hover { text-decoration: none; filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--muted); margin-top: 8px; }

section.content { margin: 34px 0; }
section.content h2 { font-size: 21px; letter-spacing: -.01em; margin: 0 0 12px; }
.faq details {
  border: 1px solid var(--line); border-radius: 10px; padding: 2px 14px; margin-bottom: 10px; background: var(--surface);
}
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 14px; color: var(--muted); }

/* Exact-requirements cards (E-E-A-T: show the spec + verified date + official link) */
section.req { margin: 28px 0; }
.req-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 680px) { .req-cards { grid-template-columns: 1fr; } }
.req-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.req-card h3 { margin: 0 0 10px; font-size: 15px; }
.req-grid { margin: 0; display: grid; gap: 7px; }
.req-grid > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.req-grid > div:last-child { border-bottom: 0; padding-bottom: 0; }
.req-grid dt { color: var(--muted); margin: 0; }
.req-grid dd { margin: 0; text-align: right; font-weight: 600; }
.req-desc { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.req-verify { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 14px;
  background: var(--surface); color: var(--ink); font-weight: 500;
}
.related a:hover { border-color: var(--brand); text-decoration: none; }

footer.site { border-top: 1px solid var(--line); margin-top: 40px; background: var(--surface); }
footer.site .wrap { padding: 24px 16px; color: var(--muted); font-size: 13px; }
footer.site .disclaimer { margin-top: 8px; }
footer.site .legal-links { margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 14px; }
footer.site .legal-links a { color: var(--muted); }

/* Ad slot, labelled, spaced away from controls (AdSense placement policy) */
.ad-slot { margin: 26px 0; min-height: 0; text-align: center; }
.ad-slot .ad-label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: .7; margin-bottom: 4px; }
.ad-slot ins { display: block; }
/* Installed-app (PWA/TWA) mode: never show ads or the cookie banner, even once
   AdSense is enabled on the web. Paired with guards in consent.js. */
.pwa-app .ad-slot, .pwa-app .consent { display: none !important; }

/* Long-form content for E-E-A-T / AdSense "value" requirement */
section.prose { margin: 30px 0; }
section.prose h2 { font-size: 21px; margin: 0 0 10px; }
section.prose h3 { font-size: 16px; margin: 18px 0 6px; }
section.prose p, section.prose li { color: var(--muted); }
section.prose ul { padding-left: 20px; }

/* Legal / content pages */
.doc { max-width: 760px; }
.doc h1 { margin-bottom: 6px; }
.doc .updated { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.doc h2 { font-size: 19px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc a { word-break: break-word; }

/* Guide articles */
.guide .lead { color: var(--muted); margin-bottom: 8px; }
.guide ol, .guide ul { padding-left: 22px; }
.guide li { margin: 6px 0; }
.guide .related { margin-top: 10px; }
.guide .faq { margin-top: 10px; }
.g-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.g-table th, .g-table td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; }
.g-table th { background: var(--bg); font-weight: 700; }
.g-table td:first-child { font-weight: 600; }

/* ---------- PDF tools ---------- */
.pdf-tools { grid-template-columns: 1fr; }
.pdf-card .drop { margin-bottom: 4px; }
.pdf-list-wrap:not(:empty) { margin: 14px 0 4px; }
.pdf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pdf-item { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.pdf-thumb { width: 44px; height: 44px; flex: none; border-radius: 6px; object-fit: cover; background: var(--surface); border: 1px solid var(--line); }
.pdf-thumb.pdf-doc { display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .03em; color: var(--brand); }
.pdf-item-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pdf-item-meta strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf-item-meta span { font-size: 12px; color: var(--muted); }
.pdf-item-ctrls { display: flex; gap: 4px; flex: none; }
.icon-btn { width: 30px; height: 30px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; cursor: pointer; font-size: 14px; line-height: 1; font-family: inherit; }
.icon-btn:hover:not(:disabled) { border-color: var(--brand); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.danger:hover { border-color: var(--err-ink); color: var(--err-ink); }
.pdf-chosen { margin: 12px 0 2px; }
.pdf-chosen-name { display: inline-block; font-size: 13.5px; font-weight: 600; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-opt-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 2px; }
.pdf-opt { flex: 1 1 200px; }
.pdf-opt label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 600; }
.pdf-opt select, .pdf-opt input { font: inherit; font-size: 14px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); }
.pdf-opt select:focus, .pdf-opt input:focus { outline: none; border-color: var(--brand); }
.pdf-actions { display: flex; gap: 10px; margin-top: 14px; }
.pdf-actions .btn { width: auto; flex: 1; }
.pdf-actions .btn.ghost { flex: 0 0 auto; }
.btn:disabled { opacity: .5; cursor: default; }
.pdf-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 14px; }
.pdf-page { display: flex; flex-direction: column; gap: 6px; }
.pdf-page img { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.pdf-page .btn.ghost { width: 100%; margin: 0; font-size: 12.5px; padding: 7px 8px; border: 1px solid var(--line); }
.meta .pill.ok { font-weight: 700; }

/* Consent banner */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9999;
  max-width: 880px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.25);
  padding: 14px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.consent-text { font-size: 13px; color: var(--ink); flex: 1 1 320px; }
.consent-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.consent-actions .btn { width: auto; padding: 9px 14px; font-size: 13px; }
.consent-accept { background: var(--brand); color: var(--brand-ink); }
@media (max-width: 520px) { .consent-actions { width: 100%; } .consent-actions .btn { flex: 1; } }

/* custom KB target row (Image Resizer in KB) */
.kb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; }
.kb-row label { font-weight: 600; font-size: 14px; }
.kb-row input, .kb-row select {
  font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 8px 10px;
}
.kb-row input { width: 110px; }
.kb-row input:focus, .kb-row select:focus { border-color: var(--brand); outline: none; }
.kb-row.bad input { border-color: var(--err-ink); }
.kb-hint { flex-basis: 100%; font-size: 12.5px; color: var(--muted); }
.cm-row input { width: 84px; }
.cm-row select { min-width: 64px; }
.cm-row .opt { font-weight: 400; color: var(--muted); font-size: 12px; }
.g-wrap { overflow-x: auto; }

/* ==== R SOCIAL IDENTITY (7 Nov 2026, portfolio strategy audit A2/A10): Exam Image Kit, a browser-based file
   preparation workspace. White and teal application look, dark teal header band, square-ish controls, wider canvas.
   Replaces the previous blue identity. ==== */
:root { --bg: #FFFFFF; --surface: #ffffff; --ink: #111827; --muted: #4B5563; --line: #D7E3E1; --brand: #0F766E; --brand-ink: #ffffff;
  --ok-bg: #ECFDF8; --radius: 8px; --shadow: 0 1px 0 rgba(17,24,39,.04); }
.wrap { max-width: 1080px; }
header.site { background: #115E59; border-bottom: 0; }
header.site .logo, header.site .logo span { color: #ffffff; }
header.site nav.top a { color: #CCFBF1; }
header.site nav.top a:hover { color: #ffffff; }
.hero { padding: 32px 0 8px; border-bottom: 1px solid var(--line); }
h1 { letter-spacing: -.03em; }
.card { border-top: 4px solid #0F766E; box-shadow: none; }
.trust span { border-radius: 6px; background: #ECFDF8; border-color: transparent; color: #111827; }
/* ==== END R SOCIAL IDENTITY ==== */

/* ==== One upload, several outputs (workspace) ==== */
.multi { margin: 24px 0 8px; padding: 20px; }
.multi h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.02em; }
.multi-lead { color: var(--muted); font-size: 15px; margin: 0 0 14px; max-width: 70ch; }
.multi-step { margin: 18px 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); }
.multi-drop { margin-bottom: 8px; }
.multi-file { font-size: 13.5px; color: var(--muted); padding: 6px 2px; }
.multi-file.hidden { display: none; }
.multi-file.err { background: var(--err-bg); color: var(--err-ink); border-radius: 8px; padding: 8px 10px; }
.multi-search { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); margin-bottom: 10px; }
.multi-search:focus { outline: none; border-color: var(--brand); }
.multi-list { border: 1px solid var(--line); border-radius: 8px; max-height: 360px; overflow: auto; }
.multi-group { border-bottom: 1px solid var(--line); }
.multi-group:last-child { border-bottom: 0; }
.multi-group > summary { cursor: pointer; padding: 10px 12px; font-weight: 700; font-size: 14.5px; background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.multi-count { font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 6px; }
.multi-items { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (max-width: 680px) { .multi-items { grid-template-columns: 1fr; } }
.multi-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; cursor: pointer; border-top: 1px solid var(--line); }
.multi-item:hover { background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.multi-item input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: 0 0 auto; }
.multi-item-text { display: flex; flex-direction: column; font-size: 14px; }
.multi-item-text small { color: var(--muted); font-size: 12px; }
.multi-custom { margin-top: 14px; }
.multi-custom h4 { margin: 0 0 2px; font-size: 15px; }
.multi-hint { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.multi-custom-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; padding: 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.multi-custom-row label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 3px; }
.multi-custom-row input, .multi-custom-row select { font: inherit; font-size: 14px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); width: 110px; }
.multi-custom-row .cu-label { width: 140px; }
.multi-custom-row select { width: 150px; }
.multi-custom-row .btn { width: auto; margin: 0; padding: 7px 12px; }
.multi-custom > .btn { width: auto; margin-top: 2px; padding: 8px 14px; border: 1px solid var(--line); }
.multi-run { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.multi-run .btn { width: auto; padding: 12px 22px; }
.multi-run-note { color: var(--muted); font-size: 13.5px; }
.multi-run-note.bad { color: var(--err-ink); }
.multi-summary { margin: 14px 0 4px; font-weight: 600; font-size: 14.5px; color: var(--ok-ink); }
.multi-summary.bad { color: var(--warn-ink); }
.multi-results { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
@media (max-width: 760px) { .multi-results { grid-template-columns: 1fr; } }
.mo-card { display: flex; gap: 12px; border: 1px solid var(--line); border-left: 4px solid var(--ok-ink); border-radius: 8px; padding: 12px; background: var(--surface); }
.mo-card.bad { border-left-color: var(--err-ink); }
.mo-card.working-card { border-left-color: var(--line); }
.mo-thumb { flex: 0 0 96px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; padding: 4px; max-height: 130px; }
.mo-thumb img { max-width: 100%; max-height: 120px; border-radius: 4px; }
.mo-body { flex: 1; min-width: 0; }
.mo-body h3 { margin: 0 0 6px; font-size: 15px; }
.mo-body .meta { margin: 6px 0 8px; }
.mo-body .btn { width: auto; display: inline-block; padding: 9px 16px; margin: 4px 0 0; }
.mo-body .btn.ghost { border: 1px solid var(--line); }
.pill.bad { background: var(--err-bg); color: var(--err-ink); border-color: transparent; font-weight: 700; }
/* ==== END workspace ==== */

/* ==== DESIGN PASS 17 Nov 2026: "the measuring desk". Space Grotesk for headings and every number, Figtree for
   reading text; paper, deep teal and a marigold measuring accent; crop marks, dimension lines and KB bands drawn
   from the specs (build/visuals.mjs). Overrides the identity block above. ==== */
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url(/assets/fonts/space-grotesk-500.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(/assets/fonts/space-grotesk-700.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url(/assets/fonts/figtree-400.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url(/assets/fonts/figtree-600.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url(/assets/fonts/figtree-700.woff2) format("woff2"); }
:root {
  --bg: #F5F3EC; --surface: #FFFFFF; --ink: #11201E; --muted: #4C5A57; --line: #DCD8CC; --line-2: #C9C3B4;
  --brand: #0B5E57; --brand-deep: #0B3B37; --brand-ink: #FFFFFF; --accent: #E9B23A; --accent-ink: #7A4E00;
  --soft: #E6EEEC; --fig: #B9CDC9; --grid: rgba(11, 94, 87, .07);
  --ok-bg: #E5F4EA; --ok-ink: #12663A; --radius: 6px; --shadow: 0 1px 0 rgba(17, 32, 30, .05);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Space Grotesk", "Figtree", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1615; --surface: #142120; --ink: #E7EEEC; --muted: #A5B4B1; --line: #263533; --line-2: #34504C;
    --brand: #5CC2B4; --brand-deep: #08201E; --brand-ink: #062320; --accent: #E9B23A; --accent-ink: #F0C668;
    --soft: #1B2D2B; --fig: #2F4A46; --grid: rgba(92, 194, 180, .06); --ok-bg: #11301d; --ok-ink: #6FD49A;
  }
}
html, body { overflow-x: clip; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 16.5px; }
h1, h2, h3, h4, .logo-word, .tab, .multi-step, .spec-badge, .kb-big, .g-no, .foot-name { font-family: var(--display); }
h1 { font-weight: 700; font-size: clamp(26px, 4.6vw, 40px); line-height: 1.08; letter-spacing: -.025em; max-width: 22ch; }
h2, section.content h2, section.prose h2 { font-weight: 700; letter-spacing: -.02em; font-size: 23px; }
h3 { font-weight: 700; letter-spacing: -.01em; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, .drop:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; padding: 0 20px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

/* header */
header.site { background: var(--brand-deep); border: 0; }
header.site .wrap { height: 62px; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.lm-crop { fill: none; stroke: var(--accent); stroke-width: 2.4; }
.lm-paper { fill: #F5F3EC; }
.lm-fig { fill: #0B5E57; }
header.site .logo-word { color: #F5F3EC; font-size: 19px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
header.site nav.top { display: flex; gap: 4px; }
header.site nav.top a { color: #CFE3DF; font-weight: 600; font-size: 14.5px; margin: 0; padding: 8px 10px; border-radius: 4px; white-space: nowrap; }
header.site nav.top a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
@media (max-width: 760px) {
  header.site .wrap { height: auto; flex-wrap: wrap; padding-top: 10px; gap: 4px; }
  header.site nav.top { width: calc(100% + 20px); overflow-x: auto; scrollbar-width: none; margin: 0 -10px; padding: 0 0 4px; }
  header.site nav.top::-webkit-scrollbar { display: none; }
  header.site nav.top a { font-size: 14px; padding: 7px 10px; }
}

/* hero with the cutting-mat grid */
.hero { position: relative; padding: 30px 0 22px; border-bottom: 0; }
.hero::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 18px 18px; border-bottom: 1px solid var(--line); }
main.wrap { position: relative; z-index: 0; }
.crumb { font-size: 13.5px; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.5; max-width: 62ch; }
@media (max-width: 520px) { .hero { padding: 20px 0 16px; } .lead { font-size: 16.5px; } }
.facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink); font-weight: 600; }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.ico { width: 17px; height: 17px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 520px) { .facts { font-size: 13px; gap: 4px 14px; } }

/* home hero figure */
.hero-home { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px; align-items: center; }
.hero-fig { margin: 0; }
.fan-fig { width: 100%; height: auto; display: block; }
.hero-fig figcaption { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.f-src { fill: var(--soft); }
.f-fig { fill: var(--fig); }
.f-srcline { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.f-wire { fill: none; stroke: var(--accent); stroke-width: 1.8; }
.f-out { fill: var(--surface); stroke: var(--brand); stroke-width: 1.8; }
.f-name { font: 700 14px var(--display); fill: var(--ink); }
.f-spec { font: 500 12.5px var(--display); fill: var(--muted); }
.f-cap { font: 600 12.5px var(--font); fill: var(--muted); }
@media (max-width: 900px) { .hero-home { grid-template-columns: 1fr; } .hero-fig { display: none; } }

/* tool cards and the workspace */
.card, .multi { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.multi::before, .multi::after { content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--accent); pointer-events: none; }
.multi::before { top: -7px; left: -7px; border-top-width: 3px; border-left-width: 3px; }
.multi::after { bottom: -7px; right: -7px; border-bottom-width: 3px; border-right-width: 3px; }
.card { border-top: 3px solid var(--brand); }
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.set-fig .v-lab { font-size: 14px; } .set-fig .v-num { font-size: 13px; } .set-fig .v-cap { font-size: 12.5px; }
.hero-spec { margin: 0; width: 400px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hero-spec svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } .hero-spec { display: none; } }
.card-head h3 { font-size: 19px; }
.spec-badge { font-weight: 500; font-size: 12.5px; color: var(--ink); background: var(--bg); border: 0; border-radius: 4px; padding: 5px 9px; font-variant-numeric: tabular-nums; }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--radius); background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 14px 14px; padding: 24px 16px; }
.drop:hover, .drop:focus, .drop.over { border-color: var(--brand); border-style: solid; background-color: color-mix(in srgb, var(--brand) 6%, var(--bg)); }
.drop-icon { border-radius: 8px; width: 42px; height: 42px; background: var(--brand); }
.drop-text strong { font-size: 16px; }
.btn { border-radius: var(--radius); font-weight: 700; }
.btn.download { background: var(--brand); color: var(--brand-ink); }
.btn.download:hover { background: var(--brand-deep); filter: none; }
.pill { border-radius: 4px; font-variant-numeric: tabular-nums; }
.multi { padding: 22px; }
.multi h2 { font-size: 23px; }
.multi-step { color: var(--accent-ink); font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.multi-group > summary { background: var(--bg); }
.multi-item input { accent-color: var(--brand); }
.tab { border-radius: 4px !important; }
.tab.active { background: var(--brand-deep) !important; border-color: var(--brand-deep) !important; color: #fff !important; }

/* spec sheet with drawn figures */
.req-card { border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.req-card h3 { font-size: 17px; margin-bottom: 8px; }
.req-body { display: grid; gap: 10px 18px; }
.spec-fig { width: 100%; max-width: 300px; height: auto; display: block; }
.req-grid dd { font-family: var(--display); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (min-width: 1000px) { .req-cards .req-card:only-child .req-body { grid-template-columns: 300px 1fr; align-items: center; } }
.v-paper { fill: var(--surface); }
.v-frame { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.v-crop { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.v-fig { fill: var(--fig); }
.v-ink { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.v-ink.thin { stroke-width: 1.3; }
.v-base { stroke: var(--line-2); stroke-width: 1.3; }
.v-dim { stroke: var(--muted); stroke-width: 1; }
.v-arrow { fill: none; stroke: var(--muted); stroke-width: 1.2; }
.v-num { font: 500 11.5px var(--display); fill: var(--ink); }
.v-fmt { font: 700 11px var(--display); fill: var(--brand); letter-spacing: .04em; }
.v-rule { stroke: var(--line-2); stroke-width: 1.2; }
.v-tick { stroke: var(--line-2); stroke-width: 1.2; }
.v-win { fill: var(--accent); opacity: .9; }
.v-lab { font: 700 11px var(--display); fill: var(--ink); }
.v-cap { font: 500 11px var(--font); fill: var(--muted); }
.req-card .spec-fig { background: var(--bg); border-radius: 4px; }

/* preset, PDF and guide cards */
.related-card.preset, .pdfhub-grid .related-card.preset, .guides-grid .related-card.guide-card, .pdfhub-grid .related-card.kb-card {
  flex-direction: row; align-items: center; gap: 14px; border-radius: var(--radius); box-shadow: none; padding: 12px 14px; }
.related-card:hover { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.pc-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pc-text strong { font-size: 15.5px; }
.pc-text > span { font-size: 13px; color: var(--muted); }
.pdfhub-grid .related-card .pc-text, .guides-grid .related-card .pc-text { font-size: inherit; color: var(--ink); }
.pc-text .pc-spec { font-family: var(--display); font-weight: 500; color: var(--brand); font-variant-numeric: tabular-nums; font-size: 13px; }
.glyph { width: 40px; height: 40px; flex: none; background: var(--bg); border-radius: 4px; }
.g-frame { fill: var(--surface); stroke: var(--brand); stroke-width: 1.8; }
.g-back { fill: var(--soft); stroke: var(--line-2); stroke-width: 1.4; }
.g-track { fill: var(--line); }
.g-fill { fill: var(--accent); }
.g-dot { fill: var(--brand); }
.g-line { fill: none; stroke: var(--accent-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.g-line.dash { stroke-dasharray: 3 3; }
.home-grid, .pdfhub-grid { gap: 10px !important; }
.pdfhub-grid .related-card .kb-big, .kb-big { font-weight: 700; font-size: 30px; line-height: 1; color: var(--brand); min-width: 66px; font-variant-numeric: tabular-nums; }
.pdfhub-grid .related-card .kb-big small, .kb-big small { font-size: 13px; margin-left: 2px; color: var(--muted); }
.guides-grid .related-card .g-no, .g-no { font-weight: 700; font-size: 28px; color: var(--accent-ink); min-width: 40px; }
.cat-group h3 { font-size: 15px !important; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line) !important; }

/* related links and FAQ */
.related { gap: 8px; }
.related a { border-radius: 4px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.related a::after { content: "\2192"; color: var(--accent-ink); font-weight: 700; }
.faq details { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 0 2px; margin: 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 16.5px; padding: 14px 30px 14px 0; position: relative; }
.faq summary::after { position: absolute; right: 2px; top: 12px; float: none; width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; font-size: 15px; line-height: 1; color: var(--brand); }
section.prose { max-width: 760px; }
section.prose p, section.prose li { color: var(--ink); opacity: .86; }
.doc .updated, .updated { font-family: var(--display); font-weight: 500; }
.g-table th { background: var(--soft); }

/* footer */
footer.site { background: var(--brand-deep); color: #CFE3DF; border: 0; margin-top: 56px; }
footer.site .wrap { color: #CFE3DF; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; padding: 34px 20px 20px !important; }
.foot-name { font-size: 18px; font-weight: 700; color: #F5F3EC; margin: 0 0 6px; }
.foot-brand p { margin: 0 0 8px; font-size: 13.5px; }
.foot-h { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.foot-col { display: flex; flex-direction: column; gap: 6px; }
.foot-col a { color: #F5F3EC; font-size: 14px; }
.foot-copy { border-top: 1px solid rgba(255, 255, 255, .12); padding: 14px 20px 22px !important; font-size: 12.5px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
/* ==== END DESIGN PASS ==== */

/* ==== DESIGN PASS round 1 changes (consultant R1, 17 Nov 2026) ==== */
h1 { text-wrap: balance; }
.hero-home { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
:root { --grid: rgba(11, 94, 87, .045); }
body.doc-page .hero::before { background-image: none; }
.v-guide { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 3; }
.v-face { fill: none; stroke: var(--brand); stroke-width: 1.8; }
.hero-spec { width: 440px; }
.card { border-top: 1px solid var(--line); }
.card-head { flex-direction: column; align-items: flex-start; gap: 4px; }
.card-head .spec-badge { background: none; padding: 0; text-align: left; font-size: 13.5px; line-height: 1.4; color: var(--brand); }
.drop-guide { width: 44px; height: 44px; flex: none; background: var(--brand); border-radius: 8px; }
.drop-guide rect { fill: none; stroke: #F5F3EC; stroke-width: 1.6; stroke-dasharray: 3 2; }
.drop-guide path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
body.tool .multi::before, body.tool .multi::after { display: none; }
body.tool .multi { background: var(--bg); border-style: dashed; border-color: var(--line-2); }
body.tool .multi h2 { font-size: 20px; }
.multi-run-note { color: var(--ink); font-weight: 600; }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; color: #F5F3EC; font-weight: 700; font-size: 14.5px; padding: 8px 12px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 4px; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: rgba(255, 255, 255, .1); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; background: var(--brand-deep); border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius); padding: 6px; display: flex; flex-direction: column; min-width: 190px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.menu-panel a { color: #F5F3EC; padding: 11px 12px; font-weight: 600; border-radius: 4px; }
.menu-panel a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
@media (max-width: 760px) {
  header.site .wrap { height: 56px; flex-wrap: nowrap; padding-top: 0; }
  header.site nav.top { display: none; }
  .nav-menu { display: block; }
  .lead { font-size: 15.5px; line-height: 1.45; margin-bottom: 0; }
  .facts { margin-top: 10px; }
}
.related-card.primary { grid-column: 1 / -1; padding: 16px 18px; border-color: var(--brand); }
.related-card.primary .glyph { width: 52px; height: 52px; }
.related-card.primary strong { font-size: 18px; }
.kb-strip { width: 100%; max-width: 200px; height: 12px; margin-top: 6px; }
.kb-strip line { stroke: var(--line-2); stroke-width: 1.2; }
.kb-strip line.t { stroke: var(--line-2); }
.kb-strip rect { fill: var(--accent); }
.shared .share-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.share-row { display: grid; grid-template-columns: 40px minmax(160px, 220px) 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.share-spec { display: flex; flex-direction: column; }
.share-spec strong { font-family: var(--display); font-size: 15.5px; }
.share-spec span { font-family: var(--display); font-weight: 500; font-size: 13.5px; color: var(--brand); font-variant-numeric: tabular-nums; }
.share-forms { display: flex; flex-wrap: wrap; gap: 6px; }
.share-forms a { font-size: 13.5px; font-weight: 600; padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); }
.share-forms a:hover { border-color: var(--brand); text-decoration: none; }
@media (max-width: 640px) { .share-row { grid-template-columns: 40px 1fr; } .share-forms { grid-column: 1 / -1; } }
/* ==== END round 1 ==== */

/* Gemini R1 points taken */
.hero::before { -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%); mask-image: linear-gradient(to bottom, #000 30%, transparent 100%); }
@media (min-width: 680px) and (max-width: 999px) { .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (min-width: 1000px) { .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
.drop.over { border: 2px dashed var(--accent) !important; }
.pdfhub-grid .related-card .kb-big, .kb-big { font-size: 34px; color: var(--brand-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kb-big { color: var(--brand); } }

/* ==== round 2 changes (ChatGPT R2, 17 Nov 2026) ==== */
.f-name { font-size: 16px; } .f-spec { font-size: 14px; }
.v-guide { stroke: var(--muted); opacity: .55; }
.v-face { stroke-width: 2; }
body:not(.tool) .multi { margin-top: 32px; }
.hero-spec { width: 460px; }
body.tool .multi { padding: 16px 18px; }
h1 + .lead, h1 + p.lead { margin-top: 12px; }
.cat-group { margin: 16px 0 !important; }
.kb-strip line { stroke: var(--muted); stroke-width: 1.4; }
.kb-strip rect { height: 7px; }
@media (min-width: 900px) {
  .pdfhub-grid.general { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  .pdfhub-grid.general > a { grid-column: span 2; }
  .pdfhub-grid.general > a.primary { grid-column: 1 / -1; }
  .pdfhub-grid.general > a:nth-last-child(-n+2) { grid-column: span 3; }
}
/* ==== END round 2 ==== */

.tab-status { font-family: var(--display); font-weight: 500; font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.pdf-chosen-name .ico { vertical-align: -3px; }

/* final review (18 Nov 2026): the extra-sizes workspace on tool pages is collapsed by default and visually secondary;
   the home preset tabs wrap on phones instead of running off the edge */
.multi-more{margin:18px 0 8px;border:1px dashed var(--line-2);border-radius:var(--radius);background:var(--bg)}
.multi-more > summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 16px;font:700 16px var(--display);color:var(--ink)}
.multi-more > summary::-webkit-details-marker{display:none}
.multi-more > summary::before{content:"+";display:grid;place-items:center;width:24px;height:24px;flex:none;border:1.5px solid var(--line-2);border-radius:50%;color:var(--brand);font:600 16px/1 var(--font)}
.multi-more[open] > summary::before{content:"2"}
.multi-more > summary:hover{color:var(--brand)}
.multi-more > .multi{margin:0;border:0;border-top:1px dashed var(--line-2);border-radius:0 0 var(--radius) var(--radius);background:none}
.multi-more > .multi > h2{display:none}
@media (max-width:640px){.tab-bar{flex-wrap:wrap;overflow:visible !important}.tab{flex:0 1 auto}}
