.ws-compare { margin-top:clamp(3rem,6vw,6rem); }
.ws-reference-table { width:100%; border-collapse:collapse; margin:1.4rem 0 .8rem; }
.ws-reference-table th,.ws-reference-table td { padding:.8rem 1rem; text-align:left; vertical-align:top; border-bottom:1px solid var(--cw-line); }
.ws-reference-table thead { color:var(--cw-pine); background:#deeee5; }
.ws-reference-table tbody th { color:var(--cw-pine); width:20%; }
.ws-reference-table tbody td { width:40%; }
.ws-reference-table td strong { color:var(--cw-pine); display:block; font-size:1.2rem; line-height:1.3; }
.ws-reference-table td span { display:block; margin-top:.25rem; }
.ws-scope, .ws-guidance,.ws-intro,.ws-source-notes p { line-height:1.55; max-width:82ch; }
.ws-source-notes { margin-top:.8rem; }

/* One form and one trip estimate, with the next action directly after the figures. */
.ws-estimator {
  --ws-space: clamp(1.1rem, 2.4vw, 2rem);
  margin-top: 1.6rem;
  padding: clamp(1rem, 3vw, 2.6rem);
  border: 1px solid #c2d7d2;
  border-radius: 1.35rem;
  background: #eaf3ef;
}
.cw-page .ws-estimator h3 {
  font: 500 clamp(2rem, 3.7vw, 3.45rem)/1.06 Georgia, 'Times New Roman', serif;
  letter-spacing: -.048em;
  text-wrap: balance;
}
.cw-page .ws-estimator .ws-intro { margin-top: .65rem; max-width: 62ch; color: #374f4c; }
.ws-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: 'quotes result' 'actions result';
  grid-template-rows: auto 1fr;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid #bed1c9;
  border-radius: 1rem;
  overflow: clip;
  background: #fffefa;
}
.ws-quotes { grid-area: quotes; min-width: 0; padding: var(--ws-space) var(--ws-space) 0; }
.ws-estimator .ws-quotes-heading {
  margin: 0 0 .85rem;
  color: var(--cw-pine);
  font-size: 1.26rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.ws-controls:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .95rem .8rem;
  align-items: start;
}
.ws-controls label { min-width: 0; color: #263e3b; font-size: .94rem; font-weight: 650; line-height: 1.35; }
.ws-wide { grid-column: 1 / -1; }
.ws-controls input, .ws-controls select {
  display: block; width: 100%; min-width: 0; min-height: 48px; box-sizing: border-box;
  margin: .3rem 0 0; padding: .55rem .72rem;
  border: 1px solid #718b83; border-radius: .53rem; background: #fff;
  color: var(--cw-pine); font: inherit; font-size: 1.06rem; font-variant-numeric: tabular-nums;
}
.ws-controls input[aria-invalid=true] { border: 2px solid #993631; }
.ws-controls small { display: block; margin: .24rem 0 0; color: #365e50; font-size: .88rem; font-weight: 580; }
.ws-controls small:empty { display: none; }
.ws-quotes-footer {
  grid-area: actions;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  min-width: 0; gap: .3rem;
  padding: .7rem var(--ws-space) var(--ws-space);
}
.ws-local-details { width: 100%; margin: 0; border-top: 1px solid #d5e2da; }
.ws-local-details summary {
  padding: .65rem 0; min-height: 44px; box-sizing: border-box;
  font-weight: 650; color: #214d44; cursor: pointer;
}
.ws-local-details p { padding: 0 0 .6rem; font-size: .95rem; line-height: 1.55; color: #3d5751; }
.ws-estimator .ws-budget-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #185a50; text-underline-offset: .19em;
}
.ws-estimator .ws-plan-link {
  display: inline-flex; justify-content: center; align-items: center; min-height: 46px;
  margin-top: .25rem; padding: .6rem 1rem; border-radius: .55rem;
  text-align: center; text-decoration: none; color: #fff; background: #155348;
  font-size: 1rem; font-weight: 700; line-height: 1.3;
}
.ws-estimator .ws-plan-link:hover { background: #0c3b33; }
.ws-result {
  grid-area: result; display: flex; flex-direction: column; gap: .95rem; min-width: 0;
  padding: var(--ws-space); color: #f8fffb; background: #104541;
}
.ws-result dl, .ws-result dd { margin: 0; }
.ws-result dd { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ws-net dt { color: #e0f6ea; font-weight: 630; line-height: 1.25; }
.ws-net dd {
  color: #fff5ce; margin: .25rem 0 .35rem;
  font: 500 clamp(2.8rem, 4.5vw, 4.75rem)/1 Georgia, 'Times New Roman', serif;
  letter-spacing: -.045em;
}
.ws-result #ws-outcome { max-width: 45ch; color: #ecf6ef; line-height: 1.4; font-size: .96rem; }
.ws-totals {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  padding-block: .82rem; border-block: 1px solid #62908a;
}
.ws-totals > div { display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.ws-totals > div:first-child { padding-right: .62rem; }
.ws-totals > div + div { padding-left: .8rem; border-left: 1px solid #62908a; }
.ws-totals dt { color: #dfefe9; font-size: .89rem; line-height: 1.3; }
.ws-totals dd { margin-top: .3rem; font-size: clamp(1.18rem, 1.9vw, 1.55rem); font-weight: 720; line-height: 1.2; }
.ws-breakdown { display: grid; gap: .4rem; }
.ws-breakdown > div { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.ws-breakdown dt, .ws-breakdown dd { font-size: .9rem; line-height: 1.35; }
.ws-breakdown dt { color: #e1f1e8; }
.ws-breakdown dd { text-align: right; font-weight: 650; }
.ws-result #ws-status { color: #daebe4; font-size: .88rem; line-height: 1.4; }
.ws-result [hidden] { display: none !important; }
.ws-result .winter-trip-stamp {
  position: relative; isolation: isolate; overflow: hidden;
  margin: auto 0 0; min-height: 4.65rem; padding: .75rem .85rem;
  border: 0; border-radius: .55rem; background-color: #fff0cc;
}
.ws-result .winter-trip-stamp::before {
  content: ''; position: absolute; z-index: -1; inset: 0 0 0 auto; width: 47%;
  background: linear-gradient(90deg,#fff0cc 0%,rgba(255,240,204,.85) 12%,transparent 72%),
              url('/assets/winter-slope.webp') 55% 40% / cover;
}
.ws-result .winter-trip-stamp:has([data-stamp-route="none"]:not([hidden]))::before { content: none; }
.ws-result .winter-trip-seal { width: 2.8rem; height: 2.8rem; }
.ws-result .winter-trip-stamp-copy { max-width: 66%; }
.ws-result .winter-trip-stamp-copy strong, .ws-result .winter-trip-stamp-copy [data-stamp-route] {
  background-color: #fff0cc; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.ws-result .winter-trip-stamp-copy strong { display: inline; line-height: 1.35; }
.ws-result .winter-trip-stamp-copy [data-stamp-route]:not([hidden]) { display: table; margin-top: .12rem; }
@media (min-width:761px) and (max-width:930px) {
  .ws-controls:not([hidden]) { grid-template-columns: minmax(0,1fr); gap: .62rem; }
}
@media (max-width:760px) {
  .ws-estimator { padding: 1rem; }
  .ws-grid {
    grid-template-columns: minmax(0,1fr); grid-template-rows: auto;
    grid-template-areas: 'quotes' 'result' 'actions';
  }
  .ws-quotes { padding: var(--ws-space); }
  .ws-quotes-footer { padding: .6rem var(--ws-space) var(--ws-space); gap: .15rem; }
  .ws-local-details { border: 0; }
  .ws-estimator .ws-plan-link { width: 100%; box-sizing: border-box; }
}
@media (max-width:599px) {
  .ws-controls:not([hidden]) { grid-template-columns: minmax(0,1fr); gap: .68rem; }
  .ws-result { gap: .85rem; }
  .ws-compare .ws-estimator { margin-inline: -.3rem; padding: .8rem; }
  .ws-totals > div + div { padding-left: .55rem; }
}
@media (max-width:740px) {
  .ws-reference-table th,.ws-reference-table td { padding:.65rem .5rem; }
}
@media (max-width:520px) {
  .ws-reference-table thead { clip-path:inset(50%); height:1px; width:1px; overflow:hidden; position:absolute; white-space:nowrap; }
  .ws-reference-table,.ws-reference-table tbody,.ws-reference-table tr,.ws-reference-table td,.ws-reference-table th { display:block; }
  .ws-reference-table tr { margin-bottom:.8rem; border:1px solid var(--cw-line); border-radius:.5rem; overflow:hidden; }
  .ws-reference-table tbody th,.ws-reference-table tbody td { width:auto; padding:.6rem .8rem; }
  .ws-reference-table tbody th { background:#deeee5; }
  .ws-reference-table tbody td:last-child { border:0; }
  .ws-reference-table td::before { content:attr(data-label); display:block; font-size:.8rem; font-weight:650; }
}

@media print {
  .ws-estimator,.ws-grid,.ws-result,.ws-quotes { background: white; }
  .ws-result,.ws-result * { color: #182e32 !important; }
  .ws-result .winter-trip-stamp::before { content: none; }
}
