/* Padelinn header on top of Divi's #main-header: white, full width and compact, with the
   original Padelinn logo. Every rule is scoped to body.pdl-hdr so switching the header off
   (setting header_style = off) restores Divi's own. */
body.pdl-hdr {
	--hd-bg: #fff;
	--hd-ink: #14213D;
	--hd-muted: #5E6A80;
	--hd-court: #1446B4;
	--hd-ball: #E4F222;
	--hd-hover: #F1F4FA;
	--hd-line: #E5EAF2;
	--hd-h: 64px;
	--hd-gutter: clamp(16px, 3vw, 48px);
	--hd-font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.pdl-hdr #main-header {
	background: var(--hd-bg) !important; font-family: var(--hd-font);
	box-shadow: 0 1px 0 var(--hd-line) !important; transition: box-shadow .2s ease;
}
body.pdl-hdr #main-header.et-fixed-header { box-shadow: 0 1px 0 var(--hd-line), 0 10px 28px -20px rgba(20, 33, 61, .45) !important; }
body.pdl-hdr #main-header .et_menu_container {
	width: calc(100% - 2 * var(--hd-gutter)); max-width: none; margin: 0 auto;
	display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--hd-h);
}
body.pdl-hdr #main-header .et_menu_container::after { display: none; }

/* Original logo (green and black PNG, made for white). */
body.pdl-hdr .logo_container { position: static; height: auto; width: auto; flex: none; display: flex; align-items: center; }
body.pdl-hdr .logo_container .logo_helper { display: none; }
body.pdl-hdr .logo_container > a { display: inline-flex; align-items: center; border-radius: 8px; }
body.pdl-hdr .logo_container > a:focus-visible { outline: 2px solid var(--hd-court); outline-offset: 6px; }
body.pdl-hdr #logo { display: block !important; width: auto !important; height: 36px !important; max-height: none !important; max-width: none; margin: 0; }
body.pdl-hdr .pdl-wordmark { display: none; }

/* Desktop navigation */
body.pdl-hdr #et-top-navigation { float: none; padding: 0 !important; display: flex; align-items: center; gap: 6px; font-weight: inherit; }
body.pdl-hdr #top-menu-nav { display: flex; }
body.pdl-hdr #top-menu { display: flex; align-items: center; gap: 2px; float: none; }
body.pdl-hdr #top-menu > li { padding: 0 !important; position: relative; }
body.pdl-hdr #top-menu > li > a {
	position: relative; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px !important;
	color: var(--hd-ink) !important; opacity: 1 !important; font-family: var(--hd-font); font-size: 15px; font-weight: 650; letter-spacing: -.005em;
	border-radius: 999px; transition: background-color .15s, color .15s;
}
body.pdl-hdr #top-menu > li > a::before { /* active / open underline */
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px;
	background: var(--hd-court); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
body.pdl-hdr #top-menu > li > a:hover,
body.pdl-hdr #top-menu > li:hover > a,
body.pdl-hdr #top-menu > li.pdl-mega-on > a { background: var(--hd-hover); color: var(--hd-court) !important; }
body.pdl-hdr #top-menu > li.current-menu-item > a::before,
body.pdl-hdr #top-menu > li.current-menu-ancestor > a::before,
body.pdl-hdr #top-menu > li.current_page_item > a::before,
body.pdl-hdr #top-menu > li.pdl-mega-on > a::before { transform: scaleX(1); }
body.pdl-hdr #top-menu > li > a:focus-visible { outline: 2px solid var(--hd-court); outline-offset: 0; }
/* Chevron for items with a dropdown or the countries panel */
body.pdl-hdr #top-menu > li.menu-item-has-children > a,
body.pdl-hdr #top-menu > li.pdl-mega-item > a { padding-right: 30px !important; }
body.pdl-hdr #top-menu > li.menu-item-has-children > a::after,
body.pdl-hdr #top-menu > li.pdl-mega-item > a::after {
	content: "" !important; font-family: inherit !important; display: block !important; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; margin: -5px 0 0 !important;
	border: solid currentColor; border-width: 0 1.7px 1.7px 0; transform: rotate(45deg); opacity: .7; transition: transform .2s;
}
body.pdl-hdr #top-menu > li.menu-item-has-children:hover > a::after,
body.pdl-hdr #top-menu > li.pdl-mega-on > a::after { transform: translateY(2px) rotate(225deg); }
body.pdl-hdr #top-menu > li.menu-item-has-children > a::before,
body.pdl-hdr #top-menu > li.pdl-mega-item > a::before { right: 30px; }

/* Dropdowns: open while the pointer (or keyboard focus) is on the item, closed as soon as it leaves. */
body.pdl-hdr #top-menu li ul.sub-menu {
	top: calc(100% + 6px) !important; left: 0; width: 250px !important; padding: 8px !important; border: 0 !important; border-radius: 14px;
	background: #fff; box-shadow: 0 22px 50px -18px rgba(20, 33, 61, .35), 0 0 0 1px rgba(20, 33, 61, .07);
	display: block !important; visibility: hidden !important; opacity: 0 !important; transform: translateY(-4px);
	transition: opacity .14s ease, transform .14s ease, visibility 0s linear .14s !important; pointer-events: none;
}
body.pdl-hdr #top-menu li:hover > ul.sub-menu,
body.pdl-hdr #top-menu li:focus-within > ul.sub-menu {
	visibility: visible !important; opacity: 1 !important; transform: none; pointer-events: auto;
	transition: opacity .14s ease, transform .14s ease, visibility 0s !important;
}
body.pdl-hdr #top-menu li.pdl-mega-item > ul.sub-menu { display: none !important; }
body.pdl-hdr #top-menu li ul.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
body.pdl-hdr #top-menu li ul.sub-menu li { padding: 0 !important; width: 100%; }
body.pdl-hdr #top-menu li ul.sub-menu a {
	width: 100% !important; padding: 9px 12px !important; border-radius: 9px; color: var(--hd-ink) !important; opacity: 1 !important;
	font-family: var(--hd-font); font-size: 14.5px; font-weight: 600; line-height: 1.3; transition: background-color .12s;
}
body.pdl-hdr #top-menu li ul.sub-menu a:hover, body.pdl-hdr #top-menu li ul.sub-menu a:focus-visible { background: var(--hd-hover); color: var(--hd-court) !important; }
body.pdl-hdr #top-menu li ul.sub-menu li.current-menu-item > a { background: var(--hd-hover); }
body.pdl-hdr #top-menu li ul.sub-menu li > a::after { display: none; }
body.pdl-hdr #top-menu li li ul.sub-menu { top: -8px !important; left: calc(100% + 8px); }

/* Language and account: compact, set apart from the content links */
body.pdl-hdr #top-menu > li.pdl-lang-menu { margin-left: 10px; }
body.pdl-hdr #top-menu > li.pdl-lang-menu::before { content: ""; position: absolute; left: -6px; top: 11px; bottom: 11px; width: 1px; background: var(--hd-line); }
body.pdl-hdr #top-menu > li.pdl-lang-menu > a { padding: 0 28px 0 12px !important; font-size: 14px; }
body.pdl-hdr #top-menu > li.pdl-lang-menu > a::before { display: none; }
body.pdl-hdr #top-menu > li.pdl-lang-menu > a::after { right: 12px; }
body.pdl-hdr #top-menu > li.pdl-lang-menu .sub-menu { left: auto; right: 0; width: 200px !important; }
body.pdl-hdr #top-menu > li.pdl-account-menu { order: 99; }
body.pdl-hdr #top-menu > li.pdl-account-menu > a { width: 42px; justify-content: center; padding: 0 !important; }
body.pdl-hdr #top-menu > li.pdl-account-menu > a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.pdl-hdr #top-menu > li.pdl-account-menu > a::before { display: none; }
body.pdl-hdr #top-menu > li.pdl-account-menu > a svg, body.pdl-hdr #top-menu > li.pdl-lang-menu > a svg { width: 19px; height: 19px; }
body.pdl-hdr #top-menu > li.pdl-account-menu.current-menu-item > a { background: var(--hd-hover); }

/* Search button */
body.pdl-hdr #et_top_search { float: none; margin: 0 !important; display: flex; align-items: center; width: auto; }
body.pdl-hdr #et_search_icon {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
	background: var(--hd-ball); color: var(--hd-ink); transition: transform .15s, box-shadow .15s;
}
body.pdl-hdr #et_search_icon::before { content: "" !important; font-family: inherit !important; position: static !important; width: 18px; height: 18px;
	background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
body.pdl-hdr #et_search_icon:hover { transform: scale(1.06); box-shadow: 0 0 0 5px rgba(228, 242, 34, .35); }
body.pdl-hdr #et_search_icon:focus-visible { outline: 2px solid var(--hd-court); outline-offset: 3px; }

/* Divi's site search bar, retargeted to the directory by header.js */
body.pdl-hdr .et_search_outer { top: 0; pointer-events: none; }
body.pdl-hdr .et_search_form_container { height: 100% !important; width: calc(100% - 2 * var(--hd-gutter)); max-width: none; background: var(--hd-bg); }
body.pdl-hdr .et_search_form_container.et_pb_search_visible { display: flex; align-items: center; pointer-events: auto; }
body.pdl-hdr #main-header .et-search-form { position: relative; width: 100% !important; max-width: none !important; top: auto !important; bottom: auto !important; margin: 0 56px 0 0 !important; }
body.pdl-hdr #main-header .et-search-form input {
	width: 100%; height: 46px; padding: 0 20px 0 48px; border-radius: 999px; background-color: var(--hd-hover) !important; color: var(--hd-ink) !important;
	font-family: var(--hd-font); font-size: 16px; font-weight: 500; position: static; box-shadow: inset 0 0 0 1px var(--hd-line);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231446B4' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important; background-position: 18px 50% !important; background-size: 19px !important;
}
body.pdl-hdr #main-header .et-search-form input:focus { box-shadow: inset 0 0 0 2px var(--hd-court); outline: 0; }
body.pdl-hdr #main-header .et-search-form input::placeholder { color: var(--hd-muted); }
body.pdl-hdr .et_close_search_field { right: 0; width: 44px; display: grid; place-items: center; }
body.pdl-hdr .et_close_search_field::after { color: var(--hd-ink); }

/* Mobile and tablet: logo, search and a real menu button */
body.pdl-hdr #et_mobile_nav_menu { float: none; margin: 0 !important; display: none; }
body.pdl-hdr .mobile_nav .select_page { display: none !important; }
body.pdl-hdr .mobile_menu_bar {
	display: inline-grid !important; place-items: center; width: 42px; height: 42px; padding: 0 !important; border-radius: 50%; cursor: pointer;
	box-shadow: inset 0 0 0 1px var(--hd-line); transition: background-color .15s;
}
body.pdl-hdr .mobile_menu_bar::before { content: "" !important; font-family: inherit !important; position: static !important; top: auto !important; width: 18px; height: 12px;
	background: linear-gradient(var(--hd-ink) 0 0) top / 100% 2px no-repeat, linear-gradient(var(--hd-ink) 0 0) center / 100% 2px no-repeat, linear-gradient(var(--hd-ink) 0 0) bottom / 100% 2px no-repeat; }
body.pdl-hdr .mobile_nav.opened .mobile_menu_bar { background: var(--hd-hover); }
body.pdl-hdr .mobile_nav.opened .mobile_menu_bar::before {
	width: 16px; height: 16px; background: linear-gradient(45deg, transparent calc(50% - 1px), var(--hd-ink) 0 calc(50% + 1px), transparent 0), linear-gradient(-45deg, transparent calc(50% - 1px), var(--hd-ink) 0 calc(50% + 1px), transparent 0); }
body.pdl-hdr .mobile_menu_bar:focus-visible { outline: 2px solid var(--hd-court); outline-offset: 2px; }

@media (min-width: 981px) and (max-width: 1180px) {
	body.pdl-hdr #top-menu > li > a { padding: 0 10px !important; font-size: 14px; }
	body.pdl-hdr #top-menu > li.menu-item-has-children > a, body.pdl-hdr #top-menu > li.pdl-mega-item > a { padding-right: 24px !important; }
	body.pdl-hdr #top-menu > li.menu-item-has-children > a::after, body.pdl-hdr #top-menu > li.pdl-mega-item > a::after { right: 9px; }
	body.pdl-hdr #top-menu > li > a::before { left: 10px; right: 10px; }
	body.pdl-hdr #top-menu > li.menu-item-has-children > a::before, body.pdl-hdr #top-menu > li.pdl-mega-item > a::before { right: 24px; }
	body.pdl-hdr #logo { height: 30px !important; }
}

@media (max-width: 980px) {
	body.pdl-hdr { --hd-h: 58px; }
	body.pdl-hdr #main-header .et_menu_container { gap: 12px; }
	body.pdl-hdr #top-menu-nav { display: none; }
	body.pdl-hdr #et-top-navigation { gap: 8px; }
	body.pdl-hdr #et_top_search { order: 1; }
	body.pdl-hdr #et_mobile_nav_menu { display: block; order: 2; }
	body.pdl-hdr #et_search_icon, body.pdl-hdr .mobile_menu_bar { width: 40px; height: 40px; }
	body.pdl-hdr #logo { height: 28px !important; }

	/* Menu panel: full width under the header, large touch targets. */
	body.pdl-hdr #main-header .et_mobile_menu {
		position: fixed; left: 0; right: 0; top: var(--hd-panel-top, var(--hd-h)); bottom: auto;
		max-height: calc(100vh - var(--hd-panel-top, var(--hd-h))); max-height: calc(100dvh - var(--hd-panel-top, var(--hd-h)));
		overflow-y: auto; overscroll-behavior: contain; width: auto; margin: 0; padding: 6px var(--hd-gutter) 28px !important;
		border: 0 !important; border-top: 1px solid var(--hd-line) !important; background: #fff !important;
		box-shadow: 0 30px 50px -24px rgba(20, 33, 61, .4); font-family: var(--hd-font);
	}
	body.pdl-hdr #main-header .et_mobile_menu li { padding: 0; }
	body.pdl-hdr #main-header .et_mobile_menu li a {
		display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 4px !important; border-bottom: 1px solid var(--hd-line) !important;
		color: var(--hd-ink) !important; font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; background: none !important; opacity: 1 !important;
	}
	body.pdl-hdr #main-header .et_mobile_menu li.current-menu-item > a { color: var(--hd-court) !important; }
	body.pdl-hdr #main-header .et_mobile_menu li ul { padding: 0 0 8px 0 !important; display: block !important; visibility: visible !important; }
	body.pdl-hdr #main-header .et_mobile_menu li li a { min-height: 42px; padding-left: 16px !important; border-bottom: 0 !important; color: var(--hd-muted) !important; font-size: 1rem; font-weight: 550; }
	body.pdl-hdr #main-header .et_mobile_menu li li li a { padding-left: 28px !important; font-size: .95rem; }
	body.pdl-hdr #main-header .et_mobile_menu .menu-item-has-children > a { background: none !important; }
	body.pdl-hdr #main-header .et_mobile_menu li.pdl-lang-menu > a, body.pdl-hdr #main-header .et_mobile_menu li.pdl-account-menu > a { font-size: 1rem; font-weight: 650; }
	body.pdl-hdr #main-header .et_mobile_menu li.pdl-account-menu { margin-top: 18px; }
	body.pdl-hdr #main-header .et_mobile_menu li.pdl-account-menu > a { justify-content: center; min-height: 50px; border: 0 !important; border-radius: 14px; background: var(--hd-ball) !important; color: var(--hd-ink) !important; }
	body.pdl-hdr #main-header .et_mobile_menu li.pdl-lang-menu .sub-menu { display: flex !important; flex-wrap: wrap; gap: 8px; padding: 6px 0 12px !important; }
	body.pdl-hdr #main-header .et_mobile_menu li.pdl-lang-menu .sub-menu li { width: auto; }
	body.pdl-hdr #main-header .et_mobile_menu li.pdl-lang-menu .sub-menu a { min-height: 40px; padding: 0 14px 0 8px !important; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hd-line); color: var(--hd-ink) !important; }
	body.pdl-hdr #main-header .et_mobile_menu li.pdl-lang-menu > a .pdl-icon, body.pdl-hdr #main-header .et_mobile_menu li.pdl-account-menu > a svg { width: 18px; height: 18px; }
	body.pdl-hdr #main-header .et-search-form { margin-right: 48px !important; }
	html.pdl-nav-open, html.pdl-nav-open body { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
	body.pdl-hdr #main-header, body.pdl-hdr #top-menu > li > a, body.pdl-hdr #top-menu > li > a::before, body.pdl-hdr #et_search_icon, body.pdl-hdr #top-menu li ul.sub-menu { transition: none !important; }
}
