.lifecycle-compare { background: #f3f2e9; color: #203c32; }
.lifecycle-compare .brand { display: inline-flex; align-items: center; gap: 9px; }
.lifecycle-compare .brand-symbol { display: inline-flex; width: 28px; height: 28px; }
.lifecycle-compare .brand-symbol svg { width: 100%; height: 100%; }
.lifecycle-compare .skip-link { position: absolute; top: 8px; left: -9999px; z-index: 5; background: #fffefa; padding: 8px 12px; }
.lifecycle-compare .skip-link:focus-visible { left: 12px; }
.lifecycle-main { max-width: 1040px; padding-top: 8px; }
.lifecycle-main .path { margin: 0 0 10px; color: #56685d; font-size: .84rem; }
.lifecycle-main h1 { margin: 0; max-width: 24ch; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.lifecycle-main .lead { max-width: 66ch; margin: 12px 0 21px; color: #486155; font-size: 1rem; line-height: 1.55; }
.lifecycle-main .eyebrow { margin: 0 0 5px; color: #386e54; font-size: .68rem; font-weight: 820; letter-spacing: .12em; }
.answer-ledger { border: 1px solid #bdcabe; border-top: 5px solid #386e54; background: #fffefa; padding: clamp(15px, 2.7vw, 24px); }
.answer-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; border-bottom: 1px solid #cbd6cb; padding-bottom: 14px; }
.answer-heading h2 { margin: 0; font-size: 1.18rem; }
#answer { max-width: 38ch; margin: 0; color: #17533d; font-size: 1rem; font-weight: 760; line-height: 1.4; text-align: right; overflow-wrap: anywhere; }
.totals-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.total { min-width: 0; display: grid; align-content: start; gap: 5px; padding: 15px 16px 14px 0; }
.total + .total { border-left: 1px solid #cbd6cb; padding-left: 20px; }
.total span { color: #32654e; font-size: .81rem; font-weight: 760; overflow-wrap: anywhere; }
.total-gravel span { color: #775a32; }
.total strong { font-size: clamp(1.55rem, 3vw, 2.25rem); font-variant-numeric: tabular-nums; line-height: 1.05; letter-spacing: -.035em; overflow-wrap: anywhere; }
.total small { color: #506156; font-size: .77rem; line-height: 1.4; }
.answer-detail { border-top: 1px solid #cbd6cb; margin: 0; padding-top: 10px; color: #445b4d; font-size: .8rem; line-height: 1.5; }
.ledger-form { margin: 24px 0 0; }
.ledger-form fieldset { min-width: 0; }
.shared-settings { margin: 0; border: 0; border-top: 2px solid #738677; padding: 11px 0 13px; }
.shared-settings legend { padding: 0; color: #203c32; font-size: 1.05rem; font-weight: 780; }
.shared-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 100%; margin-top: 8px; }
#custom-material-field { max-width: 340px; margin-top: 10px; }
.ledger-form label { display: grid; gap: 5px; min-width: 0; color: #263f32; font-size: .84rem; font-weight: 740; }
.ledger-form label > span { color: #596b60; font-size: .73rem; font-weight: 500; line-height: 1.35; }
.ledger-form input, .ledger-form select { box-sizing: border-box; width: 100%; min-height: 44px; padding: 7px 10px; border: 1px solid #a9b9ad; border-radius: 3px; background: #fffefa; color: #203c32; font-size: 1rem; font-variant-numeric: tabular-nums; }
.ledger-form select { cursor: pointer; }
.shared-settings > p { max-width: 68ch; margin: 9px 0 0; color: #506156; font-size: .81rem; line-height: 1.5; }
.quote-ledgers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-top: 8px; }
.quote-ledger { min-width: 0; margin: 0; border: 0; border-top: 3px solid #386e54; padding: 12px 0 0; }
.quote-ledger legend { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 0; color: #203c32; font-size: 1.05rem; font-weight: 790; }
#alternative-name { overflow-wrap: anywhere; }
.gravel-ledger { border-color: #98794a; }
.ledger-marker { display: inline-grid; place-items: center; width: 25px; height: 25px; border: 1px solid #386e54; border-radius: 50%; color: #286b4e; font-size: .72rem; }
.gravel-ledger .ledger-marker { border-color: #98794a; color: #775a32; }
.quote-ledger > p { max-width: 48ch; margin: 2px 0 12px; color: #506156; font-size: .8rem; line-height: 1.45; }
.quote-ledger > label, .scheduled-fields { margin-top: 11px; }
.scheduled-fields { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(105px, .8fr); gap: 11px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; border-top: 1px solid #cbd6cb; padding-top: 11px; }
#validation-message { margin: 0; color: #506156; font-size: .8rem; line-height: 1.45; }
.clear-button { min-height: 40px; border: 1px solid #8ca091; border-radius: 3px; padding: 7px 12px; color: #203c32; background: #fffefa; font-size: .82rem; font-weight: 730; }
.lifecycle-compare :is(a, input, select, button, summary) { touch-action: manipulation; }
.clear-button:hover { border-color: #286b4e; background: #e6efe8; }
.lifecycle-compare :is(a, input, select, button, .table-wrap, summary):focus-visible { outline: 3px solid #b46727; outline-offset: 2px; }
.projection { margin: 30px 0 10px; padding-top: 20px; border-top: 1px solid #b9c8ba; }
.projection[hidden] { display: none; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 12px; }
.section-heading h2 { margin: 0; font-size: 1.28rem; }
#projection-scope { max-width: 46ch; margin: 0; color: #506156; font-size: .78rem; line-height: 1.45; text-align: right; }
.cost-chart { margin: 12px 0 16px; padding: 12px 14px 9px; border: 1px solid #cbd6cb; background: #fffefa; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 9px 20px; font-size: .79rem; font-weight: 740; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; overflow-wrap: anywhere; }
.chart-legend span::before { width: 18px; height: 3px; background: #2f7653; content: ""; }
.chart-legend .legend-gravel::before { background: #9a7040; }
#cost-chart { display: block; width: 100%; height: auto; min-height: 150px; }
#cost-chart .gridline { stroke: #d8ded8; stroke-width: 1; }
#cost-chart .axis-text { fill: #53675a; font: 12px Inter, ui-sans-serif, system-ui, sans-serif; }
#cost-chart .mulch-line { fill: none; stroke: #2f7653; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
#cost-chart .gravel-line { fill: none; stroke: #9a7040; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
#cost-chart .mulch-point { fill: #2f7653; }
#cost-chart .gravel-point { fill: #9a7040; }
.cost-chart figcaption { color: #516458; font-size: .77rem; line-height: 1.45; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #cbd6cb; background: #fffefa; }
.table-wrap:focus-visible { outline-offset: 2px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table-wrap caption { padding: 9px 11px; color: #506156; font-size: .75rem; text-align: left; }
.table-wrap th, .table-wrap td { padding: 9px 11px; border-top: 1px solid #d8ded8; text-align: right; white-space: nowrap; }
.table-wrap th:first-child, .table-wrap td:first-child { text-align: left; }
.table-wrap thead { background: #eef2ec; color: #263f32; font-size: .78rem; }
.table-wrap tbody { font-size: .82rem; }
.table-wrap tbody tr:last-child { font-weight: 780; }
.method-figure { margin: 22px 0 25px; border-top: 1px solid #b9c8ba; border-bottom: 1px solid #b9c8ba; padding: 15px 0; }
.method-figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.method-figure figcaption { margin-top: 8px; color: #516458; font-size: .8rem; line-height: 1.45; }
.explanation { max-width: 78ch; margin: 0 0 27px; }
.explanation h2, .faq h2 { margin: 0 0 10px; font-size: 1.28rem; letter-spacing: -.02em; }
.explanation p { margin: 0 0 11px; color: #344b3c; line-height: 1.62; }
.faq { margin: 24px 0; }
.faq details { border-top: 1px solid #b9c8ba; padding: 11px 0; }
.faq details:last-child { border-bottom: 1px solid #b9c8ba; }
.faq summary { cursor: pointer; font-weight: 740; }
.faq details p { max-width: 78ch; margin: 8px 0 0; color: #344b3c; line-height: 1.55; }
.related-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 27px 0 0; border-top: 1px solid #b9c8ba; padding-top: 16px; }
.related-links a { display: flex; flex-direction: column; gap: 4px; padding: 12px 13px; border: 1px solid #cbd6cb; background: #fffefa; color: #203c32; text-decoration: none; }
.related-links a:hover, .related-links a:focus-visible { border-color: #386e54; background: #eaf1ea; }
.related-links strong { font-size: .87rem; }
.related-links span { color: #506156; font-size: .76rem; line-height: 1.42; }
@media (max-width: 700px) {
  .quote-ledgers { grid-template-columns: 1fr; gap: 18px; }
  .shared-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .answer-heading { display: block; }
  #answer { max-width: none; margin-top: 10px; text-align: left; }
  .section-heading { display: block; }
  #projection-scope { margin-top: 6px; text-align: left; }
  .related-links { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .lifecycle-main { width: calc(100% - 24px); }
  .lifecycle-main .lead { font-size: .94rem; }
  .shared-grid { grid-template-columns: 1fr; }
  .totals-grid { grid-template-columns: 1fr 1fr; }
  .total { padding-right: 8px; }
  .total + .total { padding-left: 10px; }
  .total strong { font-size: clamp(1.35rem, 7vw, 1.8rem); }
  .scheduled-fields { grid-template-columns: minmax(0, 1.2fr) minmax(96px, .8fr); gap: 8px; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .cost-chart { padding-inline: 8px; }
  #cost-chart .axis-text { font-size: 22px; }
  .table-wrap th, .table-wrap td { padding: 8px 8px; }
}
@media (max-width: 600px) {
  .method-figure picture img { aspect-ratio: 360 / 590; }
}
