/* Tablet menu A (v1.126.0, 30 Nov 2026 call: Tim and Jonny want the
   traditional look, everything along the top). From 740px to 1199px wide,
   every iPad and small laptop, the full menu shows along the top instead of
   the burger, a little tighter, with For Patients and Healthcare Partners
   opening their pages on tap. Phones (under 740px) keep the burger, desktops
   keep the normal menu. Works on both header kinds: #main-menu on the
   redesigned pages, .hgc-nav on every other page. Replaces the bottom tab
   bar (option C, v1.125.x). js/tablet-menu.js adds the tap behaviour. */

@media (min-width: 740px) and (max-width: 1199px) {
  .burger, .hgc-burger { display: none !important; }

  .site-head .wrap, .hgc-head .hgc-wrap {
    flex-wrap: nowrap !important; height: 76px; min-height: 76px !important;
    gap: 16px !important; padding: 0 22px !important;
  }
  .site-head .brand .brandlogo, .hgc-head .hgc-brandlogo { height: clamp(32px, 3.6vw, 42px) !important; width: auto !important; }

  #main-menu, .hgc-nav {
    display: block !important; position: static !important; background: none !important; box-shadow: none !important;
    border: 0 !important; padding: 0 !important; max-height: none !important; overflow: visible !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  .menu, .hgc-menu {
    display: flex !important; flex-direction: row !important; align-items: center !important;
    flex-wrap: nowrap !important; white-space: nowrap !important; gap: clamp(14px, 1.9vw, 26px) !important;
  }
  .menu > li > a, .hgc-menu > li > a {
    display: inline-flex !important; align-items: center; min-height: 44px; padding: 0 !important; margin: 0 !important; border: 0 !important;
    font: 600 clamp(14.5px, 1.55vw, 16.5px)/1 'Plus Jakarta Sans', system-ui, sans-serif !important;
  }
  .menu > li > a.cta, .hgc-menu > li > a.hgc-cta { padding: 0 18px !important; color: #fff !important; border-radius: 999px; }

  /* Dropdowns: a card under the item, opened on tap (or hover with a mouse). */
  .menu .dd, .hgc-menu .hgc-dd { position: relative !important; }
  .menu .dd > a::after, .hgc-menu .hgc-dd > a::after {
    content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 4px 8px;
    border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .15s;
  }
  .menu .dd.open > a, .hgc-menu .hgc-dd.open > a { color: #5249CE !important; }
  .menu .dd.open > a::after, .hgc-menu .hgc-dd.open > a::after { transform: rotate(-135deg); margin-bottom: -2px; }
  .menu .sub, .hgc-menu .hgc-sub {
    position: absolute !important; top: calc(100% + 10px); left: -14px; min-width: 240px; z-index: 60;
    margin: 0 !important; padding: 8px !important; list-style: none;
    background: #fff; border: 1px solid #DCE3F5; border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 51, 119, .12);
    display: block !important; opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
  }
  .menu .sub::before, .hgc-menu .hgc-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .menu > li.dd:nth-last-child(2) .sub, .hgc-menu > li.hgc-dd:nth-last-child(2) .hgc-sub { left: auto; right: -14px; }
  .menu .dd.open .sub, .hgc-menu .hgc-dd.open .hgc-sub { opacity: 1; visibility: visible; transform: none; }
  .menu .sub a, .hgc-menu .hgc-sub a {
    display: block !important; padding: 13px 14px !important; border: 0 !important; border-radius: 12px;
    font: 500 16px/1.3 Inter, system-ui, sans-serif !important; color: #004096 !important; white-space: nowrap;
  }
  .menu .sub a:hover, .hgc-menu .hgc-sub a:hover { background: #F3F6FF; color: #5249CE !important; }

}
/* Register interest: the short label only while an iPad is held upright, so it all fits on one line. */
.tm-short { display: none; }
@media (hover: hover) and (min-width: 740px) and (max-width: 1199px) {
  .menu .dd:hover .sub, .menu .dd:focus-within .sub,
  .hgc-menu .hgc-dd:hover .hgc-sub, .hgc-menu .hgc-dd:focus-within .hgc-sub { opacity: 1; visibility: visible; transform: none; }
}
@media (min-width: 740px) and (max-width: 900px) {
  .tm-long { display: none; }
  .tm-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .menu .sub, .hgc-menu .hgc-sub { transition: none !important; } }
/* v1.130.0: the About Us drop-down is now Meet the Team and Contact Us, so
   there is no repeated "About Us" to hide on phones any more. */
