/* ============================================================
   Calculator Hub — public styles (blue theme, matches reference)
   ============================================================ */
:root {
    --blue: #1377C2;
    --blue-dark: #0d5fa3;
    --blue-light: #ddeeff;
    --blue-xlt: #f0f7ff;
    --accent: #16a34a;
    --accent-dark: #15803d;
    --ink: #1a1a2e;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #ffffff;
    --card: #fff;
    --surface: #f3f5f8;       /* soft gray for card surfaces */
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    overflow-x: clip;          /* kill stray horizontal scroll without breaking sticky (clip ≠ scroll container) */
    max-width: 100%;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header / footer */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: #dc2626; }
.site-brand:hover { text-decoration: none; }
.site-brand-icon { font-size: 24px; }
.site-nav { display: flex; align-items: center; }
.site-nav a { color: var(--ink); font-weight: 600; margin-left: 22px; white-space: nowrap; }
/* Hamburger toggle (hidden on desktop, shown on mobile via media query) */
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; margin: -8px -8px -8px 0; cursor: pointer; border-radius: 8px; }
.nav-burger:hover { background: var(--line); }
.nav-burger span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.site-main { min-height: 70vh; }
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 24px 0; color: var(--muted); font-size: 14px; text-align: center; }
.social-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; }
.site-disclaimer { max-width: 820px; margin: 0 auto 18px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); text-align: left; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.site-disclaimer .disclaimer-title { font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; font-size: 11.5px; margin: 0 0 8px; }
.site-disclaimer p { margin: 0 0 8px; }
.site-disclaimer ul { margin: 0 0 8px; padding-left: 18px; }
.site-disclaimer li { margin: 0 0 4px; }
.site-disclaimer strong { color: var(--ink); }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--blue-dark); font-weight: 700; font-size: 15px; text-decoration: none; transition: all .15s; }
.social-icon:hover { background: var(--blue); color: #fff; border-color: var(--blue); text-decoration: none; transform: translateY(-2px); }

/* Breadcrumbs */
.breadcrumbs-bar { background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 11px 0; font-size: 13px; }
.breadcrumb-item { display: inline-flex; align-items: center; color: var(--muted); }
.breadcrumb-item a { color: var(--blue); font-weight: 600; }
.breadcrumb-sep { margin: 0 8px; color: #9ca3af; }
.breadcrumb-item [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* FAQ section (AEO) */
.faq-section { max-width: 820px; margin: 40px auto 8px; }
.faq-inline { max-width: none; margin: 20px 0 0; }
.faq-heading { font-size: 22px; color: var(--blue-dark); margin: 0 0 16px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); }
.faq-q { cursor: pointer; font-weight: 700; font-size: 15px; padding: 15px 44px 15px 16px; list-style: none; position: relative; color: var(--ink); }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--blue); font-weight: 400; }
.faq-item[open] .faq-q { color: var(--blue-dark); }
.faq-item[open] .faq-q::after { content: "−"; }
.faq-a { padding: 0 16px 16px; color: #374151; font-size: 14.5px; line-height: 1.6; }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--blue-light) 0%, #fff8e1 100%);
    border-bottom: 1px solid var(--line);
    padding: 56px 0; text-align: center; margin-bottom: 40px;
}
.hero-sm { padding: 40px 0 36px; }
.hero-icon { width: 88px; height: 88px; margin: 0 auto 16px; display: grid; place-items: center; font-size: 44px; background: #fff; border-radius: 50%; box-shadow: 0 8px 24px rgba(19,119,194,.18); }
.hero-title { font-size: 38px; margin: 0 0 10px; font-weight: 800; color: var(--blue-dark); letter-spacing: -.5px; }
.hero-sub { font-size: 18px; color: var(--muted); margin: 0 auto; max-width: 600px; }

/* Calculator grid (home) */
.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.calc-card {
    position: relative; overflow: hidden;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 22px 26px; text-align: center; color: var(--ink);
    box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s;
    display: flex; flex-direction: column; align-items: center;
}
.calc-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--blue), #1a8fd1); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.calc-card:hover { transform: translateY(-5px); text-decoration: none; border-color: var(--blue-light); box-shadow: 0 16px 34px rgba(19,119,194,.16); }
.calc-card:hover::before { transform: scaleX(1); }
.calc-card-icon { width: 78px; height: 78px; margin: 0 auto 16px; display: grid; place-items: center; font-size: 38px; background: var(--blue-xlt); border-radius: 50%; transition: background .18s, transform .18s; }
.calc-card:hover .calc-card-icon { background: var(--blue-light); transform: scale(1.05); }
.calc-card-title { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.calc-card-tagline { color: var(--muted); font-size: 14px; margin: 0 0 16px; flex: 1; line-height: 1.5; }
.calc-card-cta { color: var(--blue); font-weight: 700; font-size: 14px; }

.content-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); margin-top: 24px; }
.prose { color: #374151; line-height: 1.7; }
.muted { color: var(--muted); }
.empty-state { text-align: center; padding: 60px 24px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 40px auto; max-width: 520px; }
.empty-state .empty-icon { font-size: 56px; }
.empty-state h1 { font-size: 72px; margin: 8px 0 0; color: var(--blue-dark); font-weight: 800; line-height: 1; }
.empty-state h2 { margin: 6px 0 4px; color: var(--ink); }
.empty-state p { margin: 0 0 22px; }

.btn { display: inline-block; border: none; border-radius: 50px; padding: 10px 20px; font-weight: 700; cursor: pointer; font-size: 15px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; }
.btn-outline { background: #fff; border: 1px solid var(--line); color: var(--ink); }

.solar-back-link { margin: 20px auto 0; }

/* ============================================================
   Business directory
   ============================================================ */
/* Combined filter card: category chips + area select read as one unit */
.biz-filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 22px; display: flex; flex-direction: column; gap: 12px; }
.biz-filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.biz-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-area-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.baf-label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); min-width: 108px; }
.baf-select { position: relative; }
.baf-select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.baf-select select { -webkit-appearance: none; -moz-appearance: none; appearance: none; background: var(--blue-xlt); border: 1px solid var(--line); border-radius: 50px; padding: 9px 40px 9px 16px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; min-width: 220px; transition: border-color .15s, box-shadow .15s; }
.baf-select select:hover { border-color: var(--blue-light); }
.baf-select select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(19,119,194,.15); }
.baf-clear { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 7px 12px; border-radius: 50px; }
.baf-clear:hover { background: var(--blue-xlt); color: var(--blue-dark); text-decoration: none; }
.biz-chip { background: #fff; border: 1px solid var(--line); border-radius: 50px; padding: 7px 16px; font-size: 14px; font-weight: 600; color: var(--ink); }
.biz-chip:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.biz-chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.biz-card { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.biz-card:hover { transform: translateY(-3px); border-color: var(--blue-light); box-shadow: 0 12px 26px rgba(19,119,194,.14); text-decoration: none; }
.biz-card-top { display: flex; gap: 12px; align-items: center; }
.biz-logo { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.biz-logo-empty { display: grid; place-items: center; background: var(--blue-xlt); font-size: 24px; }
.biz-card-head { min-width: 0; }
.biz-name { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 700; }
.biz-tagline { margin: 3px 0 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.biz-verified { color: var(--green); font-size: .85em; }
.biz-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.biz-meta .tag { background: var(--blue-xlt); color: var(--blue-dark); border-radius: 50px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
/* footer aligns to the card bottom so rating/location line up across the grid */
.biz-card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; }
.biz-foot-row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.biz-rating .biz-stars { color: #f5a623; font-size: 15px; line-height: 1; }
.biz-rating .biz-rating-val { color: var(--ink); font-weight: 700; }
.biz-rating .biz-rating-count { color: var(--muted); }
.biz-areas .biz-pin { font-size: 12px; }
.biz-detail-logo { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; margin: 0 auto 14px; display: block; box-shadow: 0 6px 20px rgba(19,119,194,.18); background: #fff; }
.claim-form { margin-top: 16px; }
.claim-form .form-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.claim-form .form-field { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; color: #334155; }
.claim-form input, .claim-form textarea {
    display: block; width: 100%; box-sizing: border-box;
    padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
    font-size: 15px; font-family: inherit; font-weight: 400; color: var(--ink); background: #fff;
}
.claim-form textarea { resize: vertical; min-height: 88px; }
.claim-form input:focus, .claim-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(19,119,194,.15); }
.claim-form input[type="file"] { padding: 9px 11px; background: #f8fafc; cursor: pointer; font-size: 13px; }
.claim-form .ct-hint { font-weight: 400; font-size: 12px; color: var(--muted); }
.claim-form .form-note { font-size: 12px; color: var(--muted); margin: 4px 0 14px; }
.claim-form .btn { width: 100%; justify-content: center; text-align: center; }

/* claim / generic modal box polish */
.sc-modal-box.claim-modal-box { max-width: 480px; padding: 0; }
.claim-modal-box .claim-modal-head { padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.claim-modal-box .claim-modal-head h3 { margin: 0 0 4px; color: var(--blue-dark); font-size: 19px; }
.claim-modal-box .claim-modal-head p { margin: 0; color: var(--muted); font-size: 13px; }
.claim-modal-box .claim-form { margin: 0; padding: 20px 24px 24px; }
.claim-modal-box .sc-modal-close { top: 16px; right: 18px; }

/* ============================================================
   Generic calculator tools (age, date, …)
   ============================================================ */
.calc-tool {
    width: 100%;
    margin: 0 0 8px;
    padding: 24px;
    background: linear-gradient(135deg, #eaf2ff 0%, #eef1ff 45%, #f4edff 100%);
    border: 1px solid #d9e3f5;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(19,119,194,.13), inset 0 1px 0 rgba(255,255,255,.6);
    position: relative;
    overflow: hidden;
}
.calc-tool::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--blue) 0%, #7c5cff 55%, #f59e0b 100%);
}

/* Segmented tab control */
.ct-tabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 20px; padding: 5px; background: #e6eef6; border-radius: 50px; flex-wrap: wrap; justify-content: center; }
.ct-tab { background: transparent; border: none; color: var(--muted); font-weight: 700; font-size: 14px; padding: 9px 22px; border-radius: 50px; cursor: pointer; transition: all .15s; }
.ct-tab:hover { color: var(--blue-dark); }
.ct-tab.is-active { background: #fff; color: var(--blue-dark); box-shadow: 0 2px 6px rgba(0,0,0,.12); }

/* Input card */
.ct-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.ct-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.ct-field { display: flex; flex-direction: column; gap: 7px; }
.ct-field label { font-weight: 700; font-size: 12px; color: #334155; text-transform: uppercase; letter-spacing: .5px; }
.ct-field input, .ct-field select { padding: 12px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: 15px; font-family: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; }
.ct-field input:focus, .ct-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(19,119,194,.15); }
.ct-hint { font-size: 12px; color: var(--muted); }
.ct-actions { margin-top: 24px; text-align: center; }
.ct-actions .btn { padding: 14px 36px; font-size: 16px; box-shadow: 0 4px 14px rgba(19,119,194,.3); }
.ct-actions .btn:hover { transform: translateY(-1px); }
.ct-error { color: #dc2626; font-size: 14px; font-weight: 600; margin: 14px 0 0; text-align: center; }

/* Result card — gradient headline banner + stat tiles */
.ct-results { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-top: 20px; }
.ct-headline { background: linear-gradient(135deg, var(--blue) 0%, #1a8fd1 100%); color: #fff; text-align: center; font-size: 30px; font-weight: 800; padding: 30px 20px; line-height: 1.3; }
.ct-headline span { color: #fff; font-size: 1.18em; }
.ct-headline-date .add-result-date { font-size: 1em; }

.ct-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 12px; padding: 22px; }
.ct-stat { background: var(--blue-xlt); border: 1px solid var(--blue-light); border-radius: var(--radius-sm); padding: 16px 10px; text-align: center; transition: transform .15s; }
.ct-stat:hover { transform: translateY(-2px); }
.ct-stat-num { font-size: 22px; font-weight: 800; color: var(--blue-dark); }
.ct-stat-label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }

.ct-notes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 4px 22px 24px; }
.ct-stat-grid + .ct-notes { padding-top: 0; }
.ct-note { background: #f9fafb; border: 1px solid var(--line); border-radius: 50px; padding: 9px 18px; font-size: 14px; }
.ct-note span { color: var(--muted); }
.ct-note strong { color: var(--blue-dark); }

.ct-about { margin: 20px 0 0; }
.ct-about h3 { margin: 0 0 10px; color: var(--blue-dark); }

/* ── Two-column calculator layout (main + sidebar) ── */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; margin-top: 28px; }
.calc-main { min-width: 0; }
.calc-main > .content-card:first-child { margin-top: 0; }

.calc-sidebar { display: flex; flex-direction: column; }
.sidebar-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 16px 10px; margin-bottom: 20px; }
.sidebar-card h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sidebar-cat { margin-bottom: 12px; }
.sidebar-cat-label { font-size: 12px; font-weight: 700; color: var(--blue-dark); margin: 4px 4px 4px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.sidebar-link:hover { background: var(--blue-xlt); text-decoration: none; color: var(--blue-dark); }
.sidebar-link.is-current { background: var(--blue-light); color: var(--blue-dark); }
.sidebar-link-icon { font-size: 18px; flex: none; width: 24px; text-align: center; }
.sidebar-link-name { display: block; }
.sidebar-link-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.sidebar-link.is-current .sidebar-link-sub { color: var(--blue); }

/* Full-width page template + bottom widgets */
.page-full { margin-top: 28px; }
.legal-page { max-width: 820px; margin: 0 auto; color: var(--ink); line-height: 1.7; font-size: 15px; }
.legal-page h2 { font-size: 18px; color: var(--blue-dark); margin: 26px 0 8px; }
.legal-page p { margin: 0 0 12px; }
.legal-page ul { margin: 0 0 12px; padding-left: 20px; }
.legal-page li { margin: 0 0 6px; }
.footer-links { margin: 0 0 6px; }
.footer-links a { color: var(--blue); font-weight: 600; }
/* On-screen keypad calculators (basic / scientific) */
.ct-calc-display { width: 100%; box-sizing: border-box; text-align: right; font-size: 28px; font-family: monospace; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f8fafc; margin-bottom: 12px; }
.ct-keys-bar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.ct-deg-toggle { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ct-keys { display: grid; gap: 8px; }
.ct-keys-4 { grid-template-columns: repeat(4, 1fr); }
.ct-keys-5 { grid-template-columns: repeat(5, 1fr); }
.ct-key { padding: 16px 0; font-size: 18px; font-weight: 600; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); cursor: pointer; transition: background .12s, transform .05s; }
.ct-key:hover { background: #f1f5f9; }
.ct-key:active { transform: translateY(1px); }
.ct-key-op { background: #eff6ff; color: var(--blue-dark); }
.ct-key-fn { background: #f8fafc; color: var(--muted); font-size: 15px; }
.ct-key-eq { background: var(--blue); color: #fff; border-color: var(--blue); }
.ct-key-eq:hover { background: var(--blue-dark); }
@media (max-width: 640px) { .ct-key { padding: 13px 0; font-size: 16px; } .ct-key-fn { font-size: 13px; } .ct-calc-display { font-size: 24px; } }
.page-footer-widgets { margin-top: 36px; }
.footer-widget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.ad-leaderboard { min-height: 120px; }

/* Rendered ads */
.ad-unit { text-align: center; margin: 0 0 20px; }
.ad-unit img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 0 auto; }
.ad-unit[data-ad-slot="sidebar-bottom"] { position: sticky; top: 84px; }
.ad-banner-wrap { margin: 10px auto 30px; }
.ad-banner-wrap .ad-unit { margin: 0; }
.ad-banner-wrap .ad-unit img { max-height: 120px; width: auto; }

/* Advertisement placeholders */
.ad-slot { background: var(--surface); border: 1px dashed #c3cfdd; border-radius: var(--radius); min-height: 250px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.ad-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #aab4c2; }
.ad-sticky { position: sticky; top: 84px; }

@media (max-width: 900px) {
    .calc-layout { grid-template-columns: 1fr; gap: 0; }
    .calc-sidebar { order: 2; margin-top: 8px; }
    .ad-sticky { position: static; }
}
/* Mobile header: collapse the category nav behind a hamburger */
@media (max-width: 860px) {
    .nav-burger { display: flex; }
    .site-nav {
        position: absolute; top: 64px; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: 0 8px 16px rgba(0,0,0,.08);
        max-height: 0; overflow: hidden; transition: max-height .25s ease;
    }
    .nav-toggle:checked ~ .site-nav { max-height: 80vh; overflow-y: auto; }
    .site-nav a { margin-left: 0; padding: 14px 20px; border-top: 1px solid var(--line); white-space: normal; }
    .site-nav a:first-child { border-top: 0; }
    /* animate burger into an X when open */
    .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
    .ct-headline { font-size: 24px; padding: 24px 16px; }
    .calc-tool { padding: 16px; }
}

/* ============================================================
   Solar calculator widget  (scoped to .solar-calc-wrap)
   ============================================================ */
.solar-calc-wrap {
    font-size: 15px;
    color: var(--ink);
    line-height: 1.5;
    width: 100%;
    margin: 0;
    padding: 0;
}
.solar-calc-wrap * { box-sizing: border-box; }

/* Header */
.solar-calc-wrap .sc-header {
    text-align: center;
    padding: 40px 24px 32px;
    background: linear-gradient(135deg, var(--blue-light) 0%, #fff8e1 100%);
    border-radius: var(--radius) var(--radius) 0 0;
    border: 1px solid var(--line);
    border-bottom: none;
}
.solar-calc-wrap .sc-header-sun { font-size: 52px; display: block; margin-bottom: 12px; animation: sc-spin-slow 20s linear infinite; }
@keyframes sc-spin-slow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.solar-calc-wrap .sc-title { font-size: 28px; font-weight: 800; color: var(--blue-dark); margin: 0 0 8px; line-height: 1.2; }
.solar-calc-wrap .sc-subtitle { font-size: 16px; color: var(--muted); margin: 0; }

/* Sections — connected into one card */
.solar-calc-wrap .sc-section { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 14px; padding: 30px; box-shadow: 0 4px 18px rgba(16,40,80,.06); }
.solar-calc-wrap .sc-section-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid #f1f3f7; }
.solar-calc-wrap .sc-step-badge { flex-shrink: 0; width: 36px; height: 36px; background: var(--blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; margin-top: 2px; }
.solar-calc-wrap .sc-section-head h3 { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.solar-calc-wrap .sc-section-desc { font-size: 13px; color: var(--muted); margin: 0; }

/* Appliance grid */
.solar-calc-wrap .sc-appliances-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-bottom: 24px; }
.solar-calc-wrap .sc-appliance-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f9fafb; transition: all .2s ease; overflow: hidden; }
.solar-calc-wrap .sc-appliance-card:hover { border-color: var(--blue); background: var(--blue-xlt); }
.solar-calc-wrap .sc-appliance-card.sc-active { border-color: var(--blue); background: var(--blue-xlt); box-shadow: 0 0 0 2px rgba(19,119,194,.12); }
.solar-calc-wrap .sc-app-top { display: flex; align-items: center; gap: 10px; padding: 12px 12px 8px; }
.solar-calc-wrap .sc-app-icon { font-size: 22px; flex-shrink: 0; width: 32px; text-align: center; }
.solar-calc-wrap .sc-app-info { flex: 1; min-width: 0; }
.solar-calc-wrap .sc-app-name { font-size: 12.5px; font-weight: 600; word-break: break-word; margin-bottom: 3px; }
.solar-calc-wrap .sc-app-watts-row { display: flex; align-items: center; flex-wrap: nowrap; gap: 3px; }
.solar-calc-wrap .sc-watts-input { width: 52px; flex: 0 0 52px; height: 22px; text-align: center; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; font-weight: 600; background: #fff; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.solar-calc-wrap .sc-watts-input::-webkit-outer-spin-button,
.solar-calc-wrap .sc-watts-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.solar-calc-wrap .sc-watts-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(19,119,194,.15); }
.solar-calc-wrap .sc-watts-unit { font-size: 11px; color: var(--muted); }
.solar-calc-wrap .sc-app-total-watts { font-size: 11px; font-weight: 700; color: var(--blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Qty controls */
.solar-calc-wrap .sc-app-qty { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.solar-calc-wrap .sc-qty-btn { width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: all .2s ease; color: var(--blue); padding: 0; }
.solar-calc-wrap .sc-qty-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.solar-calc-wrap .sc-qty-btn:active { transform: scale(.9); }
.solar-calc-wrap .sc-qty-input { width: 40px; height: 28px; text-align: center; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; font-weight: 600; background: #fff; -moz-appearance: textfield; appearance: textfield; padding: 0; }
.solar-calc-wrap .sc-qty-input::-webkit-outer-spin-button,
.solar-calc-wrap .sc-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.solar-calc-wrap .sc-qty-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(19,119,194,.15); }

/* Variant + hours rows */
.solar-calc-wrap .sc-app-variant-row,
.solar-calc-wrap .sc-app-hours-row { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; padding: 5px 12px 6px; border-top: 1px dashed rgba(19,119,194,.18); background: rgba(19,119,194,.04); }
.solar-calc-wrap .sc-app-hours-row { padding-bottom: 9px; }
.solar-calc-wrap .sc-variant-label,
.solar-calc-wrap .sc-app-hours-label { font-size: 12px; font-weight: 700; color: #334155; white-space: nowrap; flex-shrink: 0; }
.solar-calc-wrap .sc-variant-select { flex: 1 1 auto; min-width: 0; height: 26px; font-size: 12px; font-weight: 600; color: var(--blue-dark); background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; cursor: pointer; }
.solar-calc-wrap .sc-variant-select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(19,119,194,.18); }
.solar-calc-wrap .sc-hours-input { width: 46px; flex: 0 0 46px; height: 24px; text-align: center; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; font-weight: 700; color: var(--blue-dark); background: #fff; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.solar-calc-wrap .sc-hours-input::-webkit-outer-spin-button,
.solar-calc-wrap .sc-hours-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.solar-calc-wrap .sc-hours-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(19,119,194,.18); }
.solar-calc-wrap .sc-app-hours-unit { font-size: 12px; font-weight: 600; color: #475569; white-space: nowrap; flex-shrink: 0; }
.solar-calc-wrap .sc-appliance-card:not(.sc-active) .sc-app-hours-row,
.solar-calc-wrap .sc-appliance-card:not(.sc-active) .sc-app-variant-row { opacity: .78; }

/* Card actions */
.solar-calc-wrap .sc-card-actions { display: flex; gap: 6px; justify-content: flex-end; padding: 5px 8px 6px; border-top: 1px solid var(--line); background: #fff; }
.solar-calc-wrap .sc-card-action-btn { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 50px; border: 1px solid; cursor: pointer; background: transparent; line-height: 1.4; transition: all .2s ease; white-space: nowrap; }
.solar-calc-wrap .sc-card-copy { color: var(--blue); border-color: #bfdbfe; }
.solar-calc-wrap .sc-card-copy:hover { background: var(--blue-light); border-color: var(--blue); }
.solar-calc-wrap .sc-card-delete { color: #dc2626; border-color: #fecaca; }
.solar-calc-wrap .sc-card-delete:hover { background: #fef2f2; border-color: #dc2626; }

/* Step 1: appliances + sticky summary sidebar */
.solar-calc-wrap .sc-step1-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
.solar-calc-wrap .sc-step1-main { min-width: 0; }
.solar-calc-wrap .sc-step1-side { position: sticky; top: 80px; }
.solar-calc-wrap .sc-step1-side .sc-summary-bar { flex-direction: column; margin-bottom: 14px; }
.solar-calc-wrap .sc-step1-side .sc-summary-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); min-width: 0; }
.solar-calc-wrap .sc-step1-side .sc-summary-item:last-child { border-bottom: none; }
.solar-calc-wrap .sc-step1-side .sc-btn { width: 100%; justify-content: center; }
/* IPS backup-time control (in the sticky side panel) */
.solar-calc-wrap .sc-backup-control { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; }
.solar-calc-wrap .sc-backup-label { display: block; font-size: 13px; font-weight: 700; color: var(--blue-dark); margin-bottom: 8px; }
.solar-calc-wrap .sc-backup-input-row { display: flex; align-items: center; gap: 6px; }
.solar-calc-wrap .sc-backup-input { width: 64px; text-align: center; font-size: 16px; font-weight: 700; padding: 7px 4px; border: 1px solid var(--line); border-radius: 8px; -moz-appearance: textfield; }
.solar-calc-wrap .sc-backup-input::-webkit-outer-spin-button,
.solar-calc-wrap .sc-backup-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.solar-calc-wrap .sc-backup-unit { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 2px; }
@media (max-width: 860px) {
    .solar-calc-wrap .sc-step1-layout { grid-template-columns: 1fr; }
    /* Pin the summary + Calculate button to the bottom of the screen on mobile. */
    .solar-calc-wrap .sc-step1-side {
        position: fixed; left: 0; right: 0; bottom: 0; top: auto;
        z-index: 60;
        box-sizing: border-box;
        overflow: hidden;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 -6px 22px rgba(15, 23, 42, .14);
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        margin: 0;
    }
    .solar-calc-wrap .sc-step1-side .sc-summary-bar { flex-direction: row; flex-wrap: nowrap; margin-bottom: 8px; }
    .solar-calc-wrap .sc-step1-side .sc-summary-item { min-width: 0; padding: 9px 8px; border-bottom: none; border-right: 1px solid rgba(255,255,255,.15); text-align: center; align-items: center; }
    .solar-calc-wrap .sc-step1-side .sc-summary-item:last-child { border-right: none; }
    .solar-calc-wrap .sc-step1-side .sc-btn { width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 14px; white-space: normal; }
    .solar-calc-wrap .sc-step1-side .sc-calc-hint { margin: 4px 0 0; font-size: 12px; }
    /* keep the last appliances reachable above the fixed bar */
    .solar-calc-wrap .sc-step1-main { padding-bottom: 210px; }
}

/* Summary bar */
.solar-calc-wrap .sc-summary-bar { display: flex; flex-wrap: wrap; background: linear-gradient(135deg, var(--blue) 0%, #1a8fd1 100%); border-radius: var(--radius-sm); color: #fff; margin-bottom: 24px; overflow: hidden; }
.solar-calc-wrap .sc-summary-item { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 130px; padding: 18px 22px; border-right: 1px solid rgba(255,255,255,.15); }
.solar-calc-wrap .sc-summary-item:last-child { border-right: none; }
.solar-calc-wrap .sc-summary-label { font-size: 10px; text-transform: uppercase; letter-spacing: .7px; opacity: .85; font-weight: 600; }
.solar-calc-wrap .sc-summary-value { font-size: 22px; font-weight: 800; line-height: 1; }

/* Calculate button + shared buttons */
.solar-calc-wrap .sc-calc-btn-area { text-align: center; }
.solar-calc-wrap .sc-calc-hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.solar-calc-wrap .sc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; font-size: 15px; font-weight: 700; border-radius: 50px; border: 2px solid transparent; cursor: pointer; transition: all .2s ease; text-decoration: none; line-height: 1; white-space: nowrap; }
.solar-calc-wrap .sc-btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 4px 14px rgba(19,119,194,.35); }
.solar-calc-wrap .sc-btn-primary:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }
.solar-calc-wrap .sc-btn-primary:disabled,
.solar-calc-wrap .sc-btn-primary[aria-disabled="true"] { background: #93c3e8; border-color: #93c3e8; box-shadow: none; cursor: not-allowed; transform: none; }
.solar-calc-wrap .sc-btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.solar-calc-wrap .sc-btn-outline:hover { background: var(--blue-xlt); }
.solar-calc-wrap .sc-btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.solar-calc-wrap .sc-btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.solar-calc-wrap .sc-btn-sm { padding: 10px 20px; font-size: 14px; }

/* Loading + error */
.solar-calc-wrap .sc-loading { text-align: center; padding: 48px 24px; color: var(--muted); }
.solar-calc-wrap .sc-spinner { width: 48px; height: 48px; border: 4px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: sc-spin .8s linear infinite; margin: 0 auto 16px; }
@keyframes sc-spin { to { transform: rotate(360deg); } }
.solar-calc-wrap .sc-error-msg { background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius-sm); color: #dc2626; padding: 16px 20px; margin-bottom: 20px; }

/* Requirement chips */
.solar-calc-wrap .sc-requirements-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.solar-calc-wrap .sc-requirements-bar.sc-requirements-bar-hidden { display: none; }
.solar-calc-wrap .sc-req-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; background: var(--blue-light); color: var(--blue-dark); border-radius: 50px; font-size: 13px; font-weight: 500; border: 1px solid rgba(19,119,194,.2); }
.solar-calc-wrap .sc-req-key { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

/* Category cards */
.solar-calc-wrap .sc-cards-section-head { margin-bottom: 14px; }
.solar-calc-wrap .sc-cards-section-head h4 { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: .5px; }
.solar-calc-wrap .sc-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 32px; }
.solar-calc-wrap .sc-cat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.solar-calc-wrap .sc-cat-header { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--blue-xlt); border-bottom: 1px solid var(--line); }
.solar-calc-wrap .sc-cat-panels .sc-cat-header   { background: linear-gradient(135deg, #fffde7, #f0f7ff); }
.solar-calc-wrap .sc-cat-inverter .sc-cat-header { background: linear-gradient(135deg, #e8f0fe, #f0f7ff); }
.solar-calc-wrap .sc-cat-battery .sc-cat-header  { background: linear-gradient(135deg, #fce4ec, #f0f7ff); }
.solar-calc-wrap .sc-cat-icon { font-size: 28px; flex-shrink: 0; }
.solar-calc-wrap .sc-cat-header h4 { font-size: 15px; font-weight: 700; margin: 0 0 2px; }
.solar-calc-wrap .sc-cat-spec { font-size: 12px; color: var(--muted); }
.solar-calc-wrap .sc-cat-products { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.solar-calc-wrap .sc-cat-empty { text-align: center; padding: 24px 16px; color: var(--muted); font-size: 13px; }

/* Product item */
.solar-calc-wrap .sc-prod-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: all .2s ease; position: relative; }
.solar-calc-wrap .sc-prod-item:hover { border-color: var(--blue); background: var(--blue-xlt); }
.solar-calc-wrap .sc-prod-item.sc-best-match { border-color: var(--blue); background: var(--blue-xlt); }
.solar-calc-wrap .sc-prod-item.sc-featured { border-color: #f59e0b; background: #fffbeb; }
.solar-calc-wrap .sc-prod-item.sc-featured:hover { background: #fef3c7; }
.solar-calc-wrap .sc-best-badge,
.solar-calc-wrap .sc-featured-badge { position: absolute; top: -1px; right: -1px; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 0 var(--radius-sm) 0 var(--radius-sm); text-transform: uppercase; letter-spacing: .5px; }
.solar-calc-wrap .sc-best-badge { background: var(--blue); }
.solar-calc-wrap .sc-featured-badge { background: #f59e0b; }
.solar-calc-wrap .sc-prod-img-wrap { flex-shrink: 0; width: 60px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; background: #f9fafb; border: 1px solid var(--line); }
.solar-calc-wrap .sc-prod-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.solar-calc-wrap .sc-prod-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.solar-calc-wrap .sc-prod-info { flex: 1; min-width: 0; }
.solar-calc-wrap .sc-prod-name { font-size: 13px; font-weight: 600; margin-bottom: 3px; line-height: 1.35; }
.solar-calc-wrap .sc-prod-meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.solar-calc-wrap .sc-prod-out-of-stock { font-size: 11px; color: #dc2626; font-weight: 600; margin-top: 4px; }
.solar-calc-wrap .sc-prod-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.solar-calc-wrap .sc-prod-unit-price { font-size: 12px; color: var(--muted); }
.solar-calc-wrap .sc-prod-total-price { font-size: 15px; font-weight: 700; color: var(--blue-dark); }
.solar-calc-wrap .sc-prod-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.solar-calc-wrap .sc-prod-btn { font-size: 12px; padding: 6px 12px; border-radius: 50px; font-weight: 600; cursor: pointer; border: 1px solid; transition: all .2s ease; display: inline-flex; align-items: center; gap: 4px; line-height: 1; }
.solar-calc-wrap .sc-prod-btn-view { background: transparent; color: var(--blue); border-color: var(--blue); }
.solar-calc-wrap .sc-prod-btn-view:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* Bundle */
.solar-calc-wrap .sc-bundle { background: linear-gradient(135deg, #f0f7ff, #fffde7); border: 2px solid var(--blue); border-radius: var(--radius); overflow: hidden; margin: 8px 0 28px; }
.solar-calc-wrap .sc-bundle-header { display: flex; align-items: center; gap: 16px; padding: 20px 24px 16px; background: linear-gradient(135deg, var(--blue) 0%, #1a8fd1 100%); color: #fff; }
.solar-calc-wrap .sc-bundle-header span:first-child { font-size: 32px; flex-shrink: 0; }
.solar-calc-wrap .sc-bundle-header h3 { font-size: 18px; font-weight: 800; margin: 0 0 4px; color: #fff; }
.solar-calc-wrap .sc-bundle-header p { font-size: 13px; opacity: .85; margin: 0; }
.solar-calc-wrap .sc-bundle-items { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.solar-calc-wrap .sc-bundle-item { flex: 1; min-width: 200px; background: #fff; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.solar-calc-wrap .sc-bundle-item-icon { font-size: 22px; flex-shrink: 0; }
.solar-calc-wrap .sc-bundle-item-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.solar-calc-wrap .sc-bundle-item-sub { font-size: 12px; color: var(--muted); }
.solar-calc-wrap .sc-bundle-item-price { margin-left: auto; font-size: 15px; font-weight: 700; color: var(--blue-dark); white-space: nowrap; }
.solar-calc-wrap .sc-bundle-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; padding: 14px 24px 18px; background: #fff; border-top: 2px dashed var(--line); }
.solar-calc-wrap .sc-bundle-total-info { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 2px; }
.solar-calc-wrap .sc-bundle-total-label { font-size: 14px; font-weight: 600; }
.solar-calc-wrap .sc-bundle-total-note { font-size: 11px; color: var(--muted); }
.solar-calc-wrap .sc-bundle-total-price { font-size: 24px; font-weight: 800; color: var(--blue-dark); white-space: nowrap; flex-shrink: 0; }

/* Business-page sidebar calculator tabs */
.biz-calc-card { padding: 0 !important; overflow: visible; }  /* visible so the sticky summary works */
.side-calc-tabs { display: flex; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.side-calc-panel { overflow: visible; }
.side-calc-tab { flex: 1; padding: 12px 8px; border: none; background: #eef2f7; color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; }
.side-calc-tab:hover { color: var(--blue-dark); }
.side-calc-tab.is-active { background: #fff; color: var(--blue-dark); border-bottom-color: var(--blue); }
.side-calc-panel { padding: 14px; }
.side-calc-blank { text-align: center; padding: 34px 16px; color: var(--muted); }
.side-calc-blank-icon { font-size: 34px; opacity: .6; margin-bottom: 8px; }

/* Lite solar calculator (sizing only; no product/business/quote) */
.solar-calc-wrap.sc-lite { padding: 0; }
.sc-lite .sc-section { border: none; border-radius: 0; box-shadow: none; padding: 0 0 8px; }
.sc-lite .sc-section-head { gap: 12px; margin-bottom: 16px; padding-bottom: 12px; }
.sc-lite-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 14px; }

/* Business hero (rich) */
.biz-hero { text-align: left; padding: 32px 0; }
.biz-hero .biz-detail-logo { margin: 0; width: 72px; height: 72px; }
.biz-hero-top { display: flex; gap: 16px; align-items: center; }
.biz-h1 { font-size: 15px; font-weight: 700; color: var(--blue-dark); margin: 0 0 2px; text-transform: none; letter-spacing: 0; }
.biz-bigname { font-size: 30px; font-weight: 800; color: var(--ink); margin: 0; line-height: 1.15; }
.biz-tagline-lg { font-size: 16px; color: var(--muted); margin: 6px 0 0; }
.biz-hero-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.biz-hero-cats .tag { background: #fff; border: 1px solid var(--blue-light); color: var(--blue-dark); border-radius: 50px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.biz-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 14px; color: #374151; }
.biz-hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.biz-hero-meta a { color: var(--blue); }
.biz-hero-desc { margin-top: 16px; color: #374151; line-height: 1.65; max-width: 800px; }
.biz-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.biz-hero-inner.has-photo { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.biz-hero-main { min-width: 0; }
.biz-hero-photo img { width: 100%; height: 240px; object-fit: cover; border-radius: 16px; box-shadow: 0 10px 28px rgba(19,119,194,.18); background: #fff; display: block; }
@media (max-width: 860px) {
    .biz-hero-inner.has-photo { grid-template-columns: 1fr; }
    .biz-hero-photo { order: -1; }
    .biz-hero-photo img { height: 200px; }
}
.biz-claim-line { margin-top: 16px; font-size: 13px; color: var(--muted); }
.biz-claim-line a { color: var(--blue); font-weight: 600; }
.biz-report-sep { margin: 0 6px; opacity: .5; }
.biz-claim-line a.biz-report-link { color: #b91c1c; }
.biz-claim-line a.biz-report-link:hover { color: #7f1d1d; }
.biz-claimed-note { color: var(--green); font-weight: 600; }

/* Full-width business calculator */
.biz-calc-full { margin-top: 24px; }
.biz-calc-card { background: #fff !important; }
.biz-calc-card .side-calc-panel { padding: 22px; }

/* Results header: title left, Adjust Appliances right */
.solar-calc-wrap .sc-results-head { justify-content: space-between; flex-wrap: wrap; }
.solar-calc-wrap .sc-results-head-text { flex: 1; min-width: 200px; }
.solar-calc-wrap .sc-results-head .sc-back-btn { flex: none; align-self: center; }

/* Share these results (live short link) */
.solar-calc-wrap .sc-share { margin: 22px 0; padding: 18px 20px; background: var(--blue-xlt); border: 1px solid rgba(19,119,194,.2); border-radius: 14px; }
.solar-calc-wrap .sc-share-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.solar-calc-wrap .sc-share-icon { font-size: 22px; line-height: 1; }
.solar-calc-wrap .sc-share-head h4 { margin: 0 0 2px; font-size: 16px; color: var(--blue-dark); }
.solar-calc-wrap .sc-share-link-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.solar-calc-wrap .sc-share-link { flex: 1 1 0; min-width: 200px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: #fff; color: var(--ink); }
.solar-calc-wrap .sc-share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.solar-calc-wrap .sc-share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #fff; border: none; cursor: pointer; text-decoration: none; }
.solar-calc-wrap .sc-share-wa { background: #25D366; }
.solar-calc-wrap .sc-share-fb { background: #1877F2; }
.solar-calc-wrap .sc-share-tg { background: #229ED9; }
.solar-calc-wrap .sc-share-x  { background: #000; }
.solar-calc-wrap .sc-share-em { background: #6b7280; }
.solar-calc-wrap .sc-share-native { background: var(--blue-dark); }
.solar-calc-wrap .sc-share-btn:hover { opacity: .9; }
.solar-calc-wrap .sc-share-status { margin: 10px 0 0; font-size: 13px; color: var(--accent-dark); min-height: 16px; }

/* Solar businesses block */
.solar-calc-wrap .sc-businesses { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.solar-calc-wrap .sc-biz-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.solar-calc-wrap .sc-biz-search { flex: 1; min-width: 200px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.solar-calc-wrap .sc-biz-loc { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.solar-calc-wrap .sc-biz-area { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: #fff; }
.solar-calc-wrap .sc-biz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.solar-calc-wrap .sc-biz-empty { color: var(--muted); text-align: center; padding: 16px; }

/* Back button */
.solar-calc-wrap .sc-back-area { text-align: center; padding: 8px 0; }

/* Toast */
.sc-toast { position: fixed; bottom: 24px; right: 24px; background: var(--blue); color: #fff; padding: 14px 20px; border-radius: 10px; font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.15); z-index: 999999; display: flex; align-items: center; gap: 10px; animation: sc-toast-in .3s ease forwards; max-width: 340px; }
@keyframes sc-toast-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.sc-toast.sc-toast-error { background: #dc2626; }

/* Quote modal */
.sc-modal { position: fixed; inset: 0; z-index: 9998; display: grid; place-items: center; }
.sc-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.sc-modal-box { position: relative; background: #fff; border-radius: 14px; padding: 28px; width: 92%; max-width: 460px; box-shadow: 0 20px 50px rgba(0,0,0,.3); max-height: 90vh; overflow: auto; }
.sc-modal-box h3 { margin: 0 0 6px; color: var(--blue-dark); }
.sc-modal-box .sc-section-desc { color: var(--muted); font-size: 13px; margin: 0; }
.sc-modal-close { position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 20px; cursor: pointer; color: var(--muted); }
.sc-quote-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.sc-quote-form label { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 4px; }
.sc-quote-form input, .sc-quote-form textarea { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-family: inherit; font-weight: 400; }
.sc-quote-form input:focus, .sc-quote-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(19,119,194,.15); }
.sc-quote-form .sc-btn-primary { justify-content: center; }
.sc-quote-hint { font-size: 12px; color: var(--muted); margin: 0; }

/* Responsive */
@media (max-width: 640px) {
    .hero-title { font-size: 28px; }
    .solar-calc-wrap .sc-section { padding: 20px 14px 24px; }
    .solar-calc-wrap .sc-title { font-size: 22px; }
    .solar-calc-wrap .sc-requirements-bar { gap: 8px; }
    .solar-calc-wrap .sc-req-chip { display: flex; width: 100%; justify-content: space-between; gap: 12px; border-radius: 12px; padding: 11px 16px; font-size: 14px; }
    .solar-calc-wrap .sc-req-key { flex-shrink: 0; }
    .solar-calc-wrap .sc-req-val { text-align: right; }
    .solar-calc-wrap .sc-summary-bar { flex-direction: column; }
    .solar-calc-wrap .sc-summary-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
    .solar-calc-wrap .sc-summary-item:last-child { border-bottom: none; }
    .solar-calc-wrap .sc-cards-grid,
    .solar-calc-wrap .sc-appliances-grid { grid-template-columns: 1fr; }
    .solar-calc-wrap .sc-btn { width: 100%; justify-content: center; }
    .solar-calc-wrap .sc-bundle-footer { flex-direction: column; align-items: stretch; }
    .solar-calc-wrap .sc-bundle-item { min-width: 100%; }
}

/* Home page category section headings */
.calc-cat-heading { font-size: 1.15rem; font-weight: 800; color: #1e293b; margin: 28px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.calc-cat-heading:first-of-type { margin-top: 8px; }

/* ── SEO content design system (rich text imported from .md) ──────────── */
.page-seo-content { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); line-height: 1.75; color: var(--ink); font-size: 15.5px; }

/* typography */
.page-seo-content h2 { font-size: 1.45rem; font-weight: 800; margin: 34px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--blue-light); }
.page-seo-content h2:first-child { margin-top: 0; }
.page-seo-content h3 { font-size: 1.15rem; font-weight: 700; margin: 26px 0 10px; padding-left: 10px; border-left: 4px solid var(--accent); }
.page-seo-content h4 { font-size: 1rem; font-weight: 700; margin: 20px 0 8px; color: var(--blue-dark); }
.page-seo-content p { margin: 0 0 14px; }
.page-seo-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.page-seo-content a:hover { color: var(--blue-dark); }
.page-seo-content ul, .page-seo-content ol { margin: 0 0 14px; padding-left: 24px; }
.page-seo-content li { margin-bottom: 5px; }
.page-seo-content li::marker { color: var(--accent); font-weight: 700; }
.page-seo-content hr { border: 0; border-top: 1px dashed var(--line); margin: 26px 0; }
.page-seo-content blockquote { margin: 18px 0; padding: 12px 18px; border-left: 4px solid var(--accent); background: #f0fdf4; border-radius: 0 10px 10px 0; color: #374151; }
.page-seo-content blockquote p:last-child { margin-bottom: 0; }
.page-seo-content code { background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: .9em; }
.page-seo-content pre { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 14px 18px; overflow-x: auto; margin: 18px 0; }
.page-seo-content pre code { background: none; border: 0; padding: 0; color: inherit; }

/* tables — table stays display:table so it fills width; the wrapper scrolls */
.page-seo-content .seo-table-wrap { margin: 20px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; -webkit-overflow-scrolling: touch; }
.page-seo-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.page-seo-content thead th { background: var(--blue); color: #fff; font-weight: 700; text-align: left; padding: 10px 14px; }
.page-seo-content tbody td { padding: 9px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.page-seo-content tbody tr:nth-child(even) { background: var(--blue-xlt); }
.page-seo-content tbody tr:hover { background: var(--blue-light); }
/* any table stored without a wrapper still fills width and scrolls */
.page-seo-content > table { display: block; max-width: 100%; overflow-x: auto; }

/* images & inline svg illustrations */
.page-seo-content img { max-width: 100%; height: auto; display: block; margin: 20px auto; border-radius: 12px; box-shadow: 0 4px 18px rgba(15, 23, 42, .10); }
.page-seo-content svg { max-width: 100%; height: auto; display: block; margin: 20px auto; border-radius: 12px; }
.page-seo-content figure { margin: 20px 0; text-align: center; }
.page-seo-content figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.page-seo-content [align="center"], .page-seo-content center { display: block; text-align: center; }

/* responsive video embeds */
.page-seo-content .seo-video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 20px 0; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 18px rgba(15, 23, 42, .12); background: #000; }
.page-seo-content .seo-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
