/* Newcastle Solar Store ("ember"): Look B base, warm stone greys with orange #f97316, Chivo + Chivo Mono.
   A catalogue-first shop: dark header with a department strip, dense two-up product grid on phones, filter chips,
   and an orange-topped basket card. Orange is a fill colour (dark text on it); orange text uses --acc-t for contrast.
   Phone first: 16px gutters, 44px+ tap targets, bottom tab bar. */
:root {
  --ink: #1c1917; --text: #44403c; --muted: #57534e; --line: #e7e5e4; --soft: #f5f5f4; --softer: #fafaf9;
  --tint: #fff1e6; --acc: #f97316; --acc-d: #ea580c; --acc-t: #c2410c; --acc-tt: #9a3412;
  --blue: var(--acc-t); --blue-d: var(--acc-tt);
  --ok: #067647; --bad: #b42318; --bad-t: #fef3f2; --warn-t: #fef3c7; --warn-ink: #78350f;
  --r-xl: 14px; --r-l: 12px; --r-m: 10px; --r-s: 8px;
  --sans: "Chivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Chivo Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gut: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55;
  overflow-x: hidden; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--acc-t); text-underline-offset: 2px; }
a:hover { color: var(--acc-tt); }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; color: var(--ink); letter-spacing: -0.015em; }
h1 { font-size: clamp(28px, 7.6vw, 44px); line-height: 1.08; font-weight: 900; }
h2, .h2like { font-size: clamp(21px, 5.4vw, 28px); line-height: 1.2; font-weight: 800; margin-bottom: 12px; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 700; margin: 20px 0 8px; }
p { margin: 0 0 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 80; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }
.wrap--text { max-width: 760px; }
.muted, .hint { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }
.center { text-align: center; }
.lead { color: var(--muted); font-size: 16.5px; max-width: 640px; }
.ico { flex: none; vertical-align: middle; }

/* closed-checkout ribbon */
.ribbon { background: var(--acc); }
.ribbon .kit-closed-note { max-width: 1180px; margin: 0 auto; padding: 8px var(--gut); font-size: 13px; font-weight: 700; color: var(--ink); }

/* header: dark bar + department strip */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--ink); color: #fff; }
.hdr__in { display: flex; align-items: center; gap: 8px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; color: #fff; margin-right: auto; }
.brand:hover { color: #fff; }
.brand__word { font-weight: 900; font-size: 18px; letter-spacing: -0.3px; }
.brand__word span { color: var(--acc); }
.hdr__acts { display: flex; gap: 6px; align-items: center; }
.iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px;
  border-radius: 8px; border: 1px solid #44403c; background: transparent; color: #fff; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 14px; }
.iconbtn:hover { color: var(--ink); background: var(--acc); border-color: var(--acc); }
.iconbtn__lbl { display: none; }
@media (min-width: 420px) { .iconbtn__lbl { display: inline; } }
.iconbtn .count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--acc); color: var(--ink); font: 500 12px/20px var(--mono); text-align: center; }
.dept { background: #292524; border-top: 1px solid #44403c; }
.dept__in { list-style: none; display: flex; gap: 4px; margin: 0 auto; padding-top: 0; padding-bottom: 0; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; }
.dept__in::-webkit-scrollbar { display: none; }
.dept li { flex: none; }
.dept a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: #e7e5e4; text-decoration: none; font-weight: 700; font-size: 14px;
  border-bottom: 3px solid transparent; white-space: nowrap; }
.dept a:hover { color: #fff; }
.dept a[aria-current="page"] { color: #fff; border-bottom-color: var(--acc); }
.dept li:first-child a { padding-left: 0; }

/* tags, chips + buttons */
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; background: var(--soft); color: var(--text);
  font: 500 11.5px/1.6 var(--mono); letter-spacing: .01em; white-space: nowrap; }
.tag--ground { background: #f0fdf4; color: #166534; }
.tag--hybrid { background: var(--tint); color: var(--acc-tt); }
.tag--warn { background: var(--warn-t); color: var(--warn-ink); }
.tag--soon { background: var(--ink); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 6px; background: var(--tint); color: var(--acc-tt);
  font-weight: 700; font-size: 13px; line-height: 1.3; margin: 0; }
.chip--grey { background: var(--soft); color: var(--ink); font-size: 12.5px; font-weight: 500; padding: 5px 10px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 20px; border-radius: var(--r-m);
  border: 1px solid transparent; font: 800 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center; }
.btn--blue { background: var(--acc); color: var(--ink); }
.btn--blue:hover { background: var(--acc-d); color: var(--ink); }
.btn--ink, .btn--dark { background: var(--ink); color: #fff; }
.btn--ink:hover, .btn--dark:hover { background: #44403c; color: #fff; }
.btn--line { background: #fff; color: var(--ink); border-color: #d6d3d1; }
.btn--line:hover { border-color: var(--ink); color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--pill { border-radius: var(--r-m); }
.btn--wide { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 14px 0 0; }
.links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* sections */
.sec { padding: 22px 0; }
.sec--cats + .sec--flush { padding-top: 0; }
.sec--soft { background: var(--soft); padding: 28px 0; margin-top: 12px; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.sechead h2, .sechead .h2like { margin-bottom: 8px; }
.sechead__more { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.panel { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 18px; background: #fff; }
.panel--soft { background: var(--soft); border-color: var(--soft); }
.panel--tint { background: var(--tint); border-color: #fed7aa; }
.panel > :last-child { margin-bottom: 0; }
.panel__btn { margin: 16px 0 0; }
.panel__btn .btn { width: 100%; }
.eyebrow { margin: 0 0 6px; font: 500 12.5px/1.4 var(--mono); color: var(--acc-t); text-transform: uppercase; letter-spacing: .06em; }
.stamp { display: inline-block; margin: 6px 0 0; font: 400 12.5px/1.4 var(--mono); color: var(--muted); }

/* page hero */
.phero { padding: 6px 0 4px; }
.phero h1 { margin-top: 4px; font-size: clamp(28px, 7vw, 40px); }
.phero__intro { margin-top: 10px; font-size: 16.5px; color: var(--muted); }
.phero--legal h1 { font-size: clamp(26px, 6.6vw, 36px); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 6px; margin: 0; padding: 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #a8a29e; }
.crumbs li { display: inline-flex; align-items: center; min-height: 40px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

/* home: shop banner */
.shero { padding: 14px 0 6px; }
.shero__grid { display: grid; gap: 16px; }
.shero__media { aspect-ratio: 16 / 9; border-radius: var(--r-xl); }
.shero__eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; font: 500 12.5px/1.4 var(--mono); text-transform: uppercase;
  letter-spacing: .06em; color: var(--acc-t); }
.shero h1 { max-width: 18ch; }
.shero__stat { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 14px 0 0; padding: 9px 14px; border-radius: var(--r-m);
  background: var(--ink); color: #fff; }
.shero__stat b { font-weight: 900; font-size: 17px; color: var(--acc); }
.shero__stat span { font-size: 13px; color: #d6d3d1; }
.shero__intro { margin-top: 12px; font-size: 16.5px; color: var(--muted); max-width: 540px; }
.shero__intro p { margin: 0; }
.shero .btnrow .btn { flex: 1 1 160px; }
.usp { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; }
.usp li { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-m); font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.usp .ico { color: var(--acc-t); }
.usp b { display: block; color: var(--ink); font-size: 14px; }
@media (min-width: 900px) {
  .shero { padding-top: 26px; }
  .shero__grid { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 40px; }
  .shero__media { order: 2; }
  .shero .btnrow .btn { flex: 0 0 auto; }
  .usp li { flex-direction: row; align-items: center; gap: 10px; font-size: 14px; padding: 12px 14px; }
  .usp b { display: inline; }
}
.hnote { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); max-width: 720px; }
.hnote a { color: inherit; }

/* category tiles */
.cats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 6px 0 0; padding: 0; }
.cat__in { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 112px; padding: 14px; border-radius: var(--r-l);
  background: var(--soft); color: var(--ink); text-decoration: none; border: 1px solid var(--soft); }
a.cat__in:hover { border-color: var(--ink); color: var(--ink); }
.cat__ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: var(--acc); color: var(--ink); margin-bottom: 4px; }
.cat__t { font-weight: 800; font-size: 15.5px; line-height: 1.25; }
.cat__x { font-size: 13px; color: var(--muted); line-height: 1.35; }
.cat__n { position: absolute; top: 12px; right: 12px; font: 500 12px/1 var(--mono); color: var(--muted); }
.cat .tag--soon { position: absolute; top: 12px; right: 10px; }
.cat--soon .cat__in { background: #fff; border: 1px dashed #d6d3d1; }
.cat--soon .cat__ico { background: var(--soft); color: var(--muted); }
@media (min-width: 860px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }

/* product grid: two-up on phones */
.kgrid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .kgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1040px) { .kgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: #fff; min-width: 0; }
.kcard[hidden] { display: none; }
.kcard:hover { border-color: #a8a29e; }
.kcard__media { display: block; background: var(--soft); }
.kcard__body { display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 12px; flex: 1; }
.kcard__mount { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 2px; }
.kcard__name { margin: 0; font-size: 16px; font-weight: 800; }
.kcard__name a { display: flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; }
.kcard__spec { margin: 0; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.kcard__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 8px 0 10px; }
.kcard__price { margin: 0; font-weight: 900; font-size: 17px; }
.kcard .kit-stock { margin: 0; }
.kcard .btn { margin-top: auto; min-height: 44px; font-size: 14.5px; padding: 10px 12px; }
.kgrid--small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kgrid--small .kcard__name { font-size: 15px; }
.kgrid--small .kcard .kit-list { display: none; }
@media (min-width: 860px) { .kgrid--small { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 560px) { .kcard__body { padding: 12px 14px 14px; } }

/* kit finder filter bar */
.finder__bar { display: grid; gap: 10px; margin: 6px 0 12px; padding: 12px; border-radius: var(--r-l); background: var(--soft); }
.finder__bar[hidden] { display: none; }
.seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend { display: flex; align-items: center; gap: 6px; padding: 0; margin-bottom: 6px; font-weight: 800; font-size: 13.5px; color: var(--ink); }
.seg legend .ico { color: var(--acc-t); }
.seg__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.seg__opts::-webkit-scrollbar { display: none; }
.seg label { flex: none; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid #d6d3d1;
  font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--ink); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--acc); outline-offset: 2px; }
.finder__count { margin: 0 0 8px; font: 500 13px/1.4 var(--mono); color: var(--muted); }
@media (min-width: 860px) { .finder__bar { grid-template-columns: auto auto auto; justify-content: start; gap: 18px 28px; padding: 14px 16px; } }

/* text content */
.wrap--text p, .wrap--text li { color: var(--text); }
.list { margin: 0 0 14px; padding-left: 22px; }
.list li { margin: 4px 0; }
.list--num li::marker { font-family: var(--mono); color: var(--acc-t); }
.checks { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 9px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.checks .ico { color: var(--acc-t); margin-top: 2px; stroke-width: 2.6; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: var(--r-l); background: var(--tint); font-size: 15px; margin: 14px 0; }
.note .ico { color: var(--acc-t); margin-top: 1px; }
.contactline { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 700; }
.contactline .ico { color: var(--acc-t); }

/* tables */
.tscroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-l); margin: 8px 0 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.tbl thead th { background: var(--ink); font-size: 13px; color: #fff; font-weight: 700; }
.tbl tbody th { font-weight: 700; color: var(--ink); }
.tbl tbody tr:nth-child(even) { background: var(--softer); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.matrix { border-collapse: separate; border-spacing: 0; font-size: 14px; width: 100%; }
.matrix th, .matrix td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.matrix thead th { background: var(--ink); color: #fff; font-weight: 800; }
.matrix thead th a { color: #fff; text-decoration: none; display: flex; align-items: center; min-height: 44px; }
.matrix thead th span { display: block; font-weight: 400; font-size: 12px; color: #d6d3d1; }
.matrix tbody th { position: sticky; left: 0; background: #fff; font-weight: 700; color: var(--muted); font-size: 13px; min-width: 112px; box-shadow: 1px 0 0 var(--line); }
.matrix thead td { position: sticky; left: 0; background: var(--ink); box-shadow: 1px 0 0 #44403c; }
.matrix td { font-size: 14px; min-width: 140px; color: var(--ink); }
.matrix thead th { min-width: 140px; }
.matrix tbody tr:last-child > * { border-bottom: 0; }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; padding: 12px 2px;
  cursor: pointer; font-weight: 700; font-size: 15.5px; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ico { transition: transform .2s; color: var(--acc-t); }
.faq__item[open] summary .ico { transform: rotate(45deg); }
.faq__a { padding: 0 2px 12px; }
.faq__a p { font-size: 15px; }

/* steps */
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.steps li { display: flex; gap: 14px; padding: 13px 14px; background: var(--soft); border-radius: var(--r-l); }
.steps li > span:last-child { display: flex; flex-direction: column; }
.steps li b { color: var(--ink); }
.steps li span span { color: var(--muted); font-size: 15px; }
.steps__n { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px;
  background: var(--acc); color: var(--ink); font: 500 14px var(--mono); }

/* tiles (cards block) */
.tiles { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.tile { border: 1px solid var(--line); border-radius: var(--r-l); padding: 14px 16px; }
.tile h3 { margin-top: 6px; font-size: 16px; }
.tile p { margin: 0; font-size: 14.5px; color: var(--muted); }
.tile--soon { border-style: dashed; border-color: #d6d3d1; }

/* key-value rows */
.kv { margin: 0; border-top: 1px solid var(--line); }
.kv__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv__row dt { flex: 0 1 auto; color: var(--muted); font-size: 14px; min-width: 6.5em; }
.kv__row dd { flex: 0 1 auto; min-width: 0; margin: 0; font-family: var(--mono); font-weight: 500; text-align: right; overflow-wrap: break-word; }
.kv__row--total { border-bottom: 0; padding-top: 12px; }
.kv__row--total dt { color: var(--ink); font-weight: 800; font-size: 15px; }
.kv__row--total dd { font-size: 17px; }
.kv--tight .kv__row { padding: 8px 0; }

/* kit picker (kept for parity; not used on this site's pages) */
.picker { border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: #fff; }
.picker__media { background: var(--soft); }
.picker__body { padding: 18px; }
.picker__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.picker__title { margin: 0; font-weight: 800; font-size: 18px; }
.picker__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.opt { display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); background: #fff; }
.opt b { font-size: 14px; }
.opt span { font: 400 12px/1.35 var(--mono); color: var(--muted); }
.opt[aria-pressed="true"] { border: 2px solid var(--ink); background: var(--tint); padding: 8px 11px; }
.picker__small { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* stock labels + kit list form (shared kit pieces, restyled) */
.kit-stock { display: inline-flex; align-self: flex-start; padding: 2px 8px; border-radius: 4px; font: 500 11.5px/1.6 var(--mono); }
.kit-stock--waitlist { background: var(--tint); color: var(--acc-tt); }
.kit-stock--preorder { background: var(--warn-t); color: var(--warn-ink); }
.kit-list { margin: 14px 0 0; padding: 16px; border-radius: var(--r-l); background: var(--soft); }
.kit-list p { margin: 0; }
.kit-list__title { font-size: 17px; font-weight: 900; }
.kit-list__intro { font-size: 14px; color: var(--muted); }
.kit-list__field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.kit-list__field input { border: 1px solid #d6d3d1; border-radius: var(--r-m); background: #fff; font-family: var(--sans); color: var(--ink); }
.kit-list__field input:focus { border-color: var(--ink); outline: 3px solid #fed7aa; }
.kit-list__tick { font-size: 14px; }
.kit-list__tick input, .kit-terms input { accent-color: var(--acc-d); }
.kit-list__msg { color: var(--bad); font-size: 14px; }
.kit-list__btn { background: var(--acc); color: var(--ink); border: 0; border-radius: var(--r-m); font: 800 16px var(--sans); cursor: pointer; min-height: 50px; }
.kit-list__btn:hover { background: var(--acc-d); }
.kit-note { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.kit-closed { margin: 12px 0 0; font-weight: 700; }
.kit-terms { font-size: 14px; color: var(--text); }
.kit-thanks { margin: 16px 0 0; padding: 18px; border-radius: var(--r-l); background: var(--tint); }
.kit-thanks__title { font-size: 22px; font-weight: 900; }

/* product page */
.pdp { padding: 4px 0 8px; }
.pdp__top { display: grid; gap: 14px; margin-top: 2px; }
.pdp__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.pdp__head h1 { font-size: clamp(25px, 6.4vw, 36px); line-height: 1.12; }
.pdp__price { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 10px 0 0; }
.pdp__price b { font-size: 24px; font-weight: 900; }
.gal { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal::-webkit-scrollbar { display: none; }
.pdp__fig { margin: 0; scroll-snap-align: start; min-width: 0; }
.pdp__img { width: 100%; height: auto; aspect-ratio: 1200 / 897; object-fit: cover; background: var(--soft); border-radius: var(--r-xl); }
.pdp__fig--draw .pdp__img { object-fit: contain; }
.pdp__fig .kimg { border-radius: var(--r-xl); }
.pdp__fig figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
.pdp__sum { margin: 0; color: var(--text); font-size: 16px; }
.qf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; }
.qf div { padding: 10px; border-radius: var(--r-m); background: var(--soft); min-width: 0; }
.qf dt { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 700; }
.qf dt .ico { color: var(--acc-t); width: 16px; height: 16px; }
.qf dd { margin: 4px 0 0; font: 500 13.5px/1.3 var(--mono); color: var(--ink); }
.bcard { margin-top: 14px; border: 2px solid var(--ink); border-radius: var(--r-xl); overflow: hidden; background: #fff; }
.bcard__head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--acc); color: var(--ink); }
.bcard__title { margin: 0; font-weight: 900; font-size: 16px; margin-right: auto; }
.bcard__rule { font: 500 12px/1.3 var(--mono); }
.bcard__body { padding: 4px 14px 16px; }
.bcard__note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-m); background: var(--soft); font-size: 14px; }
.bcard__note .ico { margin-top: 2px; color: var(--acc-t); }
.bcard .kit-list { background: var(--softer); border: 1px solid var(--line); }
.addkit { margin-top: 12px; }
.addkit__msg { margin: 8px 0 0; font-size: 14px; font-weight: 700; }
@media (min-width: 900px) {
  .pdp__top { grid-template-columns: 1.1fr 1fr; grid-template-areas: "media head" "media info"; gap: 6px 36px; align-items: start; }
  .pdp__head { grid-area: head; }
  .pdp__media { grid-area: media; position: sticky; top: 120px; }
  .pdp__info { grid-area: info; }
  .gal { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
}
.jump { position: sticky; top: 102px; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); margin-top: 10px; }
.jump ul { list-style: none; display: flex; gap: 4px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.jump ul::-webkit-scrollbar { display: none; }
.jump li { flex: none; }
.jump a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 700; font-size: 13.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.jump li:first-child a { padding-left: 0; }
.jump a:hover { color: var(--ink); }
.sec--pdp { padding: 18px 0 8px; }
.sec--pdp h2 { font-size: 21px; padding-top: 4px; }
.boxlist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.boxlist li { display: flex; gap: 10px; font-size: 15px; color: var(--text); }
.boxlist .ico { color: var(--acc-t); margin-top: 3px; }
.specs { margin: 0; border-top: 2px solid var(--ink); font-size: 14px; }
.specs div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); font-family: var(--mono); font-size: 13px; }
.specs + .small { margin-top: 8px; }
.dispatch { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; padding: 12px 14px; border-radius: var(--r-m); background: var(--soft); }
.dispatch .ico { color: var(--acc-t); }

/* estimator */
.est__grid { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0 0 14px; min-width: 0; }
.field label, .field legend { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #d6d3d1; border-radius: var(--r-m);
  background: #fff; font: 400 16px/1.4 var(--sans); color: var(--ink); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid #fed7aa; }
.field input[type=number], #co-pc { font-family: var(--mono); }
.field--radios { border: 0; padding: 0; margin: 0 0 14px; }
.field--radios legend { margin-bottom: 6px; }
.radio { display: flex; gap: 10px; align-items: center; min-height: 48px; padding: 8px 12px; border: 1px solid #d6d3d1; border-radius: var(--r-m); margin-bottom: 8px; cursor: pointer; font-size: 15px; }
.radio input { width: 20px; height: 20px; accent-color: var(--acc-d); flex: none; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--tint); }
.est__adv { margin: 4px 0 0; }
.est__adv summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--acc-t); }
.est__adv[open] summary { margin-bottom: 8px; }
.est__card { border-radius: var(--r-xl); padding: 18px; background: var(--ink); color: #e7e5e4; }
.est__label { margin: 0; font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #d6d3d1; }
.est__big { margin: 4px 0 0; font-size: clamp(25px, 6.6vw, 34px); font-weight: 900; letter-spacing: -0.02em; color: var(--acc); }
.est__card .kv { border-top-color: #44403c; margin-top: 12px; }
.est__card .kv__row { border-bottom-color: #44403c; }
.est__card .kv__row dt { color: #d6d3d1; }
.est__card .kv__row dd { color: #fff; }
.est__assume { margin: 12px 0; font-size: 12.5px; color: #d6d3d1; }
.est__warn { padding: 12px; border-radius: var(--r-m); background: var(--warn-t); color: var(--warn-ink); font-size: 14px; font-weight: 700; }
.est__card .btn--line { background: transparent; color: #fff; border-color: #78716c; }
.est__card .btn + .btn { margin-top: 10px; }
.est--mini .est__grid { gap: 4px; }
@media (min-width: 860px) {
  .est:not(.est--mini) .est__grid { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  .est--mini .est__grid { grid-template-columns: 1fr 1.2fr; gap: 24px; }
  .est__out { position: sticky; top: 120px; }
}

/* forms + checkout */
.form .btn { margin-top: 4px; }
.form__msg { color: var(--bad); font-weight: 700; }
.inrow { display: flex; gap: 8px; }
.inrow input { flex: 1; min-width: 0; }
.inrow .btn { min-height: 48px; padding: 10px 18px; }
.co { display: grid; gap: 14px; }
.co__main { display: grid; gap: 14px; min-width: 0; }
.co__form { display: grid; gap: 14px; }
.co__h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 900; font-size: 18px; }
.co__n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; background: var(--acc); color: var(--ink); font: 500 14px var(--mono); }
.hint { font-size: 14px; margin: 0; }
.hint.is-ok { color: var(--ok); font-weight: 700; }
.hint.is-bad { color: var(--bad); font-weight: 700; }
.bline { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.bline:first-child { border-top: 0; padding-top: 0; }
.bline img { width: 72px; height: 54px; object-fit: cover; background: var(--soft); border-radius: 8px; }
.bline__name { margin: 0; font-weight: 800; font-size: 15px; }
.bline__name a { color: var(--ink); text-decoration: none; }
.bline__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-top: 4px; }
.bline__price { font-family: var(--mono); }
.bline__rm { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--bad); font: 700 14px var(--sans); cursor: pointer; text-decoration: underline; }
.bline .kit-stock { margin-top: 4px; }
.co__sum .kv { margin-top: 0; border-top: 0; }
.co__sum [data-sum-lines] .kv__row dt { color: var(--ink); }
.co__terms { margin: 10px 0 12px; padding: 12px; background: var(--soft); border-radius: var(--r-m); }
.co__terms a { font-weight: 700; }
.errors { margin: 0 0 12px; padding: 12px 14px; border-radius: var(--r-m); background: var(--bad-t); color: var(--bad); font-size: 14px; font-weight: 700; }
.errors ul { margin: 0; padding-left: 18px; }
.field.is-bad input { border-color: var(--bad); background: var(--bad-t); }
@media (min-width: 900px) {
  .co { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 24px; }
  .co__side { position: sticky; top: 120px; }
}

/* next box + thanks */
.nextbox { display: grid; gap: 4px; padding: 20px; border-radius: var(--r-xl); background: var(--ink); color: #fff; border-left: 6px solid var(--acc); }
.nextbox__t { margin: 0; font-weight: 900; font-size: 20px; color: #fff !important; }
.nextbox .btnrow { margin-top: 10px; }
.nextbox .btn--line { background: transparent; color: #fff; border-color: #78716c; }
.h1like { font-size: clamp(28px, 7.6vw, 42px); font-weight: 900; line-height: 1.1; margin: 0 0 10px; }
.thanks-alt p:not(.h1like) { color: var(--muted); font-size: 17px; }
[data-thanks-ref] { margin-top: 12px; font-family: var(--mono); }

/* legal: cancellation form */
.form-quote { margin: 12px 0; padding: 16px 18px; border-left: 4px solid var(--acc); background: var(--soft); border-radius: 0 var(--r-m) var(--r-m) 0; }
.form-quote p { font-size: 15px; overflow-wrap: anywhere; }
.tpl-legal .wrap--text h2 { font-size: clamp(19px, 5vw, 23px); margin-top: 8px; }
.tpl-legal code, .wrap--text code { font-family: var(--mono); font-size: 13px; }

/* lifestyle photos (AI-made, tagged "Illustrative image") */
.ph { position: relative; margin: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--soft); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph__tag { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 4px; background: rgba(28, 25, 23, .7);
  color: #fff; font: 400 11px/1.5 var(--mono); }
.phero__media { margin-top: 16px; aspect-ratio: 16 / 9; }

/* photo feature */
.pf { display: grid; gap: 16px; align-items: center; }
.pf__media { aspect-ratio: 4 / 3; }
.pf__body h2 { margin-top: 0; }
@media (min-width: 900px) {
  .pf { grid-template-columns: 1fr 1fr; gap: 44px; }
  .pf--flip .pf__media { order: 2; }
}

/* kit-list sign-up */
.joinbox { display: grid; gap: 16px; padding: 20px; border-radius: var(--r-xl); background: var(--ink); color: #e7e5e4; }
.joinbox h2 { color: #fff; }
.joinbox p, .joinbox li { color: #e7e5e4; }
.joinbox .checks .ico { color: var(--acc); }
.joinbox .kit-list { background: #fff; color: var(--ink); }
.joinbox .kit-list p { color: var(--ink); }
.joinbox .kit-list .kit-list__intro { color: var(--muted); }
@media (min-width: 900px) { .joinbox { grid-template-columns: 1fr 1fr; gap: 36px; padding: 32px; align-items: start; } }

/* kit photos (illustrative) */
.kimg { position: relative; display: block; overflow: hidden; border-radius: inherit; }
.kimg img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 897; object-fit: cover; }
.kimg__tag { position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(28, 25, 23, .7); color: #fff; font: 400 10.5px/1.5 var(--mono); }

/* footer */
.ftr { margin-top: 28px; padding: 0 0 32px; background: var(--ink); color: #d6d3d1; font-size: 14px; }
.ftr__usp { background: var(--acc); color: var(--ink); margin-bottom: 22px; }
.ftr__usp ul { list-style: none; display: grid; gap: 4px; margin: 0 auto; padding-top: 10px; padding-bottom: 10px; }
.ftr__usp li { display: flex; align-items: center; gap: 10px; min-height: 36px; font-weight: 800; font-size: 14px; }
@media (min-width: 860px) { .ftr__usp ul { grid-template-columns: repeat(3, 1fr); } }
.ftr a.ftr__brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 900; font-size: 19px; color: #fff; text-decoration: none; }
.ftr__brand span span { color: var(--acc); }
.ftr__tag { margin: 4px 0 18px; color: #d6d3d1; max-width: 460px; }
.ftr__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.ftr__col:first-child { grid-column: 1 / -1; }
.ftr__head { margin: 0 0 4px; font: 500 12px/1.4 var(--mono); color: var(--acc); text-transform: uppercase; letter-spacing: .08em; }
.ftr__col ul { list-style: none; margin: 0; padding: 0; }
.ftr__col:first-child ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.ftr a, .ftr__btn { display: flex; align-items: center; min-height: 44px; color: #d6d3d1; text-decoration: none; }
.ftr a:hover, .ftr__btn:hover { color: #fff; text-decoration: underline; }
.ftr__btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.ftr__rules { margin: 20px 0 6px; padding-top: 16px; border-top: 1px solid #44403c; color: #d6d3d1; }
.ftr__small { margin: 0; font-size: 13px; color: #a8a29e; }
@media (min-width: 860px) {
  .ftr__cols { grid-template-columns: 1.3fr 1fr 1fr; }
  .ftr__col:first-child { grid-column: auto; }
}

/* toast + consent */
.toast { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; max-width: 480px; margin: 0 auto; padding: 14px 16px; border-radius: var(--r-m);
  background: var(--ink); color: #fff; font-size: 15px; box-shadow: 0 12px 30px -10px rgba(28,25,23,.5); }
.toast a { color: var(--acc); font-weight: 700; }
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 75; max-width: 520px; margin: 0 auto; padding: 16px; border-radius: var(--r-xl);
  background: #fff; border: 2px solid var(--ink); box-shadow: 0 20px 40px -16px rgba(28,25,23,.45); }
.consent__title { margin: 0 0 6px; font-weight: 900; font-size: 17px; }
.consent p { font-size: 14px; color: var(--text); }
.consent__btns { display: flex; gap: 8px; }
.consent__btns .btn { flex: 1; min-height: 48px; }

/* app-style bottom tab bar (phones and small tablets) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--ink); border-top: 1px solid #44403c; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 10px;
  color: #d6d3d1; text-decoration: none; font-size: 11.5px; font-weight: 700; }
.tabbar a[aria-current="page"] { color: #fff; background: #44403c; }
.tabbar a[aria-current="page"] .ico { color: var(--acc); }
.tabbar .tabbar__cta { color: var(--ink); background: var(--acc); }
.tabbar a:active { transform: scale(.96); }
body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
.consent { bottom: calc(78px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .tabbar { display: none; }
  body { padding-bottom: 0; }
  .consent { bottom: 12px; }
}

@media (min-width: 860px) {
  :root { --gut: 24px; }
  .sec { padding: 30px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.wrap--text .kit-thanks__title, .wrap--text .h1like { color: var(--ink); }

/* Plug-in solar kit pieces (generator/partials/_kit.html). Appended to the theme CSS on kit sites only.
   Structure only, at zero specificity: colours, fonts and borders come from the theme, which can restyle any of it.
   Mobile first: fields fill the width, tap targets are 44px or more, long words wrap instead of scrolling sideways. */
:where(.kit-list, .kit-terms, .kit-note, .kit-stock, .kit-closed, .kit-closed-note, .kit-thanks) { box-sizing: border-box; max-width: 100%; overflow-wrap: anywhere; }
:where(.kit-list) { display: grid; gap: .75rem; margin: 1rem 0; min-width: 0; }
:where(.kit-list *, .kit-list *::before, .kit-list *::after) { box-sizing: border-box; }
:where(.kit-list__title, .kit-thanks__title) { margin: 0; font-weight: 700; }
:where(.kit-list__intro, .kit-list__msg) { margin: 0; }
:where(.kit-list__msg) { font-weight: 600; }
:where(.kit-list__field) { display: grid; gap: .3rem; min-width: 0; }
:where(.kit-list__field input) { width: 100%; max-width: 100%; min-height: 48px; padding: .6rem .75rem; font: inherit; font-size: max(16px, 1em); }
:where(.kit-list__tick, .kit-terms) { display: flex; gap: .65rem; align-items: flex-start; min-height: 44px; padding: .4rem 0; cursor: pointer; }
:where(.kit-list__tick input, .kit-terms input) { flex: none; width: 24px; height: 24px; margin: .1rem 0 0; }
:where(.kit-list__btn) { width: 100%; min-height: 48px; }
:where(.kit-hp) { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:where(.kit-stock) { display: inline-block; margin: .25rem 0; font-weight: 700; }
:where(.kit-opt) { font-weight: 400; opacity: .8; }
:where(.kit-thanks__lines) { padding-left: 1.2rem; }
@media (min-width: 40em) { :where(.kit-list__btn) { width: auto; justify-self: start; padding-inline: 1.5rem; } }
