/* Page-only styles for /blog/solar-epc-project-cost-calculation/ (prefix spcc-). Shared look lives in etc.css + kit-*.css. */

/* hero: estimator's clipboard with stacked cost layers */
.spcc-hero .hero__grid { align-items: start; }
.spcc-clip { position: relative; margin-top: 14px; }
.spcc-clip__clamp { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 120px; height: 30px; z-index: 2;
  background: linear-gradient(180deg, #CBD5E1, #94A3B8); border: 2px solid #475569; border-radius: 8px 8px 4px 4px; }
.spcc-clip__sheet { position: relative; background: #FFFDF7; border: 2px solid #8B5E34; border-radius: 12px; padding: 30px 22px 18px;
  box-shadow: 0 0 0 8px #C08A55, 0 0 0 10px #8B5E34, var(--shadow); display: grid; gap: 12px;
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, #EEF2F7 27px 28px); }
.spcc-clip__k { margin: 0; font: 700 12px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: #7A3E06; }
.spcc-clip__h { margin: 0; font: 700 19px/1.35 var(--font); color: var(--ink); }
.spcc-stack { display: flex; flex-direction: column; height: 230px; border: 1px solid #CBD5E1; border-radius: 8px; overflow: hidden; background: #fff; }
.spcc-stack__l { flex: 0 0 var(--h); display: flex; align-items: center; padding: 0 12px; font: 700 12.5px/1 var(--font-ui); color: #fff;
  border-top: 1px solid rgba(255,255,255,.5); transform-origin: bottom; animation: spcc-rise .7s ease-out both; }
.spcc-l1 { background: #1E3A8A; animation-delay: .05s; } .spcc-l2 { background: #2563EB; animation-delay: .15s; }
.spcc-l3 { background: #0F766E; animation-delay: .25s; } .spcc-l4 { background: #0E7490; animation-delay: .35s; }
.spcc-l5 { background: #92400E; color: #FFF7ED; animation-delay: .45s; } .spcc-l6 { background: #B45309; animation-delay: .55s; }
.spcc-l7 { background: #15803D; animation-delay: .65s; }
@keyframes spcc-rise { from { opacity: 0; transform: scaleY(.2); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .spcc-stack__l { animation: none; } }
.spcc-clip__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.45; color: var(--text); }
.spcc-clip__list b { display: inline-block; min-width: 84px; color: var(--ink); }
.spcc-clip__f { margin: 0; padding-top: 10px; border-top: 1px dashed #CBD5E1; font: 500 13px/1.5 var(--font-ui); color: var(--muted); }

/* reading column */
.spcc-keys { border: 1px solid #C9DDF2; background: var(--blue-bg); border-radius: 14px; padding: 20px 22px; margin: 0 0 28px; }
.spcc-keys__h { margin: 0 0 10px; font: 700 12.5px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-d); }
.spcc-keys ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.spcc-prose { max-width: 860px; }
.spcc-prose p, .spcc-prose li { font-size: 17px; line-height: 1.65; }
.spcc-prose h2 { margin-top: 40px; }
.spcc-prose h3 { margin: 26px 0 8px; font-size: 20px; color: var(--ink); }
.spcc-prose ul, .spcc-prose ol { padding-left: 22px; display: grid; gap: 6px; }
.spcc-note { margin: 14px 0 0; font: 500 14px/1.5 var(--font-ui); color: var(--muted); }
.spcc-prose .spcc-note { font-size: 14px; }

/* tables */
.spcc-tbl { width: 100%; overflow-x: auto; margin: 18px 0 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.spcc-tbl:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.spcc-tbl table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15px; line-height: 1.5; }
.spcc-tbl th, .spcc-tbl td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--text); }
.spcc-tbl thead th { background: #F1F5F9; font: 700 13px/1.3 var(--font-ui); letter-spacing: .03em; color: var(--ink); }
.spcc-tbl tbody th { color: var(--ink); font-weight: 700; width: 22%; }
.spcc-tbl tr:last-child th, .spcc-tbl tr:last-child td { border-bottom: 0; }
.spcc-sum th, .spcc-sum td { background: #F8FAFC; font-weight: 700; color: var(--ink); }
.spcc-lab { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 700 11.5px/1.5 var(--font-ui); letter-spacing: .03em; white-space: nowrap; }
.spcc-lab--n { background: #E7F5E1; color: #23560B; }
.spcc-lab--c { background: #E6F0FA; color: #174B7C; }
.spcc-lab--x { background: #FDEBD3; color: #7A3E06; }

/* steps */
.spcc-steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: st; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.spcc-steps li { counter-increment: st; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 18px 60px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.spcc-steps li::before { content: counter(st); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: #1E3A8A; color: #fff; font: 700 14px/1 var(--font-ui); }
.spcc-steps b { color: var(--ink); font-size: 16.5px; }
.spcc-steps span { font-size: 15px; line-height: 1.55; color: var(--text); }

/* calculator */
.spcc-calc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.spcc-calc__in { display: grid; gap: 14px; }
.spcc-calc__in fieldset { margin: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 14px 16px 16px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.spcc-calc__in legend { padding: 0 6px; font: 700 12.5px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--blue-d); }
.spcc-calc__in label { display: grid; gap: 5px; font: 600 14px/1.35 var(--font-ui); color: var(--ink); }
.spcc-calc__in input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #CBD5E1; border-radius: 10px; font: 500 16px/1.2 var(--font-ui); color: var(--ink); background: #fff; }
.spcc-calc__in input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.spcc-calc__out { position: sticky; top: 90px; background: #0F172A; color: #E2E8F0; border-radius: 16px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.spcc-calc__k { margin: 0; font: 700 12px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: #FACC15; }
.spcc-calc__out dl { margin: 0; display: grid; gap: 2px; }
.spcc-calc__out dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(148,163,184,.25); }
.spcc-calc__out dt { font: 500 14.5px/1.4 var(--font-ui); color: #CBD5E1; }
.spcc-calc__out dd { margin: 0; font: 700 15.5px/1.4 var(--font-ui); color: #fff; text-align: right; white-space: nowrap; }
.spcc-calc__big dt { color: #fff; font-weight: 700; }
.spcc-calc__big dd { font-size: 22px; color: #86EFAC; }
.spcc-calc__trap { margin: 0; font: 500 14px/1.5 var(--font-ui); color: #FDE68A; }
.spcc-calc__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.spcc-calc__btns .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.spcc-calc__msg { margin: 0; min-height: 1em; font: 500 13.5px/1.4 var(--font-ui); color: #86EFAC; }
.spcc-calc__f { margin: 0; font: 500 12.5px/1.5 var(--font-ui); color: #94A3B8; }

/* per-watt comparison and leaks */
.spcc-cmp, .spcc-leaks, .spcc-opts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 18px 0; }
.spcc-cmp__c, .spcc-leak, .spcc-opt { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); }
.spcc-cmp__n, .spcc-opt__n { margin: 0 0 4px; font: 800 12.5px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: #92400E; }
.spcc-cmp__c h3, .spcc-leak h3, .spcc-opt h3 { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.spcc-prose .spcc-cmp__c p:last-child, .spcc-leak p, .spcc-opt p:last-child { margin: 0; font-size: 15.5px; line-height: 1.55; }
.spcc-leak { border-top: 4px solid #B45309; }
.spcc-cta { margin: 18px 0 0; }
.spcc-refs { font-size: 16px; }

@media (max-width: 900px) {
  .spcc-calc { grid-template-columns: 1fr; }
  .spcc-calc__out { position: static; }
}
@media (max-width: 560px) {
  .spcc-clip__sheet { padding: 28px 16px 16px; }
  .spcc-stack { height: 200px; }
  .spcc-steps li { padding-left: 56px; }
}
