/* Saulės elektrinės skaičiuoklė – Žalias Pulsas */
.zp-solar {
    --zs-accent: #44c1b3;
    --zs-accent-dark: #2e9e92;
    --zs-accent-soft: #e8f7f5;
    --zs-sun: #d97a1e;
    --zs-cons: #0f8a7a;
    --zs-text: #2f3a39;
    --zs-muted: #6b7877;
    --zs-border: #e3e9e8;
    --zs-bg: #f6f9f9;
    --zs-card: #fff;
    --zs-warn: #b26a00;
    --zs-warn-bg: #fff4e2;
    --zs-bad: #b3261e;
    --zs-bad-bg: #fdecea;

    clear: both;
    display: flow-root;
    width: 100%;
    margin: 2rem 0;
    padding: 1.25rem;
    background: var(--zs-bg);
    border: 1px solid var(--zs-border);
    border-radius: 18px;
    color: var(--zs-text);
    font-family: inherit;
    line-height: 1.45;
}
.zp-solar *, .zp-solar *::before, .zp-solar *::after { box-sizing: border-box; }
.zp-solar [hidden] { display: none !important; }

.zps-header { margin-bottom: 1.25rem; text-align: left; }
.zps-eyebrow {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .75rem; margin-bottom: .75rem;
    background: #fdf1e4; color: #a35a12;
    border-radius: 50px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
}
.zps-eyebrow svg { width: 15px; height: 15px; fill: currentColor; }
.zp-solar h3 { margin: 0 0 .3rem !important; padding: 0 !important; font-size: 1.45rem; font-weight: 700 !important; line-height: 1.3; color: var(--zs-text); text-align: left !important; }
.zps-sub { margin: 0 !important; color: var(--zs-muted); font-size: .95rem; }

.zps-grid { display: grid; grid-template-columns: minmax(260px, 1fr) 1.6fr; gap: 1.75rem; align-items: start; }

.zps-inputs {
    background: var(--zs-card); border: 1px solid var(--zs-border); border-radius: 14px; padding: 1.1rem 1.1rem .4rem;
}
.zps-step {
    display: flex; align-items: center; gap: .5rem;
    margin: 0 0 .9rem; font-weight: 700; font-size: .95rem;
}
.zps-step span {
    display: inline-grid; place-items: center; width: 22px; height: 22px;
    border-radius: 50%; background: var(--zs-accent); color: #fff; font-size: .75rem;
}
.zps-inputs .zps-step:not(:first-child) { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--zs-border); }

.zps-field { margin-bottom: 1rem; }
.zps-label { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; font-size: .85rem; font-weight: 700; color: var(--zs-muted); }
.zps-val { color: var(--zs-text); font-size: .95rem; white-space: nowrap; }
.zps-input-row { display: flex; align-items: center; gap: .5rem; }
.zp-solar input[type=number], .zp-solar select {
    width: 100% !important; height: auto !important; margin: 0 !important;
    padding: .7rem .9rem !important; font: inherit !important; font-size: 1rem !important;
    color: var(--zs-text) !important; background-color: #fff !important;
    border: 1.5px solid var(--zs-border) !important; border-radius: 10px !important; box-shadow: none !important;
}
.zp-solar select {
    -webkit-appearance: none; appearance: none; padding-right: 2.4rem !important; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2344c1b3' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: right .9rem center !important; background-size: 12px 8px !important;
}
.zp-solar input[type=number]:focus, .zp-solar select:focus { outline: none !important; border-color: var(--zs-accent) !important; box-shadow: 0 0 0 3px rgba(68,193,179,.2) !important; }
.zps-unit { flex-shrink: 0; font-size: .85rem; color: var(--zs-muted); min-width: 4.5rem; }

.zps-link {
    display: inline; margin: .35rem 0 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
    color: var(--zs-accent-dark) !important; font: inherit !important; font-size: .82rem !important; text-decoration: underline; cursor: pointer; box-shadow: none !important;
}
.zps-check { display: flex !important; align-items: center; gap: .55rem; margin: .35rem 0 !important; font-size: .95rem; font-weight: 400 !important; cursor: pointer; }
.zps-check input { width: 18px; height: 18px; margin: 0 !important; accent-color: var(--zs-accent); }
.zps-sub-field { margin: .3rem 0 .6rem 1.7rem; }
.zps-seg { display: inline-flex; margin-top: .5rem; border: 1.5px solid var(--zs-border); border-radius: 10px; overflow: hidden; }
.zps-seg button {
    margin: 0 !important; padding: .45rem .8rem !important; border: 0 !important; border-radius: 0 !important;
    background: #fff !important; color: var(--zs-muted) !important; font: inherit !important; font-size: .82rem !important; cursor: pointer; box-shadow: none !important;
}
.zps-seg button.is-on { background: var(--zs-accent) !important; color: #fff !important; font-weight: 700 !important; }

.zp-solar input[type=range] { width: 100%; margin: .25rem 0 !important; accent-color: var(--zs-accent); cursor: pointer; }
.zps-hint { font-size: .8rem; color: var(--zs-muted); }
.zps-hint b { color: var(--zs-accent-dark); }

/* Results */
.zps-hero-box {
    padding: 1.2rem 1.4rem; border-radius: 14px; color: #fff;
    background: linear-gradient(135deg, var(--zs-accent), var(--zs-accent-dark));
    box-shadow: 0 8px 22px -12px rgba(46,158,146,.7);
}
.zps-hero-box span { display: block; font-size: .85rem; opacity: .9; font-weight: 600; }
.zps-hero-box b { display: block; font-size: 2.1rem; line-height: 1.15; margin: .15rem 0; }
.zps-hero-box em { font-style: normal; font-size: .88rem; opacity: .95; }

.zps-season { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.zps-season > div { padding: 1.1rem 1.2rem; border-radius: 14px; }
.zps-season span { display: block; font-size: .85rem; font-weight: 700; }
.zps-season b { display: block; font-size: 2rem; line-height: 1.2; }
.zps-season em { font-style: normal; font-size: .82rem; }
.zps-sum { background: #fdf1e4; color: #7a3f06; }
.zps-win { background: #e8eef6; color: #23405f; }

.zps-fit { margin-top: .75rem; }
.zps-fit-box { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid; }
.zps-fit-box i { flex-shrink: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-style: normal; font-weight: 700; font-size: .85rem; }
.zps-fit-box b { display: block; font-size: .95rem; }
.zps-fit-box span { display: block; font-size: .82rem; color: var(--zs-muted); margin-top: .15rem; }
.zps-fit-box.is-ok { border-color: var(--zs-accent); background: var(--zs-accent-soft); }
.zps-fit-box.is-ok i { background: var(--zs-accent-dark); }
.zps-fit-box.is-warn { border-color: #f0c27a; background: var(--zs-warn-bg); }
.zps-fit-box.is-warn i { background: var(--zs-warn); }
.zps-fit-box.is-bad { border-color: #f2b8b5; background: var(--zs-bad-bg); }
.zps-fit-box.is-bad i { background: var(--zs-bad); }

.zps-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .75rem; }
.zps-card { background: var(--zs-card); border: 1px solid var(--zs-border); border-radius: 14px; padding: .9rem 1rem; }
.zps-card-label { display: block; font-size: .8rem; color: var(--zs-muted); }
.zps-card-value { display: block; font-size: 1.35rem; font-weight: 700; line-height: 1.25; margin: .15rem 0; }
.zps-card-sub { display: block; font-size: .78rem; color: var(--zs-muted); }

/* Battery comparison */
.zps-bt { margin-top: .75rem; background: var(--zs-card); border: 1px solid var(--zs-border); border-radius: 14px; padding: 1rem; overflow-x: auto; }
.zps-bt-title { font-weight: 700; font-size: .95rem; }
.zps-bt-sub { font-size: .8rem; color: var(--zs-muted); margin: .15rem 0 .6rem; }
.zps-bt table { width: 100%; border-collapse: collapse; font-size: .85rem; margin: 0 !important; }
.zps-bt th { font-weight: 600; color: var(--zs-muted); font-size: .75rem; text-align: right; padding: .35rem .45rem; border-bottom: 1px solid var(--zs-border); background: none !important; }
.zps-bt td { text-align: right; padding: .45rem; border-bottom: 1px solid var(--zs-border); white-space: nowrap; background: none !important; }
.zps-bt th:first-child, .zps-bt td:first-child { text-align: left; }
.zps-bt tr.is-best td { background: var(--zs-accent-soft) !important; font-weight: 700; }
.zps-tag { display: inline-block; margin-left: .3rem; padding: .05rem .45rem; border-radius: 50px; background: var(--zs-accent-dark); color: #fff; font-size: .68rem; font-weight: 700; }
.zps-tag-cur { background: #6b7877; }
.zps-muted { color: var(--zs-muted); }
.zps-bt tr.is-click { cursor: pointer; }
.zps-bt tr.is-click:hover td { background: #f3f7f7 !important; }
.zps-bt-note { margin: .6rem 0 0 !important; font-size: .8rem; color: var(--zs-muted); }

/* Chart */
.zps-chart-wrap { position: relative; margin-top: .75rem; background: var(--zs-card); border: 1px solid var(--zs-border); border-radius: 14px; padding: 1rem 1rem .6rem; }
.zps-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin-bottom: .6rem; }
.zps-chart-title { font-size: .9rem; font-weight: 700; }
.zps-legend { display: flex; gap: .9rem; font-size: .8rem; color: var(--zs-muted); }
.zps-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.zps-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.zps-sw-prod { background: var(--zs-sun); }
.zps-sw-cons { background: var(--zs-cons); }

.zps-chart { position: relative; }
.zps-plot {
    display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 170px;
    border-bottom: 1px solid var(--zs-border);
    background-image: linear-gradient(to top, var(--zs-border) 1px, transparent 1px);
    background-size: 100% 25%;
}
.zps-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; border-radius: 6px; }
.zps-col.is-hover { background: rgba(68,193,179,.08); }
.zps-bars { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 100%; }
.zps-bar { display: block; width: 42%; max-width: 16px; min-height: 2px; border-radius: 4px 4px 0 0; transition: height .35s ease; }
.zps-bar-prod { background: var(--zs-sun); }
.zps-bar-cons { background: var(--zs-cons); }
.zps-bar-share { position: relative; width: 60%; max-width: 26px; background: var(--zs-accent); }
.zps-bar-val { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 2px; font-size: .65rem; font-style: normal; color: var(--zs-muted); white-space: nowrap; }
.is-share .zps-bars { padding-top: 1.1rem; }
.zps-x { position: absolute; bottom: -1.35rem; left: 0; right: 0; text-align: center; font-size: .7rem; color: var(--zs-muted); }
.zps-chart { margin-bottom: 1.5rem; }

.zps-tip {
    position: absolute; top: 2.6rem; transform: translateX(-50%); z-index: 5; pointer-events: none;
    min-width: 140px; padding: .55rem .7rem; background: #fff; border: 1px solid var(--zs-border); border-radius: 10px;
    box-shadow: 0 8px 20px -8px rgba(0,0,0,.25); font-size: .78rem;
}
.zps-tip b { display: block; margin-bottom: .2rem; }
.zps-tip span { display: flex; align-items: center; gap: .35rem; color: var(--zs-text); }

.zps-explain { margin-top: .75rem; padding: 1rem 1.1rem; background: var(--zs-accent-soft); border-radius: 14px; font-size: .9rem; }
.zps-explain-title { font-weight: 700; margin-bottom: .4rem; }
.zps-explain ul { margin: 0 !important; padding-left: 1.1rem !important; }
.zps-explain li { margin: .25rem 0; }

.zps-table { margin-top: .6rem; font-size: .85rem; }
.zps-table summary { cursor: pointer; color: var(--zs-accent-dark); }
.zps-table table { width: 100%; margin-top: .5rem; border-collapse: collapse; background: #fff; }
.zps-table th, .zps-table td { padding: .35rem .5rem; border-bottom: 1px solid var(--zs-border); text-align: right; }
.zps-table th:first-child, .zps-table td:first-child { text-align: left; }
.zps-total td { font-weight: 700; }

.zps-note { margin: 1.1rem 0 0 !important; font-size: .76rem; color: var(--zs-muted); }

@media (max-width: 860px) {
    .zps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .zp-solar { padding: 1rem; }
    .zp-solar h3 { font-size: 1.2rem; }
    .zps-cards, .zps-season { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .zps-card-value { font-size: 1.1rem; }
    .zps-hero-box b, .zps-season b { font-size: 1.6rem; }
    .zps-plot { height: 140px; gap: 2px; }
    .zps-x { font-size: .6rem; }
    .zps-bar-val { display: none; }
}
@media (min-width: 600px) {
    .zp-solar { padding: 2rem; }
}

/* v1.3 */
.zps-hint-top { margin: -.2rem 0 .3rem; }
.zps-apva { margin: -.3rem 0 .2rem !important; padding: .6rem .75rem; background: #fdf1e4; border-radius: 10px; font-weight: 600 !important; }
.zps-apva-hint { margin: 0 0 1rem; }
.zps-or summary { cursor: pointer; list-style: none; }
.zps-or summary::-webkit-details-marker { display: none; }
.zps-or summary::before { content: '▸ '; color: var(--zs-accent-dark); }
.zps-or[open] summary::before { content: '▾ '; }
.zps-or[open] .zps-bt-sub { margin-top: .4rem; }
.zps-grid > * { min-width: 0; }
.zps-bt table { min-width: 460px; }
@media (max-width: 480px) { .zps-bt { padding: .8rem; } .zps-bt table { font-size: .78rem; } }

.zps-bt th.zps-th-grp { text-align: center; border-bottom: 2px solid var(--zs-accent-soft); color: var(--zs-text); font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
.zps-bt th[rowspan] { vertical-align: bottom; }
.zps-bt td.zps-td-grp, .zps-bt th.zps-th-grp + th.zps-th-grp { border-left: 1px solid var(--zs-border); }
.zps-bt table { min-width: 540px; }
.zps-bt-incl { padding: .6rem .75rem; background: var(--zs-bg); border-radius: 8px; }
