/* design: v2 */
/* campingairconditioner.com, design v2 A, "Blue hour at camp" (design/home-v2-A.png, James's pick on 2 Dec 2026). A
   Blender render of a desert campsite at blue hour fills the hero with the question set in its sky; the tool is a sand
   console across the render's foot; each answer is a night bar from 9 pm to 7 am with the battery's hours filled in mint
   and the maker's claim marked in clay. Big Shoulders Display for headings, Source Sans 3 for text (both OFL,
   self-hosted). The board's navy #0B2E5B moved to #0c2a78 and its sand #E8E1D5 to #e4d6c4, to stay clear of
   doglongevitypills.com's blue and desktopco2laser.com's stone (packages/site-kit/tests/distinct-designs.test.ts).
   Light surfaces in dark mode too (color-scheme: light), so every pair is checked once, by tests/design.test.ts. */

@font-face { font-family: "Big Shoulders Display"; src: url("/fonts/big-shoulders-display.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --brand: #0c2a78;        /* blue hour: the header, the footer, the headings */
  --night: #081d52;        /* the footer, a shade deeper */
  --mint: #9ee7b6;         /* the battery's hours, the button */
  --mint-pale: #cfeedb;    /* the rest of the range */
  --amber: #f7b347;        /* lantern light: small marks */
  --clay: #b55234;         /* red rock: the maker's claim marker */
  --ink: #14203a;
  --bg: #e4d6c4;           /* desert sand: the page */
  --card: #f7f2ea;         /* the console, the answer rows, the tables */
  --track: #e9dfd2;        /* the night bar's empty track */
  --text: #14203a;
  --muted: #474c58;
  --line: #c4b29a;
  --link: #0c2a78;
  --claim: #8e3b22;        /* the claim's words, on the card */
  --on-brand: #ffffff;
  --on-brand-muted: #d6def2;
  --on-brand-link: #9ee7b6;
  --btn: #9ee7b6;
  --btn-hover: #b8efc9;
  --btn-text: #0c2a78;
  --np: #8a4a00;
  --good: #145a36;
  --bad: #9c2a1c;
  --radius: 12px;
  color-scheme: light;
}

body { background: var(--bg); color: var(--text); font-family: "Source Sans 3", system-ui, sans-serif; font-size: 18px; line-height: 1.55; }
h1, h2, h3, .wordmark, .btn, .bar-text, .total strong { font-family: "Big Shoulders Display", "Arial Narrow", sans-serif; }
h1, h2, h3 { color: var(--brand); font-weight: 800; letter-spacing: 0; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 1; }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.05; margin: 1.6em 0 0.45em; }
h3 { font-size: 1.7rem; line-height: 1.05; }
a { color: var(--link); text-underline-offset: 3px; }
.wrap { max-width: 1200px; padding: 0 20px; }
.np { color: var(--np); font-weight: 600; }
.note, .source, .other-line, .status, .claim, .sum, .spec, .night-words { color: var(--muted); font-size: 0.95rem; }
.claim { font-style: italic; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header: one blue-hour bar, the mesa mark and the wordmark */
.site-header { background: var(--brand); border-bottom: 0; }
.site-header .brand { color: var(--on-brand); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { color: #2f5e3a; flex: none; }
.site-header .brand .mark { color: #ffffff; }
.wordmark { font-weight: 800; font-size: 1.75rem; line-height: 1; }
.main-nav { gap: 4px 30px; font-size: 1.02rem; font-weight: 600; }
.site-header .main-nav a { color: var(--on-brand); }
.main-nav a[aria-current="page"], .main-nav a:hover { color: var(--on-brand); text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.site-header .menu-btn { color: var(--on-brand); border-color: rgba(255, 255, 255, 0.55); background: transparent; }
.site-header.menu-open .main-nav a { border-top-color: rgba(255, 255, 255, 0.2); }

/* buttons */
.btn { background: var(--btn); color: var(--btn-text); border: 0; border-radius: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: 0.01em; padding: 0.55rem 1.2rem; cursor: pointer; }
.btn:hover { background: var(--btn-hover); color: var(--btn-text); }
.share-btn { background: var(--card); color: var(--brand); border: 2px solid var(--brand); font-size: 1.1rem; padding: 0.3rem 1rem; }
.share-btn:hover { background: var(--brand); color: var(--on-brand); }
.share { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; }
.share-box { display: block; width: 100%; margin-top: 0.4rem; font: inherit; }

/* ---------- home: the hero render, its sky holding the question ---------- */
.hero { position: relative; background: var(--brand); }
.hero-img img { display: block; width: 100%; height: clamp(560px, 50vw, 760px); object-fit: cover; object-position: 50% 72%; }
/* a deeper sky behind the words, so white text never sits on the tent's glowing tip (root rule 4) */
.hero-img { display: block; position: relative; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 29, 82, 0.5) 0%, rgba(8, 29, 82, 0.38) 38%, rgba(8, 29, 82, 0) 58%); pointer-events: none; }
.hero-text { position: absolute; inset: 0 0 auto 0; text-align: center; padding-top: clamp(28px, 4vw, 56px); }
.hero-text h1 { color: #ffffff; max-width: 15.5em; margin: 0 auto 0.3em; text-shadow: 0 2px 18px rgba(4, 14, 44, 0.55); }
.hero-text .lede { color: #ffffff; font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 44rem; margin: 0 auto; text-shadow: 0 1px 10px rgba(4, 14, 44, 0.7); }

/* ---------- the tool: a console across the render's foot ---------- */
.console-wrap { position: relative; z-index: 2; margin-top: -96px; }
.console-inner { margin-top: 0; }
.runtime-form { background: var(--card); border-radius: 16px; padding: 16px 18px 12px; box-shadow: 0 18px 40px rgba(8, 20, 50, 0.32), 0 2px 6px rgba(8, 20, 50, 0.2); }
.console-row, .console-more { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; }
.console-more { margin-top: 12px; }
.console-more:has(details:only-child) { margin-top: 6px; }
.runtime-form .f { flex: 1 1 96px; min-width: 0; }
.runtime-form .f-wide { flex: 1.2 1 120px; }
.runtime-form .f:has(.pair) { flex: 1.1 1 136px; }
.runtime-form .console-row .if-n { flex: 0 0 82px; }
.runtime-form .console-row .f:first-child { flex: 1.15 1 132px; }
.runtime-form label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--brand); margin: 0 0 4px; line-height: 1.2; }
.runtime-form select, .runtime-form input[type="number"] { font: inherit; font-size: 1rem; width: 100%; height: 46px; padding: 0 10px; border: 1.5px solid #ad9b80; border-radius: 9px; background: #ffffff; color: var(--ink); }
@media (min-width: 641px) { .runtime-form .console-row select, .runtime-form .console-row input[type="number"] { font-size: 0.95rem; padding: 0 8px; } }
.runtime-form .pair { display: flex; gap: 6px; }
.runtime-form .pair input { flex: 1 1 4rem; min-width: 0; }
.runtime-form .pair select { flex: 0 0 3.9rem; padding: 0 4px; }
.runtime-form .go { flex: 0 1 150px; min-height: 64px; font-size: 1.4rem; line-height: 1; border-radius: 12px; }
.runtime-form .loss { flex: 1 1 100%; font-size: 0.95rem; color: var(--muted); }
.runtime-form .loss summary { cursor: pointer; }
.runtime-form .loss input { width: 6rem; }
.market-hint { color: var(--on-brand); background: var(--brand); border-radius: 10px; padding: 0.5rem 0.85rem; margin: 0 0 10px; font-size: 0.95rem; }
/* only the chosen power source's own fields; a browser without :has shows them all */
@supports selector(:has(a)) {
  .if-station, .if-hookup, .if-solar { display: none; }
  .runtime-form:has(#src option[value="station"]:checked) .if-station,
  .runtime-form:has(#src option[value="hookup"]:checked) .if-hookup,
  .runtime-form:has(#src option[value="solar"]:checked) .if-solar { display: block; }
  .runtime-form:has(#src option[value="station"]:checked) .if-n,
  .runtime-form:has(#src option[value="hookup"]:checked) .if-n { display: none; }
  .runtime-form:not(:has(#station option[value="other"]:checked)) .if-other { display: none; }
}

/* ---------- the answer: one row a unit, a night bar in the middle ---------- */
.home-body { padding-bottom: 40px; }
.runtime-answer { margin-top: 34px; }
.answer-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; }
.answer-head h2 { margin: 0; }
.answer-intro { max-width: 60rem; color: var(--muted); font-size: 0.98rem; }
.sold-in { font-size: 1.35rem; margin: 1rem 0 0.6rem; }
.answers { display: grid; gap: 14px; }
.answer { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 10px 22px; grid-template-columns: minmax(0, 1fr); }
.answer p { margin: 0.35rem 0; }
.a-unit { display: flex; align-items: center; gap: 14px; }
.a-unit img { width: 110px; height: auto; border-radius: 10px; flex: none; }
.a-unit h3 { margin: 0; font-size: 1.9rem; }
.a-unit h3 a { color: var(--brand); text-decoration: none; }
.a-unit h3 a:hover { text-decoration: underline; }
.a-kit .total { font-size: 1rem; line-height: 1.3; margin-top: 0; }
.a-kit .total strong { display: block; font-size: 2.6rem; line-height: 1; color: var(--brand); font-weight: 800; margin-top: 4px; }
.a-kit .parts { margin: 0.3rem 0; padding-left: 1.1rem; font-size: 0.95rem; }
.a-kit .shop { font-weight: 700; }
.a-more { border-top: 1px dashed var(--line); padding-top: 4px; }
.hours-yes { color: var(--good); }
.hours-yes strong { color: var(--brand); }
.fit-no { color: var(--bad); font-weight: 600; }
.not-sold { color: var(--muted); }
@media (min-width: 900px) {
  .answer { grid-template-columns: 220px minmax(0, 1fr) 250px; }
  .a-unit { flex-direction: column; align-items: flex-start; border-right: 1px solid var(--line); padding-right: 18px; }
  .a-unit img { width: 100%; }
  .a-kit { border-left: 1px solid var(--line); padding-left: 20px; }
  .a-more { grid-column: 2 / -1; }
}

/* the night bar, 9 pm to 7 am */
.night { margin: 4px 0 8px; padding: 0 22px 0 4px; }
.ticks { position: relative; list-style: none; margin: 0 0 4px; padding: 0; height: 1.3em; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.ticks li { position: absolute; left: calc(var(--i) * 10%); transform: translateX(-50%); white-space: nowrap; }
.ticks li:first-child { transform: none; }
.bar { position: relative; height: 46px; border-radius: 9px; border: 1px solid var(--line); margin-bottom: 1.7em; background: var(--track); }
/* solid mint to the low end of the sum, pale mint on to the high end */
.bar .fill { position: absolute; inset: 0; border-radius: 8px;
  background: linear-gradient(90deg, var(--mint) 0, var(--mint) var(--lo), var(--mint-pale) var(--lo), var(--mint-pale) var(--hi), transparent var(--hi)); }
.bar-text { position: relative; z-index: 1; display: block; line-height: 46px; padding-left: 14px; font-weight: 800; font-size: 1.4rem; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.night.none .bar { background: repeating-linear-gradient(135deg, var(--track) 0 10px, #e0d4c4 10px 20px); }
.night.none .bar-text { font-size: 1.15rem; }
.claim-mark { position: absolute; top: -5px; bottom: -5px; left: var(--at); border-left: 3px solid var(--clay); }
.claim-mark span { position: absolute; top: calc(100% + 2px); left: 6px; white-space: nowrap; font-size: 0.85rem; font-style: italic; color: var(--claim); }
.claim-mark.late span { left: auto; right: 6px; }
.night-words { margin-top: 0; }

/* ---------- home, below the answer ---------- */
.pair-sections { display: grid; gap: 10px 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .pair-sections { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.ways { padding-left: 0; list-style: none; }
.ways li { position: relative; padding-left: 26px; margin: 0.45rem 0; }
.ways li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 11px; height: 11px; border-radius: 50%; background: #2c8a55; }
.ways-art { display: block; width: 100%; max-width: 420px; height: auto; border-radius: var(--radius); margin-top: 10px; }
.sum-band { display: grid; gap: 10px 34px; align-items: center; margin-top: 30px; background: var(--card); border-radius: var(--radius); padding: 20px; }
.sum-band h2 { margin-top: 0; }
.band-art { width: 100%; height: auto; border-radius: 10px; }
@media (min-width: 900px) { .sum-band { grid-template-columns: 320px minmax(0, 1fr); padding: 24px 28px; } }
.faq { max-width: 60rem; }
.faqs details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faqs summary { font-weight: 700; color: var(--brand); font-size: 1.1rem; }
.left-out { max-width: 60rem; }

/* ---------- tables: navy heads, card rows ---------- */
.table-scroll { border-radius: 10px; }
table { background: var(--card); border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 0.98rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 0.92rem; border-bottom: 0; }
thead th a { color: var(--on-brand); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; }
thead th .np { color: var(--amber); }
.versus thead th { vertical-align: bottom; font-family: "Big Shoulders Display", sans-serif; font-size: 1.4rem; }
.vs-render { display: block; width: 160px; height: auto; border-radius: 8px; margin-bottom: 6px; }

/* ---------- inner pages: a sand head with its spot render, wide reading column ---------- */
.article-wrap { padding-top: 30px; }
.page-head { border-bottom: 3px solid var(--brand); padding-bottom: 14px; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.page-head .lede { font-size: 1.2rem; }
.page-head-art { width: clamp(120px, 26vw, 300px); }
.page-head-art img { border-radius: var(--radius); box-shadow: 0 10px 24px rgba(8, 20, 50, 0.25); }
.byline { color: var(--muted); }
.toc { background: var(--card); border-color: var(--line); }
.toc-title { font-family: "Big Shoulders Display", sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--brand); }
.page-body .runtime-answer { margin-top: 20px; }
@media (max-width: 640px) {
  .page-head.has-art { flex-direction: column-reverse; align-items: flex-start; }
  .page-head-art { width: 100%; max-width: 360px; }
}

/* ---------- footer: the deeper night ---------- */
.site-footer { background: var(--night); color: var(--on-brand-muted); border-top: 0; margin-top: 50px; }
.site-footer a { color: var(--on-brand); }
.site-footer .footer-brand .brand { color: var(--on-brand); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.site-footer .footer-brand .brand .mark { color: #ffffff; }
.footer-col h2 { color: var(--mint); font-family: "Source Sans 3", sans-serif; font-weight: 700; }
.footer-note { color: var(--on-brand); }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wordmark { font-size: 1.32rem; }
  .site-header .brand { gap: 7px; }
  .site-header .brand .mark { width: 38px; height: auto; }
  .hero-img img { height: 600px; object-position: 50% 75%; }
  .hero-text { padding-top: 22px; }
  .hero-text h1 { font-size: 2.45rem; }
  .console-wrap { margin-top: -70px; padding: 0 12px; }
  .runtime-form { padding: 14px; }
  .runtime-form .f, .runtime-form .f-wide, .runtime-form .f:has(.pair), .runtime-form .console-row .if-n { flex: 1 1 45%; }
  .runtime-form .go { flex-basis: 100%; min-height: 56px; }
  .ticks li.odd { display: none; }
  .bar-text { font-size: 1.2rem; }
  .night.none .bar-text { font-size: 1rem; }
  .a-kit .total strong { font-size: 2.2rem; }
}
