/* New asset for explicitly allowlisted commercial HTML only. Existing assets stay intact. */
/* Screen rules preserve the established printable guide/document layout. */
@media screen {
  body[data-gdf-shell="20261102"] {
    --gdf-shell-width: 1280px;
    --gdf-shell-gutter: 24px;
    --gdf-shell-utility-height: 56px;
    --container: 1280px;
    --gutter: 24px;
    --practice-utility-h: 56px;
    --practice-navigation-h: 88px;
    --masthead-height: 144px;
  }

  /* Annotate only existing structural containers, never inner cards or paragraphs. */
  body[data-gdf-shell="20261102"] [data-gdf-rail] {
    box-sizing: border-box;
    width: 100% !important;
    max-width: var(--gdf-shell-width) !important;
    margin-inline: auto !important;
    padding-inline: var(--gdf-shell-gutter) !important;
  }
  body[data-gdf-shell="20261102"] [data-gdf-rail] [data-gdf-rail] {
    max-width: none !important;
    padding-inline: 0 !important;
  }
  body[data-gdf-shell="20261102"] main [data-gdf-rail] > * { min-width: 0; }
  body[data-gdf-shell="20261102"] main :is(.prose, .article-body, .section-head) {
    margin-inline: 0;
    text-align: left;
  }
  body[data-gdf-shell="20261102"] main :is(.prose, .article-body) { max-width: none; }
  body[data-gdf-shell="20261102"] main :is(.prose, .article-body) > :is(p, ul, ol),
  body[data-gdf-shell="20261102"] main [data-gdf-rail] > p,
  body[data-gdf-shell="20261102"] main [data-gdf-rail] > .section-head,
  body[data-gdf-shell="20261102"] main .rj-hero-lead {
    max-width: 72ch;
    margin-inline: 0 !important;
    text-align: left;
  }

  body[data-gdf-shell="20261102"] [data-gdf-header] { top: 0; }
  body[data-gdf-shell="20261102"] :is(.practice-utility, .gdf-shell-utility) {
    position: static;
    background: #102b35;
    color: #fff;
  }
  body[data-gdf-shell="20261102"] :is(.practice-utility__inner, .utility__inner, .gdf-shell-utility-inner) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--gdf-shell-utility-height);
    gap: 16px;
    padding-block: 6px;
  }
  body[data-gdf-shell="20261102"] :is(.practice-utility__contact, .gdf-shell-actions) {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
  }
  body[data-gdf-shell="20261102"] .gdf-shell-phone {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    color: #fff;
    font: 700 14px/1.4 Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
  }
  body[data-gdf-shell="20261102"] .gdf-shell-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #fff;
    color: #102b35;
    font: 700 14px/1.4 Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
  }
  body[data-gdf-shell="20261102"] .gdf-shell-cta:hover { background: #dcecf1; color: #102b35; }
  body[data-gdf-shell="20261102"] [data-gdf-header] :is(a, button):focus-visible {
    outline: 3px solid #42a5cd;
    outline-offset: 3px;
  }
  body[data-gdf-shell="20261102"] .gdf-shell-phone:hover { text-decoration: underline; text-underline-offset: 5px; }
  body[data-gdf-shell="20261102"] [data-gdf-footer] { overflow-wrap: anywhere; }
  body[data-gdf-shell="20261102"] [data-gdf-footer] :is(.site-footer__legal, .footer-legal) { flex-wrap: wrap; }
  body[data-gdf-shell="20261102"] .gdf-shell-search-mobile { display: none; }

  /* EV retains its existing 1240px menu breakpoint and all existing menu handlers. */
  body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] .site-header__inner {
    min-height: 88px;
    gap: 20px;
    padding-block: 12px;
    flex-wrap: nowrap;
  }
  body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] .site-header__inner .logo {
    width: 297px;
    flex: 0 1 297px;
    max-width: calc(100% - 56px);
  }
  body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] .logo__image {
    width: auto;
    height: 48px;
    max-width: 100%;
    object-fit: contain;
  }
  body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] .primary-nav__list { flex-wrap: nowrap; gap: 4px; }
  body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] .primary-nav__link {
    min-height: 52px;
    line-height: 1.4;
    padding: 16px 5px;
    font-size: 14px;
  }
  body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] .primary-nav__link::after { display: none !important; }
  body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] .gdf-shell-nav-label { position: relative; display: inline-block; line-height: 1.4; }
  body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] .gdf-shell-nav-label::after {
    position: absolute;
    content: "";
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: #087eac;
    opacity: 0;
  }
  body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] [aria-current="page"] > .gdf-shell-nav-label::after,
  body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] [data-gdf-current-section] > .primary-nav__row .gdf-shell-nav-label::after { opacity: 1; }

  /* NY retains 1180px; its original resize handler also uses 1180px. */
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .header__inner { min-height: 88px; padding-block: 12px; }
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .gdf-shell-utility .utility__inner { width: 100%; }
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .gdf-shell-region { font-size: 13px; line-height: 1.4; }
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .brand img { height: auto; }
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .site-nav > a:last-child {
    margin-left: 0;
    padding-inline: 8px;
    background: transparent;
    color: #102b35;
  }
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .site-nav > a:last-child:hover { background: #e8f0f3; color: #102b35; }
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .phone-pair,
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .hero-phones,
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .page-hero__copy p:has(> a[data-mobile-call]) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
  }
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] :is(.phone-pair, .hero-phones) > a,
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .page-hero__copy p > a[data-mobile-call] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] main > section[data-ux-inline-form="v1"] {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: 0;
  }
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .gdf-home-panels,
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .gdf-home-visuals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
  }
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] [data-gdf-home-grid="services"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .gdf-home-panel {
    min-width: 0;
    padding: 28px;
    border: 1px solid #cbdce2;
    background: #fff;
  }
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .gdf-home-panel h2 { margin: 0 0 18px; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .gdf-home-panel p { max-width: 72ch; margin: 0 0 16px; }
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .gdf-home-panel > :last-child { margin-bottom: 0; }
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .gdf-home-visuals > h2 { grid-column: 1 / -1; }
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .gdf-home-visuals > :is(figure, picture) { min-width: 0; margin: 0; }
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .gdf-home-visuals :is(.feature-split__media, .diagram-picture, .illustration-picture) { min-height: 0; width: 100%; }
  body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .gdf-home-visuals img { display: block; width: 100%; height: auto; }

  /* Miami retains 900px and the live single bar header: logo, navigation, theme toggle and hotline. */
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] .header-inner { height: 72px; }
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] .gdf-shell-hotline svg { flex: 0 0 auto; }
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] .gdf-shell-mobile-phone { min-height: 44px; margin-top: 8px; }
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] .announcement-local { display: inline-flex; gap: 0.4em; margin-left: 0.8em; }
  /* Interior heroes are centred as one column, matching the live site. */
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] main > .page-hero :is(.page-hero-content, .rj-hero-copy) { text-align: center; }
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] main > .page-hero :is(h1, .section-eyebrow) { margin-inline: auto; }
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] main > .page-hero :is(.page-hero-content, .rj-hero-copy) > p,
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] main > .page-hero .rj-hero-lead {
    margin-inline: auto !important;
    text-align: center;
  }
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] main > .page-hero :is(.rj-hero-actions, .hero-actions, .cta-actions, .phone-pair, .hero-phones) {
    justify-content: center;
    margin-inline: auto;
  }
  /* The closing band is centred as on the live site, including its paragraph. */
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] main .cta-banner [data-gdf-rail] > p {
    margin-inline: auto !important;
    text-align: center;
  }
  /* Closing call to action phone link: white on the dark band, as on the live site. */
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] .cta-banner a.utility-phone {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md, 0.5rem);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
  }
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] .cta-banner a.utility-phone:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
  /* Two numbers in one line stay visibly separate. */
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] :is(.phone-pair, .hero-phones) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
  }
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] :is(.phone-pair, .hero-phones) > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] .intake-notice { padding-block: 24px 32px; }
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] .intake-notice .note-line {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
  }
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] main > .related-services { padding-inline: 0; }
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] .related-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  }
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] .fade-in {
    opacity: 1;
    animation: none;
  }
  body[data-gdf-shell="20261102"][data-gdf-site="miami"] main > :is(.hero, .page-hero) .rj-button--secondary {
    border-color: #fff;
    background: transparent;
    color: #fff;
  }

  @media (min-width: 1241px) {
    body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] .primary-nav { min-width: 0; }
  }
  @media (max-width: 1240px) {
    body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] .site-header__inner { min-height: 80px; }
    body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] .primary-nav { max-height: calc(100dvh - 136px); }
  }
  @media (max-width: 900px) {
    body[data-gdf-shell="20261102"] .gdf-shell-region { display: none; }
    body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .utility__inner { justify-content: flex-end; }
    body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .gdf-home-panels,
    body[data-gdf-shell="20261102"][data-gdf-site="nycf"] [data-gdf-home-grid="services"],
    body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .gdf-home-visuals { grid-template-columns: minmax(0, 1fr); }
    body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .gdf-home-panel { padding: 22px; }
  }
  /* Miami single bar at intermediate widths: the hotline keeps its place in the bar. */
  @media (min-width: 1180px) and (max-width: 1279px) {
    body[data-gdf-shell="20261102"][data-gdf-site="miami"] .gdf-shell-hotline { width: 44px; height: 44px; padding: 0; font-size: 0; gap: 0; }
    body[data-gdf-shell="20261102"][data-gdf-site="miami"] .gdf-shell-hotline svg { width: 18px; height: 18px; }
  }
  @media (min-width: 901px) and (max-width: 1179px) {
    body[data-gdf-shell="20261102"][data-gdf-site="miami"] .primary-nav { display: none; }
    body[data-gdf-shell="20261102"][data-gdf-site="miami"] .mobile-menu-toggle { display: flex; }
  }
  @media (max-width: 767px) {
    body[data-gdf-shell="20261102"][data-gdf-site="miami"] .announcement-local { display: none; }
  }
  @media (max-width: 700px) {
    body[data-gdf-shell="20261102"] { --practice-navigation-h: 76px; --masthead-height: 132px; }
    body[data-gdf-shell="20261102"] :is(.practice-utility__contact, .gdf-shell-actions) { gap: 12px; }
    body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] .practice-search-toggle { display: none; }
    body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] #insights-submenu .gdf-shell-search-mobile { display: block; }
    body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] .gdf-shell-search-mobile .practice-search-toggle { display: flex; }
    body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] .practice-utility__inner { justify-content: flex-end; }
    body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] .site-header__inner { min-height: 76px; gap: 12px; }
    body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] .logo__image { height: 34px; }
    body[data-gdf-shell="20261102"][data-gdf-site="evestigate"] .site-header__inner .logo { width: 211px; flex-basis: 211px; }
    body[data-gdf-shell="20261102"][data-gdf-site="nycf"] { --gdf-shell-utility-height: 100px; --masthead-height: 176px; }
    body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .header__inner { min-height: 76px; }
    body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .gdf-shell-actions {
      display: grid;
      width: 100%;
      grid-template-columns: minmax(0, 1fr) auto;
      column-gap: 12px;
      row-gap: 0;
    }
    body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .gdf-shell-phone { grid-column: 1; font-size: 13px; }
    body[data-gdf-shell="20261102"][data-gdf-site="nycf"] .gdf-shell-cta { grid-column: 2; grid-row: 1 / span 2; }
  }
  @media (max-width: 480px) {
    body[data-gdf-shell="20261102"] .gdf-shell-phone { font-size: 13px; }
    body[data-gdf-shell="20261102"] .gdf-shell-cta { padding-inline: 12px; font-size: 13px; }
  }
}
