/* Newcastle Solar Suppliers ("ledger"): a trade price-list look. Slate #334155, thin 1px rules, square corners,
   ruled tables that lead the money pages, numbered document sections. Archivo headings, Public Sans text,
   IBM Plex Mono for figures and labels. Phone first: 16px gutters, 44px+ tap targets, bottom tab bar. */
:root {
  --ink: #0f172a; --body: #1e293b; --muted: #5b6b80; --slate: #334155; --slate-d: #1e293b; --slate-dd: #111827;
  --rule: #cbd5e1; --rule-l: #e2e8f0; --paper: #f8fafc; --paper-2: #f1f5f9; --white: #fff;
  --sun: #fbbf24; --sun-t: #fef3c7; --sun-ink: #78350f;
  --ok: #166534; --ok-t: #dcfce7; --bad: #b42318; --bad-t: #fef3f2;
  --r: 2px;
  --head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gut: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--white); color: var(--body); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  overflow-x: hidden; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--slate); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: var(--sun); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
h1, h2, h3, .h1like, .h2like { margin: 0; color: var(--ink); font-family: var(--head); letter-spacing: -0.01em; }
h1, .h1like { font-size: clamp(30px, 7.4vw, 50px); line-height: 1.06; font-weight: 800; letter-spacing: -0.025em; }
h2, .h2like { font-size: clamp(22px, 5vw, 29px); line-height: 1.18; font-weight: 700; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 700; margin: 22px 0 6px; }
p { margin: 0 0 12px; }
b, strong { font-weight: 700; color: var(--ink); }
.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: 90; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }
.wrap--text { max-width: 780px; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 14px; margin: 0 0 10px; }
.small { font-size: 13.5px; color: var(--muted); }
.lead { color: var(--muted); font-size: 17px; max-width: 680px; }
.ico { flex: none; vertical-align: middle; }
.eyebrow { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stamp { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.chip { display: inline-block; margin: 0 0 8px; padding: 2px 8px; border: 1px solid var(--rule); font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .05em; text-transform: uppercase; color: var(--slate); background: var(--paper); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1px solid var(--slate);
  border-radius: var(--r); font: 600 15.5px/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center; transition: background .15s, color .15s; }
.btn--solid, .kit-list__btn { background: var(--slate); color: #fff; border-color: var(--slate); }
.btn--solid:hover, .kit-list__btn:hover { background: var(--slate-dd); border-color: var(--slate-dd); color: #fff; text-decoration: none; }
.btn--line { background: #fff; color: var(--slate); }
.btn--line:hover { background: var(--paper-2); color: var(--ink); text-decoration: none; }
.btn--wide { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: default; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.btnrow--tight { margin-top: 10px; }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: var(--r); color: var(--slate); background: #fff; cursor: pointer; position: relative; }
.iconbtn .count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; background: var(--sun); color: var(--ink); font: 700 12px/20px var(--mono); text-align: center; }

/* ---------------------------------------------------------------- top line, header, nav */
.topline { background: var(--slate-d); color: #e2e8f0; font-size: 13px; }
.topline__in { display: flex; align-items: center; gap: 10px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.topline__tag { flex: none; padding: 1px 7px; background: var(--sun); color: var(--ink); font: 600 10.5px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.topline p { margin: 0; line-height: 1.4; }
.hdr { position: sticky; top: 0; z-index: 70; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--rule); backdrop-filter: saturate(1.4) blur(6px); }
.hdr__in { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand__word { display: grid; line-height: 1.02; }
.brand__word b { font: 800 18px/1.05 var(--head); letter-spacing: -0.01em; }
.brand__word span { font: 500 11px/1.4 var(--mono); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.hdr__acts { display: flex; align-items: center; gap: 8px; }
.hdr__cta { display: none; min-height: 42px; font-size: 14.5px; }
.hdr__nav { display: none; }
.hdr__nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--rule);
  box-shadow: 0 18px 30px -18px rgba(15, 23, 42, .35); max-height: calc(100vh - 110px); overflow-y: auto; }
.hdr__nav ul { list-style: none; margin: 0; padding: 6px var(--gut); }
.hdr__nav li a { display: flex; align-items: center; min-height: 50px; border-bottom: 1px solid var(--rule-l); text-decoration: none; color: var(--ink); font-weight: 600; }
.hdr__nav a[aria-current="page"] { color: var(--slate); box-shadow: inset 3px 0 0 var(--sun); padding-left: 10px; }
.hdr__navcta { margin: 0; padding: 12px var(--gut) 18px; }
@media (min-width: 640px) { .hdr__cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .hdr__nav, .hdr__nav.is-open { display: block; position: static; box-shadow: none; border: 0; max-height: none; overflow: visible; background: none; }
  .hdr__nav ul { display: flex; gap: 2px; padding: 0; }
  .hdr__nav li a { min-height: 64px; padding: 0 9px; border: 0; font-size: 14.5px; font-weight: 600; color: var(--body); }
  .hdr__nav li a:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--rule); }
  .hdr__nav a[aria-current="page"] { padding-left: 9px; box-shadow: inset 0 -3px 0 var(--sun); color: var(--ink); }
  .hdr__navcta, .iconbtn--menu { display: none; }
}

/* ---------------------------------------------------------------- crumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; padding: 0; font: 12.5px/1.5 var(--mono); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--rule); }
.crumbs a { color: var(--muted); }

/* ---------------------------------------------------------------- heroes */
.hhero, .phero { position: relative; background-color: var(--paper); border-bottom: 1px solid var(--rule);
  background-image: linear-gradient(var(--rule-l) 1px, transparent 1px), linear-gradient(90deg, var(--rule-l) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px; }
.hhero { padding: 30px 0 30px; }
.hhero__grid { display: grid; gap: 26px; }
.hhero__copy h1 { max-width: 15ch; }
.hhero__intro { margin-top: 16px; font-size: 17.5px; color: var(--body); max-width: 560px; }
.hfacts { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); background: #fff; }
.hfacts div { padding: 10px 12px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hfacts dt { font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hfacts dd { margin: 2px 0 0; font: 700 17px/1.25 var(--head); color: var(--ink); }
.ph.hhero__media { margin-top: 26px; }
.hhero__media img { aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 960px) { .hhero__media img { aspect-ratio: 12 / 4.2; } }
.phero { padding: 22px 0 28px; }
.phero__grid { display: grid; gap: 22px; }
.phero__copy h1 { max-width: 20ch; }
.phero__intro { margin-top: 14px; font-size: 17px; max-width: 640px; }
.phero--legal .phero__intro, .phero--legal h1 { max-width: 780px; }
@media (min-width: 960px) {
  .hhero { padding: 48px 0 48px; }
  .hhero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: 44px; align-items: start; }
  .phero { padding: 30px 0 40px; }
  .phero--table .phero__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
}

/* ---------------------------------------------------------------- hero sheet + ruled tables */
.sheet { background: #fff; border: 1px solid var(--slate); box-shadow: 6px 6px 0 var(--rule-l); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; background: var(--slate); color: #fff; }
.sheet__t { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 12.5px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.sheet__ref { font: 500 11px/1 var(--mono); color: #cbd5e1; letter-spacing: .05em; }
.sheet__note { margin: 0; padding: 10px 12px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule); }
.sheet__link { margin: 0; padding: 0 12px 12px; }
.sheet .tscroll { margin: 0; border: 0; }
.tscroll { overflow-x: auto; margin: 6px 0 14px; border: 1px solid var(--rule); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl caption { caption-side: bottom; text-align: left; padding: 8px 12px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule); }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-l); }
.tbl thead th { font: 600 11.5px/1.35 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--paper); border-bottom: 1px solid var(--rule); white-space: nowrap; }
.tbl tbody th { font-weight: 700; color: var(--ink); }
.tbl tbody th span { display: block; font: 400 12px/1.4 var(--mono); color: var(--muted); }
.tbl tbody th a { color: var(--ink); }
.tbl td { font-family: var(--mono); font-size: 13.5px; color: var(--body); }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #fbfcfe; }
.is-tbc { color: var(--muted) !important; }
.tbl--tier td.is-tbc, .tbl--sheet td.is-tbc { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--paper-2) 6px 7px); }
@media (max-width: 639px) {
  .tscroll--stack { border: 0; background: none; overflow: visible; }
  .sheet .tscroll--stack { padding: 8px; }
  .tscroll--stack table, .tscroll--stack tbody, .tscroll--stack tr, .tscroll--stack th, .tscroll--stack td { display: block; width: 100%; }
  .tscroll--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tscroll--stack tr { border: 1px solid var(--rule); margin: 0 0 8px; background: #fff; }
  .tscroll--stack tbody th { background: var(--paper); border-bottom: 1px solid var(--rule); }
  .tscroll--stack tbody th span { display: inline; margin-left: 6px; }
  .tscroll--stack td { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; text-align: right; }
  .tscroll--stack td::before { content: attr(data-label); font: 500 11.5px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: left; }
  .tscroll--stack tr td:last-child { border-bottom: 0; }
  .tbl--sheet tr { display: grid; grid-template-columns: 1fr 1fr; }
  .tbl--sheet tbody th { grid-column: 1 / -1; }
  .tbl--sheet td { display: block; text-align: left; padding: 7px 12px; border-bottom: 0; font-size: 12.5px; }
  .tbl--sheet td::before { display: block; font-size: 10.5px; }
}

/* ---------------------------------------------------------------- contents strip */
.toc { border-bottom: 1px solid var(--rule); background: #fff; }
.toc .wrap { padding-top: 14px; padding-bottom: 14px; }
.toc__t { margin: 0 0 6px; font: 600 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.toc a { display: inline-flex; gap: 6px; align-items: baseline; min-height: 32px; padding: 4px 0; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--slate); }
.toc a span { font: 500 12px var(--mono); color: var(--muted); }
.toc a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- sections */
.sec { padding: 36px 0; border-bottom: 1px solid var(--rule-l); }
.sec--band, .sec--soft { background: var(--paper); }
.sec--foot { padding: 22px 0; }
.sec--foot .secb p { font-size: 13.5px; color: var(--muted); margin: 0; }
.sec--foot .secb { max-width: 860px; }
.sech { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; padding-top: 12px; border-top: 2px solid var(--ink); }
.secno { flex: none; font: 500 13px/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.secno::after { content: ""; display: inline-block; width: 18px; height: 1px; margin-left: 8px; vertical-align: middle; background: var(--sun); }
.secb { max-width: 760px; min-width: 0; }
.secb--wide { max-width: none; }
@media (min-width: 960px) {
  .sec { padding: 52px 0; }
  .sec > .wrap { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; }
  .sech { flex-direction: column; gap: 10px; margin: 0; position: sticky; top: 92px; align-self: start; }
  .sec--stats > .wrap { display: block; }
}
.list { padding-left: 20px; margin: 0 0 14px; }
.list li { margin: 0 0 6px; }
.numlist { list-style: none; counter-reset: n; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--rule-l); }
.numlist li { counter-increment: n; position: relative; padding: 10px 0 10px 42px; border-bottom: 1px solid var(--rule-l); }
.numlist li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 11px; font: 500 13px/1.5 var(--mono); color: var(--muted); }
.ticks { list-style: none; margin: 0 0 16px; padding: 0; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.ticks .ico { margin-top: 3px; color: var(--ok); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-left: 3px solid var(--sun); background: var(--sun-t); color: var(--sun-ink); font-size: 14.5px; }
.note .ico { margin-top: 2px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 0; font-weight: 600; font-size: 15px; }

/* steps */
.stepline { list-style: none; margin: 4px 0 14px; padding: 0; }
.stepline li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule-l); }
.stepline__n { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--slate); font: 600 14px var(--mono); color: var(--slate); background: #fff; }
.stepline b { display: block; font-family: var(--head); font-size: 17px; margin: 1px 0 3px; }
.stepline p { margin: 0; color: var(--body); }

/* tiles */
.tiles { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.tile { position: relative; display: flex; flex-direction: column; padding: 18px; background: #fff; min-width: 0; }
.tile h3 { margin: 4px 0 6px; font-size: 19px; }
.tile h3 a { color: var(--ink); text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile:hover { background: var(--paper); }
.tile p { margin: 0 0 12px; color: var(--body); font-size: 15px; }
.tile__ico { color: var(--slate); }
.tile__go { margin-top: auto; display: inline-flex; gap: 6px; align-items: center; font: 600 12.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--slate); text-decoration: none; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, 1fr); } .tiles:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); } }

/* callout */
.callout { padding: 20px; border: 1px solid var(--slate); background: #fff; box-shadow: 6px 6px 0 var(--sun-t); }
.callout p:last-child { margin-bottom: 0; }

/* stats strip */
.sec--stats { padding: 0; background: var(--slate-d); border: 0; }
.statrow { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 14px; background: var(--rule); border: 1px solid var(--rule); }
.statrow > div { padding: 12px 14px; background: #fff; min-width: 0; }
.statrow span { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.statrow b { display: block; font: 700 17px/1.3 var(--head); }
.statrow--big { margin: 0; background: #475569; border: 0; }
.statrow--big > div { background: var(--slate-d); padding: 20px 16px; }
.statrow--big dt { font: 500 11px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: #94a3b8; }
.statrow--big dd { margin: 4px 0 0; }
.statrow--big dd b { color: #fff; font-size: clamp(22px, 5vw, 30px); line-height: 1.1; }
.statrow--big dd span { display: block; margin-top: 4px; font: 400 13px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: #cbd5e1; }
.sec--stats .small { color: #cbd5e1; padding: 0 0 16px; margin: 0; }
.sec--stats .small a { color: #fff; }
@media (min-width: 860px) { .statrow { grid-template-columns: repeat(4, 1fr); } }

/* document library */
.docs { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--rule); }
.docs li { display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.docs__ico { color: var(--slate); padding-top: 2px; }
.docs b { display: block; font-family: var(--head); font-size: 16.5px; }
.docs p { margin: 2px 0 0; font-size: 14.5px; color: var(--body); }
.docs__st { grid-column: 2; justify-self: start; padding: 1px 8px; border: 1px solid var(--rule); font: 500 11px/1.7 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--slate); background: var(--paper); }
@media (min-width: 720px) { .docs li { grid-template-columns: 34px 1fr auto; align-items: start; } .docs__st { grid-column: 3; grid-row: 1; } }

/* photo feature */
.ph { position: relative; margin: 0; border: 1px solid var(--rule); background: var(--paper-2); }
.ph img { width: 100%; height: auto; object-fit: cover; }
.ph__tag, .kimg__tag { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; background: rgba(15, 23, 42, .78); color: #fff; font: 500 11px/1.5 var(--mono); letter-spacing: .03em; }
.pf { display: grid; gap: 18px; }
.pf__body > :first-child { margin-top: 0; }
@media (min-width: 860px) { .pf { grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: start; } .pf--flip .pf__media { order: 2; } }

/* kit cards */
.kgrid { display: grid; gap: 14px; }
@media (min-width: 640px) { .kgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .kgrid { grid-template-columns: repeat(3, 1fr); } }
.kcard { display: flex; flex-direction: column; border: 1px solid var(--rule); background: #fff; min-width: 0; }
.kcard:hover { border-color: var(--slate); }
.kcard__media { display: block; border-bottom: 1px solid var(--rule); }
.kimg { position: relative; display: block; }
.kimg img { width: 100%; aspect-ratio: 1200 / 897; object-fit: cover; }
.kcard__body { display: flex; flex-direction: column; gap: 4px; padding: 14px; flex: 1; }
.kcard__code { margin: 0; font: 500 11.5px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.kcard__name { margin: 0 0 6px; font-size: 21px; }
.kcard__name a { color: var(--ink); text-decoration: none; }
.kcard__dl { margin: 0 0 12px; border-top: 1px solid var(--rule-l); }
.kcard__dl div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rule-l); font-size: 14px; }
.kcard__dl dt { color: var(--muted); }
.kcard__dl dd { margin: 0; font-family: var(--mono); font-size: 13.5px; color: var(--ink); text-align: right; }
.kcard .btn { margin-top: auto; }

/* matrix */
.tscroll--matrix { margin: 6px 0 12px; }
.matrix { border-collapse: collapse; min-width: 760px; width: 100%; font-size: 14px; }
.matrix th, .matrix td { padding: 9px 10px; border-bottom: 1px solid var(--rule-l); text-align: left; vertical-align: top; }
.matrix thead th { background: var(--paper); border-bottom: 1px solid var(--rule); font-family: var(--head); font-size: 15px; }
.matrix thead th a { color: var(--ink); }
.matrix thead th span { display: block; font: 400 11.5px/1.4 var(--mono); color: var(--muted); }
.matrix tbody th { font: 600 11.5px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; position: sticky; left: 0; background: #fff; }
.matrix td { font-family: var(--mono); font-size: 13px; }

/* range rows */
.rrows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rrows a { display: grid; grid-template-columns: 1fr auto 18px; gap: 2px 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.rrows a:hover { background: #fff; }
.rrows__n { font: 700 17px var(--head); }
.rrows__m { grid-column: 1; font: 400 12.5px var(--mono); color: var(--muted); }
.rrows__p { grid-column: 2; grid-row: 1 / span 2; font: 500 13px var(--mono); color: var(--muted); }
.rrows .ico { grid-column: 3; grid-row: 1 / span 2; color: var(--slate); }

/* ---------------------------------------------------------------- forms */
.field { display: grid; gap: 5px; margin: 0 0 14px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 14.5px; color: var(--ink); }
input, select, textarea { width: 100%; max-width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--r); background: #fff;
  font: inherit; font-size: max(16px, 1em); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sun); outline-offset: 0; border-color: var(--slate); }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; min-height: 0; padding: 0; accent-color: var(--slate); flex: none; margin: 1px 0 0; }
textarea { min-height: 110px; resize: vertical; }
.tform { padding: 18px; border: 1px solid var(--slate); background: #fff; }
.tform__set { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.tform__set > legend { width: 100%; margin: 0 0 12px; padding: 0 0 6px; border-bottom: 1px solid var(--rule); font: 600 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tform__row { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .tform__row { grid-template-columns: 1fr 1fr; } .field--short { max-width: 240px; } }
.qtygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (min-width: 720px) { .qtygrid { grid-template-columns: repeat(3, 1fr); } }
.field--qty label span { display: block; font: 400 12px var(--mono); color: var(--muted); }
.field--qty input { font-family: var(--mono); }
.field--checks { border: 0; padding: 0; }
.field--checks legend { margin-bottom: 6px; }
.checkgrid { display: grid; gap: 4px 14px; }
@media (min-width: 640px) { .checkgrid { grid-template-columns: 1fr 1fr; } }
.check, .tick, .radio { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 0; cursor: pointer; font-weight: 400; }
.tick { font-size: 14.5px; }
.field--radios { border: 0; padding: 0; }
.form__msg { padding: 10px 12px; border-left: 3px solid var(--bad); background: var(--bad-t); color: var(--bad); font-weight: 600; }
.sec--form .secb { max-width: 820px; }

/* kit list (waitlist) form */
.joinbox { display: grid; gap: 20px; padding: 20px; border: 1px solid var(--slate); background: #fff; box-shadow: 6px 6px 0 var(--sun-t); }
@media (min-width: 900px) { .joinbox { grid-template-columns: 1fr 1fr; gap: 34px; padding: 28px; } }
.kit-list { margin: 0; }
.kit-list__title { font-family: var(--head); font-size: 19px; color: var(--ink); }
.kit-list__intro { color: var(--muted); font-size: 14.5px; }
.kit-list__field label { font-weight: 600; font-size: 14.5px; }
.kit-list__field input { border: 1px solid var(--rule); border-radius: var(--r); }
.kit-list__btn { border: 1px solid var(--slate); border-radius: var(--r); font: 600 15.5px/1.2 var(--sans); cursor: pointer; padding: 0 20px; }
.kit-list__msg { color: var(--bad); }
.kit-stock { margin: 2px 0 8px; padding: 1px 8px; font: 600 11.5px/1.7 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.kit-stock--waitlist { background: var(--sun-t); color: var(--sun-ink); border: 1px solid #fcd34d; align-self: flex-start; }
.kit-stock--preorder { background: var(--ok-t); color: var(--ok); }
span.kit-stock { margin: 0; }
.kit-closed-note { margin: 0; }
.kit-thanks { margin: 18px 0; padding: 18px; border: 1px solid var(--slate); }
.kit-thanks__title { font-family: var(--head); font-size: 22px; color: var(--ink); }

/* ---------------------------------------------------------------- estimator */
.est__grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .est__grid { grid-template-columns: 1fr 1.05fr; gap: 26px; align-items: start; } }
.est__in { padding: 18px; border: 1px solid var(--rule); background: #fff; }
.est__card { padding: 20px; background: var(--slate-d); color: #e2e8f0; border-top: 4px solid var(--sun); }
.est__label { margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: #94a3b8; }
.est__big { margin: 4px 0 14px; font: 800 clamp(30px, 8vw, 42px)/1.05 var(--head); color: #fff; letter-spacing: -0.02em; }
.est__card .ledger { border-color: #475569; }
.est__card .ledger div { border-color: #334155; }
.est__card .ledger dt { color: #94a3b8; }
.est__card .ledger dd { color: #fff; }
.est__assume { margin: 14px 0; font-size: 12.5px; line-height: 1.5; color: #cbd5e1; }
.est__warn { padding: 10px 12px; background: var(--sun-t); color: var(--sun-ink); font-size: 14px; }
.est__card .btn--solid { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.est__card .btn--solid:hover { background: #fcd34d; color: var(--ink); }
.est__card .btn--line { margin-top: 8px; background: transparent; color: #fff; border-color: #64748b; }
.est__adv summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; color: var(--slate); }

/* ledger rows (key : value) */
.ledger { margin: 0; border-top: 1px solid var(--rule); }
.ledger div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule-l); }
.ledger dt { color: var(--muted); font-size: 14px; }
.ledger dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 13.5px; color: var(--ink); }
.ledger__total dt { font-weight: 700; color: var(--ink); }
.ledger__total dd { font-weight: 600; }
.ledger--tight div { padding: 6px 0; }

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

/* ---------------------------------------------------------------- product (SKU) page */
.sku { padding: 22px 0 30px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.sku__head h1 { max-width: 22ch; }
.sku__sum { margin: 12px 0 0; font-size: 17px; max-width: 680px; }
.sku__top { display: grid; gap: 18px; margin-top: 20px; }
.sku__media { display: grid; gap: 12px; }
.sku__fig { margin: 0; border: 1px solid var(--rule); background: #fff; }
.sku__fig img { width: 100%; }
.sku__fig figcaption { padding: 7px 10px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--rule-l); }
.sku__fig--draw { display: none; }
.sheetcard { padding: 16px; border: 1px solid var(--slate); background: #fff; }
.sheetcard__t { margin: 0 0 8px; font: 600 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sheetcard__note { margin: 12px 0 4px; font-size: 13.5px; color: var(--muted); }
.sheetcard .kit-list { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
@media (min-width: 760px) { .sku__fig--draw { display: block; } .sku__media { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .sku__top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 30px; align-items: start; }
  .sku__media { grid-template-columns: 1fr; }
  .sku__side { position: sticky; top: 90px; }
}
.specgrid { display: grid; margin: 0 0 10px; border-top: 1px solid var(--rule); }
.specgrid div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule-l); }
.specgrid dt { font: 500 12px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.specgrid dd { margin: 0; font-size: 14.5px; }
.dispatch { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--rule); background: #fff; }

/* ---------------------------------------------------------------- next box, thanks, toast */
.nextbox { display: grid; gap: 10px; padding: 22px; background: var(--slate-d); color: #fff; }
.nextbox__t { margin: 0; font: 700 21px/1.3 var(--head); color: #fff; }
.nextbox .btn--solid { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.nextbox .btn--line { background: transparent; color: #fff; border-color: #64748b; }
@media (min-width: 860px) { .nextbox { grid-template-columns: 1fr auto; align-items: center; padding: 26px 30px; } .nextbox .btnrow { margin: 0; } }
.thanks-alt { padding: 4px 0; }
.thanks-alt .h1like { margin-bottom: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; max-width: calc(100% - 32px);
  padding: 12px 16px; background: var(--ink); color: #fff; font-size: 14.5px; }
.toast a { color: var(--sun); }
.addkit__msg { margin: 8px 0 0; font-weight: 600; font-size: 14px; }

/* ---------------------------------------------------------------- tab bar (phones) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 0 0 env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--rule); box-shadow: 0 -8px 22px -16px rgba(15, 23, 42, .4); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; padding: 6px 2px;
  color: var(--muted); text-decoration: none; font: 600 11px/1.2 var(--sans); border-right: 1px solid var(--rule-l); }
.tabbar a:last-child { border-right: 0; }
.tabbar a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 3px 0 var(--slate); }
.tabbar .tabbar__cta { background: var(--slate); color: #fff; box-shadow: inset 0 3px 0 var(--sun); }
.tabbar a:active { background: var(--paper-2); }
.tabbar .tabbar__cta:active { background: var(--slate-dd); }
body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
@media (min-width: 1100px) { .tabbar { display: none; } body { padding-bottom: 0; } .toast { bottom: 24px; } }

/* ---------------------------------------------------------------- footer */
.ftr { background: var(--slate-dd); color: #cbd5e1; padding: 40px 0 26px; font-size: 14.5px; }
.ftr a { color: #e2e8f0; text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--sun); }
.ftr__top { display: grid; gap: 26px; }
.ftr__brand { display: inline-flex; align-items: center; gap: 10px; font: 800 19px var(--head); color: #fff !important; }
.ftr__tag { margin: 10px 0 12px; max-width: 420px; }
.ftr__addr { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: #94a3b8; max-width: 380px; }
.ftr__addr .ico { margin-top: 3px; }
.ftr__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.ftr__head { margin: 0 0 8px; font: 600 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sun); }
.ftr__col ul { list-style: none; margin: 0; padding: 0; }
.ftr__col li a, .ftr__btn { display: inline-flex; align-items: center; min-height: 36px; }
.ftr__btn { background: none; border: 0; padding: 0; font: inherit; color: #e2e8f0; cursor: pointer; text-align: left; }
.ftr__btn:hover { color: #fff; text-decoration: underline; }
.ftr__rules { margin: 28px 0 8px; padding-top: 16px; border-top: 1px solid #334155; font-size: 13px; color: #94a3b8; max-width: 860px; }
.ftr__small { margin: 0; font: 12px var(--mono); color: #64748b; }
@media (min-width: 900px) { .ftr__top { grid-template-columns: 1fr 1.5fr; gap: 40px; } .ftr__cols { grid-template-columns: repeat(4, 1fr); } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* 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; } }
