/* Shared horizontal cards: compact reference proportions, portrait on RTL start. */
.lawj-directory-page .lawj-results-summary .lawj-results-count{background:var(--lj-gold,#d4af37);border-color:var(--lj-gold,#d4af37);color:var(--lj-navy,#0b2545)}
.lawj-directory-page .lawj-results-summary .lawj-results-count :is(strong,small){color:var(--lj-navy,#0b2545)}
/* Search tools have their own summary row so counts cannot run into fields. */
.lawj-directory-page .lawj-results-controls{display:block;box-sizing:border-box;width:100%;max-width:1000px;min-width:0;margin:0 auto 24px;padding:22px 24px;border:1px solid #b8c8da;border-top:3px solid #d4af37;border-radius:16px;background:#fff;box-shadow:0 6px 22px #1027460a;direction:rtl}
.lawj-directory-page .lawj-results-summary{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:18px;border-bottom:1px solid #e0e8f1}
.lawj-directory-page .lawj-results-intro{display:flex;align-items:center;gap:12px;min-width:0}
.lawj-directory-page .lawj-results-symbol{display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;border-radius:12px;background:#102746;color:#f5d578}
.lawj-directory-page .lawj-results-symbol svg{width:23px;height:23px}
.lawj-directory-page .lawj-results-intro h2{font-size:21px;line-height:1.4;margin:0 0 4px;color:#102746}
.lawj-directory-page .lawj-results-intro p{font-size:15px;line-height:1.6;margin:0;color:#425570}
.lawj-directory-page .lawj-results-count{display:flex;flex-direction:column;align-items:center;gap:3px;flex-shrink:0;margin:0;padding:10px 18px;min-width:172px;box-sizing:border-box;border:1px solid #e0c76e;border-radius:12px;background:#fff7dc;white-space:normal;color:#102746;font-size:16px;font-weight:600;line-height:1.5}
.lawj-directory-page .lawj-results-count strong{font-size:24px;font-weight:800;color:#102746;padding-inline:3px}
.lawj-directory-page .lawj-results-count small{display:block;margin:0;color:#665014;font-size:13px;line-height:1.5}
.lawj-directory-page .lawj-results-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:20px 0}
.lawj-directory-page .lawj-results-fields .lawj-results-field{min-width:0;grid-column:auto}
.lawj-directory-page .lawj-results-field label{position:static;display:block;width:auto;height:auto;overflow:visible;clip-path:none;margin:0 0 8px;color:#102746;font-size:15px;font-weight:700;line-height:1.5}
.lawj-directory-page .lawj-results-controls .lj-input{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:52px;min-height:52px;border:1px solid #91a8c2;border-radius:10px;background-color:#f5f8fc;color:#102746;font:600 16px/1.5 Heebo,Arial,sans-serif;padding:10px 14px;box-shadow:none}
.lawj-directory-page .lawj-results-controls .lj-input:hover{border-color:#244970;background-color:#fff}
.lawj-directory-page .lawj-results-controls .lj-input:focus-visible{outline:3px solid #d4af37;outline-offset:2px;background-color:#fff}
.lawj-directory-page .lawj-results-actions{display:flex;align-items:center;gap:12px;justify-content:flex-start;border-top:1px solid #e0e8f1;padding-top:16px}
.lawj-directory-page .lawj-results-submit,.lawj-directory-page .lawj-results-clear{position:static;display:inline-flex;align-items:center;justify-content:center;gap:9px;box-sizing:border-box;clip-path:none;overflow:visible;flex-shrink:0;width:auto;height:auto;min-height:48px;margin:0;padding:10px 20px;border:1px solid #102746;border-radius:9px;background:#102746;color:#fff;text-decoration:none;font:700 16px/1.5 Heebo,Arial,sans-serif;cursor:pointer}
.lawj-directory-page .lawj-results-submit svg{width:20px;height:20px}
.lawj-directory-page .lawj-results-clear{border-color:#91a8c2;background:#fff;color:#102746}
.lawj-directory-page .lawj-results-submit:hover{background:#244970;border-color:#244970}
.lawj-directory-page .lawj-results-clear:hover{background:#edf3fa;border-color:#244970}
.lawj-directory-page .lawj-results-actions :focus-visible{outline:3px solid #d4af37;outline-offset:2px}
.lawj-directory-page .lawj-results-submit:focus{position:static;clip-path:none;width:auto;height:auto;padding:10px 20px;background:#244970;color:#fff}
@media(max-width:760px){
 .lawj-directory-page .lawj-results-controls{padding:18px 14px;margin-bottom:22px;border-radius:14px}
 .lawj-directory-page .lawj-results-summary{flex-direction:column;align-items:stretch;gap:14px;padding-bottom:16px}
 .lawj-directory-page .lawj-results-intro{gap:10px}
 .lawj-directory-page .lawj-results-intro h2{font-size:21px}
 .lawj-directory-page .lawj-results-intro p{font-size:15px}
 .lawj-directory-page .lawj-results-count{flex-direction:row;justify-content:space-between;align-items:center;gap:10px;min-width:0;flex-wrap:wrap;padding:10px 12px;text-align:start}
 .lawj-directory-page .lawj-results-count small{font-size:13px}
 .lawj-directory-page .lawj-results-fields{grid-template-columns:minmax(0,1fr);gap:16px;padding:18px 0}
 .lawj-directory-page .lawj-results-field label{font-size:16px;margin-bottom:7px}
 .lawj-directory-page .lawj-results-controls .lj-input{font-size:16px;min-height:52px}
 .lawj-directory-page .lawj-results-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding-top:16px}
 .lawj-directory-page .lawj-results-submit,.lawj-directory-page .lawj-results-clear{width:100%;min-height:50px;padding:10px 12px;font-size:16px}
}
.internal-page .lawj-profile-list{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0;width:100%;max-width:820px;margin-inline:auto}
.lawj-lawyer-row{display:grid;grid-template-columns:106px minmax(0,1fr) 172px;gap:16px;align-items:center;padding:12px;border:1px solid #dce3ec;border-radius:8px;background:#fff;color:#0b2545;direction:rtl;min-height:148px}
.lawj-lawyer-row-photo{width:106px;height:124px;border-radius:6px;overflow:hidden;background:#f4f6f9;display:grid;place-items:center;align-self:start}
.lawj-lawyer-row-photo img{width:100%;height:100%;object-fit:cover;object-position:center 15%}
.lawj-lawyer-row-photo>.lj-icon{width:40px;height:40px;color:#64748b}
.lawj-lawyer-row-content{min-width:0}
.lawj-lawyer-row-title{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.lawj-lawyer-row .lawj-lawyer-row-title h3{font-size:24px;line-height:1.25;margin:0;color:#0b2545}
.lawj-lawyer-row-badge{font-size:10px;line-height:1.4;border:1px solid #ead8a7;border-radius:4px;background:#fff8e7;color:#76591b;padding:2px 5px}
.lawj-lawyer-row-specialty{font-size:15px;font-weight:600;margin:4px 0;color:#0b2545}
.lawj-lawyer-row-bio{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.5;margin:0 0 5px;color:#344f71}
.lawj-lawyer-row-tags,.lawj-lawyer-row-facts{display:flex;flex-wrap:wrap;gap:5px;list-style:none;padding:0;margin:0}
.lawj-lawyer-row-tags li{padding:1px 6px;border:1px solid #dce4ee;border-radius:4px;background:#f4f6f9;font-size:10px;color:#0b2545}
.lawj-lawyer-row-facts li{display:flex;align-items:center;gap:6px}.lawj-lawyer-row-facts .lj-icon{width:18px;height:18px;flex-shrink:0}
.lawj-lawyer-row-facts{font-size:12px;margin-top:5px;gap:12px;color:#344f71}
.lawj-lawyer-row-actions{display:grid;gap:7px;min-width:0;align-self:center}
.lawj-lawyer-row .lawj-lawyer-row-button{background:linear-gradient(110deg,#d4af37,#e3b43a);color:#0b2545;white-space:nowrap;font-size:14px;min-height:39px;padding:6px 10px;justify-content:center;border-radius:6px}
.lawj-lawyer-row-phone{display:flex;align-items:center;justify-content:center;gap:8px;min-height:39px;background:#0b2545;border:1px solid #0b2545;border-radius:6px;font-weight:700;color:#fff;text-decoration:none;font-size:15px}
.lawj-lawyer-row-phone .lj-icon{width:18px;height:18px}
.lawj-lawyer-row .lawj-profile-metrics{margin-top:6px;gap:9px;font-size:12px}
.lawj-lawyer-row .lawj-review-stars{font-size:19px}
.lawj-lawyer-row-button:focus-visible,.lawj-lawyer-row-phone:focus-visible{outline:3px solid #0b2545;outline-offset:3px}
.lawj-lawyer-row-button:hover{background:#e4c65c}
@media(min-width:640px) and (max-width:900px){.lawj-lawyer-row{grid-template-columns:90px minmax(0,1fr) 145px;gap:12px}.lawj-lawyer-row-photo{width:90px;height:112px}.lawj-lawyer-row .lawj-lawyer-row-title h3{font-size:20px}.lawj-lawyer-row .lawj-lawyer-row-button{font-size:12px}}
@media(max-width:639px){
 .lawj-lawyer-row{grid-template-columns:78px minmax(0,1fr);padding:12px;gap:10px 12px;min-height:0}
 .lawj-lawyer-row-photo{width:78px;height:94px;grid-column:1;grid-row:1;align-self:start}
 .lawj-lawyer-row .lawj-lawyer-row-title h3{font-size:19px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
 .lawj-lawyer-row-title{gap:4px}.lawj-lawyer-row-badge{font-size:9px;padding:1px 4px}
 .lawj-lawyer-row-specialty{font-size:12px;line-height:1.5;margin:4px 0}
 .lawj-lawyer-row-bio,.lawj-lawyer-row-tags{display:none}
 .lawj-lawyer-row-facts{font-size:11px;gap:4px;margin-top:4px}
 .lawj-lawyer-row-actions{grid-column:1/-1;gap:6px}
 .lawj-lawyer-row-phone{order:-1;min-height:35px;font-size:14px;background:#0b2545;color:#fff;border-color:#0b2545}
 .lawj-lawyer-row .lawj-lawyer-row-button{min-height:35px;font-size:13px;padding:5px 10px}
 .lawj-lawyer-row .lawj-profile-metrics{font-size:11px;gap:5px;margin-top:5px}
 .lawj-lawyer-row .lawj-review-stars{font-size:16px;letter-spacing:0}
}

/* Directory controls are inline; demonstration remains explicitly labelled. */
.internal-page .directory-layout{display:block;max-width:820px;margin-inline:auto}.directory-layout .filter-card{display:block;padding:14px;margin-bottom:18px;box-shadow:none}.directory-layout .filter-card h2{font-size:16px;margin:0 0 10px}.directory-layout .filter-card form{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.directory-layout .filter-card .lj-button{width:auto;flex:0 0 auto}.directory-layout .filter-card .lawj-consent{font-size:12px}.directory-layout .filter-card small{display:none}.directory-layout>section>.lj-note{font-size:12px;padding:8px 12px}.directory-layout .filter-card .reset-link{padding:8px;font-size:13px}.directory-layout .filter-card .lj-field{flex:1;min-width:130px;margin:0}.directory-layout .filter-card>p,.directory-layout .filter-card>a{display:none}.lawj-demo-disclosure{font-size:12px;color:#52657b;margin:0 0 10px}.lawj-demo-rail{margin-top:12px}.lawj-demo-rail .lawj-profile-list{max-width:820px}.directory-layout>section>.results-heading{margin-bottom:12px}
@media(max-width:639px){.directory-layout .filter-card{padding:10px;margin-bottom:12px}.directory-layout .filter-card h2{font-size:15px}.directory-layout .filter-card .lj-field:first-child{flex:1}.directory-layout .filter-card .reset-link{display:flex;align-items:center;justify-content:center;border:1px solid #b7c6d8;border-radius:7px;min-height:40px;color:#0b2545;font-weight:600}.inner-hero--directory h1{font-size:28px;margin:10px 0}.inner-hero--directory .hero-subtitle{font-size:14px}.inner-hero--directory{padding-block:20px}.directory-layout .filter-card form{gap:8px}.directory-layout .filter-card .lj-field{min-width:120px}.directory-layout .filter-card label{font-size:12px}.directory-layout .filter-card .lawj-consent,.directory-layout .filter-card small{display:none}.directory-layout .filter-card .lj-button{min-height:36px;padding:6px 14px}.lawj-demo-disclosure{font-size:11px;line-height:1.5}.lawj-demo-rail{margin-top:8px}.directory-layout>section>.results-heading h2{font-size:20px}.lawj-lawyer-row-badge{max-width:100%;white-space:nowrap}.lawj-lawyer-row .lawj-lawyer-row-title h3{font-size:18px}}

.lawj-extra-filters{flex:2;margin:0;border:1px solid #dce3ec;position:relative;min-width:180px}.lawj-extra-filters summary{min-height:42px;padding:9px 0;font-size:14px}.lawj-extra-filter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-bottom:12px}.directory-layout .lawj-extra-filter-fields .lj-field{min-width:0}.directory-layout .filter-card .lawj-consent{flex-basis:100%}.directory-layout .filter-card .lj-input{min-height:42px}.directory-layout .filter-card .lj-button{min-height:42px}.directory-layout .filter-card h2{display:none}
@media(max-width:639px){.directory-layout .filter-card form{align-items:start}.directory-layout .filter-card .lj-field{min-width:0}.directory-layout .filter-card form>.lj-field{flex-basis:45%}.lawj-extra-filters{flex:1;min-width:130px}.lawj-extra-filter-fields{grid-template-columns:1fr}.lawj-extra-filters[open]{flex-basis:100%}.directory-layout .filter-card form>.lj-button{width:100%}.directory-layout .filter-card .lj-field label{font-size:11px}.directory-layout .filter-card{border-radius:8px}}

/* Screen 01: desktop results and shared card, using the approved measurements.
   Mobile and tablet presentation stay on their existing rules above. */
.lawj-results-controls{display:none}
@media(max-width:900px){
 .directory-layout .filter-card{display:none}
 .lawj-results-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:12px;margin:0 0 20px;min-width:0}
 .lawj-results-count{grid-column:1/-1;margin:0;font-size:18px;font-weight:600;color:#0b2545}
 .lawj-results-count strong{font-size:21px}
 .lawj-results-field{min-width:0}
 .lawj-results-field label{display:block;font-size:14px;font-weight:600;color:#0b2545;margin-bottom:5px}
 .lawj-results-controls .lj-input{display:block;width:100%;min-width:0;max-width:100%;height:48px;box-sizing:border-box;font-size:15px;color:#0b2545;background:#f4f6f9;border:1px solid #b7c6d8;border-radius:8px;padding:8px 10px}
 .lawj-results-field:last-of-type{grid-column:1/-1}
 .lawj-results-clear,.lawj-results-submit{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #b7c6d8;border-radius:7px;font-size:15px;font-weight:600;text-decoration:none;color:#0b2545;background:#fff;cursor:pointer}
 .lawj-results-submit{background:#d4af37;border-color:#d4af37}
 .lawj-results-count-mobile{display:none}
 .lawj-results-controls :is(select,a,button):focus-visible{outline:2px solid #0b2545;outline-offset:2px}
}
@media(min-width:901px){
 .lawj-directory-page>.inner-hero>.lj-container,.lawj-directory-page>.inner-content{width:calc(100% - 48px);max-width:1280px;margin-inline:auto;padding-inline:0}
 .lawj-directory-page>.inner-hero{min-height:245px;height:245px;padding:26px 0;display:flex;align-items:center}
 .lawj-directory-page>.inner-hero h1{font-size:42px;line-height:1.15;margin:12px 0;max-width:850px;text-align:right}
 .lawj-directory-page>.inner-hero .hero-subtitle{font-size:18px;line-height:1.6;text-align:right}
 .lawj-directory-page>.inner-content{padding-block:16px 40px}
 .lawj-directory-page .directory-layout{width:100%;max-width:none;margin:0}
 .lawj-directory-page .directory-layout>.filter-card{display:none}
 .lawj-results-controls{display:grid;grid-template-columns:150px minmax(120px,1fr) minmax(150px,1fr) minmax(280px,1.45fr) 64px;gap:12px;align-items:center;min-height:70px;padding:12px 16px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;position:relative;margin:0 auto 12px;max-width:1000px;width:100%;border:0;padding-inline:0}
 .lawj-results-count{margin:0;font-size:19px;font-weight:600;white-space:nowrap;color:#0b2545}.lawj-results-count strong{font-size:23px;font-weight:800}.lawj-results-count small{display:block;font-size:11px;color:#76591b;margin-top:3px}.lawj-results-submit{position:absolute;inset-inline-start:0;top:100%;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.lawj-results-submit:focus{width:auto;height:40px;clip-path:none;z-index:2;padding:8px 14px;background:#d4af37;color:#0b2545}.lawj-results-count-mobile{display:none}
 .lawj-results-clear{display:flex;align-items:center;justify-content:center;height:48px;border:1px solid #b7c6d8;border-radius:8px;color:#0b2545;background:#fff;font-size:15px;font-weight:600;text-decoration:none}.lawj-results-clear:hover{border-color:#0b2545;background:#f4f6f9}.lawj-results-clear:focus-visible{outline:2px solid #d4af37;outline-offset:2px}
 .lawj-results-field label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .lawj-results-controls .lj-input{height:48px;min-height:48px;font-size:17px;font-weight:600;color:#0b2545;background:#f4f6f9;border:1px solid #b7c6d8;border-radius:8px;padding:10px 14px;box-shadow:0 2px 4px #0b254508}.lawj-results-controls .lj-input:hover{border-color:#0b2545;background:#fff}.lawj-results-controls .lj-input:focus-visible{outline:2px solid #d4af37;outline-offset:2px}
 .lawj-results-controls>.lj-button{min-height:42px;height:42px;padding:7px 12px;font-size:14px}
 .lawj-results-reset{font-size:13px;color:#52657b;text-align:center}
 .lawj-results-advanced{margin:0;padding:0 6px;border:1px solid #e2e8f0;border-radius:7px;background:#fff}
 .lawj-results-advanced summary{font-size:0;min-height:42px;padding-block:9px;white-space:nowrap}
 .lawj-results-advanced summary:after{content:"⋯";font-size:22px;display:block;text-align:center;line-height:24px}
 .lawj-results-controls>.lj-button{font-size:0;padding:7px}.lawj-results-controls>.lj-button .lj-icon{width:20px;height:20px}.lawj-results-reset{font-size:12px}
 .lawj-results-advanced-panel{position:absolute;z-index:20;inset-inline-end:16px;top:calc(100% + 6px);width:320px;display:grid;gap:9px;padding:16px;background:white;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 10px 24px #0b254514}
 .lawj-results-advanced-panel label{font-size:13px}.lawj-results-advanced-panel .lawj-consent{display:flex;align-items:center;gap:7px}
 .lawj-directory-page .results-heading{width:100%;max-width:1000px;margin:12px auto 10px}.lawj-directory-page .results-heading h2{font-size:20px}
 .lawj-directory-page .lawj-demo-rail{margin-top:0}.lawj-directory-page .lawj-demo-disclosure{max-width:1000px;width:100%;font-size:13px;margin:0 auto 10px}
 .internal-page .lawj-profile-list{width:100%;max-width:1000px;gap:12px;margin-inline:auto}
 .lawj-lawyer-row{width:100%;grid-template-columns:112px minmax(0,1fr) 172px;column-gap:18px;row-gap:0;min-height:164px;padding:16px;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 2px 8px #0b254504;align-items:center;text-align:right}
 .lawj-lawyer-row-photo{width:112px;height:122px;border-radius:8px;align-self:center}
 .lawj-lawyer-row-photo img{object-fit:cover;object-position:center top}
 .lawj-lawyer-row-content{display:flex;flex-direction:column;gap:5px;text-align:right;min-width:0}
 .lawj-lawyer-row .lawj-lawyer-row-title h3{font-size:22px;font-weight:700;line-height:1.25;margin:0}
 .lawj-lawyer-row-specialty{font-size:15px;font-weight:500;line-height:1.4;margin:0}
 .lawj-lawyer-row-bio{font-size:15px;line-height:1.5;margin:0;-webkit-line-clamp:2;max-width:100%}
 .lawj-lawyer-row-tags{display:none}
 .lawj-lawyer-row .lawj-profile-metrics{margin:0;gap:10px;font-size:14px;line-height:1.4;flex-direction:row-reverse;justify-content:flex-end}
 .lawj-lawyer-row .lawj-profile-metrics>strong{order:2}.lawj-lawyer-row .lawj-profile-metrics>.lawj-review-stars{order:1;font-size:16px;letter-spacing:0}.lawj-lawyer-row .lawj-profile-metrics>a{order:3}.lawj-lawyer-row .lawj-profile-views{order:4;margin-inline-start:8px}
 .lawj-lawyer-row-facts{margin:0;font-size:13px;line-height:1.4;gap:14px}
 .lawj-lawyer-row-actions{gap:8px;align-self:center}
 .lawj-lawyer-row .lawj-lawyer-row-button{width:100%;height:40px;min-height:40px;padding:7px 10px;background:#d4af37;border-radius:7px;font-size:14px;line-height:1.4}
 .lawj-lawyer-row-phone{height:40px;min-height:40px;width:100%;border-radius:7px;font-size:16px;line-height:1.4;direction:ltr}
 .lawj-lawyer-row-badge{font-size:10px;padding:1px 5px;line-height:1.5}
}
