:root{
  --tmj-dark:#153b37; --tmj-teal:#3b8780; --tmj-green-2:#24665b;
  --tmj-orange:#ff8b3d; --tmj-orange-h:#fc7a3d; --tmj-text:#333;
  --shadow:0 4px 16px rgba(17,17,26,.08);
}

/* Hide Divi's own header entirely */
#main-header,#top-header,#et-top-navigation .mobile_nav{display:none !important;}
.et_header_style_left #et-top-navigation{display:none !important;}
body{padding-top:0 !important;}

/* Shared chevron icon (prevents the bare-polyline "black triangle") */
.tmjh-chev{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;flex:none;}

/* ============ SUPER HEADER ============ */
/* Light-green bar with bold white text. Base size = mobile (14px);
   desktop bumps to 24px in the min-width:1301px block at the bottom. */
.tmjh-super{background:var(--tmj-teal);font-size:14px;}
.tmjh-super .tmjh-super-inner{max-width:1480px;margin:0 auto;display:flex !important;
  align-items:center;justify-content:space-between;gap:16px;padding:7px 28px;text-align:left;}
.tmjh-super-item{color:#fff;text-decoration:none;display:inline-flex;align-items:center;
  gap:6px;font-weight:700;background:none;border:0;cursor:pointer;}
.tmjh-super-item:hover{color:#fff;opacity:.85;}
.tmjh-super-label{color:#fff;font-weight:800;}
.tmjh-badge{display:inline-block;background:var(--tmj-orange);color:#fff;font-size:10px;font-weight:700;
  line-height:1;padding:3px 5px;border-radius:4px;text-transform:uppercase;letter-spacing:.03em;
  margin-left:5px;vertical-align:middle;white-space:nowrap;}
.tmjh-resources{position:relative;}
.tmjh-resources-toggle{display:inline-flex;align-items:center;gap:4px;background:none;border:0;
  cursor:pointer;padding:0;font:inherit;color:inherit;font-weight:600;}
.tmjh-resources-menu{position:absolute;right:0;top:100%;min-width:250px;background:#fff;
  box-shadow:var(--shadow);border-top:3px solid var(--tmj-teal);list-style:none;margin:0;
  padding:8px 0;display:none;z-index:1100;}
.tmjh-resources:hover .tmjh-resources-menu,
.tmjh-resources.open .tmjh-resources-menu{display:block;}
.tmjh-resources-menu li{list-style:none;}
.tmjh-resources-menu a{display:block;padding:7px 16px;color:var(--tmj-dark);text-decoration:none;
  font-weight:600;font-size:14px;white-space:nowrap;
  transition:background-color .2s ease,color .2s ease,padding-left .2s ease;}
.tmjh-resources-menu a:hover{background:#f5f7f7;color:var(--tmj-teal);padding-left:22px;}
/* Flatten the nested "For Patients" submenu into one panel (no second fly-out) */
.tmjh-resources-menu .tmjh-dd--nested{position:static;display:block;box-shadow:none;border:0;
  background:transparent;padding:0 0 6px 0;min-width:0;}
.tmjh-resources-menu .tmjh-dd--nested a{font-weight:500;padding-left:30px;color:var(--tmj-text);font-size:13.5px;}
.tmjh-resources-menu .tmjh-dd--nested a:hover{padding-left:36px;}
.tmjh-resources-menu .tmjh-chev{display:none;}

/* ============ FIXED HEADER (super header + main nav) ============ */
/* The whole header is fixed and overlays the top — it takes no flow space,
   so pages that already reserve top spacing render correctly. */
.tmjh-header{position:fixed;top:0;left:0;right:0;z-index:1000;background:#fff;}
.tmjh-header.scrolled{box-shadow:var(--shadow);}
.tmjh-nav-wrapper{position:relative;background:#fff;}
.tmjh-nav-container{max-width:1480px;margin:0 auto;display:flex;align-items:center;
  justify-content:space-between;gap:20px;padding:8px 28px;}
.tmjh-logo{flex:none;line-height:0;}
/* Logo is 2029x682 natively (~3:1), so these heights never upscale it.
   Trimmed nav padding 10px->8px to claw back some of the added height —
   the header is position:fixed and overlays the page. */
.tmjh-logo-img{display:block;width:auto;max-height:68px;transition:max-height .25s ease;}
.tmjh-nav-wrapper.scrolled .tmjh-logo-img{max-height:56px;}

.tmjh-desk{display:flex;align-items:center;gap:16px;}
.tmjh-menu{display:flex;align-items:center;gap:2px;list-style:none;margin:0;padding:0;}
.tmjh-menu>li{position:relative;list-style:none;}
.tmjh-menu>li>a{display:flex;align-items:center;gap:3px;color:var(--tmj-dark);text-decoration:none;
  font-weight:600;font-size:15px;padding:8px 9px;border-radius:6px;line-height:1.1;white-space:nowrap;
  transition:color .2s ease,background-color .2s ease;}
.tmjh-menu>li>a:hover{color:var(--tmj-teal);background:#f5f7f7;}
.tmjh-menu>li>a .tmjh-chev{transition:transform .2s ease;}
.tmjh-menu>li:hover>a .tmjh-chev{transform:rotate(180deg);}

/* Hover = the grey pill above (background + teal text), and nothing else.
   Deliberately NO underline: a pill + underline read as two competing hover
   effects stacked on one item. If an underline is ever reintroduced, scope it
   with `:not(.tmjh-has-dd)` — the walker STRIPS WordPress's
   `menu-item-has-children`, so `.tmjh-has-dd` is the only "has a submenu" hook. */
.tmjh-menu .tmjh-dd{position:absolute;top:100%;left:0;min-width:230px;background:#fff;
  box-shadow:var(--shadow);border-top:3px solid var(--tmj-teal);list-style:none;margin:0;
  padding:8px 0;display:none;z-index:1100;}
.tmjh-menu li:hover>.tmjh-dd{display:block;}
.tmjh-menu .tmjh-dd li{list-style:none;}
.tmjh-menu .tmjh-dd a{display:block;font-size:14px;font-weight:500;padding:8px 16px;
  color:var(--tmj-dark);text-decoration:none;white-space:nowrap;
  transition:background-color .2s ease,color .2s ease,padding-left .2s ease;}
.tmjh-menu .tmjh-dd a:hover{background:#f5f7f7;color:var(--tmj-teal);padding-left:22px;}
.tmjh-menu .tmjh-dd .tmjh-dd{top:0;left:100%;}

.tmjh-cta-group{display:flex;align-items:center;gap:10px;}
.tmjh-cta{display:inline-flex;align-items:center;text-decoration:none;font-weight:700;font-size:14px;
  padding:11px 16px;border-radius:8px;white-space:nowrap;transition:all .2s ease;}
.tmjh-cta--filled{background:var(--tmj-orange);color:#fff;}
.tmjh-cta--filled:hover{background:var(--tmj-orange-h);}
.tmjh-cta--outline{border:2px solid var(--tmj-dark);color:var(--tmj-dark);}
.tmjh-cta--outline:hover{background:var(--tmj-dark);color:#fff;}

/* Hamburger (hidden on desktop) */
.tmjh-toggle{display:none;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;
  padding:8px;flex:none;}
.tmjh-toggle span{width:26px;height:3px;background:var(--tmj-dark);border-radius:2px;}

/* ============ MOBILE SLIDE-IN ============ */
.tmjh-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);opacity:0;visibility:hidden;
  transition:.3s;z-index:1500;}
.tmjh-overlay.open{opacity:1;visibility:visible;}
body.tmjh-menu-open{overflow:hidden;}

.tmjh-mobile{position:fixed;top:0;right:0;height:100dvh;width:420px;max-width:90vw;background:#fff;
  z-index:1600;transform:translateX(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);
  display:flex;flex-direction:column;box-shadow:-8px 0 30px rgba(0,0,0,.14);}
.tmjh-mobile.open{transform:translateX(0);}
.tmjh-m-header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;
  border-bottom:1px solid #eef1f1;flex:none;}
.tmjh-m-logo{line-height:0;}
.tmjh-m-logo img{max-height:56px;width:auto;display:block;}
.tmjh-m-close{background:none;border:0;cursor:pointer;padding:6px;line-height:0;}
.tmjh-m-close svg{width:28px;height:28px;fill:none;stroke:var(--tmj-dark);stroke-width:2;stroke-linecap:round;}
.tmjh-m-scroll{flex:1;overflow-y:auto;padding:8px 18px 36px;}

.tmjh-m-nav{list-style:none;margin:0;padding:0;}
.tmjh-m-nav li{list-style:none;border-bottom:1px solid #eef1f1;}
.tmjh-m-row{display:flex;align-items:center;justify-content:space-between;}
.tmjh-m-link{display:block;flex:1;padding:13px 2px;color:var(--tmj-dark);text-decoration:none;
  font-weight:700;font-size:16px;}
.tmjh-m-row--nested .tmjh-m-link{font-weight:500;padding-left:14px;font-size:15px;}
.tmjh-m-toggle{background:none;border:0;padding:10px;cursor:pointer;}
.tmjh-m-toggle .tmjh-chev{stroke:var(--tmj-dark);transition:transform .25s;}
.tmjh-m-toggle[aria-expanded="true"] .tmjh-chev{transform:rotate(180deg);}
.tmjh-m-sub{list-style:none;margin:0;padding:0;max-height:0;overflow:hidden;transition:max-height .3s ease;}
.tmjh-m-sub.open{max-height:2000px;}
.tmjh-m-sub a{display:block;padding:11px 2px 11px 18px;color:var(--tmj-text);text-decoration:none;font-size:15px;}

.tmjh-m-section-label{font-weight:800;color:var(--tmj-teal);text-transform:uppercase;font-size:12px;
  letter-spacing:.05em;margin:18px 0 2px;}
.tmjh-m-contact{display:flex;flex-direction:column;gap:4px;margin:16px 0;}
.tmjh-m-contact-link{color:var(--tmj-dark);font-weight:600;text-decoration:none;padding:6px 2px;}
.tmjh-m-cta{display:block;text-align:center;text-decoration:none;font-weight:700;padding:14px;
  border-radius:8px;margin-top:10px;}
.tmjh-m-cta--filled{background:var(--tmj-orange);color:#fff;}
.tmjh-m-cta--outline{background:#fff;border:2px solid var(--tmj-dark);color:var(--tmj-dark);}

/* ============ CALL POPUP ============ */
.tmjh-callpopup{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;align-items:center;
  justify-content:center;z-index:1800;}
.tmjh-callpopup.open{display:flex;}
.tmjh-callpopup-box{background:#fff;border-radius:14px;padding:24px;max-width:340px;width:90%;
  position:relative;text-align:center;}
.tmjh-callpopup-close{position:absolute;top:10px;right:14px;background:none;border:0;font-size:26px;
  cursor:pointer;color:var(--tmj-dark);line-height:1;}
.tmjh-callpopup-head{font-weight:700;font-size:18px;color:var(--tmj-dark);margin-bottom:14px;}
.tmjh-callpopup-opt{display:block;text-decoration:none;border:1px solid #e4e9e8;border-radius:10px;padding:14px;}
.tmjh-callpopup-loc{font-weight:700;color:var(--tmj-dark);}
.tmjh-callpopup-num{font-size:22px;font-weight:800;color:var(--tmj-teal);margin:4px 0;}
.tmjh-callpopup-addr{font-size:13px;color:var(--tmj-text);}

/* ============ BREAKPOINT (collapse to burger when the full nav can't fit) ============ */
@media(max-width:1300px){
  .tmjh-desk{display:none;}
  .tmjh-toggle{display:flex;}
  .tmjh-super .tmjh-super-label{display:none;}
  .tmjh-resources{display:none;} /* available inside the burger drawer */
}
@media(min-width:1301px){
  .tmjh-mobile,.tmjh-overlay{display:none !important;}
  /* Desktop super header: bigger, bolder white text on the green bar.
     Mobile/tablet keep the 14px base defined above. */
  .tmjh-super{font-size:24px;}
  .tmjh-super .tmjh-super-inner{padding:9px 28px;}
  .tmjh-super-item{gap:8px;}
  .tmjh-badge{font-size:12px;padding:4px 6px;margin-left:7px;}
  /* Dropdown panel keeps its own readable size (set to 14px above) — it must
     not inherit the 24px bar text. */
  .tmjh-resources-menu{min-width:280px;}
}
/* Wide screens have spare room in the nav row, so let the logo run bigger.
   Held back between 1301-1499px: that's where the 7 menu items + CTA are
   already tight, and logo width (~3x its height) would push them to wrap. */
@media(min-width:1500px){
  .tmjh-logo-img{max-height:78px;}
  .tmjh-nav-wrapper.scrolled .tmjh-logo-img{max-height:62px;}
}

/* Full-width drawer on phones; partial on tablets */
@media(max-width:700px){
  .tmjh-mobile{width:100%;max-width:100%;}
  /* Keep the logo clear of the burger on narrow phones */
  .tmjh-logo-img{max-height:56px;}
  .tmjh-nav-wrapper.scrolled .tmjh-logo-img{max-height:50px;}
}
