/* 10-chrome.css (chrome area): header, off-canvas mobile menu, footer, focus, cookie dialog. Loaded after app.css + 00-base.css; the old markup/classes are kept, only fixes and the accordion are added here. */

/* ---- header ---------------------------------------------------------------------------------------------------- */
.alc-header { display: block; position: relative; z-index: 5; }
/* the hamburger is a real <button> now (was <a href="javascript:;">): neutral button look, same box as the old link */
button.hamburger-menu { background: none; border: 0; padding: 0; color: inherit; font: inherit; line-height: inherit; -webkit-appearance: none; appearance: none; }
@media screen and (max-width: 39.9375em) {
	/* a <button> centres its content vertically; the old <a> box started at the top */
	button.hamburger-menu { display: inline-flex; align-items: flex-start; justify-content: flex-start; line-height: inherit; border-radius: 0; }
}
.hamburger-menu .menu-button { pointer-events: none; }
/* old header images must not be shrunk by Elementor's img reset */
.member-firm-ag { background-repeat: no-repeat; }
/* the "Greece" selector is a link to "#": no outline flash on click, keyboard focus stays visible */
.top-nav-bar a { outline-offset: 2px; }
/* Worldwide Locations list: scrollable (old custom CSS) and never wider than the phone */
.top-nav-bar .locations > li > .menu { max-height: 80vh; overflow-y: auto; }
@media screen and (max-width: 39.9375em) {
	.top-nav-bar .locations > li > .menu { max-height: 60vh; }
	.top-nav-bar .top-nav { overflow: visible; }
}

/* 640-767px: the old logo box (26rem wide) pushed the search block below the logo; the logo image itself is unchanged (background-size), only the clickable box is narrower */
@media screen and (min-width: 40em) and (max-width: 47.9375em) {
	.main-bar .logo { width: 17rem; }
}

/* primary navigation: >= 44px click/touch box (45-46px) with the layout of the old 25/26px links: extra padding, cancelled by negative margins (the links are display:block in the li) */
@media screen and (min-width: 64em) {
	.main-nav ul.lvl-1 > li > a { padding-top: 15px !important; padding-bottom: 15px !important; margin-top: -10px; margin-bottom: -10px; }
}
@media screen and (min-width: 40em) and (max-width: 63.9375em) {
	.main-nav ul.lvl-1 > li > a { padding-top: 15px !important; padding-bottom: 16px !important; margin-top: -10px; margin-bottom: -10px; }
}
/* panel items: the whole row is the link */
.main-nav ul.lvl-2 li > a { display: block; }

/* keyboard focus is always visible (the old CSS removed it) */
.alc-header a:focus-visible, .alc-header button:focus-visible, .alc-header input:focus-visible,
.off-canvas a:focus-visible, .off-canvas button:focus-visible, .alc-footer a:focus-visible { outline: 2px solid #ab0e1e; outline-offset: 2px; }
.main-nav ul.lvl-1 a:focus-visible { color: #243444; background: #f9f9f9; }
.top-nav-bar a:focus-visible { outline-color: #243444; }

/* ---- off-canvas mobile menu ---------------------------------------------------------------------------------- */
.off-canvas-wrapper { overflow-x: hidden; }
.off-canvas { overscroll-behavior: contain; }
/* closed panel: out of the tab order and the accessibility tree (the old one left 20 invisible focusable links); visibility flips after the slide-out */
.off-canvas:not(.is-open) { visibility: hidden; transition: transform .5s ease, visibility 0s linear .5s; }
.off-canvas.is-open { visibility: visible; }
@media screen and (max-width: 39.9375em) {
	/* full-width panel that slides in whole (the old CSS only widened it once open, which made it jump) */
	.off-canvas.position-right { width: 100%; transform: translateX(100%); }
	.off-canvas.position-right.is-open { transform: translateX(0); }
}
.off-canvas .close-button { position: absolute; z-index: 20; top: 2.6rem; right: .5rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 2rem; line-height: 1; color: #243444; background: none; border: 0; padding: 0; cursor: pointer; }
.off-canvas .close-button:hover, .off-canvas .close-button:focus-visible { color: #ab0e1e; }
.mobile-menu { padding-bottom: 2rem; }
.mobile-menu .vertical.menu { margin-top: 3rem; }
.mobile-menu .vertical.menu li { position: relative; margin-bottom: 0; }
.mobile-menu .vertical.menu li > a { display: block; padding: .95rem 3rem .95rem 1rem; line-height: 1; }
.mobile-menu .vertical.menu li li > a { padding-top: .95rem; padding-bottom: .95rem; padding-left: .5rem; }
.mobile-menu .vertical.menu li li li > a { padding-left: .5rem; }
.mobile-menu .vertical.menu ul.sub-menu { margin: 0 0 .5rem; padding: 0; list-style: none; }
.mobile-menu .vertical.menu ul.sub-menu li { margin-bottom: 0; }
.mobile-menu .alc-group-title { display: block; padding: .95rem .5rem; font-size: .9375rem; line-height: 1; color: #ab0e1e; font-weight: normal; }
.mobile-menu .alc-group > ul.sub-menu { margin-left: .5rem; }
/* accordion: a 44x44 toggle at the right of every parent row; without JS everything stays expanded (the old behaviour) */
.mobile-menu .alc-sub-toggle { position: absolute; top: 0; right: 0; width: 48px; height: 45px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mobile-menu .alc-sub-toggle span { display: block; width: 9px; height: 9px; margin: -4px 0 0; border-right: 2px solid #ab0e1e; border-bottom: 2px solid #ab0e1e; transform: rotate(45deg); transition: transform .2s ease; }
.mobile-menu li.is-open > .alc-sub-toggle span { transform: rotate(-135deg); margin-top: 6px; }
.mobile-menu .alc-sub-toggle:focus-visible { outline: 2px solid #ab0e1e; outline-offset: -4px; }
.alc-js .mobile-menu li.menu-item-has-children:not(.alc-group):not(.is-open) > ul.sub-menu { display: none; }
.alc-js .mobile-menu li.menu-item-has-children:not(.alc-group).is-open > a { color: #870a1a; }
.mobile-menu li.current-menu-item > a { text-decoration: underline; text-underline-offset: 3px; }
@media screen and (min-width: 40em) {
	/* the off-canvas is a phone feature (the old hamburger is hidden from 40em up) */
	.off-canvas { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.off-canvas, .off-canvas-content, .mobile-menu .alc-sub-toggle span { transition: none !important; }
}

/* ---- footer ----------------------------------------------------------------------------------------------------- */
.alc-footer { display: block; }
.alc-footer .door { margin: 0; }
/* the empty column headings of the old footer (h5 &nbsp;) are spacers now: same box, no empty heading for screen readers */
.alc-footer .alc-h5 { margin: 0 0 .5rem; font-size: .9375rem; line-height: 2.4375rem; font-weight: 700; }
.alc-footer .footer-columns h5 { font-family: "Roboto Condensed", Roboto, Arial, sans-serif; letter-spacing: 1px; text-transform: none; }
.alc-footer .footer ul { list-style: none; }
.alc-footer .social.footer li { list-style: none; }
.alc-footer .footer-columns a { display: inline-block; }
.alc-footer .footer-columns a .icon { font-family: FontAwesome; }

/* ---- Cookiebot dialog on phones: compact bottom sheet, never covering the first screen (the old banner took 98% of it). Only matters when tracking is on. ---- */
@media screen and (max-width: 39.9375em) {
	#CybotCookiebotDialog { top: auto !important; bottom: 0 !important; left: 0 !important; right: 0 !important; transform: none !important; width: 100% !important; max-width: 100% !important; max-height: 45vh !important; height: auto !important; margin: 0 !important; border-radius: 12px 12px 0 0 !important; overflow-y: auto !important; padding: 0 !important; }
	#CybotCookiebotDialog * { font-size: 13px !important; line-height: 1.35 !important; }
	#CybotCookiebotDialog #CybotCookiebotDialogBodyContent { padding: 12px 14px 6px !important; }
	#CybotCookiebotDialog #CybotCookiebotDialogBodyLevelButtonsRow, #CybotCookiebotDialog #CybotCookiebotDialogFooter { padding: 4px 14px 12px !important; }
	#CybotCookiebotDialog .CybotCookiebotDialogBodyButton, #CybotCookiebotDialog #CybotCookiebotDialogBodyButtonDecline, #CybotCookiebotDialog #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll { min-height: 40px !important; padding: 8px 10px !important; }
	#CybotCookiebotDialog #CybotCookiebotDialogHeader, #CybotCookiebotDialog #CybotCookiebotDialogPoweredbyLink, #CybotCookiebotDialog #CybotCookiebotDialogPoweredByText { display: none !important; }
	#CybotCookiebotDialogBodyUnderlay { display: none !important; }
}

/* <main id="main-content"> landmark (skip-link target): block, no focus ring on programmatic focus */
.alc-main { display: block; }
.alc-main:focus { outline: none; }
