/* Payload Calculator — page-specific styles */

/* Layout: form left, result right (desktop) */
.pc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .pc-grid {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  }
}

/* Form sections */
.pc-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--dta-slate-200, #DED8CE);
}
.pc-section:last-child { border-bottom: 0; }
.pc-section-title {
  font-family: var(--dta-font-heading);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  color: var(--dta-slate-900, #2c2924);
}
.pc-subhead {
  font-family: var(--dta-font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 1.5rem 0 0.75rem;
  color: var(--dta-slate-700, #4a463f);
}

/* Inputs + rows */
.pc-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--dta-slate-700, #4a463f);
}
.pc-label--inline { display: inline-block; margin-right: 0.5rem; margin-bottom: 0; }
.pc-input {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--dta-slate-300, #c6bfb3);
  border-radius: 4px;
  width: 100%;
  max-width: 240px;
  background: var(--dta-white, #fff);
}
.pc-input--small  { max-width: 90px; }
.pc-input--inline { display: inline-block; margin-left: 0.5rem; max-width: 180px; }
.pc-input--select { padding-right: 2rem; }
.pc-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.pc-row--two { gap: 1.5rem; }
.pc-row--two .pc-col { flex: 1; min-width: 140px; }
.pc-row--radios .pc-radio { margin-right: 1.25rem; }
.pc-unit {
  color: var(--dta-slate-500, #847d72);
  font-size: 0.9rem;
}
.pc-checkbox {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0;
  cursor: pointer;
}
.pc-checkbox input { width: 1.1rem; height: 1.1rem; accent-color: var(--dta-copper, #C9963A); }
.pc-radio {
  display: inline-flex; align-items: center; gap: 0.4rem;
  cursor: pointer;
}
.pc-radio input { accent-color: var(--dta-copper, #C9963A); }
.pc-weight { color: var(--dta-slate-500, #847d72); font-size: 0.9rem; }

/* Stepper */
.pc-stepper {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin: 0 1.5rem 0.75rem 0;
}
.pc-stepper__label { font-weight: 600; min-width: 60px; }
.pc-stepper__btn {
  width: 2rem; height: 2rem; line-height: 1;
  border: 1px solid var(--dta-slate-300, #c6bfb3); border-radius: 4px;
  background: var(--dta-white, #fff); cursor: pointer; font-size: 1.2rem;
}
.pc-stepper__btn:hover { background: var(--dta-slate-100, #f2eee7); }
.pc-stepper__val { min-width: 1.5rem; text-align: center; font-weight: 700; }

/* Notes */
.pc-note {
  font-size: 0.9rem; color: var(--dta-slate-600, #6a645a);
  margin: 0.75rem 0 0;
}
.pc-note--cta { padding: 0.75rem; background: var(--dta-slate-100, #f2eee7); border-radius: 4px; }
.pc-note--auto { padding: 0.75rem; background: var(--dta-slate-100, #f2eee7); border-radius: 4px; font-weight: 600; }

/* Gear list — single column for clarity */
.pc-gear-list { display: flex; flex-direction: column; }

/* Result panel */
.pc-result {
  padding: 1.5rem; background: var(--dta-slate-100, #f2eee7);
  border-radius: 6px; align-self: start;
}
@media (min-width: 1024px) {
  .pc-result { position: sticky; top: 1rem; }
}
.pc-result__placeholder { color: var(--dta-slate-500, #847d72); font-style: italic; }
.pc-result__headline {
  font-family: var(--dta-font-heading); font-size: 1.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em;
  margin: 0 0 0.25rem;
}
.pc-result__headline--green { color: #5B8C5A; }
.pc-result__headline--amber { color: #C9963A; }
.pc-result__headline--red   { color: #B14242; }
.pc-result__sub { font-size: 0.9rem; color: var(--dta-slate-600, #6a645a); margin: 0 0 1rem; }

.pc-bar {
  height: 18px; background: var(--dta-slate-200, #DED8CE); border-radius: 9px; overflow: hidden;
}
.pc-bar__fill { height: 100%; transition: width 0.18s ease, background 0.18s ease; }
.pc-bar--green .pc-bar__fill { background: #5B8C5A; }
.pc-bar--amber .pc-bar__fill { background: #C9963A; }
.pc-bar--red   .pc-bar__fill { background: #B14242; }
.pc-bar__pct { font-size: 0.85rem; color: var(--dta-slate-600, #6a645a); margin: 0.4rem 0 1rem; }

.pc-result__bd-title {
  font-family: var(--dta-font-heading); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.02em;
  margin: 1rem 0 0.5rem; color: var(--dta-slate-700, #4a463f);
}
.pc-result__bd-list { list-style: none; padding: 0; margin: 0; }
.pc-result__bd-item {
  display: flex; justify-content: space-between; padding: 0.3rem 0;
  border-bottom: 1px solid var(--dta-slate-200, #DED8CE);
  font-size: 0.95rem;
}
.pc-result__bd-item:last-child { border-bottom: 0; }
.pc-result__bd-weight { color: var(--dta-slate-700, #4a463f); font-weight: 600; }

/* Share button — re-uses dta-btn baseline */
.pc-share-btn { margin-top: 0.5rem; }

/* FAQ */
.pc-faq {
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--dta-slate-200, #DED8CE);
  padding: 0.5rem 0;
}
.pc-faq__q {
  cursor: pointer; font-weight: 700; padding: 0.5rem 0;
  font-size: 1.05rem; color: var(--dta-slate-900, #2c2924);
  list-style: revert;
}
.pc-faq__a { padding: 0.25rem 0 0.75rem 1rem; color: var(--dta-slate-700, #4a463f); }
.pc-faq__a p, .pc-faq__a ul, .pc-faq__a ol { margin: 0.5rem 0; }

/* Mobile sticky result bar (hidden on desktop) */
.pc-mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--dta-slate-900, #2c2924);
  color: var(--dta-white, #fff);
  font-family: var(--dta-font-heading);
  text-transform: uppercase; letter-spacing: 0.02em;
  font-weight: 700; font-size: 0.95rem;
  cursor: pointer; z-index: 90;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.18);
}
.pc-mobile-bar__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  opacity: 0.25;
  transition: width 0.18s ease, background 0.18s ease;
}
.pc-mobile-bar--green .pc-mobile-bar__fill { background: #5B8C5A; }
.pc-mobile-bar--amber .pc-mobile-bar__fill { background: #C9963A; }
.pc-mobile-bar--red   .pc-mobile-bar__fill { background: #B14242; }
.pc-mobile-bar__num   { position: relative; z-index: 1; }
.pc-mobile-bar__pct   { position: relative; z-index: 1; margin-left: auto; opacity: 0.85; }

@media (min-width: 1024px) {
  .pc-mobile-bar { display: none; }
}
