/* Three essential choices; optional refinements remain on the finished guide. */
.wizard-progress ol{grid-template-columns:repeat(3,minmax(0,1fr))!important}
#guide-extra-questions details{border:1px solid #cbdce6;border-radius:10px;margin:.65rem 0;background:#fff;overflow:hidden}
#guide-extra-questions summary{padding:1rem;min-height:48px;color:#00486d;font-weight:800;cursor:pointer}
#guide-extra-questions summary small{font-weight:500}
#guide-extra-questions details>p,#guide-extra-questions details>label{margin:0 1rem 1rem}
#guide-extra-questions .name-input{width:calc(100% - 2rem);margin:0 1rem 1rem}
.guide-extra-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;padding:0 1rem 1rem}
.guide-extra-choice{display:flex;flex-direction:column;gap:.35rem;min-height:60px;text-align:left;padding:.85rem;border:2px solid #d2e1e8;border-radius:8px;background:#f6fafb;color:#123d53;font:inherit;cursor:pointer}
.guide-extra-choice small{font-size:.85rem;line-height:1.4;font-weight:400}
.guide-extra-choice.selected{border-color:#00486d;background:#e4f2f8}
.guide-extra-choice:focus-visible,#guide-extra-questions summary:focus-visible{outline:3px solid #dcae48;outline-offset:2px}
@media(max-width:820px){
 #wizard-screen .wizard-intro{display:none!important}
 #wizard-screen .wizard-panel{padding:20px 18px calc(112px + env(safe-area-inset-bottom,0px))!important}
 #wizard-screen .question-heading{margin-bottom:14px}
 #wizard-screen #question-why{display:none}
 #wizard-screen #question-title{font-size:clamp(25px,6vw,32px);line-height:1.2}
 #wizard-screen .wizard-progress{margin:12px 0 20px}
 #wizard-screen #wizard-continue-actions{position:fixed;z-index:30;inset:auto 0 0;display:flex;gap:.6rem;padding:10px 18px calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid #c5d9e4;background:#fff;box-shadow:0 -3px 14px #00344d1f}
 #wizard-screen #wizard-continue-actions #wizard-next{display:inline-flex!important;align-items:center;justify-content:center;flex:1;min-height:48px;font-size:17px;padding:12px 16px}
 #wizard-screen #quick-update{display:none!important}
 #wizard-screen .picker-mobile-continue{display:none!important}
 #wizard-screen .picker-shortlist-head .button{display:none!important}
 #wizard-screen .age-photo-grid{display:grid;grid-template-columns:1fr;gap:10px}
 #wizard-screen .age-tier{display:grid;grid-template-columns:72px minmax(0,1fr)}
 #wizard-screen .age-tier-photo{height:100%;min-height:100px}
 #wizard-screen .age-tier-photo .guide-photo{height:100%;min-height:100px}
 #wizard-screen .age-tier-photo>span{display:none}
 #wizard-screen .age-tier-copy{padding:10px 12px}
 #wizard-screen .age-tier-copy h3{font-size:16px;margin:0 0 3px}
 #wizard-screen .age-tier-copy p{font-size:12px;margin:0 0 4px}
 #wizard-screen .age-tier-copy small{display:none}
 #wizard-screen .age-tier-buttons{gap:5px;margin-top:6px;flex-wrap:wrap}
 #wizard-screen .age-choice{min-width:44px;min-height:44px;padding:6px}
 #wizard-screen .goal-photo-grid{display:grid;grid-template-columns:1fr;gap:9px}
 #wizard-screen .goal-photo-choice{display:flex;min-height:78px}
 #wizard-screen .goal-photo-choice .goal-photo{width:70px;flex:0 0 70px;min-height:78px;height:auto}
 #wizard-screen .goal-photo-choice .guide-photo{height:100%;min-height:78px}
 #wizard-screen .goal-photo-copy{flex:1;padding:12px}
 #wizard-screen .goal-photo-copy strong{font-size:15px}
 #wizard-screen .goal-photo-copy small{font-size:12px;line-height:1.35}
 .guide-extra-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){#wizard-screen *{scroll-behavior:auto!important}}

#guide-extra-questions[hidden],a[href="#guide-extra-questions"][hidden]{display:none!important}

/* Keep the next action available and give all age choices room to be tapped. */
@media (min-width: 821px) {
  #wizard-screen .wizard-panel {
    padding-bottom: 112px;
  }
  #wizard-screen #wizard-continue-actions {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 10px max(24px, calc((100vw - 1120px) / 2)) 10px 24px;
    border-top: 1px solid #c5d9e4;
    background: #fff;
    box-shadow: 0 -3px 14px #00344d1f;
  }
  #wizard-screen #wizard-continue-actions #wizard-next {
    min-height: 48px;
  }
}

#wizard-screen .age-choice {
  scroll-margin-bottom: 82px;
}

@media (max-width: 820px) {
  #wizard-screen[data-step="1"] .wizard-panel {
    padding-top: 12px !important;
  }
  #wizard-screen[data-step="1"] .wizard-progress {
    margin: 6px 0 10px;
  }
  #wizard-screen[data-step="1"] .question-heading {
    margin-bottom: 8px;
  }
  #wizard-screen[data-step="1"] #question-eyebrow {
    display: none;
  }
  #wizard-screen[data-step="1"] #question-help {
    margin-bottom: 0;
  }
  #wizard-screen .age-photo-grid {
    gap: 6px;
  }
  #wizard-screen .age-tier {
    display: block;
    min-height: 0;
  }
  #wizard-screen .age-tier-photo {
    display: none;
  }
  #wizard-screen .age-tier-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 8px;
    padding: 6px 8px;
  }
  #wizard-screen .age-tier-copy h3,
  #wizard-screen .age-tier-copy p {
    margin: 0;
    min-height: 0;
    line-height: 1.2;
  }
  #wizard-screen .age-tier-copy h3 {
    font-size: 15px;
  }
  #wizard-screen .age-tier-copy p {
    font-size: 12px;
  }
  #wizard-screen .age-tier-buttons {
    flex: 0 0 100%;
    grid-template-columns: repeat(4, minmax(44px, 1fr));
    margin-top: 4px;
  }
  #wizard-screen .age-choice {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (min-width: 821px) and (max-height: 880px) {
  #wizard-screen[data-step="1"] .wizard-panel {
    padding-top: 22px;
  }
  #wizard-screen[data-step="1"] .wizard-progress {
    margin: 12px 0 15px;
  }
  #wizard-screen[data-step="1"] .question-heading {
    margin-bottom: 15px;
  }
  #wizard-screen[data-step="1"] #question-why {
    margin-top: 12px;
    padding: 9px 12px;
  }
  #wizard-screen[data-step="1"] .age-tier-photo .guide-photo {
    height: 108px;
    min-height: 108px;
  }
  #wizard-screen[data-step="1"] .age-tier-photo .guide-photo img {
    height: 100%;
    min-height: 0;
  }
}

@media (max-width: 480px) and (max-height: 660px) {
  #wizard-screen[data-step="1"] .wizard-progress {
    display: none;
  }
}
