/**
 * NihongoNana Lite: new header, menus and footer (loaded only when the new layout is on).
 */

/* ==========================================================================
   Tokens
   ========================================================================== */
.nnl-v2 {
	--nnl2-purple: #8f55d6;
	--nnl2-purple-dark: #6a3cc0;
	--nnl2-lavender: #f4eefe;
	--nnl2-lavender-2: #ebe1fd;
	--nnl2-ink: #1f2547;
	--nnl2-navy: #002058;
	--nnl2-muted: #6b6785;
	--nnl2-line: rgba(31, 37, 71, 0.08);
	--nnl2-pink: #d6336c;
	--nnl2-pink-2: #c2338a;
	--nnl2-header-h: 76px;
	--nnl2-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 991.98px) {
	.nnl-v2 {
		--nnl2-header-h: 64px;
	}
}

/* ==========================================================================
   Shared buttons
   ========================================================================== */
.nnl2-btn {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	border: 2px solid transparent;
	border-radius: 999px;
	transition: transform 0.2s var(--nnl2-ease), box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nnl2-btn .nnl-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.2s var(--nnl2-ease);
}

.nnl2-btn:hover .nnl-icon,
.nnl2-btn:focus-visible .nnl-icon {
	transform: translateX(3px);
}

.nnl2-btn--pink {
	color: #fff;
	background: linear-gradient(135deg, var(--nnl2-pink) 0%, var(--nnl2-pink-2) 100%);
	box-shadow: 0 10px 24px rgba(214, 51, 108, 0.28);
}

.nnl2-btn--pink:hover,
.nnl2-btn--pink:focus-visible {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(214, 51, 108, 0.36);
}

.nnl2-btn--light {
	color: var(--nnl2-purple-dark);
	background: #fff;
	box-shadow: 0 10px 24px rgba(24, 10, 60, 0.18);
}

.nnl2-btn--light:hover,
.nnl2-btn--light:focus-visible {
	color: var(--nnl2-purple-dark);
	transform: translateY(-1px);
}

.nnl2-btn--outline {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.55);
}

.nnl2-btn--outline:hover,
.nnl2-btn--outline:focus-visible {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
}

.nnl-v2 :focus-visible {
	outline: 2px solid var(--nnl2-purple);
	outline-offset: 2px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.nnl2-header {
	position: sticky;
	top: var(--nnl-admin-bar);
	z-index: 1000;
}

.nnl2-header__bar {
	background: rgba(255, 255, 255, 0.92);
	border-bottom: 1px solid var(--nnl2-line);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
	transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nnl2-header.is-scrolled .nnl2-header__bar {
	box-shadow: 0 8px 30px rgba(31, 37, 71, 0.08);
}

.nnl2-header__inner {
	display: flex;
	gap: 20px;
	align-items: center;
	height: var(--nnl2-header-h);
	transition: height 0.25s var(--nnl2-ease);
}

@media (min-width: 992px) {
	.nnl2-header.is-scrolled .nnl2-header__inner {
		height: calc(var(--nnl2-header-h) - 12px);
	}
}

/* Home template: the header floats over the first section and turns white once the page scrolls. */
.nnl-has-overlay-header .nnl2-header {
	margin-bottom: calc(-1 * var(--nnl2-header-h));
}

.nnl-has-overlay-header .nnl2-header:not(.is-scrolled) .nnl2-header__bar {
	background: transparent;
	border-color: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.nnl2-brand {
	display: flex;
	flex-shrink: 0;
	align-items: center;
}

.nnl2-brand .custom-logo,
.nnl2-drawer__head .custom-logo {
	width: auto;
	max-width: none;
	height: 40px;
}

@media (max-width: 991.98px) {
	.nnl2-brand .custom-logo {
		height: 32px;
	}
}

.nnl2-drawer__head .custom-logo {
	height: 30px;
}

/* Desktop menu */
.nnl2-nav {
	margin-left: auto;
}

.nnl2-menu {
	display: flex;
	gap: 2px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nnl2-menu li {
	position: relative;
}

.nnl2-menu > li > a {
	display: flex;
	gap: 6px;
	align-items: center;
	padding: 10px 15px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--nnl2-ink);
	border-radius: 999px;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.nnl2-menu > li > a:hover,
.nnl2-menu > li > a:focus-visible,
.nnl2-menu > li:focus-within > a {
	color: var(--nnl2-purple-dark);
	background: var(--nnl2-lavender);
}

.nnl2-menu > .current-menu-item > a,
.nnl2-menu > .current-menu-ancestor > a,
.nnl2-menu > .current_page_parent > a {
	font-weight: 600;
	color: var(--nnl2-purple-dark);
	background: var(--nnl2-lavender);
}

.nnl2-menu > .menu-item-has-children > a::after {
	width: 7px;
	height: 7px;
	margin: -3px 0 0 2px;
	content: "";
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.6;
}

.nnl2-menu .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 10;
	min-width: 240px;
	margin: 0;
	padding: 8px;
	list-style: none;
	visibility: hidden;
	opacity: 0;
	background: #fff;
	border: 1px solid var(--nnl2-line);
	border-radius: 16px;
	box-shadow: 0 20px 44px rgba(31, 37, 71, 0.14);
	transform: translateY(8px);
	transition: opacity 0.18s ease, transform 0.18s var(--nnl2-ease), visibility 0.18s;
}

/* Hover bridge so the dropdown does not close while the pointer crosses the gap. */
.nnl2-menu .sub-menu::before {
	position: absolute;
	top: -12px;
	right: 0;
	left: 0;
	height: 12px;
	content: "";
}

.nnl2-menu li:hover > .sub-menu,
.nnl2-menu li:focus-within > .sub-menu {
	visibility: visible;
	opacity: 1;
	transform: none;
}

.nnl2-menu .sub-menu a {
	display: block;
	padding: 10px 14px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--nnl2-ink);
	border-radius: 10px;
}

.nnl2-menu .sub-menu a:hover,
.nnl2-menu .sub-menu a:focus-visible,
.nnl2-menu .sub-menu .current-menu-item > a {
	color: var(--nnl2-purple-dark);
	background: var(--nnl2-lavender);
}

/* Dozo link: app icon + badge (desktop menu, mobile menu, footer) */
.nnl2-item-label {
	display: inline-flex;
	gap: 8px;
	align-items: center;
}

.nnl2-app-icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 6px;
}

.nnl2-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px 3px;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
	border-radius: 999px;
	box-shadow: 0 4px 10px rgba(16, 185, 129, 0.28);
}

@media (min-width: 992px) and (max-width: 1199.98px) {
	.nnl2-menu > li > a {
		padding: 10px 11px;
		font-size: 14.5px;
	}

	.nnl2-header__inner {
		gap: 14px;
	}
}

/* Actions: call-to-action, mobile menu button */
.nnl2-actions {
	display: flex;
	flex-shrink: 0;
	gap: 10px;
	align-items: center;
}

.nnl2-cta {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 11px 22px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	white-space: nowrap;
	background: linear-gradient(135deg, var(--nnl2-pink) 0%, var(--nnl2-pink-2) 100%);
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(214, 51, 108, 0.28);
	transition: transform 0.2s var(--nnl2-ease), box-shadow 0.2s ease;
}

.nnl2-cta:hover,
.nnl2-cta:focus-visible {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 12px 26px rgba(214, 51, 108, 0.36);
}

.nnl2-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--nnl2-navy);
	background: var(--nnl2-lavender);
	border: 0;
	border-radius: 14px;
	transition: background-color 0.18s ease;
}

.nnl2-burger:hover {
	background: var(--nnl2-lavender-2);
}

.nnl2-burger__lines {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 20px;
}

.nnl2-burger__lines span {
	display: block;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.nnl2-burger__lines span:nth-child(2) {
	width: 70%;
	margin-left: auto;
}

@media (max-width: 991.98px) {
	.nnl2-nav {
		display: none;
	}

	.nnl2-actions {
		gap: 8px;
		margin-left: auto;
	}

	.nnl2-burger {
		display: inline-flex;
	}

	.nnl2-cta {
		min-height: 40px;
		padding: 9px 16px;
		font-size: 14px;
	}
}

@media (max-width: 359.98px) {
	.nnl2-cta {
		display: none;
	}
}

/* ==========================================================================
   Mobile menu panel
   ========================================================================== */
.nnl2-drawer {
	position: fixed;
	inset: 0;
	z-index: 100002;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s linear 0.32s;
}

.nnl2-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
	transition: visibility 0s;
}

.nnl2-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(14, 18, 44, 0.45);
	opacity: 0;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	transition: opacity 0.3s ease;
}

.nnl2-drawer.is-open .nnl2-drawer__backdrop {
	opacity: 1;
}

.nnl2-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(88vw, 400px);
	background: #fff;
	border-radius: 26px 0 0 26px;
	box-shadow: -24px 0 60px rgba(14, 18, 44, 0.22);
	transform: translateX(105%);
	transition: transform 0.34s var(--nnl2-ease);
}

.nnl2-drawer.is-open .nnl2-drawer__panel {
	transform: none;
}

.nnl2-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 14px 22px;
	border-bottom: 1px solid var(--nnl2-line);
}

.nnl2-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	color: var(--nnl2-navy);
	background: var(--nnl2-lavender);
	border: 0;
	border-radius: 50%;
	transition: background-color 0.18s ease, transform 0.25s var(--nnl2-ease);
}

.nnl2-drawer__close:hover {
	background: var(--nnl2-lavender-2);
	transform: rotate(90deg);
}

.nnl2-drawer__close .nnl-icon {
	width: 20px;
	height: 20px;
}

.nnl2-drawer__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px 16px max(24px, env(safe-area-inset-bottom));
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

/* Spare height goes under the menu, so the free-lesson card and social icons sit at the bottom of the panel. */
.nnl2-drawer__body > nav {
	margin-bottom: auto;
	padding-bottom: 22px;
}

.nnl2-mmenu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nnl2-mmenu li {
	position: relative;
}

.nnl2-mmenu > li {
	opacity: 0;
	transform: translateX(16px);
	transition: opacity 0.3s ease, transform 0.35s var(--nnl2-ease);
	transition-delay: calc(0.06s + var(--i, 0) * 0.035s);
}

.nnl2-drawer.is-open .nnl2-mmenu > li {
	opacity: 1;
	transform: none;
}

.nnl2-mmenu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
	padding: 12px 16px;
	font-size: 17px;
	font-weight: 600;
	color: var(--nnl2-navy);
	border-radius: 14px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.nnl2-mmenu > li > a::after {
	width: 8px;
	height: 8px;
	content: "";
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	opacity: 0.35;
	transform: rotate(45deg);
}

.nnl2-mmenu a:hover,
.nnl2-mmenu a:focus-visible {
	color: var(--nnl2-purple-dark);
	background: var(--nnl2-lavender);
}

.nnl2-mmenu .current-menu-item > a,
.nnl2-mmenu .current-menu-ancestor > a,
.nnl2-mmenu .current_page_parent > a {
	color: var(--nnl2-purple-dark);
	background: var(--nnl2-lavender);
}

.nnl2-mmenu .current-menu-item > a::after {
	opacity: 0.8;
}

.nnl2-mmenu .nnl2-item-label {
	gap: 10px;
}

.nnl2-mmenu .nnl2-app-icon {
	width: 26px;
	height: 26px;
	border-radius: 7px;
}

.nnl2-mmenu .nnl2-badge {
	font-size: 11px;
}

/* Sub-menus open with a toggle button added by navigation-v2.js. */
.nnl2-mmenu .menu-item-has-children > a {
	padding-right: 60px;
}

.nnl2-mmenu .menu-item-has-children > a::after {
	display: none;
}

.nnl2-sub-toggle {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 12px;
}

.nnl2-sub-toggle::before {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	margin: -6px 0 0 -4px;
	content: "";
	border-right: 2px solid var(--nnl2-navy);
	border-bottom: 2px solid var(--nnl2-navy);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.is-open > .nnl2-sub-toggle::before {
	margin-top: -2px;
	transform: rotate(-135deg);
}

.nnl2-mmenu .sub-menu {
	display: none;
	margin: 2px 0 6px 14px;
	padding: 0 0 0 10px;
	list-style: none;
	border-left: 2px solid var(--nnl2-lavender-2);
}

.nnl2-mmenu .is-open > .sub-menu {
	display: block;
}

.nnl2-mmenu .sub-menu a {
	min-height: 44px;
	font-size: 15.5px;
	font-weight: 500;
}

.nnl2-drawer__card {
	padding: 22px 20px;
	background: linear-gradient(135deg, #f3ebff 0%, #ffe9ef 100%);
	border-radius: 20px;
}

.nnl2-drawer__card-title {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
	color: var(--nnl2-navy);
}

.nnl2-drawer__card-text {
	margin: 0 0 16px;
	font-size: 14.5px;
	color: var(--nnl2-muted);
}

.nnl2-drawer__card .nnl2-btn {
	width: 100%;
}

/* Social icons */
.nnl2-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nnl2-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	color: var(--nnl2-purple-dark);
	background: #fff;
	border: 1px solid var(--nnl2-line);
	border-radius: 50%;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.2s var(--nnl2-ease), border-color 0.18s ease;
}

.nnl2-social a:hover,
.nnl2-social a:focus-visible {
	color: #fff;
	background: var(--nnl2-purple);
	border-color: var(--nnl2-purple);
	transform: translateY(-2px);
}

.nnl2-social .nnl-icon {
	width: 18px;
	height: 18px;
}

/* One row in the mobile menu; icons shrink a little on very narrow phones instead of wrapping. */
.nnl2-social--drawer {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 40px);
	gap: 8px;
	justify-content: center;
	margin-top: 22px;
}

.nnl2-social--drawer a {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	background: var(--nnl2-lavender);
	border-color: transparent;
}

html.nnl2-lock,
html.nnl2-lock body {
	overflow: hidden;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.nnl2-footer {
	color: var(--nnl2-muted);
	background: linear-gradient(180deg, #fff 0, #fbf8ff 160px, #f3ecfe 100%);
}

/* Call-to-action banner */
.nnl2-band {
	padding: 64px 0 0;
}

.nnl2-band__card {
	position: relative;
	display: flex;
	gap: 28px;
	align-items: center;
	justify-content: space-between;
	padding: 44px 48px;
	overflow: hidden;
	color: #fff;
	background: linear-gradient(120deg, #5b34b8 0%, #8f55d6 55%, #d063b5 100%);
	border-radius: 28px;
	box-shadow: 0 26px 60px rgba(91, 52, 184, 0.28);
	isolation: isolate;
}

.nnl2-band__card::before,
.nnl2-band__card::after {
	position: absolute;
	z-index: -1;
	content: "";
	border-radius: 50%;
}

.nnl2-band__card::before {
	top: -120px;
	right: -60px;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
}

.nnl2-band__card::after {
	bottom: -140px;
	left: 30%;
	width: 280px;
	height: 280px;
	background: radial-gradient(circle, rgba(255, 101, 117, 0.35) 0%, rgba(255, 101, 117, 0) 70%);
}

.nnl2-band__copy {
	max-width: 560px;
}

.nnl2-band__title {
	margin: 0 0 10px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	letter-spacing: -0.01em;
}

.nnl2-band__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.86);
}

.nnl2-band__actions {
	display: flex;
	flex-shrink: 0;
	flex-wrap: wrap;
	gap: 12px;
}

/* Main footer */
.nnl2-footer__main {
	padding: 64px 0 44px;
}

.nnl2-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.5fr);
	gap: 44px;
}

.nnl2-footer__logo .custom-logo {
	width: auto;
	max-width: none;
	height: 40px;
}

.nnl2-footer__about {
	max-width: 360px;
	margin: 18px 0 22px;
	font-size: 14.5px;
	line-height: 1.75;
}

.nnl2-footer__about p {
	margin: 0;
}

.nnl2-footer__heading {
	margin: 4px 0 18px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--nnl2-navy);
	text-transform: uppercase;
	letter-spacing: 0.09em;
}

.nnl2-footer__heading--big {
	margin-bottom: 10px;
	font-size: 19px;
	text-transform: none;
	letter-spacing: 0;
}

.nnl2-footer__col ul {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nnl2-footer__col a {
	display: inline-block;
	padding: 5px 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--nnl2-ink);
	transition: color 0.15s ease, transform 0.2s var(--nnl2-ease);
}

.nnl2-footer__col a:hover,
.nnl2-footer__col a:focus-visible {
	color: var(--nnl2-purple-dark);
	transform: translateX(3px);
}

.nnl2-footer__col .nnl2-app-icon {
	width: 20px;
	height: 20px;
}

.nnl2-footer__note {
	margin: 0 0 16px;
	font-size: 14.5px;
	line-height: 1.7;
}

/* Newsletter form (Contact Form 7, form 38) */
.nnl2-footer__form .footer_subscription {
	position: relative;
}

.nnl2-footer__form .wpcf7-form-control-wrap {
	display: block;
}

.nnl2-footer__form input[type="email"] {
	width: 100%;
	height: 54px;
	padding: 6px 128px 6px 22px;
	font-size: 15px;
	color: var(--nnl2-ink);
	background: #fff;
	border: 1px solid #e3d9f7;
	border-radius: 999px;
	box-shadow: 0 6px 18px rgba(91, 52, 184, 0.06);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nnl2-footer__form input[type="email"]:focus {
	border-color: var(--nnl2-purple);
	outline: 0;
	box-shadow: 0 0 0 4px rgba(143, 85, 214, 0.15);
}

.nnl2-footer__form .subscribe-submit {
	position: absolute;
	top: 6px;
	right: 6px;
}

.nnl2-footer__form input[type="submit"] {
	height: 42px;
	padding: 0 22px;
	font-size: 14.5px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(135deg, var(--nnl2-pink) 0%, var(--nnl2-pink-2) 100%);
	border: 0;
	border-radius: 999px;
}

.nnl2-footer__form input[type="submit"]:hover {
	filter: brightness(0.92);
}

.nnl2-footer__form .wpcf7-spinner {
	position: absolute;
	top: 15px;
	right: 118px;
	margin: 0;
}

.nnl2-footer__form .wpcf7-response-output {
	margin: 10px 0 0 !important;
	font-size: 13px;
	border-radius: 12px;
}

.nnl2-footer__place {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 16px 0 0;
	font-size: 14px;
}

.nnl2-footer__place .nnl-icon {
	color: var(--nnl2-pink);
}

/* Bottom bar */
.nnl2-footer__bottom {
	padding: 20px 0;
	font-size: 14px;
	border-top: 1px solid rgba(91, 52, 184, 0.12);
}

.nnl2-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
}

.nnl2-footer__copyright {
	margin: 0;
}

.nnl2-footer__legal {
	margin-right: auto;
}

.nnl2-footer__legal ul {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nnl2-footer__bottom a {
	color: var(--nnl2-muted);
}

.nnl2-footer__bottom a:hover {
	color: var(--nnl2-purple-dark);
}

.nnl2-totop {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 8px 14px;
	font-weight: 500;
	background: #fff;
	border: 1px solid rgba(91, 52, 184, 0.14);
	border-radius: 999px;
}

.nnl2-totop .nnl-icon {
	width: 15px;
	height: 15px;
}

@media (max-width: 1199.98px) {
	.nnl2-footer__grid {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
		gap: 36px 32px;
	}

	.nnl2-footer__news {
		grid-column: 1 / -1;
		max-width: 620px;
	}

	.nnl2-band__card {
		padding: 38px 36px;
	}
}

@media (max-width: 991.98px) {
	.nnl2-band__card {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 767.98px) {
	.nnl2-footer__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.nnl2-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 575.98px) {
	.nnl2-band {
		padding-top: 40px;
	}

	.nnl2-band__card {
		align-items: stretch;
		padding: 30px 22px;
		text-align: center;
		border-radius: 22px;
	}

	.nnl2-band__title {
		font-size: 24px;
	}

	.nnl2-band__text {
		font-size: 15px;
	}

	.nnl2-band__actions {
		flex-direction: column;
	}

	.nnl2-band__actions .nnl2-btn {
		width: 100%;
	}

	.nnl2-footer__main {
		padding: 44px 0 32px;
	}

	.nnl2-footer__grid {
		gap: 32px 20px;
	}

	.nnl2-footer__brand,
	.nnl2-footer__col,
	.nnl2-footer__news {
		text-align: center;
	}

	.nnl2-footer__place {
		justify-content: center;
	}

	.nnl2-footer__about {
		margin-right: auto;
		margin-left: auto;
	}

	.nnl2-social--footer {
		justify-content: center;
	}

	.nnl2-footer__bottom-inner {
		flex-direction: column;
		text-align: center;
	}

	.nnl2-footer__legal {
		margin-right: 0;
	}
}

/* ==========================================================================
   Free lesson bar and floating back-to-top
   Both step aside while the footer is on screen (navigation-v2.js).
   ========================================================================== */
.nnl2-promo {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 990;
	padding: 0 16px max(16px, env(safe-area-inset-bottom));
	visibility: hidden;
	pointer-events: none;
	transform: translateY(calc(100% + 24px));
	transition: transform 0.45s var(--nnl2-ease), visibility 0s linear 0.45s;
}

.nnl2-promo[hidden] {
	display: none;
}

.nnl2-promo.is-visible {
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.nnl2-promo__inner {
	display: flex;
	gap: 14px;
	align-items: center;
	max-width: 600px;
	margin: 0 auto;
	padding: 9px 9px 9px 12px;
	color: #fff;
	background: linear-gradient(120deg, #5b34b8 0%, #8f55d6 55%, #d063b5 100%);
	border-radius: 999px;
	box-shadow: 0 18px 44px rgba(64, 30, 140, 0.35);
	pointer-events: auto;
}

.nnl2-promo__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 50%;
}

.nnl2-promo__icon .nnl-icon {
	width: 20px;
	height: 20px;
}

.nnl2-promo__text {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
}

.nnl2-promo__btn {
	display: inline-flex;
	flex-shrink: 0;
	gap: 6px;
	align-items: center;
	min-height: 42px;
	padding: 10px 18px;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--nnl2-purple-dark);
	white-space: nowrap;
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(24, 10, 60, 0.18);
	transition: transform 0.2s var(--nnl2-ease);
}

.nnl2-promo__btn:hover,
.nnl2-promo__btn:focus-visible {
	color: var(--nnl2-purple-dark);
	transform: translateY(-1px);
}

.nnl2-promo__btn .nnl-icon {
	width: 16px;
	height: 16px;
	transition: transform 0.2s var(--nnl2-ease);
}

.nnl2-promo__btn:hover .nnl-icon,
.nnl2-promo__btn:focus-visible .nnl-icon {
	transform: translateX(3px);
}

.nnl2-promo__close {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	color: #fff;
	background: transparent;
	border: 0;
	border-radius: 50%;
	opacity: 0.8;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}

.nnl2-promo__close .nnl-icon {
	width: 16px;
	height: 16px;
}

@media (max-width: 575.98px) {
	.nnl2-promo {
		padding: 0 10px max(10px, env(safe-area-inset-bottom));
	}

	.nnl2-promo__inner {
		gap: 10px;
		padding: 8px 6px 8px 8px;
		border-radius: 20px;
	}

	.nnl2-promo__icon {
		width: 34px;
		height: 34px;
	}

	.nnl2-promo__text {
		font-size: 14px;
	}

	.nnl2-promo__btn {
		min-height: 40px;
		padding: 9px 14px;
		font-size: 14px;
	}

	.nnl2-promo__btn .nnl-icon {
		display: none;
	}

	.nnl2-promo__close {
		width: 28px;
		height: 28px;
	}
}

/* Sits above the free lesson bar while the bar is showing (--nnl2-promo-space is set by navigation-v2.js). */
.nnl2-fab-top {
	position: fixed;
	right: 20px;
	bottom: calc(20px + var(--nnl2-promo-space, 0px));
	z-index: 989;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	color: var(--nnl2-purple-dark);
	visibility: hidden;
	background: #fff;
	border: 1px solid var(--nnl2-line);
	border-radius: 50%;
	box-shadow: 0 10px 26px rgba(31, 37, 71, 0.16);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.25s ease, transform 0.25s var(--nnl2-ease), bottom 0.35s var(--nnl2-ease), background-color 0.18s ease, color 0.18s ease, visibility 0s linear 0.25s;
}

.nnl2-fab-top.is-visible {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition-delay: 0s;
}

.nnl2-fab-top:hover,
.nnl2-fab-top:focus-visible {
	color: #fff;
	background: var(--nnl2-purple);
	border-color: var(--nnl2-purple);
}

.nnl2-fab-top .nnl-icon {
	width: 20px;
	height: 20px;
}

@media (max-width: 575.98px) {
	.nnl2-fab-top {
		right: 14px;
		bottom: calc(14px + var(--nnl2-promo-space, 0px));
		width: 42px;
		height: 42px;
	}
}

/* The Home and Lessons page designs bring their own floating back-to-top button; the theme's one replaces it. */
.nnl-v2 #nnBackToTop {
	display: none !important;
}

/* Elementor's Site Settings colour every hovered/focused button dark (#413655); keep the theme's own button colours. */
.nnl-v2 .nnl2-burger:hover,
.nnl-v2 .nnl2-burger:focus,
.nnl-v2 .nnl2-drawer__close:hover,
.nnl-v2 .nnl2-drawer__close:focus {
	background-color: var(--nnl2-lavender-2);
}

.nnl-v2 .nnl2-sub-toggle:hover,
.nnl-v2 .nnl2-sub-toggle:focus {
	background-color: var(--nnl2-lavender);
}

.nnl-v2 .nnl2-promo__close:hover,
.nnl-v2 .nnl2-promo__close:focus {
	background-color: rgba(255, 255, 255, 0.16);
	opacity: 1;
}

/* Logged-in only: on narrow phones the admin bar runs out of room and its account item wraps over the header. */
@media (max-width: 399.98px) {
	#wpadminbar #wp-admin-bar-google-site-kit {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nnl-v2 *,
	.nnl-v2 *::before,
	.nnl-v2 *::after {
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
		animation-duration: 0.01ms !important;
	}
}
