/* Shared homepage / results controls. Keep these rules scoped to the form. */
.fm-search { --fm-ink: #382732; --fm-accent: #65384f; width: min(800px, 100%); margin: 20px auto 28px; padding: 0; display: block; color: var(--fm-ink); font: 16px/1.5 Inter, Arial, sans-serif; }
.header > .fm-search { grid-column: 1 / -1; flex-basis: 100%; }
.content-first-picks > p > .button { max-width: 100%; white-space: normal; }
.home-search.fm-search { width: min(800px, calc(100% - 32px)); }
.fm-search *, .fm-search *::before, .fm-search *::after { box-sizing: border-box; }
.fm-search [hidden] { display: none !important; }
.fm-search-intro { margin: 0 0 16px; }
.fm-search-intro p { font-size: 23px; line-height: 1.25; letter-spacing: -.025em; font-weight: 500; margin: 0 0 6px; }
.fm-search-intro span { font-size: 14px; color: #6d6666; }
.fm-query { display: flex; gap: 8px; align-items: center; border: 1px solid #96818e; border-radius: 14px; background: #fff; padding: 6px; box-shadow: 0 3px 12px #38273208; }
.fm-query input { font: inherit; border: 0; background: transparent; width: 100%; min-width: 0; min-height: 48px; padding: 10px; border-radius: 8px; color: var(--fm-ink); }
.fm-search .fm-submit { flex-shrink: 0; min-height: 48px; padding: 12px 20px; width: auto; border: 0; border-radius: 10px; background: var(--fm-accent); color: #fff; font: 600 15px/22px Inter, Arial, sans-serif; cursor: pointer; }
.fm-search .fm-submit:disabled { opacity: .7; cursor: wait; }
.fm-preferences { display: grid; gap: 8px; margin-top: 12px; align-items: start; }
.fm-search .fm-preference { border: 1px solid #dfd6dc; border-radius: 12px; background: #fff; min-width: 0; margin: 0; padding: 0; }
.fm-search .fm-preference > summary { min-height: 54px; padding: 12px; cursor: pointer; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.fm-preference summary span { color: #6d6666; margin-right: 8px; }
.fm-preference summary strong { font-weight: 500; color: var(--fm-ink); }
.fm-search .fm-preference[open] { border-color: #96818e; background: #fcfafb; }
.fm-panel { border-top: 1px solid #e9e1e6; padding: 14px 12px; }
.fm-panel fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.fm-panel legend, .fm-panel > label { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 10px; display: block; }
.fm-search .fm-preset { width: 100%; min-height: 44px; font: 500 13px/20px Inter, Arial, sans-serif; border: 1px solid #96818e; background: white; color: var(--fm-accent); border-radius: 8px; padding: 10px 8px; margin-bottom: 10px; cursor: pointer; }
.fm-search .fm-preset[aria-pressed=true] { background: #f2eaee; border-color: var(--fm-accent); }
.fm-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fm-search .fm-choice { display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 0; padding: 10px; border: 1px solid #dfd6dc; border-radius: 8px; background: white; cursor: pointer; font-size: 13px; line-height: 19px; }
.fm-search .fm-choice:has(input:checked) { border-color: var(--fm-accent); background: #f2eaee; }
.fm-search .fm-choice input { width: 18px; height: 18px; min-height: 18px; margin: 0; flex: 0 0 18px; accent-color: var(--fm-accent); }
.fm-choice span { min-width: 0; overflow-wrap: anywhere; }
.fm-choice small { display: block; color: #6d6666; font-size: 11px; }
.fm-conditions { grid-template-columns: 1fr; }
.fm-search .fm-panel > select { width: 100%; min-height: 48px; border: 1px solid #96818e; border-radius: 8px; padding: 10px 12px; font: inherit; color: var(--fm-ink); background: white; }
.fm-search .fm-help, .fm-search .fm-search-note { color: #6d6666; font-size: 12px; line-height: 19px; margin: 12px 0 0; text-align: left; }
.fm-search .fm-error { color: #8a303e; font-size: 14px; line-height: 21px; margin: 10px 0 0; }
.fm-search .fm-error:empty { display: none; }
.fm-search :focus-visible { outline: 3px solid var(--fm-accent); outline-offset: 3px; }
.fm-search .fm-choice:focus-within { outline: 2px solid var(--fm-accent); outline-offset: 2px; }
@media (min-width: 680px) { .fm-preferences { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fm-preference summary span, .fm-preference summary strong { display: inline; } .fm-preference summary strong { display: block; margin-left: 17px; } .fm-search-intro p { font-size: 28px; } }
@media (max-width: 440px) { .fm-query { flex-wrap: wrap; } .fm-search .fm-submit { width: 100%; } }
@media (forced-colors: active) { .fm-search .fm-choice:has(input:checked), .fm-search .fm-preset[aria-pressed=true] { border: 2px solid Highlight; } }
