/* ══════════════════════════════════════════════════════════════════════════
   SOLAR POWER PLANT PAGES (/solar-power-plant…)
   Loaded only on solar pages, after redesign.css. Uses the same tokens.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────────────────── */
.solar-hero .page-hero-title { max-width: 18ch; }
.solar-hero .page-hero-lead { max-width: 60ch; }
.solar-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.solar-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--brand-flame-amber); color: var(--brand-charcoal);
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}

/* ── Stat tiles ─────────────────────────────────────────────────────── */
.solar-stats {
    display: grid; gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: clamp(-56px, -4vw, -32px);
    position: relative; z-index: 3;
}
@media (min-width: 48em) { .solar-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.solar-stat {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 18px 18px 16px; box-shadow: var(--shadow-sm);
}
.solar-stat-value { display: block; font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: var(--brand-emerald-core); line-height: 1.15; }
.solar-stat-label { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.solar-stat--accent { background: var(--brand-emerald-core); border-color: var(--brand-emerald-core); }
.solar-stat--accent .solar-stat-value { color: var(--brand-flame-amber); }
.solar-stat--accent .solar-stat-label { color: rgba(255, 255, 255, .85); }

/* ── Copy blocks ────────────────────────────────────────────────────── */
.solar-prose p { font-size: clamp(15px, 1.6vw, 16.5px); line-height: 1.8; color: var(--ink); margin: 0 0 14px; max-width: 70ch; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--ink); }
.check-list li i { color: var(--brand-emerald-green); font-size: 20px; flex: none; margin-top: 1px; }
.check-list--2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48em) { .check-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }

/* ── Tables ─────────────────────────────────────────────────────────── */
.solar-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; margin-top: 22px; -webkit-overflow-scrolling: touch; }
.solar-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.solar-table th, .solar-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.solar-table thead th { background: var(--brand-emerald-core); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .02em; white-space: nowrap; }
.solar-table tbody th { font-weight: 600; color: var(--brand-emerald-core); white-space: nowrap; }
.solar-table tbody tr:last-child th, .solar-table tbody tr:last-child td { border-bottom: 0; }
.solar-table tbody tr:nth-child(even) { background: #FAFCF9; }
.solar-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.solar-table .is-current { background: #EAF5E6 !important; }
.solar-table .is-current th { color: var(--brand-emerald-green); }
.solar-table .yes { color: var(--brand-emerald-green); font-weight: 700; }
.solar-table .no { color: #A0A3A8; }
.solar-note { margin-top: 12px; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); max-width: 110ch; }

/* ── Plant cards ────────────────────────────────────────────────────── */
.plant-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
@media (min-width: 40em) { .plant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .plant-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plant-card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
    overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .2s ease;
}
.plant-card:hover { border-color: rgba(11, 125, 41, .45); box-shadow: var(--shadow-md); }
.plant-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #EDF3EB; }
.plant-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plant-card-tag {
    position: absolute; top: 12px; left: 12px;
    background: var(--brand-flame-amber); color: var(--brand-charcoal);
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px;
}
.plant-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plant-card-title { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.plant-card-title a { color: var(--brand-emerald-core); text-decoration: none; }
.plant-card-title a::after { content: ''; position: absolute; inset: 0; }
.plant-card-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.plant-card-facts li { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.plant-card-facts strong { display: block; color: var(--ink); font-size: 15px; }
.plant-card-link { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14px; color: var(--brand-emerald-green); display: inline-flex; align-items: center; gap: 6px; }

/* ── Use cases (car, scooter, AC, cooking) ──────────────────────────── */
.usecase { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.usecase > *, .split > *, .solar-calc > * { min-width: 0; }
.usecase:first-of-type { border-top: 0; }
@media (min-width: 64em) {
    .usecase { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
    .usecase--flip .usecase-media { order: 2; }
}
.usecase-media { border-radius: var(--radius-md); overflow: hidden; background: #EEF2EE; box-shadow: var(--shadow-sm); }
.usecase-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.usecase-media--contain img { object-fit: contain; padding: 18px; background: #F2F4F2; }
.usecase-kicker { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-emerald-green); margin: 0 0 6px; }
.usecase-title { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 700; line-height: 1.25; color: var(--brand-emerald-core); }
.usecase-lead { margin: 10px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
@media (min-width: 48em) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--brand-off-white); border-radius: var(--radius-sm); padding: 14px; border: 1px solid var(--line); }
.kpi strong { display: block; font-size: clamp(18px, 2.4vw, 23px); color: var(--brand-emerald-core); line-height: 1.2; }
.kpi span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; }
.usecase-callout {
    margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm);
    background: #EAF5E6; color: var(--brand-emerald-core); font-weight: 600; font-size: 14.5px; line-height: 1.55;
    display: flex; gap: 10px; align-items: flex-start;
}
.usecase-callout i { font-size: 20px; color: var(--brand-emerald-green); flex: none; }

/* ── Energy balance bars ────────────────────────────────────────────── */
.balance { margin-top: 22px; display: grid; gap: 12px; }
.balance-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
@media (min-width: 48em) { .balance-row { grid-template-columns: 260px minmax(0, 1fr) 120px; align-items: center; gap: 16px; } }
.balance-label { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink); }
.balance-label i { color: var(--brand-emerald-green); font-size: 19px; }
.balance-track { position: relative; height: 14px; background: #E7EEE6; border-radius: 999px; overflow: hidden; }
.balance-fill { position: absolute; inset: 0 auto 0 0; background: var(--brand-emerald-green); border-radius: 999px; }
.balance-fill.is-over { background: var(--brand-flame-orange); }
.balance-value { font-size: 13.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.balance-value.is-over { color: var(--brand-flame-orange); }

/* ── Calculator ─────────────────────────────────────────────────────── */
.solar-calc { display: grid; gap: 20px; margin-top: 26px; }
@media (min-width: 64em) { .solar-calc { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; } }
.calc-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(18px, 2.4vw, 28px); box-shadow: var(--shadow-sm); }
.calc-field { display: grid; gap: 8px; margin-bottom: 18px; }
.calc-field > label, .calc-legend { font-weight: 600; font-size: 14.5px; color: var(--brand-emerald-core); }
.calc-row { display: flex; align-items: center; gap: 12px; }
.calc-row input[type=range] { flex: 1; accent-color: var(--brand-emerald-green); }
.calc-out { min-width: 86px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.calc-checks { display: grid; gap: 8px; }
.calc-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; }
.calc-check:has(input:checked) { border-color: var(--brand-emerald-green); background: #F1F8EE; }
.calc-check input { accent-color: var(--brand-emerald-green); width: 18px; height: 18px; }
.calc-check span { flex: 1; }
.calc-check em { font-style: normal; color: var(--ink-soft); font-size: 13px; }
.calc-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-size { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink); font-family: inherit; }
.calc-size.is-active { background: var(--brand-emerald-core); border-color: var(--brand-emerald-core); color: #fff; }
.calc-result { background: var(--brand-emerald-core); color: #fff; border-radius: var(--radius-md); padding: clamp(20px, 2.6vw, 30px); }
.calc-result h3 { margin: 0 0 4px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-flame-amber); }
.calc-big { font-size: clamp(30px, 4vw, 42px); font-weight: 700; line-height: 1.1; }
.calc-sub { margin-top: 4px; color: rgba(255, 255, 255, .82); font-size: 14px; }
.calc-lines { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.calc-lines li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 14.5px; }
.calc-lines li:last-child { border-bottom: 0; }
.calc-lines b { font-variant-numeric: tabular-nums; }
.calc-meter { margin-top: 16px; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.calc-meter span { display: block; height: 100%; background: var(--brand-flame-amber); border-radius: 999px; transition: width .3s ease; }
.calc-verdict { margin-top: 12px; font-size: 14.5px; line-height: 1.55; }
.calc-result .btn { margin-top: 18px; }

/* ── How it works ───────────────────────────────────────────────────── */
.flow { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: flow; }
@media (min-width: 48em) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.flow li { counter-increment: flow; display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; line-height: 1.5; }
.flow li::before {
    content: counter(flow); flex: none; width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; background: var(--brand-emerald-core); color: var(--brand-flame-amber); font-weight: 700; font-size: 14px;
}

/* ── Process steps ──────────────────────────────────────────────────── */
.solar-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40em) { .solar-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .solar-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.solar-steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; }
.solar-steps .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-flame-amber); color: var(--brand-charcoal); font-weight: 700; }
.solar-steps strong { display: block; margin-top: 12px; font-size: 16px; color: var(--brand-emerald-core); }
.solar-steps span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

/* ── ROI chart (commercial) ─────────────────────────────────────────── */
.roi-chart { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 2vw, 22px); align-items: end; height: 260px; margin-top: 26px; padding: 0 4px; position: relative; border-bottom: 2px solid var(--line); }
.roi-bar { position: relative; background: var(--brand-emerald-green); border-radius: 8px 8px 0 0; display: flex; justify-content: center; }
.roi-bar.is-profit { background: var(--brand-emerald-core); }
.roi-bar b { position: absolute; top: -24px; font-size: 13px; color: var(--ink); white-space: nowrap; }
.roi-line { position: absolute; left: 0; right: 0; z-index: 2; border-top: 2px dashed var(--brand-flame-orange); }
.roi-line span { position: absolute; left: 0; top: -26px; font-size: 12.5px; font-weight: 700; color: var(--brand-flame-orange); background: #fff; padding: 0 6px; }
.roi-years { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 2vw, 22px); text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

/* ── Related plant links ────────────────────────────────────────────── */
.plant-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.plant-links a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--brand-emerald-core); text-decoration: none; }
.plant-links a:hover, .plant-links a.is-active { border-color: var(--brand-emerald-green); background: #F1F8EE; }

/* ── Image pair ─────────────────────────────────────────────────────── */
.solar-figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); background: #EDF3EB; }
.solar-figure img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.solar-figure--tall img { aspect-ratio: 4 / 5; }
