/* =========================================================================
   HEC — UI layer: header extras, mobile menu, mini basket, cookie banner,
   loader, notices, motion states. Loaded after main.css.
   ========================================================================= */

/* ---- Announcement ---- */
.hec-announce { background: var(--navy-dk); color: #CFE5D8; font-size: 13px; text-align: center; padding: 8px 16px; }
.hec-announce a { color: var(--gold); }

/* ---- Sticky header ---- */
.hec-header.is-sticky { position: sticky; top: 0; z-index: 60; transition: box-shadow .2s, background .2s; }
.hec-header.is-sticky.is-scrolled { box-shadow: 0 6px 30px rgba(12,74,47,.10); background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px); }
.hec-header-actions { display: flex; align-items: center; gap: 16px; }

/* ---- Basket button ---- */
.hec-basket-btn { position: relative; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--navy); display: inline-flex; align-items: center; border-radius: 10px; transition: background .15s; }
.hec-basket-btn:hover { background: var(--green-pale); }
.hec-basket-btn svg { width: 24px; height: 24px; }
.hec-basket-count { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 100px; background: var(--gold); color: var(--navy-dk); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; transform: scale(0); transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.hec-basket-count.has-items { transform: scale(1); }
.hec-basket-count.bump { animation: hec-bump .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes hec-bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* ---- Floating basket bar: same look as the delivered designs' basket bar (dark, grip · Basket N · Total · View basket · Clear · ×) ---- */
.hec-basket-float { position: fixed; right: 20px; bottom: 20px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 16px; background: #1A1D21; color: #fff; border-radius: 12px; box-shadow: 0 10px 34px rgba(11,30,63,.22); padding: 13px 17px; font-size: 14.5px; line-height: 1.4; max-width: calc(100vw - 40px); transform: translateY(120px); opacity: 0; transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .25s; user-select: none; }
.hec-basket-float.is-visible { transform: none; opacity: 1; }
.hec-basket-float.is-dragging { transition: none; cursor: grabbing; box-shadow: 0 22px 60px rgba(8,54,32,.32); }
.hec-basket-float.is-hidden { display: none; }
.hec-basket-float-live { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.hec-basket-float-live b { font-size: 17px; font-weight: 700; }
.hec-basket-float-live b .woocommerce-Price-amount { font-size: inherit; }
.hec-basket-float-go { color: #fff !important; text-decoration: underline !important; text-underline-offset: 3px; font-size: 13.5px; white-space: nowrap; }
.hec-basket-float-go:hover { color: #FDC72C !important; }
.hec-basket-float-grip, .hec-basket-float-close { background: transparent; border: 0; padding: 4px 5px; border-radius: 6px; color: #9DBBA9; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hec-basket-float-grip { cursor: grab; touch-action: none; margin-right: -4px; }
.hec-basket-float-grip svg { fill: currentColor; }
.hec-basket-float-grip:hover, .hec-basket-float-close:hover { color: #fff; background: rgba(255,255,255,.16); }
.hec-basket-float-grip:active { cursor: grabbing; }
/* Phones (6 Oct 2026): one line always — the bar used to wrap to two rows once the total got long (e.g. A$1,200.00) */
@media (max-width: 620px) { .hec-basket-float { right: 12px; bottom: 12px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 6px 8px 6px 6px; gap: 8px; font-size: 13.5px; flex-wrap: nowrap; max-width: calc(100vw - 24px); justify-content: flex-end; } .hec-basket-float-live { gap: 4px; } .hec-basket-float-live b { font-size: 14.5px; } .hec-basket-float-go { min-height: 38px; display: inline-flex; align-items: center; font-size: 12.5px; } .hec-basket-float-grip, .hec-basket-float-close { min-height: 38px; min-width: 28px; padding: 3px 2px; } .hec-basket-float-grip { margin-right: -2px; } }
@media (max-width: 360px) { .hec-basket-float-grip { display: none; } }

/* ---- Mini basket (slide-out) ---- */
.hec-minicart-backdrop { position: fixed; inset: 0; background: rgba(8,54,32,.45); z-index: 90; opacity: 0; transition: opacity .3s; }
.hec-minicart-backdrop.is-open { opacity: 1; }
.hec-minicart { position: fixed; top: 0; right: 0; height: 100dvh; width: min(440px, 100vw); background: var(--wash); z-index: 91; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s cubic-bezier(.22,1,.36,1); box-shadow: -20px 0 60px rgba(8,54,32,.18); }
.hec-minicart.is-open { transform: none; }
.hec-minicart-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 26px 26px 18px; border-bottom: 1px solid var(--line); }
.hec-minicart-k { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--navy-lt); margin: 0 0 4px; }
.hec-minicart-head h2 { font-family: var(--display); font-size: 24px; color: var(--navy); margin: 0; }
.hec-minicart-close { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--green-pale); border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.hec-minicart-close:hover { background: var(--navy); color: #fff; }
.hec-minicart-close:hover { color: var(--navy); }
.hec-minicart-body { flex: 1; overflow-y: auto; padding: 18px 26px 26px; display: flex; flex-direction: column; }
.hec-minicart-list { list-style: none; margin: 0; padding: 0; }
.hec-minicart-item { display: grid; grid-template-columns: 64px 1fr 28px; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); animation: hec-in .35s both; }
.hec-minicart-thumb { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-lt)); }
.hec-minicart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hec-minicart-info a { color: var(--navy); font-weight: 600; text-decoration: none; font-size: 14.5px; line-height: 1.3; display: block; }
.hec-minicart-info small { display: block; color: var(--grey); font-size: 12.5px; margin-top: 2px; }
.hec-minicart-price { display: block; margin-top: 6px; font-weight: 600; color: var(--ink); }
.hec-minicart-remove { color: var(--grey); text-decoration: none; font-size: 22px; line-height: 1; text-align: center; border-radius: 6px; }
.hec-minicart-remove:hover { color: #b32d2e; }
.hec-minicart-foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.hec-minicart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0 12px; }
.hec-minicart-total span { color: var(--grey); }
.hec-minicart-total strong { font-family: var(--display); font-size: 26px; color: var(--navy); }
.hec-minicart-foot .hec-btn { width: 100%; text-align: center; justify-content: center; }
.hec-minicart-viewcart { text-align: center; color: var(--navy-lt); font-size: 14px; }
.hec-minicart-empty { text-align: center; margin: auto; display: flex; flex-direction: column; gap: 14px; align-items: center; color: var(--grey); }
@keyframes hec-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Mobile menu (full-screen overlay) ---- */
.hec-nav-toggle { display: none; position: relative; z-index: 101; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; margin-left: auto; }
.hec-nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .2s, top .35s; }
.hec-nav-toggle span:nth-child(1) { top: 14px; }
.hec-nav-toggle span:nth-child(2) { top: 21px; }
.hec-nav-toggle span:nth-child(3) { top: 28px; }
.hec-nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); background: var(--gold); }
.hec-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hec-nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); background: var(--gold); }
.hec-mobile-backdrop { position: fixed; inset: 0; z-index: 99; background: rgba(8,54,32,.55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.hec-mobile-backdrop.is-open { opacity: 1; visibility: visible; }
.hec-mobile { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(400px, 88vw); max-width: 100%; background: var(--navy-dk); color: #fff; transform: translateX(100%); transition: transform .38s cubic-bezier(.22,1,.36,1), visibility .38s; visibility: hidden; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(8,54,32,.35); overscroll-behavior: contain; }
.hec-mobile.is-open { transform: none; visibility: visible; }
.hec-mobile-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 22px; border-bottom: 1px solid rgba(255,255,255,.10); flex-shrink: 0; }
.hec-mobile-title { font-family: var(--display); font-size: 18px; color: #fff; }
.hec-mobile-close { position: relative; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); cursor: pointer; transition: background .2s; }
.hec-mobile-close:hover { background: var(--gold); }
.hec-mobile-close span { position: absolute; left: 13px; right: 13px; top: 21px; height: 2px; background: #fff; border-radius: 2px; }
.hec-mobile-close:hover span { background: var(--navy-dk); }
.hec-mobile-close span:first-child { transform: rotate(45deg); }
.hec-mobile-close span:last-child { transform: rotate(-45deg); }
.hec-mobile-in { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 22px 28px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.hec-mobile-list { list-style: none; margin: 0; padding: 0; }
.hec-mobile-list > li { border-bottom: 1px solid rgba(255,255,255,.08); }
.hec-mobile-list a { display: block; color: #fff; text-decoration: none; font-family: var(--display); font-size: 22px; line-height: 1.3; padding: 14px 0; }
.hec-mobile-list li.current-menu-item > a { color: var(--gold); }
.hec-mobile-list .sub-menu { list-style: none; padding: 0 0 10px 14px; margin: 0; }
.hec-mobile-list .sub-menu li { border: 0; }
.hec-mobile-list .sub-menu a { font-family: var(--body); font-size: 15px; color: #CFE5D8; padding: 8px 0; line-height: 1.35; }
.hec-mobile-foot { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; }
.hec-header-actions--mobile { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.hec-header-actions--mobile .hec-header-account { color: #fff; font-size: 16px; }
.hec-header-actions--mobile .hec-btn { text-align: center; justify-content: center; padding: 15px; }
.hec-mobile-email { color: #CFE5D8; font-size: 14px; text-decoration: none; }
body.hec-menu-open { overflow: hidden; }
@media (max-width: 900px) {
	.hec-nav-toggle { display: block; }
	.hec-nav, .hec-header-actions .hec-header-cta { display: none; }
	.hec-header-actions { margin-left: auto; }
	/* My Account stays in the header on phones and tablets as an icon button (its label shows from 901px). */
	.hec-header-actions .hec-header-account { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 10px; color: var(--navy); }
	.hec-header-actions .hec-header-account:hover { background: var(--green-pale); }
	.hec-header-actions .hec-header-account span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
	.hec-header-actions .hec-header-account .hec-user-icon { width: 23px; height: 23px; margin: 0; }
}
/* Phones: smaller logo, basket + menu grouped at the right edge, menu button boxed and labelled */
@media (max-width: 760px) {
	.hec-header.hec-header .hec-header-in.hec-wrap { gap: 8px; padding: 8px 12px 8px 10px; min-height: 0; }
	.hec-brand { max-width: calc(100vw - 178px); }
	/* Logo as tall as the MENU button (40px) so it reads on a phone; it may use the width left of the account/basket/menu group. */
	.hec-brand-logo, .hec-brand-logo--svg, .hec-brand-logo.hec-brand-logo--svg { height: 40px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
	.hec-brand-mark { font-size: 17px; }
	.hec-header-actions { margin-left: auto; gap: 2px; order: 3; }
	.hec-basket-btn { padding: 6px; }
	.hec-basket-btn svg { width: 22px; height: 22px; }
	.hec-nav-toggle { order: 4; margin-left: 2px; width: 46px; height: 40px; border: 1.5px solid var(--navy); border-radius: 10px; background: #fff; }
	.hec-nav-toggle span { left: 13px; right: 13px; }
	.hec-nav-toggle span:nth-child(1) { top: 9px; }
	.hec-nav-toggle span:nth-child(2) { top: 15px; }
	.hec-nav-toggle span:nth-child(3) { top: 21px; }
	.hec-nav-toggle::after { content: "MENU"; position: absolute; left: 0; right: 0; bottom: 3px; font-size: 8px; font-weight: 700; letter-spacing: .12em; line-height: 1; color: var(--navy); text-align: center; }
	.hec-nav-toggle[aria-expanded="true"] { border-color: var(--gold); background: var(--navy-dk); }
	.hec-nav-toggle[aria-expanded="true"] span:nth-child(1), .hec-nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 15px; }
	.hec-nav-toggle[aria-expanded="true"]::after { content: "CLOSE"; color: var(--gold); }
}

/* ---- Cookie banner ---- */
.hec-cookie { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 80; display: flex; justify-content: center; pointer-events: none; }
.hec-cookie[hidden] { display: none; }
.hec-cookie-in { pointer-events: auto; max-width: 860px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 60px rgba(8,54,32,.20); padding: 20px 24px; display: flex; align-items: center; gap: 22px; transform: translateY(30px); opacity: 0; animation: hec-cookie-in .5s .8s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes hec-cookie-in { to { transform: none; opacity: 1; } }
.hec-cookie-txt strong { font-family: var(--display); color: var(--navy); font-size: 18px; display: block; margin-bottom: 4px; }
.hec-cookie-txt p { margin: 0; font-size: 13.5px; color: var(--grey); line-height: 1.5; }
.hec-cookie-txt a { color: var(--navy-lt); }
.hec-cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.hec-cookie.is-leaving .hec-cookie-in { animation: hec-cookie-out .3s forwards; }
@keyframes hec-cookie-out { to { transform: translateY(30px); opacity: 0; } }
@media (max-width: 640px) { .hec-cookie-in { flex-direction: column; align-items: stretch; } .hec-cookie-btns .hec-btn { flex: 1; justify-content: center; } }

/* ---- Loader (CSS only; hides on DOM ready — never blocks first paint) ---- */
.hec-loader { position: fixed; inset: 0; z-index: 200; background: var(--navy-dk); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transition: opacity .45s, visibility .45s; }
.hec-loader-mark { font-family: var(--display); color: #fff; font-size: 22px; letter-spacing: .01em; opacity: 0; animation: hec-fade .5s .1s forwards; }
.hec-loader-bar { width: 120px; height: 3px; background: rgba(255,255,255,.18); border-radius: 3px; overflow: hidden; position: relative; }
.hec-loader-bar::after { content: ""; position: absolute; left: -40%; width: 40%; height: 100%; background: var(--gold); border-radius: 3px; animation: hec-slide 1s infinite cubic-bezier(.4,0,.2,1); }
@keyframes hec-slide { to { left: 100%; } }
@keyframes hec-fade { to { opacity: 1; } }
body:not(.hec-loading) .hec-loader { opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hec-loader { display: none; } }

/* ---- Notices (WooCommerce + theme) — no .woocommerce ancestor needed ---- */
.hec-notices { max-width: 1160px; margin: 18px auto 0; padding: 0 24px; }
.hec-theme .woocommerce-message, .hec-theme .woocommerce-info, .hec-theme .woocommerce-error, .hec-notice {
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
	border: 1px solid var(--line); border-left: 4px solid var(--navy); background: #fff; color: var(--ink);
	border-radius: 14px; padding: 16px 18px 16px 20px; margin: 0 0 18px; list-style: none; box-shadow: 0 8px 26px rgba(12,74,47,.07); font-size: 15px;
}
.hec-theme .woocommerce-message::before, .hec-theme .woocommerce-info::before, .hec-theme .woocommerce-error::before { display: none; }
.hec-theme .woocommerce-message::after { content: none; }
.hec-theme .woocommerce-message { border-left-color: var(--gold); }
.hec-theme .woocommerce-error, .hec-notice--err { border-left-color: #b32d2e; background: #fdf1f1; }
.hec-notice--ok { border-left-color: var(--navy-lt); background: var(--green-pale); }
.hec-theme .woocommerce-message .button, .hec-theme .woocommerce-info .button, .hec-theme .woocommerce-error .button {
	order: -1; float: none; margin: 0; background: var(--gold); color: var(--navy-dk) !important; border-radius: 9px; padding: 10px 16px; font-weight: 600; font-size: 13.5px; text-decoration: none; border: 0; line-height: 1;
}
.hec-theme .woocommerce-message .button:hover { background: var(--gold-soft); }
.hec-theme .woocommerce-error li { list-style: none; }

/* ---- Contact form ---- */
.hec-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---- Motion states (JS adds .is-in; without JS everything is visible) ---- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); will-change: transform, opacity; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; } }
/* No-JS / slow-JS safety: the loader always clears itself. */
body.hec-loading .hec-loader { animation: hec-autohide 0s 1.3s forwards; }
@keyframes hec-autohide { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---- Fly-to-basket dot ---- */
.hec-fly { position: fixed; z-index: 300; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--gold); box-shadow: 0 6px 18px rgba(8,54,32,.35); pointer-events: none; transition: transform .6s cubic-bezier(.4,.1,.3,1), opacity .6s; }

/* ---- Site footer (one footer on every page, in the delivered design's style) ---- */
.hec-foot { background: #083620; color: #A9C6B5; padding: 36px 0 30px; font-size: 14.5px; font-family: var(--body); }
.hec-foot-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hec-foot-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.hec-foot-logo { font-family: var(--display); font-size: 1.62rem; font-weight: 700; color: #fff; letter-spacing: -.01em; line-height: 1; text-decoration: none; white-space: nowrap; }
.hec-foot-logo em { font-style: normal; color: var(--gold); }
.hec-foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.hec-foot-links a { color: #A9C6B5; text-decoration: none; display: inline-block; padding: 6px 0; }
.hec-foot-links a:hover { color: #fff; }
.hec-foot-disc { margin: 16px 0 0; line-height: 1.55; font-size: 12.8px; color: #8FAE9C; max-width: 92ch; }
/* Phones: the disclaimer folds behind one line ("About these courses and certificates") so the footer is not a wall of text. */
.hec-foot-disc-m { display: none; }
@media (max-width: 760px) {
	.hec-foot-disc { display: none; }
	.hec-foot-disc-m { display: block; margin: 14px 0 0; }
	.hec-foot-disc-m summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: #CFE5D8; padding: 8px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
	.hec-foot-disc-m summary::-webkit-details-marker { display: none; }
	.hec-foot-disc-m summary::before { content: ""; width: 8px; height: 8px; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg); margin: -4px 4px 0 2px; transition: transform .2s; }
	.hec-foot-disc-m[open] summary::before { transform: rotate(-135deg); margin-top: 2px; }
	.hec-foot-disc-m p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.55; color: #8FAE9C; }
	.hec-foot-disc-m p strong { color: #fff; }
	.hec-foot-disc-m p a { color: #CFE5D8; }
	.hec-foot { padding: 28px 0 24px; }
	.hec-foot-bot { font-size: 12.5px; padding-top: 12px; }
}
.hec-foot-disc strong { color: #fff; }
.hec-foot-disc a { color: #CFE5D8; }
.hec-foot-bot { padding-top: 18px; font-size: 13.5px; color: #7E96BB; margin: 0; }
.hec-foot-bot a { color: #A9C6B5; display: inline-block; padding: 6px 0; }
.hec-foot-bot a:hover { color: #fff; }
.hec-theme .hec-foot a { color: inherit; }

/* ---- Desktop nav: dropdowns for menu children ---- */
.hec-nav-list { align-items: center; }
.hec-nav-list > li { position: relative; }
.hec-nav-list > li > a { display: inline-block; padding: 10px 0; white-space: nowrap; }
.hec-nav-list li.menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: .6; }
.hec-nav-list .sub-menu { position: absolute; top: 100%; left: -14px; z-index: 70; min-width: 300px; max-width: 420px; margin: 0; padding: 10px 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 44px rgba(12,74,47,.16); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; }
.hec-nav-list > li:hover > .sub-menu, .hec-nav-list > li:focus-within > .sub-menu, .hec-nav-list > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.hec-nav-list .sub-menu li { display: block; }
.hec-nav-list .sub-menu a { display: block; padding: 9px 18px; font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--ink); white-space: normal; }
.hec-nav-list .sub-menu a:hover { background: var(--green-pale); color: var(--navy); }
.hec-nav-list > li:last-child > .sub-menu, .hec-nav-list > li:nth-last-child(2) > .sub-menu { left: auto; right: -14px; }
/* Keep the dropdown reachable across the gap */
.hec-nav-list > li > .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }

/* ---- Mobile nav: accordion for children — the label is a link, the chevron is its own 48px button ---- */
.hec-mobile-list li.menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
.hec-mobile-list li.menu-item-has-children > a { flex: 1 1 auto; min-width: 0; }
.hec-mobile-list .hec-sub-toggle { flex: 0 0 48px; width: 48px; height: 48px; margin: 0 -8px 0 0; padding: 0; background: transparent; border: 0; border-radius: 10px; cursor: pointer; position: relative; }
.hec-mobile-list .hec-sub-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -8px 0 0 -6px; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .25s; }
.hec-mobile-list li.menu-item-has-children.is-open > .hec-sub-toggle::after { transform: rotate(-135deg); margin-top: -3px; }
.hec-mobile-list li.menu-item-has-children.is-open > .hec-sub-toggle { background: rgba(255,255,255,.08); }
.hec-mobile-list .sub-menu { display: none; flex: 1 1 100%; }
.hec-mobile-list li.menu-item-has-children.is-open > .sub-menu { display: block; }
.hec-mobile-list .sub-menu a { padding: 10px 0; min-height: 40px; display: flex; align-items: center; }
.hec-mobile-list .sub-menu li.current-menu-item > a { color: var(--gold); }
.hec-mobile-list .sub-menu li:last-child a { padding-bottom: 12px; }
/* Whole parent row opens the list (6 Oct 2026); a second tap on the open label goes to its page */
.hec-mobile-list li.menu-item-has-children > a.hec-sub-label { cursor: pointer; }
.hec-mobile-list li.menu-item-has-children.is-open > a.hec-sub-label { color: var(--gold); }

/* ---- Header: full width so the menu never wraps ---- */
.hec-header .hec-header-in.hec-wrap { max-width: none; width: 100%; padding: 0 clamp(16px, 2.5vw, 40px); gap: clamp(14px, 1.8vw, 28px); }
/* Header width setting: "Contained" keeps the logo and basket within the page width on large screens. */
.hec-header.hec-header--contained .hec-header-in.hec-wrap { max-width: var(--hec-header-w, var(--wrap)); margin: 0 auto; padding: 0 24px; }
.hec-nav-list { gap: clamp(14px, 1.6vw, 26px); }
.hec-nav-list > li > a, .hec-header-account, .hec-header-cta { white-space: nowrap; }
.hec-header-actions { flex-shrink: 0; }
.hec-header-account { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1240px) {
	.hec-nav-list > li > a, .hec-header-account { font-size: 13.5px; }
	.hec-header-cta { padding: 12px 16px; font-size: 13.5px; }
}

.hec-minicart-bundle { margin-top: 4px; font-size: 12.5px; color: var(--grey); }
.hec-minicart-bundle summary { cursor: pointer; color: var(--navy-lt); }
.hec-minicart-bundle ol { margin: 6px 0 0 16px; padding: 0; }
.hec-minicart-bundle li { margin: 0 0 2px; }
.hec-minicart-bundle .hec-bundle-live { margin: 6px 0 0; color: var(--ink); }
.hec-theme .woocommerce td.product-name .hec-bundle-contents, .hec-theme .woocommerce td.product-name .hec-bundle-live { font-size: 13px; color: var(--grey); font-weight: 400; }
.hec-theme .woocommerce td.product-name dl.variation dd { margin: 0; }

/* ---- Account link icon ---- */
.hec-header-account { display: inline-flex; align-items: center; gap: 7px; }
.hec-user-icon { width: 18px; height: 18px; flex-shrink: 0; }
.hec-header-actions--mobile .hec-user-icon { width: 20px; height: 20px; }

/* ---- Announcement bar: continuous right-to-left ticker ---- */
.hec-announce--marquee { overflow: hidden; padding: 9px 0; text-align: left; white-space: nowrap; }
.hec-announce--marquee .hec-announce-track { display: flex; width: max-content; will-change: transform; animation: hec-marquee var(--hec-marquee-d, 24s) linear infinite; }
.hec-announce--marquee .hec-announce-group { display: inline-flex; align-items: center; flex: none; white-space: nowrap; }
.hec-announce--marquee .hec-announce-item { display: inline-block; }
.hec-announce--marquee .hec-announce-sep { display: inline-block; padding: 0 30px; color: var(--gold); }
.hec-announce--marquee:hover .hec-announce-track { animation-play-state: paused; }
@keyframes hec-marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-1 * var(--hec-marquee-w, 50%)), 0, 0); } }
@media (prefers-reduced-motion: reduce) {
	.hec-announce--marquee .hec-announce-track { animation: none; width: auto; }
	.hec-announce--marquee .hec-announce-group[aria-hidden] { display: none; }
	.hec-announce--marquee .hec-announce-group { white-space: normal; flex-wrap: wrap; justify-content: center; width: 100%; }
}

/* ---- No horizontal scroll, ever ---- */
html, body { max-width: 100%; overflow-x: clip; }
@supports not (overflow-x: clip) { html, body { overflow-x: hidden; } }
.hec-main, .hec-page--fragment, .hec-course--fragment, .hec-bundle--fragment { max-width: 100%; overflow-x: clip; }

/* ---- Logo style: Prominent (HEC Theme → Header → Logo style) ---- */
.hec-header--logo-prominent .hec-brand { display: inline-flex; align-items: center; padding: 7px 14px 7px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(12,74,47,.10), inset 0 -3px 0 var(--gold); transition: transform .18s ease, box-shadow .18s ease; }
.hec-header--logo-prominent .hec-brand:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(12,74,47,.16), inset 0 -3px 0 var(--gold); }
.hec-header--logo-prominent .hec-brand-logo { height: calc(var(--hec-logo-h, 44px) * 1.18); max-width: min(62vw, 360px); }
.hec-header--logo-prominent .hec-brand-mark { font-family: var(--display); font-weight: 700; font-size: clamp(19px, 2vw, 24px); letter-spacing: .005em; color: var(--navy); }
.hec-header--logo-prominent .hec-header-in { min-height: calc(var(--hec-logo-h, 42px) * 1.18 + 46px); }
.hec-header--logo-prominent.is-scrolled .hec-brand { box-shadow: 0 3px 10px rgba(12,74,47,.08), inset 0 -3px 0 var(--gold); }
@media (max-width: 640px) { .hec-header--logo-prominent .hec-brand { padding: 5px 10px 5px 8px; } .hec-header--logo-prominent .hec-brand-logo { height: calc(var(--hec-logo-h, 44px) * 1.05); } }

/* ---- Homepage hero: Focused (HEC Theme → Home hero) ---- */
.hec-hero-focus { position: relative; color: #fff; background: linear-gradient(155deg, #072F1B 0%, var(--navy) 48%, #12643D 100%); overflow: hidden; }
.hec-hero-focus::before { content: ""; position: absolute; right: -12%; top: -30%; width: 46vw; max-width: 640px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(253,199,44,.16), transparent 62%); pointer-events: none; }
.hec-hero-focus-in { position: relative; max-width: var(--wrap); margin: 0 auto; padding: clamp(44px, 7vw, 84px) 24px clamp(36px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hec-hero-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.hec-hero-focus h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3.1vw, 2.65rem); line-height: 1.14; letter-spacing: -.012em; color: #fff; margin: 0 0 16px; max-width: 24ch; }
.hec-hero-lede { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: #D7E8DD; margin: 0 0 24px; max-width: 58ch; }
.hec-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.hec-hero-ctas .hec-btn { padding: 14px 22px; font-size: 15px; }
.hec-hero-focus .hec-hero-ctas a.hec-btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); box-shadow: none; }
.hec-hero-focus .hec-hero-ctas a.hec-btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.hec-hero-trust { font-size: 13px; color: #B8D1C1; margin: 0; }
.hec-hero-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hec-hero-tiles li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-top: 3px solid var(--gold); border-radius: 14px; padding: 18px 16px 16px; backdrop-filter: blur(4px); }
.hec-hero-tiles strong { display: block; font-family: var(--display); font-size: clamp(20px, 1.9vw, 26px); font-weight: 600; line-height: 1.15; color: #fff; margin-bottom: 6px; }
.hec-hero-tiles span { display: block; font-size: 13.5px; line-height: 1.45; color: #C6DACB; }
.hec-hero-strip { position: relative; background: rgba(0,0,0,.18); border-top: 1px solid rgba(255,255,255,.12); }
.hec-hero-strip-in { max-width: var(--wrap); margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; font-size: 13.5px; font-weight: 500; letter-spacing: .02em; color: #E6F0E9; }
.hec-hero-strip-dot { color: var(--gold); }
@media (max-width: 900px) { .hec-hero-focus-in { grid-template-columns: 1fr; } .hec-hero-focus h1 { max-width: none; } }
@media (max-width: 520px) { .hec-hero-tiles { grid-template-columns: 1fr 1fr; gap: 10px; } .hec-hero-tiles li { padding: 14px 12px 12px; } .hec-hero-ctas .hec-btn { width: 100%; justify-content: center; } }

/* The delivered designs' basket bars carry a Clear button too; hidden so every page shows the same bar (Basket N · Total · View basket · ×). */
body .hec-theme [role="status"][data-live] .bk-clear.bk-live.clear, body [role="status"][data-live] .bk-clear.bk-live.clear { display: none !important; }

/* ---- Sticky "Bulk Buy" card (HEC Theme → Header) — compact, like probityandethics.com ---- */
.hec-bulk-tab { position: fixed; right: 0; top: 74%; z-index: 55; transform: translateY(-50%); width: 64px; }
.hec-bulk-tab[hidden] { display: none; }
.hec-bulk-tab-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1px; padding: 14px 5px 11px; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dk) 100%); color: #fff; text-decoration: none; border: 1px solid rgba(253,199,44,.45); border-right: 0; border-radius: 10px 0 0 10px; box-shadow: -4px 0 16px rgba(8,54,32,.26); transition: transform .18s ease, box-shadow .18s ease; }
.hec-bulk-tab-card:hover { color: #fff; transform: translateX(-2px); box-shadow: -6px 0 20px rgba(8,54,32,.32); }
.hec-bulk-tab-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--navy-dk); display: grid; place-items: center; margin-bottom: 7px; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.hec-bulk-tab-icon svg { width: 16px; height: 16px; }
.hec-bulk-tab-eyebrow { font-size: 7.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #BFD3C6; line-height: 1.3; }
.hec-bulk-tab-card .hec-bulk-tab-title { font-size: 11.5px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; margin: 2px 0 3px; color: #fff; }
.hec-bulk-tab-card .hec-bulk-tab-sub { font-size: 8.5px; font-weight: 600; color: #DCEDE2; line-height: 1.25; }
.hec-bulk-tab-card .hec-bulk-tab-price { font-size: 13px; font-weight: 800; color: var(--gold); line-height: 1.1; margin-top: 2px; }
.hec-bulk-tab-close { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: var(--navy-dk); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.hec-bulk-tab-close svg { width: 7px; height: 7px; }
.hec-bulk-tab-close:hover { background: var(--navy); }
@media (max-width: 760px) {
	.hec-bulk-tab { top: 76%; bottom: auto; width: 50px; transform: translateY(-50%); }
	.hec-bulk-tab.is-raised { top: 44%; } /* while the cookie banner is open it would otherwise sit behind it */
	.hec-bulk-tab-card { padding: 9px 3px 7px; gap: 0; }
	.hec-bulk-tab-icon { width: 22px; height: 22px; margin-bottom: 4px; }
	.hec-bulk-tab-icon svg { width: 11px; height: 11px; }
	.hec-bulk-tab-eyebrow { font-size: 6.5px; }
	.hec-bulk-tab-card .hec-bulk-tab-title { font-size: 9.5px; }
	.hec-bulk-tab-card .hec-bulk-tab-sub { font-size: 7px; }
	.hec-bulk-tab-card .hec-bulk-tab-price { font-size: 11px; }
	.hec-bulk-tab-close { width: 16px; height: 16px; left: -7px; top: -7px; }
	.hec-bulk-tab-close svg { width: 6px; height: 6px; }
	body.hec-has-float .hec-bulk-tab { bottom: auto; }
}

/* ---- Phones: the design pages' hero cards and small type (3 Oct 2026) ----
   Every delivered design sets its At a Glance labels and eyebrows at 11.5px with !important;
   on phones nothing goes under 12px, the label column is wide enough for one long word
   ("Organisation team training", "Certificates"), and a word that still does not fit wraps
   instead of running under the value. Specificity beats the designs' own rules. */
@media (max-width: 480px) {
	html body div[class^="hec-au-"] .hero .glance-card dt,
	html body div[class^="hec-au-"] .hero--v7 .hx-row dt,
	html body #hea-bulkbuy .hea-glance dt { font-size: 12px !important; letter-spacing: .04em !important; overflow-wrap: anywhere !important; padding-top: 9px !important; }
	html body div[class^="hec-au-"] .hero .glance-card dd,
	html body div[class^="hec-au-"] .hero--v7 .hx-row dd,
	html body #hea-bulkbuy .hea-glance dd { font-size: 14px !important; }
	html body div[class^="hec-au-"] .hero .glance-card dl,
	html body #hea-bulkbuy .hea-glance dl { grid-template-columns: 104px 1fr !important; gap: 0 10px !important; }
	/* Home card: its labels are the long ones ("Organisation team training", "Face-to-face courses"), so on phones each row stacks — label above value. */
	html body div[class^="hec-au-"] .hero--v7 .hx-row { grid-template-columns: 1fr !important; gap: 2px 0 !important; padding: 9px 0 !important; }
	html body div[class^="hec-au-"] .hero--v7 .hx-row dt { padding-top: 0 !important; }
	html body div[class^="hec-au-"] .hero .glance-card .glance-k,
	html body div[class^="hec-au-"] .hero .hx-k,
	html body div[class^="hec-au-"] .hero .eyebrow,
	html body div[class^="hec-au-"] .hero .hx-eyebrow,
	html body div[class^="hec-au-"] .hero .hx-tag,
	html body div[class^="hec-au-"] .heroeyebrow,
	html body #hea-bulkbuy .hea-glance__h,
	html body #hea-bulkbuy .hea-hero .hea-eyebrow,
	html body #hea-bulkbuy .hea-eyebrow,
	html body div[class^="hec-au-"] .hero .hx-badge,
	html body div[class^="hec-au-"] .hx-cpick,
	html body div[class^="hec-au-"] .hx-badge { font-size: 12px !important; }
	html body div[class^="hec-au-"] .hero .glance-card .issuer b,
	html body div[class^="hec-au-"] .hero .glance-card .issuer small { font-size: 12.8px !important; }
}
@media (max-width: 360px) {
	html body div[class^="hec-au-"] .hero .glance-card dl,
	html body #hea-bulkbuy .hea-glance dl { grid-template-columns: 90px 1fr !important; }
	.hec-foot-logo { white-space: normal; font-size: 1.4rem; }
}
/* Team / author cards (home and the Board pages) stack on phones: photo above the bio, not a narrow text column. */
@media (max-width: 600px) {
	html body div[class^="hec-au-"] .author { flex-direction: column !important; gap: 14px !important; padding: 20px 18px !important; }
	html body div[class^="hec-au-"] .author img { width: 120px !important; height: 120px !important; }
	html body div[class^="hec-au-"] .author p { max-width: none !important; }
}

/* Phones: the logo matches the MENU button height whatever the logo style setting. */
@media (max-width: 760px) {
	.hec-header .hec-brand .hec-brand-logo, .hec-header .hec-brand .hec-brand-logo--svg, .hec-header--logo-prominent .hec-brand-logo { height: 40px !important; max-width: 100% !important; }
	.hec-header--logo-prominent .hec-brand { padding: 3px 8px 3px 6px; }
}

/* ---- Logo colour (6 Oct 2026): the gold in the logo is the site gold (#FDC72C) exactly, matching the
   "Find your Board" button. The 3 Oct contrast/saturate filter is gone (it pushed the gold darker);
   the deeper navy from that trial is kept by recolouring the dark paths of the inline SVG directly.
   TO REVERT to the artwork as delivered: delete this block. ---- */
.hec-header .hec-brand-logo, .hec-header .hec-brand-logo--svg { filter: none; }
.hec-header .hec-brand-logo--svg [fill="#253041"] { fill: #0A182E; }

/* ---- Hero regulator line (7 Oct 2026): the delivered designs set white-space:nowrap on .heroeyebrow, so a long line
   ("Ethics · Professionalism · Probity · Ahpra and the 15 National Boards" on About) ran under the At a Glance card.
   On desktop it now wraps and stays within the copy column (card 420px + 40px gap). Every design page. ---- */
@media (min-width: 861px) {
	html body div[class^="hec-au-"] .hero-brand .heroeyebrow { white-space: normal !important; max-width: calc(100% - 460px) !important; }
}
