/* Start Here quick filter — mobile-first, CSS :has() for the steps (no JS required). */
.content .start-here-form,
.content .start-here-index{
  max-width:36rem;
  margin:0 auto 2.5rem;
  text-align:center;
}
.start-here-form{
  padding:0 0 0.5rem;
}
.start-here-form fieldset{
  border:0;
  margin:0;
  padding:0;
  min-width:0;
}
.start-here-form legend{
  display:block;
  float:none;
  width:100%;
  margin:0 0 1rem;
  padding:0;
  font:500 1.35rem/1.3 var(--display, Georgia, serif);
  color:var(--ink);
  text-align:center;
}
.sh-opts{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  text-align:left;
}
.sh-opts-projects{
  grid-template-columns:1fr 1fr;
}
@media (min-width:640px){
  .sh-opts{grid-template-columns:1fr 1fr;}
  .sh-opts-projects{grid-template-columns:1fr 1fr 1fr;}
  .start-here-form legend{font-size:1.5rem;}
}
.sh-opts label{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:56px;
  padding:16px 14px;
  border:1.5px solid var(--ink, #2A2623);
  background:#fff;
  color:var(--ink, #2A2623);
  font:600 1.02rem/1.25 var(--sans, system-ui, sans-serif);
  cursor:pointer;
  box-shadow:3px 3px 0 var(--ink, #2A2623);
}
.sh-opts input{
  position:absolute;
  opacity:0;
  pointer-events:none;
  width:1px;
  height:1px;
}
.sh-opts label:has(input:checked){
  background:var(--ink, #2A2623);
  color:var(--paper, #FAF7F0);
}
.sh-opts label:has(input:focus-visible){
  outline:3px solid var(--clay, #B85C38);
  outline-offset:3px;
}
.sh-opts label:hover{
  background:var(--sand, #F3EDE3);
}
.sh-opts label:has(input:checked):hover{
  background:var(--ink, #2A2623);
}

/* Hide follow-up questions and result lists until the matching radios are checked.
   Without :has() support, the plain-list fallback below stays available. */
.sh-q,
.sh-results,
.sh-reset-wrap{
  display:none;
}
.start-here-form:has(#sh-p-patio:checked) #sh-q-patio,
.start-here-form:has(#sh-p-walkway:checked) #sh-q-walkway,
.start-here-form:has(#sh-p-driveway:checked) #sh-q-driveway,
.start-here-form:has(#sh-p-wall:checked) #sh-q-wall,
.start-here-form:has(#sh-p-pool:checked) #sh-q-pool,
.start-here-form:has(#sh-p-fireplace:checked) #sh-q-fireplace{
  display:block;
  margin-top:2rem;
}
.start-here-form:has(#sh-p-patio:checked):has(#sh-patio-flag:checked) #sh-r-patio-flag,
.start-here-form:has(#sh-p-patio:checked):has(#sh-patio-cut:checked) #sh-r-patio-cut,
.start-here-form:has(#sh-p-patio:checked):has(#sh-patio-unsure:checked) #sh-r-patio-unsure,
.start-here-form:has(#sh-p-walkway:checked):has(#sh-walk-flag:checked) #sh-r-walkway-flag,
.start-here-form:has(#sh-p-walkway:checked):has(#sh-walk-cobble:checked) #sh-r-walkway-cobble,
.start-here-form:has(#sh-p-walkway:checked):has(#sh-walk-cut:checked) #sh-r-walkway-cut,
.start-here-form:has(#sh-p-driveway:checked):has(#sh-drive-stone:checked) #sh-r-driveway-stone,
.start-here-form:has(#sh-p-driveway:checked):has(#sh-drive-compare:checked) #sh-r-driveway-compare,
.start-here-form:has(#sh-p-wall:checked):has(#sh-wall-retain:checked) #sh-r-wall-retain,
.start-here-form:has(#sh-p-wall:checked):has(#sh-wall-veneer:checked) #sh-r-wall-veneer,
.start-here-form:has(#sh-p-pool:checked):has(#sh-pool-comfort:checked) #sh-r-pool-comfort,
.start-here-form:has(#sh-p-pool:checked):has(#sh-pool-compare:checked) #sh-r-pool-compare,
.start-here-form:has(#sh-p-fireplace:checked):has(#sh-fire-natural:checked) #sh-r-fireplace-natural,
.start-here-form:has(#sh-p-fireplace:checked):has(#sh-fire-compare:checked) #sh-r-fireplace-compare{
  display:block;
  margin-top:2.25rem;
  text-align:left;
}
.start-here-form:has([name="project"]:checked) .sh-reset-wrap{
  display:block;
  margin:1.5rem 0 0;
}
.sh-results h2{
  text-align:center;
  margin:0 0 1.1rem;
  font:500 1.35rem/1.3 var(--display, Georgia, serif);
}
.sh-results ol{
  list-style:none;
  margin:0;
  padding:0;
  counter-reset:sh;
}
.sh-results li{
  counter-increment:sh;
  margin:0 0 12px;
}
.sh-results a{
  display:block;
  position:relative;
  padding:16px 16px 16px 3.4rem;
  min-height:56px;
  border:1.5px solid var(--ink, #2A2623);
  background:#fff;
  color:var(--ink, #2A2623);
  text-decoration:none;
  box-shadow:3px 3px 0 var(--ink, #2A2623);
}
.sh-results a::before{
  content:counter(sh);
  position:absolute;
  left:14px;
  top:16px;
  width:1.7rem;
  height:1.7rem;
  border:1.5px solid var(--ink, #2A2623);
  background:var(--sand, #F3EDE3);
  font:700 0.95rem/1.7rem var(--sans, system-ui, sans-serif);
  text-align:center;
}
.sh-results a:hover{
  background:var(--sand, #F3EDE3);
}
.sh-results a:focus-visible{
  outline:3px solid var(--clay, #B85C38);
  outline-offset:3px;
}
.sh-title{
  display:block;
  font:700 1.05rem/1.3 var(--sans, system-ui, sans-serif);
}
.sh-why{
  display:block;
  margin-top:0.3rem;
  font:400 0.95rem/1.45 var(--sans, system-ui, sans-serif);
  color:var(--ink-2, #5C564F);
}
.sh-reset{
  background:none;
  border:0;
  padding:0.7rem 1rem;
  font:inherit;
  text-decoration:underline;
  cursor:pointer;
  color:var(--ink, #2A2623);
}
.sh-reset:focus-visible{
  outline:3px solid var(--clay, #B85C38);
  outline-offset:3px;
}

.start-here-index{
  text-align:left;
  margin-top:2.5rem;
  padding-top:0.5rem;
}
.start-here-index summary{
  cursor:pointer;
  font:600 1rem/1.4 var(--sans, system-ui, sans-serif);
  padding:12px 0;
  text-align:center;
}
.start-here-index summary:focus-visible{
  outline:3px solid var(--clay, #B85C38);
  outline-offset:3px;
}
.start-here-index .sh-index-lead{
  text-align:center;
  color:var(--ink-2, #5C564F);
}
.start-here-index h2{
  margin:1.6rem 0 0.6rem;
  font:500 1.25rem var(--display, Georgia, serif);
}
.start-here-index h3{
  margin:1rem 0 0.4rem;
  font:700 1rem var(--sans, system-ui, sans-serif);
}
.start-here-index ol{
  margin:0 0 0.6rem 1.2rem;
  padding:0;
}
.start-here-index li{
  margin:0 0 0.45rem;
  line-height:1.45;
}

@supports not selector(:has(*)){
  .sh-q,
  .sh-results,
  .sh-reset-wrap{
    display:none !important;
  }
  .start-here-index details{
    border:1.5px solid var(--ink, #2A2623);
    padding:8px 16px 16px;
  }
  .start-here-index details[open],
  .start-here-index details{
    /* Keep the list easy to open when the radio UI cannot reveal results. */
  }
}
