/* Directory cards, filters and profile modal from feat/reapply-v68-badges-teams. */
.dir-card { position: relative; display: flex; flex-direction: column; gap: 15px; min-height: 330px;
  padding: 23px; overflow: hidden; border: 1px solid #e5e1db; border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgb(21 36 48 / 4%); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) { .dir-card:hover { border-color: #c57a4b; transform: translateY(-3px); box-shadow: 0 12px 30px rgb(21 36 48 / 9%); } }
.dir-card-topline, .dir-card-bottom, .dir-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dir-trust-badges { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.dir-trust-mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; background: transparent; flex: 0 0 28px; color: #142432; cursor: help; }
.dir-trust-mark svg { display: block; width: 26px; height: 26px; flex: 0 0 26px; overflow: visible; }
.dir-trust-mark svg circle:first-child { fill: #fff; stroke: #142432; stroke-width: 2.1; }
.dir-trust-mark svg circle:nth-child(2) { fill: none; stroke: #d9dfe2; stroke-width: 1.15; }
.dir-trust-mark svg circle:nth-child(3) { fill: #c37343; }
.dir-trust-mark svg .dir-trust-check, .dir-modal-badge svg .dir-trust-check { fill: none; stroke: #a85e30; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.dir-trust-check-halo { fill: none; stroke: #fff; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.dir-reviewed { display: inline-flex; align-items: center; gap: 7px; color: #607488; font-size: 12px; font-weight: 700; letter-spacing: .025em; }
.dir-reviewed > span { color: #c3723d; font-size: 9px; }
.dir-verified { border: 1px solid #d5e7dc; border-radius: 999px; padding: 4px 9px; background: #f1f8f3; color: #32664a; font-size: 11px; font-weight: 700; }
.dir-founding { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #e9c4a5; border-radius: 999px; padding: 4px 9px; background: #fff3e8; color: #96502b; font-size: 11px; font-weight: 750; white-space: nowrap; }
.dir-founding-mark { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0; border: 0; background: transparent; color: #8c4b24; font-size: 12px; font-weight: 700; cursor: help; }
.dir-founding-mark svg { display: block; width: 23px; height: 27px; flex: 0 0 23px; overflow: visible; }
.dir-founding-ribbon { fill: #b96a3c; stroke: #96502b; stroke-width: .6; stroke-linejoin: round; }
.dir-founding-medal { fill: #fff8f0; stroke: #bd7449; stroke-width: 1.15; stroke-linejoin: round; }
.dir-founding-star { fill: #b96a3c; stroke: #96502b; stroke-width: .5; stroke-linejoin: round; }
.dir-person { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dir-avatar { width: 58px; height: 58px; flex: 0 0 auto; border: 2px solid #f1e8df; border-radius: 17px; font-size: 21px; }
.dir-person-copy { min-width: 0; }
.dir-person-copy h3 { margin: 0 0 4px; color: #142432; font-size: clamp(19px, 1.4vw, 23px); line-height: 1.2; letter-spacing: -.025em; }
.dir-headline { margin: 0 0 4px; color: #40586c; font-size: 14px; font-weight: 600; line-height: 1.4; }
.dir-location { margin: 0; color: #718295; font-size: 13px; }
.dir-bio { display: -webkit-box; margin: 0; overflow: hidden; color: #526579; font-size: 14px; line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.dir-match { margin: -3px 0 0; color: #9c552f; font-size: 12px; font-weight: 700; }
.dir-card-skills { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-height: 28px; }
.dir-expertise-tag { display: inline-flex; align-items: center; min-height: 28px; border: 1px solid #e8e4de; border-radius: 8px; padding: 4px 9px; background: #faf9f7; color: #465c6e; font-size: 12px; font-weight: 600; }
.dir-more-skills { color: #9b5b37; font-size: 12px; font-weight: 700; }
.dir-card-bottom { margin-top: auto; border-top: 1px solid #eeeae5; padding-top: 12px; }
.dir-member-type { color: #67798a; font-size: 12px; font-weight: 700; }
.dir-foot { color: #788796; font-size: 12px; }
.dir-card .dir-card-bottom .dir-foot { margin-top: 0; border-top: 0; padding-top: 0; }
.dir-card-actions { justify-content: flex-start; gap: 9px; }
.dir-view-profile, .dir-use-brief { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 42px; border: 1px solid #e2ddd6; border-radius: 10px; padding: 0 13px; background: var(--surface); color: #253b4e; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.dir-use-brief { border-color: #aa5f32; background: #aa5f32; color: #fff; }
.dir-view-profile:hover, .dir-view-profile:focus-visible { border-color: #aa5f32; color: #934d26; }
.dir-use-brief:hover, .dir-use-brief:focus-visible { border-color: #864724; background: #864724; }
.dir-topline-actions { display: inline-flex; align-items: center; gap: 8px; }
.dir-topline-actions { flex-wrap: wrap; justify-content: flex-end; }
.dir-interest { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; border: 0; border-radius: 999px; padding: 0 8px; background: #fbf4ee; color: #7a685e; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.dir-interest > span:first-child { color: #a85b37; font-size: 17px; }
.dir-interest.is-saved { color: #9e4f31; }
.dir-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 28px; }
.dir-page-head > div:first-child { max-width: 650px; }
.dir-eyebrow { margin: 0 0 8px; color: #a45c34; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.dir-page-head h2 { margin: 0 0 8px; font-size: clamp(30px, 3vw, 42px); letter-spacing: -.04em; }
.dir-process-note { display: flex; align-items: center; gap: 12px; border: 1px solid #e8e2da; border-radius: 14px; padding: 13px 16px; background: var(--surface); }
.dir-process-step { display: flex; align-items: center; gap: 8px; }
.dir-process-step > b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f8eee6; color: #a85b37; font-size: 12px; }
.dir-process-step > span { display: grid; gap: 2px; }
.dir-process-step strong { color: #23384a; font-size: 12px; }
.dir-process-step small { color: #738293; font-size: 11px; }
.dir-process-arrow { color: #c0784b; font-weight: 800; }
.dir-network-head { margin: 10px 0 19px; }
.dir-count { margin: 0 !important; color: #30485c; font-size: 15px; font-weight: 750; }
.dir-process-explainer { margin: 4px 0 0; color: #748394; font-size: 13px; }
.dir-member-info { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 22px; border: 1px solid #dce5eb; border-radius: 14px; padding: 16px 19px; background: #f4f7f9; }
.dir-member-info strong { color: #24394b; font-size: 14px; }
.dir-member-info p { margin: 2px 0 0; color: #6c7d8d; font-size: 13px; }
.dir-member-info .btn { flex: none; }
.dir-profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); align-items: stretch; gap: 18px; }
.dir-result { min-width: 0; }
.dir-result[hidden] { display: none; }
.dir-brief-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 36px 0 0; border: 1px solid #e8e1d9; border-radius: 18px; padding: 25px 29px; background: #fcf5ee; }
.dir-brief-cta h3 { margin: 0 0 5px; color: #172937; font-size: 21px; }
.dir-brief-cta p { margin: 0; color: #637589; }
.dir-brief-cta .btn { flex: none; }
.dir-modal-backdrop { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgb(12 25 36 / 58%); backdrop-filter: blur(5px); }
.dir-profile-modal { position: relative; width: min(100%, 660px); max-height: min(88vh, 900px); overflow: auto; border: 1px solid rgb(255 255 255 / 65%); border-radius: 22px; background: var(--surface); box-shadow: 0 24px 80px rgb(8 20 30 / 28%); outline: none; }
.dir-modal-close { position: absolute; z-index: 1; top: 14px; right: 15px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgb(255 255 255 / 55%); border-radius: 50%; background: rgb(255 255 255 / 88%); color: #263a4a; font-size: 24px; cursor: pointer; }
.dir-modal-cover { display: flex; align-items: center; gap: 10px; min-height: 100px; padding: 23px 30px; background: #132635; }
.dir-cover-meta { display: flex; align-items: center; gap: 10px; padding-right: 54px; }
.dir-modal-badge-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.dir-modal-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 29px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 999px; padding: 4px 10px; background: rgb(255 255 255 / 10%); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.dir-modal-badge svg { width: 18px; height: 18px; flex: 0 0 18px; }
.dir-modal-badge svg circle:first-child { fill: #fff; stroke: #fff; stroke-width: 1.8; }
.dir-modal-badge svg circle:nth-child(2) { fill: none; stroke: #d4dce1; stroke-width: 1; }
.dir-modal-badge svg circle:nth-child(3) { fill: #c37343; }
.dir-modal-badge svg .dir-founding-ribbon { fill: #c37343; stroke: #f1c7a4; stroke-width: .6; }
.dir-modal-badge svg .dir-founding-medal { fill: #fff8f0; stroke: #f1c7a4; stroke-width: 1; }
.dir-modal-badge svg .dir-founding-star { fill: #b96a3c; stroke: #96502b; stroke-width: .4; }
.dir-modal-cover .dir-reviewed { color: #fff; }
.dir-modal-content { padding: 26px 32px 30px; }
.dir-modal-person { display: flex; align-items: center; gap: 16px; margin: -51px 0 25px; }
.dir-avatar-large { width: 78px; height: 78px; border: 4px solid #fff; border-radius: 23px; background: #edf3f6; font-size: 27px; }
.dir-modal-person h2 { margin: 0 0 4px; color: #142432; font-size: clamp(25px, 4vw, 32px); letter-spacing: -.035em; }
.dir-modal-person .dir-eyebrow { margin-bottom: 3px; }
.dir-modal-section { margin-top: 23px; border-top: 1px solid #eeeae5; padding-top: 18px; }
.dir-modal-section h3 { margin: 0 0 10px; color: #243a4d; font-size: 15px; }
.dir-modal-section > p { margin: 0; color: #586c7e; line-height: 1.65; white-space: pre-line; }
.dir-modal-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.dir-modal-trust { display: flex; flex-wrap: wrap; gap: 12px 22px; color: #55705f; font-size: 13px; font-weight: 650; }
.dir-modal-note { margin: 22px 0 0; border-left: 3px solid #c37343; padding: 9px 13px; background: #fbf5ef; color: #5f6871; font-size: 13px; line-height: 1.5; }
.dir-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dir-modal-actions .btn { min-height: 45px; }
.dir-modal-hint { margin: 9px 0 0; color: #738293; font-size: 12px; line-height: 1.5; }
.dir-brief-reference { display: flex; align-items: flex-start; gap: 14px; margin: -8px 0 18px; border: 1px solid #ead7c8; border-radius: 14px; padding: 15px 17px; background: #fcf5ee; }
.dir-reference-icon { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px; background: var(--surface); color: #a75d33; font-size: 20px; font-weight: 800; }
.dir-brief-reference strong { color: #24394b; }
.dir-brief-reference p { margin: 2px 0; color: #596e80; font-size: 13px; }
.dir-brief-reference small { color: #778494; line-height: 1.5; }
@media (max-width: 700px) {
  .dir-page-head { align-items: flex-start; gap: 18px; }
  .dir-process-note { width: 100%; justify-content: space-between; }
  .dir-member-info { align-items: flex-start; flex-direction: column; }
  .dir-profile-grid { grid-template-columns: minmax(0, 1fr); }
  .dir-card { min-height: 0; padding: 19px; }
  .dir-card-topline { gap: 6px; }
  .dir-reviewed { gap: 5px; font-size: 11px; }
  .dir-topline-actions { gap: 5px; }
  .dir-interest { gap: 3px; padding-inline: 4px; font-size: 10px; }
  .dir-verified { padding-inline: 7px; font-size: 10px; }
  .dir-card-actions { flex-wrap: wrap; }
  .dir-card-actions > button { flex: 1; }
  .dir-brief-cta { align-items: stretch; flex-direction: column; padding: 21px; }
  .dir-brief-cta .btn { width: 100%; }
  .dir-modal-backdrop { align-items: flex-end; padding: 0; }
  .dir-profile-modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .dir-modal-content { padding: 22px 21px 26px; }
  .dir-modal-cover { min-height: 86px; padding-inline: 21px; }
  .dir-modal-actions { flex-direction: column; }
  .dir-modal-actions .btn { width: 100%; }
}

.dir-count { margin-top: var(--space-5) !important; }
.dir-match { margin: 0; color: var(--brand-700); font-size: var(--text-1); font-weight: 650; }
.dir-network-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  flex-wrap: wrap; margin: var(--space-5) 0 var(--space-4); }
.dir-network-head .dir-count { margin: 0 !important; }
.dir-view-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-200);
  border-radius: 999px; background: var(--surface-muted); }
.dir-view-switch [role="tab"] { min-height: 42px; padding: 0 var(--space-4); border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-700); font-weight: 650; cursor: pointer; }
.dir-view-switch [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--brand-700);
  box-shadow: 0 1px 3px rgb(16 37 52 / 12%); }
.dir-view-panel { min-width: 0; }
.dir-filter-row { display: grid; gap: var(--space-3); margin: 0 0 var(--space-5); }
.dir-filter-row input[type="search"] { width: min(100%, 540px); min-height: 46px; }
.dir-filter-skills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.dir-skill-chip, .dir-skill-option { min-height: 42px; border: 1px solid var(--line-200); border-radius: var(--radius-pill);
  padding: 0 var(--space-3); background: var(--surface); color: var(--ink-700); cursor: pointer; }
.dir-skill-chip { display: inline-flex; align-items: center; gap: var(--space-2); }
.dir-skill-chip span { color: var(--ink-500); font-size: var(--text-0); }
.dir-skill-chip.is-active, .dir-skill-option[aria-pressed="true"] { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-800); }
.dir-card-skills { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.dir-card-skills .tag { max-width: 100%; overflow-wrap: anywhere; }
.dir-card-skills .dir-expertise-tag { max-width: min(100%, 210px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-result { min-width: 0; }
.dir-no-results { margin: var(--space-5) 0; }
.dir-skill-intro { margin: var(--space-2) 0 var(--space-4); }
.dir-skill-intro h3, .dir-skill-selection h4 { margin: 0 0 var(--space-1); }
.dir-skill-intro p, .dir-skill-selection p { margin: 0; }
.dir-expertise-layout { display: grid; grid-template-columns: minmax(270px, .78fr) minmax(0, 1.55fr); align-items: start; gap: var(--space-4); }
.dir-expertise-browser { min-width: 0; border: 1px solid var(--line-200); border-radius: var(--radius-card); padding: var(--space-4); background: var(--surface-muted); }
.dir-skill-search { width: 100%; min-height: 46px; margin: 0 0 var(--space-3); }
.dir-skill-map { display: flex; flex-direction: column; gap: 6px; max-height: 560px; overflow: auto; padding: 1px 3px 1px 1px; }
.dir-skill-option { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: var(--space-3);
  min-height: 44px; border-radius: 10px; padding-inline: 12px; text-align: left; }
.dir-skill-option span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-skill-option b { display: grid; place-items: center; flex: 0 0 auto; min-width: 24px; height: 24px; border-radius: 999px; background: var(--surface-muted); color: var(--ink-600); font-size: var(--text-0); }
.dir-skill-option:hover, .dir-skill-option:focus-visible { border-color: var(--brand-400); background: var(--brand-50); }
.dir-skill-option.is-active { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-800); box-shadow: inset 3px 0 0 var(--accent-500); }
.dir-skill-option.is-active b { background: var(--surface); color: var(--brand-800); }
.dir-skill-no-match { margin: var(--space-3) 0 0; color: var(--ink-500); font-size: var(--text-1); }
.dir-expertise-results { min-width: 0; min-height: 300px; border: 1px solid var(--line-200); border-radius: var(--radius-card); padding: var(--space-5); background: var(--surface); }
.dir-expertise-results.has-selection { border-color: transparent; padding: 0; background: transparent; }
.dir-expertise-start { display: grid; min-height: 260px; align-content: center; justify-items: center; border: 1px dashed var(--line-300); border-radius: var(--radius-card); padding: var(--space-5); background: var(--surface-muted); text-align: center; }
.dir-expertise-start[hidden] { display: none; }
.dir-expertise-kicker { margin-bottom: var(--space-2); color: var(--accent-700); font-size: var(--text-0); font-weight: 800; letter-spacing: .1em; }
.dir-expertise-start h4 { margin: 0 0 var(--space-2); color: var(--ink-900); font-size: var(--text-4); }
.dir-expertise-start p { max-width: 340px; margin: 0; color: var(--ink-500); }
.dir-skill-selection { margin: 0 0 var(--space-4); border-bottom: 1px solid var(--line-200); padding: 0 0 var(--space-3); }
.dir-skill-selection h4 { color: var(--ink-900); font-size: var(--text-4); }
.dir-profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 420px));
  align-items: stretch; gap: var(--space-4); }
@media (max-width: 800px) {
  .dir-network-head { align-items: flex-start; }
  .dir-view-switch { width: 100%; }
  .dir-view-switch [role="tab"] { flex: 1; padding-inline: var(--space-2); }
  .dir-expertise-layout { grid-template-columns: minmax(0, 1fr); }
  .dir-skill-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); max-height: 320px; }
  .dir-expertise-results { min-height: 220px; padding: var(--space-4); }
  .dir-expertise-results.has-selection { padding: 0; }
  .dir-profile-grid { grid-template-columns: minmax(0, 1fr); }
}
.dir-industry-notice { max-width: 720px; padding: var(--space-6); }
.dir-industry-notice h3 { margin-top: 0; }
.dir-empty-state { max-width: 760px; }

.dir-other { margin-top: var(--space-5); border-top: 1px solid var(--line-200);
  padding-top: var(--space-4); }
.dir-other > summary { cursor: pointer; font-weight: 600; color: var(--ink-700);
  font-size: var(--text-3); list-style: none; display: flex; align-items: center; gap: var(--space-2); }
.dir-other > summary::-webkit-details-marker { display: none; }
.dir-other > summary::after { content: ''; width: 8px; height: 8px; flex: none;
  border-right: 2px solid var(--ink-500); border-bottom: 2px solid var(--ink-500);
  transform: rotate(45deg); transition: transform .2s ease; }
.dir-other[open] > summary::after { transform: rotate(225deg); }
@media (hover: hover) { .dir-other > summary:hover { color: var(--brand-700); } }

.dir-team-links { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: -5px; color: #748394; font-size: 11px; font-weight: 650; }

.dir-team-links button, .dir-team-pill { border: 1px solid #e9d9cb; border-radius: 999px; padding: 5px 10px; background: #fcf5ee; color: #914f2d; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }

.dir-team-links button:hover, .dir-team-pill:hover { border-color: #c47a4b; background: #f7eadf; }

.dir-team-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; }

.dir-team-description { color: #506679; line-height: 1.6; }

.dir-team-roster { display: grid; gap: 10px; }

.dir-team-roster-row { display: flex; align-items: center; gap: 12px; border: 1px solid #eee9e3; border-radius: 13px; padding: 11px; background: var(--surface); }

.dir-team-roster-row > div { display: grid; flex: 1; min-width: 0; gap: 3px; }

.dir-team-roster-row strong { color: #203647; }

.dir-team-roster-row > div span { overflow: hidden; color: #718295; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.dir-team-roster-row .dir-avatar { width: 43px; height: 43px; border-radius: 13px; font-size: 16px; }

.dir-firm-roster { margin-top: 12px; }

.dir-kind-filter { display: flex; flex-wrap: wrap; gap: 5px; }

.dir-kind-filter button { min-height: 37px; border: 1px solid #e5e1db; border-radius: 999px; padding: 0 12px; background: var(--surface); color: #526579; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }

.dir-kind-filter button.is-active { border-color: #243e52; background: #172c3b; color: #fff; }

.dir-kind-filter button span { opacity: .75; }

@media (max-width: 700px) {
  .team-invite-row { flex-wrap: wrap; }
  .team-invite-row input { flex: 1 0 100%; padding: 7px 3px; }
  .team-invite-state { flex: 1; }
  .dir-team-roster-row { align-items: flex-start; flex-wrap: wrap; }
  .dir-team-roster-row .btn { flex-basis: 100%; }
  .dir-team-roster-row .dir-verified { margin-left: auto; }
  .dir-kind-filter { width: 100%; }
  .dir-kind-filter button { flex: 1; }
}

