/* KREN Lite: base, header and page shell. The content styles are in kren-modern.css. */

:root {
	--awb-typography1-font-family: "Sofia Sans Condensed", Arial, Helvetica, sans-serif;
	--awb-typography2-font-family: "Sofia Sans Condensed", Arial, Helvetica, sans-serif;
	--awb-typography3-font-family: "Sofia Sans Condensed", Arial, Helvetica, sans-serif;
	--awb-typography4-font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
	--kl-body: "Roboto Condensed", Arial, Helvetica, sans-serif;
	--kl-head: "Sofia Sans Condensed", Arial, Helvetica, sans-serif;
	--kl-menu: "Sofia Sans", "Sofia Sans Condensed", Arial, Helvetica, sans-serif;
	--kl-text: #212934;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--kl-text); font-family: var(--kl-body); font-size: 17.6px; font-weight: 400; line-height: 1.4; letter-spacing: .015em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--kl-head); color: var(--kl-text); letter-spacing: .015em; }
h1 { font-size: clamp(1.8rem, 1.5714rem + 1.9048vw, 2.2rem); font-weight: 600; line-height: 1; margin: 16px 0; letter-spacing: 0; }
h2 { font-size: 1.8rem; font-weight: 700; line-height: 1.1; margin: .3em 0; }
h3 { font-size: 1.4rem; font-weight: 500; line-height: 1.1; margin: .5em 0 1em; }
h4 { font-size: 1.4rem; font-weight: 700; line-height: 1.1; margin: 1em 0; color: #000; }
h5, h6 { font-size: 1.2rem; font-weight: 500; line-height: 1; margin: 0; }
h6 { margin: 16px 0; }
p, ul, ol { margin: 1em 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; }
img { height: auto; border: 0; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }
table { border-collapse: collapse; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; z-index: 100001; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: var(--km-ink, #1d2230); border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
:focus-visible { outline: 2px solid var(--km-accent, #5a4fcf); outline-offset: 2px; }

/* Avada visibility classes still used in the stored pages */
@media (max-width: 640px) { .fusion-no-small-visibility { display: none !important; } }
@media (min-width: 641px) and (max-width: 1024px) { .fusion-no-medium-visibility { display: none !important; } }
@media (min-width: 1025px) { .fusion-no-large-visibility { display: none !important; } }

/* Page shell */
#main { padding: 10px 0 0; }
/* Inner pages: the space above the footer that Avada added (main 60px, content 50px, column 20px) */
body.kl:not(.home) #main { padding-bottom: 60px; }
body.kl:not(.home) #content { margin-bottom: 50px; }
body.kl:not(.home) .post-content { padding-bottom: 20px; }
#main > .fusion-row { max-width: none; margin: 0; }
.fusion-content-tb { width: 100%; }
.post-content > .fusion-content-tb > .fusion-fullwidth:not(:has(.km-page)) > .fusion-row { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.kl-entry-title { max-width: 1200px; margin: 40px auto 8px; padding: 0 30px; }
.fusion-layout-column { width: 100%; }
.fusion-builder-row-inner { display: flex; flex-wrap: wrap; gap: 0 4%; }
.fusion-builder-row-inner > .fusion-layout-column { flex: 1 1 280px; width: auto; }
.kl-images { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.kl-images img { max-height: 120px; width: auto; }
.kl-toggle { border: 1px solid var(--km-border, #e5e7ec); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.kl-toggle summary { cursor: pointer; font-weight: 700; }
.kl-table { overflow-x: auto; }
.kl-table table { width: 100%; min-width: 560px; }
.kl-table td, .kl-table th { border: 1px solid var(--km-border, #e5e7ec); padding: 8px 10px; }

/* Header */
.kl-header { position: relative; z-index: 10000; background: #fff; }
.kl-top { height: 34px; background: linear-gradient(90deg, #1b1546 0%, #2a1f78 35%, #1b1546 70%, #110d2c 100%); }
.kl-top__in { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; }
.kl-social { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.kl-social a { display: block; width: 14px; height: 14px; color: rgba(255, 255, 255, .85); transition: color .15s ease; }
.kl-social a:hover, .kl-social a:focus-visible { color: #b9b0ff; }
.kl-social svg { display: block; width: 14px; height: 14px; }
.kl-top .km-lang-top { min-width: 72px; height: 26px; }

.kl-bar { padding: 8px 30px 8px; }
.kl-card { position: relative; display: grid; grid-template-columns: 1fr 4fr 1fr; align-items: center; min-height: 81px; padding: 6px 0 6px 5px; background: #fff; border-radius: 10px; box-shadow: 0 6px 20px -6px rgba(31, 33, 35, .075); border: 1px solid rgba(31, 33, 35, .05); border-top: 0; }
.kl-logo { justify-self: start; display: block; margin-left: 25px; line-height: 0; }
.kl-logo img { display: block; width: auto; height: 50px; }

.kl-nav { display: flex; justify-content: center; }
.kl-menu { display: flex; align-items: center; gap: 48px; list-style: none; margin: 0; padding: 0; }
.kl-menu__li { position: static; }
.kl-menu__a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px; font-family: var(--kl-menu); font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: 0; color: #2a3040; transition: background-color .15s ease, color .15s ease; }
.kl-menu__a svg { width: 18px; height: 18px; flex: none; }
.kl-menu__a svg:last-child:not(:first-child) { width: 14px; height: 14px; opacity: .7; }
.kl-menu__home .kl-menu__a { color: var(--km-accent-ink, #3f35a8); }
.kl-menu__label { display: none; }
.kl-menu__li:hover > .kl-menu__a, .kl-menu__li:focus-within > .kl-menu__a { background: var(--km-soft, #f5f6f8); color: var(--km-ink, #1d2230); }
.kl-menu__a::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 3px; border-radius: 3px; background: var(--km-accent, #5a4fcf); transform: translateX(-50%); transition: width .2s ease; }
.kl-menu__li:hover > .kl-menu__a::after { width: 18px; }
.kl-menu__li.is-current > .kl-menu__a { color: var(--km-accent-ink, #3f35a8); }
.kl-menu__li.is-current > .kl-menu__a::after { width: 24px; }

.kl-mega { position: absolute; left: -31px; right: -31px; top: calc(100% - 1px); padding-top: 0; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.kl-has-mega:hover > .kl-mega, .kl-has-mega:focus-within > .kl-mega, .kl-has-mega.is-open > .kl-mega { opacity: 1; visibility: visible; transition-delay: 0s; }
.kl-has-mega.is-closed > .kl-mega { opacity: 0; visibility: hidden; }
.kl-mega .fusion-fullwidth, .kl-mega .fusion-row, .kl-mega .fusion-layout-column, .kl-mega .fusion-column-wrapper { margin: 0; padding: 0; }

.kl-actions { display: flex; align-items: center; gap: 8px; padding-left: 14px; }
.kl-login { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; background: var(--km-accent, #5a4fcf); color: #fff; font-family: var(--kl-menu); font-size: 16px; font-weight: 700; line-height: 22px; box-shadow: 0 6px 16px rgba(90, 79, 207, .25); transition: background-color .15s ease, box-shadow .15s ease; }
.kl-login:hover, .kl-login:focus-visible { background: var(--km-accent-ink, #3f35a8); box-shadow: 0 8px 22px rgba(90, 79, 207, .35); color: #fff; }
.kl-login svg { width: 16px; height: 16px; }
.kl-burger, .kl-actions .km-lang { display: none; }
@media (min-width: 641px) { .kl-sub-toggle, .km-sub { display: none !important; } }

/* Tablets and small laptops: everything on one row */
@media (min-width: 641px) and (max-width: 1100px) {
	.kl-bar { padding: 8px 16px; }
	.kl-top__in { padding: 0 22px; }
	.kl-card { grid-template-columns: auto 1fr auto; padding: 6px 12px 6px 0; }
	.kl-logo { margin-left: 18px; }
	.kl-logo img { height: 44px; }
	.kl-menu { gap: 2px; }
	.kl-menu__a { padding: 10px 10px; white-space: nowrap; }
	.kl-actions { padding-left: 8px; }
	.kl-login { padding: 11px 16px; }
	.kl-mega { left: -16px; right: -12px; }
	.kl-mega .km-mega__inner { margin-left: 16px; margin-right: 16px; }
}
@media (min-width: 641px) and (max-width: 820px) {
	.kl-login { width: 46px; height: 44px; padding: 0; justify-content: center; }
	.kl-login span { display: none; }
}

/* Phones: one white bar, sticky, with the menu as a panel below it */
@media (max-width: 640px) {
	.kl-header { position: sticky; top: 0; box-shadow: 0 1px 0 #e5e7ec, 0 6px 20px rgba(29, 34, 48, .06); background: rgba(255, 255, 255, .96); }
	body.admin-bar .kl-header { top: 46px; }
	.kl-top { display: none; }
	.kl-bar { padding: 0; }
	.kl-card { display: flex; min-height: 64px; padding: 10px 12px 10px 16px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
	.kl-logo { margin-left: 0; }
	.kl-logo img { height: 42px; }
	.kl-actions { padding-left: 0; }
	.kl-actions { margin-left: auto; }
	.kl-actions .km-lang { display: block; margin-right: 0; }
	.kl-login { width: 44px; height: 40px; padding: 0; justify-content: center; }
	.kl-login span { display: none; }
	.kl-burger { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: var(--km-soft, #f5f6f8); color: var(--km-ink, #1d2230); cursor: pointer; }
	.kl-burger svg { width: 22px; height: 22px; }
	.kl-burger svg + svg, .kl-burger[aria-expanded="true"] svg:first-child { display: none; }
	.kl-burger[aria-expanded="true"] svg + svg { display: block; }
	.kl-nav { display: none; position: absolute; left: 10px; right: 10px; top: 52px; justify-content: stretch; background: #fff; border-radius: 0 0 16px 16px; box-shadow: 0 24px 60px rgba(29, 34, 48, .16); max-height: calc(100svh - 80px); overflow-y: auto; }
	.kl-nav.is-open { display: block; }
	.kl-menu { display: block; }
	.kl-menu__li { position: relative; border-top: 1px solid #f0f1f4; }
	.kl-menu__li:first-child { border-top: 0; }
	.kl-menu__a { display: flex; min-height: 65px; padding: 0 28px; border-radius: 0; font-size: 19px; color: #464c55; }
	.kl-menu__a::after, .kl-menu__a svg:last-child:not(:first-child) { display: none; }
	.kl-menu__home .kl-menu__a svg { display: none; }
	.kl-menu__label { display: inline; }
	.kl-menu__li:hover > .kl-menu__a, .kl-menu__li:focus-within > .kl-menu__a { background: transparent; }
	.kl-menu__li.is-current > .kl-menu__a { background: #f0f3f2; color: #1f2124; }
	.kl-mega { display: none; }
	.kl-sub-toggle { position: absolute; right: 12px; top: 10px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px; background: var(--km-soft, #f5f6f8); color: var(--km-ink, #1d2230); cursor: pointer; }
	.kl-sub-toggle svg { width: 20px; height: 20px; transition: transform .2s ease; }
	.kl-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
	.kl-nav .km-sub { display: block; list-style: none; margin: 0; padding: 6px 0; background: var(--km-soft, #f5f6f8); border-top: 1px solid var(--km-border, #e5e7ec); border-bottom: 1px solid var(--km-border, #e5e7ec); }
	.kl-nav .km-sub[hidden] { display: none; }
	.kl-nav .km-sub a { display: flex; align-items: center; min-height: 48px; padding: 10px 20px 10px 40px; font-family: var(--kl-menu); font-size: 17px; font-weight: 400; letter-spacing: 0; color: var(--km-ink, #1d2230); }
	.kl-nav .km-sub a:hover, .kl-nav .km-sub a:focus-visible { background: #fff; color: var(--km-accent-ink, #3f35a8); }
	.kl-nav .km-sub a.km-sub__all { font-weight: 700; color: var(--km-accent-ink, #3f35a8); }
}

/* Homepage: members and partners (native markup in place of the Avada carousel and content boxes) */
body.kl.home .kh-members, body.kl.home .kh-partners { display: flow-root; }
body.kl.home .kh-members .fusion-title { margin: 10px 0 40px !important; }
body.kl.home .kh-partners .fusion-title { margin: 10px 0 30px !important; }
body.kl.home .kh-members .km-marquee { margin-bottom: 20px; }
.kh-members .km-member-link .awb-imageframe-caption-title { display: block; margin-top: 8px; }
body.kl.home .kh-partners .fusion-content-boxes { list-style: none; margin: 0 !important; padding: 0; }
@media (min-width: 1025px) { body.kl.home .kh-partners .fusion-content-boxes { padding-bottom: 16px; } }
.kh-partners .content-box-wrapper { display: block; text-decoration: none; }
.kh-partners .heading { display: block; margin: 0 0 15px; padding-bottom: 20px; }
.kh-partners .heading img { display: block; margin: 0 auto; }
@media (max-width: 640px) {
	body.kl.home .kh-pilot { padding: 4px 16px 30px !important; }
	body.kl.home .kh-partners .fusion-title { margin: 10px 0 20px !important; }
	body.kl.home .kh-partners .fusion-content-boxes { padding-bottom: 12px; }
	.kh-partners .heading { margin: 0; padding: 0; }
	body.kl .kh-foot { padding-top: 28px !important; }
}

/* Older pages inside the kren-modern page frame */
.kl-prose .fusion-fullwidth > .fusion-row { max-width: none !important; padding: 0 !important; }
.kl-prose { max-width: 860px; }
.kl-prose ul, .kl-prose ol { padding-left: 1.3em; }
.kl-prose li { margin: 6px 0; }
.kl-prose img { border-radius: 12px; }
