:root {
	--taa-ink: #16364d;
	--taa-ink-soft: #49657b;
	--taa-accent: #0f6a83;
	--taa-accent-deep: #0d4e6a;
	--taa-sand: #f6efe5;
	--taa-mist: #eef5f7;
	--taa-white: #ffffff;
	--taa-border: rgba(22, 54, 77, 0.12);
	--taa-shadow: 0 18px 48px rgba(18, 46, 67, 0.08);
	--taa-serif: "Cormorant Garamond", "Times New Roman", serif;
	--taa-sans: "Manrope", "Segoe UI", sans-serif;
}

body,
button,
input,
select,
textarea {
	color: var(--taa-ink);
	font-family: var(--taa-sans);
}

body {
	background: linear-gradient(180deg, #fcfdfd 0%, #f7fafb 100%);
}

#page {
	overflow: clip;
}

.taa-site-shell {
	min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.taa-hero__title,
.taa-archive-hero__title,
.taa-single-hero__title,
.taa-page-header__title {
	font-family: var(--taa-serif);
	font-weight: 600;
	letter-spacing: 0.01em;
}

p,
li {
	color: var(--taa-ink-soft);
}

a {
	color: var(--taa-accent);
}

a:hover,
a:focus {
	color: var(--taa-accent-deep);
}

.taa-site-header {
	left: 0;
	padding: 1.1rem 1.5rem 0;
	position: sticky;
	right: 0;
	top: 0;
	z-index: 100;
}

.taa-site-header__bar {
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(18px);
	border: 1px solid rgba(18, 56, 76, 0.08);
	border-radius: 999px;
	box-shadow: 0 18px 40px rgba(15, 53, 87, 0.08);
	margin: 0 auto;
	max-width: 1240px;
}

.taa-site-header__inner {
	align-items: center;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 1180px;
	padding: 0.9rem 1.6rem;
}

.taa-site-header__brand {
	align-items: center;
	display: flex;
	flex: 0 1 auto;
	gap: 1rem;
	min-width: 0;
}

.taa-site-header__brand .custom-logo-link {
	display: block;
	flex: 0 0 auto;
}

.taa-site-header__brand .custom-logo-link img {
	display: block;
	max-height: 58px;
	width: auto;
}

.taa-site-header__identity {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.taa-site-header__title {
	color: var(--taa-ink);
	font-family: var(--taa-serif);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

.taa-site-header__tagline {
	color: #6a8193;
	font-size: 0.82rem;
	margin: 0;
}

.taa-site-header__nav {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	justify-content: flex-end;
	position: relative;
}

.taa-primary-menu {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.9rem;
	justify-content: flex-end;
	list-style: none;
	margin: 0;
	padding: 0;
}

.taa-menu-toggle {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--taa-ink);
	display: none;
	height: 44px;
	justify-content: center;
	padding: 0;
	position: relative;
	width: 44px;
}

.taa-menu-toggle__bar {
	background: currentColor;
	border-radius: 999px;
	display: block;
	height: 2px;
	left: 10px;
	position: absolute;
	transition: transform 180ms ease, opacity 180ms ease;
	width: 24px;
}

.taa-menu-toggle__bar:nth-child(2) {
	transform: translateY(-7px);
}

.taa-menu-toggle__bar:nth-child(4) {
	transform: translateY(7px);
}

.taa-menu-toggle[aria-expanded="true"] .taa-menu-toggle__bar:nth-child(2) {
	transform: rotate(45deg);
}

.taa-menu-toggle[aria-expanded="true"] .taa-menu-toggle__bar:nth-child(3) {
	opacity: 0;
}

.taa-menu-toggle[aria-expanded="true"] .taa-menu-toggle__bar:nth-child(4) {
	transform: rotate(-45deg);
}

/* Top-level items */
.taa-nav-item {
	list-style: none;
	position: relative;
}

.taa-nav-link {
	align-items: center;
	color: var(--taa-ink);
	cursor: pointer;
	display: inline-flex;
	font-size: 0.95rem;
	font-weight: 700;
	gap: 0.3rem;
	padding: 0.55rem 0.8rem;
	text-decoration: none;
	transition: color 180ms ease;
}

.taa-nav-link:hover,
.taa-nav-link:focus,
.taa-nav-link.is-current,
.taa-nav-item.current-menu-item > .taa-nav-link,
.taa-nav-item.current-menu-ancestor > .taa-nav-link {
	color: var(--taa-accent);
}

.taa-nav-item--has-children > .taa-nav-link .taa-chevron {
	transition: transform 200ms ease;
}

.taa-nav-item--has-children:hover > .taa-nav-link .taa-chevron,
.taa-nav-item--has-children:focus-within > .taa-nav-link .taa-chevron {
	transform: rotate(180deg);
}

/* Level-2 dropdown panel */
.taa-submenu {
	background: #fff;
	border: 1px solid var(--taa-border);
	border-radius: 1rem;
	box-shadow: 0 20px 40px rgba(15, 53, 87, 0.12);
	min-width: 240px;
	opacity: 0;
	padding: 0.5rem;
	position: absolute;
	right: 0;
	top: calc(100% + 0.4rem);
	transform: translateY(6px);
	transition: opacity 200ms ease, transform 200ms ease;
	visibility: hidden;
	z-index: 60;
}

/* Transparent bridge across the gap so the pointer keeps hovering while
   travelling from the top-level link into the panel. */
.taa-submenu::before {
	content: "";
	height: 0.4rem;
	left: 0;
	position: absolute;
	right: 0;
	top: -0.4rem;
}

.taa-nav-item:hover > .taa-submenu,
.taa-nav-item:focus-within > .taa-submenu {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
}

.taa-submenu__list,
.taa-submenu__sub {
	list-style: none;
	margin: 0;
	padding: 0;
}

.taa-submenu__item {
	list-style: none;
}

.taa-submenu__link {
	border-radius: 0.6rem;
	color: var(--taa-ink);
	display: block;
	flex: 1 1 auto;
	font-size: 0.9rem;
	font-weight: 600;
	min-width: 0;
	padding: 0.55rem 0.7rem;
	text-decoration: none;
	transition: color 180ms ease, background 180ms ease;
}

.taa-submenu__link:hover,
.taa-submenu__link:focus,
.taa-submenu__link.is-current {
	background: var(--taa-mist);
	color: var(--taa-accent);
}

/* Level-3 accordion row: label link + caret toggle */
.taa-submenu__row {
	align-items: center;
	display: flex;
	gap: 0.1rem;
}

.taa-submenu__caret {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 0.6rem;
	color: var(--taa-ink-soft);
	cursor: pointer;
	display: inline-flex;
	flex: none;
	height: 32px;
	justify-content: center;
	padding: 0;
	transition: color 180ms ease, background 180ms ease;
	width: 32px;
}

.taa-submenu__caret:hover {
	background: var(--taa-mist);
	color: var(--taa-accent);
}

.taa-submenu__caret .taa-chevron {
	transition: transform 200ms ease;
}

.taa-submenu__item.is-open > .taa-submenu__row > .taa-submenu__caret .taa-chevron {
	transform: rotate(180deg);
}

/* Nested branch (level 3) — indented with a tree line */
.taa-submenu__sub {
	border-left: 1px solid var(--taa-border);
	display: flex;
	flex-direction: column;
	margin: 0.15rem 0 0.3rem 0.6rem;
	padding-left: 0.6rem;
}

.taa-submenu__sub .taa-submenu__link {
	font-size: 0.82rem;
	padding: 0.5rem 0.6rem;
}

.ast-menu-toggle {
	color: var(--taa-ink);
}

.taa-post-card,
.taa-single-post__media img {
	box-shadow: var(--taa-shadow);
}

.taa-front-page-content h2,
.taa-front-page-content h3 {
	color: var(--taa-ink);
}

.taa-front-page-content .wp-block-button__link {
	background: var(--taa-accent);
	border-radius: 999px;
	color: #fff;
	padding: 0.95rem 1.5rem;
}

.taa-front-page-content .wp-block-button__link:hover,
.taa-front-page-content .wp-block-button__link:focus {
	background: var(--taa-accent-deep);
}

.taa-site-footer {
	background:
		radial-gradient(circle at top right, rgba(198, 225, 233, 0.15), transparent 32%),
		linear-gradient(180deg, #10354a 0%, #0a2231 100%);
	color: rgba(255, 255, 255, 0.82);
	padding: 2.4rem 0 1.1rem;
}

.taa-button {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.95rem;
	font-weight: 700;
	justify-content: center;
	min-height: 3rem;
	padding: 0.8rem 1.3rem;
	text-decoration: none;
}

.taa-button--primary {
	background: var(--taa-white);
	color: var(--taa-ink);
}

.taa-button--ghost {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: var(--taa-white);
}

.taa-button--ghost:hover,
.taa-button--ghost:focus {
	color: var(--taa-white);
}

.taa-site-footer a,
.taa-site-footer .widget,
.taa-site-footer .widget-title {
	color: rgba(255, 255, 255, 0.9);
}

.taa-site-footer__top {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
	padding-bottom: 1.25rem;
}

.taa-site-footer__brand .custom-logo-link img {
	max-height: 56px;
	width: auto;
}

.taa-site-footer__title {
	color: var(--taa-white);
	font-family: var(--taa-serif);
	font-size: 1.5rem;
	text-decoration: none;
}

.taa-site-footer__tagline {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.92rem;
	margin-top: 0.55rem;
	max-width: 28rem;
}

.taa-site-footer__widgets {
	display: grid;
	gap: 1.1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.taa-footer-col-title {
	color: var(--taa-white);
	font-family: var(--taa-serif);
	font-size: 1.1rem;
	margin-bottom: 0.55rem;
}

.taa-footer-col-title a {
	color: var(--taa-white);
	text-decoration: none;
}

.taa-site-footer__column ul,
.taa-site-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.taa-site-footer__column li {
	margin-bottom: 0.3rem;
}

.taa-site-footer__bottom {
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem 1.4rem;
	justify-content: space-between;
	padding-top: 0.9rem;
}

.taa-site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.9rem;
}

.taa-site-footer__menu a,
.taa-site-footer__column a {
	font-size: 0.94rem;
}

.taa-site-footer__copyright {
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.9rem;
	margin: 0;
}

.widget {
	margin: 0;
}

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

@media (max-width: 921px) {
	.taa-site-header {
		padding: 0.75rem 0.75rem 0;
	}

	.taa-site-header__bar {
		border-radius: 1.4rem;
	}

	.taa-site-header__inner {
		gap: 1rem;
	}

	.taa-site-header__nav {
		flex: 0 0 auto;
	}

	.taa-menu-toggle {
		display: inline-flex;
	}

	.taa-primary-menu {
		background: rgba(255, 255, 255, 0.97);
		border: 1px solid rgba(18, 56, 76, 0.08);
		border-radius: 1.1rem;
		box-shadow: 0 20px 40px rgba(15, 53, 87, 0.12);
		display: none;
		flex-direction: column;
		gap: 0;
		min-width: min(320px, calc(100vw - 2rem));
		padding: 0.65rem;
		position: absolute;
		right: 0;
		top: calc(100% + 0.8rem);
		z-index: 20;
	}

	.taa-primary-menu.is-open {
		display: flex;
	}

	.taa-primary-menu a {
		font-size: 0.95rem;
		padding: 0.75rem 0.9rem;
		width: 100%;
	}

	/* Mobile: the walker markup expands inline; level 3 stays behind a caret. */
	.taa-nav-item {
		position: static;
		width: 100%;
	}

	.taa-nav-link {
		justify-content: space-between;
		padding: 0.75rem 0.9rem;
		width: 100%;
	}

	.taa-submenu {
		background: transparent;
		border: 0;
		box-shadow: none;
		min-width: 0;
		opacity: 1;
		padding: 0.1rem 0 0.4rem 0.9rem;
		position: static;
		transform: none;
		visibility: visible;
	}

	.taa-submenu::before {
		display: none;
	}

	.taa-submenu__link {
		padding: 0.6rem 0.7rem;
	}

	.taa-submenu__caret {
		height: 38px;
		width: 38px;
	}

	.taa-site-header__brand.has-logo .taa-site-header__identity {
		display: none;
	}

	.taa-site-header__brand .custom-logo-link img {
		max-height: 48px;
	}

	.taa-site-footer__top,
	.taa-site-footer__widgets {
		grid-template-columns: 1fr;
	}

	.taa-site-footer {
		padding-top: 2rem;
	}
}

@media (max-width: 640px) {
	.taa-site-header {
		padding: 0.55rem 0.55rem 0;
	}

	.taa-site-header__bar {
		border-radius: 1.1rem;
	}

	.taa-site-header__inner {
		padding: 0.75rem 0.9rem;
	}

	.taa-primary-menu {
		min-width: calc(100vw - 1.1rem);
		right: -0.9rem;
	}
}
