/*
Theme Name: NihongoNana Lite
Theme URI: https://nihongonana.com/
Author: NihongoNana
Description: Lightweight theme for NihongoNana. Keeps the look of the previous Dreams LMS header, footer and blog without the LMS, WooCommerce, Bootstrap, slider and icon-font code. Works with Elementor and Elementor Pro Theme Builder.
Version: 1.4.2
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nihongonana-lite
*/

/* ==========================================================================
   Tokens (values measured from the Dreams LMS theme as it rendered on the site)
   ========================================================================== */
:root {
	--nnl-primary: #d6336c;
	--nnl-primary-dark: #bd2a5d;
	--nnl-heading: #002058;
	--nnl-text: #685f78;
	--nnl-text-strong: #26292c;
	--nnl-border: #e9ecef;
	--nnl-bg: #ffffff;
	--nnl-bg-soft: #fafafa;
	--nnl-tag-bg: #ffdeda;
	--nnl-input-bg: rgba(229, 229, 229, 0.42);
	--nnl-radius: 10px;
	--nnl-radius-sm: 5px;
	--nnl-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
	--nnl-content-size: 14px;
	--nnl-header-height: 95px;
	--nnl-admin-bar: 0px;
}

.admin-bar {
	--nnl-admin-bar: 32px;
}

@media (max-width: 782px) {
	.admin-bar {
		--nnl-admin-bar: 46px;
	}
}

/* Below 600px the admin bar scrolls away with the page. */
@media (max-width: 600px) {
	.admin-bar {
		--nnl-admin-bar: 0px;
	}
}

/* ==========================================================================
   Base (the parts of Bootstrap's reboot the old theme relied on)
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--nnl-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--nnl-text);
	background: var(--nnl-bg);
	-webkit-font-smoothing: antialiased;
}

/* Elementor's Site Settings give body a grey background (.elementor-kit-*); the old theme hid it behind a white wrapper. */
body[class*="elementor-kit-"] {
	background-color: var(--nnl-bg);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--nnl-heading);
}

h1 { font-size: calc(1.375rem + 1.5vw); }
h2 { font-size: calc(1.325rem + 0.9vw); }
h3 { font-size: calc(1.3rem + 0.6vw); }
h4 { font-size: calc(1.275rem + 0.3vw); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (min-width: 1200px) {
	h1 { font-size: 2.5rem; }
	h2 { font-size: 2rem; }
	h3 { font-size: 1.75rem; }
	h4 { font-size: 1.5rem; }
}

p {
	margin: 0 0 1rem;
}

ul,
ol {
	margin: 0 0 1rem;
	padding-left: 2rem;
}

a {
	color: var(--nnl-heading);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--nnl-primary);
}

img,
svg,
video {
	vertical-align: middle;
}

img {
	max-width: 100%;
	height: auto;
}

b,
strong {
	font-weight: bolder;
}

table {
	border-collapse: collapse;
}

button,
input,
select,
textarea {
	margin: 0;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

button {
	cursor: pointer;
}

hr {
	margin: 1rem 0;
	border: 0;
	border-top: 1px solid var(--nnl-border);
}

:focus-visible {
	outline: 2px solid var(--nnl-primary);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.nnl-skip-link:focus {
	position: fixed !important;
	top: calc(var(--nnl-admin-bar) + 8px);
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	color: #fff;
	background: var(--nnl-heading);
	border-radius: var(--nnl-radius-sm);
}

.nnl-icon {
	flex-shrink: 0;
}

/* Container: same widths as Bootstrap's .container, so Elementor pages keep their layout. */
.nnl-container {
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	padding-right: 12px;
	padding-left: 12px;
}

@media (min-width: 576px) { .nnl-container { max-width: 540px; } }
@media (min-width: 768px) { .nnl-container { max-width: 720px; } }
@media (min-width: 992px) { .nnl-container { max-width: 960px; } }
@media (min-width: 1200px) { .nnl-container { max-width: 1140px; } }
@media (min-width: 1400px) { .nnl-container { max-width: 1320px; } }

.nnl-button {
	display: inline-block;
	min-height: 48px;
	padding: 12px 26px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	color: #fff;
	cursor: pointer;
	background: var(--nnl-primary);
	border: 1px solid var(--nnl-primary);
	border-radius: 999px;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nnl-button:hover,
.nnl-button:focus {
	color: #fff;
	background: var(--nnl-primary-dark);
	border-color: var(--nnl-primary-dark);
}

/* ==========================================================================
   Header
   ========================================================================== */
.nnl-header {
	position: sticky;
	top: var(--nnl-admin-bar);
	z-index: 1000;
	background: var(--nnl-bg);
	transition: box-shadow 0.2s ease, background-color 0.2s ease, padding 0.2s ease;
}

.nnl-header.is-scrolled {
	box-shadow: 0 4px 18px rgba(0, 32, 88, 0.06);
}

.nnl-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--nnl-header-height);
}

.nnl-header__brand {
	display: flex;
	align-items: center;
}

.custom-logo-link {
	display: inline-flex;
}

.custom-logo {
	width: 160px;
	height: auto;
}

.nnl-site-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--nnl-heading);
}

/* Home template: header floats over the first section, as before. */
.nnl-has-overlay-header .nnl-header {
	position: fixed;
	right: 0;
	left: 0;
	padding-top: 20px;
	background: transparent;
}

.nnl-has-overlay-header .nnl-header .nnl-header__inner {
	min-height: 70px;
}

.nnl-has-overlay-header .nnl-header.is-scrolled {
	padding-top: 0;
	background: var(--nnl-bg);
}

/* Desktop menu */
.nnl-nav__menu {
	display: flex;
	align-items: center;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nnl-nav__menu li {
	position: relative;
}

.nnl-nav__menu > li > a {
	display: block;
	font-size: 15px;
	font-weight: 500;
	line-height: 70px;
	color: var(--nnl-text);
}

.nnl-nav__menu a:hover,
.nnl-nav__menu a:focus,
.nnl-nav__menu .current-menu-item > a,
.nnl-nav__menu .current-menu-ancestor > a,
.nnl-nav__menu .current_page_parent > a {
	color: var(--nnl-primary);
}

.nnl-nav__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -16px;
	z-index: 10;
	min-width: 220px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	visibility: hidden;
	opacity: 0;
	background: var(--nnl-bg);
	border: 1px solid var(--nnl-border);
	border-radius: var(--nnl-radius-sm);
	box-shadow: 0 10px 30px rgba(0, 32, 88, 0.08);
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

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

.nnl-nav__menu .sub-menu a {
	display: block;
	padding: 8px 16px;
	font-size: 14px;
	color: var(--nnl-text);
}

.nnl-nav__head,
.nnl-menu-toggle,
.nnl-nav__close,
.nnl-nav-overlay {
	display: none;
}

.nnl-menu-toggle,
.nnl-nav__close {
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--nnl-heading);
	background: transparent;
	border: 0;
}

.nnl-menu-toggle .nnl-icon,
.nnl-nav__close .nnl-icon {
	width: 24px;
	height: 24px;
}

/* Mobile drawer menu */
@media (max-width: 991.98px) {
	.nnl-menu-toggle {
		display: inline-flex;
	}

	.nnl-nav {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 1002;
		width: 280px;
		max-width: 85vw;
		padding: 0 20px 30px;
		overflow-y: auto;
		background: var(--nnl-bg);
		transform: translateX(-100%);
		transition: transform 0.25s ease;
	}

	.nnl-nav-open .nnl-nav {
		transform: none;
	}

	.nnl-nav__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 70px;
		margin-bottom: 10px;
		border-bottom: 1px solid var(--nnl-border);
	}

	.nnl-nav__close {
		display: inline-flex;
	}

	.nnl-nav__menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nnl-nav__menu > li > a {
		line-height: 1.4;
		padding: 12px 0;
		border-bottom: 1px solid var(--nnl-border);
	}

	.nnl-nav__menu .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0 14px;
		visibility: visible;
		opacity: 1;
		border: 0;
		box-shadow: none;
		transform: none;
	}

	.nnl-nav-overlay {
		position: fixed;
		inset: 0;
		z-index: 1001;
		display: block;
		background: rgba(0, 32, 88, 0.35);
	}

	.nnl-nav-overlay[hidden] {
		display: none;
	}

	.nnl-nav-open {
		overflow: hidden;
	}

	/* Keep the drawer's logo and close button below the WordPress admin bar. */
	.admin-bar .nnl-nav {
		top: 32px;
	}
}

@media (max-width: 782px) {
	.admin-bar .nnl-nav {
		top: 46px;
	}
}

/* ==========================================================================
   Main areas
   ========================================================================== */
.nnl-main {
	padding: 80px 0 56px;
	background: var(--nnl-bg-soft);
}

@media (max-width: 991.98px) {
	.nnl-main {
		padding: 50px 0 40px;
	}
}

@media (max-width: 575.98px) {
	.nnl-main {
		padding: 30px 0;
	}
}

/* Elementor pages whose first section is pulled up into the old theme's 80px top padding keep that padding on
   every screen size, so the section starts under the header instead of sliding behind it on phones. */
.nnl-main.nnl-main--pulled {
	padding-top: 80px;
}

.nnl-layout {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	gap: 24px;
	align-items: start;
}

@media (max-width: 991.98px) {
	.nnl-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================================
   Posts and plain pages
   ========================================================================== */
/* Posts and pages written in the block editor; Elementor pages keep their own backgrounds. */
.nnl-main--post,
.nnl-main--plain {
	background: linear-gradient(180deg, #f4eefe 0, #fbf9ff 360px);
}

.nnl-entry {
	margin-bottom: 24px;
	padding: 40px;
	background: var(--nnl-bg);
	border: 1px solid rgba(31, 37, 71, 0.07);
	border-radius: 22px;
	box-shadow: 0 6px 20px rgba(31, 37, 71, 0.05);
}

@media (max-width: 991.98px) {
	.nnl-entry {
		padding: 28px;
	}
}

@media (max-width: 575.98px) {
	.nnl-entry {
		padding: 20px 18px;
		border-radius: 18px;
	}
}

.nnl-entry__cat {
	display: inline-block;
	margin-bottom: 14px;
	padding: 4px 12px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	color: #6a3cc0;
	text-decoration: none;
	background: #f4eefe;
	border-radius: 999px;
}

.nnl-entry__cat:hover,
.nnl-entry__cat:focus-visible {
	color: #fff;
	background: #6a3cc0;
}

.nnl-entry__image {
	margin: 0 0 32px;
}

.nnl-entry__image img {
	display: block;
	width: 100%;
	border-radius: 16px;
}

.nnl-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	margin: 0 0 28px;
	padding: 0;
	font-size: 14px;
	list-style: none;
	color: #6b6785;
}

.nnl-meta li {
	display: flex;
	align-items: center;
	gap: 6px;
}

.nnl-meta a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
}

.nnl-meta a:hover {
	color: var(--nnl-primary);
}

.nnl-meta__avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
}

.nnl-meta .nnl-icon {
	color: #8f55d6;
}

.nnl-entry__title {
	margin: 0 0 16px;
	font-size: clamp(28px, 3.2vw, 38px);
	font-weight: 700;
	line-height: 1.22;
	color: #002058;
	letter-spacing: -0.01em;
}

/* Post content typography: larger, darker body text for reading. */
.entry-content {
	font-size: 17px;
	line-height: 1.8;
	color: #4b4662;
	overflow-wrap: break-word;
}

@media (max-width: 575.98px) {
	.entry-content {
		font-size: 16px;
		line-height: 1.75;
	}
}

.entry-content strong,
.entry-content b {
	color: #1f2547;
}

.entry-content li + li {
	margin-top: 6px;
}

.entry-content img {
	border-radius: 12px;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content figure,
.entry-content table,
.entry-content blockquote,
.entry-content pre {
	margin-bottom: 20px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin: 40px 0 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #002058;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content h1 {
	font-size: clamp(25px, 2.8vw, 31px);
}

.entry-content h2 {
	font-size: clamp(23px, 2.4vw, 28px);
}

.entry-content h3 {
	margin-top: 32px;
	font-size: clamp(19px, 2vw, 22px);
	font-weight: 600;
	color: #1f2547;
}

.entry-content h4 {
	margin-top: 28px;
	font-size: 18px;
	font-weight: 600;
	color: #1f2547;
}

.entry-content a {
	color: #6a3cc0;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content a:hover,
.entry-content a:focus {
	color: #d6336c;
}

.entry-content figure {
	margin-left: 0;
	margin-right: 0;
}

.entry-content figcaption,
.entry-content .wp-caption-text {
	margin-top: 8px;
	font-size: 13px;
	text-align: center;
}

.entry-content blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 16px 20px;
	color: #1f2547;
	background: #f4eefe;
	border-left: 4px solid #8f55d6;
	border-radius: 0;
}

.entry-content table {
	width: 100%;
}

.entry-content th,
.entry-content td {
	padding: 8px 10px;
	text-align: left;
	border: 1px solid var(--nnl-border);
}

.entry-content th {
	color: var(--nnl-heading);
	background: var(--nnl-bg-soft);
}

.entry-content pre,
.entry-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.92em;
	background: var(--nnl-bg-soft);
	border-radius: 4px;
}

.entry-content code {
	padding: 2px 5px;
}

.entry-content pre {
	padding: 14px 16px;
	overflow-x: auto;
}

.entry-content hr {
	height: 1px;
	margin: 32px 0;
	background: rgba(31, 37, 71, 0.1);
	border: 0;
}

.entry-content iframe,
.entry-content embed,
.entry-content object {
	max-width: 100%;
}

.alignleft {
	float: left;
	margin: 0 20px 20px 0;
}

.alignright {
	float: right;
	margin: 0 0 20px 20px;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

/* Tags under a post */
.nnl-tags,
.nnl-widget .tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.nnl-widget .tagcloud {
	margin: 0;
}

.nnl-tags {
	padding-top: 24px;
	border-top: 1px solid rgba(31, 37, 71, 0.07);
}

.nnl-tags a,
.nnl-widget .tagcloud a {
	display: inline-block;
	padding: 5px 13px;
	font-size: 13.5px !important;
	font-weight: 600;
	line-height: 21px;
	color: #6a3cc0;
	text-transform: capitalize;
	text-decoration: none;
	background: #f4eefe;
	border: 1px solid #f4eefe;
	border-radius: 999px;
}

.nnl-tags a:hover,
.nnl-widget .tagcloud a:hover {
	color: #fff;
	background: #6a3cc0;
	border-color: #6a3cc0;
}

/* Previous / next post */
.post-navigation {
	margin-bottom: 24px;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.post-navigation .nav-next {
	grid-column: 2;
	text-align: right;
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 18px 22px;
	background: var(--nnl-bg);
	border: 1px solid rgba(31, 37, 71, 0.07);
	border-radius: 18px;
	box-shadow: 0 6px 20px rgba(31, 37, 71, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-navigation a:hover,
.post-navigation a:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(64, 30, 140, 0.1);
}

.post-navigation a:hover .nnl-post-nav__title {
	color: #6a3cc0;
}

.nnl-post-nav__label {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	color: var(--nnl-text);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.nnl-post-nav__title {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: var(--nnl-heading);
}

@media (max-width: 575.98px) {
	.post-navigation .nav-links {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-navigation .nav-next {
		grid-column: 1;
	}
}

/* Comments */
.nnl-comments__title {
	margin-bottom: 20px;
	font-size: 22px;
	font-weight: 600;
}

.nnl-comments__list,
.nnl-comments__list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nnl-comments__list .children {
	padding-left: 24px;
}

.nnl-comments__list .comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--nnl-border);
}

.nnl-comments__list .comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--nnl-heading);
}

.nnl-comments__list .avatar {
	border-radius: 50%;
}

.nnl-comments__list .comment-meta,
.nnl-comments__list .comment-metadata {
	font-size: 12px;
}

.comment-respond {
	margin-top: 20px;
}

.comment-reply-title {
	font-size: 20px;
	font-weight: 600;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
	color: var(--nnl-heading);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	font-size: 16px;
	background: var(--nnl-bg);
	border: 1px solid #e1dde9;
	border-radius: 12px;
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: #8f55d6;
	outline: 0;
	box-shadow: 0 0 0 4px rgba(143, 85, 214, 0.15);
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
}

/* ==========================================================================
   Sidebar widgets
   ========================================================================== */
.nnl-widget {
	margin-bottom: 24px;
	padding: 24px;
	background: var(--nnl-bg);
	border: 1px solid rgba(31, 37, 71, 0.07);
	border-radius: 20px;
	box-shadow: 0 6px 20px rgba(31, 37, 71, 0.05);
}

.nnl-widget__title {
	margin: 0 0 18px;
	font-size: 18px;
	font-weight: 700;
	color: #002058;
}

.nnl-widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nnl-widget li {
	margin-bottom: 12px;
}

.nnl-widget li:last-child {
	margin-bottom: 0;
}

.nnl-widget a {
	font-size: 15px;
	font-weight: 500;
	color: var(--nnl-text);
}

.nnl-widget a:hover {
	color: var(--nnl-primary);
}

.nnl-widget select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--nnl-border);
	border-radius: var(--nnl-radius-sm);
}

/* Recent posts with thumbnails */
.nnl-recent__item {
	display: flex;
	align-items: center;
	gap: 15px;
}

.nnl-recent__thumb {
	flex: 0 0 80px;
}

.nnl-recent__thumb img {
	display: block;
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 12px;
}

.nnl-recent__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.nnl-widget .nnl-recent__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--nnl-heading);
}

.nnl-recent__date {
	font-size: 12px;
}

/* Search form (sidebar, search page, 404) */
.nnl-search {
	display: flex;
	width: 100%;
}

.nnl-search__input {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 6px 18px;
	font-size: 15px;
	color: var(--nnl-text);
	background: #f6f2fd;
	border: 1px solid #ebe1fd;
	border-right: 0;
	border-radius: 999px 0 0 999px;
}

.nnl-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 48px;
	color: #fff;
	background: var(--nnl-primary);
	border: 0;
	border-radius: 0 999px 999px 0;
}

.nnl-search__button:hover {
	background: var(--nnl-primary-dark);
}

/* ==========================================================================
   Blog: posts page, archives, search results and the [nnl_latest_posts] cards
   ========================================================================== */
.nnl-main--blog {
	padding-top: 0;
	background: #fbf9ff;
}

.nnl-blog-hero {
	margin-bottom: 40px;
	padding: 56px 0 44px;
	text-align: center;
	background:
		radial-gradient(60% 120% at 85% 0%, rgba(255, 101, 117, 0.12) 0%, rgba(255, 101, 117, 0) 70%),
		radial-gradient(60% 120% at 10% 0%, rgba(143, 85, 214, 0.16) 0%, rgba(143, 85, 214, 0) 70%),
		linear-gradient(180deg, #f4eefe 0%, #fbf9ff 100%);
}

.nnl-blog-hero__label {
	display: inline-block;
	margin: 0 0 14px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #6a3cc0;
	letter-spacing: 0.02em;
	background: rgba(143, 85, 214, 0.12);
	border-radius: 999px;
}

.nnl-blog-hero .nnl-blog-hero__title {
	margin: 0 0 12px;
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 700;
	line-height: 1.15;
	color: #002058;
	letter-spacing: -0.01em;
	overflow-wrap: anywhere;
}

.nnl-blog-hero__intro {
	max-width: 620px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.7;
	color: #6b6785;
}

.nnl-blog-hero__intro p {
	margin: 0;
}

.nnl-blog-hero__search {
	max-width: 520px;
	margin: 26px auto 0;
}

.nnl-blog-hero .nnl-search {
	padding: 6px;
	background: #fff;
	border: 1px solid #e3d9f7;
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(91, 52, 184, 0.08);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nnl-blog-hero .nnl-search:focus-within {
	border-color: #8f55d6;
	box-shadow: 0 0 0 4px rgba(143, 85, 214, 0.15);
}

.nnl-blog-hero .nnl-search__input {
	height: 44px;
	padding: 6px 16px;
	background: transparent;
	border-radius: 999px;
}

.nnl-blog-hero .nnl-search__input:focus,
.nnl-blog-hero .nnl-search__input:focus-visible {
	outline: 0;
}

.nnl-blog-hero .nnl-search__button {
	width: 44px;
	height: 44px;
	background: linear-gradient(135deg, #d6336c 0%, #c2338a 100%);
	border-radius: 50%;
}

.nnl-blog-cats {
	margin-top: 22px;
}

.nnl-blog-cats ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nnl-blog-cats a {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	min-height: 42px;
	padding: 8px 16px;
	font-size: 14.5px;
	font-weight: 600;
	color: #1f2547;
	background: #fff;
	border: 1px solid #e9e2f8;
	border-radius: 999px;
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.nnl-blog-cats a:hover {
	color: #6a3cc0;
	border-color: #cdb8f2;
}

.nnl-blog-cats a[aria-current="page"] {
	color: #fff;
	background: linear-gradient(135deg, #8f55d6 0%, #6a3cc0 100%);
	border-color: transparent;
}

.nnl-blog-cats__count {
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 700;
	color: #6a3cc0;
	background: #f4eefe;
	border-radius: 999px;
}

.nnl-blog-cats a[aria-current="page"] .nnl-blog-cats__count {
	color: #fff;
	background: rgba(255, 255, 255, 0.22);
}

/* Cards */
.nnl-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.nnl-post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(31, 37, 71, 0.07);
	border-radius: 20px;
	box-shadow: 0 6px 20px rgba(31, 37, 71, 0.05);
	transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}

.nnl-post-card:hover,
.nnl-post-card:focus-within {
	box-shadow: 0 18px 40px rgba(64, 30, 140, 0.12);
	transform: translateY(-4px);
}

.nnl-post-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, #efe6fd 0%, #ffe9ef 100%);
}

.nnl-post-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nnl-post-card:hover .nnl-post-card__media img {
	transform: scale(1.04);
}

.nnl-post-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: 56px;
	font-weight: 700;
	color: rgba(106, 60, 192, 0.3);
}

.nnl-post-card__flag {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: linear-gradient(135deg, #d6336c 0%, #c2338a 100%);
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(214, 51, 108, 0.3);
}

.nnl-post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 20px 22px 22px;
}

.nnl-post-card .nnl-post-card__cat {
	position: relative;
	z-index: 2;
	margin-bottom: 10px;
	padding: 4px 11px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.5;
	color: #6a3cc0;
	text-decoration: none;
	background: #f4eefe;
	border-radius: 999px;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.nnl-post-card .nnl-post-card__cat:hover {
	color: #fff;
	background: #8f55d6;
}

.nnl-post-card .nnl-post-card__title {
	margin: 0 0 10px;
	font-size: 18.5px;
	font-weight: 700;
	line-height: 1.35;
	color: #002058;
	transition: color 0.15s ease;
}

.nnl-post-card .nnl-post-card__title a {
	color: inherit;
	text-decoration: none;
}

/* The title link covers the whole card. */
.nnl-post-card__title a::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	content: "";
}

.nnl-post-card:hover .nnl-post-card__title {
	color: #6a3cc0;
}

.nnl-post-card__excerpt {
	display: -webkit-box;
	margin-bottom: 16px;
	overflow: hidden;
	font-size: 14.5px;
	line-height: 1.65;
	color: #6b6785;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.nnl-post-card .nnl-post-card__excerpt p {
	margin: 0;
}

.nnl-post-card .nnl-post-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	align-items: center;
	align-self: stretch;
	margin: auto 0 0;
	padding-top: 14px;
	font-size: 13px;
	color: #8a86a0;
	border-top: 1px solid rgba(31, 37, 71, 0.07);
}

.nnl-post-card__read {
	display: inline-flex;
	gap: 5px;
	align-items: center;
}

.nnl-post-card__read .nnl-icon {
	width: 14px;
	height: 14px;
}

/* Newest post on the first page of the blog */
.nnl-post-card--featured {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.nnl-post-card--featured .nnl-post-card__media {
	min-height: 340px;
	aspect-ratio: auto;
}

.nnl-post-card--featured .nnl-post-card__media img {
	position: absolute;
	inset: 0;
}

.nnl-post-card--featured .nnl-post-card__body {
	justify-content: center;
	padding: 36px 40px;
}

.nnl-post-card--featured .nnl-post-card__title {
	font-size: clamp(22px, 2.4vw, 30px);
	line-height: 1.25;
}

.nnl-post-card--featured .nnl-post-card__excerpt {
	font-size: 15.5px;
	-webkit-line-clamp: 4;
}

.nnl-post-card--featured .nnl-post-card__meta {
	margin-top: 4px;
}

.nnl-latest {
	width: 100%;
	max-width: 1164px;
	margin-right: auto;
	margin-left: auto;
	padding-right: 12px;
	padding-left: 12px;
}

/* Carousel: a scroll-snapping row; the padding leaves room for the card shadow and hover lift. */
.nnl-carousel__viewport {
	position: relative;
	margin: -12px -6px -18px;
	padding: 12px 6px 30px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 6px;
	scrollbar-width: none;
}

.nnl-carousel__viewport::-webkit-scrollbar {
	display: none;
}

.nnl-carousel__viewport:focus-visible {
	outline: 2px solid #8f55d6;
	outline-offset: -2px;
	border-radius: 22px;
}

.nnl-posts.nnl-carousel__track {
	display: flex;
	gap: 28px;
}

.nnl-carousel__track > .nnl-post-card {
	flex: 0 0 calc((100% - 56px) / 3);
	scroll-snap-align: start;
}

.nnl-carousel__controls {
	display: none;
	gap: 14px;
	align-items: center;
	justify-content: center;
	margin-top: 8px;
}

.nnl-latest--carousel.is-ready .nnl-carousel__controls {
	display: flex;
}

.nnl-latest--carousel.is-static .nnl-carousel__controls {
	display: none;
}

.nnl-latest .nnl-carousel__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	color: #6a3cc0;
	background: #fff;
	border: 1px solid #e9e2f8;
	border-radius: 50%;
	box-shadow: 0 6px 16px rgba(31, 37, 71, 0.06);
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.nnl-latest .nnl-carousel__arrow:hover,
.nnl-latest .nnl-carousel__arrow:focus {
	color: #fff;
	background: #8f55d6;
	border-color: #8f55d6;
}

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

.nnl-carousel__dots {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
}

.nnl-latest .nnl-carousel__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	background: #d9cdf3;
	border: 0;
	border-radius: 999px;
	transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease;
}

.nnl-latest .nnl-carousel__dot:hover,
.nnl-latest .nnl-carousel__dot:focus {
	background: #b39be6;
}

.nnl-latest .nnl-carousel__dot.is-active {
	width: 26px;
	background: linear-gradient(135deg, #8f55d6 0%, #6a3cc0 100%);
}

@media (max-width: 991.98px) {
	.nnl-posts.nnl-carousel__track {
		gap: 22px;
	}

	.nnl-carousel__track > .nnl-post-card {
		flex-basis: calc((100% - 22px) / 2);
	}
}

@media (max-width: 575.98px) {
	.nnl-posts.nnl-carousel__track {
		gap: 14px;
	}

	/* One card and a peek of the next, so it is clear the row scrolls. */
	.nnl-carousel__track > .nnl-post-card {
		flex-basis: 86%;
	}
}

@media (max-width: 991.98px) {
	.nnl-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}

	.nnl-post-card--featured .nnl-post-card__body {
		padding: 28px;
	}
}

@media (max-width: 767.98px) {
	.nnl-post-card--featured {
		display: flex;
	}

	.nnl-post-card--featured .nnl-post-card__media {
		min-height: 0;
		aspect-ratio: 16 / 10;
	}

	.nnl-post-card--featured .nnl-post-card__body {
		padding: 20px 22px 22px;
	}
}

@media (max-width: 575.98px) {
	.nnl-blog-hero {
		margin-bottom: 28px;
		padding: 40px 0 32px;
	}

	.nnl-blog-hero__intro {
		font-size: 15px;
	}

	.nnl-posts {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
}

/* Booking page (page-book.php): the Dozo calendar, reassurance chips and FAQ */
.nnl-main--book {
	padding-top: 0;
	background: #fbf9ff;
}

.nnl-book-hero {
	margin-bottom: 28px;
	padding-bottom: 32px;
}

.nnl-book {
	max-width: 1000px;
	margin: 0 auto;
	color: #6b6785;
}

.nnl-book > * + * {
	margin-top: 28px;
}

.nnl-book .nnl-book-points {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	justify-content: center;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.nnl-book .nnl-book-points li {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #1f2547;
}

.nnl-book .nnl-book-points li::before {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	content: "";
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%2310b981'/%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nnl-booking {
	min-height: 720px;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(31, 37, 71, 0.07);
	border-radius: 24px;
	box-shadow: 0 18px 44px rgba(64, 30, 140, 0.08);
}

.nnl-booking__fallback {
	margin: 0;
	padding: 120px 20px;
	text-align: center;
}

.nnl-book .nnl-booking__fallback a {
	text-decoration: none;
}

.nnl-booking-result {
	min-height: 260px;
}

.nnl-book h2 {
	margin: 56px 0 18px;
	font-size: clamp(24px, 3vw, 30px);
	font-weight: 700;
	color: #002058;
	text-align: center;
}

.nnl-book .wp-block-details {
	margin: 12px auto 0;
	max-width: 760px;
	padding: 0;
	background: #fff;
	border: 1px solid rgba(31, 37, 71, 0.08);
	border-radius: 16px;
}

.nnl-book .wp-block-details summary {
	position: relative;
	padding: 18px 52px 18px 22px;
	font-size: 16px;
	font-weight: 600;
	color: #1f2547;
	list-style: none;
	cursor: pointer;
}

.nnl-book .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.nnl-book .wp-block-details summary::after {
	position: absolute;
	top: 50%;
	right: 22px;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	content: "";
	border-right: 2px solid #6a3cc0;
	border-bottom: 2px solid #6a3cc0;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.nnl-book .wp-block-details[open] summary::after {
	margin-top: -2px;
	transform: rotate(-135deg);
}

.nnl-book .wp-block-details > :not(summary) {
	margin: 0;
	padding: 0 22px 18px;
	font-size: 15px;
	line-height: 1.7;
}

.nnl-book .nnl-book-help {
	margin-top: 32px;
	font-size: 15px;
	text-align: center;
}

@media (max-width: 575.98px) {
	.nnl-booking {
		min-height: 900px;
		margin-right: -6px;
		margin-left: -6px;
		border-radius: 18px;
	}
}

.nnl-main--blog .nnl-none {
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
}

/* Pagination */
.pagination {
	margin-top: 44px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	font-weight: 600;
	color: #1f2547;
	background: #fff;
	border: 1px solid #e9e2f8;
	border-radius: 999px;
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	color: #fff;
	background: #6a3cc0;
	border-color: #6a3cc0;
}

.pagination .page-numbers.dots {
	min-width: 0;
	padding: 0 4px;
	background: transparent;
	border-color: transparent;
}

.pagination .page-numbers .nnl-icon {
	width: 18px;
	height: 18px;
}

@media (prefers-reduced-motion: reduce) {
	.nnl-post-card,
	.nnl-post-card__media img {
		transition: none;
	}

	.nnl-post-card:hover,
	.nnl-post-card:focus-within,
	.nnl-post-card:hover .nnl-post-card__media img {
		transform: none;
	}
}

.nnl-none__title,
.nnl-404__heading {
	font-size: 22px;
	font-weight: 600;
}

.nnl-404 .nnl-search {
	max-width: 520px;
	margin-bottom: 24px;
}

.nnl-404__list {
	padding-left: 1.2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.nnl-footer {
	background: var(--nnl-bg);
}

.nnl-footer__top {
	padding: 60px 0;
	border-top: 1px solid var(--nnl-border);
}

.nnl-footer__grid {
	display: grid;
	grid-template-columns: 4fr 2fr 2fr 4fr;
	gap: 24px;
}

@media (max-width: 991.98px) {
	.nnl-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

	.nnl-footer__top {
		padding: 40px 0;
	}
}

.nnl-footer__logo {
	margin-bottom: 20px;
}

.nnl-footer__about-text {
	max-width: 315px;
}

.nnl-footer__title {
	margin: 0 0 24px;
	font-size: 20px;
	font-weight: 600;
	text-transform: capitalize;
}

.nnl-footer__menu ul,
.nnl-footer__legal ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nnl-footer__menu li {
	margin-bottom: 12px;
}

.nnl-footer a {
	color: var(--nnl-text);
}

.nnl-footer a:hover {
	color: var(--nnl-primary);
}

.nnl-footer__info {
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.nnl-footer__info li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 12px;
}

.nnl-footer__info .nnl-icon {
	margin-top: 3px;
	color: var(--nnl-primary);
}

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

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

.nnl-footer__form input[type="email"] {
	width: 100%;
	height: 51px;
	padding: 6px 110px 6px 15px;
	color: var(--nnl-text);
	background: var(--nnl-bg);
	border: 1px solid var(--nnl-border);
	border-radius: var(--nnl-radius-sm);
}

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

.nnl-footer__form .subscribe-submit input[type="submit"] {
	padding: 8px 15px;
	font-size: 14px;
	line-height: 21px;
}

.nnl-footer__form .wpcf7-spinner {
	position: absolute;
	top: 12px;
	right: 100px;
	margin: 0;
}

.nnl-footer__form .wpcf7-response-output {
	margin: 10px 0 0 !important;
	font-size: 13px;
}

.nnl-footer__bottom {
	padding: 30px 0;
	border-top: 1px solid var(--nnl-border);
}

.nnl-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.nnl-footer__legal ul {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.nnl-footer__copyright {
	margin: 0;
}

/* ==========================================================================
   Compatibility: the few Bootstrap classes used inside page content and
   Contact Form 7 templates (the old theme loaded all of Bootstrap).
   ========================================================================== */
.row {
	display: flex;
	flex-wrap: wrap;
	margin-right: -12px;
	margin-left: -12px;
}

.row > * {
	flex-shrink: 0;
	width: 100%;
	max-width: 100%;
	padding-right: 12px;
	padding-left: 12px;
}

@media (min-width: 768px) {
	.col-md-6 { flex: 0 0 auto; width: 50%; }
	.col-md-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 992px) {
	.col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
	.col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
	.col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
}

.btn {
	display: inline-block;
	padding: 0.375rem 0.75rem;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: var(--nnl-radius-sm);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
	color: #fff;
	background-color: var(--nnl-primary);
	border-color: var(--nnl-primary);
}

.btn-primary:hover,
.btn-primary:focus {
	color: #fff;
	background-color: var(--nnl-primary-dark);
	border-color: var(--nnl-primary-dark);
}

.form-group {
	margin-bottom: 1rem;
}

.col-form-label {
	display: block;
	padding-bottom: 6px;
	font-weight: 500;
	color: var(--nnl-heading);
}

.form-control {
	display: block;
	width: 100%;
	min-height: 50px;
	padding: 10px 15px;
	color: var(--nnl-text);
	background: var(--nnl-bg);
	border: 1px solid var(--nnl-border);
	border-radius: var(--nnl-radius-sm);
}

textarea.form-control {
	min-height: 140px;
}

.form-control:focus {
	border-color: var(--nnl-primary);
	outline: 0;
}

.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.text-center { text-align: center !important; }
.img-fluid { max-width: 100%; height: auto; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-4 { padding: 1.5rem !important; }
.pt-0 { padding-top: 0 !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.ps-0 { padding-left: 0 !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

/* Coral buttons inside page content (Home, Lessons and Speaking Class HTML widgets) use the theme's berry pink, so
   white text on them reaches 4.5:1. The widgets set their own --accent; "body" makes these win in any CSS order. */
body .nn-homepage,
body .nn-private-lessons,
body .nn-speaking-class {
	--accent: #d6336c;
	--accent-hover: #bd2a5d;
}

body .nn-enroll-modal-overlay .enroll-form .form-submit {
	background: #d6336c;
}

body .nn-enroll-modal-overlay .enroll-form .form-submit:hover {
	background: #bd2a5d;
}

/* The "Limited time" badge on Speaking Class has its colour in an inline style. */
.nn-speaking-class [style*="background:#FF6575"] {
	background: #d6336c !important;
}

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

/* ==========================================================================
   Blog posts: header, reading tools, Japanese text, English translation,
   vocabulary, call to action and posts to read next
   (inc/post-reading.php, assets/js/post.js)
   ========================================================================== */
.nnl-main--post .entry-content {
	--nnl-scale: 1;
	--nnl-furigana: #7b3fb0;
	--nnl-font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
	--wp--preset--font-size--small: calc(15.5px * var(--nnl-scale));
	--wp--preset--font-size--medium: calc(20px * var(--nnl-scale));
	font-size: calc(17px * var(--nnl-scale));
}

html.nnl-size-s .nnl-main--post .entry-content {
	--nnl-scale: 0.9;
}

html.nnl-size-l .nnl-main--post .entry-content {
	--nnl-scale: 1.15;
}

@media (max-width: 575.98px) {
	.nnl-main--post .entry-content {
		--wp--preset--font-size--medium: calc(18px * var(--nnl-scale));
		font-size: calc(16px * var(--nnl-scale));
	}
}

/* Header: title beside the full picture (many pictures carry words, so they are never cropped) */
.nnl-post-head {
	margin-bottom: 24px;
}

.nnl-post-head--image {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
	gap: 32px;
	align-items: center;
}

.nnl-post-head .nnl-entry__title {
	margin-bottom: 14px;
	font-size: clamp(26px, 2.6vw, 34px);
}

.nnl-post-head .nnl-meta {
	margin-bottom: 0;
}

.nnl-post-head__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.nnl-post-head__chips .nnl-entry__cat {
	margin-bottom: 0;
}

.nnl-post-level {
	display: inline-block;
	padding: 4px 12px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	color: #b42359;
	background: #fde7ef;
	border-radius: 999px;
}

.nnl-post-head__image {
	margin: 0;
}

.nnl-post-head__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 940 / 788;
	object-fit: cover;
	border-radius: 18px;
	box-shadow: 0 12px 30px rgba(31, 37, 71, 0.12);
}

@media (max-width: 767.98px) {
	.nnl-post-head--image {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
}

/* Reading toolbar: stays in reach while reading */
.nnl-reader {
	position: sticky;
	top: calc(var(--nnl-admin-bar, 0px) + var(--nnl2-header-h, 76px) + 10px);
	z-index: 30;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	width: 100%;
	margin: 0 0 28px;
	padding: 6px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid #ece3f8;
	border-radius: 14px;
	box-shadow: 0 6px 20px rgba(31, 37, 71, 0.07);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.nnl-reader[hidden] {
	display: none;
}

.nnl-reader__furigana {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	height: 34px;
	padding: 0 12px 0 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: #1f2547;
	background: transparent;
	border: 0;
	border-radius: 10px;
}

.nnl-reader__furigana:hover {
	background: #f4eefe;
}

.nnl-reader__switch {
	position: relative;
	flex: 0 0 34px;
	width: 34px;
	height: 20px;
	background: #d9cdee;
	border-radius: 999px;
	transition: background 0.2s ease;
}

.nnl-reader__switch::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
}

.nnl-reader__furigana[aria-checked="true"] .nnl-reader__switch {
	background: #8f55d6;
}

.nnl-reader__furigana[aria-checked="true"] .nnl-reader__switch::after {
	transform: translateX(14px);
}

.nnl-reader__size {
	display: inline-flex;
	gap: 2px;
	margin-left: auto;
	padding: 3px;
	background: #f4eefe;
	border-radius: 10px;
}

.nnl-reader__size button {
	width: 30px;
	height: 28px;
	padding: 0;
	font-weight: 700;
	line-height: 1;
	color: #6a3cc0;
	background: transparent;
	border: 0;
	border-radius: 7px;
}

.nnl-reader__size button[data-nnl-size="s"] {
	font-size: 12px;
}

.nnl-reader__size button[data-nnl-size="m"] {
	font-size: 15px;
}

.nnl-reader__size button[data-nnl-size="l"] {
	font-size: 18px;
}

.nnl-reader__size button[aria-pressed="true"] {
	color: #fff;
	background: #8f55d6;
}

.nnl-reader__jumps {
	display: inline-flex;
	gap: 2px;
	padding-left: 8px;
	border-left: 1px solid #ece3f8;
}

.nnl-reader__jumps a {
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 10px;
	font-size: 14px;
	font-weight: 600;
	color: #6a3cc0;
	text-decoration: none;
	border-radius: 10px;
}

.nnl-reader__jumps a:hover,
.nnl-reader__jumps a:focus-visible {
	background: #f4eefe;
}

/* Phones: furigana and text size on one line; the translation and vocabulary are a short scroll away. */
@media (max-width: 575.98px) {
	.nnl-reader__jumps {
		display: none;
	}
}

/* Japanese text and furigana */
.nnl-main--post .entry-content .nnl-ja {
	font-family: var(--nnl-font-ja);
	line-height: 2.15;
	letter-spacing: 0.02em;
	color: #1f2547;
}

.nnl-main--post .entry-content ruby {
	ruby-position: over;
	ruby-align: center;
}

/* Lines mixing English and furigana (grammar examples) need the same room for the readings. */
.nnl-main--post .entry-content :is(p, li, h3, h4):has(rt) {
	line-height: 2.1;
}

html.nnl-no-furigana .nnl-main--post .entry-content :is(p, li, h3, h4):has(rt) {
	line-height: 1.85;
}

.nnl-main--post .entry-content rt {
	font-family: var(--nnl-font-ja);
	font-size: 0.5em;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	color: var(--nnl-furigana);
	-webkit-user-select: none;
	user-select: none;
}

html.nnl-no-furigana .nnl-main--post .entry-content rt {
	display: none;
}

html.nnl-no-furigana .nnl-main--post .entry-content .nnl-ja {
	line-height: 1.95;
}

html.nnl-no-furigana .nnl-main--post .entry-content ruby {
	cursor: pointer;
	text-decoration: underline dotted rgba(143, 85, 214, 0.55);
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
}

html.nnl-no-furigana .nnl-main--post .entry-content ruby.nnl-peek rt {
	display: revert;
}

/* Story paragraphs beside their pictures: no side padding, pictures the same shape */
.nnl-main--post .entry-content .wp-block-media-text {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 32% !important;
	column-gap: 28px;
	align-items: start;
	margin: 0 0 6px;
}

.nnl-main--post .entry-content .wp-block-media-text.has-media-on-the-left {
	grid-template-columns: 32% minmax(0, 1fr) !important;
}

.nnl-main--post .entry-content .wp-block-media-text__content {
	padding: 0 !important;
}

.nnl-main--post .entry-content .wp-block-media-text__media {
	align-self: start;
	margin: 8px 0 24px;
}

.nnl-main--post .entry-content .wp-block-media-text__media img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 16px;
	box-shadow: 0 8px 22px rgba(31, 37, 71, 0.1);
}

@media (max-width: 600px) {
	.nnl-main--post .entry-content .wp-block-media-text.is-stacked-on-mobile {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.nnl-main--post .entry-content .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
		grid-row: 1 !important;
		grid-column: 1 !important;
	}

	.nnl-main--post .entry-content .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media {
		grid-row: 2 !important;
		grid-column: 1 !important;
		margin: 0 0 26px;
	}

	.nnl-main--post .entry-content .wp-block-media-text__media img {
		aspect-ratio: 16 / 9;
	}
}

/* Section headings: English translation, vocabulary */
.nnl-main--post .entry-content .nnl-section {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: clamp(20px, 2.2vw, 24px);
}

.nnl-main--post .entry-content .nnl-section::before {
	content: "";
	flex: 0 0 6px;
	width: 6px;
	height: 1.1em;
	background: linear-gradient(180deg, #d6336c, #8f55d6);
	border-radius: 3px;
}

/* English translation: folded, so learners read the Japanese first */
.nnl-translation {
	margin: 36px 0 28px;
	background: #fbf9ff;
	border: 1px solid #ece3f8;
	border-radius: 18px;
}

.nnl-translation > summary {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 16px 20px;
	list-style: none;
	cursor: pointer;
	border-radius: 18px;
}

.nnl-translation > summary::-webkit-details-marker {
	display: none;
}

.nnl-translation > summary:hover {
	background: #f4eefe;
}

.nnl-main--post .entry-content .nnl-translation > summary > .nnl-section {
	min-width: 0;
	margin: 0;
}

.nnl-translation__hint {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	margin-left: auto;
	font-size: 14px;
	font-weight: 600;
	color: #6a3cc0;
	white-space: nowrap;
}

.nnl-translation__hint svg {
	width: 18px;
	height: 18px;
	transition: transform 0.2s ease;
}

.nnl-translation[open] .nnl-translation__hint svg {
	transform: rotate(180deg);
}

.nnl-translation__hide,
.nnl-translation[open] .nnl-translation__show {
	display: none;
}

.nnl-translation[open] .nnl-translation__hide {
	display: inline;
}

.nnl-translation__body {
	padding: 4px 20px;
}

/* Phones: the same title size for both sections, and only the arrow, so the bar stays on one line. */
@media (max-width: 575.98px) {
	.nnl-main--post .entry-content .nnl-section {
		font-size: 19px;
	}

	.nnl-translation > summary {
		padding: 14px 16px;
	}

	.nnl-translation__body {
		padding: 4px 16px;
	}

	.nnl-translation__show,
	.nnl-translation[open] .nnl-translation__hide {
		display: none;
	}
}

/* Vocabulary: word, reading and meaning */
.nnl-main--post .entry-content ul.nnl-vocab {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.nnl-main--post .entry-content .nnl-vocab__item {
	margin: 0;
	padding: 12px 14px;
	line-height: 1.4;
	background: #fbf9ff;
	border: 1px solid #ece3f8;
	border-radius: 14px;
}

.nnl-vocab__word {
	font-family: var(--nnl-font-ja);
	font-size: 1.12em;
	font-weight: 700;
	color: #1f2547;
}

.nnl-vocab__reading {
	margin-left: 8px;
	font-family: var(--nnl-font-ja);
	font-size: 0.86em;
	color: #7b3fb0;
}

.nnl-vocab__meaning {
	display: block;
	margin-top: 3px;
	font-size: 0.92em;
	color: #5b5675;
}

@media (max-width: 575.98px) {
	.nnl-main--post .entry-content ul.nnl-vocab {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Call to action at the end of every post */
.nnl-post-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px 28px;
	align-items: center;
	margin-top: 36px;
	padding: 28px 30px;
	color: #fff;
	background: linear-gradient(120deg, #5b34b8 0%, #7b3fb0 55%, #b0479f 100%);
	border-radius: 20px;
}

.nnl-post-cta__eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.85;
}

.nnl-post-cta__title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}

.nnl-post-cta__text p:last-child {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.92);
}

.nnl-post-cta__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: stretch;
}

.nnl-post-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 700;
	color: #d6336c;
	text-decoration: none;
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
	transition: transform 0.2s ease, color 0.2s ease;
}

.nnl-post-cta__btn:hover,
.nnl-post-cta__btn:focus-visible {
	color: #bd2a5d;
	transform: translateY(-2px);
}

.nnl-post-cta__link {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
}

.nnl-post-cta__link svg {
	width: 16px;
	height: 16px;
}

.nnl-post-cta__link:hover,
.nnl-post-cta__link:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.nnl-post-cta__help {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.85);
}

.nnl-post-cta__help a {
	color: #fff;
}

@media (max-width: 767.98px) {
	.nnl-post-cta {
		grid-template-columns: minmax(0, 1fr);
		padding: 24px 22px;
	}
}

/* Posts to read next */
.nnl-related {
	margin: 0 0 24px;
	padding: 28px 32px;
	background: var(--nnl-bg);
	border: 1px solid rgba(31, 37, 71, 0.07);
	border-radius: 22px;
	box-shadow: 0 6px 20px rgba(31, 37, 71, 0.05);
}

.nnl-related__title {
	margin: 0 0 18px;
	font-size: 22px;
	font-weight: 700;
	color: #002058;
}

.nnl-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.nnl-related__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nnl-related__media {
	overflow: hidden;
	aspect-ratio: 940 / 788;
	background: #f4eefe;
	border-radius: 14px;
}

.nnl-related__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.nnl-related__card:hover .nnl-related__media img {
	transform: scale(1.04);
}

.nnl-related__meta {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: #6a3cc0;
}

.nnl-related__level {
	margin-left: 4px;
	padding: 1px 7px;
	color: #b42359;
	background: #fde7ef;
	border-radius: 999px;
}

.nnl-related__name {
	margin: 2px 0 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.nnl-related__name a {
	color: #1f2547;
	text-decoration: none;
}

.nnl-related__name a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.nnl-related__card:hover .nnl-related__name a,
.nnl-related__name a:focus-visible {
	color: #6a3cc0;
}

@media (max-width: 575.98px) {
	.nnl-related {
		padding: 22px 18px;
	}

	.nnl-related__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.nnl-related__card {
		flex-direction: row;
		gap: 14px;
		align-items: center;
	}

	.nnl-related__media {
		flex: 0 0 104px;
		width: 104px;
	}

	.nnl-related__name {
		font-size: 15px;
	}
}

/* Previous and next post */
.nnl-post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 24px;
}

.nnl-post-nav__link {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 14px 16px;
	text-decoration: none;
	background: var(--nnl-bg);
	border: 1px solid rgba(31, 37, 71, 0.07);
	border-radius: 18px;
	box-shadow: 0 6px 20px rgba(31, 37, 71, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nnl-post-nav__link--next {
	flex-direction: row-reverse;
	text-align: right;
}

.nnl-post-nav__link img {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 12px;
}

.nnl-post-nav__link--empty {
	visibility: hidden;
}

a.nnl-post-nav__link:hover,
a.nnl-post-nav__link:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(64, 30, 140, 0.1);
}

a.nnl-post-nav__link:hover .nnl-post-nav__title {
	color: #6a3cc0;
}

.nnl-post-nav__text {
	min-width: 0;
}

.nnl-post-nav .nnl-post-nav__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

@media (max-width: 575.98px) {
	.nnl-post-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.nnl-post-nav__link--empty {
		display: none;
	}
}
