#main .page-intro { padding-block: clamp(1.05rem,3vw,2rem); margin-bottom: 1.15rem; }
#main .page-intro h1 { font-size: clamp(2.4rem,5.6vw,4.5rem); }
.finder-wizard { gap: clamp(1.25rem,3vw,2.25rem); }
.finder-wizard .finder-form { padding: clamp(.8rem,2.5vw,1.4rem); }
.finder-wizard .finder-form fieldset { margin-bottom: 1rem; }
.finder-wizard legend { margin: .8rem 0 .3rem; font-size: clamp(1.85rem,4vw,2.5rem); }
.finder-progress {
  display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; color: #5c4f5c;
  font-size: .78rem; font-weight: 650;
}
.finder-progress span { position: relative; padding-bottom: .5rem; border-bottom: 2px solid #ddcfcd; }
.finder-progress [aria-current] { color: var(--plum); }
.finder-progress [aria-current]::after {
  position: absolute; inset: auto 0 -2px; height: 3px; content: ""; background: #985a5a;
  transform-origin: left;
}
.finder-wizard-ready .finder-progress [aria-current]::after { animation: finder-step-trace 480ms cubic-bezier(.22,.75,.3,1) both; }
@keyframes finder-step-trace { from { transform: scaleX(.18); } to { transform: scaleX(1); } }
.finder-intro-copy { color: #5c4f5c; font-size: .86rem; margin: .2rem 0 .9rem; }
.pref-group { margin-block: .75rem 1rem; }
.pref-group h2 { font: 700 .88rem/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; margin: 0 0 .4rem; }
.pref-options { display: grid; gap: .4rem; grid-template-columns: repeat(3,minmax(0,1fr)); }
.position-options { grid-template-columns: repeat(4,minmax(0,1fr)); }
.pref-card { position: relative; min-width: 0; }
.pref-card input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.pref-card label {
  display: flex; flex-direction: column; justify-content: center; min-height: 52px; height: 100%;
  padding: .35rem clamp(.28rem,1vw,.55rem); gap: .18rem; line-height: 1.15; font-size: .8rem;
  border: 1px solid #bca9ad; border-radius: .28rem; background: #fffaf5; cursor: pointer;
  overflow-wrap: anywhere; transition: background-color 180ms ease-out, border-color 180ms ease-out, transform 140ms ease-out;
}
.pref-card small { color: #5c4f5c; font-size: .68rem; }
.pref-card input:checked + label { background: #f0dfe1; border-color: #74433e; box-shadow: inset 0 0 0 1px #74433e; }
.pref-card input:focus-visible + label { outline: 3px solid #a34c49; outline-offset: 2px; }
.pref-card input[aria-invalid] + label { border-color: #a34c49; }
.pref-card label:active { transform: translateY(2px); background: #ead4db; }
@media (hover:hover) and (pointer:fine) {
  .pref-card label:hover { border-color: #74433e; background: #f7ebec; }
}
.position-options label { align-items: center; text-align: center; }
.position-options svg { stroke: #74433e; stroke-width: 2.5; fill: none; width: 29px; height: 19px; }
.feel-swatch { display:block; width: 28px; height: .55rem; border: 1px solid #74433e; background: #e9cbab; }
.feel-soft { border-radius: 90% 65% 48% 77%; }
.feel-balanced { border-radius: 45% 35% 30% 42%; background: #e6d6df; }
.feel-firm { border-radius: .12rem; background: #dfe6dc; }
.finder-education { display: block; width: 100%; margin: .7rem 0 .35rem; }
.finder-education img {
  display: block; width: 100%; height: auto; max-height: 12rem; background: #f8f0e3;
  border: 1px solid #d9c9c6; border-radius: .3rem; object-fit: contain;
}
.finder-details { margin-block: .55rem; border: 1px solid #d9c9c6; background: #fffaf5; border-radius: .3rem; }
.finder-details summary { padding: .55rem .7rem; min-height: 44px; cursor: pointer; font-weight: 650; font-size: .88rem; }
.finder-details summary .task-mark { width: 1.1rem; height: 1.1rem; }
.finder-detail-body { padding: 0 .7rem .7rem; }
.finder-detail-body .fields { gap: .65rem .75rem; }
.finder-detail-body :is(input,select) { min-height:44px; }
.finder-detail-body input[aria-invalid] { outline: 2px solid #a34c49; }
.finder-action-bar { position: relative; background: #fffaf5; padding: .45rem 0; border-block-start: 1px solid #d9c9c6; }
#finder-selection-summary { font-size: .78rem; margin: 0 0 .35rem; color: #5c4f5c; }
#finder-inline-error { font-size: .82rem; color: #783e39; margin: .35rem 0; }
.finder-actions { display: flex; align-items: center; gap: .55rem; }
.finder-actions .finder-primary { margin-top: 0; min-height: 44px; justify-content: center; padding: .55rem .5rem; flex: 1; }
.finder-actions :is(.finder-back,.finder-reset) { min-height: 44px; padding: .35rem .2rem; margin: 0; white-space: nowrap; }
.finder-no-room { background: #f5ece7; border-left: 3px solid #985a5a; padding: .55rem; }
.finder-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-top: .75rem; }
.finder-result-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .85rem; }
.finder-result-sources > a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width:760px) {
  html:has(.finder-wizard-ready) { scroll-padding-block-end: 8rem; }
  .finder-page .crumb { padding-top: .65rem; }
  #main .finder-page .page-intro { margin-block: .45rem .75rem; padding: .65rem .85rem .75rem; }
  #main .finder-page .page-intro h1 { font-size: clamp(2.1rem, 8vw, 2.5rem); }
  .finder-page .page-intro > p { margin-top: .4rem; font-size: .88rem; line-height: 1.4; }
  .finder-wizard { margin-bottom: 1.5rem; }
  .finder-wizard .finder-form { padding: .65rem .75rem; }
  .finder-wizard legend { margin: .45rem 0 .2rem; font-size: 1.75rem; }
  .finder-intro-copy { margin-bottom: .55rem; }
  .pref-group { margin-block: .4rem .6rem; }
  .pref-group h2 { margin-bottom: .3rem; }
  .pref-card label { min-height: 48px; }
  .position-options label { padding-inline: .2rem; font-size: .75rem; }
  .position-options strong { white-space: nowrap; }
  .finder-wizard-ready .finder-action-bar { position: sticky; z-index: 2; bottom: 0; padding: .5rem; margin-inline: -.35rem; }
  .finder-actions .finder-primary { font-size: .79rem; }
}
@media (prefers-reduced-motion:reduce) {
  .finder-wizard-ready .finder-progress [aria-current]::after { animation: none; }
  .pref-card label:active { transform: none; }
}
@media print { .finder-action-bar { display: none; } }
