/* Preserve the approved left-hand hero copy position in the existing RTL flex row. */
.hp-study .hp-hero-copy{margin-left:0}
@media(max-width:600px){
 .hp-study .hp-hero-inner{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;padding-top:0;padding-bottom:16px;align-items:stretch}
 .hp-study .hp-hero-copy{align-self:center;text-align:center}
 .hp-study .hp-hero .hp-hero-copy h2{font-size:20px;line-height:1.4}
 .hp-study .hp-hero .hp-hero-copy p{font-size:15px;line-height:1.55;padding-inline-end:10px;border-inline-end:2px solid transparent}
 .hp-study .hp-search{position:static;grid-row:2}
}
/* Owner-approved phone hero gold rule, matching the reviewed preview. */
@media(max-width:600px){
 .hp-study .hp-hero .hp-hero-copy p{border-inline:0;padding-inline:0}
 .hp-study .hp-hero .hp-hero-copy h2::after{content:"";display:block;width:44px;height:2px;background:#e9bd65;margin:12px auto 0}
}

/* Approved phone search: two distinct, equal buttons; specialty selection stays in the form. */
@media(max-width:600px){
 .hp-study .hp-search-modes [data-hp-mode="need"]{display:none}
 .hp-study .hp-search-modes{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-bottom:8px}
 .hp-study .hp-search-modes [data-hp-mode="name"],.hp-study .hp-search-modes .hp-ai-link{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;width:100%;height:48px;min-height:48px;padding:8px 10px;border-radius:10px;font-size:15px;line-height:1.2;white-space:nowrap}
 .hp-study .hp-search-modes [data-hp-mode="name"]{border:1px solid #d5dce4;background:#fff;color:#061e2c;font-weight:700}
 .hp-study .hp-search-modes .hp-ai-link{border:2px solid #e9bd65;background:#061e2c;box-shadow:none}
}

/* Owner-approved desktop homepage card text emphasis; retain all existing sizes and layout. */
@media(min-width:1024px){
 .hp-study .hp-lawyers .hp-profile-card .hp-profile-specialty{color:#061e2c;font-weight:600}
 .hp-study .hp-lawyers .hp-profile-card .hp-profile-stats{color:#061e2c;font-weight:600}
 .hp-study .hp-lawyers .hp-profile-card .hp-profile-review-summary a{color:#061e2c;font-weight:600}
}

/* Owner-approved homepage field heading; preserve phone/tablet presentation. */
@media(min-width:1024px){
 .hp-study .hp-fields .hp-section-heading .hp-eyebrow{display:none}
 .hp-study .hp-fields .hp-section-heading h2{color:#ba862e}
}

/* Owner-approved removal of the small homepage legal-field label on phones only. */
@media(max-width:600px){
 .hp-study .hp-fields .hp-section-heading .hp-eyebrow{display:none}
}

/* Owner-approved desktop homepage section links: consistent visible buttons. */
@media(min-width:1024px){
 .hp-study main .hp-section-heading>a{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;gap:8px;min-height:44px;padding:10px 18px;border:1px solid #d4af37;border-radius:7px;background:#061e2c;color:#fff;font-size:16px;font-weight:700;line-height:1.4;white-space:nowrap;transition:background-color .18s,color .18s}
 .hp-study main .hp-section-heading>a .lj-icon{width:18px;height:18px}
 .hp-study main .hp-section-heading>a:hover{background:#d4af37;color:#061e2c}
 .hp-study main .hp-section-heading>a:focus-visible{outline:3px solid #ba862e;outline-offset:3px}
}
@media(min-width:1024px) and (prefers-reduced-motion:reduce){
 .hp-study main .hp-section-heading>a{transition:none}
}

/* Owner-approved phone homepage lawyer heading and matching full-width section link. */
@media(max-width:600px){
 .hp-study .hp-lawyers .hp-section-heading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;text-align:center}
 .hp-study .hp-lawyers .hp-section-heading>div{width:100%;text-align:center}
 .hp-study .hp-lawyers .hp-section-heading h2,.hp-study .hp-lawyers .hp-section-heading p{text-align:center}
 .hp-study .hp-lawyers .hp-section-heading>a{display:flex;position:static;transform:none;box-sizing:border-box;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px;padding:10px 14px;border:1px solid #d6ad5f;border-radius:7px;background:#fffaf0;color:#061e2c;font-size:15px;font-weight:750;line-height:1.55;margin:16px 0 0}
 .hp-study .hp-lawyers .hp-section-heading>a .lj-icon{width:17px;height:17px}
}

/* Owner-approved phone header: menu on the right, search on the left. */
.hp-menu-label{display:none}
@media(max-width:600px){
 .hp-header-inner{grid-template-columns:90px minmax(0,1fr) 90px}
 .hp-menu-button{grid-area:1 / 3;justify-self:end;display:flex;align-items:center;justify-content:center;direction:rtl;gap:6px;box-sizing:border-box;width:90px;min-width:90px;padding:0 8px;border:1px solid rgba(233,189,101,.65);color:#e9bd65;background:rgba(255,255,255,.07);font:inherit;font-size:15px;font-weight:700;line-height:1;white-space:nowrap}
 .hp-menu-button .lj-icon{width:21px;height:21px;flex:none}
 .hp-menu-label{display:inline}
 .hp-header-actions{grid-area:1 / 1;justify-content:flex-start;justify-self:start}
 .hp-header-actions>a[aria-label="מעבר לחיפוש"]{display:grid;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:9px;background:rgba(255,255,255,.07);color:#fff}
 .hp-header-inner>.hp-brand{max-width:100%}
 .hp-header-inner>.hp-brand img{width:100%;max-width:134px}
 .hp-menu-button:focus-visible{outline:2px solid #e9bd65;outline-offset:3px}
}
