/* IMPAX V5.6: comprehensive practices directory, navigation and footer QA. */
.v56-footer-grid{grid-template-columns:1.5fr repeat(3,minmax(0,1fr));gap:clamp(22px,3.5vw,55px)}
.v56-footer-grid>div:not(:first-child){gap:15px}
.v56-footer-grid .footer-identity p{max-width:290px}
.v56-footer-grid .footer-label{margin-bottom:11px}
.v56-footer-grid a:focus-visible,.v56-hub-industries a:focus-visible,.v4-hub-grid a:focus-visible{outline:2px solid #CC9BE8;outline-offset:4px}
.v56-contact-email-kicker{margin:28px 0 4px;font-size:10px!important;color:#897397!important;font-weight:800;letter-spacing:.15em}
.v4-hub-list .v4-hub-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#D5C9D9;border:1px solid #D5C9D9}
.v4-hub-list .v4-hub-grid .v4-practice-card{min-height:334px;background:#F1EEF2}
.v4-hub-list .v4-hub-grid .v4-practice-card:hover{background:#EBE6F0}
.v4-hub-list .v4-hub-grid .v4-practice-card h3{font-size:clamp(21px,1.75vw,27px);margin-top:72px;line-height:1.23;max-width:none;overflow-wrap:break-word}
.v4-hub-list .v4-hub-grid .v4-practice-card p{font-size:12px;line-height:1.7}
.v4-hub-list .v4-hub-grid .v4-small-link{margin-top:auto}
.v56-hub-industries{background:#EEE9F0;color:#201727;padding:100px 0 112px}
.v56-hub-sector-intro{display:grid;grid-template-columns:1.2fr .8fr;gap:58px;align-items:end;margin-bottom:42px}
.v56-kicker{font-size:10px;letter-spacing:.15em;font-weight:800;color:#886A9F}
.v56-hub-sector-intro h2{font-size:clamp(48px,5.4vw,79px);line-height:1.1;letter-spacing:-.055em;margin:24px 0 0;font-weight:600}
.v56-hub-sector-intro h2 em{font-style:normal;color:#8E70AD}
.v56-hub-sector-intro p{font-size:15px;line-height:1.9;color:#635A69;max-width:440px}
.v56-mobile-practices{font-family:'DM Sans',sans-serif!important;font-size:15px!important;color:#DCC0EF!important;letter-spacing:0!important;padding-left:18px!important}
@media(max-width:1130px){.v4-hub-list .v4-hub-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.v4-hub-list .v4-hub-grid,.v56-hub-sector-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v56-hub-sector-intro{grid-template-columns:1fr;gap:15px}.v56-footer-grid{grid-template-columns:1.4fr 1fr 1fr}.v56-footer-grid>div:last-child{grid-column:2/4}}
@media(max-width:600px){.v4-hub-list .v4-hub-grid{grid-template-columns:1fr}.v4-hub-list .v4-hub-grid .v4-practice-card{min-height:255px}.v4-hub-list .v4-hub-grid .v4-practice-card h3{margin-top:54px;font-size:28px}.v56-hub-industries{padding:73px 0}.v56-hub-sector-intro h2{font-size:clamp(41px,10.5vw,56px)}.v56-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px}.v56-footer-grid>div:first-child{grid-column:1/-1}.v56-footer-grid>div:last-child{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.v4-hub-grid a,.v56-hub-industries a{animation:none;transition:none}}
/* Preserve V5's pale premium practice cards and maintain readable contrast. */
.v4-hub-list .v4-hub-grid .v4-practice-card{background-color:#F1EEF2!important;color:#1C1427!important}
.v4-hub-list .v4-hub-grid .v4-practice-card:hover{background-color:#E9E2EE!important}
.v4-hub-list .v4-hub-grid .v4-practice-card h3{color:#191421!important}
.v4-hub-list .v4-hub-grid .v4-practice-card p{color:#5E5766!important}
.v4-hub-list .v4-hub-grid .v4-practice-card .v4-small-link{color:#544360!important}
.v4-hub-list .v4-hub-grid .v4-practice-card .v4-arrow{color:#51435D!important}
/* V5.7 review: accessible company strip, touch scrolling and edge hover. */
.company-carousel .v52-logo-grid{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scroll-behavior:auto}
.company-carousel .v52-logo{flex:0 0 24%;min-width:190px;border-right:1px solid #c7bdce;border-bottom:0}
.company-carousel-controls{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:16px;color:#453950;font-size:12px}
.company-carousel-controls button{width:44px;height:44px;border:1px solid #c7bdce;border-radius:50%;background:transparent;color:inherit;font-size:22px;cursor:pointer}
.company-carousel-controls button:disabled{opacity:.3;cursor:default}
.company-carousel-controls button:focus-visible,.company-carousel .v52-logo-grid:focus-visible{outline:2px solid #694980;outline-offset:4px}
@media(max-width:600px){.company-carousel .v52-logo{flex-basis:72%;min-width:160px}}

/* Team fields wrap safely; empty optional contacts and bios are omitted. */
.v53-person{min-width:0}.v5-person-meta h3,.v5-person-meta p,.v5-person-meta span{overflow-wrap:anywhere}.v5-person-image img{width:100%;height:100%;object-fit:cover}.team-placeholder{opacity:.55}.v5-person-meta details p{white-space:pre-line;overflow-wrap:anywhere}

/* V5.7 team grid and optional biographies */
.team-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:32px 18px;align-items:start}
.team-grid .v53-person{width:auto;min-width:0;flex:none}
.team-grid .v5-person-image{height:auto;aspect-ratio:4/5;min-height:0}
.team-grid .v5-person-monogram{font-size:clamp(28px,3.5vw,56px)}
.team-grid .v5-person-meta h3{font-size:20px;line-height:1.2}
.team-grid .v5-person-meta p,.team-grid .v5-person-meta>span{font-size:13px;line-height:1.5}
.team-grid .v53-portrait-hint,.team-grid .v5-person-image>span{font-size:9px;letter-spacing:.06em}
.team-bio{margin-top:16px;border-top:1px solid #d2d0ca;padding-top:12px;font-size:13px}
.team-bio summary,.sample-case-details summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:8px}
.team-bio summary:focus-visible,.sample-case-details summary:focus-visible{outline:2px solid currentColor;outline-offset:5px}
.team-bio[open] summary span{transform:rotate(45deg)}
.team-bio p{white-space:pre-line;overflow-wrap:anywhere;margin-top:12px}
.testimonial-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:32px}
.testimonial-card{margin:0;padding:28px;border:1px solid #d7d5cd;min-width:0}
.testimonial-card blockquote{margin:22px 0;font-size:20px;line-height:1.5;overflow-wrap:anywhere}
.testimonial-card figcaption,.sample-label{font-size:11px;line-height:1.5;letter-spacing:.05em}
.sample-case-details{margin-top:24px}.sample-case-details h4{margin:22px 0 8px}.sample-case-details p{overflow-wrap:anywhere}
@media(max-width:1199px){.team-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.team-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.testimonial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.team-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}.team-grid .v5-person-meta h3{font-size:18px}.testimonial-grid{grid-template-columns:1fr}}
