.discovery {
  margin: 22px 0 16px; padding: 18px 28px 24px;
  border: 1px solid #f0d7d0; border-radius: 13px 58px 13px 13px;
  background: #fff0ec;
}
.discovery .hero { min-height: 0; padding: 0 4px 12px; grid-template-columns: 1.35fr .85fr; gap: 25px; }
.discovery .hero h1 { font-size: clamp(29px,3.4vw,43px); line-height: 1.3; }
.discovery .hero p { margin-top: 7px; }
.discovery .street { mix-blend-mode: multiply; }
.theme-panel { min-width: 0; margin: 0; padding: 8px 18px 14px; border: 1px solid #eed9d3; border-radius: 8px 28px 8px 8px; background: white; }
.theme-panel legend { float:left; width:100%; margin:3px 0 10px; padding:0; font-size:17px; font-weight:700; }
.theme-panel legend small { font-size:12px; font-weight:500; margin-left:5px; color:#58636c; }
.theme-grid { clear:both; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.theme-choice { position: relative; display:grid; grid-template-columns:50px minmax(0,1fr); align-items:center; gap:9px; min-height:66px; cursor:pointer; padding:7px 22px 7px 7px; border:1px solid #cfd6da; border-radius:7px; background:white; }
.theme-choice img { width:50px; height:48px; border-radius:4px; object-fit:cover; }
.theme-choice span { font-size:14px; font-weight:700; line-height:1.5; }
.theme-choice i { display:inline-block; font-style:normal; }
.theme-choice input { position:absolute; right:6px; top:6px; width:15px; height:15px; accent-color:#b92820; margin:0; }
.theme-choice input { appearance:none; background:white; border:1.5px solid #505963; border-radius:4px; }
.theme-choice input:checked { border-color:#a5251f; background:#a5251f; }
.theme-choice input:checked::after { content:""; display:block; width:4px; height:8px; border:solid white; border-width:0 2px 2px 0; transform:translate(4px,1px) rotate(45deg); }
@media(forced-colors:active){.theme-choice input{appearance:auto;}.theme-choice input:checked::after{display:none;}}
.theme-choice:has(:checked) { background:#fff3ef; border:2px solid #ba2c23; padding:6px 21px 6px 6px; }
.theme-choice:focus-within { outline:2px solid #204388; outline-offset:2px; }
.discover-actions { margin-top:13px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.discover-actions p { font-size:13px; color:var(--muted); }
#discover-go { padding:9px 20px; min-height:44px; border:0; color:white; border-radius:24px; background:#b5211a; font-weight:700; }
#extra-filters { border:1px solid var(--line); border-radius:7px; background:#fafbfb; }
#extra-filters summary { cursor:pointer; padding:12px 15px; font-size:15px; font-weight:700; }
#extra-filters summary span { display:inline-block; font-size:12px; font-weight:500; color:#4b5b66; }
#extra-filters .finder { border-top:1px solid var(--line); border-radius:0 0 7px 7px; }
#results { scroll-margin-top:12px; }
.change-theme { font-size:13px; color:#7c2a23; text-decoration:underline; text-underline-offset:3px; }
.resultsmeta .change-theme,.resultsmeta #reset { display:inline-flex;align-items:center;min-height:44px;padding:6px 10px;border:1px solid #ced5da;border-radius:5px;background:white; }
.theme-total { display:block; margin:0 0 3px; font-size:12px; color:#535f68; }
.relation { padding:9px 12px; border-left:3px solid #c53a2c; background:#fff7f3; border-radius:0 4px 4px 0; margin:9px 0 3px; }
.relation strong { display:block; font-size:13px; color:#842d24; }
.relation p { font-size:14px; line-height:1.65; margin:2px 0; }
.relation p + strong { margin-top:6px; }
#story-interests { max-width:740px; }
@media(max-width:900px) { .theme-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:710px) {
  .discovery { margin-top:12px; padding:12px; border-radius:9px 28px 9px 9px; }
  .discovery .hero { display:block; position:relative; padding:0 0 12px; }
  .discovery .hero h1 { font-size:26px; line-height:1.4; }
  .discovery .hero p { font-size:13px; margin-top:5px; max-width:23em; }
  .discovery .street { width:62%; margin:5px 0 0 auto; }
  .theme-panel { padding:8px 9px 10px; border-radius:6px 22px 6px 6px; }
  .theme-panel legend { font-size:15px; margin-bottom:7px; }
  .theme-grid { gap:6px; }
  .theme-choice { display:flex; flex-direction:column; align-items:stretch; gap:5px; padding:5px; }
  .theme-choice:has(:checked) { padding:4px; }
  .theme-choice img { width:100%; height:41px; object-position:center 42%; }
  .theme-choice span { font-size:13px; padding:0 2px 2px; }
  .theme-choice input { right:8px; top:8px; width:17px; height:17px; box-shadow:0 0 0 1px white; }
  .discover-actions { display:block; margin-top:8px; }
  .discover-actions p { font-size:12px; margin-bottom:6px; }
  #discover-go { width:100%; font-size:15px; }
  #extra-filters summary { padding:10px 12px; }
  .heading:has(.change-theme:not([hidden])) { flex-wrap:wrap; gap:5px; }
  .resultsmeta { flex-wrap:wrap; }
}
