OverviewFilesCommitsIssuesDocsReleasesPeers

electrical-review / design / racking.css

241 lines · css ref:
/* ============================================================================
   PRSM SOLAR — RACKING / STRUCTURAL TAB + COST CALCULATOR
   ========================================================================== */

/* ---- structural fact strip ---- */
.rk-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; margin-bottom: 22px; }
.rk-fact { background: var(--surface); padding: 14px 16px; position: relative; }
.rk-fact::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.rk-fact.pine::before { background: var(--pine); }
.rk-fact.amber::before { background: var(--amber); }
.rk-fact.warn::before { background: var(--clay); }
.rk-fact-k { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.rk-fact-v { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 4px 0 3px; }
.rk-fact-n { font-size: 10.5px; color: var(--ink-3); line-height: 1.4; }

/* ---- two-up: member check + adaptations ---- */
.rk-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-bottom: 26px; }
.rk-mem { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.rk-mem-row { display: grid; grid-template-columns: 1.1fr 1.2fr 1.4fr; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--rule); background: var(--surface); align-items: center; }
.rk-mem-row:first-child { border-top: 0; }
.rk-mem-row.head { background: var(--surface-2); font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.rk-mem-m { font-size: 12px; font-weight: 600; color: var(--ink); }
.rk-mem-d { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-2); }
.rk-mem-v { font-size: 11px; display: flex; align-items: center; gap: 7px; }
.rk-mem-v i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.rk-mem-v.pine i { background: var(--pine); }
.rk-mem-v.amber i { background: var(--amber); }
.rk-mem-v span { color: var(--ink-2); line-height: 1.3; }
.rk-adapt { list-style: none; display: flex; flex-direction: column; }
.rk-adapt li { font-size: 12px; color: var(--ink-2); line-height: 1.45; padding: 9px 0; border-top: 1px dashed var(--rule-2); display: flex; gap: 9px; }
.rk-adapt li:first-child { border-top: 0; }
.rk-adapt .num { font-family: var(--f-mono); font-size: 10px; color: var(--pine); flex: none; padding-top: 1px; }

/* ============================ CALCULATOR ============================== */
.calc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.calc-how { display: flex; gap: 10px; align-items: flex-start; background: var(--pine-soft); border: 1px solid color-mix(in oklch, var(--pine) 26%, transparent); border-radius: var(--radius); padding: 11px 14px; margin-bottom: 18px; }
.calc-how p { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.calc-how b { color: var(--ink); }

.calc-table { border: 1px solid var(--rule-2); border-radius: var(--radius); overflow: hidden; }
.calc-row { display: grid; grid-template-columns: 1.7fr 1.9fr 0.7fr 0.95fr 0.85fr 1.05fr 1.05fr; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--rule); background: var(--surface); align-items: center; }
.calc-row:first-child { border-top: 0; }
.calc-row.head { background: var(--surface-2); font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); position: sticky; top: 52px; z-index: 5; }
.calc-row.head .r { justify-self: end; }
.calc-row.zero { opacity: 0.55; }
.calc-m { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.calc-m .tagnote { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 9px; color: var(--ink-3); margin-top: 2px; letter-spacing: 0.03em; }
.calc-spec { font-size: 10.5px; color: var(--ink-2); line-height: 1.35; }
.calc-need { font-family: var(--f-mono); font-size: 12px; color: var(--ink); }
.calc-need em { font-style: normal; font-size: 9px; color: var(--ink-3); margin-left: 3px; }
.calc-topurchase { font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: var(--ink); justify-self: end; }
.calc-line { font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: var(--ink); justify-self: end; }

/* numeric inputs */
.calc-input { display: flex; align-items: center; justify-self: end; }
.calc-input.disabled { opacity: 0.3; }
.calc-field { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--rule-2); border-radius: 3px; width: 62px; padding: 6px 8px; text-align: right; -moz-appearance: textfield; }
.calc-field::-webkit-outer-spin-button, .calc-field::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-field:focus { outline: none; border-color: var(--pine); background: var(--surface); box-shadow: 0 0 0 3px var(--pine-soft); }
.calc-field.price { width: 70px; }
.calc-price-wrap { position: relative; display: inline-flex; align-items: center; }
.calc-price-wrap::before { content: "$"; position: absolute; left: 8px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); pointer-events: none; }
.calc-field.price { padding-left: 17px; text-align: right; }
.calc-na { font-family: var(--f-mono); font-size: 10px; color: var(--ink-3); justify-self: end; letter-spacing: 0.05em; }

/* subtotal row */
.calc-row.sub { background: var(--surface-2); border-top: 1px solid var(--ink); }
.calc-row.sub .lbl { grid-column: 1 / 6; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); font-weight: 600; }
.calc-row.sub .calc-topurchase { color: var(--ink); }
.calc-row.sub .calc-line { font-size: 15px; }

/* ---- result panel ---- */
.calc-result { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 22px; }
.result-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.result-big-k { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.result-big-v { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 4px 0 2px; font-family: var(--f-mono); }
.result-sub { font-size: 11.5px; color: var(--ink-2); }
.result-sub b { color: var(--pine); }

/* band gauge */
.band { margin-top: 18px; }
.band-top { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 9.5px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.band-track { position: relative; height: 30px; border-radius: 4px; background:
  linear-gradient(90deg, var(--surface-2), var(--surface-2)); border: 1px solid var(--rule-2); overflow: hidden; }
.band-range { position: absolute; top: 0; bottom: 0; background: var(--pine-soft); border-left: 1px dashed color-mix(in oklch, var(--pine) 40%, transparent); border-right: 1px dashed color-mix(in oklch, var(--pine) 40%, transparent); }
.band-marker { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); z-index: 2; }
.band-marker::after { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); border: 2px solid var(--surface); }
.band-foot { display: flex; justify-content: space-between; margin-top: 7px; font-size: 10.5px; color: var(--ink-3); }
.band-foot .verdict { font-weight: 600; }
.band-foot .verdict.in { color: var(--pine); }
.band-foot .verdict.under { color: var(--pine); }
.band-foot .verdict.over { color: var(--clay); }

.result-rows { display: flex; flex-direction: column; }
.result-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--rule-2); }
.result-row:first-child { border-top: 0; }
.result-row .k { font-size: 12px; color: var(--ink-2); }
.result-row .v { font-family: var(--f-mono); font-size: 13px; color: var(--ink); font-weight: 600; }
.result-row.save .v { color: var(--pine); }
.calc-actions { display: flex; gap: 10px; margin-top: 16px; }
.calc-btn { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--radius); padding: 8px 14px; cursor: pointer; }
.calc-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ---- integration + actions ---- */
.rk-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.intg-list { list-style: none; display: flex; flex-direction: column; }
.intg-list li { padding: 11px 0; border-top: 1px dashed var(--rule-2); }
.intg-list li:first-child { border-top: 0; }
.intg-t { font-size: 12px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.intg-t::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--slate); flex: none; }
.intg-d { font-size: 11.5px; color: var(--ink-2); line-height: 1.45; margin-top: 4px; padding-left: 14px; }
.act-list { list-style: none; display: flex; flex-direction: column; }
.act-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--rule-2); align-items: start; }
.act-list li:first-child { border-top: 0; }
.act-id { font-family: var(--f-mono); font-size: 10px; color: var(--ink-3); border: 1px solid var(--rule-2); border-radius: 2px; padding: 1px 5px; margin-top: 1px; }
.act-id.done { color: var(--pine); border-color: color-mix(in oklch, var(--pine) 40%, transparent); background: var(--pine-soft); }
.act-t { font-size: 11.5px; color: var(--ink-2); line-height: 1.4; }
.act-t .resolved { display: block; color: var(--pine); font-size: 10.5px; margin-top: 3px; font-family: var(--f-mono); }
.act-who { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; margin-top: 2px; }

@media (max-width: 920px) {
  .rk-facts { grid-template-columns: 1fr 1fr; }
  .rk-cols, .calc-result, .rk-bottom { grid-template-columns: 1fr; }
  .calc-row { grid-template-columns: 1.4fr 0.8fr 0.9fr 0.9fr; gap: 8px 10px; }
  .calc-row .calc-spec, .calc-row.head > div:nth-child(2) { display: none; }
  .calc-row.head { position: static; }
}
@media (max-width: 600px) {
  .calc-row { grid-template-columns: 1fr 1fr; }
}

/* ======================= STRUCTURAL DIAGRAMS ========================== */
.grade { stroke: var(--ink); stroke-width: 2.5; }
.hatch { stroke: var(--ink-3); stroke-width: 1.25; }
.frost { stroke: var(--slate); stroke-width: 1.5; stroke-dasharray: 6 4; }
.post { fill: var(--amber-soft); stroke: var(--amber); stroke-width: 2; }
.beam { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.joist { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.joist-band { fill: var(--amber-soft); stroke: var(--amber); stroke-width: 1.5; }
.panel-poly { fill: var(--pine); stroke: color-mix(in oklch, var(--pine) 55%, black); stroke-width: 0.6; }
.post-top { fill: var(--amber); stroke: var(--amber); stroke-width: 1; }

/* ======================= RACKING OPTIONS ============================== */
.opt-section { margin-bottom: 26px; }
.opt-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.opt-seg button { position: relative; text-align: left; background: var(--surface-2); border: 1px solid var(--rule-2); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: border-color .12s, background .12s; }
.opt-seg button:hover { background: var(--surface); }
.opt-seg button.on { border-color: var(--pine); background: var(--pine-soft); box-shadow: inset 0 0 0 1px var(--pine); }
.opt-seg-n { font-family: var(--f-mono); font-size: 15px; font-weight: 600; color: var(--ink); width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--rule-2); border-radius: 50%; flex: none; }
.opt-seg button.on .opt-seg-n { border-color: var(--pine); color: var(--pine); }
.opt-seg-name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.opt-fav { position: absolute; top: -8px; right: 8px; font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); background: var(--surface); border: 1px solid color-mix(in oklch, var(--amber) 40%, transparent); border-radius: 3px; padding: 1px 5px; }

.opt-panel { border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.opt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.opt-name { font-size: 19px; }
.opt-tag { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-left: 8px; }
.opt-mode { font-size: 11px; color: var(--ink-2); margin-top: 5px; }
.opt-energy { text-align: right; flex: none; }
.opt-kwh { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.opt-delta { font-size: 12px; margin: 2px 0 6px; }
.opt-delta.up { color: var(--pine); }
.opt-delta.base { color: var(--ink-3); }
.opt-summary { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 16px; max-width: 80ch; }
.opt-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; margin-top: 18px; }
.opt-sub { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.opt-specs { border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.opt-spec-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--rule); background: var(--surface); }
.opt-spec-row:first-child { border-top: 0; }
.osk { font-size: 11.5px; color: var(--ink-2); }
.osv { font-size: 11.5px; color: var(--ink); font-weight: 600; text-align: right; }
.opt-prov { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
.opt-prov-t { font-size: 10px; color: var(--ink-3); }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pc-h { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 7px; }
.pc-pro { color: var(--pine); }
.pc-con { color: var(--clay); }
.pc-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pc-col li { font-size: 12px; color: var(--ink-2); line-height: 1.4; display: flex; gap: 7px; }
.pc-mk { font-family: var(--f-mono); font-weight: 700; flex: none; }
.pc-mk.pro { color: var(--pine); }
.pc-mk.con { color: var(--clay); }
.opt-safety { font-size: 12px; color: var(--ink-2); line-height: 1.5; margin-top: 14px; border-top: 1px dashed var(--rule-2); padding-top: 12px; }
.opt-safety .mono { font-size: 9.5px; letter-spacing: 0.1em; color: var(--clay); border: 1px solid color-mix(in oklch, var(--clay) 36%, transparent); border-radius: 3px; padding: 2px 6px; margin-right: 9px; }

/* comparison table */
.opt-compare { margin-top: 22px; }
.cmp-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); }
.cmp-table { border-collapse: collapse; width: 100%; min-width: 920px; }
.cmp-table th, .cmp-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); white-space: nowrap; }
.cmp-table th { background: var(--surface-2); font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.cmp-table td { font-size: 11.5px; color: var(--ink-2); }
.cmp-table td.mono { font-size: 11px; }
.cmp-table tr.active td { background: var(--pine-soft); }
.cmp-table .stick { position: sticky; left: 0; background: var(--surface); z-index: 2; font-weight: 600; color: var(--ink); }
.cmp-table th.stick { background: var(--surface-2); }
.cmp-table tr.active .stick { background: color-mix(in oklch, var(--pine-soft), var(--surface) 30%); }
.cmp-n { font-family: var(--f-mono); display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1px solid var(--rule-2); border-radius: 50%; font-size: 9.5px; margin-right: 8px; color: var(--ink); }
@media (max-width: 760px) {
  .opt-seg { grid-template-columns: 1fr; }
  .opt-grid, .pc-grid { grid-template-columns: 1fr; }
}
.opt-divider { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 20px; padding-top: 16px; border-top: 1px solid var(--rule-2); }
.opt-divider .mono { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine); white-space: nowrap; }
.opt-divider-t { font-size: 12.5px; color: var(--ink-2); }
.joist-back { stroke: var(--rule-2); stroke-width: 1.25; }
.post-back { stroke: var(--amber); stroke-width: 2; opacity: 0.5; }
.post-front { stroke: var(--amber); stroke-width: 3; }

/* option-diagram mechanism elements */
.ghost-panel { fill: none; stroke: var(--pine); stroke-width: 2; stroke-dasharray: 4 4; opacity: 0.38; }
.ghost-lbl { font-family: var(--f-mono); font-size: 9.5px; fill: var(--pine); opacity: 0.7; }
.joist2 { stroke: var(--amber); stroke-width: 7; stroke-linecap: butt; opacity: 0.85; }
.panel-line { stroke: var(--pine); stroke-width: 8; stroke-linecap: butt; }
.pivot-bolt { fill: var(--ink); stroke: var(--surface); stroke-width: 1.5; }
.bushing-out { fill: none; stroke: var(--slate); stroke-width: 2.5; }
.hole { fill: var(--surface); stroke: var(--ink-2); stroke-width: 1.5; }
.hole.on { fill: var(--pine); stroke: var(--pine); }
.lock-strut { stroke: var(--clay); stroke-width: 2.5; }
.bond-jumper { fill: none; stroke: var(--pine); stroke-width: 2; }
.service-loop { fill: none; stroke: var(--slate); stroke-width: 2; }
.panel-strip { stroke: var(--pine); stroke-width: 15; stroke-linecap: butt; opacity: 0.9; }
.panel-div { stroke: var(--surface); stroke-width: 2.5; }
.panel-cell { fill: var(--pine-soft); stroke: var(--pine); stroke-width: 1.75; }
.array-frame { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.footing { fill: var(--surface-2); stroke: var(--ink-2); stroke-width: 1.75; }
.agg { fill: var(--ink-3); opacity: 0.4; }
.foot-plan { fill: var(--surface-2); stroke: var(--ink); stroke-width: 2; }
.beam-line { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.arc { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.dim-l { stroke: var(--ink-3); stroke-width: 1; }
.dim-t { font-family: var(--f-mono); font-size: 11px; fill: var(--ink); font-weight: 600; }
.lead { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.lead-dot { fill: var(--ink); }
.call-t { font-family: var(--f-mono); font-size: 11px; fill: var(--ink-2); }
.human { fill: var(--ink-3); opacity: 0.42; }
.human circle { fill: var(--ink-3); }
.sb-a { fill: var(--ink-2); }
.sb-b { fill: var(--surface); }
.sb-frame { fill: none; stroke: var(--ink); stroke-width: 1.25; }