/* v1.3.25: front-page header only. Homepage content styles stay in reference.css. */
@font-face {
	font-family: "HFH Poppins";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/poppins-latin-400.woff2") format("woff2");
}
@font-face {
	font-family: "HFH Poppins";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/poppins-latin-500.woff2") format("woff2");
}

/* Utility row: a compact yellow CTA and native-size text/social marks. */
body.hfh-reference-page .hfh-ref-topbar { position: relative; z-index: 12; min-height: 32px; margin: 0; border: 0; overflow: visible; background: var(--hfh-green); color: var(--hfh-white); font: 400 14px/16px var(--hfh-heading-font); }
body.hfh-reference-page .hfh-ref-topbar-inner { width: 100%; max-width: var(--hfh-content-width); min-height: 32px; height: 32px; align-items: flex-start; gap: 24px; overflow: visible; }
/* A 40px CTA hangs 8px below the 32px green strip. */
body.hfh-reference-page .hfh-ref-topbar .hfh-header-cta { display: inline-flex; box-sizing: border-box; min-height: 40px; height: 40px; align-items: center; gap: 8px; flex: 0 0 auto; padding: 12px 16px; border: 0; border-radius: 0 0 8px 8px; background: var(--hfh-yellow); color: var(--hfh-black); font: 700 14px/16px var(--hfh-heading-font); text-decoration: none; }
body.hfh-reference-page .hfh-ref-topbar .hfh-header-cta:hover { background: var(--hfh-orange); color: var(--hfh-black); text-decoration: none; }
body.hfh-reference-page .hfh-ref-topbar .hfh-header-utility { display: flex; height: 32px; align-items: center; gap: 0; color: var(--hfh-white); }
body.hfh-reference-page .hfh-ref-topbar .hfh-header-start { display: inline-flex; min-height: 32px; align-items: center; gap: 8px; color: var(--hfh-yellow); font: 600 14px/16px var(--hfh-heading-font); white-space: nowrap; }
body.hfh-reference-page .hfh-header-start strong { font-weight: 700; }
body.hfh-reference-page .hfh-header-start > svg { flex: 0 0 16px; color: currentColor; }
body.hfh-reference-page .hfh-header-contact { display: inline-flex; height: 16px; align-items: center; margin-left: 16px; padding-left: 16px; border-left: 2px solid rgba(0, 0, 0, 0.16); font-weight: 500; }
body.hfh-reference-page .hfh-header-socials { display: flex; align-items: center; gap: 16px; margin-left: 0; margin-right: 16px; }
body.hfh-reference-page .hfh-header-socials::after { content: ""; display: block; flex: 0 0 auto; height: 16px; border-left: 2px solid rgba(0, 0, 0, 0.16); }
body.hfh-reference-page .hfh-ref-topbar .hfh-header-social { display: inline-flex; width: 18px; height: 18px; min-height: 18px; align-items: center; justify-content: center; padding: 0; border: 0; color: var(--hfh-white); text-decoration: none; }
body.hfh-reference-page .hfh-header-social .kadence-svg-iconset { display: inline-flex; }
body.hfh-reference-page .hfh-header-social svg { width: 18px; height: 18px; }
body.hfh-reference-page .hfh-ref-topbar a.hfh-header-social:hover { color: var(--hfh-yellow); }

/* Trending shortcuts: matching fine neutral rules above and below. */
body.hfh-reference-page .hfh-trending { border-top: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(0, 0, 0, 0.1); background: var(--hfh-white); color: var(--hfh-black); }
body.hfh-reference-page .hfh-trending-inner { display: flex; align-items: center; justify-content: center; gap: 24px; width: calc(100% - 40px); max-width: var(--hfh-content-width); min-height: 52px; margin-inline: auto; }
body.hfh-reference-page .hfh-trending-label { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--hfh-green); font-size: 28px; line-height: 1; }
body.hfh-reference-page .hfh-trending-label > svg { flex: 0 0 18px; color: var(--hfh-green); }
body.hfh-reference-page .hfh-trending-links { display: flex; align-items: center; gap: 28px; min-width: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: thin; }
body.hfh-reference-page .hfh-trending-links li { flex: 0 0 auto; margin: 0; padding: 0; }
body.hfh-reference-page .hfh-trending-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--hfh-black); font: 700 14px/22px var(--hfh-heading-font); text-decoration: none; white-space: nowrap; }
body.hfh-reference-page .hfh-trending-links a:hover { color: var(--hfh-forest); text-decoration: underline; text-underline-offset: 4px; }
body.hfh-reference-page .hfh-trending-links a:focus-visible { outline: 2px solid var(--hfh-forest); outline-offset: -2px; border-radius: 2px; }
@media (max-width: 767px) {
	body.hfh-reference-page .hfh-trending-inner { gap: 18px; }
	body.hfh-reference-page .hfh-trending-links { gap: 22px; }
}

/* Keep Kadence's primary menu and its keyboard/dropdown controls intact. */
body.hfh-reference-page #masthead #main-header .site-main-header-wrap .site-container { width: 100%; max-width: var(--hfh-content-width); padding-inline: 0; }
body.hfh-reference-page #masthead .site-main-header-inner-wrap { min-height: 64px; grid-template-columns: auto minmax(0, 1fr); column-gap: 0; }
body.hfh-reference-page #main-header .site-main-header-inner-wrap { margin: 12px 0; }
body.hfh-reference-page #masthead .site-header-main-section-right { min-width: 0; justify-content: flex-end; }
body.hfh-reference-page #masthead .site-branding { padding: 0; }
body.hfh-reference-page #masthead .site-branding a.brand img { width: 207px; height: auto; max-width: 207px; max-height: 65px; object-fit: contain; }
body.hfh-reference-page #main-header .site-header-item[data-section="kadence_customizer_primary_navigation"] { margin: 0; }
body.hfh-reference-page #main-header .header-navigation { margin: 0; }
body.hfh-reference-page #main-header .header-navigation .header-menu-container > ul { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 0; margin: 0; }
body.hfh-reference-page #main-header .header-navigation .header-menu-container > ul > li { margin: 0 24px; padding: 0; }
body.hfh-reference-page #masthead .header-navigation .header-menu-container > ul > li > a { position: relative; padding: 8px 0; color: var(--hfh-black); font: 700 18px/18px var(--hfh-heading-font); white-space: nowrap; }
body.hfh-reference-page #masthead .header-navigation .header-menu-container > ul > li > a::before { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--hfh-forest); opacity: 0; content: ""; }
body.hfh-reference-page #masthead .header-navigation .header-menu-container > ul > li > a::after { display: none; }
body.hfh-reference-page #masthead .header-navigation .header-menu-container > ul > li:is(:hover, :focus-within, .menu-item--toggled-on) > a::before { opacity: 1; }
body.hfh-reference-page #masthead .header-navigation .header-menu-container > ul > li:is(.current-menu-item, .current_page_item) > a { background: transparent; color: var(--hfh-black); text-decoration: none; }
body.hfh-reference-page #masthead .header-navigation .header-menu-container > ul > li > a:hover { color: var(--hfh-forest); text-decoration: none; }
body.hfh-reference-page #masthead .header-navigation .dropdown-nav-toggle { margin-left: 14px; color: var(--hfh-black); }
body.hfh-reference-page #masthead .header-navigation .header-menu-container > ul > li > a .nav-drop-title-wrap { padding-right: calc(1em + 8px); }
/* Kadence also fixes anchor widths and LI dividers, so constrain every panel layer. */
body.hfh-reference-page #masthead .header-navigation .sub-menu { width: 150px; min-width: 150px; max-width: 150px; margin-top: 0; padding: 0; border: 0; border-radius: 0; background: var(--hfh-green); box-shadow: none; }
body.hfh-reference-page #masthead .header-navigation .header-menu-container > ul > li > .sub-menu { left: 50%; right: auto; margin-top: 8px; margin-left: -75px; }
body.hfh-reference-page #masthead .header-navigation .header-menu-container > ul > li > .sub-menu::before { position: absolute; top: -8px; left: 0; right: 0; height: 8px; content: ""; }
body.hfh-reference-page #masthead .header-navigation .header-menu-container > ul > li > .sub-menu::after { position: absolute; top: -8px; left: 50%; width: 0; height: 0; margin-left: -8px; border-right: 8px solid transparent; border-bottom: 8px solid var(--hfh-green); border-left: 8px solid transparent; content: ""; }
body.hfh-reference-page #masthead .header-navigation .sub-menu > li { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.hfh-reference-page #masthead .header-navigation .header-menu-container .sub-menu > li > a { display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; margin: 0; padding: 8px 12px; border: 0; border-radius: 0; background: var(--hfh-green); color: var(--hfh-white); font: 700 18px/18px var(--hfh-heading-font); text-decoration: none; box-shadow: none; }
body.hfh-reference-page #masthead .header-navigation .header-menu-container .sub-menu > li:first-child > a { padding-top: 12px; }
body.hfh-reference-page #masthead .header-navigation .header-menu-container .sub-menu > li:last-child > a { padding-bottom: 12px; }
body.hfh-reference-page #masthead .header-navigation .sub-menu .sub-menu { top: 0; left: 100%; right: auto; min-height: 0; margin: 0; background: var(--hfh-forest); }
body.hfh-reference-page #masthead .header-navigation .sub-menu .sub-menu.sub-menu-edge { left: auto; right: 100%; }
body.hfh-reference-page #masthead .header-navigation .sub-menu .sub-menu::before,
body.hfh-reference-page #masthead .header-navigation .sub-menu .sub-menu::after { display: none; content: none; }
body.hfh-reference-page #masthead .header-navigation .header-menu-container .sub-menu .sub-menu > li > a { background: var(--hfh-forest); font-weight: 600; }
body.hfh-reference-page #masthead .header-navigation .header-menu-container .sub-menu li:is(:hover, :focus-within, .menu-item--toggled-on) > a { background: var(--hfh-yellow); color: var(--hfh-black); text-decoration: none; }
body.hfh-reference-page #masthead .header-navigation .sub-menu .dropdown-nav-toggle { right: 0; margin: 0; color: inherit; }
body.hfh-reference-page #masthead .header-navigation .sub-menu .dropdown-nav-toggle .kadence-svg-iconset { transform: rotate(-90deg); }
body.hfh-reference-page #masthead .header-navigation :is(a, button):focus-visible { outline: 2px solid var(--hfh-forest); outline-offset: 3px; }
body.hfh-reference-page #masthead .header-navigation .sub-menu :is(a, button):focus-visible { outline-color: var(--hfh-black); outline-offset: -3px; }
body.hfh-reference-page #mobile-drawer .mobile-navigation ul li:is(.current-menu-item, .current_page_item) > a,
body.hfh-reference-page #mobile-drawer .mobile-navigation ul li:is(.current-menu-item, .current_page_item) > .drawer-nav-drop-wrap > a { color: var(--hfh-black); text-decoration: none; }
body.hfh-reference-page #mobile-drawer .mobile-navigation ul li > a:hover,
body.hfh-reference-page #mobile-drawer .mobile-navigation ul li > .drawer-nav-drop-wrap > a:hover { color: var(--hfh-forest); text-decoration: underline; }

/* Visible post search: 164 x 44, black outline, rounded ends, icon at right. */
body.hfh-reference-page #masthead #primary-menu .hfh-ref-menu-search { flex: 0 0 164px; align-self: center; margin-left: 24px; margin-right: 0; }
body.hfh-reference-page :is(#masthead, #mobile-drawer) .hfh-ref-menu-search form { position: relative; width: 164px; min-height: 44px; height: 44px; border: 2px solid var(--hfh-black); border-radius: 40px; background: var(--hfh-white); }
body.hfh-reference-page :is(#masthead, #mobile-drawer) .hfh-ref-menu-search input[type="search"] { width: 100%; height: 40px; padding: 8px 44px 8px 14px; border: 0; border-radius: 40px; background: transparent; color: var(--hfh-black); font: 600 18px/24px var(--hfh-heading-font); }
body.hfh-reference-page :is(#masthead, #mobile-drawer) .hfh-ref-menu-search input[type="search"]::placeholder { color: var(--hfh-black); opacity: 1; }
body.hfh-reference-page :is(#masthead, #mobile-drawer) .hfh-ref-menu-search button { position: absolute; top: 0; right: 0; width: 40px; height: 40px; min-height: 0; border: 0; border-radius: 50%; background: transparent; color: var(--hfh-black); }
body.hfh-reference-page :is(#masthead, #mobile-drawer) .hfh-ref-menu-search button:hover { background: transparent; color: var(--hfh-forest); }
body.hfh-reference-page #mobile-drawer .hfh-ref-menu-search form { width: 100%; max-width: 360px; }

/* The mobile trigger opens Kadence's native dialog and uses its focus handling. */
body.hfh-reference-page #search-drawer .drawer-inner { background: var(--hfh-white); color: var(--hfh-black); }
body.hfh-reference-page #search-drawer .drawer-header .drawer-toggle { color: var(--hfh-forest); }
body.hfh-reference-page #search-drawer .drawer-inner form { position: relative; max-width: 680px; color: var(--hfh-black); }
body.hfh-reference-page #search-drawer .drawer-inner form label { flex: 1; }
body.hfh-reference-page #search-drawer .drawer-inner input.search-field { padding: 12px 70px 12px 20px; border: 2px solid var(--hfh-black); border-radius: 40px; background: var(--hfh-white); color: var(--hfh-black); font: 600 18px/1.5 var(--hfh-heading-font); }
body.hfh-reference-page #search-drawer .drawer-inner input.search-field:focus { color: var(--hfh-black); box-shadow: none; }
body.hfh-reference-page #search-drawer .drawer-inner form .kadence-search-icon-wrap { color: var(--hfh-black); }
body.hfh-reference-page #search-drawer :is(button, input):focus-visible { outline: 3px solid var(--hfh-forest); outline-offset: 3px; }

@media (min-width: 1024px) {
	body.hfh-reference-page #masthead #main-header { display: block; }
	body.hfh-reference-page #masthead #mobile-header { display: none; }
	/* Align the upright h with the CTA; let its swash hang into the left gutter.
	   Reduce the overhang on narrow desktops, retaining room for the scrollbar. */
	body.hfh-reference-page #main-header .site-branding a.brand { transform: translateX(clamp(-28.54px, calc((var(--hfh-content-width) - 100vw) / 2 + 16px), 0px)); }
}
@media (min-width: 1024px) and (max-width: 1199px) {
	body.hfh-reference-page #masthead .hfh-ref-menu-search input[type="search"] { font-size: 16px; }
}
@media (max-width: 1023px) {
	body.hfh-reference-page { --hfh-header-admin-offset: 0px; }
	body.hfh-reference-page #masthead { position: sticky; top: var(--hfh-header-admin-offset); z-index: 1000; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16); }
	body.hfh-reference-page .hfh-ref-topbar { display: none; }
	body.hfh-reference-page #masthead #main-header { display: none; }
	body.hfh-reference-page #masthead #mobile-header { display: block; }
	body.hfh-reference-page #mobile-header .site-main-header-wrap .site-container { width: 100%; max-width: none; padding: 0 20px; }
	body.hfh-reference-page #mobile-header .site-main-header-inner-wrap { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; min-height: 64px; margin: 0; }
	body.hfh-reference-page #mobile-header .site-main-header-inner-wrap > .site-header-section { display: contents; }
	body.hfh-reference-page #mobile-header .site-main-header-inner-wrap .site-header-item[data-section="title_tagline"] { grid-column: 2; grid-row: 1; justify-self: center; min-width: 0; margin: 0; }
	body.hfh-reference-page #mobile-header .site-branding { padding: 0; }
	body.hfh-reference-page #masthead #mobile-header .site-branding a.brand img { width: auto; height: 44px; max-width: calc(100vw - 128px); max-height: 44px; object-fit: contain; }
	body.hfh-reference-page #mobile-header .site-header-item-navgation-popup-toggle { grid-column: 1; grid-row: 1; justify-self: start; margin: 0; }
	body.hfh-reference-page #mobile-header .site-header-item[data-section="kadence_customizer_header_search"] { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; }
	body.hfh-reference-page #mobile-header :is(#mobile-toggle, .search-toggle-open) { display: flex; width: 48px; height: 48px; min-height: 48px; align-items: center; justify-content: center; margin: 0; padding: 12px; border: 0; border-radius: 0; background: transparent; color: var(--hfh-black); box-shadow: none; }
	body.hfh-reference-page #mobile-header :is(#mobile-toggle, .search-toggle-open):hover { color: var(--hfh-forest); }
	body.hfh-reference-page #mobile-header :is(#mobile-toggle, .search-toggle-open):focus-visible { outline: 3px solid var(--hfh-forest); outline-offset: -3px; }
	body.hfh-reference-page #mobile-header :is(.menu-toggle-label, .search-toggle-label) { display: none; }
	body.hfh-reference-page #mobile-header :is(.menu-toggle-icon, .search-toggle-icon) svg { width: 24px; height: 24px; }
	body.hfh-reference-page #mobile-header #mobile-toggle { padding: 10px; }
	body.hfh-reference-page #mobile-header #mobile-toggle .menu-toggle-icon svg { width: 28px; height: 28px; }
	body.hfh-reference-page :is(#mobile-drawer, #search-drawer) { top: 0; }
	body.hfh-reference-page :is(#mobile-drawer, #search-drawer) .drawer-inner,
	body.hfh-reference-page :is(#mobile-drawer, #search-drawer) .drawer-overlay { top: calc(64px + var(--hfh-header-admin-offset)); }
	body.hfh-reference-page :is(#mobile-drawer, #search-drawer) .drawer-inner { width: 100%; max-width: none; left: 0; right: 0; }
	body.hfh-reference-page :is(#mobile-drawer, #search-drawer) .drawer-header { min-height: 48px; padding-inline: 20px; }
	body.hfh-reference-page #mobile-drawer .drawer-content { width: 100%; max-width: var(--hfh-content-width); margin-inline: auto; padding: 0 20px 24px; text-align: left; }
	body.hfh-reference-page #mobile-drawer .mobile-navigation ul li > a,
	body.hfh-reference-page #mobile-drawer .mobile-navigation .drawer-nav-drop-wrap > a { min-height: 54px; box-sizing: border-box; padding: 18px 10px; font: 700 18px/18px var(--hfh-heading-font); }
	body.hfh-reference-page #mobile-drawer .mobile-navigation ul ul li > a,
	body.hfh-reference-page #mobile-drawer .mobile-navigation ul ul .drawer-nav-drop-wrap > a { font-weight: 600; }
	body.hfh-reference-page #mobile-drawer .mobile-navigation .drawer-sub-toggle { min-width: 48px; font-size: 18px; }
	body.hfh-reference-page #search-drawer .drawer-inner { bottom: auto; max-height: calc(100vh - 64px - var(--hfh-header-admin-offset)); }
	body.hfh-reference-page #search-drawer .drawer-inner .drawer-content { position: static; display: block; padding: 0 20px 24px; }
	body.hfh-reference-page #search-drawer .drawer-inner form { max-width: none; }
}
@media (min-width: 783px) and (max-width: 1023px) {
	body.hfh-reference-page.admin-bar { --hfh-header-admin-offset: 32px; }
}
@media (max-width: 782px) {
	body.hfh-reference-page.admin-bar { --hfh-header-admin-offset: 46px; }
}
@media (max-width: 600px) {
	body.hfh-reference-page.admin-bar #wpadminbar { position: fixed; }
}
@media (max-width: 767px) {
	body.hfh-reference-page #mobile-header .site-main-header-wrap .site-container { padding-inline: 10px; }
}
