/* Site header: account link and cart icon (added by header-account.js) */
.hwm-header .hwm-header__nav{order:1;margin-left:auto}
.hwm-header .hwm-hacts{order:2;display:flex;align-items:center;gap:6px;padding-left:22px;border-left:1px solid #D5DCF6}
.hwm-header .hwm-header__toggle{order:3}
.hwm-header .hwm-hacts a,.hwm-header .hwm-hacts a:hover,.hwm-header .hwm-hacts a:focus{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:16px;font-weight:500;line-height:1;color:#141B3D;text-decoration:none}
.hwm-header .hwm-hacts a:hover,.hwm-header .hwm-hacts a[aria-current="page"]{color:#2F4BE0}
.hwm-header .hwm-hacts svg{flex:none;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hwm-header .hwm-hacts__cart{justify-content:center;min-width:44px;margin-left:10px}
.hwm-header .hwm-hacts__cart[hidden]{display:none !important}
.hwm-header .hwm-hacts__n{position:absolute;top:4px;right:2px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#D7263D;font-size:11px;font-weight:700;line-height:18px;text-align:center;color:#FFFFFF}
/* Checkout keeps only the cart icon, like the rest of the checkout page */
body.woocommerce-checkout .hwm-header .hwm-hacts{border-left:0}
body.woocommerce-checkout .hwm-header .hwm-hacts__acct{display:none !important}
/* The account row inside the phone menu */
.hwm-header .hwm-hacts__mlink{display:none !important}
.hwm-header .hwm-hacts__mlink svg{flex:none;width:20px;height:20px;margin-right:10px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Phones: the cart icon sits next to the menu button; the account link moves into the menu */
@media (max-width:767px){
  .hwm-header .hwm-hacts{margin-left:auto;gap:0;padding-left:0;border-left:0}
  .hwm-header .hwm-hacts__acct{display:none !important}
  .hwm-header .hwm-hacts__cart{min-width:40px;margin-left:0}
  .hwm-header--menu .hwm-hacts__mlink{display:inline-flex !important}
}
/* Small phones: a slightly smaller wordmark so logo, cart and menu fit on one row.
   Doubled class so it wins over the header's own styles, which load later in the page. */
@media (max-width:400px){
  .hwm-header.hwm-header--menu .hwm-header__in{gap:6px}
  .hwm-header.hwm-header--menu .hwm-header__in .hwm-header__logo{font-size:clamp(14px,4.2vw,17px)}
}

/* Scrolling down: the header follows along, frosted and a little shorter, with a button to the free planner.
   (The bar from the old homepage, merged into the real header.) header-account.js adds .hwm-hdr-fixed. */
.elementor-location-header>.e-con.hwm-hdr-fixed{position:fixed !important;top:0;left:0;right:0;width:100%;animation:hwm-hdr-in .35s cubic-bezier(.2,.7,.2,1) both}
body.admin-bar .elementor-location-header>.e-con.hwm-hdr-fixed{top:32px}
@media (max-width:782px){body.admin-bar .elementor-location-header>.e-con.hwm-hdr-fixed{top:46px}}
@media (max-width:600px){body.admin-bar .elementor-location-header>.e-con.hwm-hdr-fixed{top:0}}
.hwm-hdr-fixed .hwm-header{background-color:rgba(255,255,255,.9);-webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px);box-shadow:0 1px 0 #D5DCF6,0 10px 30px rgba(20,27,61,.06)}
.hwm-header .hwm-header__in{transition:padding .25s ease}
.hwm-hdr-fixed .hwm-header .hwm-header__in{padding-top:12px;padding-bottom:12px}
@keyframes hwm-hdr-in{from{transform:translateY(-100%)}to{transform:none}}
.hwm-header .hwm-hacts__cta{display:none !important}
/* the button only shows on wide screens, where it fits next to the menu; there the account link goes to its icon */
@media (min-width:1440px){
  .hwm-hdr-fixed .hwm-header .hwm-hacts a.hwm-hacts__cta{display:inline-flex !important;min-height:40px;margin-left:14px;padding:0 18px;border-radius:10px;background:#2F4BE0;font-size:15px;white-space:nowrap;color:#FFFFFF}
  .hwm-hdr-fixed .hwm-header .hwm-hacts a.hwm-hacts__cta:hover{background:#2439B8;color:#FFFFFF}
  .hwm-hdr-fixed .hwm-header .hwm-hacts__acct span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
/* Small laptops: a little tighter, so the menu (with The Busywork Book) stays on one row.
   Doubled class so it wins over the header's own styles, which load later in the page. */
@media (min-width:1025px) and (max-width:1260px){
  .hwm-header.hwm-header .hwm-header__nav{column-gap:16px}
  .hwm-header.hwm-header .hwm-header__logo{font-size:20px}
  .hwm-header.hwm-header .hwm-hacts__acct span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
body.woocommerce-cart .hwm-header .hwm-hacts__cta,body.woocommerce-checkout .hwm-header .hwm-hacts__cta,body.woocommerce-account .hwm-header .hwm-hacts__cta{display:none !important}
/* an open phone menu scrolls inside the fixed header */
@media (max-width:1024px){.hwm-hdr-fixed .hwm-header .hwm-header__nav{max-height:calc(100vh - 90px);overflow-y:auto}}
@media (prefers-reduced-motion:reduce){.elementor-location-header>.e-con.hwm-hdr-fixed{animation:none}.hwm-header .hwm-header__in{transition:none}}
/* The Free tools list opens under Free tools (it used to line up with the right edge, which put it under
   The Busywork Book once that link was added). Smaller laptops keep the right edge so it fits on screen. */
@media (min-width:1261px){
  .hwm-header.hwm-header .hwm-header__drop{position:relative}
  .hwm-header.hwm-header .hwm-header__panel{left:-28px;right:auto;top:calc(100% + 10px);width:760px}
}

/* Tools menu: the current page's icon sits on white, so on hover it still needs the cobalt circle behind its white lines */
.hwm-header .hwm-header__tool[aria-current="page"]:hover .hwm-header__ticon,
.hwm-header .hwm-header__tool[aria-current="page"]:focus-visible .hwm-header__ticon{background:#2F4BE0}
