/* PorchLight Ramps — Supplemental styles for the calculator
   Loads AFTER /porchlight-tub/quiz.css (shared pl-widget styles).
   Only contains classes unique to the ramps calculator.
*/

/* --- Pills (rise presets) --- */
.pl-widget .pl-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1rem 0;
}
.pl-widget .pl-pill {
  background: #fff;
  border: 2px solid var(--pl-border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--pl-charcoal);
  transition: border-color 0.15s, background 0.15s;
}
.pl-widget .pl-pill:hover {
  border-color: var(--pl-gold);
  background: #fffbf2;
}
.pl-widget .pl-pill-active {
  border-color: var(--pl-gold);
  background: var(--pl-gold);
  color: var(--pl-navy);
  font-weight: 600;
}

/* --- Active option state (radio-style) --- */
.pl-widget .pl-option-active {
  border-color: var(--pl-gold);
  background: #fffbf2;
  font-weight: 600;
}

/* --- Number input --- */
.pl-widget .pl-number-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: #555;
  font-weight: 500;
  margin-top: 0.75rem;
  max-width: 280px;
}
.pl-widget .pl-number {
  padding: 12px 14px;
  border: 2px solid var(--pl-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--pl-charcoal);
  max-width: 180px;
}
.pl-widget .pl-number:focus {
  outline: none;
  border-color: var(--pl-gold);
}

/* --- Big-number headline in results --- */
.pl-widget .pl-big-number {
  margin: 1rem 0;
  padding: 1.5rem;
  background: #fff;
  border: 2px solid var(--pl-sage);
  border-radius: 10px;
  text-align: center;
}
.pl-widget .pl-big-number strong {
  display: block;
  font-size: 2.75rem;
  color: var(--pl-navy);
  line-height: 1.1;
  font-weight: 700;
}
.pl-widget .pl-big-number span {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  color: #666;
}

/* --- Bullet list (layout segments) --- */
.pl-widget .pl-bullet {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}
.pl-widget .pl-bullet li {
  padding: 8px 0 8px 26px;
  position: relative;
  color: #444;
  border-bottom: 1px solid var(--pl-border);
}
.pl-widget .pl-bullet li:last-child {
  border-bottom: none;
}
.pl-widget .pl-bullet li::before {
  content: "▸";
  color: var(--pl-gold);
  position: absolute;
  left: 4px;
  font-size: 1em;
}

/* --- Cost grid (DIY vs Pro) --- */
.pl-widget .pl-cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 1rem 0;
}
.pl-widget .pl-cost-grid > div {
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--pl-border);
  border-radius: 8px;
}
.pl-widget .pl-cost-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 4px;
  font-weight: 600;
}
.pl-widget .pl-cost-value {
  font-size: 1.05rem;
  color: var(--pl-navy);
  font-weight: 600;
}

/* --- Engineering diagram (Sample A/B/C style) --- */
.pl-widget .pl-diagram-card {
  padding-bottom: 1.25rem;
}
.pl-widget .pl-diagram {
  width: 100%;
  height: auto;
  display: block;
  margin: 0.5rem 0 0;
}
.pl-widget .pl-diag-line { stroke: #1B2A41; stroke-width: 1.5; fill: none; }
.pl-widget .pl-diag-ramp { fill: #F5B841; stroke: #1B2A41; stroke-width: 1.5; }
.pl-widget .pl-diag-porch { fill: #E8E4DB; stroke: #1B2A41; stroke-width: 1.5; }
.pl-widget .pl-diag-landing { fill: #FFFBF2; stroke: #1B2A41; stroke-width: 1.5; stroke-dasharray: 4 3; }
.pl-widget .pl-diag-hatch { stroke: #999; stroke-width: 0.8; }
.pl-widget .pl-diag-rail { stroke: #1B2A41; stroke-width: 1.2; fill: none; }
.pl-widget .pl-diag-dim { stroke: #555; stroke-width: 1; fill: none; }
.pl-widget .pl-diag-dim-text { font: 500 13px "Inter", -apple-system, sans-serif; fill: #333; }
.pl-widget .pl-diag-slope-text { font: italic 12px "Inter", -apple-system, sans-serif; fill: #666; }
.pl-widget .pl-diag-label {
  font: 600 10px "Inter", -apple-system, sans-serif;
  fill: #1B2A41;
  letter-spacing: 0.08em;
}

/* --- Mobile tweaks --- */
@media (max-width: 600px) {
  .pl-widget .pl-big-number strong {
    font-size: 2.25rem;
  }
  .pl-widget .pl-cost-grid {
    grid-template-columns: 1fr;
  }
  .pl-widget .pl-pill {
    font-size: 0.88rem;
    padding: 9px 14px;
  }
}
