/* Page-local styles. Existing article and shared styles are unchanged. */
#filter-cost{margin:1.5rem 0;padding:clamp(.8rem,3vw,1.5rem);border:2px solid #006b77;border-radius:12px;background:#f5fafb;color:#12324b;scroll-margin-top:1rem;overflow-wrap:anywhere}
#filter-cost *{box-sizing:border-box}
#filter-cost [hidden]{display:none!important}
#filter-cost h3{margin:.2rem 0 .7rem;font-size:1.55rem;line-height:1.25}
#filter-cost h4{margin:0 0 .6rem;font-size:1.15rem}
#filter-cost .fc-kicker{margin:0;color:#35575f;font-size:.8rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
#filter-cost .fc-small,#filter-cost .fc-hint{font-size:.9rem;line-height:1.45;color:#35575f}
#filter-cost .fc-hint{margin:.3rem 0 .8rem}
#filter-cost label{display:block;font-weight:600;line-height:1.4;margin:.5rem 0 .3rem}
#filter-cost input,#filter-cost select{width:100%;min-width:0;min-height:44px;padding:.5rem;font:inherit;color:#12324b;background:white;border:1px solid #597781;border-radius:5px}
#filter-cost fieldset{min-width:0;margin:0 0 1rem;padding:.6rem .8rem .8rem;border:1px solid #9fbec6;border-radius:8px}
#filter-cost legend{font-weight:700;padding:0 .3rem;color:#12324b}
#filter-cost .fc-output{background:white;border:1px solid #9fbec6;border-radius:8px;padding:1rem}
#filter-cost .fc-caution{padding:.75rem;border-left:3px solid #597781;background:#f5fafb;font-size:.95rem}
#filter-cost .fc-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:.8rem 0}
#filter-cost button{font:inherit;font-size:.95rem;font-weight:600;line-height:1.4;min-height:44px;padding:.55rem .75rem;border:2px solid #006b77;border-radius:6px;color:#005762;background:white;cursor:pointer}
#filter-cost button[type=submit]{color:white;background:#006b77}
#filter-cost button:disabled{color:#52646b;border-color:#9fb0b7;background:#edf2f4;cursor:default}
#filter-cost :is(input,select,button,summary,a):focus-visible{outline:3px solid #a24f00;outline-offset:3px}
#filter-cost [aria-invalid=true]{border:2px solid #a32a1e}
#filter-cost .fc-field-error,#filter-cost #fc-error{color:#912819;font-size:.95rem;font-weight:600}
#filter-cost .fc-field-error:empty,#filter-cost #fc-error:empty{display:none}
#filter-cost .fc-method{margin-top:1rem;border-top:1px solid #bacfd5;padding-top:.8rem}
#filter-cost summary{font-weight:700;cursor:pointer}
#filter-cost li{margin:.5rem 0}
#filter-cost .fc-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#filter-cost #fc-result{scroll-margin-top:1rem}

#filter-cost .fc-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.8rem;align-items:start}
#filter-cost .fc-two{grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr))}
#filter-cost .fc-fields>*{min-width:0}
#filter-cost .fc-metrics{display:grid;gap:.7rem;margin:1rem 0}
#filter-cost .fc-metrics>div{min-width:0;border-top:3px solid #006b77;padding:.6rem 0}
#filter-cost .fc-metrics p{margin:0 0 .4rem}
#filter-cost .fc-value{font-weight:700;font-size:1.7rem;line-height:1.2}
#filter-cost #fc-costs dl>div{display:flex;justify-content:space-between;gap:1rem;padding:.65rem 0;border-bottom:1px solid #bacfd5}
#filter-cost #fc-costs dt{flex:1}
#filter-cost #fc-costs dd{margin:0;font-weight:700}
#filter-cost .fc-metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr))}
@media(max-width:400px){#filter-cost #fc-costs dl>div{display:block}#filter-cost #fc-costs dd{margin-top:.3rem}}
@media print{
  #filter-cost #fc-interactive{display:none!important}
  #filter-cost{background:white;border:1px solid #597781;padding:.5rem}
  #filter-cost #fc-print-record[hidden]{display:block!important}
  #filter-cost dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.3rem 1rem}
  #filter-cost dl>div{break-inside:avoid}
  #filter-cost dt{font-weight:700}
  #filter-cost dd{margin:0}
  body.fc-print .gridContainer>:not(article),body.fc-print article>:not(.home-guide),body.fc-print .home-guide>:not(#cost),body.fc-print #cost>:not(#filter-cost){display:none!important}
  body.fc-print,body.fc-print .gridContainer,body.fc-print article{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:white!important}
  body.fc-print #filter-cost{border:0;margin:0;padding:0;font:10pt/1.35 system-ui,sans-serif}
  body.fc-print #filter-cost>:not(h3):not(#fc-print-record){display:none!important}
  body.fc-print #filter-cost h3{font-size:16pt}
  body.fc-print #filter-cost h4{font-size:11pt;margin:.7rem 0 .3rem;break-after:avoid}
  body.fc-print #filter-cost li{margin:.3rem 0}
}
