/* SISV v1 pages — Find Member / Find Member Firm: filters, results, grid & list cards, contact pop-ups
   Linked once from institute.Master. Every rule is scoped to html.v1, so it only applies on pages that
   add the "v1" class (document.documentElement.className += " v1") and never touches the original pages. */

/* ---------- Filters ---------- */
html.v1 .fm-filters { padding: 20px; margin-bottom: 20px; position: relative; z-index: 20; overflow: visible; }
html.v1 .fm-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
html.v1 .fm-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ed-muted); margin: 0 0 6px; }
html.v1 .fm-input { position: relative; }
html.v1 .fm-input .fa { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ed-muted); pointer-events: none; transition: color .2s ease; }
html.v1 .fm-input input { width: 100%; height: 46px; padding: 0 14px 0 42px; border-radius: 14px; border: 1.5px solid #dbe3ee; background: #fbfcfe; font-size: 14px; color: var(--ed-ink); outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
html.v1 .fm-input input:focus { border-color: var(--ed-primary-2); background: #fff; box-shadow: 0 0 0 4px rgba(29, 111, 209, .12); }
html.v1 .fm-input:focus-within .fa { color: var(--ed-primary-2); }
html.v1 .fm-input.is-big input { height: 52px; font-size: 15px; }
html.v1 .fm-row { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 14px; align-items: flex-end; }
html.v1 .fm-row > div { min-width: 0; }
html.v1 .fm-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
html.v1 .fm-pills { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--ed-soft); border: 1px solid var(--ed-line); }
html.v1 .fm-pill { border: 0; background: transparent; height: 36px; padding: 0 13px; border-radius: 10px; font-size: 12.5px; font-weight: 800; color: var(--ed-muted); cursor: pointer; white-space: nowrap; transition: all .2s ease; }
html.v1 .fm-pill:hover { color: var(--ed-ink); background: rgba(255, 255, 255, .85); }
html.v1 .fm-pill.is-active { color: #fff; background: linear-gradient(135deg, var(--ed-primary-2), var(--ed-primary)); box-shadow: 0 6px 14px -6px rgba(14, 65, 111, .8); }
html.v1 .fm-pill[data-value="LS"].is-active { background: linear-gradient(135deg, #f59e0b, #d97706); }
html.v1 .fm-pill[data-value="QS"].is-active { background: linear-gradient(135deg, #3d9970, #2f7a57); }
html.v1 .fm-results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; flex-wrap: wrap; }
html.v1 .fm-results-head h3 { margin: 0 auto 0 0; font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; color: var(--ed-ink); }
html.v1 .fm-results-head { flex-wrap: nowrap; }
html.v1 .fm-results-head .fm-len { float: none; margin: 0; padding: 0; flex: 0 0 auto; text-align: right !important; }
html.v1 .fm-label-hint { font-weight: 600; letter-spacing: 0; text-transform: none; color: #94a3b8; }
html.v1 .fm-tagbox { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 46px; padding: 5px 10px 5px 42px; border-radius: 14px; border: 1.5px solid #dbe3ee; background: #fbfcfe; cursor: text; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
html.v1 .fm-tagbox:focus-within { border-color: var(--ed-primary-2); background: #fff; box-shadow: 0 0 0 4px rgba(29, 111, 209, .12); }
html.v1 .fm-tagbox .fa-tags { top: 23px; }
html.v1 .fm-tags { display: contents; }
html.v1 .fm-tag { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 4px 4px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--ed-primary-2); background: #e8f1fc; border: 1px solid #d3e4f9; }
html.v1 .fm-tag-x { width: 20px; height: 20px; flex: 0 0 20px; border: 0; border-radius: 6px; background: transparent; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
html.v1 .fm-tag-x:hover { background: rgba(29, 111, 209, .15); }
html.v1 .fm-input.fm-tagbox input { flex: 1 1 140px; min-width: 120px; width: auto; height: 32px; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; }
html.v1 .fm-suggest { display: none; position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 320px; overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--ed-line); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(16, 36, 64, .35); text-align: left; }
html.v1 .fm-suggest.is-open { display: block; }
html.v1 .fm-suggest-h { padding: 6px 10px 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ed-muted); }
html.v1 .fm-suggest-i { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-size: 13.5px; color: var(--ed-ink); }
html.v1 .fm-suggest-i:hover,
html.v1 .fm-suggest-i.is-active { background: var(--ed-soft); color: var(--ed-primary-2); }
html.v1 .fm-suggest-i mark { padding: 0; background: none; color: var(--ed-primary-2); font-weight: 800; }
html.v1 .fm-suggest-i em { flex: 0 0 auto; min-width: 26px; padding: 1px 8px; border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 800; text-align: center; color: var(--ed-primary-2); background: rgba(29, 111, 209, .1); }
html.v1 .fm-view { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--ed-soft); border: 1px solid var(--ed-line); flex: 0 0 auto; }
html.v1 .fm-view-btn { width: 34px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--ed-muted); display: grid; place-items: center; cursor: pointer; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
html.v1 .fm-view-btn:hover { color: var(--ed-primary-2); }
html.v1 .fm-view-btn.is-active { background: #fff; color: var(--ed-primary-2); box-shadow: 0 4px 10px -6px rgba(14, 65, 111, .6); }
/* ---------- List view ---------- */
html.v1 .fm-is-list .fm-table tbody { grid-template-columns: minmax(0, 1fr); gap: 10px; }
html.v1 .fm-is-list .fm-card { display: grid; border-radius: 14px; }
html.v1 .fm-is-list .fm-card:hover { transform: none; }
html.v1 .fm-is-list .fm-card-top { display: contents; }
html.v1 .fm-is-list .fm-card .fm-id { grid-area: id; }
html.v1 .fm-is-list .fm-card .fm-msg { grid-area: msg; justify-self: end; }
html.v1 .fm-is-list .fm-card .fm-specs { grid-area: specs; }
html.v1 .fm-is-list .fm-card .fm-specs-label { display: none; }
html.v1 .fm-list-head { display: none; }
/* desktop list = one row per member with aligned columns */
@media (min-width: 768px) {
    html.v1 .fm-is-list { --fm-cols: minmax(0, 1.55fr) 58px 104px 132px minmax(0, 1.5fr) 40px; }
    html.v1 .fm-is-list .fm-list-head { display: grid; grid-template-columns: var(--fm-cols); gap: 0 14px; padding: 0 14px 6px 20px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ed-muted); }
    html.v1 .fm-is-list .fm-table tbody { gap: 6px; }
    html.v1 .fm-is-list .fm-card { grid-template-columns: var(--fm-cols); gap: 2px 14px; align-items: center; padding: 10px 14px 10px 20px; grid-template-areas: "name div grade no specs msg" "co div grade no specs msg"; }
    html.v1 .fm-is-list .fm-card .fm-id,
    html.v1 .fm-is-list .fm-card .fm-badges { display: contents; }
    html.v1 .fm-is-list .fm-card .fm-name { grid-area: name; font-size: 14px; align-self: end; }
    html.v1 .fm-is-list .fm-card .fm-company { grid-area: co; margin: 0; font-size: 12.5px; align-self: start; }
    html.v1 .fm-is-list .fm-card .fm-div { grid-area: div; justify-self: start; }
    html.v1 .fm-is-list .fm-card .fm-grade { grid-area: grade; justify-self: start; }
    html.v1 .fm-is-list .fm-card .fm-no { grid-area: no; justify-self: start; padding: 0; border: 0; background: none; font-size: 12.5px; color: #334155; white-space: nowrap; }
    html.v1 .fm-is-list .fm-card .fm-no .fa { color: #94a3b8; }
    html.v1 .fm-is-list .fm-card .fm-specs { display: block; margin: 0; padding: 0; border: 0; font-size: 12.5px; line-height: 1.55; color: #475569; }
    html.v1 .fm-is-list .fm-card .fm-spec { display: inline; padding: 0; border: 0; background: none; font-size: 12.5px; font-weight: 600; color: #475569; }
    html.v1 .fm-is-list .fm-card .fm-spec + .fm-spec::before { content: " \00B7  "; color: #94a3b8; }
    html.v1 .fm-is-list .fm-card .fm-specs.is-empty { display: block; font-size: 0; }
    html.v1 .fm-is-list .fm-card .fm-specs.is-empty::before { content: "\2014"; font-size: 13px; color: #94a3b8; font-style: normal; }
    html.v1 .fm-is-list .fm-card .fm-msg { width: 36px; height: 34px; padding: 0; justify-content: center; }
    html.v1 .fm-is-list .fm-card .fm-msg span { display: none; }
}
@media (min-width: 768px) and (max-width: 1199px) {
    html.v1 .fm-is-list { --fm-cols: minmax(0, 1.7fr) 44px 90px 104px minmax(0, 1.25fr) 36px; }
    html.v1 .fm-is-list .fm-list-head,
    html.v1 .fm-is-list .fm-card { column-gap: 10px; }
    html.v1 .fm-is-list .fm-card { padding: 10px 10px 10px 16px; }
    html.v1 .fm-is-list .fm-list-head { padding-left: 16px; }
    html.v1 .fm-is-list .fm-card .fm-div { padding: 2px 6px; }
    html.v1 .fm-is-list .fm-card .fm-no .fa { display: none; }
    html.v1 .fm-list-head .fm-lh-long { display: none; }
}
html.v1 .fm-results-head .fm-len label { display: inline-flex; align-items: center; margin: 0; padding: 0 !important; white-space: nowrap; }
@media (max-width: 767px) {
    html.v1 .fm-results-head { gap: 8px; }
    html.v1 .fm-results-head h3 { font-size: 16px; }
    html.v1 .fm-results-head .fm-len-t { display: none; }
    html.v1 .fm-results-head .fm-len select { margin: 0 !important; }
    html.v1 .fm-is-list .fm-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id msg" "specs specs"; align-items: start; padding: 12px 14px 12px 18px; }
    html.v1 .fm-is-list .fm-table tbody { gap: 8px; }
    html.v1 .fm-is-list .fm-card { gap: 4px 10px; padding: 10px 12px 10px 16px; border-radius: 12px; }
    html.v1 .fm-is-list .fm-card .fm-specs { display: block; padding: 6px 0 0; border-left: 0; border-top: 1px dashed var(--ed-line); font-size: 12px; line-height: 1.55; color: #475569; }
    html.v1 .fm-is-list .fm-card .fm-specs.is-empty { display: none; }
    html.v1 .fm-is-list .fm-card .fm-spec { display: inline; padding: 0; border: 0; background: none; font-size: 12px; font-weight: 600; color: #475569; }
    html.v1 .fm-is-list .fm-card .fm-spec + .fm-spec::before { content: " \00B7  "; color: #94a3b8; }
    html.v1 .fm-is-list .fm-name { font-size: 13.5px; }
    html.v1 .fm-is-list .fm-company { font-size: 12px; }
    html.v1 #fmClearBtn { width: 38px; height: 38px; padding: 0; justify-content: center; font-size: 0; }
    html.v1 #fmClearBtn .fa { font-size: 14px; }
    html.v1 #fmClearBtn:not(.is-visible) { display: none; }
}
html.v1 #fmClearBtn { opacity: 0; pointer-events: none; transition: opacity .2s ease; }
html.v1 #fmClearBtn.is-visible { opacity: 1; pointer-events: auto; }
/* ---------- Results (DataTable rendered as a card grid) ---------- */
html.v1 #edPage .dataTables_wrapper > .row { margin: 0; }
html.v1 #edPage .dataTables_wrapper > .row > [class*="col-"] { padding: 0; }
html.v1 .fm-table { width: 100% !important; border: 0 !important; margin: 0 0 10px !important; background: transparent; }
html.v1 .fm-table thead { display: none; }
html.v1 .fm-table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
html.v1 .fm-table tbody tr { display: block; background: transparent !important; }
html.v1 .fm-table tbody td { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; white-space: normal; text-align: left; height: 100%; }
html.v1 .fm-table tbody td.dataTables_empty { grid-column: 1 / -1; }
html.v1 .fm-table tbody tr:has(.dataTables_empty) { grid-column: 1 / -1; }
html.v1 .dataTables_filter { display: none; }
html.v1 .dataTables_length label,
html.v1 .dataTables_info { font-size: 13px; color: var(--ed-muted); font-weight: 600; padding-top: 6px !important; }
html.v1 .dataTables_length select { height: 34px; border-radius: 10px; border: 1.5px solid #dbe3ee; margin: 0 6px; padding: 0 6px; }
html.v1 .dataTables_paginate .pagination { margin: 4px 0 0; display: inline-flex; gap: 6px; flex-wrap: wrap; }
html.v1 .dataTables_paginate .pagination > li > a,
html.v1 .dataTables_paginate .pagination > li > span { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; border-radius: 12px !important; border: 1px solid var(--ed-line); color: var(--ed-ink); font-weight: 700; background: #fff; transition: all .2s ease; }
html.v1 .dataTables_paginate .pagination > li > a:hover { border-color: var(--ed-primary-2); color: var(--ed-primary-2); background: #fff; }
html.v1 .dataTables_paginate .pagination > .active > a,
html.v1 .dataTables_paginate .pagination > .active > a:hover { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--ed-primary-2), var(--ed-primary)); box-shadow: 0 6px 14px -6px rgba(14, 65, 111, .8); }
html.v1 .dataTables_paginate .pagination > .disabled > a { opacity: .45; }
html.v1 .fm-card { position: relative; height: 100%; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--ed-line); box-shadow: var(--ed-shadow); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; animation: ed-pop .3s ease both; }
html.v1 .fm-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--fm-c1, #1d6fd1), var(--fm-c2, #0e416f)); }
html.v1 .fm-card:hover { transform: translateY(-3px); box-shadow: var(--ed-shadow-lg); border-color: #d3deeb; }
html.v1 .fm-card.is-ls { --fm-c1: #f59e0b; --fm-c2: #d97706; --fm-ink: #b45309; --fm-tint: #fffbeb; }
html.v1 .fm-card.is-qs { --fm-c1: #3d9970; --fm-c2: #2f7a57; --fm-ink: #2f7a57; --fm-tint: #ecfdf5; }
html.v1 .fm-card.is-vgp { --fm-c1: #1d6fd1; --fm-c2: #0e416f; --fm-ink: #1d6fd1; --fm-tint: #eff6ff; }
html.v1 .fm-card-top { display: flex; align-items: flex-start; gap: 12px; }
html.v1 .fm-av { flex: 0 0 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--fm-c1, #1d6fd1), var(--fm-c2, #0e416f)); box-shadow: 0 8px 16px -8px rgba(16, 36, 64, .6); }
html.v1 .fm-card .fm-av { display: none; }
/* reserved for a member photo later */
html.v1 .fm-id { flex: 1; min-width: 0; }
html.v1 .fm-company { display: flex; align-items: flex-start; gap: 7px; margin-top: 3px; font-size: 13px; font-weight: 600; line-height: 1.4; color: #475569; overflow-wrap: anywhere; }
html.v1 .fm-company .fa { margin-top: 3px; color: var(--fm-ink, #1d6fd1); }
html.v1 .fm-name { font-size: 14.5px; font-weight: 800; color: var(--ed-ink); line-height: 1.35; text-transform: uppercase; overflow-wrap: anywhere; }
html.v1 .fm-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
html.v1 .fm-div { padding: 2px 8px; border-radius: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, var(--fm-c1, #1d6fd1), var(--fm-c2, #0e416f)); }
html.v1 .fm-grade { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--fm-ink, #1d6fd1); background: var(--fm-tint, #eff6ff); }
html.v1 .fm-no { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #475569; background: var(--ed-soft); border: 1px solid var(--ed-line); }
html.v1 .fm-msg { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ed-line); background: #fff; color: var(--ed-primary-2); font-size: 12.5px; font-weight: 800; cursor: pointer; transition: all .2s ease; }
html.v1 .fm-msg:hover { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--ed-primary-2), var(--ed-primary)); box-shadow: 0 8px 16px -8px rgba(29, 111, 209, .9); }
html.v1 .fm-msg:hover .fa { animation: fm-wiggle .5s ease; }
html.v1 .fm-specs { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--ed-line); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
html.v1 .fm-specs.is-empty { font-size: 12px; color: #94a3b8; font-style: italic; }
html.v1 .fm-specs-label { width: 100%; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ed-muted); }
html.v1 .fm-spec { padding: 4px 10px; border-radius: 9px; font-size: 12px; font-weight: 600; color: #334155; background: var(--ed-soft); border: 1px solid var(--ed-line); }
html.v1 .fm-skel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
html.v1 .fm-skel { height: 132px; border-radius: 18px; background: linear-gradient(90deg, #f1f5f9 25%, #e5ebf2 37%, #f1f5f9 63%); background-size: 400% 100%; animation: ed-shimmer 1.4s ease infinite; }
/* ---------- Contact modal ---------- */
html.v1 #ModalContactMember .modal-content { border: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(8, 24, 48, .45); }
html.v1 #ModalContactMember .modal-dialog { -webkit-box-shadow: none !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; }
/* essentials.css adds a square drop-shadow that showed at the rounded corners */
html.v1 #ModalContactMember .modal-header { padding: 20px 24px; border: 0; color: #fff; background: radial-gradient(600px 200px at 0% 0%, rgba(34, 184, 207, .35), transparent 60%), linear-gradient(135deg, var(--ed-primary-2), var(--ed-primary)); }
html.v1 #ModalContactMember .modal-title { font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 10px; }
html.v1 #ModalContactMember .modal-header .modal-title,
html.v1 #ModalContactMember .modal-header .modal-title .fa { color: #fff !important; }
html.v1 #ModalContactMember .modal-header .close { color: #fff; opacity: .85; text-shadow: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .15); margin-top: -4px; transition: background .2s ease, transform .2s ease; }
html.v1 #ModalContactMember .modal-header .close:hover { opacity: 1; background: rgba(255, 255, 255, .25); transform: rotate(90deg); }
html.v1 #ModalContactMember .modal-body { padding: 24px; }
html.v1 .fm-to { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 18px; border-radius: 14px; background: var(--ed-soft); border: 1px solid var(--ed-line); }
html.v1 .fm-to .fm-av { flex-basis: 42px; height: 42px; }
html.v1 .fm-to { align-items: flex-start; }
html.v1 .fm-to-info { flex: 1; min-width: 0; }
html.v1 .fm-to-info .fm-company { margin-top: 4px; }
html.v1 .fm-to-info .fm-badges:empty { display: none; }
html.v1 .fm-to.is-ls { --fm-c1: #f59e0b; --fm-c2: #d97706; --fm-ink: #b45309; --fm-tint: #fffbeb; }
html.v1 .fm-to.is-qs { --fm-c1: #3d9970; --fm-c2: #2f7a57; --fm-ink: #2f7a57; --fm-tint: #ecfdf5; }
html.v1 .fm-to.is-vgp { --fm-c1: #1d6fd1; --fm-c2: #0e416f; --fm-ink: #1d6fd1; --fm-tint: #eff6ff; }
html.v1 .fm-to small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ed-muted); }
html.v1 #lblContactMemberName { font-size: 15px; font-weight: 800; color: var(--ed-ink); text-transform: uppercase; }
html.v1 .fm-section { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ed-primary); display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
html.v1 .fm-section::after { content: ""; flex: 1; height: 1px; background: var(--ed-line); }
html.v1 #ContactMemberForm .control-label { font-size: 12.5px; font-weight: 700; color: #475569; }
html.v1 #ContactMemberForm .form-control { height: 44px; border-radius: 12px; border: 1.5px solid #dbe3ee; background: #fbfcfe; box-shadow: none; font-size: 14px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
html.v1 #ContactMemberForm textarea.form-control { height: auto; min-height: 150px; resize: vertical; padding-top: 10px; }
html.v1 #ContactMemberForm .form-control:focus { border-color: var(--ed-primary-2); background: #fff; box-shadow: 0 0 0 4px rgba(29, 111, 209, .12); }
html.v1 #ContactMemberForm .has-error .form-control { border-color: #f04438; }
html.v1 #ContactMemberForm .has-success .form-control { border-color: #12b76a; }
html.v1 #fmMsgCount { display: block; text-align: right; font-size: 11.5px; color: var(--ed-muted); margin-top: 4px; }
html.v1 #fmMsgCount.is-near { color: #d92d20; font-weight: 700; }
html.v1 .fm-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
html.v1 .fm-privacy { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--ed-muted); margin: 14px 0 0; }
html.v1 .fm-privacy .fa { color: #12b76a; margin-top: 2px; }
/* contact form: medium pop-up, labels above fields */
html.v1 #ModalContactMember .modal-md { width: 600px; max-width: calc(100% - 20px); margin-left: auto; margin-right: auto; }
html.v1 #ModalContactMember .modal-body { padding: 20px 22px 6px; }
html.v1 #ContactMemberForm .form-group { margin: 0 0 14px; position: relative; }
html.v1 #ContactMemberForm .control-label { display: block; margin: 0 0 6px; padding: 0; text-align: left; }
html.v1 .fm-req { color: #d92d20; font-weight: 800; }
html.v1 #ContactMemberForm input::placeholder,
html.v1 #ContactMemberForm textarea::placeholder { text-transform: none; }
html.v1 .fm-foot .fm-privacy { text-align: left; }
html.v1 .fm-row2f { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
html.v1 #ContactMemberForm .form-control-feedback { top: 25px; height: 44px; line-height: 44px; }
html.v1 #ContactMemberForm .help-block { margin: 5px 0 0; font-size: 12px; }
html.v1 #ContactMemberForm .fm-msg-group { margin-bottom: 4px; }
html.v1 #ContactMemberForm .fm-msg-group .help-block { float: left; }
html.v1 .fm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 22px; border-top: 1px solid var(--ed-line); background: var(--ed-soft); border-radius: 0 0 18px 18px; }
html.v1 .fm-foot .fm-privacy { margin: 0; flex: 1 1 220px; min-width: 0; }
html.v1 .fm-foot .fm-actions { flex: 0 0 auto; }
html.v1 .fm-foot .ed-btn-primary { height: 44px; }
@media (max-width: 600px) {
    html.v1 .fm-row2f { grid-template-columns: minmax(0, 1fr); }
    html.v1 #ModalContactMember .modal-body { padding: 18px 16px 4px; }
    html.v1 .fm-foot { flex-direction: column-reverse; align-items: stretch; padding: 14px 16px; }
    html.v1 .fm-foot .fm-actions { display: grid; grid-template-columns: 1fr 2fr; }
    html.v1 .fm-foot .fm-actions > * { justify-content: center; }
}
@keyframes fm-wiggle {0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@media (max-width: 1199px) {
    html.v1 .fm-table tbody,
    html.v1 .fm-skel-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    html.v1 .fm-grid,
    html.v1 .fm-row2 { grid-template-columns: minmax(0, 1fr); }
    html.v1 .fm-row { flex-direction: column; align-items: stretch; }
    html.v1 .fm-pills { display: flex; }
    html.v1 .fm-msg span { display: none; }
    html.v1 .dataTables_length,
    html.v1 .dataTables_info,
    html.v1 .dataTables_paginate { text-align: center !important; }
}

/* ================= Find Member Firm ================= */
/* firm name doubles as a "details" button */
html.v1 .ff-card .ff-name { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 800; line-height: 1.35; color: var(--ed-ink); text-transform: uppercase; overflow-wrap: anywhere; }
html.v1 .ff-card .ff-name:hover, html.v1 .ff-card .ff-name:focus-visible { color: var(--ed-primary-2); text-decoration: underline; text-underline-offset: 3px; outline: none; }
html.v1 .ff-card .ff-person .fa { color: var(--fm-ink, #1d6fd1); }
html.v1 .ff-actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
html.v1 .ff-actions .fm-msg { justify-content: center; }
html.v1 .ff-actions .ff-info { color: #475569; }
html.v1 .ff-meta { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--ed-line); display: grid; gap: 6px; }
html.v1 .ff-line { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.45; color: #334155; overflow-wrap: anywhere; }
html.v1 .ff-line .fa { flex: 0 0 14px; margin-top: 3px; text-align: center; color: #94a3b8; }
html.v1 .ff-line a { color: var(--ed-primary-2); font-weight: 600; }
html.v1 .ff-line.is-empty { font-size: 12px; color: #94a3b8; font-style: italic; }
html.v1 .ff-row2 { align-items: end; }
html.v1 .ff-row2 > div:first-child { min-width: 0; }
html.v1 .ff-row2.is-single { grid-template-columns: minmax(0, 1fr); }

/* list view: Firm | Div. | Address | Tel / Web | actions */
@media (min-width: 768px) {
    html.v1 .fm-is-list.ff-page { --ff-cols: minmax(0, 1.35fr) 58px minmax(0, 1.5fr) 150px 84px; }
    html.v1 .fm-is-list .ff-list-head { grid-template-columns: var(--ff-cols); }
    html.v1 .fm-is-list .ff-card {
        grid-template-columns: var(--ff-cols);
        grid-template-areas: "name div addr tel act" "co div addr web act";
    }
    html.v1 .fm-is-list .ff-card .ff-name { grid-area: name; align-self: end; font-size: 14px; }
    html.v1 .fm-is-list .ff-card .ff-person { grid-area: co; }
    html.v1 .fm-is-list .ff-card .ff-meta { display: contents; }
    html.v1 .fm-is-list .ff-card .ff-addr { grid-area: addr; font-size: 12.5px; }
    html.v1 .fm-is-list .ff-card .ff-tel { grid-area: tel; font-size: 12.5px; align-self: end; }
    html.v1 .fm-is-list .ff-card .ff-web { grid-area: web; font-size: 12.5px; align-self: start; }
    html.v1 .fm-is-list .ff-card .ff-tel:only-child { align-self: center; }
    html.v1 .fm-is-list .ff-card .ff-line.is-empty { grid-area: addr; }
    html.v1 .fm-is-list .ff-card .ff-actions { grid-area: act; flex-direction: row; justify-content: flex-end; gap: 6px; }
    html.v1 .fm-is-list .ff-card .ff-actions .fm-msg { width: 36px; height: 34px; padding: 0; }
    html.v1 .fm-is-list .ff-card .ff-actions .fm-msg span { display: none; }
}
@media (min-width: 768px) and (max-width: 1199px) {
    html.v1 .fm-is-list.ff-page { --ff-cols: minmax(0, 1.4fr) 44px minmax(0, 1.3fr) 118px 78px; }
}
@media (max-width: 767px) {
    html.v1 .fm-is-list .ff-card { grid-template-areas: "id act" "meta meta"; }
    html.v1 .fm-is-list .ff-card .ff-actions { grid-area: act; flex-direction: row; }
    html.v1 .fm-is-list .ff-card .ff-meta { grid-area: meta; margin-top: 6px; padding-top: 6px; gap: 3px; }
    html.v1 .fm-is-list .ff-card .ff-line { font-size: 12px; }
    html.v1 .fm-is-list .ff-card .ff-line.is-empty { display: none; }
    html.v1 .ff-actions { flex-direction: row; }
}

/* firm details pop-up (same look as the contact pop-up) */
html.v1 #ModalFirmInfo .modal-md, html.v1 #ModalContactMember .modal-md { width: 600px; max-width: calc(100% - 20px); margin-left: auto; margin-right: auto; }
html.v1 #ModalFirmInfo .modal-dialog { -webkit-box-shadow: none !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; }
html.v1 #ModalFirmInfo .modal-content { border: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(8, 24, 48, .45); }
html.v1 #ModalFirmInfo .ff-info-head {
    position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 24px; border: 0; color: #fff;
    background: radial-gradient(600px 200px at 0% 0%, rgba(34, 184, 207, .35), transparent 60%), linear-gradient(135deg, var(--ed-primary-2), var(--ed-primary));
}
html.v1 #ModalFirmInfo .ff-info-head.is-ls { background: radial-gradient(600px 200px at 0% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, #f59e0b, #b45309); }
html.v1 #ModalFirmInfo .ff-info-head.is-qs { background: radial-gradient(600px 200px at 0% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, #3d9970, #1f6b4a); }
html.v1 #ModalFirmInfo .ff-info-head .close {
    position: absolute; top: 16px; right: 16px; margin: 0; width: 34px; height: 34px; border-radius: 10px; color: #fff; opacity: .85; text-shadow: none;
    background: rgba(255, 255, 255, .15); transition: background .2s ease, transform .2s ease;
}
html.v1 #ModalFirmInfo .ff-info-head .close:hover { opacity: 1; background: rgba(255, 255, 255, .25); transform: rotate(90deg); }
html.v1 .ff-logo { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center; overflow: hidden; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); font-size: 30px; color: #fff; }
html.v1 .ff-logo.has-logo { background: #fff; padding: 8px; }
html.v1 .ff-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
html.v1 .ff-info-title { min-width: 0; padding-right: 40px; text-align: left; }
html.v1 .ff-info-title small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
html.v1 #ModalFirmInfo .ff-info-title .modal-title { margin: 4px 0 8px; font-size: 18px; font-weight: 800; line-height: 1.3; text-transform: uppercase; color: #fff !important; overflow-wrap: anywhere; }
html.v1 .ff-info-title .fm-div { background: rgba(255, 255, 255, .22); }
html.v1 #ModalFirmInfo .modal-body { padding: 18px 24px 8px; }
html.v1 .ff-dl { margin: 0; }
html.v1 .ff-dl-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px dashed var(--ed-line); text-align: left; }
html.v1 .ff-dl-row:first-child { border-top: 0; }
html.v1 .ff-dl dt { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ed-muted); }
html.v1 .ff-dl dt .fa { width: 16px; text-align: center; color: var(--ed-primary-2); }
html.v1 .ff-dl dd { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--ed-ink); overflow-wrap: anywhere; }
html.v1 .ff-dl dd a { color: var(--ed-primary-2); }
html.v1 .ff-av { font-size: 18px; }
@media (max-width: 600px) {
    html.v1 .ff-dl-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    html.v1 #ModalFirmInfo .ff-info-head { padding: 20px 18px; }
    html.v1 .ff-logo { flex-basis: 60px; width: 60px; height: 60px; font-size: 24px; }
}
