.hc-rpc{--hc-ink:#18231f;--hc-muted:#66736d;--hc-line:#dfe6e1;--hc-primary:#1e73e8;--hc-navy:#2c3e50;--hc-soft:#f3f7f4;max-width:980px;margin:24px auto;color:var(--hc-ink);font-family:inherit;font-size:16px;line-height:1.55}.hc-rpc *{box-sizing:border-box}.hc-rpc__header{margin-bottom:22px}.hc-rpc__eyebrow{font-size:.75rem;font-weight:750;letter-spacing:.09em;color:var(--hc-primary)}.hc-rpc h2{font-size:clamp(1.7rem,4vw,2.25rem);line-height:1.2;margin:7px 0 10px;color:var(--hc-ink)}.hc-rpc p{margin:8px 0}.hc-rpc__header p,.hc-rpc__hint,.hc-rpc__result-note,.hc-rpc__footer{color:var(--hc-muted)}.hc-rpc__layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:stretch}.hc-rpc__form,.hc-rpc__results{border:1px solid var(--hc-line);border-radius:16px;padding:22px;min-width:0}.hc-rpc__field{margin-bottom:16px}.hc-rpc__field label{display:flex;gap:6px;align-items:baseline;font-weight:650;margin-bottom:7px}.hc-rpc__field small{display:block;font-size:.8rem;color:var(--hc-muted);margin-top:5px}.hc-rpc input,.hc-rpc select{width:100%;min-height:48px;border:1px solid #cbd6ce;border-radius:9px;background:#fff;color:var(--hc-ink);padding:10px 12px;font:inherit;max-width:100%}.hc-rpc input:focus,.hc-rpc button:focus-visible{outline:3px solid var(--hc-primary);outline-offset:2px}.hc-rpc select:focus{outline:none;border-color:#cbd6ce;box-shadow:none}.hc-rpc__select-wrap{display:block;position:relative}.hc-rpc__select-wrap select{appearance:none;-webkit-appearance:none;padding-right:44px;cursor:pointer}.hc-rpc select option{background:#fff;color:var(--hc-ink)}.hc-rpc select option:hover,.hc-rpc select option:checked{background:var(--hc-primary);color:#fff}.hc-rpc__select-arrow{position:absolute;right:16px;top:50%;width:9px;height:9px;border-right:2px solid var(--hc-navy);border-bottom:2px solid var(--hc-navy);transform:translateY(-70%) rotate(45deg);pointer-events:none}.hc-rpc__number-control{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:stretch}.hc-rpc__number-control input{border-radius:0;min-width:0;text-align:center}.hc-rpc__step{display:flex;align-items:center;justify-content:center;min-width:42px;border:1px solid #cbd6ce;background:#f3f6f4;color:var(--hc-navy);font:700 1.25rem/1 inherit;cursor:pointer}.hc-rpc__step:first-child{border-radius:9px 0 0 9px}.hc-rpc__step:last-child{border-radius:0 9px 9px 0}.hc-rpc__step:hover{background:#f3f6f4;border-color:#cbd6ce;color:var(--hc-navy)}.hc-rpc__step:focus-visible{outline:3px solid var(--hc-primary);outline-offset:1px;z-index:1}.hc-rpc__hint{font-size:.88rem}.hc-rpc__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.hc-rpc__button,.hc-rpc__reset{min-height:44px;border-radius:9px;padding:10px 16px;font:inherit;font-weight:700;cursor:pointer}.hc-rpc__button{background:var(--hc-primary);border:1px solid var(--hc-primary);color:#fff}.hc-rpc__button:hover{background:var(--hc-primary);border-color:var(--hc-primary);color:#fff}.hc-rpc__reset{background:transparent;border:1px solid var(--hc-line);color:var(--hc-ink)}.hc-rpc__button:not(.is-active){background:transparent;border-color:var(--hc-line);color:var(--hc-ink)}.hc-rpc__button.is-active,.hc-rpc__reset.is-active{background:var(--hc-primary)!important;border-color:var(--hc-primary)!important;color:#fff!important}.hc-rpc__button:active,.hc-rpc__reset:active{background:var(--hc-primary)!important;border-color:var(--hc-primary)!important;color:#fff!important}.hc-rpc__results{background:var(--hc-soft);display:flex;flex-direction:column;justify-content:center}.hc-rpc__result-label{font-weight:650;color:var(--hc-navy);margin:0!important}.hc-rpc__primary{display:flex;flex-direction:column;gap:2px;padding:6px 0 20px}.hc-rpc__primary strong{font-size:clamp(2.4rem,6vw,3.3rem);line-height:1.15;color:var(--hc-navy);overflow-wrap:anywhere}.hc-rpc__primary span{color:var(--hc-navy)}.hc-rpc__primary span{font-size:.9rem;color:var(--hc-muted)}.hc-rpc__result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hc-rpc__metric{background:#fff;border:1px solid var(--hc-line);border-radius:10px;padding:12px;min-width:0}.hc-rpc__metric span{display:block;font-size:.82rem;color:var(--hc-muted);margin-bottom:5px}.hc-rpc__metric strong{font-size:1.2rem;overflow-wrap:anywhere}.hc-rpc__result-note{font-size:.85rem;margin-top:16px!important}.hc-rpc__error{color:#9f2525;background:#fff0f0;border:1px solid #f0c5c5;border-radius:8px;padding:10px 12px;font-size:.9rem}.hc-rpc__guide{border-top:1px solid var(--hc-line);margin-top:24px;padding-top:18px}.hc-rpc__guide h3{font-size:1.12rem;margin:18px 0 7px}.hc-rpc__guide h3:first-child{margin-top:0}.hc-rpc__guide ol{padding-left:22px;margin:8px 0}.hc-rpc__guide li{margin:5px 0}.hc-rpc__footer{font-size:.82rem;border-top:1px solid var(--hc-line);margin-top:20px;padding-top:14px}.hc-rpc [hidden]{display:none!important}@media(max-width:680px){.hc-rpc{margin:16px auto}.hc-rpc__layout{grid-template-columns:minmax(0,1fr);gap:14px}.hc-rpc__form,.hc-rpc__results{padding:17px;border-radius:13px}.hc-rpc__actions>*{flex:1}.hc-rpc__metric{padding:10px}.hc-rpc__metric strong{font-size:1.08rem}}


/* HomeCostify shared calculator design system — v1.1.0 */
.hc-rpc {
  --hc-ink: #2c3e50;
  --hc-muted: #63716a;
  --hc-line: #d7dee8;
  --hc-primary: #1e73e8;
  --hc-navy: #2c3e50;
  --hc-soft: #f5f8f6;
  container-type: inline-size;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: #2c3e50;
}
.hc-rpc__header { margin-bottom: 20px; }
.hc-rpc__eyebrow {
  display: inline-block;
  color: #1e73e8;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .08em;
}
.hc-rpc h2 {
  margin: 6px 0 8px;
  color: #2c3e50;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: normal;
}
.hc-rpc__header p {
  margin: 0;
  color: #63716a;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
}
.hc-rpc__layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 16px;
  align-items: stretch;
}
.hc-rpc__form,
.hc-rpc__results {
  min-width: 0;
  padding: 22px;
  border-color: #d7dee8;
  border-radius: 15px;
}
.hc-rpc__field { margin-bottom: 18px; }
.hc-rpc__field label {
  color: #2c3e50;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}
.hc-rpc input,
.hc-rpc select {
  min-height: 42px;
  padding: 9px 12px;
  border-color: #cfd8e3;
  border-radius: 8px;
  color: #2c3e50;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
}
.hc-rpc .hc-rpc__select-wrap select { padding-right: 44px; }
.hc-rpc__field small {
  color: #63716a;
  font-size: 12px;
  line-height: 1.45;
}
.hc-rpc__number-control {
  grid-template-columns: 38px minmax(0, 1fr) 38px;
}
.hc-rpc__number-control input {
  min-width: 0;
  border-radius: 0;
  text-align: center;
}
.hc-rpc__step {
  min-width: 38px;
  width: 38px;
  min-height: 42px;
  padding: 0;
  border-color: #cfd8e3;
  background: #f3f6f8;
  color: #2c3e50;
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
}
.hc-rpc__step:hover {
  background: #f3f6f8;
  border-color: #cfd8e3;
  color: #2c3e50;
}
.hc-rpc__hint { font-size: 13px; line-height: 1.5; }
.hc-rpc__actions { gap: 8px; margin-top: 16px; }
.hc-rpc__button,
.hc-rpc__reset {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}
.hc-rpc__button {
  background: #1e73e8;
  border: 1px solid #1e73e8;
  color: #fff;
}
.hc-rpc__button:hover { background: #1e73e8; border-color: #1e73e8; color: #fff; }
.hc-rpc__reset {
  background: transparent;
  border: 1px solid #d7dee8;
  color: #2c3e50;
}
.hc-rpc__button:not(.is-active) {
  background: transparent;
  border-color: #d7dee8;
  color: #2c3e50;
}
.hc-rpc__button.is-active,
.hc-rpc__reset.is-active {
  background: #1e73e8 !important;
  border-color: #1e73e8 !important;
  color: #fff !important;
}
.hc-rpc__results {
  background: #f5f8f6;
  justify-content: flex-start;
}
.hc-rpc__result-label {
  color: #1e73e8;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .08em;
}
.hc-rpc__primary { gap: 3px; padding: 8px 0 18px; }
.hc-rpc__primary strong {
  color: #2c3e50;
  font-size: clamp(30px, 4cqi, 40px);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -.025em;
}
.hc-rpc__primary span { color: #63716a; font-size: 13px; }
.hc-rpc__result-grid { gap: 9px; }
.hc-rpc__metric {
  border-color: #d7dee8;
  border-radius: 9px;
  padding: 12px;
}
.hc-rpc__metric span {
  color: #63716a;
  font-size: 12px;
  line-height: 1.4;
}
.hc-rpc__metric strong {
  color: #2c3e50;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}
.hc-rpc__result-note { color: #63716a; font-size: 13px; line-height: 1.5; }
.hc-rpc__error { font-size: 13px; line-height: 1.45; }
.hc-rpc__guide {
  border: 1px solid #d7dee8;
  border-radius: 15px;
  margin-top: 20px;
  padding: 22px;
  color: #2c3e50;
  font-size: 14px;
  line-height: 1.55;
}
.hc-rpc__guide h3 {
  margin: 20px 0 8px;
  color: #2c3e50;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}
.hc-rpc__guide h3:first-child { margin-top: 0; }
.hc-rpc__guide p { margin: 7px 0; font-size: 14px; line-height: 1.55; }
.hc-rpc__guide ol { margin: 8px 0; padding-left: 22px; }
.hc-rpc__guide li { margin: 5px 0; font-size: 14px; line-height: 1.55; }
.hc-rpc__footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #d7dee8;
  color: #63716a;
  font-size: 13px;
  line-height: 1.5;
}
.hc-rpc__footer a {
  color: #1e73e8;
  font-weight: 650;
  text-decoration: none;
}
.hc-rpc__footer a:hover { text-decoration: underline; }
.hc-rpc [hidden] { display: none !important; }
@container (max-width: 560px) {
  .hc-rpc__layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hc-rpc__results { order: -1; }
  .hc-rpc__primary strong { font-size: 36px; }
}
@container (max-width: 390px) {
  .hc-rpc__form, .hc-rpc__results, .hc-rpc__guide { padding: 16px; }
  .hc-rpc__metric { padding: 10px; }
  .hc-rpc__metric strong { font-size: 16px; }
  .hc-rpc__actions > * { flex: 1; }
}


/* v1.1.1 footer alignment: match Roof Area Calculator */
.hc-rpc__footer {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin-top: 14px;
  text-align: center;
  color: #63716a;
  font-size: 13px;
  line-height: 1.5;
}
.hc-rpc__footer a {
  color: #1e73e8;
  font-weight: 650;
  text-decoration: none;
}
.hc-rpc__footer a:hover { text-decoration: underline; }


/* v1.2.0: auto-calculate interaction; Reset is the only action button. */
.hc-rpc__actions { display: flex; justify-content: flex-start; gap: 8px; }
.hc-rpc__reset {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #1e73e8;
  border-radius: 8px;
  background: transparent;
  color: #2c3e50;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}
.hc-rpc__reset:hover,
.hc-rpc__reset:active {
  background: #f0f6ff;
  border-color: #1e73e8;
  color: #2c3e50;
}
