/*
 * Search results (issuers#search) and Filter (filings#advanced_filter), from Search.dc.html and
 * Filter.dc.html. Shared rows, kind pills, preview panel and state tiles are in fd.css.
 */

/* ---------- Search ---------- */
.fd .srch h1, .fd .ftop h1 { font-size: 30px; font-weight: 650; line-height: 1.2; letter-spacing: -.02em; margin: 0; }
.fd .srch .search-none, .fd .srch .search-error { font-size: 18px; margin-top: 22px; }
.fd .srch .search-empty, .fd .srch .search-none + .cap { margin-top: 10px; }
.fd .grplinks { white-space: nowrap; font-size: 14px; }
.fd .grplinks a { display: inline-flex; align-items: center; min-height: 32px; }
.fd .people-note { margin-top: 8px; }
.fd .search-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.fd .search-pagination .pager { display: flex; gap: 8px; }
.fd .listcol > .hint { margin-top: 14px; }
.fd .prev-more { margin-top: 6px; font-size: 13px; }
.fd .prev-more a, .fd .pair a { display: inline-flex; align-items: center; min-height: 32px; }
.fd .pair .nm { color: #243442; white-space: normal; }
.fd .pair b { white-space: nowrap; }
.fd .pair3 > :nth-child(2) { margin-left: auto; }
.fd .pair3 > :last-child { min-width: 64px; text-align: right; }
.fd .prev__body .cap { margin-top: 4px; }

/* ---------- Filter: page head ---------- */
.fd .ftop { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fd .share { position: relative; }
.fd .share > summary { list-style: none; }
.fd .share > summary::-webkit-details-marker { display: none; }
.fd .share-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(360px, calc(100vw - 32px)); display: grid; gap: 8px; padding: 14px; background: #fff; border: 1px solid #c5d6e0; border-radius: 8px; box-shadow: 0 6px 18px rgba(36, 50, 56, .12); }

/* ---------- Filter: three columns (controls, list, preview) ---------- */
.fd .fwrap { margin-top: 22px; }
.fd .fwrap > .side { flex: 0 0 290px; min-width: 0; margin: 0; }
.fd .fwrap > .listcol { flex: 1 1 460px; min-width: 0; }
.fd .side .blk { border: 0; border-top: 1px solid #dfe4e8; margin: 0; padding: 14px 0 16px; min-width: 0; }
.fd .side .blk:first-of-type { border-top: 0; padding-top: 0; }
.fd .side legend.lab { padding: 0; float: left; width: 100%; }
.fd .side legend.lab + * { clear: both; }
.fd .lab { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #56616b; margin: 0 0 8px; }
.fd .inp { width: 100%; min-height: 40px; padding: 6px 10px; border: 1px solid #c5ced5; border-radius: 6px; font: inherit; color: #243442; background: #fff; }
.fd .inp.find { margin-bottom: 6px; }
.fd .check { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 2px 0; cursor: pointer; }
.fd .check input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: #0074ad; }
.fd .check .n { margin-left: auto; color: #62727e; font-size: 12px; font-variant-numeric: tabular-nums; }
.fd .check[hidden] { display: none; }
.fd .more-ind > summary { display: inline-flex; align-items: center; min-height: 32px; margin-top: 4px; font-size: 13px; color: #0074ad; text-decoration: underline; cursor: pointer; }
.fd .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.fd .opt { position: relative; display: inline-flex; }
.fd .opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fd .opt span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border: 1px solid #c5ced5; border-radius: 6px; color: #243442; font-size: 13px; cursor: pointer; background: #fff; }
.fd .opt input:checked + span { background: #0074ad; border-color: #0074ad; color: #fff; }
.fd .opt input:focus-visible + span { outline: 3px solid #0074ad; outline-offset: 2px; }
.fd .opt span:hover { border-color: #0074ad; }
.fd .side .states--small { max-width: none; margin-top: 0; }
.fd .where-note { margin-top: 8px; }
.fd .zip { display: flex; gap: 6px; margin-top: 10px; }
.fd .zip input { flex: 0 0 112px; }
.fd .maplink { margin-top: 8px; font-size: 13px; }
.fd .maplink a { display: inline-flex; align-items: center; min-height: 32px; }
.fd .fold > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 32px; font-weight: 600; cursor: pointer; list-style: none; }
.fd .fold > summary::-webkit-details-marker { display: none; }
.fd .fold > summary .v { font-weight: 400; color: #62727e; }
.fd .fold > summary .v::after { content: " ▸"; }
.fd .fold[open] > summary .v::after { content: " ▾"; }
.fd .fold > summary + * { margin-top: 10px; }
.fd .fold .sub { border: 0; margin: 12px 0 0; padding: 0; }
.fd .apply { border-top: 0; }
.fd .apply[hidden] { display: none; }

/* ---------- Filter: results ---------- */
.fd .rhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.fd .rhead h2 { font-size: 18px; }
.fd .rhead h2 .muted { font-weight: 400; font-size: 14px; }
.fd .sort { display: flex; align-items: center; gap: 8px; }
.fd .sort .inp { width: auto; }
.fd .chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.fd .chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 2px 2px 10px; border-radius: 999px; background: #e3eff6; color: #11415c; font-size: 13px; }
.fd .chip a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; color: #11415c; font-size: 15px; text-decoration: none; border-radius: 999px; }
.fd .chip a:hover { background: #cfe2ee; }
.fd .chips .clear { font-size: 13px; margin-left: 4px; display: inline-flex; align-items: center; min-height: 32px; }
.fd .filter-error { margin: 10px 0; padding: 12px 14px; border-radius: 6px; background: #fdf0dc; color: #7a4b00; }
.fd .flist:empty { display: none; }
.fd .flist .row { grid-template-columns: minmax(0, 1fr) 88px 88px 92px; gap: 10px; padding: 10px 14px; font-variant-numeric: tabular-nums; }
.fd .flist .row a.nm { font-size: 15px; }
.fd .flist .row small { font-size: 12px; }
.fd .flist .row .tag { font-size: 11px; padding: 0 6px; margin-right: 2px; }
.fd .flist .row .ph { display: none; }
.fd .lfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.fd .lfoot a { display: inline-flex; align-items: center; min-height: 32px; margin-left: 6px; }
.fd .fnote { margin-top: 12px; }
.fd .fmap { width: 100%; height: 420px; border: 1px solid #dfe4e8; border-radius: 6px; margin-bottom: 10px; }
.fd .phonebar { display: none; }
.fd [data-filter-root][aria-busy="true"] .listcol { opacity: .6; }

/* ---------- Filter controls fold away where the two columns do not fit ---------- */
@media (max-width: 900px) {
  .fd .fwrap > .side { display: none; flex: 1 1 100%; }
  .fd .fwrap > .side:target, .fd .fwrap > .side:has(:target) { display: block; }
  .fd .fwrap > .listcol { flex: 1 1 100%; }
  .fd .phonebar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
  .fd .phonebar .btn { flex: 1 1 auto; }
}

/* Sort is beside the count at this width, so it needs no button. */
@media (min-width: 601px) { .fd .phonebar a[href="#fsort"] { display: none; } }

/* ---------- Phone ---------- */
@media (max-width: 600px) {
  .fd .srch h1, .fd .ftop h1 { font-size: 26px; }
  .fd .grphead { flex-wrap: wrap; }
  .fd .grplinks { white-space: normal; }
  .fd .ftop { align-items: flex-start; }
  .fd .share-menu { left: 0; right: auto; }
  .fd .flist .row { grid-template-columns: minmax(0, 1fr) 76px 64px; padding: 10px 12px; }
  .fd .flist .row > span:nth-child(3) { display: none; }
  .fd .flist .row .ph { display: inline; }
}
