.home-discovery{margin-top:28px;border:1px solid var(--border-color);border-radius:8px;background:var(--bg-surface);overflow:hidden;box-shadow:var(--shadow-dark)}
.discovery-toggle{display:none;width:100%;min-height:74px;padding:0 24px;border:0;color:var(--text-primary);background:var(--bg-card);align-items:center;justify-content:space-between;font-size:20px;font-weight:900;text-align:right}
.discovery-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s var(--ease)}
.discovery-body{padding:18px}
.discovery-form{display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) minmax(130px,.72fr) minmax(150px,.85fr);gap:10px;align-items:stretch}
.discovery-field{position:relative;min-width:0;height:52px;border:1px solid #3a3d43;border-radius:7px;background:#242526;transition:border-color .2s,background .2s}
.discovery-field:hover,.discovery-field:focus-within{border-color:#62666e;background:#292a2c}
.discovery-field span{position:absolute;z-index:1;top:7px;right:13px;max-width:calc(100% - 36px);color:var(--text-secondary);font-size:9px;font-weight:800;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.discovery-field select{width:100%;height:100%;padding:19px 12px 4px 32px;border:0;outline:0;color:#fff;background:transparent;font:inherit;font-size:11px;cursor:pointer;appearance:auto}
.discovery-field select:focus-visible{box-shadow:inset 0 0 0 2px rgba(242,13,24,.5);border-radius:7px}
.discovery-hd{height:52px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #3a3d43;border-radius:7px;color:var(--text-secondary);background:#242526;font-size:11px;font-weight:800;cursor:pointer}
.discovery-hd input{position:absolute;opacity:0;pointer-events:none}
.discovery-switch{position:relative;width:38px;height:21px;border-radius:20px;background:#5a5d62;transition:background .2s}
.discovery-switch::after{content:"";position:absolute;top:3px;right:3px;width:15px;height:15px;border-radius:50%;background:#c6c8cc;transition:transform .2s,background .2s}
.discovery-hd input:checked+.discovery-switch{background:var(--brand-red)}
.discovery-hd input:checked+.discovery-switch::after{transform:translateX(-17px);background:#fff}
.discovery-hd input:focus-visible+.discovery-switch{outline:2px solid #fff;outline-offset:3px}
.discovery-submit{height:52px;padding:0 18px;display:flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:7px;color:#fff;background:var(--brand-red);font-weight:900;transition:background .2s,opacity .2s,transform .2s}
.discovery-submit svg{display:none;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.discovery-submit:hover:not(:disabled){background:var(--brand-red-light);transform:translateY(-1px)}
.discovery-submit:disabled{color:#9a9a9a;background:#595a5c;cursor:not-allowed;opacity:.72}
.discovery-results{scroll-margin-top:145px;margin-top:34px;padding-top:4px}
.discovery-results[hidden]{display:none}
.discovery-results .section-head{align-items:end}
.discovery-results .section-head h2{margin-top:2px}

@media(max-width:1180px) and (min-width:768px){
  .discovery-form{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:767px){
  .home-discovery{margin-top:24px}
  .discovery-toggle{display:flex}
  .discovery-toggle svg{transform:rotate(0)}
  .home-discovery.open .discovery-toggle svg{transform:rotate(180deg)}
  .discovery-body{max-height:0;padding:0 27px;overflow:hidden;visibility:hidden;opacity:0;background:#222323;transition:max-height .38s var(--ease),padding .3s var(--ease),opacity .22s,visibility 0s .38s}
  .home-discovery.open .discovery-body{max-height:760px;padding-block:32px;visibility:visible;opacity:1;transition:max-height .42s var(--ease),padding .3s var(--ease),opacity .26s .08s,visibility 0s}
  .discovery-form{grid-template-columns:1fr;gap:14px}
  .discovery-field,.discovery-hd,.discovery-submit{height:58px}
  .discovery-field span{top:8px;right:15px;font-size:11px}
  .discovery-field select{padding:22px 14px 5px 35px;font-size:12px}
  .discovery-hd{padding-inline:15px;font-size:13px}
  .discovery-submit{margin-top:2px;font-size:13px}
  .discovery-submit svg{display:block}
  .discovery-results{margin-top:30px;scroll-margin-top:125px}
  .discovery-results .section-head{align-items:center;gap:12px}
  .discovery-results .section-head h2{font-size:17px}
}

@media(max-width:420px){
  .discovery-toggle{min-height:66px;padding-inline:18px;font-size:18px}
  .discovery-body{padding-inline:18px}
  .home-discovery.open .discovery-body{padding-block:22px}
}

@media(prefers-reduced-motion:reduce){
  .discovery-toggle svg,.discovery-body,.discovery-submit,.discovery-switch,.discovery-switch::after{transition:none!important}
}
