/* /firms/ (the directory) and /firms/<slug>/ (one firm, served from firms/firm/index.html by a rewrite).
   Everything else is the Private View layout of the Mandates landing (/assets/site-v2.css), as on /families/ and the
   business board. This file sits in /assets/ and not beside the pages, because the /firms/* rewrite in
   staticwebapp.config.json would answer a request for /firms/firms.css with the firm page. */
.fm-head{padding-top:46px}
.fm-head .sr-eyebrow{margin-bottom:18px}
.fm-crumb{color:inherit;text-decoration:none;border-bottom:1px solid transparent}
.fm-crumb:hover{border-bottom-color:currentColor}
.fm-title{padding-bottom:22px;border-bottom:2px solid var(--sr-ink)}
.fm-title h1{margin:0 0 14px!important;overflow-wrap:anywhere}
.fm-title .sr-lead{max-width:680px;margin:0}
.fm-firm-name{font-size:clamp(38px,4.2vw,58px)!important}
.fm-meta{font:22px/1.3 var(--serif);color:var(--sr-muted);margin:0!important;min-height:1px;overflow-wrap:anywhere}
.fm [hidden]{display:none!important}

/* the three plain statements under the heading */
.fm-rules{border-top:0;margin-top:0}

/* the filters */
.fm-filters{display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr));gap:14px;align-items:end;padding:26px 0 8px}
.fm-field label{display:block;font:600 10px/1.5 Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--sr-bronze);margin-bottom:7px}
.fm-field select{width:100%;min-height:54px;border:1px solid #aebcb0;border-radius:3px;background:#fff;color:var(--sr-ink);font:16px var(--sans);padding:0 12px}
.fm-field select:focus-visible{outline:2px solid #527ba7;outline-offset:-3px}
.fm-field .sr-search-control{min-height:54px}

/* the states: one block shows at a time, chosen by data-state on .fm */
.fm{padding:6px 0 34px}
.fm-loading{color:var(--sr-muted);font-size:14px;padding:30px 0;margin:0}
.fm:not([data-state="loading"]) .fm-loading{display:none}
.fm-state{display:none;padding:40px 0 20px;max-width:640px}
.fm-state h2{font-size:37px}
.fm-state p:not(.sr-eyebrow){color:var(--sr-muted)}
.fm-state .sr-button{margin-top:8px;cursor:pointer;font-family:var(--sans)}
.fm-state .sr-underlined{margin-top:8px}
.fm[data-state="closed"] .fm-closed,.fm[data-state="empty"] .fm-empty,.fm[data-state="nomatch"] .fm-nomatch,
.fm[data-state="badfilter"] .fm-badfilter,.fm[data-state="error"] .fm-error,.fm[data-state="unknown"] .fm-unknown{display:block}
.fm:not([data-state="ready"]) .fm-ready{display:none}
.fm[data-state="closed"] .fm-filters,.fm[data-state="error"] .fm-filters,.fm[data-state="empty"] .fm-filters{display:none}

/* the list, in the order the API gives it */
.fm-count{font-size:13px;color:var(--sr-muted);margin:18px 0 0;padding-bottom:14px;border-bottom:1px solid var(--sr-line)}
.fm-list{list-style:none;margin:0;padding:0}
.fm-row{border-bottom:1px solid var(--sr-line)}
.fm-link{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:36px;padding:28px 0;color:inherit;text-decoration:none}
a.fm-link:hover{background:linear-gradient(90deg,#aa885014,transparent 70%)}
.fm-link h2{font-size:30px!important;line-height:1.15!important;margin:0 0 8px!important;overflow-wrap:anywhere}
.fm-kind{font:600 11px/1.5 Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--sr-bronze);margin:0 0 12px!important;overflow-wrap:anywhere}
.fm-label{font:600 10px/1.5 Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--sr-muted);margin:0 0 4px!important}
.fm-summary{font-size:15px;line-height:1.65;margin:0!important;overflow-wrap:anywhere}
.fm-side{font-size:14px;line-height:1.6;border-left:1px solid var(--sr-line);padding-left:22px;overflow-wrap:anywhere}
.fm-side p{font-size:14px;margin:0 0 6px}
.fm-side .fm-muted{color:var(--sr-muted)}

/* one firm: the firm's own words on the left, what Antevo checked on the right, never mixed */
.fm-firm{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:48px;padding:30px 0 10px}
.fm-part-head{font:600 11px/1.5 Arial,sans-serif;letter-spacing:.15em;color:var(--sr-bronze);margin:0 0 6px!important}
.fm-part-note{font-size:13px;color:var(--sr-muted);margin:0 0 22px!important;max-width:560px}
.fm-words{overflow-wrap:anywhere}
.fm-words .fm-lead{font:clamp(22px,2vw,27px)/1.3 var(--serif);margin:0 0 24px}
.fm-words h3{font-size:24px!important;margin:26px 0 10px!important}
.fm-words p{font-size:15px;line-height:1.65;margin:0 0 8px}
.fm-facts-own{margin:26px 0 0;border-top:1px solid var(--sr-line)}
.fm-facts-own div{display:grid;grid-template-columns:160px minmax(0,1fr);gap:16px;padding:12px 0;border-bottom:1px solid var(--sr-line);font-size:14px}
.fm-facts-own dt{color:var(--sr-muted)}
.fm-facts-own dd{margin:0}
.fm-checked{background:#eeeee6;padding:24px 24px 14px;align-self:start;overflow-wrap:anywhere}
.fm-checked .fm-part-note{margin-bottom:10px!important}
.fm-checked ul{list-style:none;margin:0;padding:0}
.fm-checked li{padding:14px 0;border-top:1px solid #d5d6cb}
.fm-checked li p{margin:0;font-size:14px;line-height:1.55}
.fm-checked .fm-what{font-weight:600}
.fm-checked .fm-proof{font-size:12px;color:var(--sr-muted);margin-top:4px}
.fm-updated{font-size:12px;color:var(--sr-muted);margin:14px 0 0!important}
.fm-back{padding:18px 0 0}

/* the closing notes, as on the business board */
.fm-foot{padding-top:34px;padding-bottom:46px;border-top:1px solid var(--sr-line);font-size:13px;color:var(--sr-muted);max-width:none}
.fm-foot p{max-width:820px;margin:0 0 8px}
.fm-foot strong{color:var(--sr-ink);font-weight:600}

@media(max-width:860px){
  .fm-filters{grid-template-columns:1fr 1fr}
  .fm-filters .fm-field:first-child{grid-column:1/-1}
  .fm-link{grid-template-columns:1fr;gap:14px;padding:22px 0}
  .fm-link h2{font-size:26px!important}
  .fm-side{border-left:0;padding-left:0;border-top:1px solid var(--sr-line);padding-top:12px}
  .fm-firm{grid-template-columns:1fr;gap:30px}
  .fm-state h2{font-size:32px}
  .fm-state .sr-button{width:100%}
}
@media(max-width:520px){
  .fm-filters{grid-template-columns:1fr}
  .fm-facts-own div{grid-template-columns:1fr;gap:2px}
  .fm-checked{padding:20px 18px 10px}
}
