/* HEREDITAS Premium Update. Existing brand, routes, forms and consent remain authoritative. */
body.hpu-enabled {
  --gold-deep:#74551f;
  --muted:#55645b;
  --hpu-rule:#cfc7b6;
  --hpu-secondary:#cbd6ce;
}
.hpu-enabled ::selection{background:#c7a667;color:#071b17}
.hpu-enabled :is(input,textarea){caret-color:#74551f}
.hpu-enabled :is(h1,h2,h3){text-wrap:balance}
.hpu-enabled :is(a,button,summary){text-underline-offset:.25em}
.hpu-enabled .text-link::after{background:transparent}
.hpu-enabled :is(a,button,summary,input,select,textarea):focus-visible{outline:2px solid #856326;outline-offset:4px}
.hpu-enabled :is(.section--dark,.site-header,.site-footer,.video-section,.hwk,.hwk-teaser) :is(a,button,summary):focus-visible{outline-color:#e0c28a}
.hpu-enabled .site-footer .lang-switcher a{opacity:1;color:#d0d9d2}
.hpu-enabled .site-footer .lang-switcher a[aria-current=page]{color:#e0c28a}
.hpu-enabled .footer-bottom{color:#b8c6bd}
.hpu-enabled .footer-bottom span{color:#b8c6bd}
.hpu-enabled .footer-col>h3{font-family:var(--sans);font-size:12px;line-height:1.5;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#e0c28a;margin:0 0 18px}
.hpu-enabled .section--ivory :is(.kicker,.article-card__meta,.hix-card-foot,.text-link),
.hpu-enabled .hru-faq .kicker,.hpu-enabled .hix-toc .kicker,.hpu-enabled .hix-article-video .kicker{color:#74551f}
.hpu-enabled .intro-copy p:not(.lead){color:#55645b}
.hpu-enabled :is(.kicker,.article-card__meta,.hix-card-foot){font-size:12px;line-height:1.6}

/* A single language selector gives the six navigation topics room to breathe. */
body.hpu-enabled #site-header .header-actions>.lang-switcher{display:none!important}
body.hpu-enabled #site-header .hru-language{display:block}
body.hpu-enabled #site-header .header-actions{gap:12px}
body.hpu-enabled #main-nav{gap:clamp(12px,1.4vw,22px)}
body.hpu-enabled #main-nav>a{white-space:nowrap;transform:none;font-size:14px;letter-spacing:0}
body.hpu-enabled #main-nav>a:hover{transform:none}
.hpu-enabled .hru-language summary{min-width:56px;min-height:44px}
.hpu-enabled .hru-language__links a{min-height:46px}

/* Less repetition: three selected articles, followed by three compact foundation links. */
.hpu-home #articles{padding-block:76px}
.hpu-home #articles .article-grid{gap:30px 24px;align-items:stretch}
.hpu-home #articles .hix-library-heading{display:none}
.hpu-home #articles .hix-library-card{order:0;box-shadow:none}
.hpu-home #articles .hix-library-card .article-card__media{height:auto;aspect-ratio:16/10}
.hpu-home #articles .hix-library-card .article-card__body{padding:25px 24px}
.hpu-home #articles .hix-library-card h3{font-size:clamp(25px,2.3vw,33px);line-height:1.15;letter-spacing:-.02em;margin:12px 0 16px}
.hpu-home #articles .hix-library-card p{font-size:15px;line-height:1.7}
.hpu-home #articles .article-card:not(.hix-library-card){order:1;background:transparent;border:0;border-top:1px solid var(--hpu-rule);box-shadow:none;transform:none}
.hpu-home #articles .article-card:not(.hix-library-card) .article-card__media{display:none}
.hpu-home #articles .article-card:not(.hix-library-card) .article-card__body{padding:24px 0 0}
.hpu-home #articles .article-card:not(.hix-library-card) h3{font-size:24px;line-height:1.2;margin:9px 0 0}
.hpu-home #articles .article-card:not(.hix-library-card) p{display:none}

/* A visible identity for HEREDITAS, with a clear boundary around independent legal services. */
.hpu-roles{background:#f3efe6;color:#17382b;padding:56px 0;border-top:1px solid var(--hpu-rule)}
.hpu-roles h2{font-size:clamp(30px,3.3vw,44px);line-height:1.15;margin:0 0 30px}
.hpu-roles__grid{display:grid;grid-template-columns:1fr 1fr;gap:60px}
.hpu-roles__grid>div{border-top:1px solid var(--hpu-rule);padding-top:22px}
.hpu-roles h3{font-size:22px;line-height:1.3;margin:0 0 12px;letter-spacing:-.015em}
.hpu-roles p{font-size:16px;line-height:1.75;max-width:60ch;margin:0;color:#43574b}
.hpu-enabled .video-section__heading{gap:40px;margin-bottom:34px}
.hpu-enabled .video-section__heading h2{font-size:clamp(32px,3.1vw,46px);line-height:1.12}
.hpu-enabled .video-feature-card{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:44px;align-items:center;box-shadow:none}
.hpu-enabled .video-feature-card__copy{min-width:0;padding:30px 32px 30px 0}
.hpu-enabled .video-feature-card__copy h3{font-size:clamp(25px,2.5vw,36px);line-height:1.2;overflow-wrap:anywhere}
.hpu-enabled .video-feature-card__copy>p:not(.video-date){font-size:15px;line-height:1.7}
.hpu-enabled .video-feature-card .btn{font-size:13px;padding-inline:20px;letter-spacing:0}
.hpu-enabled .hpu-source-language{font-family:var(--sans);font-size:13px;line-height:1.6;color:#e0c28a;margin:12px 0 0}
.hpu-enabled .hix-article-video .hpu-source-language{color:#74551f}
.hpu-enabled .hpu-recent-videos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:30px}
.hpu-enabled .hpu-recent-videos a{display:block;border-top:1px solid #627363;padding:20px 0;color:#f3efe6;font-family:var(--serif);font-size:23px;line-height:1.3}

/* Start the task promptly, retaining every existing fee, timing and privacy statement. */
body.hpu-enabled.hpu-contact .subhero__inner{padding-top:138px;padding-bottom:34px}
body.hpu-enabled.hpu-contact .subhero .eyebrow{margin-bottom:14px}
body.hpu-enabled.hpu-contact .subhero h1{font-size:clamp(34px,4.1vw,54px);line-height:1.12}
body.hpu-enabled.hpu-contact .subhero p{font-size:16px;line-height:1.65;max-width:76ch;margin-top:18px}
body.hpu-enabled.hpu-contact .form-panel{padding:38px clamp(24px,3vw,48px)}
body.hpu-enabled.hpu-contact .hru-form-title{font-size:clamp(30px,3.3vw,43px);margin-bottom:10px}
body.hpu-enabled.hpu-contact .hru-contact-info{padding:18px 0;margin:20px 0 24px;border:0;border-top:1px solid #c4b99f;border-bottom:1px solid #c4b99f;background:transparent}
body.hpu-enabled.hpu-contact .hru-contact-info h3{font-size:20px;line-height:1.3;margin:0 0 10px}
body.hpu-enabled.hpu-contact :is(.hru-contact-info,.hpu-contact-expectations) p{font-size:14px;line-height:1.6;margin-bottom:14px}
body.hpu-enabled.hpu-contact :is(.hru-contact-info,.hpu-contact-expectations) dl{display:grid;grid-template-columns:minmax(130px,.52fr) minmax(0,1fr);gap:8px 18px}
body.hpu-enabled.hpu-contact :is(.hru-contact-info,.hpu-contact-expectations) dt{margin:0;font-size:13px;line-height:1.6}
body.hpu-enabled.hpu-contact :is(.hru-contact-info,.hpu-contact-expectations) dd{margin:0;font-size:14px;line-height:1.6;white-space:normal}
body.hpu-enabled.hpu-contact .hru-contact-info .hpu-contact-facts{font-size:14px;font-weight:650;color:#254534;margin:0 0 12px}
.hpu-enabled .hpu-contact-expectations summary{display:flex;align-items:center;justify-content:space-between;gap:18px;cursor:pointer;list-style:none;min-height:44px}
.hpu-enabled .hpu-contact-expectations summary::-webkit-details-marker{display:none}
body.hpu-enabled.hpu-contact .hpu-contact-expectations summary h3{display:inline;font-family:var(--sans);font-size:14px;line-height:1.5;font-weight:600;margin:0}
.hpu-enabled .hpu-contact-expectations summary::after{content:'';width:8px;height:8px;flex-shrink:0;border-bottom:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(45deg);margin-inline-end:4px}
.hpu-enabled .hpu-contact-expectations[open] summary::after{transform:rotate(225deg)}
.hpu-enabled .hpu-contact-expectations[open]>div{padding-top:14px}
body.hpu-enabled.hpu-contact .form-visual__copy{min-width:0;width:100%;max-width:100%;padding:clamp(24px,4vw,54px)}
body.hpu-enabled.hpu-contact .form-visual__copy h2{font-size:clamp(32px,3.6vw,46px);line-height:1.12;overflow-wrap:anywhere;hyphens:auto}
.hpu-enabled .form-visual .contact-details a{color:#eed7a9;overflow-wrap:anywhere;min-width:0}
.hpu-enabled .form-visual .contact-details__label{color:#d7dfd9}
.hpu-enabled .form-panel :is(input,select,textarea){border-color:#a89f8a}
.hpu-enabled .form-panel :is(input,textarea)::placeholder{color:#56645b;opacity:1}
body.hpu-enabled.hpu-contact #hereditas-form{scroll-margin-top:116px}
body.hpu-enabled.hpu-contact.admin-bar #hereditas-form{scroll-margin-top:148px}

@media(max-width:1180px){
  body.hpu-enabled #main-nav.is-open>a{white-space:normal;font-size:16px;min-height:50px}
  .hpu-enabled .video-feature-card{gap:24px}
  .hpu-enabled .video-feature-card__copy{padding:24px 24px 24px 0}
}
@media(max-width:900px){
  .hpu-roles__grid{gap:30px}
  body.hpu-enabled.hpu-contact .form-layout{display:flex;flex-direction:column}
  body.hpu-enabled.hpu-contact .form-panel{order:-1;width:100%}
  body.hpu-enabled.hpu-contact .form-visual{min-height:480px}
  .hpu-enabled .video-feature-card{grid-template-columns:1fr;gap:0}
  .hpu-enabled .video-feature-card__copy{padding:26px}
  .hpu-enabled .video-feature-card__copy h3{max-width:44ch}
}
@media(max-width:620px){
  .hpu-enabled :is(.kicker,.article-card__meta,.hix-card-foot){font-size:11px}
  .hpu-home #articles{padding-block:50px}
  .hpu-home #articles .article-grid{gap:22px}
  .hpu-home #articles .hix-library-card .article-card__media{aspect-ratio:16/8}
  .hpu-home #articles .hix-library-card .article-card__body{padding:22px}
  .hpu-home #articles .hix-library-card h3{font-size:28px}
  .hpu-home #articles .article-card:not(.hix-library-card) .article-card__body{padding-top:18px}
  .hpu-home #articles .article-card:not(.hix-library-card) h3{font-size:23px}
  .hpu-home .hru-three-steps .process-item{padding:22px}
  .hpu-home .hru-three-steps h3{font-size:28px}
  .hpu-roles{padding-block:42px}
  .hpu-roles h2{font-size:32px;margin-bottom:24px}
  .hpu-roles__grid{grid-template-columns:1fr;gap:24px}
  .hpu-enabled .hpu-recent-videos{grid-template-columns:1fr;gap:8px}
  .hpu-roles h3{font-size:22px}
  .hpu-roles p{font-size:15px}
  .hpu-enabled .video-section__heading{gap:20px;margin-bottom:26px}
  .hpu-enabled .video-feature-card__copy h3{font-size:28px;line-height:1.18}
  .hpu-enabled .video-feature-card__copy{padding:24px 20px}
  .hpu-enabled .video-feature-card__copy .btn{width:100%;white-space:normal}
  body.hpu-enabled.hpu-contact .subhero__inner{padding:105px 0 24px}
  body.hpu-enabled.hpu-contact .subhero .breadcrumbs{margin-bottom:18px}
  body.hpu-enabled.hpu-contact .subhero h1{font-size:34px}
  body.hpu-enabled.hpu-contact .subhero p{font-size:14px;line-height:1.6;margin-top:14px}
  body.hpu-enabled.hpu-contact .form-panel{padding:28px 18px}
  body.hpu-enabled.hpu-contact .hru-form-title{font-size:32px;margin-bottom:8px}
  body.hpu-enabled.hpu-contact .hru-contact-info{margin:16px 0 20px;padding-block:15px}
  body.hpu-enabled.hpu-contact .hru-contact-info h3{font-size:19px}
  body.hpu-enabled.hpu-contact :is(.hru-contact-info,.hpu-contact-expectations) dl{grid-template-columns:minmax(96px,.45fr) minmax(0,1fr);gap:9px 12px}
  body.hpu-enabled.hpu-contact :is(.hru-contact-info,.hpu-contact-expectations) dt{font-size:12px}
  body.hpu-enabled.hpu-contact :is(.hru-contact-info,.hpu-contact-expectations) dd{font-size:13px}
  body.hpu-enabled.hpu-contact .form-visual__copy{padding:28px 20px}
  body.hpu-enabled.hpu-contact .whatsapp-float{visibility:hidden;pointer-events:none}
  body.hpu-enabled.hpu-contact #hereditas-form{scroll-margin-top:84px}
  body.hpu-enabled.hpu-contact.admin-bar #hereditas-form{scroll-margin-top:130px}
}
@media(prefers-reduced-motion:reduce){html:has(body.hpu-enabled){scroll-behavior:auto!important}.hpu-enabled *{scroll-behavior:auto!important}}
