/* HEREDITAS — light lawyer profiles. Load after site.css.
   The Wronski root is .hwk; Knap and Bialkowska add individual classes.
   Excluding .hwk-directory keeps this refinement inside the three profiles. */
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory){
 --ivory:#17382b;
 --muted:#43574b;
 --gold:#74551f;
 --line:#cfc7b6;
 background:#f3efe6;
 color:#17382b;
 scrollbar-color:#8c805d #f3efe6;
}

/* Paper surfaces retain the established sections and portrait compositions. */
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) :is(.hwk-hero,.hwk-expertise,.hwk-office,.hwk-return){background:#f3efe6}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) :is(.hwk-partnership,.hwk-profile,.hwk-knap-profile,.hwk-hereditas-support){background:#fbf9f4}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-hereditas-support+.hwk-partnership{background:#f3efe6;border-top:1px solid #cfc7b6}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-local-nav{background:#e8dfd0;border-color:#cfc7b6}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-contact{background:#e8dfd0;border-color:#cfc7b6}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) :is(h1,h2,h3,.hwk-lead,.hwk-timeline dd,.hwk-lawyer-contact dd){color:#17382b}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) :is(h1 em,h2 em,.hwk-hero-role,.hwk-timeline dt,.hwk-support-roles h3){color:#74551f}

/* Explicit overrides cover the fixed pale colors in the previous site layer. */
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) :is(.hwk-hero-description,.hwk-hero-proof,.hwk-fineprint,.hwk-breadcrumbs,.hwk-section-head>p,.hwk-section-head>div,.hwk-support-intro,.hwk-support-note,.hwk-contact-note){color:#43574b}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-breadcrumbs>span:last-child{color:#17382b}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-hero-photo figcaption{color:#17382b}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-hero-photo figcaption>span:last-child{color:#55645b}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) :is(.hwk-hero-photo b,.hwk-profile-grid figcaption span,.hwk-lawyer-contact dt,.hwk-office-address){color:#74551f}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) :is(.hwk-hero-photo figcaption,.hwk-hero-photo figcaption>span:last-child,.hwk-office-photos figcaption,.hwk-profile-grid figcaption span){font-size:13px;line-height:1.65}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-hero-photo b{font-size:15px}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-profile-grid figcaption{flex-wrap:wrap;row-gap:8px}

/* Long explanations, captions and contact details remain readable on paper. */
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) :where(.hwk-partnership-grid>div>p:not(.hwk-lead),.hwk-roles p,.hwk-profile-copy>p:not(.hwk-lead),.hwk-practice-body>p,.hwk-support-grid p,.hwk-support-roles p){font-size:16px;line-height:1.75;color:#43574b}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) :is(.hwk-fineprint,.hwk-roles .hwk-fineprint,.hwk-scope-note p,.hwk-support-note,.hwk-contact-note,.hwk-lawyer-contact .hwk-languages){font-size:13px;line-height:1.75;color:#55645b}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-practice-list summary p{font-size:16px;line-height:1.65;color:#17382b}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-practice-body{margin-top:14px}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-timeline dd{font-size:14px;line-height:1.75}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-lawyer-contact dt{font-size:13px;line-height:1.6}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-lawyer-contact dd{font-size:15px;line-height:1.75}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-lawyer-contact>p{font-size:14px;line-height:1.75}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-contact-intro>p:not(.hwk-contact-note){font-size:16px;line-height:1.75;color:#43574b}

/* Primary actions use forest green; external firm visits are secondary. */
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-button{
 min-height:54px;
 background:#0b281f;
 border:1px solid #0b281f;
 color:#fbf9f4;
 font-size:14px;
 line-height:1.5;
 text-decoration:none;
}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-button:hover{background:#17382b;border-color:#17382b;color:#fbf9f4;transform:none}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-lawyer-contact>.hwk-button{background:transparent;border-color:#17382b;color:#17382b}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-lawyer-contact>.hwk-button:hover{background:#17382b;color:#fbf9f4}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-text-link{color:#74551f;font-size:14px;line-height:1.6;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-text-link:hover{color:#17382b;text-decoration-thickness:2px}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-breadcrumbs a{display:inline-flex;align-items:center;min-height:44px}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-local-nav a{color:#17382b}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-local-nav a:last-child{color:#74551f}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) :is(.hwk-local-nav a,.hwk-breadcrumbs a):hover{color:#74551f;text-decoration:underline;text-decoration-thickness:1px}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) :is(.hwk-hereditas-contact a,.hwk-lawyer-contact dd a){min-height:44px;display:inline-flex;align-items:center;color:#17382b;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-lawyer-contact dd a{display:flex}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) :is(.hwk-hereditas-contact a,.hwk-lawyer-contact dd a):hover{color:#74551f}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-practice-list summary:hover h3{color:#74551f}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) :is(a,button,summary,input,select,textarea):focus-visible{outline:2px solid #856326;outline-offset:5px}
body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) ::selection{background:#e0c28a;color:#0b281f}

/* Preserve the native mobile portrait order and fit long action labels. */
@media(max-width:640px){
 body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-breadcrumbs{padding-block:10px 20px;margin-bottom:24px}
 body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-local-nav a:nth-child(4){display:inline-flex}
 body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-actions{align-items:stretch;gap:8px 24px}
 body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-actions>.hwk-button{width:100%}
 body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-button{max-width:100%;padding:15px 18px;gap:16px;font-size:14px}
 body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-contact .hwk-button{width:100%}
 body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) :where(.hwk-partnership-grid>div>p:not(.hwk-lead),.hwk-roles p,.hwk-profile-copy>p:not(.hwk-lead),.hwk-practice-body>p,.hwk-support-grid p,.hwk-support-roles p){font-size:15px}
 body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-contact-intro>p:not(.hwk-contact-note){font-size:15px}
 body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-roles .hwk-fineprint{font-size:13px}
 body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-practice-list summary p{font-size:15px}
 body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-scope-note .hwk-text-link{white-space:normal}
 body.hpu-enabled.hwk-page .hwk:not(.hwk-directory) .hwk-lawyer-contact{border-color:#cfc7b6}
}
