/* Solar, batteries, heat pumps and electric cars (draft guide) */

/* a day at a glance */
.daybars { margin: 0; display: grid; gap: 0.45rem; padding: 1.2rem 1.3rem 0.6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
.daybars__row { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: 0.9rem; align-items: center; }
.daybars__row > span { font-weight: 700; font-size: 0.98rem; line-height: 1.25; }
.daybars__track { position: relative; height: 1.7rem; border-radius: 4px; background:
  linear-gradient(90deg, transparent calc(25% - 1px), #b9ad92 calc(25% - 1px), #b9ad92 25%, transparent 25%, transparent calc(50% - 1px), #b9ad92 calc(50% - 1px), #b9ad92 50%, transparent 50%, transparent calc(75% - 1px), #b9ad92 calc(75% - 1px), #b9ad92 75%, transparent 75%), #e6ddc8; overflow: hidden; }
.daybars__track i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.db-sun { background: linear-gradient(90deg, #ec8f0400, #ec8f04 35%, #f5a623 50%, #ec8f04 65%, #ec8f0400); }
.db-sun--low { opacity: 0.55; top: 30% !important; }
.db-use { background: #28481f; }
.db-use--soft { background: #28481f; opacity: 0.4; }
.db-heat { background: #9c4a1f; }
.db-heat--soft { background: #9c4a1f; opacity: 0.35; }
.db-cheap { background: #2d5373; }
.db-away { background: repeating-linear-gradient(135deg, #6b5136, #6b5136 6px, #8a704f 6px, #8a704f 12px); }
.daybars__axis .daybars__track { background: none; height: 1.5rem; overflow: visible; }
.daybars__axis b { position: absolute; top: 0.1rem; transform: translateX(-50%); font-size: 0.82rem; font-weight: 600; color: var(--bark); white-space: nowrap; }
.daybars__axis b:first-child { transform: none; }
.daybars__axis b:last-child { transform: translateX(-100%); }
@media (max-width: 640px) {
  .daybars { padding: 1rem 0.9rem 0.5rem; }
  .daybars__row { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .daybars__row > span { font-size: 0.92rem; }
  .daybars__axis > span { display: none; }
  .daybars__track { height: 1.35rem; }
}

/* the household picker */
.mix-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.1rem 1.6rem; padding: 1.2rem 1.3rem 1.3rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.mix-summary { font-size: 1.08rem; max-width: 75ch; }
.mix-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); gap: 1rem; margin-top: 1rem; }
.mix-card { display: grid; gap: 0.65rem; align-content: start; padding: 1.1rem 1.2rem 1.2rem; border: 1px solid var(--line); border-top: 7px solid var(--mixc, var(--line)); border-radius: 10px; background: var(--paper); min-width: 0; }
.mix-card h3 { margin: 0; font-size: 1.2rem; }
.mix-card--good { --mixc: #2c6a38; } .mix-card--close { --mixc: #ec8f04; } .mix-card--poor { --mixc: #9c3f1c; } .mix-card--none { --mixc: #8a7f6a; }
.mix-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1rem; margin: 0; }
.mix-card dt { font-size: 0.85rem; color: var(--bark); font-weight: 600; }
.mix-card dd { margin: 0; font-size: 1.12rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.mix-card .checked { margin: 0; }
.mix-add { margin: 0; padding-top: 0.65rem; border-top: 1px solid var(--line); font-size: 0.98rem; }
.mix-pill { display: inline-block; justify-self: start; padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.88rem; font-weight: 700; line-height: 1.35; }
.mix-pill--good { background: #d5e6d0; color: #1d4a26; }
.mix-pill--close { background: #f6dfc4; color: #6e3a00; }
.mix-pill--poor { background: #f3d3c8; color: #7a2a12; }
.mix-pill--none { background: var(--sand); color: var(--ink); }
.mix-advice { margin-top: 1.4rem; padding: 1.1rem 1.3rem 1.2rem; border-left: 5px solid var(--forest-700); background: var(--paper); border-radius: 0 10px 10px 0; }
.mix-advice h3 { margin: 0 0 0.6rem; }
.mix-advice ul { margin: 0; padding-left: 1.15rem; display: grid; gap: 0.5rem; max-width: 80ch; }
.mix-table th[scope="row"] { background: transparent; font-weight: 600; min-width: 13rem; }
.mix-table td { min-width: 11.5rem; }
.mix-table td small { display: block; margin-top: 0.25rem; color: var(--bark); font-size: 0.88rem; }
.mix-table .mix-group th { background: var(--forest-900); color: #fff; font-family: "Zilla Slab", Rockwell, Georgia, serif; font-size: 1.05rem; letter-spacing: 0.02em; }
.mix-table tr.is-mine > * { background: #fff6e2; }
.mix-table tr.is-mine th { box-shadow: inset 5px 0 0 var(--amber); }
.mix-assume .prose { margin-top: 0.8rem; }

/* when it does not pay */
.nope .plain-card { border-left: 5px solid #9c3f1c; }
.nope h3 { font-size: 1.12rem; }
.nope__do { font-size: 0.98rem; color: var(--forest-900); }

/* what works in a power cut */
.works th[scope="row"] { background: transparent; color: #fff; min-width: 12rem; }
.works thead th { background: #ffffff14; color: #fff; }
.works td, .works th { border-bottom-color: #ffffff26; }
.works td:nth-child(2) { white-space: nowrap; }
.band--dark .notice { color: var(--ink); }

/* what to buy first */
.ladder { list-style: none; margin: 0; padding: 0; counter-reset: ladder; display: grid; gap: 0.7rem; max-width: 52rem; }
.ladder li { counter-increment: ladder; position: relative; padding: 0.9rem 1.1rem 1rem 4.1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
.ladder li::before { content: counter(ladder); position: absolute; left: 1rem; top: 0.95rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--forest-700); color: #fff; font-weight: 700; font-size: 1.1rem; display: grid; place-items: center; }
.ladder h3 { margin: 0 0 0.2rem; font-size: 1.12rem; }
.ladder p { margin: 0; }
