/* Outage.info stylesheet
   Clean green, black, and white. Large, high-contrast type.
   System fonts only. No external assets. */

:root {
  --black: #0c0f0d;
  --ink: #141816;
  --ink-2: #1d2320;
  --ink-line: #2f3733;
  --on-dark: #f3f5f4;
  --on-dark-soft: #c3cbc6;

  --white: #ffffff;
  --mist: #f3f6f4;
  --mist-2: #e8eeea;
  --rule: #d5ddd8;
  --text: #121614;
  --text-soft: #3f4843;

  --green: #13803f;        /* buttons, accents (white text passes AA) */
  --green-hover: #0e6a33;
  --green-ink: #0f6b35;    /* links and green text on white */
  --green-bright: #3ccb6e; /* accents on black only */
  --green-tint: #e6f4eb;

  --red: #b3261e;
  --red-tint: #fbecea;
  --red-line: #ecc4c0;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 8px;
  --radius-lg: 14px;
  --wrap: 74rem;
  --prose: 44rem;
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--green);
  --focus-dark: 0 0 0 3px var(--black), 0 0 0 6px var(--green-bright);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.65;
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.55em;
  color: inherit;
}
h1 { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 3.75rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3rem; }
li + li { margin-top: 0.4em; }

a { color: var(--green-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
main:focus, main:focus-visible, h2[tabindex="-1"]:focus:not(:focus-visible) { box-shadow: none; outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--green); color: var(--white); font-weight: 700;
  padding: 0.7rem 1rem; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

/* ---------- Header ---------- */

.site-header { background: var(--white); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); text-decoration: none; line-height: 1.1; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.wordmark { font-weight: 800; letter-spacing: 0.14em; font-size: 1.1rem; }
.wordmark .dot { color: var(--green); }
.brand-tagline { font-size: 0.86rem; color: var(--text-soft); margin-top: 0.2rem; letter-spacing: 0; }

.nav-toggle {
  display: none; align-items: center; gap: 0.5rem;
  background: var(--white); color: var(--text);
  border: 2px solid var(--text); border-radius: var(--radius);
  padding: 0.55rem 0.9rem; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.75rem; }
.site-nav li + li { margin-top: 0; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 1.05rem; font-weight: 600; padding: 0.35rem 0; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--green); }
.site-nav .nav-cta a { background: var(--green); color: var(--white); padding: 0.6rem 1.1rem; border-radius: var(--radius); border: 0; }
.site-nav .nav-cta a:hover { background: var(--green-hover); }
.site-nav .nav-cta a[aria-current="page"] { box-shadow: inset 0 -3px 0 rgba(0,0,0,0.25); }

@media (max-width: 52rem) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; margin-top: 0.6rem; border-top: 1px solid var(--rule); }
  .js .site-nav a { display: block; padding: 0.95rem 0.2rem; border-bottom: 1px solid var(--rule); font-size: 1.15rem; }
  .js .site-nav a[aria-current="page"] { color: var(--green-ink); border-bottom-color: var(--rule); }
  .js .site-nav .nav-cta a { margin-top: 0.9rem; text-align: center; padding: 0.95rem; border-bottom: 0; }
}

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3.25rem; padding: 0.8rem 1.4rem;
  font: inherit; font-size: 1.08rem; font-weight: 700; line-height: 1.2;
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn-ghost-dark { background: transparent; color: var(--on-dark); border-color: #59645e; }
.btn-ghost-dark:hover { border-color: var(--on-dark); }
.btn-secondary { background: var(--white); color: var(--text); border-color: var(--text); }
.btn-secondary:hover { background: var(--mist); }
.btn-small { min-height: 2.85rem; padding: 0.6rem 1rem; font-size: 1rem; }
.dark .btn:focus-visible, .hero .btn:focus-visible, .page-intro .btn:focus-visible { box-shadow: var(--focus-dark); }

/* ---------- Dark bands: hero and page intros ---------- */

.hero, .page-intro, .dark { background: var(--black); color: var(--on-dark); }
.hero a:not(.btn), .page-intro a:not(.btn), .dark a:not(.btn) { color: var(--on-dark); }
.hero a:focus-visible, .page-intro a:focus-visible, .dark a:focus-visible { box-shadow: var(--focus-dark); }

.hero { position: relative; overflow: hidden; padding: 3rem 0 0; }
.hero-grid { display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 60rem) { .hero { padding-top: 4.5rem; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 2rem; } }
.hero-copy { padding-bottom: 2.5rem; }
@media (min-width: 60rem) { .hero-copy { padding-bottom: 5rem; } }
.hero h1 { color: var(--white); max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--green-bright); }
.hero .lede { font-size: 1.25rem; color: var(--on-dark-soft); max-width: 34rem; margin-bottom: 2rem; }
.hero-art { margin: 0 -1.25rem; line-height: 0; }
@media (min-width: 60rem) { .hero-art { margin: 0 -2rem 0 0; } }
.hero-art svg { display: block; width: 100%; height: auto; }

.utility-note {
  margin: 2rem 0 0; font-size: 1rem; color: var(--on-dark-soft);
  display: flex; gap: 0.6rem; align-items: flex-start;
}
.utility-note svg { flex: none; width: 20px; height: 20px; margin-top: 0.2rem; color: var(--green-bright); }

.page-intro { position: relative; overflow: hidden; padding: 3rem 0 3.25rem; }
.page-intro .wrap { position: relative; z-index: 1; }
.page-intro h1 { color: var(--white); max-width: 22ch; font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
.page-intro .lede { color: var(--on-dark-soft); max-width: 44rem; font-size: 1.2rem; margin-bottom: 0; }
.intro-sky { position: absolute; right: -40px; top: 0; height: 100%; width: min(560px, 70%); opacity: 0.55; pointer-events: none; }
@media (max-width: 40rem) { .intro-sky { opacity: 0.25; } }

.eyebrow { display: block; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; color: var(--green-ink); margin-bottom: 0.7rem; }
.hero .eyebrow, .page-intro .eyebrow, .dark .eyebrow { color: var(--green-bright); }
.breadcrumb { font-size: 1rem; margin-bottom: 1rem; color: var(--on-dark-soft); }
.reviewed { font-size: 1rem; color: var(--on-dark-soft); margin-top: 1.1rem; }

/* ---------- Sections ---------- */

main { display: block; }
.section { padding: 3.5rem 0; }
@media (min-width: 48rem) { .section { padding: 5rem 0; } }
.section-alt { background: var(--mist); }
.section-green { background: var(--green-tint); }
.section-head { max-width: var(--prose); margin-bottom: 2.5rem; }
.section-head p { color: var(--text-soft); margin-bottom: 0; font-size: 1.2rem; }

.grid { display: grid; gap: 2rem; }
@media (min-width: 42rem) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid > *, .prose-layout > *, .calc-layout > *, .footer-grid > *, .checklist-offer > *, .hero-grid > *, .compare > * { min-width: 0; }

/* Open items instead of boxes */
.card { border-top: 3px solid var(--text); padding-top: 1.1rem; }
.card h3 { display: flex; align-items: center; gap: 0.6rem; }
.card p { color: var(--text-soft); }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 26px; height: 26px; color: var(--green); flex: none; }
.card-meta { font-size: 0.95rem; font-weight: 700; color: var(--green-ink); margin-bottom: 0.4rem; }

/* Priority list (homepage) */
.priority-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
@media (min-width: 48rem) { .priority-list { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; } }
.priority-list li { margin: 0; display: grid; grid-template-columns: 3.25rem 1fr; gap: 1.1rem; padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.priority-icon { width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; }
.priority-icon svg { width: 26px; height: 26px; }
.priority-list h3 { margin-bottom: 0.3rem; }
.priority-list p { color: var(--text-soft); margin-bottom: 0.35rem; }
.priority-list p:last-child { margin-bottom: 0; }

/* Battery / generator / both */
.compare { display: grid; gap: 0; }
@media (min-width: 60rem) { .compare { grid-template-columns: repeat(3, 1fr); } }
.compare-col { padding: 1.75rem 0; border-top: 1px solid var(--rule); }
@media (min-width: 60rem) {
  .compare-col { padding: 0.5rem 2.25rem 0.5rem; border-top: 0; border-left: 1px solid var(--rule); }
  .compare-col:first-child { padding-left: 0; border-left: 0; }
}
.compare-col .tag { display: inline-block; font-size: 0.95rem; font-weight: 700; color: var(--green-ink); margin-bottom: 0.3rem; }
.compare-col ul { color: var(--text-soft); padding-left: 1.2rem; margin: 0; }
.compare-col li::marker { color: var(--green); }

.safety-band {
  margin-top: 3rem; padding: 1.5rem 0 0.25rem 1.5rem;
  border-left: 6px solid var(--red);
}
.safety-band h3 { color: var(--red); display: flex; align-items: center; gap: 0.6rem; }
.safety-band h3 svg { width: 26px; height: 26px; flex: none; }
.safety-band p { max-width: 52rem; }

/* How it works timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; counter-reset: step; position: relative; }
@media (min-width: 52rem) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .timeline::before { content: ""; position: absolute; left: 2rem; right: 2rem; top: 2rem; height: 2px; background: var(--rule); }
}
.timeline li { margin: 0; counter-increment: step; position: relative; }
.timeline li::before {
  content: counter(step);
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--white); border: 2px solid var(--green); color: var(--green-ink);
  font-size: 1.6rem; font-weight: 800; margin-bottom: 1rem;
}
.section-alt .timeline li::before { background: var(--mist); }
.timeline p { color: var(--text-soft); margin: 0; }

/* Example plan (homepage) */
.example { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60rem) { .example { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }
.example-readout { background: var(--black); color: var(--on-dark); border-radius: var(--radius-lg); padding: 1.75rem; }
@media (min-width: 48rem) { .example-readout { padding: 2.25rem; } }
.example-readout .label { font-size: 1rem; color: var(--on-dark-soft); margin: 0; }
.example-total { font-size: clamp(2.6rem, 2rem + 2.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; color: var(--white); margin: 0.1rem 0 0.25rem; font-variant-numeric: tabular-nums; line-height: 1.05; }
.example-total span { font-size: 0.45em; color: var(--green-bright); font-weight: 700; margin-left: 0.2em; letter-spacing: 0; }
.bars { list-style: none; padding: 0; margin: 1.75rem 0 0; }
.bars li { margin: 0 0 1rem; }
.bar-head { display: flex; justify-content: space-between; gap: 1rem; font-size: 1rem; margin-bottom: 0.35rem; font-variant-numeric: tabular-nums; }
.bar-head strong { font-weight: 600; color: var(--white); }
.bar-track { height: 12px; border-radius: 6px; background: var(--ink-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: var(--green-bright); }
.bar-fill.buffer { background: repeating-linear-gradient(135deg, #8fa398 0 6px, #6c7e74 6px 12px); }
.example-note { font-size: 0.95rem; color: var(--on-dark-soft); margin: 1.25rem 0 0; }

/* Guide list (homepage) */
.guide-list { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--rule); }
.guide-list li { margin: 0; border-top: 1px solid var(--rule); }
.guide-list a { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1.5rem; align-items: center; padding: 1.6rem 0.25rem; color: var(--text); text-decoration: none; }
@media (min-width: 52rem) { .guide-list a { grid-template-columns: 14rem 1fr auto; } }
.guide-list .g-meta { font-size: 0.95rem; font-weight: 700; color: var(--green-ink); }
.guide-list .g-title { font-size: 1.4rem; font-weight: 750; letter-spacing: -0.01em; display: block; }
.guide-list .g-desc { color: var(--text-soft); display: block; margin-top: 0.2rem; }
.guide-list .g-arrow { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid var(--text); display: flex; align-items: center; justify-content: center; grid-row: 1 / span 2; grid-column: 2; transition: background-color 0.15s ease; }
@media (min-width: 52rem) { .guide-list .g-arrow { grid-row: auto; grid-column: auto; } }
.guide-list .g-arrow svg { width: 20px; height: 20px; }
.guide-list a:hover .g-arrow { background: var(--green); border-color: var(--green); color: var(--white); }
.guide-list a:hover .g-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

/* Steps (generic numbered list used elsewhere) */
.steps { list-style: none; padding: 0; margin: 0; }

/* ---------- Callouts ---------- */

.callout { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--mist); }
.callout > svg { flex: none; width: 24px; height: 24px; margin-top: 0.2rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout h3, .callout h2 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.callout-safety { background: var(--red-tint); border-left: 5px solid var(--red); color: #3b1310; }
.callout-safety > svg, .callout-safety h2, .callout-safety h3 { color: var(--red); }
.callout-info { background: var(--green-tint); border-left: 5px solid var(--green); }
.callout-info > svg { color: var(--green); }

.know-first { background: var(--green-tint); border-left: 6px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.5rem 0.5rem; margin: 0 0 2.5rem; }
.know-first h2 { font-size: 1.35rem; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2.2rem; }
.checklist li + li { margin-top: 0.7em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.2rem;
  width: 1.35rem; height: 1.35rem; border: 2px solid var(--green); border-radius: 4px; background: var(--white);
}

/* ---------- Prose pages ---------- */

.prose-layout { display: grid; gap: 3rem; padding: 3rem 0 4.5rem; }
@media (min-width: 64rem) { .prose-layout { grid-template-columns: minmax(0, 1fr) 18rem; gap: 4.5rem; } }
.prose { max-width: var(--prose); }
.prose h2 { margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; }
.prose .callout { margin: 1.75rem 0; }
.prose ol li::marker { font-weight: 700; color: var(--green-ink); }

.aside-box { position: sticky; top: 1.25rem; border-top: 3px solid var(--text); padding-top: 1.1rem; }
.aside-box h2 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.aside-box ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.aside-box li + li { margin-top: 0.55rem; }
.aside-box p { font-size: 1.05rem; color: var(--text-soft); }
.aside-box .btn { width: 100%; }

.sources { font-size: 1.02rem; }
.sources li { margin-bottom: 0.55rem; }
.ext-label { font-size: 0.88rem; color: var(--text-soft); white-space: nowrap; }
.dark .ext-label, .results-panel .ext-label { color: var(--on-dark-soft); }

.money-note { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); color: var(--text-soft); font-size: 1.05rem; }
.money-note h2 { font-size: 1.2rem; color: var(--text); margin-top: 0; }

.reco-slot { border: 2px dashed var(--rule); border-radius: var(--radius); padding: 1rem 1.25rem; color: var(--text-soft); font-size: 1.02rem; margin: 2rem 0; }
.reco-slot strong { color: var(--text); }

/* ---------- Tables and code ---------- */

.table-wrap { overflow-x: auto; border-top: 2px solid var(--text); }
table { width: 100%; border-collapse: collapse; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
th, td { padding: 0.75rem 0.75rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-size: 0.92rem; font-weight: 700; color: var(--text-soft); }
tbody th { font-weight: 600; }
td.num, th.num { text-align: right; white-space: nowrap; }
tfoot th, tfoot td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--text); }

code, .formula { font-family: var(--mono); font-size: 0.92em; }
.formula { display: block; background: var(--black); color: var(--on-dark); border-radius: var(--radius); padding: 1rem 1.2rem; overflow-x: auto; line-height: 1.55; margin: 0.6rem 0 1.4rem; white-space: pre-wrap; border-left: 5px solid var(--green-bright); }

/* ---------- Checklist offer ---------- */

.checklist-offer { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 56rem) { .checklist-offer { grid-template-columns: 1.3fr 1fr; gap: 4rem; } }
.status-pill { display: inline-block; font-size: 0.95rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--white); color: var(--green-ink); border: 2px solid var(--green); margin-bottom: 1rem; }
.offer-note { border-top: 3px solid var(--text); padding-top: 1.1rem; }
.offer-note p { color: var(--text-soft); }
.utility-help { max-width: var(--prose); }

/* ---------- Calculator ---------- */

.calc-layout { display: grid; gap: 2rem; padding: 2.5rem 0 4.5rem; align-items: start; }
@media (min-width: 66rem) { .calc-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; } }

.panel { padding: 0 0 2rem; border-bottom: 1px solid var(--rule); }
.panel + .panel { margin-top: 2rem; }
.calc-inputs .panel:last-child { border-bottom: 0; }
.panel h2 { font-size: 1.5rem; }
.panel-sub { color: var(--text-soft); font-size: 1.05rem; }

fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
legend { font-weight: 700; margin-bottom: 0.65rem; padding: 0; }

.preset-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.preset-btn {
  font: inherit; font-size: 1rem; font-weight: 600;
  background: var(--white); color: var(--text);
  border: 2px solid var(--rule); border-radius: 999px;
  min-height: 2.9rem; padding: 0.45rem 1rem 0.45rem 0.8rem;
  cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem;
}
.preset-btn:hover { border-color: var(--green); background: var(--green-tint); }
.preset-btn svg { width: 16px; height: 16px; color: var(--green); }

.duration-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.duration-group label { position: relative; display: inline-flex; }
.duration-group input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.duration-group span {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0.5rem 1.2rem;
  border: 2px solid var(--rule); border-radius: var(--radius); background: var(--white);
  cursor: pointer; font-weight: 700; font-variant-numeric: tabular-nums;
}
.duration-group span:hover { border-color: var(--text); }
.duration-group input:checked + span { background: var(--black); color: var(--white); border-color: var(--black); }
.duration-group input:focus-visible + span { box-shadow: var(--focus); }

.load-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.load-list li { margin: 0; }
.load-item { border: 2px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem 1.05rem; background: var(--white); }
.load-item-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; margin-bottom: 0.7rem; }
.load-item-head h3 { font-size: 1.1rem; margin: 0; }
.load-tag { font-size: 0.82rem; font-weight: 700; color: var(--green-ink); background: var(--green-tint); border-radius: 999px; padding: 0.1rem 0.55rem; margin-left: 0.5rem; white-space: nowrap; vertical-align: 2px; letter-spacing: 0.02em; }
.load-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; align-items: end; }
.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.field label { font-size: 0.95rem; color: var(--text-soft); font-weight: 600; }
.field input, .field select {
  font: inherit; font-size: 1.1rem; width: 100%; min-height: 3rem; padding: 0.5rem 0.7rem;
  border: 2px solid #b9c4be; border-radius: var(--radius); background: var(--white); color: var(--text);
  font-variant-numeric: tabular-nums;
}
.field input:hover, .field select:hover { border-color: var(--text-soft); }
.field input:focus-visible, .field select:focus-visible { box-shadow: var(--focus); border-color: var(--green); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.load-line { margin: 0.65rem 0 0; font-size: 0.95rem; color: var(--text-soft); font-variant-numeric: tabular-nums; }

.remove-btn {
  font: inherit; font-size: 0.98rem; font-weight: 600; background: transparent; color: var(--text-soft);
  border: 2px solid transparent; border-radius: var(--radius); padding: 0.35rem 0.6rem; min-height: 2.6rem;
  cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap;
}
.remove-btn:hover { color: var(--red); border-color: var(--red-line); }
.remove-btn svg { width: 16px; height: 16px; }

.empty-state { border: 2px dashed var(--rule); border-radius: var(--radius); padding: 1.25rem; color: var(--text-soft); text-align: center; margin: 0; }

.custom-form { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.custom-form .span-2 { grid-column: span 2; }
@media (min-width: 42rem) { .custom-form { grid-template-columns: 2fr 1fr 1fr 1fr; } .custom-form .name-field { grid-column: span 2; } }
.custom-form .actions { grid-column: 1 / -1; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.form-error { color: var(--red); font-size: 1rem; font-weight: 600; margin: 0; }

@media (min-width: 66rem) { .results { position: sticky; top: 1.25rem; } }
.results-panel { background: var(--black); color: var(--on-dark); border: 0; border-radius: var(--radius-lg); padding: 1.6rem; }
@media (min-width: 48rem) { .results-panel { padding: 2rem; } }
.results-panel h2 { color: var(--white); }
.results-panel .panel-sub { color: var(--on-dark-soft); margin-bottom: 0; }
.big-number { font-size: clamp(2.8rem, 2.2rem + 2.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--white); font-variant-numeric: tabular-nums; margin: 0.15rem 0 0.2rem; }
.big-unit { font-size: 0.45em; color: var(--green-bright); font-weight: 700; margin-left: 0.2em; letter-spacing: 0; }
.kwh { color: var(--on-dark-soft); font-size: 1.1rem; font-variant-numeric: tabular-nums; margin-bottom: 1.1rem; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 1.1rem; border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.stat { padding: 0.85rem 0; }
.stat + .stat { padding-left: 1rem; border-left: 1px solid var(--ink-line); }
.stat dt { font-size: 0.92rem; color: var(--on-dark-soft); }
.stat dd { margin: 0.1rem 0 0; font-size: 1.35rem; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--white); }
.category { border-left: 5px solid var(--green-bright); padding: 0.3rem 0 0.3rem 1rem; margin: 0 0 1.25rem; }
.category-label { display: block; font-size: 0.95rem; font-weight: 700; color: var(--green-bright); margin-bottom: 0.15rem; }
.category p { margin: 0; color: var(--on-dark); font-size: 1.1rem; }
.breakdown { list-style: none; padding: 0; margin: 0 0 1rem; font-size: 1rem; color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }
.breakdown li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px dotted var(--ink-line); margin: 0; }
.breakdown li:last-child { border-bottom: 0; color: var(--white); font-weight: 700; }
.results-panel .btn-row { margin-top: 1.25rem; }
.results-panel .btn-primary { background: var(--green-bright); border-color: var(--green-bright); color: var(--black); }
.results-panel .btn-primary:hover { background: #5ad788; border-color: #5ad788; }
.results-panel .btn-secondary { background: transparent; color: var(--on-dark); border-color: #59645e; }
.results-panel .btn-secondary:hover { border-color: var(--on-dark); background: transparent; }
.results-panel .btn:focus-visible, .results-panel a:focus-visible { box-shadow: var(--focus-dark); }
.results-panel a { color: var(--on-dark); }
.copy-status { font-size: 1rem; color: var(--green-bright); min-height: 1.5em; margin: 0.7rem 0 0; }
.fine { font-size: 0.95rem; color: var(--on-dark-soft); margin: 1rem 0 0; }

.warnings { display: grid; gap: 1rem; }
.warnings:empty { display: none; }
.warning-card h3 { font-size: 1.1rem; }
.warning-card p { font-size: 1.02rem; }

.results table { font-size: 0.95rem; }
.results th, .results td { padding: 0.6rem 0.5rem; }
.results thead th { font-size: 0.82rem; }
.results tbody th { font-weight: 500; }
.results .panel { border-bottom: 0; padding-bottom: 0; }

.next-steps ul { list-style: none; padding: 0; margin: 0; }
.next-steps li { padding: 0.8rem 0; border-top: 1px solid var(--rule); margin: 0; }
.next-steps a { font-weight: 700; font-size: 1.08rem; }
.next-steps span { display: block; font-size: 1rem; color: var(--text-soft); }

.noscript-note { background: var(--red-tint); border-left: 5px solid var(--red); padding: 1rem 1.25rem; border-radius: var(--radius); margin-top: 1.5rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--black); color: var(--on-dark-soft); font-size: 1rem; position: relative; margin-top: 0; }
.footer-clouds { display: block; width: 100%; height: 56px; color: var(--black); background: transparent; margin-bottom: -1px; }
.footer-body { padding: 2.25rem 0 2rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.site-footer h2 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 0.55rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.site-footer a:focus-visible { box-shadow: var(--focus-dark); }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--white); font-weight: 800; letter-spacing: 0.12em; margin-bottom: 0.8rem; }
.footer-brand svg { width: 32px; height: 32px; }
.footer-safety { max-width: 32rem; }
.footer-bottom { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--ink-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.95rem; }
.footer-bottom p { margin: 0; }

/* ---------- 404 ---------- */
.notfound { padding: 3.5rem 0 5rem; }
.notfound ul { list-style: none; padding: 0; max-width: 32rem; }

/* ---------- Motion (very slow, optional) ---------- */
@keyframes drift-a { from { transform: translateX(0); } to { transform: translateX(18px); } }
@keyframes drift-b { from { transform: translateX(0); } to { transform: translateX(-14px); } }
@keyframes glow { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
.cloud-a { animation: drift-a 22s ease-in-out infinite alternate; }
.cloud-b { animation: drift-b 28s ease-in-out infinite alternate; }
.window-glow { animation: glow 6s ease-in-out infinite; }

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

@media print {
  .site-header, .site-footer, .nav-toggle, .btn-row, .preset-grid, .custom-form, .remove-btn, .hero-art, .intro-sky { display: none !important; }
  body, .hero, .page-intro, .results-panel { background: #fff !important; color: #000 !important; }
  .hero h1, .page-intro h1, .results-panel h2, .big-number, .stat dd { color: #000 !important; }
}

/* Soften the illustration's side edges so it blends into the band */
.hero-art svg {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 90%, transparent 100%);
}
@media (max-width: 59.99rem) {
  .hero-art svg { -webkit-mask-image: none; mask-image: none; }
}

/* Footer cloud edge: only the body is black so the scalloped top shows */
.site-footer { background: transparent; }
.footer-body { background: var(--black); }
