/* design: v2 */
/* campervanelectrics.com, board A "The build sheet" (design/home-v2-A.png, James's pick on 2 Dec 2026): a build
   feature in a van conversion magazine. Racing green behind the hero and every page head (warm white text on it),
   off-black ink on pale sage panels, cable red, a signal yellow like a cable marker. Sofia Sans Condensed for headings,
   Literata for text. The same light page in dark mode: the design is the printed sheet. */

@font-face { font-family: "Sofia Sans Condensed"; src: url(/fonts/sofia-sans-condensed.woff2) format("woff2"); font-weight: 500 900; font-display: swap; }
@font-face { font-family: "Literata"; src: url(/fonts/literata.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url(/fonts/literata-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --brand: #335c30;
  --brand-deep: #0c2c23;
  --bg: #def0eb;
  --text: #17231f;
  --muted: #45544d;
  --line: #b9c8bd;
  --card: #f3f6f1;
  --link: #0f5a43;
  --red: #b94436;
  --yellow: #edce57;
  --sage: #dee7dc;
  --warm: #f4f1e6;
  --np: #8a3a12;
  --yes: #1f6b4c;
  --no: #a3372b;
  --head: "Sofia Sans Condensed", "Arial Narrow", sans-serif;
  --body: "Literata", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #def0eb; --text: #17231f; --muted: #45544d; --line: #b9c8bd; --card: #f3f6f1; --link: #0f5a43;
    color-scheme: light;
  }
}

body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 18px; line-height: 1.6; }
h1, h2, h3, .sheet-title, .results-title, .main-nav, .wordmark, .btn, legend, .total strong, .footer-col h2 { font-family: var(--head); }
h1 { font-weight: 850; letter-spacing: -0.01em; line-height: 1.02; }
h2 { font-weight: 800; font-size: 1.9rem; line-height: 1.1; letter-spacing: -0.005em; }
h3 { font-weight: 750; font-size: 1.3rem; line-height: 1.15; }
a { color: var(--link); }
.wrap.wide { max-width: 1240px; padding-left: 24px; padding-right: 24px; }

/* the masthead: green, the wordmark in the condensed face, the menu in warm white */
.site-header { background: var(--brand); border-bottom: 0; }
.site-header .brand, .site-header .main-nav a { color: var(--warm); }
.brand { gap: 10px; }
.brand .logo-mark { width: 36px; height: 29px; flex: none; }
.wordmark { font-size: 1.65rem; font-weight: 800; letter-spacing: 0; }
.main-nav { font-size: 1.15rem; font-weight: 650; gap: 4px 28px; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: var(--yellow); }
.site-header .menu-btn { color: var(--warm); border-color: rgba(244, 241, 230, 0.6); font-family: var(--head); }
@media (min-width: 761px) { .site-header .wrap { max-width: 1240px; padding-left: 24px; padding-right: 24px; } }
@media (max-width: 760px) { .has-menu.menu-open .main-nav a { border-top-color: rgba(244, 241, 230, 0.25); } }

/* ---------- home: the hero ---------- */
.hero { background: var(--brand); color: var(--warm); padding: 18px 0 40px; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); letter-spacing: -0.015em; margin: 0 0 14px; color: var(--warm); }
.hero-left { min-width: 0; }
.key { counter-reset: key; list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px 22px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); font-size: 0.98rem; line-height: 1.45; }
.key li { counter-increment: key; position: relative; padding-left: 34px; border-top: 1px solid rgba(244, 241, 230, 0.35); padding-top: 8px; }
.key li::before { content: counter(key); position: absolute; left: 0; top: 9px; width: 22px; height: 22px; background: var(--yellow); color: var(--text); font-family: var(--head); font-weight: 800; text-align: center; line-height: 22px; border-radius: 2px; }
.key strong { font-family: var(--head); font-size: 1.12rem; font-weight: 750; }
.hero .lede { color: var(--warm); font-size: 1.15rem; max-width: 62rem; margin: 0 0 22px; }
.hero-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.cutaway { margin: 0; }
.cutaway-svg { width: 100%; height: auto; display: block; }
.cutaway figcaption { color: var(--warm); font-size: 0.92rem; opacity: 0.92; margin-top: 6px; max-width: 46rem; font-style: italic; }

/* the checker as a spec sheet: pale sage, fine rules, a yellow button */
.sheet { background: var(--sage); color: var(--text); padding: 14px 18px 6px; border-top: 5px solid var(--yellow); }
.sheet-title { font-size: 1.75rem; font-weight: 800; margin: 0 0 4px; padding-bottom: 6px; border-bottom: 2px solid var(--text); }
.sheet .fit-form { background: transparent; border: 0; padding: 0; margin: 0; }
.fit-form { background: var(--sage); border: 1px solid var(--line); padding: 14px 18px; margin: 1.2rem 0; border-radius: 0; }
.fit-form fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.fit-form legend { font-weight: 800; font-size: 1.25rem; padding: 6px 0 2px; }
.fit-form .row { display: grid; gap: 4px 12px; grid-template-columns: minmax(0, 1fr); font-size: 0.98rem; }
@media (min-width: 520px) { .fit-form .row { grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); align-items: center; } .fit-form .row > label { border-bottom: 1px solid var(--line); padding: 4px 0; line-height: 1.3; } }
.fit-form .row select { font-size: 0.9rem; }
.load-table td:first-child { line-height: 1.3; }
.load-table td .note { font-size: 0.8rem; margin-left: 2px; }
.load-table .each { display: block; font-size: 0.78rem; line-height: 1.1; }
.load-table .qty { display: inline-block; margin-top: 2px; }
.fit-form select, .fit-form input[type="number"] { font: inherit; font-size: 0.98rem; padding: 4px 6px; border: 1px solid #8fa197; border-radius: 2px; background: #fbfcf9; color: var(--text); max-width: 100%; }
.fit-form input[type="number"] { width: 5.2rem; }
.fit-form .row select { width: 100%; }
.fit-form .qty { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.fit-form .qty input { width: 3.6rem; }
.fit-form .hint { font-size: 0.88rem; margin: 0 0 6px; }
.load-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.load-table th { background: transparent; font-family: var(--head); font-size: 1rem; font-weight: 750; border-bottom: 2px solid var(--text); padding: 3px 4px; }
.load-table td { padding: 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.load-table input[type="checkbox"] { accent-color: var(--brand); width: 1.05rem; height: 1.05rem; vertical-align: -2px; }
.load-table input[type="number"] { width: 3.9rem; padding: 2px 5px; }
.load-table td { padding: 3px 4px; }
.fit-form .btn, .btn { background: var(--yellow); color: var(--text); font-weight: 800; font-size: 1.3rem; border-radius: 2px; padding: 9px 22px; border: 2px solid var(--text); }
.fit-form .btn { width: 100%; }
.btn:hover, .fit-form .btn:hover { background: #f5dc74; color: var(--text); }
.loss { font-size: 0.92rem; margin: 6px 0 10px; }
.loss summary { cursor: pointer; color: var(--muted); }
.hint, .note, .each, .guess, .source, .us-line, .status, .electrician { color: var(--muted); font-size: 0.92rem; }
.guess { font-style: italic; }
.np { color: var(--np); font-weight: 600; }

/* ---------- the answer: a magazine results table ---------- */
.home-body { padding-top: 28px; padding-bottom: 48px; }
.answer-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; border-bottom: 3px solid var(--text); padding-bottom: 6px; }
.answer-head h2 { margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.answer-head .share { margin: 0; }
.share .btn, .share-btn { font-size: 1.05rem; padding: 5px 16px; }
.share-link { font-size: 0.92rem; margin: 0 8px; }
.results-title { font-size: 1.15rem; font-weight: 700; margin: 12px 0 0; color: var(--muted); }
.results { position: relative; margin: 4px 0 14px; }
.answers { list-style: none; margin: 0; padding: 0; }
.answer { display: grid; gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid #93a69a; grid-template-columns: minmax(0, 1fr); }
.answer h3 { margin: 0; font-size: 1.3rem; }
.answer h3 a { color: var(--text); text-decoration: none; }
.answer h3 a:hover { text-decoration: underline; }
.answer .note { margin: 2px 0 0; }
.answer-says p { margin: 0 0 4px; font-size: 0.98rem; }
.answer .missing { margin: 0 0 4px; padding-left: 1.1rem; font-size: 0.92rem; }
.answer .still { margin: 0; font-size: 0.92rem; font-weight: 600; }
.fit { font-weight: 400; }
.fit strong { font-weight: 700; }
.fit-yes { color: var(--text); }
.fit-no { color: var(--no); }
.answer-price .total { margin: 0; }
.total strong { font-size: 1.9rem; font-weight: 850; line-height: 1; }
.was { color: var(--muted); font-size: 0.92rem; display: block; }
.answer-price .source { margin: 2px 0 0; font-size: 0.8rem; line-height: 1.35; }

/* the days bar against the line at the days asked for (--ask on .results) */
.scale { display: none; }
.bar { position: relative; height: 26px; align-self: center; margin: 8px 0 6px; }
.bar::before { content: ""; position: absolute; inset: 6px 0; background: #cfdacf; }
.bar-none::before { display: none; }
.bar-fill { position: absolute; left: 0; top: 3px; bottom: 3px; width: var(--w); background: var(--brand); }
.bar-no .bar-fill { background: var(--red); }
.bar-days { position: absolute; top: 0; left: calc(var(--w) + 6px); font-family: var(--head); font-weight: 750; font-size: 1.05rem; line-height: 26px; white-space: nowrap; }
.bar-in .bar-days { left: auto; right: calc(100% - var(--w) + 6px); color: var(--warm); }
.bar-over .bar-fill::after { content: ""; position: absolute; right: -9px; top: -4px; border: 10px solid transparent; border-left: 10px solid var(--brand); border-right: 0; }
.bar::after { content: ""; position: absolute; top: -2px; bottom: -2px; left: var(--ask); border-left: 2px dashed var(--text); }
.bar-none::after { display: none; }
@media (min-width: 900px) {
  /* four columns: the kit, what it says, the days bar, the price; the scale and the dashed line sit over the bars */
  .answer, .results .scale { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 19rem) minmax(0, 12.5rem); column-gap: 22px; }
  .answer { align-items: center; }
  .results .scale { display: grid; height: 40px; }
  .scale-axis { position: relative; }
  .tick { position: absolute; bottom: 0; transform: translateX(-50%); font-family: var(--head); font-size: 0.95rem; color: var(--muted); line-height: 1.2; }
  .scale-ask { position: absolute; left: var(--ask); top: 0; transform: translateX(-50%); background: var(--yellow); color: var(--text); font-family: var(--head); font-weight: 800; font-size: 0.92rem; padding: 0 6px; white-space: nowrap; line-height: 1.35; }
  .bar { margin: 0; }
  .bar::after { top: -14px; bottom: -14px; }
}
.electrician { font-size: 1rem; color: var(--text); border-left: 5px solid var(--yellow); padding: 4px 0 4px 12px; margin: 14px 0; }
.workings { background: var(--card); border: 1px solid var(--line); padding: 8px 14px; margin: 14px 0; }
.workings summary { cursor: pointer; font-family: var(--head); font-weight: 750; font-size: 1.15rem; }
.workings p { font-size: 0.95rem; }

/* ---------- tables: fine rules, a highlighted row ---------- */
table { font-size: 0.95rem; }
th { background: transparent; }
table.need-table, table.kits, table.specs, table.yield { width: 100%; border-collapse: collapse; margin: 0.5rem 0; background: var(--card); }
table.kits thead th, table.need-table thead th, table.specs thead th, table.yield thead th { font-family: var(--head); font-size: 1.05rem; font-weight: 800; border-bottom: 2px solid var(--text); background: #cfdccf; }
table.need-table th, table.need-table td, table.kits th, table.kits td, table.specs th, table.specs td,
table.yield th, table.yield td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.kits tbody th { font-weight: 600; }
table.kits tr.pick th, table.kits tr.pick td { background: #f3df8a; }
.pick-note { font-size: 0.92rem; margin: 4px 0; }
.marker { display: inline-block; width: 0.9em; height: 0.9em; background: #f3df8a; border: 1px solid var(--text); vertical-align: -1px; margin-right: 6px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; border-bottom: 3px solid var(--text); margin-top: 40px; }
.section-head h2 { margin: 0 0 4px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { margin: 0; font-size: 0.98rem; }
.table-scroll { overflow-x: auto; }

/* the parts, drawn */
.parts-strip { margin-top: 40px; }
.parts-strip h2 { border-bottom: 3px solid var(--text); padding-bottom: 4px; }
.parts-strip ul { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.parts-strip li a { display: block; background: var(--warm); border: 1px solid var(--line); padding: 10px 12px; text-decoration: none; color: var(--text); text-align: center; }
.parts-strip li a:hover { border-color: var(--text); }
.parts-strip svg { width: 100%; max-width: 170px; height: auto; display: block; margin: 0 auto 4px; }
.parts-strip span { font-family: var(--head); font-weight: 750; font-size: 1.15rem; }
.left-out h2 { border-bottom: 3px solid var(--text); padding-bottom: 4px; margin-top: 40px; }

/* ---------- inner pages: the head on green, like the board's phone page ---------- */
.article-wrap { padding-top: 0; }
.crumbs { background: var(--brand); box-shadow: 0 0 0 100vmax var(--brand); clip-path: inset(0 -100vmax); color: var(--warm); margin: 0; padding: 12px 0 0; }
.crumbs a, .crumbs { color: var(--warm); }
.page-head { background: var(--brand); box-shadow: 0 0 0 100vmax var(--brand); clip-path: inset(0 -100vmax); color: var(--warm); padding: 14px 0 22px; margin-bottom: 26px; max-width: none; }
.page-head h1 { color: var(--warm); font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 0.15em; }
.page-head .lede, .page-head .byline, .page-head .byline a { color: var(--warm); }
.page-head .byline { opacity: 0.9; margin-bottom: 0; }
.page-head-art { width: clamp(110px, 20vw, 210px); background: var(--warm); padding: 8px 10px; }
.page-body h2 { border-bottom: 2px solid var(--text); padding-bottom: 3px; }
.toc { background: var(--card); border-color: var(--line); border-radius: 0; }
.toc-title { font-family: var(--head); font-size: 1.1rem; }
.price-big strong { font-family: var(--head); font-size: 2.8rem; font-weight: 850; line-height: 1; }
.weekend { background: var(--yellow); color: var(--text); padding: 4px 16px 6px; margin: 1.4em 0; }
.weekend h2 { border-bottom-color: var(--text); margin-top: 0.6em; }
.weekend a { color: var(--text); }
.in-box { list-style: none; padding: 0; margin: 0.4rem 0; display: grid; gap: 0.15rem; }
.in-box li { padding-left: 1.1rem; position: relative; }
.in-box li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5rem; height: 0.5rem; background: var(--text); }
.in-box .no { color: var(--no); }
.in-box .no::before { background: var(--red); }
.page-fit .page-body { max-width: none; }
.page-fit .article-wrap, .page-fit .site-header .wrap { max-width: 1240px; }

/* ---------- footer: green again ---------- */
.site-footer { background: var(--brand); color: var(--warm); border-top: 0; }
.site-footer a, .site-footer p, .site-footer h2, .site-footer .brand { color: var(--warm); }
.site-footer .footer-note { font-weight: 600; }

.share { margin-top: 1.25rem; }
.share-box { display: block; width: 100%; margin-top: 0.4rem; font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
