/* October 30 QA. Shared frontend/editor rules; no percentage-based card cuts. */
:is(body.rrgs-editorial,.editor-styles-wrapper) .prm-results-featured .rrgs-result-card {
 --prm-result-cut-top-inline:36px; --prm-result-cut-top-block:28px;
 clip-path:polygon(var(--prm-result-cut-top-inline) 0,100% 0,100% calc(100% - var(--prm-result-cut-block,32px)),calc(100% - var(--prm-result-cut-inline,56px)) 100%,0 100%,0 var(--prm-result-cut-top-block));
}
:is(body.rrgs-editorial,.editor-styles-wrapper) .prm-results-featured .rrgs-result-card::before {
 background:var(--prm-result-background,linear-gradient(180deg,#385f96,#112746)); clip-path:none;
}
:is(body.rrgs-editorial,.editor-styles-wrapper) .prm-inner .prm-results-featured .rrgs-result-card .rrgs-result-card__link {clip-path:none}
body.rrgs-editorial .ed-header .ed-contact-link:is(:hover,:focus-visible) > span[aria-hidden=true] {color:#fff;filter:brightness(0) invert(1)}
/* A fixed drawer must keep its masthead in the same viewport coordinate system. */
@media not all and (min-width:1200px) {
 html.prm-menu-open-110 body {position:fixed;top:var(--prm-menu-scroll-y,0);left:0;width:100%;overflow:hidden}
 html.prm-menu-open-110 body.rrgs-editorial .ed-header {position:fixed;inset:0 0 auto;transform:none;z-index:100050;width:100%}
 html.prm-menu-open-110 body.rrgs-editorial .ed-header .ed-nav.is-open {position:fixed;inset:0;width:100%;height:100vh;height:100dvh;max-height:none;box-sizing:border-box;padding:calc(var(--prm-mobile-header-height,96px) + 20px) 20px max(32px,env(safe-area-inset-bottom));overflow-y:auto;z-index:1}
 html.prm-menu-open-110 body.rrgs-editorial .ed-header .ed-logo {position:relative;z-index:2;visibility:visible;opacity:1}
 html.prm-menu-open-110 body.rrgs-editorial .ed-header .ed-menu-toggle {position:relative;z-index:3;visibility:visible;opacity:1}
 html.prm-menu-open-110 body.admin-bar {--prm-menu-admin-offset:46px}
 html.prm-menu-open-110 body.admin-bar .ed-header {top:var(--prm-menu-admin-offset)}
 html.prm-menu-open-110 body.admin-bar .ed-header .ed-nav.is-open {padding-top:calc(var(--prm-mobile-header-height,96px) + var(--prm-menu-admin-offset) + 20px)}
}
@media (min-width:783px) {html.prm-menu-open-110 body.admin-bar {--prm-menu-admin-offset:32px}}
/* Preserve visible keyboard focus on controls; initial focus announces the heading. */
.prm-call-modal h2[tabindex='-1']:focus {outline:none}
/* Optional semantic hook for reusable results pages. */
:is(body.rrgs-editorial,.editor-styles-wrapper) .prm-results-page .prm-consultation {padding-bottom:var(--prm-results-footer-clearance,185px)}

/* Shared October 30 follow-up. Native blocks and their content remain editable. */
body.rrgs-editorial.ed-js .ed-header .ed-nav.rrgs-nav-disclosure li.ed-has-submenu {display:block;padding-right:0;position:relative}
body.rrgs-editorial .ed-header .ed-nav.rrgs-nav-disclosure .ed-submenu-label {
 display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;
 margin:0;padding:12px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#fff;
 font-family:inherit;font-size:16px;font-weight:inherit;line-height:1.4;text-align:left;text-transform:none;cursor:pointer;
}
body.rrgs-editorial .ed-header .ed-nav.rrgs-nav-disclosure .ed-submenu-label::after {content:"";flex:none;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .15s}
body.rrgs-editorial .ed-header .ed-nav.rrgs-nav-disclosure .ed-submenu-label[aria-expanded=true]::after {transform:rotate(225deg)}
body.rrgs-editorial .ed-header .ed-nav.rrgs-nav-disclosure .ed-submenu-label:focus-visible {outline:2px solid var(--ed-gold,#e5a541);outline-offset:-2px}
body.rrgs-editorial .ed-header .ed-nav.rrgs-nav-disclosure li > .sub-menu[hidden] {display:none!important}
body.rrgs-editorial .ed-header .ed-nav.rrgs-nav-disclosure li > .sub-menu:not([hidden]) {display:block;visibility:visible;opacity:1;pointer-events:auto}
body.rrgs-editorial .ed-header .ed-nav.rrgs-nav-disclosure .sub-menu .sub-menu {position:static;inset:auto;width:auto;min-width:0;max-height:none;margin:0;padding:0 0 0 12px;border-left:1px solid #ffffff38;box-shadow:none}
@media(min-width:992px){
 body.rrgs-editorial.prm-navigation-managed .ed-header .ed-nav.rrgs-nav-disclosure > ul > li > .ed-submenu-label {padding:12px 0;font-size:14px;white-space:nowrap}
 body.rrgs-editorial.prm-navigation-managed .ed-header .ed-nav.rrgs-nav-disclosure > ul > li > .sub-menu {position:absolute;top:100%;left:0;width:280px;min-width:0;max-width:calc(100vw - 32px);max-height:calc(100dvh - var(--prm-mobile-header-height,96px) - 16px);overflow-y:auto;padding:12px;box-sizing:border-box}
}
@media(min-width:1200px){body.rrgs-editorial .ed-header .ed-nav.rrgs-nav-disclosure > ul > li > .ed-submenu-label {padding:12px 0;font-size:16px;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){body.rrgs-editorial .ed-header .ed-nav.rrgs-nav-disclosure .ed-submenu-label::after{transition:none}}

/* The four-column layout becomes a carousel at its existing 1200px breakpoint. */
@media not all and (min-width:1200px){
 body.rrgs-editorial .prm-home-reviewed .ed-results .ed-four-grid {display:flex;flex-wrap:nowrap;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0;padding:0;scrollbar-width:none}
 body.rrgs-editorial .prm-home-reviewed .ed-results .ed-four-grid > .ed-result-card {display:flex;flex-direction:column;grid-row:auto;flex:0 0 calc((100% - 20px)/2);width:calc((100% - 20px)/2);max-width:none;min-width:0;scroll-snap-align:start;margin:0}
 body.rrgs-editorial .prm-home-reviewed .prm-results-controls:not([hidden]) {display:flex;align-items:center;justify-content:center;gap:12px;margin-top:20px}
 body.rrgs-editorial .prm-home-reviewed .prm-results-controls > button {display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;color:var(--ed-gold,#e5a541);font:38px/1 Arial;cursor:pointer}
}
@media not all and (min-width:768px){body.rrgs-editorial .prm-home-reviewed .ed-results .ed-four-grid > .ed-result-card {flex-basis:100%;width:100%}}
body.rrgs-editorial .prm-home-reviewed .prm-results-controls[hidden]{display:none!important}
/* Reserve one shared control row. The link remains its original Paragraph block. */
body.rrgs-editorial .ed-team .rrgs-team-block {padding-bottom:0;margin-bottom:0}
body.rrgs-editorial .ed-team .rrgs-team-slider {padding-bottom:64px}
body.rrgs-editorial .ed-team .rrgs-team-slider > .splide__arrows {inset:auto auto 0 0;height:48px;margin:0;gap:6px}
body.rrgs-editorial .ed-team .rrgs-team-slider > .splide__arrows > button {width:44px;height:48px;min-width:44px;position:static;transform:none}
body.rrgs-editorial .ed-team .ed-text-link {position:relative;z-index:2;display:flex;align-items:center;justify-content:flex-end;min-height:48px;width:fit-content;max-width:calc(100% - 112px);margin:-48px 0 0 auto!important;padding:0;line-height:1.4}
body.rrgs-editorial .ed-team .ed-text-link a {display:inline-flex;align-items:center;min-height:48px;font-size:clamp(13px,1.2vw,18px);text-decoration:none}

/* Avoid disabling sticky positioning solely because a laptop has a short screen. */
@media(min-width:1000px){
 body.rrgs-editorial .prm-inner.prm-practice-v4,body.rrgs-editorial .prm-inner.prm-practice-v4 .prm-main-grid {overflow:visible}
 body.rrgs-editorial .prm-inner.prm-practice-v4 .prm-main-grid > .prm-sidebar {align-self:stretch;overflow:visible}
 body.rrgs-editorial .prm-inner.prm-practice-v4 .prm-main-grid > .prm-sidebar > :is(.prm-practice-team,.prm-motor-team) {position:sticky;top:var(--prm-sticky-top,150px);max-height:none;overflow:visible;overscroll-behavior:auto}
}
/* Primary form button treatment; no submission, field, lead or CAPTCHA changes. */
body.rrgs-editorial #main .gform_wrapper .gform_footer button.gform_button:is(:hover,:focus-visible) {background:var(--ed-navy,#152f54)!important;color:#fff!important;border-color:var(--ed-gold,#e5a541)!important;box-shadow:inset 0 0 0 1px var(--ed-gold,#e5a541);text-decoration:none}
body.rrgs-editorial #main .gform_wrapper .gform_footer button.gform_button:is(:hover,:focus-visible)::after {filter:brightness(0) invert(1)}
/* Readable copy on the left, visible photography on the right. Editable via Group controls. */
:is(body.rrgs-editorial,.editor-styles-wrapper) .prm-inner.prm-motor-page .prm-practice-hero.prm-practice-hero::after {background:var(--prm-practice-hero-overlay,linear-gradient(90deg,rgba(0,0,0,.64),rgba(0,0,0,.18)))}

body.rrgs-editorial .prm-inner.prm-practice-v4 .prm-main-grid > .prm-sidebar > .rrgs-sticky-disabled {position:static}
body.rrgs-editorial .prm-home-reviewed .ed-results .ed-four-grid.rrgs-results-static {display:grid;overflow:visible}
body.rrgs-editorial .prm-home-reviewed .ed-results .ed-four-grid.rrgs-results-static > .ed-result-card {width:auto;max-width:none}

/* PRM 1.18: full team photo, editorial contrast, and footer clearance. */
:is(body.rrgs-editorial,.editor-styles-wrapper) .prm-inner.prm-videos-page.prm-editorial-112 > .prm-shallow-hero::after {
  background:var(--prm-practice-hero-overlay,rgba(17,39,70,.48));
}

@media not all and (min-width:768px) {
  .editor-styles-wrapper .prm-inner .prm-team-hero:not(.rrgs-team-photo-crop) > .prm-backdrop {
    height:auto!important;width:100%!important;margin:0!important;
  }
  .editor-styles-wrapper .prm-inner .prm-team-hero:not(.rrgs-team-photo-crop) > .prm-backdrop img {height:auto!important;object-fit:contain;}
}
@media (min-width:992px) and (max-width:1199.98px) {
  body.rrgs-editorial:not(.prm-navigation-managed):not(.rrgs-static-header) .ed-header,
  html.prm-menu-open-110 body.rrgs-editorial:not(.prm-navigation-managed) .ed-header {
    top:calc(var(--prm-admin-offset,0px) + var(--cj-viewport-offset,0px));padding-top:env(safe-area-inset-top,0px);
  }
  html.prm-menu-open-110 body.rrgs-editorial:not(.prm-navigation-managed) .ed-header .ed-nav.is-open {
    top:var(--cj-viewport-offset,0px);height:var(--cj-viewport-height,100dvh);
  }
}
:is(body.rrgs-editorial,.editor-styles-wrapper) .prm-inner .prm-container.prm-section.prm-legal {
  padding-bottom:var(--prm-footer-clearance,128px);
}
:is(body.rrgs-editorial,.editor-styles-wrapper) .prm-inner .prm-container.prm-section.prm-message {
  padding-bottom:var(--prm-footer-clearance,128px);
}
@media not all and (min-width:768px) {
  :is(body.rrgs-editorial:not(.home),.editor-styles-wrapper) .prm-inner .prm-photo-section.prm-team-hero:not(.rrgs-team-photo-crop) {
    display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;
    min-height:0;height:auto;padding:0;gap:0;
  }
  :is(body.rrgs-editorial:not(.home),.editor-styles-wrapper) .prm-inner .prm-photo-section.prm-team-hero:not(.rrgs-team-photo-crop) > .prm-backdrop {
    position:relative!important;inset:auto;width:100%;height:auto;max-width:none;margin:0;opacity:1;z-index:auto;
  }
  :is(body.rrgs-editorial:not(.home),.editor-styles-wrapper) .prm-inner .prm-photo-section.prm-team-hero:not(.rrgs-team-photo-crop) > .prm-backdrop img {
    display:block;position:static;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:center;
  }
  :is(body.rrgs-editorial:not(.home),.editor-styles-wrapper) .prm-inner .prm-photo-section.prm-team-hero:not(.rrgs-team-photo-crop)::after {content:none;}
  :is(body.rrgs-editorial:not(.home),.editor-styles-wrapper) .prm-inner .prm-photo-section.prm-team-hero:not(.rrgs-team-photo-crop) h1 {
    margin:0;padding:18px 20px 22px;width:100%;box-sizing:border-box;background:var(--prm-navy,#112746);
    font-size:clamp(32px,9vw,44px);line-height:1.15;
  }
}

/* Follow the visible viewport while mobile browser chrome expands/collapses. */
@media not all and (min-width:992px) {
  body.rrgs-editorial:not(.rrgs-static-header) .ed-header,
  html.prm-menu-open-110 body.rrgs-editorial .ed-header {
    top:calc(var(--prm-admin-offset,0px) + var(--cj-viewport-offset,0px));
    padding-top:env(safe-area-inset-top,0px);
  }
  html.prm-menu-open-110 body.rrgs-editorial .ed-header .ed-nav.is-open {
    top:var(--cj-viewport-offset,0px);
    height:var(--cj-viewport-height,100dvh);
  }
}
/* End PRM 1.18. */

/* Keep the homepage subtitle on the configured brand gold. */
:is(body.rrgs-editorial,.editor-styles-wrapper) .prm-home-reviewed #practice-areas > .ed-container > .ed-kicker {
  color:var(--ed-gold,#e5a541);
}
/* A single clipped card owns the angled corner; its CTA fills the same edge. */
@media not all and (min-width:1200px) {
  :is(body.rrgs-editorial,.editor-styles-wrapper) .prm-home-reviewed .ed-results .ed-four-grid > .ed-result-card {
    display:flex;flex-direction:column;box-sizing:border-box;padding:30px 24px 0;
    clip-path:polygon(28px 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%,0 28px);
  }
  :is(body.rrgs-editorial,.editor-styles-wrapper) .prm-home-reviewed .ed-results .ed-four-grid > .ed-result-card > p:last-child {
    box-sizing:border-box;margin:auto -24px 0;padding:0;width:calc(100% + 48px);max-width:none;min-height:48px;
    margin-block-start:auto!important;align-self:stretch;clip-path:none;line-height:1.25;
  }
  :is(body.rrgs-editorial,.editor-styles-wrapper) .prm-home-reviewed .ed-results .ed-four-grid > .ed-result-card::before {clip-path:none;}
  :is(body.rrgs-editorial,.editor-styles-wrapper) .prm-home-reviewed .ed-results .ed-four-grid > .ed-result-card > p:last-child a {
    box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;
    margin:0;padding:12px 28px;clip-path:none;line-height:1.25;
  }
}

/* The Motor Vehicle source artwork already contains its dark treatment. */
:is(body.rrgs-editorial,.editor-styles-wrapper) .prm-motor-page .prm-practice-hero { --prm-practice-hero-overlay:linear-gradient(90deg,transparent,transparent); }

/* 1.19: mobile overlays, visible browser viewport and full-width result CTAs. */
.cj-mobile-header-space[hidden] {display:none!important}
.cj-mobile-header-space {display:block;flex:none;width:100%;margin:0;padding:0;pointer-events:none}
html.cj-mobile-header-fixed body.rrgs-editorial .ed-header {
 position:fixed;inset:auto 0 auto;top:calc(var(--prm-admin-offset,0px) + var(--cj-viewport-offset,0px));
 width:100%;box-sizing:border-box;margin:0;transform:none;z-index:100050;
 padding-top:env(safe-area-inset-top,0px);
}
/* Include the ownership/JS classes: old navigation rules must not override these insets. */
html.prm-menu-open-110 body.rrgs-editorial.prm-navigation-managed.ed-js .ed-header .ed-nav.is-open,
html.prm-menu-open-110 body.rrgs-editorial:not(.prm-navigation-managed).ed-js .ed-header .ed-nav.is-open {
 position:fixed;inset:var(--cj-viewport-offset,0px) 0 auto;
 width:100%;height:100vh;height:var(--cj-viewport-height,100dvh);max-height:none;
 margin:0;box-sizing:border-box;
 padding:calc(var(--prm-mobile-header-height,96px) + var(--prm-admin-offset,0px) + 20px) max(20px,env(safe-area-inset-right)) max(32px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));
 overflow-y:auto;overscroll-behavior:contain;z-index:1;
}
html.prm-menu-open-110 body.rrgs-editorial .ed-header .ed-mast {position:relative;isolation:isolate}
html.prm-menu-open-110 body.rrgs-editorial .ed-header :is(.ed-logo,.ed-menu-toggle) {visibility:visible;opacity:1;transform:none}
body.rrgs-editorial dialog.prm-call-modal[open] {
 inset:var(--cj-viewport-offset,0px) 0 auto;height:100vh;height:var(--cj-viewport-height,100dvh);
}
/* Pointer focus stays subtle; Tab focus is retained for keyboard users. */
body.rrgs-editorial .prm-call-modal :is(a,button):focus:not(:focus-visible) {outline:none;box-shadow:none}
body.rrgs-editorial .prm-call-modal h2[tabindex='-1']:focus {outline:none;box-shadow:none}

@media not all and (min-width:1200px) {
 :is(body.rrgs-editorial.prm-navigation-managed,body.rrgs-editorial,.editor-styles-wrapper) .prm-home-reviewed .ed-results .ed-four-grid > .ed-result-card {
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr auto;
  align-items:start;gap:0;padding:30px 0 0;box-sizing:border-box;
  -webkit-clip-path:polygon(28px 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%,0 28px);
  clip-path:polygon(28px 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%,0 28px);
 }
 :is(body.rrgs-editorial.prm-navigation-managed,body.rrgs-editorial,.editor-styles-wrapper) .prm-home-reviewed .ed-results .ed-four-grid > .ed-result-card > :not(:last-child) {
  margin-inline:24px;min-width:0;
 }
 :is(body.rrgs-editorial.prm-navigation-managed,body.rrgs-editorial,.editor-styles-wrapper) .prm-home-reviewed .ed-results .ed-four-grid > .ed-result-card > p:last-child {
  align-self:end;justify-self:stretch;width:100%;max-width:none;min-width:0;min-height:48px;
  margin:0;margin-block-start:0!important;padding:0;line-height:1.25;
  -webkit-clip-path:none;clip-path:none;
 }
 :is(body.rrgs-editorial.prm-navigation-managed,body.rrgs-editorial,.editor-styles-wrapper) .prm-home-reviewed .ed-results .ed-four-grid > .ed-result-card > p:last-child a {
  display:flex;box-sizing:border-box;align-items:center;justify-content:center;
  width:100%;max-width:none;min-height:48px;margin:0;padding:12px 28px;line-height:1.25;
  -webkit-clip-path:none;clip-path:none;
 }
}
@media print {
 html.cj-mobile-header-fixed body.rrgs-editorial .ed-header {position:static;inset:auto}
 .cj-mobile-header-space {display:none!important}
}

/* Reviewed 1.21: one configurable overlay, balanced result copy, aligned team controls. */
:is(body.rrgs-editorial,.editor-styles-wrapper) .prm-inner.prm-practice-v4 .prm-photo-section.prm-practice-hero.prm-practice-hero::after {
 background:var(--prm-practice-hero-overlay,linear-gradient(90deg,rgba(0,0,0,.38),rgba(0,0,0,0)));
}
:is(body.rrgs-editorial,.editor-styles-wrapper) .prm-inner.prm-practice-v4 .prm-photo-section.prm-practice-hero.prm-practice-hero {
 --prm-practice-hero-overlay:linear-gradient(90deg,rgba(0,0,0,.38),rgba(0,0,0,0));
}
:is(body.rrgs-editorial,.editor-styles-wrapper) .prm-inner.prm-videos-page.prm-editorial-112 > .prm-shallow-hero.prm-shallow-hero::after {
 background:var(--prm-practice-hero-overlay,rgba(17,39,70,.78));
}
:is(body.rrgs-editorial.prm-navigation-managed,body.rrgs-editorial,.editor-styles-wrapper) .prm-home-reviewed .ed-results .ed-four-grid > .ed-result-card > :is(h3,p:not(:last-child)) {
 box-sizing:border-box;width:auto;max-width:none;align-self:stretch;justify-self:stretch;text-align:center;
}
:is(body.rrgs-editorial.prm-navigation-managed,body.rrgs-editorial,.editor-styles-wrapper) .prm-home-reviewed .ed-team > .ed-container {
 box-sizing:border-box;padding-inline:clamp(20px,4vw,60px);
}
:is(body.rrgs-editorial,.editor-styles-wrapper) .prm-home-reviewed .ed-team .rrgs-team-block .rrgs-container {padding-inline:0;margin-inline:0;width:100%;max-width:none}
:is(body.rrgs-editorial,.editor-styles-wrapper) .prm-home-reviewed .ed-team .ed-text-link {box-sizing:border-box;padding-inline:0;max-width:calc(100% - 112px)}
@media not all and (min-width:768px) {
 :is(body.rrgs-editorial:not(.home),.editor-styles-wrapper) .prm-inner .prm-photo-section.prm-team-hero.rrgs-team-photo-fade:not(.rrgs-team-photo-crop) {background:#000}
 :is(body.rrgs-editorial:not(.home),.editor-styles-wrapper) .prm-inner .prm-photo-section.prm-team-hero.rrgs-team-photo-fade:not(.rrgs-team-photo-crop) > .prm-backdrop::after {
  content:'';position:absolute;inset:auto 0 0;height:54%;background:linear-gradient(to top,#000,transparent);pointer-events:none;
 }
 :is(body.rrgs-editorial:not(.home),.editor-styles-wrapper) .prm-inner .prm-photo-section.prm-team-hero.rrgs-team-photo-fade:not(.rrgs-team-photo-crop) h1 {background:#000;min-height:57px}
}
