/* Roofing Calculator — style.css v1.0 */
.roofc-wrap { max-width:620px; margin:0 auto; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; color:#1a1a1a; }
.roofc-header { display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.roofc-icon { font-size:34px; line-height:1; }
.roofc-title { font-size:22px !important; font-weight:600 !important; margin:0 0 3px !important; padding:0 !important; border:none !important; color:#1a1a1a !important; }
.roofc-sub { font-size:13px; color:#666; margin:0; }
.roofc-section-lbl { font-size:11px; font-weight:700; color:#999; text-transform:uppercase; letter-spacing:.6px; margin-bottom:8px; }

/* Roof type grid */
.roofc-type-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:4px; }
@media(max-width:480px){ .roofc-type-grid { grid-template-columns:repeat(2,1fr); } }
.roofc-type-btn { padding:10px 8px; border:1.5px solid #d0d0d0; border-radius:10px; background:#fff; color:#555; cursor:pointer; transition:background .13s,border-color .13s,color .13s; display:flex; flex-direction:column; align-items:center; gap:4px; text-align:center; font-size:13px; font-weight:500; }
.roofc-type-btn:hover:not(.act) { background:#e0f2fe; border-color:#7DD3FC; }
.roofc-type-btn.act { background:#e0f2fe; color:#0369A1; border-color:#0369A1; font-weight:600; }
.roofc-type-sub { font-size:10px; font-weight:400; opacity:.65; }
.roofc-roof-svg { width:56px; height:36px; }

/* Grid */
.roofc-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:4px; }
@media(max-width:440px){ .roofc-grid { grid-template-columns:1fr; } }
.roofc-lbl { display:flex; align-items:center; gap:5px; font-size:13px; font-weight:500; color:#555; margin-bottom:5px; }
.roofc-tip { display:inline-flex; align-items:center; justify-content:center; width:14px; height:14px; border-radius:50%; background:#ebebeb; font-size:9px; color:#777; cursor:help; font-style:normal; }
.roofc-iw { position:relative; }
.roofc-iw input { width:100%; box-sizing:border-box; padding:9px 38px 9px 10px; border:1px solid #d0d0d0; border-radius:8px; font-size:14px; color:#1a1a1a; background:#fff; outline:none; transition:border-color .15s; -moz-appearance:textfield; }
.roofc-iw input::-webkit-inner-spin-button,.roofc-iw input::-webkit-outer-spin-button { -webkit-appearance:none; }
.roofc-iw input:focus { border-color:#0369A1; box-shadow:0 0 0 3px rgba(3,105,161,.1); }
.roofc-suf { position:absolute; right:8px; top:50%; transform:translateY(-50%); font-size:11px; color:#999; pointer-events:none; white-space:nowrap; }
.roofc-pre { position:absolute; left:8px; top:50%; transform:translateY(-50%); font-size:13px; color:#999; pointer-events:none; }
.roofc-iw input.has-pre { padding-left:22px; }
.roofc-pitch-row { display:flex; align-items:center; gap:8px; }
.roofc-pitch-row .roofc-iw { flex:1; }
.roofc-pitch-sep { font-size:14px; color:#555; white-space:nowrap; flex-shrink:0; }

/* Summary cards */
.roofc-summary-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:18px; animation:roofc-in .22s ease; }
@media(max-width:480px){ .roofc-summary-cards { grid-template-columns:repeat(2,1fr); } }
@keyframes roofc-in { from{opacity:0;transform:translateY(5px)} to{opacity:1;transform:translateY(0)} }
.roofc-sum-card { border-radius:11px; padding:12px 10px; text-align:center; border:1px solid; }
.roofc-card-area    { background:#e0f2fe; border-color:#7DD3FC; }
.roofc-card-squares { background:#dbeafe; border-color:#93c5fd; }
.roofc-card-bundles { background:#dcfce7; border-color:#86efac; }
.roofc-card-cost    { background:#fef3c7; border-color:#fde047; }
.roofc-sum-val { font-size:20px; font-weight:700; margin-bottom:3px; font-family:monospace; }
.roofc-sum-lbl { font-size:11px; color:#555; }
.roofc-card-area    .roofc-sum-val { color:#0369A1; }
.roofc-card-squares .roofc-sum-val { color:#1e40af; }
.roofc-card-bundles .roofc-sum-val { color:#166534; }
.roofc-card-cost    .roofc-sum-val { color:#92400E; }

/* Materials table */
table.roofc-mat-table { width:100%; border-collapse:collapse; font-size:13px; margin-bottom:14px; }
table.roofc-mat-table th { padding:7px 10px; text-align:left; color:#888; font-size:11px; text-transform:uppercase; letter-spacing:.4px; border-bottom:1px solid #e8e8e8; background:#fafafa; font-weight:600; }
table.roofc-mat-table th:last-child { text-align:right; }
table.roofc-mat-table td { padding:8px 10px; border-bottom:1px solid #f0f0f0; font-size:13px; }
table.roofc-mat-table td:last-child { text-align:right; font-weight:600; font-family:monospace; }
table.roofc-mat-table tr.roofc-total-row td { background:#e0f2fe; font-weight:700; border-top:2px solid #7DD3FC; }
table.roofc-mat-table tr:last-child td { border-bottom:none; }

/* Steps */
.roofc-steps-block { background:#fafafa; border:1px solid #e8e8e8; border-radius:10px; overflow:hidden; margin-bottom:14px; }
.roofc-step { display:flex; gap:10px; padding:10px 14px; border-bottom:1px solid #f0f0f0; font-size:13px; align-items:flex-start; }
.roofc-step:last-child { border-bottom:none; }
.roofc-step-num { width:22px; height:22px; border-radius:50%; background:#0369A1; color:#fff; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:2px; }
.roofc-step-body { flex:1; line-height:1.5; }
.roofc-step-title { font-weight:600; color:#1a1a1a; margin-bottom:2px; }
.roofc-step-detail { color:#555; font-family:monospace; font-size:12px; }

/* Pitch table */
table.roofc-pitch-ref { width:100%; border-collapse:collapse; font-size:13px; margin-bottom:14px; }
table.roofc-pitch-ref th { padding:7px 10px; text-align:left; color:#888; font-size:11px; text-transform:uppercase; letter-spacing:.4px; border-bottom:1px solid #e8e8e8; background:#fafafa; font-weight:600; }
table.roofc-pitch-ref td { padding:7px 10px; border-bottom:1px solid #f5f5f5; font-size:13px; }
table.roofc-pitch-ref td:last-child { font-family:monospace; font-weight:600; }
table.roofc-pitch-ref tr.current-pitch td { background:#e0f2fe; font-weight:700; }
table.roofc-pitch-ref tr:last-child td { border-bottom:none; }

.roofc-reset-btn { display:block; width:100%; margin-top:10px; padding:9px; font-size:13px; color:#999; background:none; border:1px solid #e8e8e8; border-radius:8px; cursor:pointer; transition:background .13s; }
.roofc-reset-btn:hover { background:#f5f5f5; color:#333; }
.roofc-disclaimer { font-size:11px; color:#bbb; text-align:center; margin-top:6px; }
