/* IRMD phone bottom bar (sitewide, printed on wp_footer by inc/irmd-v2.php). Phones only:
   hidden at 768px and up. Links are 48px tall; body gets bottom padding on phones so the bar
   never covers the last content. The bar is 65px tall (8+8 padding, 48px links, 1px border), so
   GTranslate's fixed #gt_float_wrapper (bottom:20px, z-index:999999) is lifted to bar height + 12px on phones. Navy #002a73 on white = 13.3:1 (both buttons). */
.irmd-bar{position:fixed;left:0;right:0;bottom:0;z-index:9990;display:flex;gap:8px;margin:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#ffffff;border-top:1px solid #dbe3ee;box-shadow:0 -10px 24px -14px rgba(0,42,115,.45);font-family:'Montserrat',system-ui,-apple-system,'Segoe UI',sans-serif;box-sizing:border-box}
.irmd-bar a{flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:center;min-height:48px;padding:4px 8px;border-radius:12px;font-size:14.5px;font-weight:700;line-height:1.2;letter-spacing:0;text-align:center;text-decoration:none!important;box-sizing:border-box}
.irmd-bar .irmd-bar-call{flex-grow:1.3;background:#002a73;color:#ffffff!important;border:2px solid #002a73}
.irmd-bar .irmd-bar-visit{background:#ffffff;color:#002a73!important;border:2px solid #002a73}
.irmd-bar a:focus-visible{outline:3px solid #002a73;outline-offset:2px}
.irmd-bar .irmd-bar-call:focus-visible{outline-color:#002a73;box-shadow:0 0 0 2px #ffffff inset}
@media (max-width:767.98px){body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}#gt_float_wrapper{bottom:calc(65px + 12px + env(safe-area-inset-bottom)) !important}}
@media (min-width:768px){.irmd-bar{display:none!important}}
@media print{.irmd-bar{display:none!important}}
/* Header menu toggle (functions.php mega menu, button.imm-burger, shown below 980px): a visible 2px navy outline,
   44 x 44 tap target, filled navy while the menu is open, red focus ring (owner request 2026-10-17). */
@media (max-width:979.98px){.imm-hd .imm-burger{box-sizing:border-box;flex:none;align-self:center;width:44px;height:44px;padding:0;border:2px solid #002a73;border-radius:10px}.imm-hd .imm-burger:focus-visible{outline:3px solid #c62828;outline-offset:2px}.imm-hd .imm-burger[aria-expanded="true"]{background:#002a73!important;color:#ffffff!important}}

/* Header mega menu (functions.php irmd-mega-menu: header.imm-hd > nav.imm-nav > details.imm-dd > .imm-panel), refined to
   the homepage system (owner request 2026-10-17). CSS only, sitewide. The header's own <style> block prints after this
   file and leans on !important, so every rule here is one class more specific (.imm-hd .imm-nav ...) and repeats
   !important where the original has it. Column headings show in sentence case from their Title Case text (lowercase +
   ::first-letter); the decorative "›" before links and the hover nudge are dropped; the bottom "Our Long Island offices"
   slab and the "All guides" pill become compact outline buttons; the navy CTA card on the right is kept. */
.imm-hd .imm-nav a:focus-visible,.imm-hd .imm-nav summary:focus-visible{outline:3px solid #002a73;outline-offset:2px;border-radius:8px}
.imm-hd .imm-nav .imm-grp{font:700 14px/1.3 'Montserrat',system-ui,-apple-system,'Segoe UI',sans-serif;letter-spacing:0;text-transform:lowercase;color:#002a73!important}
.imm-hd .imm-nav .imm-grp::first-letter{text-transform:uppercase}
.imm-hd .imm-nav .imm-mcard-eyebrow{font-size:12px;letter-spacing:.02em;text-transform:none}

/* phones and tablets (the slide-down menu): 44px rows, readable labels, compact office link */
@media (max-width:979.98px){
  .imm-hd .imm-nav .imm-panel a:not(.imm-mega-cta):not(.imm-mcard-cta):not(.imm-mcard-all):not(.imm-mega-all){display:flex;align-items:center;min-height:46px;padding:10px 4px;font-size:16px;line-height:1.35}
  .imm-hd .imm-nav .imm-grp{margin:20px 0 4px}
  .imm-hd .imm-nav .imm-panel a.imm-mega-cta,.imm-hd .imm-nav .imm-panel a.imm-mega-all{display:flex!important;align-items:center;justify-content:center;min-height:48px;margin:14px 0 4px!important;padding:10px 16px!important;background:#ffffff!important;color:#002a73!important;border:2px solid #002a73!important;border-radius:10px!important;font-size:15px!important;font-weight:700}
  .imm-hd .imm-nav .imm-mcard-all{display:flex;align-items:center;justify-content:center;min-height:44px}
  .imm-hd .imm-nav .imm-mcard{border-radius:16px}
}

/* desktop panels */
@media (min-width:980px){
  .imm-hd .imm-nav .imm-panel{border:1px solid #dbe3ee;border-top:3px solid #002a73;border-radius:0 0 16px 16px;box-shadow:var(--imm-shadow)}
  .imm-hd .imm-nav{--imm-shadow:0 24px 48px -22px rgba(0,42,115,.45)}
  .imm-hd .imm-nav .imm-panel.imm-mega.imm-mega-ind,.imm-hd .imm-nav .imm-panel.imm-mega.imm-mega-svc,.imm-hd .imm-nav .imm-panel.imm-mega.imm-mega-gd{padding:28px}
  .imm-hd .imm-nav .imm-panel.imm-mega-ind,.imm-hd .imm-nav .imm-panel.imm-mega-svc{gap:0 36px}
  .imm-hd .imm-nav .imm-mega-ind .imm-mcats,.imm-hd .imm-nav .imm-mega-svc .imm-mcats,.imm-hd .imm-nav .imm-mega-gd .imm-mcats{gap:6px 28px}
  /* equal columns everywhere (the header caps .imm-mcol at 220px, so the 3-column panels left uneven gaps) */
  .imm-hd .imm-nav .imm-mega .imm-mcol{max-width:none;min-width:0}
  .imm-hd .imm-nav .imm-mega-gd .imm-mcats{grid-template-columns:repeat(3,minmax(0,300px))}
  .imm-hd .imm-nav .imm-mega .imm-grp,.imm-hd .imm-nav .imm-p2 .imm-grp{margin:0 0 8px;padding:0 10px 10px;border-bottom:1px solid #dbe3ee;border-image:none}
  .imm-hd .imm-nav .imm-panel a:not(.imm-mega-cta):not(.imm-mcard-cta):not(.imm-mcard-all):not(.imm-mega-all){display:block;padding:7px 10px;font-size:15px;line-height:1.4;font-weight:500;color:#1f2a3d!important;border-radius:8px;white-space:normal;transform:none;transition:background-color .12s,color .12s}
  .imm-hd .imm-nav .imm-panel a:not(.imm-mega-cta):not(.imm-mcard-cta):not(.imm-mcard-all):not(.imm-mega-all)::before{content:none!important}
  .imm-hd .imm-nav .imm-panel a:not(.imm-mega-cta):not(.imm-mcard-cta):not(.imm-mcard-all):not(.imm-mega-all):hover,.imm-hd .imm-nav .imm-panel a:not(.imm-mega-cta):not(.imm-mcard-cta):not(.imm-mcard-all):not(.imm-mega-all):focus-visible{color:#002a73!important;background:#eef3fa!important;transform:none}
  .imm-hd .imm-nav .imm-panel.imm-p2{min-width:600px;padding:24px 24px 22px}
  .imm-hd .imm-nav .imm-p2-cols{gap:0 32px}
  /* the long bottom slab -> a compact outline button, left-aligned under the columns */
  .imm-hd .imm-nav .imm-panel a.imm-mega-cta,.imm-hd .imm-nav .imm-panel.imm-mega-gd a.imm-mega-all{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;width:auto;justify-self:start;align-self:start;flex-basis:auto;margin:18px 0 0!important;padding:10px 18px!important;background:#ffffff!important;color:#002a73!important;border:2px solid #002a73!important;border-radius:10px!important;font-size:14.5px!important;font-weight:700;box-shadow:none!important;filter:none!important;white-space:nowrap}
  .imm-hd .imm-nav .imm-panel a.imm-mega-cta:hover,.imm-hd .imm-nav .imm-panel a.imm-mega-cta:focus-visible,.imm-hd .imm-nav .imm-panel.imm-mega-gd a.imm-mega-all:hover,.imm-hd .imm-nav .imm-panel.imm-mega-gd a.imm-mega-all:focus-visible{background:#eef3fa!important;color:#002a73!important;filter:none!important;box-shadow:none!important}
  .imm-hd .imm-nav .imm-mega-svc .imm-mcats>a.imm-mega-cta{grid-column:1/-1;margin:20px 0 0!important}
  .imm-hd .imm-nav .imm-mega-svc .imm-mcats:has(>.imm-mega-cta){align-content:start}
  /* Workers' comp panel: its call line is the red button */
  .imm-hd .imm-nav .imm-panel.imm-p2>a.imm-mega-cta{background:#c62828!important;border-color:#c62828!important;color:#ffffff!important}
  .imm-hd .imm-nav .imm-panel.imm-p2>a.imm-mega-cta:hover,.imm-hd .imm-nav .imm-panel.imm-p2>a.imm-mega-cta:focus-visible{background:#a51f1f!important;border-color:#a51f1f!important;color:#ffffff!important}
  /* the CTA card stays the anchor: card radius, a touch more air */
  .imm-hd .imm-nav .imm-mega-ind .imm-mcard,.imm-hd .imm-nav .imm-mega-svc .imm-mcard{border-radius:16px;padding:24px 22px}
  .imm-hd .imm-nav .imm-mcard-h{font-size:18px}
  .imm-hd .imm-nav .imm-mcard-p{font-size:14px}
}
@media (prefers-reduced-motion:reduce){.imm-hd .imm-nav .imm-panel a{transition:none}}
