/* ==========================================================================
   Udarata — main stylesheet
   Colours come from theme.json presets so the block editor matches the site.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--c-bg: var(--wp--preset--color--base, #FAF6EE);
	--c-surface: var(--wp--preset--color--surface, #FFFFFF);
	--c-sand: var(--wp--preset--color--sand, #F2EBDD);
	--c-text: var(--wp--preset--color--contrast, #1B2A22);
	--c-muted: var(--wp--preset--color--muted, #5B6A61);
	--c-border: var(--wp--preset--color--border, #E5DCCB);
	--c-primary: var(--wp--preset--color--primary, #1F4A34);
	--c-primary-dark: var(--wp--preset--color--primary-dark, #163627);
	--c-on-primary: var(--wp--preset--color--on-primary, #FFFFFF);
	--c-accent: var(--wp--preset--color--accent, #8C6A2A);
	--c-leaf: var(--wp--preset--color--matcha, #86A15A);
	--c-blush: var(--wp--preset--color--blush, #EAD5C1);
	--c-danger: #B23B3B;
	--brand-deep: #16362A;
	--brand-green: #1F4A34;
	--brand-gold: #C9A050;
	--on-brand: #F4EFE4;

	--font-heading: var(--wp--preset--font-family--heading, Georgia, serif);
	--font-body: var(--wp--preset--font-family--body, system-ui, sans-serif);

	--radius-sm: 10px;
	--radius: 18px;
	--radius-lg: 28px;
	--shadow-sm: 0 1px 2px rgba(20, 35, 27, .06), 0 6px 16px -8px rgba(20, 35, 27, .14);
	--shadow: 0 18px 40px -20px rgba(20, 35, 27, .3);
	--shadow-lg: 0 34px 70px -30px rgba(20, 35, 27, .45);

	--container: 1280px;
	--narrow: 760px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--section: clamp(3.5rem, 8vw, 7rem);
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="dark"] {
	--wp--preset--color--base: #0F1813;
	--wp--preset--color--surface: #16211B;
	--wp--preset--color--sand: #1B2821;
	--wp--preset--color--contrast: #EDE7DA;
	--wp--preset--color--muted: #A6B2AA;
	--wp--preset--color--border: #2A3A31;
	--wp--preset--color--primary: #8FCBA8;
	--wp--preset--color--primary-dark: #B5E0C6;
	--wp--preset--color--on-primary: #0C1A12;
	--wp--preset--color--accent: #E2AE5C;
	--wp--preset--color--matcha: #A9C47E;
	--wp--preset--color--blush: #3A2D24;
	--brand-deep: #0B1611;
	--c-danger: #F08A8A;
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root.auto-dark:not([data-theme="light"]) {
		--wp--preset--color--base: #0F1813;
		--wp--preset--color--surface: #16211B;
		--wp--preset--color--sand: #1B2821;
		--wp--preset--color--contrast: #EDE7DA;
		--wp--preset--color--muted: #A6B2AA;
		--wp--preset--color--border: #2A3A31;
		--wp--preset--color--primary: #8FCBA8;
		--wp--preset--color--primary-dark: #B5E0C6;
		--wp--preset--color--on-primary: #0C1A12;
		--wp--preset--color--accent: #E2AE5C;
		--wp--preset--color--matcha: #A9C47E;
		--wp--preset--color--blush: #3A2D24;
		--brand-deep: #0B1611;
		--c-danger: #F08A8A;
		color-scheme: dark;
	}
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
	overflow-x: clip;
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

img,
video { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -.015em;
	color: var(--c-text);
	margin: 0 0 .5em;
	text-wrap: balance;
}

p { text-wrap: pretty; }

a {
	color: var(--c-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
	transition: color .2s;
}
a:hover { color: var(--c-accent); }

:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection { background: var(--c-leaf); color: #fff; }

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	white-space: nowrap;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -200px;
	z-index: 1000;
	padding: .75rem 1.25rem;
	border-radius: var(--radius-sm);
	background: var(--c-primary);
	color: var(--c-on-primary);
	font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--c-on-primary); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
.site-main:focus { outline: none; }

/* ---------- Layout ---------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2rem, 5vw, 4rem); }
.section--sand { background: var(--c-sand); }
.section--dark {
	background: radial-gradient(900px 420px at 90% 0%, rgba(134, 161, 90, .22), transparent 70%), var(--brand-deep);
	color: var(--on-brand);
}
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--brand-gold); }
.section--dark .link-arrow { color: #fff; }
.section--dark .section-header__text { color: rgba(244, 239, 228, .75); }

.section-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-header--center { flex-direction: column; align-items: center; text-align: center; }
.section-header--center .section-header__main { margin-inline: auto; }
.section-header__main { max-width: 44rem; }
.section-header__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); margin: 0; }
.section-header__text { margin: .9rem 0 0; color: var(--c-muted); font-size: 1.08rem; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	margin: 0 0 .9rem;
	font-family: var(--font-body);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--c-accent);
	text-decoration: none;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; }

/* ---------- Buttons, links, icons ---------- */
.btn,
.wp-element-button,
.wp-block-button__link {
	--btn-bg: var(--c-primary);
	--btn-fg: var(--c-on-primary);
	--btn-bd: var(--btn-bg);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	padding: .85rem 1.5rem;
	border: 1.5px solid var(--btn-bd);
	border-radius: 999px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font: 600 .95rem/1.2 var(--font-body);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover,
.wp-block-button__link:hover {
	--btn-bg: var(--c-primary-dark);
	color: var(--btn-fg);
	transform: translateY(-1px);
	box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(0); }
.btn--secondary {
	--btn-bg: transparent;
	--btn-fg: var(--c-text);
	--btn-bd: color-mix(in srgb, var(--c-text) 22%, transparent);
}
.btn--secondary:hover { --btn-bg: var(--c-text); --btn-fg: var(--c-bg); --btn-bd: var(--c-text); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled],
.btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after {
	content: "";
	width: 1em;
	height: 1em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: spin .7s linear infinite;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	color: var(--c-text);
	font-weight: 600;
	text-decoration: none;
}
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--c-primary); }
.link-arrow:hover .icon { transform: translateX(3px); }

.icon-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, transform .2s;
}
.icon-btn:hover { background: color-mix(in srgb, var(--c-text) 8%, transparent); color: inherit; }
.icon-btn--outline { border: 1.5px solid var(--c-border); }
.icon-btn--outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.icon-btn__badge {
	position: absolute;
	top: 2px;
	right: -1px;
	min-width: 1.2rem;
	height: 1.2rem;
	padding: 0 .3rem;
	border-radius: 999px;
	background: var(--c-accent);
	color: #fff;
	font-size: .68rem;
	font-weight: 700;
	line-height: 1.2rem;
	text-align: center;
}
.icon-btn__badge.is-bump { animation: bump .45s var(--ease); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.chip {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .5rem 1rem;
	border: 1px solid var(--c-border);
	border-radius: 999px;
	background: var(--c-surface);
	color: var(--c-text);
	font: 500 .9rem/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chip.is-active,
.chip[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }

.card {
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	background: var(--c-surface);
	box-shadow: var(--shadow-sm);
}

.badge {
	display: inline-block;
	padding: .3rem .65rem;
	border-radius: 999px;
	background: var(--c-surface);
	color: var(--c-text);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.badge--new { background: var(--brand-green); color: #fff; }
.badge--soldout { background: var(--c-text); color: var(--c-bg); }

.stars { display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 2px; }
.stars::before {
	content: "★★★★★";
	background: linear-gradient(90deg, var(--c-accent) calc(var(--rating, 5) / 5 * 100%), color-mix(in srgb, var(--c-text) 18%, transparent) 0);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
	width: 100%;
	padding: .8rem 1rem;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background-color: var(--c-surface);
	color: var(--c-text);
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color .2s, box-shadow .2s;
}
input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 20%, transparent);
}
textarea { min-height: 8rem; resize: vertical; }
select {
	appearance: none;
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237d8a82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
}
::placeholder { color: color-mix(in srgb, var(--c-muted) 80%, transparent); opacity: 1; }
label { cursor: pointer; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin-bottom: 1.5rem; }
.form-field { display: grid; gap: .4rem; margin: 0; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: .9rem; font-weight: 600; }
.form-status { min-height: 1.5em; margin: 1rem 0 0; font-size: .95rem; font-weight: 500; }
.form-status.is-success { color: var(--c-primary); }
.form-status.is-error { color: var(--c-danger); }

.search-form { display: flex; gap: .5rem; width: 100%; max-width: 540px; }
.search-form__submit { padding-inline: 1.1rem; }

.newsletter-form__row {
	display: flex;
	gap: .5rem;
	padding: .35rem;
	border: 1px solid var(--c-border);
	border-radius: 999px;
	background: var(--c-surface);
}
.newsletter-form .newsletter-form__input {
	flex: 1;
	min-width: 0;
	padding: .7rem 1rem;
	border: 0;
	background: transparent;
	box-shadow: none;
}
.newsletter-form__note { margin: .75rem 0 0; font-size: .82rem; color: var(--c-muted); }
.newsletter-form__note a { color: inherit; }

@media (max-width: 480px) {
	.newsletter-form__row { flex-direction: column; border-radius: var(--radius); }
	.newsletter-form__row .btn { width: 100%; }
	.form-grid { grid-template-columns: 1fr; }
}

/* ---------- Announcement + header ---------- */
.announcement { background: var(--brand-deep); color: var(--on-brand); font-size: .85rem; }
.announcement__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding-right: 3rem;
}
.announcement__text { margin: 0; text-align: center; }
.announcement__text a { color: inherit; }
.announcement__close {
	position: absolute;
	top: 50%;
	right: var(--gutter);
	display: grid;
	padding: .3rem;
	border: 0;
	background: none;
	color: inherit;
	opacity: .75;
	cursor: pointer;
	transform: translateY(-50%);
}
.announcement__close:hover { opacity: 1; }

.site-header {
	position: relative;
	z-index: 50;
	border-bottom: 1px solid transparent;
	background: color-mix(in srgb, var(--c-bg) 86%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	transition: border-color .3s, box-shadow .3s;
}
.has-sticky-header .site-header { position: sticky; top: 0; }
.admin-bar.has-sticky-header .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.has-sticky-header .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar.has-sticky-header .site-header { top: 0; } }
.site-header.is-scrolled { border-bottom-color: var(--c-border); box-shadow: 0 12px 30px -26px rgba(0, 0, 0, .45); }

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.5rem;
	min-height: var(--header-h);
}

.site-branding { display: flex; align-items: center; min-width: 0; }
.site-title {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	color: var(--c-text);
	font-family: var(--font-heading);
	font-size: 1.55rem;
	font-weight: 600;
	letter-spacing: -.02em;
	text-decoration: none;
	white-space: nowrap;
}
.site-title:hover { color: var(--c-text); }
.site-title__mark { color: var(--c-primary); }
/* The logo keeps its proportions and scales down when the header is short of space. */
.custom-logo-link { display: block; min-width: 0; max-width: 100%; line-height: 0; }
.custom-logo { display: block; width: auto; height: auto; max-width: min(100%, 260px); max-height: min(var(--logo-h, 56px), calc(var(--header-h) - 12px)); }
.site-footer .custom-logo { max-width: min(100%, 280px); max-height: calc(var(--logo-h, 56px) * 1.4); }
.custom-logo--light { display: none; }
/* On dark surfaces use the light logo, or turn a one-colour logo white. */
.site-footer .has-light-logo .custom-logo--default,
:root[data-theme="dark"] .has-light-logo .custom-logo--default { display: none; }
.site-footer .has-light-logo .custom-logo--light,
:root[data-theme="dark"] .has-light-logo .custom-logo--light { display: block; }
.site-footer .custom-logo-link:not(.has-light-logo) .custom-logo,
:root[data-theme="dark"] .custom-logo-link:not(.has-light-logo) .custom-logo { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) {
	:root.auto-dark:not([data-theme="light"]) .has-light-logo .custom-logo--default { display: none; }
	:root.auto-dark:not([data-theme="light"]) .has-light-logo .custom-logo--light { display: block; }
	:root.auto-dark:not([data-theme="light"]) .custom-logo-link:not(.has-light-logo) .custom-logo { filter: brightness(0) invert(1); }
}
@media (max-width: 560px) { .site-header .custom-logo { max-width: min(100%, 170px); } }

.primary-nav { justify-self: center; }
.primary-nav .menu { display: flex; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
.primary-nav a {
	display: block;
	padding: .6rem .85rem;
	border-radius: 999px;
	color: var(--c-text);
	font-size: .95rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_item > a {
	background: color-mix(in srgb, var(--c-primary) 9%, transparent);
	color: var(--c-primary);
}
.submenu-toggle {
	display: grid;
	margin-left: -.55rem;
	padding: .3rem;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
	cursor: pointer;
}
.submenu-toggle .icon { transition: transform .2s; }
.is-open > .submenu-toggle .icon { transform: rotate(180deg); }
.primary-nav .sub-menu {
	position: absolute;
	top: calc(100% + .35rem);
	left: 0;
	min-width: 15rem;
	margin: 0;
	padding: .5rem;
	list-style: none;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-surface);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { border-radius: var(--radius-sm); padding: .6rem .8rem; }

.header-actions { display: flex; align-items: center; gap: .1rem; justify-self: end; }
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root.auto-dark:not([data-theme="light"]) .theme-toggle__sun { display: block; }
	:root.auto-dark:not([data-theme="light"]) .theme-toggle__moon { display: none; }
}
.menu-toggle { display: none; }

@media (max-width: 1240px) {
	.primary-nav { display: none; }
	.menu-toggle { display: inline-grid; }
	.site-header__inner { gap: .5rem; }
	.site-branding { justify-self: start; }
}
@media (max-width: 560px) {
	:root { --header-h: 64px; }
	.header-account,
	.header-wishlist,
	.header-actions .theme-toggle { display: none; }
	.site-header .icon-btn { width: 2.5rem; height: 2.5rem; }
	.site-title { font-size: 1.25rem; }
	.site-title__mark { width: 22px; height: 22px; }
}
/* ---------- Language switcher (GTranslate) ---------- */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu__toggle { width: auto; min-width: 2.75rem; padding: 0 .55rem; gap: .3rem; border-radius: 999px; display: inline-flex; }
.lang-menu__current { font: 600 .78rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .02em; }
.lang-menu__panel {
	position: absolute;
	top: calc(100% + .5rem);
	right: 0;
	z-index: 60;
	display: grid;
	gap: .15rem;
	min-width: 12rem;
	padding: .6rem;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-surface);
	box-shadow: var(--shadow);
	animation: pop-in .2s var(--ease);
}
.lang-menu__title,
.lang-menu__note { margin: .15rem .6rem .35rem; color: var(--c-muted); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.lang-menu__note { margin: .4rem .6rem .1rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.lang-menu .gtranslate_wrapper { display: grid; gap: .15rem; }
.lang-switch a.glink,
.lang-menu a.glink {
	display: block;
	padding: .55rem .75rem;
	border-radius: var(--radius-sm);
	color: var(--c-text);
	font: 500 .95rem/1.4 system-ui, -apple-system, "Segoe UI", "Iskoola Pota", "Nirmala UI", sans-serif;
	text-decoration: none;
}
.lang-menu a.glink:hover,
.lang-menu a.glink:focus-visible { background: var(--c-sand); }
.lang-menu a.glink.gt-current-lang,
.lang-switch a.glink.gt-current-lang { background: color-mix(in srgb, var(--c-primary) 12%, transparent); color: var(--c-primary); font-weight: 700; }
.lang-switch--inline { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; color: var(--c-muted); }
.lang-switch--inline .gtranslate_wrapper { display: flex; flex-wrap: wrap; gap: .35rem; }
.lang-switch--inline a.glink { padding: .4rem .8rem; border: 1px solid var(--c-border); border-radius: 999px; }
@media (max-width: 560px) { .lang-menu__current { display: none; } .lang-menu__toggle { padding: 0; min-width: 2.5rem; } }

/* Sinhala & Tamil (after translation the <html> lang attribute changes) */
html:is([lang|="si"], [lang|="ta"]) body { line-height: 1.85; }
html:is([lang|="si"], [lang|="ta"]) :is(h1, h2, h3, h4, h5, h6, .hero__title, .page-hero__title, .section-header__title, .story__title, .post-hero__title, .featured-post__title, .post-card__title, .product_title, .woocommerce-loop-product__title, .region-card__name, .newsletter-cta__card h2, .site-title) { line-height: 1.4; letter-spacing: 0; overflow-wrap: break-word; }
html[lang|="ta"] .hero__title { font-size: clamp(1.8rem, 1.1rem + 2.3vw, 2.9rem); }
html:is([lang|="si"], [lang|="ta"]) :is(.eyebrow, .post-card__cat, .product-card__cat, .site-footer__title, .widget-title, .live-search__title, .contact-card__label, .badge, .tea-details dt, .brew-timer__facts dt, .post-nav__label, .lang-menu__title, .announcement, .marquee__item) { letter-spacing: 0; text-transform: none; }
html:is([lang|="si"], [lang|="ta"]) .hero__title { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem); font-weight: 500; }
html:is([lang|="si"], [lang|="ta"]) :is(.page-hero__title, .post-hero__title) { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); }
html:is([lang|="si"], [lang|="ta"]) :is(.btn, .wp-element-button, .chip, .tabs__tab) { white-space: normal; text-align: center; }
html[lang|="ta"] :is(.section-header__title, .story__title, h2) { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); }
@media (max-width: 1280px) {
	html:is([lang|="si"], [lang|="ta"]) .primary-nav { display: none; }
	html:is([lang|="si"], [lang|="ta"]) .menu-toggle { display: inline-grid; }
}
/* Tamil menu labels are long, so Tamil always uses the menu button. */
html[lang|="ta"] .primary-nav { display: none; }
html[lang|="ta"] .menu-toggle { display: inline-grid; }
.primary-nav a { white-space: nowrap; }

/* Hand-written labels: show the one that matches the page language */
.i18n > .i18n__si,
.i18n > .i18n__ta { display: none; }
html[lang|="si"] .i18n > .i18n__en,
html[lang|="ta"] .i18n > .i18n__en { display: none; }
html[lang|="si"] .i18n > .i18n__si,
html[lang|="ta"] .i18n > .i18n__ta { display: inline; }

.drawer__links { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.drawer__links .btn { padding-inline: .75rem; }
.drawer__links .theme-toggle { width: auto; height: auto; border-radius: 999px; }

.checkout-header .site-header__inner { grid-template-columns: auto 1fr auto; }
.checkout-header__secure {
	display: flex;
	align-items: center;
	gap: .4rem;
	justify-self: center;
	margin: 0;
	color: var(--c-primary);
	font-weight: 600;
}
.checkout-header__back { font-size: .9rem; }
@media (max-width: 640px) { .checkout-header__secure { display: none; } }

/* ---------- Dialogs: drawers, search, modal, lightbox ---------- */
dialog { color: var(--c-text); }
dialog::backdrop { background: rgba(8, 16, 12, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog[open]::backdrop { animation: fade-in .3s ease; }
dialog.is-closing::backdrop { animation: fade-out .25s ease forwards; }

.drawer {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: hidden;
}
.drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(430px, 92vw);
	background: var(--c-bg);
	box-shadow: var(--shadow-lg);
}
.drawer--left .drawer__panel { left: 0; animation: slide-in-left .35s var(--ease); }
.drawer--right .drawer__panel { right: 0; animation: slide-in-right .35s var(--ease); }
.drawer--left.is-closing .drawer__panel { animation: slide-out-left .25s ease forwards; }
.drawer--right.is-closing .drawer__panel { animation: slide-out-right .25s ease forwards; }
.drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--c-border);
}
.drawer__title { margin: 0; font-size: 1.4rem; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1.25rem; }
.drawer__footer { display: grid; gap: 1rem; padding: 1.25rem; border-top: 1px solid var(--c-border); }

.mobile-menu { margin: 0; padding: 0; list-style: none; }
.mobile-menu a {
	display: block;
	padding: .8rem 0;
	border-bottom: 1px solid var(--c-border);
	color: var(--c-text);
	font-family: var(--font-heading);
	font-size: 1.35rem;
	text-decoration: none;
}
.mobile-menu li { position: relative; }
.mobile-menu .submenu-toggle { display: none; }
.mobile-menu .sub-menu { margin: 0; padding: .25rem 0 .5rem 1rem; list-style: none; }
.mobile-menu .sub-menu a { padding: .45rem 0; border: 0; color: var(--c-muted); font-family: var(--font-body); font-size: 1rem; }

.search-dialog {
	width: min(760px, calc(100% - 2rem));
	max-height: 80vh;
	margin: 10vh auto auto;
	padding: 0;
	border: 0;
	border-radius: var(--radius-lg);
	background: var(--c-surface);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.search-dialog[open] { animation: pop-in .25s var(--ease); }
.search-dialog__form {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .6rem .6rem .6rem 1.25rem;
	border-bottom: 1px solid var(--c-border);
	color: var(--c-muted);
}
.search-dialog__form input[type="search"] {
	flex: 1;
	padding: .8rem 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--c-text);
	font-size: 1.2rem;
}
.live-search { max-height: calc(80vh - 5rem); overflow-y: auto; padding: .25rem 1rem 1rem; }
.live-search:empty { display: none; }
.live-search__title {
	margin: 1rem .5rem .4rem;
	color: var(--c-muted);
	font-family: var(--font-body);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.live-search__list { margin: 0; padding: 0; list-style: none; }
.live-search__list a {
	display: flex;
	align-items: center;
	gap: .9rem;
	padding: .55rem .5rem;
	border-radius: var(--radius-sm);
	color: var(--c-text);
	text-decoration: none;
}
.live-search__list a:hover,
.live-search__list a:focus-visible { background: var(--c-sand); }
.live-search__list img,
.live-search__thumb {
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	border-radius: 10px;
	background: var(--c-sand);
	object-fit: cover;
}
.live-search__name { display: block; font-weight: 600; }
.live-search__meta { display: block; color: var(--c-muted); font-size: .88rem; }
.live-search__all { display: inline-block; margin: .9rem .5rem 0; font-weight: 600; }
.live-search__empty { margin: 0; padding: 1.25rem .5rem; color: var(--c-muted); }

.modal {
	width: min(980px, calc(100% - 2rem));
	max-height: calc(100dvh - 2rem);
	padding: 0;
	border: 0;
	border-radius: var(--radius-lg);
	background: var(--c-surface);
	box-shadow: var(--shadow-lg);
	overflow: auto;
}
.modal[open] { animation: pop-in .3s var(--ease); }
.modal__close { position: absolute; top: .75rem; right: .75rem; z-index: 2; background: var(--c-surface); }
.modal__body { min-height: 220px; }
.modal__body.is-loading { display: grid; place-items: center; }
.modal__body.is-loading::after {
	content: "";
	width: 2rem;
	height: 2rem;
	border: 3px solid var(--c-border);
	border-top-color: var(--c-primary);
	border-radius: 50%;
	animation: spin .8s linear infinite;
}

.lightbox {
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(6, 12, 9, .94);
	color: #fff;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; animation: fade-in .25s ease; }
.lightbox__figure { display: grid; justify-items: center; gap: .75rem; max-width: min(92vw, 1400px); margin: 0; }
.lightbox__img { width: auto; max-height: 82vh; border-radius: var(--radius); object-fit: contain; }
.lightbox__img.is-changing { animation: fade-in .3s ease; }
.lightbox__caption { font-size: .95rem; opacity: .85; text-align: center; }
.lightbox__counter { position: absolute; top: 1.2rem; left: 1.25rem; margin: 0; font-size: .85rem; opacity: .7; }
.lightbox .icon-btn { background: rgba(255, 255, 255, .08); color: #fff; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox__close { position: absolute; top: .75rem; right: .75rem; }
.lightbox__prev,
.lightbox__next { position: absolute; top: 50%; width: 3.25rem; height: 3.25rem; transform: translateY(-50%); }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

.toast-region {
	position: fixed;
	inset: auto auto 1.25rem 50%;
	z-index: 1000;
	display: grid;
	gap: .5rem;
	width: min(420px, calc(100% - 2rem));
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
	transform: translateX(-50%);
	pointer-events: none;
}
.toast {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .9rem 1.1rem;
	border-radius: var(--radius);
	background: var(--c-text);
	color: var(--c-bg);
	box-shadow: var(--shadow-lg);
	font-size: .95rem;
	pointer-events: auto;
	animation: toast-in .35s var(--ease);
}
.toast a { color: inherit; font-weight: 700; margin-left: auto; }
.toast--error { background: #9B2C2C; color: #fff; }
.toast.is-leaving { animation: toast-out .3s ease forwards; }

/* ---------- Page hero + breadcrumbs ---------- */
.page-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
	border-bottom: 1px solid var(--c-border);
	background: radial-gradient(1100px 420px at 90% 0%, color-mix(in srgb, var(--c-leaf) 20%, transparent), transparent 62%), var(--c-sand);
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title { max-width: 26ch; margin: .25rem 0 0; font-size: clamp(2.3rem, 1.6rem + 3vw, 4rem); }
.page-hero__subtitle { max-width: 42rem; margin: 1rem 0 0; color: var(--c-muted); font-size: 1.15rem; }
.page-hero__leaf { position: absolute; right: -2rem; bottom: -3.5rem; color: var(--c-leaf); opacity: .16; transform: rotate(-18deg); pointer-events: none; }
.page-hero--compact { padding-block: 2rem 1.75rem; }
.page-hero--compact .page-hero__title { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; color: var(--c-muted); font-size: .85rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-primary); }

/* ---------- Homepage: hero ---------- */
.hero {
	position: relative;
	overflow: clip;
	padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem);
	background:
		radial-gradient(900px 520px at 8% 12%, color-mix(in srgb, var(--c-blush) 65%, transparent), transparent 70%),
		radial-gradient(700px 520px at 96% 32%, color-mix(in srgb, var(--c-leaf) 24%, transparent), transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero__title { margin: 0 0 1.5rem; font-size: clamp(2.8rem, 1.5rem + 5.2vw, 5.4rem); font-weight: 400; line-height: 1.02; letter-spacing: -.03em; }
.hero__title em { color: var(--c-primary); font-style: italic; }
.hero__text { max-width: 34rem; margin: 0 0 2rem; color: var(--c-muted); font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: 0; padding: 0; list-style: none; color: var(--c-muted); font-size: .92rem; }
.hero__trust li { display: flex; align-items: center; gap: .45rem; }
.hero__trust .icon { color: var(--c-primary); }
.hero__media { position: relative; }
.hero__inner > *,
.story__inner > *,
.contact-layout > *,
.brew-layout > *,
.newsletter-cta__card > *,
.featured-post > *,
.site-footer__main > *,
.site-footer__band-inner > *,
.post-layout > *,
.testimonials__head > * { min-width: 0; }
.hero__arch {
	width: 100%;
	min-width: 0;
	max-width: 520px;
	margin-inline: auto;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
	background: var(--c-sand);
	box-shadow: var(--shadow-lg);
}
.hero__arch img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__float {
	position: absolute;
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .8rem 1.1rem;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: color-mix(in srgb, var(--c-surface) 90%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: var(--shadow);
	color: var(--c-muted);
	font-size: .85rem;
	line-height: 1.3;
	animation: float 6s ease-in-out infinite;
}
.hero__float strong { display: block; color: var(--c-text); font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.hero__float-icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: color-mix(in srgb, var(--c-primary) 12%, transparent); color: var(--c-primary); }
.hero__float--one { top: 18%; left: -1rem; }
.hero__float--two { right: -.5rem; bottom: 14%; animation-delay: -3s; }
.hero__leaf { position: absolute; color: var(--c-leaf); opacity: .35; pointer-events: none; }
.hero__leaf--a { top: -2rem; right: -1rem; transform: rotate(35deg); }
.hero__leaf--b { bottom: -1rem; left: 6%; opacity: .25; transform: rotate(-60deg); }
@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__media { width: 100%; max-width: 440px; margin-inline: auto; }
	.hero__float--one { left: 0; }
	.hero__float--two { right: 0; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: 1rem; background: var(--brand-green); color: #fff; }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 3rem; margin: 0; padding: 0 3rem 0 0; list-style: none; }
.marquee__item { display: flex; align-items: center; gap: .75rem; font-family: var(--font-heading); font-size: 1.25rem; font-style: italic; white-space: nowrap; }
.marquee__item .icon { color: var(--brand-gold); }

/* ---------- Categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 300px)); justify-content: center; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.category-card a {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	height: 100%;
	padding: .9rem .9rem 1.2rem;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	background: var(--c-surface);
	color: var(--c-text);
	text-decoration: none;
	transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.category-card a:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.category-card__media { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--c-sand); color: var(--c-leaf); }
.category-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.category-card a:hover img { transform: scale(1.05); }
.category-card__body { display: flex; flex-direction: column; gap: .1rem; padding-inline: .3rem 2rem; }
.category-card__name { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 500; line-height: 1.25; }
.category-card__count { color: var(--c-muted); font-size: .85rem; }
.category-card__arrow { position: absolute; right: 1.2rem; bottom: 1.5rem; color: var(--c-primary); transition: transform .2s; }
.category-card a:hover .category-card__arrow { transform: translateX(4px); }
@media (max-width: 640px) {
	.category-grid { grid-auto-flow: column; grid-auto-columns: 68%; grid-template-columns: none; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.category-card { scroll-snap-align: start; }
}

/* ---------- Tabs ---------- */
.tabs__list {
	display: flex;
	gap: .3rem;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto 2.25rem;
	padding: .35rem;
	overflow-x: auto;
	border-radius: 999px;
	background: var(--c-sand);
}
.tabs__tab {
	padding: .65rem 1.25rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--c-muted);
	font: 600 .92rem/1 var(--font-body);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s, color .2s, box-shadow .2s;
}
.tabs__tab:hover { color: var(--c-text); }
.tabs__tab[aria-selected="true"] { background: var(--c-surface); box-shadow: var(--shadow-sm); color: var(--c-text); }
.tabs__panel { animation: fade-up .45s var(--ease); }
.section-cta { margin: 2.5rem 0 0; text-align: center; }

/* ---------- Story + stats ---------- */
.story__inner { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.story__media { position: relative; }
.story__media img { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); object-fit: cover; }
.story__badge {
	position: absolute;
	right: -1rem;
	bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .85rem 1.25rem;
	border-radius: 999px;
	background: var(--c-accent);
	box-shadow: var(--shadow);
	color: #fff;
	font-weight: 600;
}
.story__title { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.2rem); }
.story__text { color: var(--c-muted); font-size: 1.1rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2rem 0 2.25rem; padding: 1.5rem 0; border-block: 1px solid var(--c-border); }
.stat { display: flex; flex-direction: column-reverse; }
.stat__number { margin: 0; color: var(--c-primary); font-family: var(--font-heading); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: .5rem; color: var(--c-muted); font-size: .88rem; }
.stats--band { margin: 0; padding: 0; border: 0; text-align: center; }
.section--dark .stat__number { color: var(--brand-gold); }
.section--dark .stat__label { color: rgba(244, 239, 228, .75); }
@media (max-width: 900px) {
	.story__inner { grid-template-columns: 1fr; }
	.story__media { max-width: 460px; }
	.story__badge { right: 1rem; }
}
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; text-align: left; } }

/* ---------- Regions ---------- */
.region-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.region-list .region-card { padding: 2rem 1.75rem 1.9rem; }
.region-list .region-card__name { font-size: 1.7rem; }
.region-card {
	position: relative;
	overflow: hidden;
	padding: 1.6rem 1.5rem 1.5rem;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	background: var(--c-surface);
	transition: transform .3s var(--ease), box-shadow .3s;
}
.region-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--region); }
.region-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.region-card__num { color: var(--region); font-family: var(--font-heading); font-size: 2.4rem; font-style: italic; line-height: 1; }
.region-card__name { margin: .75rem 0 .35rem; font-size: 1.4rem; }
.region-card__meta { display: flex; align-items: center; gap: .4rem; margin: 0 0 .75rem; color: var(--c-muted); font-size: .82rem; font-weight: 600; }
.region-card__text { margin: 0; color: var(--c-muted); font-size: .95rem; }

/* ---------- Ritual ---------- */
.ritual__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.ritual-step { position: relative; padding: 1.75rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .05); }
.ritual-step__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1.25rem; border-radius: 50%; background: rgba(226, 184, 102, .15); color: var(--brand-gold); }
.ritual-step__num { position: absolute; top: 1.5rem; right: 1.5rem; font-family: var(--font-heading); font-size: 1.1rem; font-style: italic; opacity: .45; }
.ritual-step__title { margin: 0 0 .5rem; font-size: 1.35rem; }
.ritual-step__text { margin: 0; color: rgba(244, 239, 228, .74); font-size: .95rem; }
@media (max-width: 960px) { .ritual__steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ritual__steps { grid-template-columns: 1fr; } }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.feature { padding: 2rem 1.5rem; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); text-align: center; }
.feature__icon { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: 1.1rem; border-radius: 50%; background: color-mix(in srgb, var(--c-primary) 10%, transparent); color: var(--c-primary); }
.feature__title { margin: 0 0 .5rem; font-size: 1.25rem; }
.feature__text { margin: 0; color: var(--c-muted); font-size: .95rem; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials slider ---------- */
.testimonials__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.testimonials__head .section-header { margin-bottom: 0; }
.slider__controls { display: flex; gap: .5rem; }
.slider__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2.5rem) / 3);
	gap: 1.25rem;
	margin: 0;
	padding: .25rem .25rem 1rem;
	overflow-x: auto;
	list-style: none;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { scroll-snap-align: start; }
@media (max-width: 960px) { .slider__track { grid-auto-columns: calc((100% - 1.25rem) / 2); } }
@media (max-width: 600px) { .slider__track { grid-auto-columns: 86%; } }
.testimonial { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 2rem; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); }
.testimonial__mark { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--c-leaf); opacity: .35; }
.testimonial__quote { flex: 1; margin: 0; padding: 0; border: 0; font-family: var(--font-heading); font-size: 1.2rem; font-style: normal; line-height: 1.5; }
.testimonial__quote p { margin: 0; }
.testimonial__author { display: flex; align-items: center; gap: .75rem; margin: 0; color: var(--c-muted); font-size: .9rem; line-height: 1.35; }
.testimonial__author strong { display: block; color: var(--c-text); font-size: 1rem; }
.testimonial__avatar { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--brand-green); color: #fff; font-family: var(--font-heading); font-size: 1.2rem; }

/* ---------- Gallery teaser ---------- */
.gallery-teaser__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 240px); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.gallery-teaser__item:nth-child(1) { grid-row: span 2; }
.gallery-teaser__item:nth-child(6) { grid-column: span 2; }
.gallery-teaser__item a { display: block; height: 100%; overflow: hidden; border-radius: var(--radius); }
.gallery-teaser__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-teaser__item a:hover img { transform: scale(1.06); }
@media (max-width: 700px) {
	.gallery-teaser__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
	.gallery-teaser__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
	.gallery-teaser__item:nth-child(6) { grid-column: span 2; }
}

/* ---------- Newsletter CTA ---------- */
.newsletter-cta__card {
	position: relative;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	align-items: center;
	gap: 2rem;
	overflow: hidden;
	padding: clamp(2rem, 6vw, 4.5rem);
	border-radius: var(--radius-lg);
	background: linear-gradient(135deg, var(--brand-green), #143F2F);
	color: #fff;
}
.newsletter-cta__card h2 { margin: 0 0 .75rem; color: #fff; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.newsletter-cta__card p { margin: 0; opacity: .88; }
.newsletter-cta__card .eyebrow { color: var(--brand-gold); }
.newsletter-cta__card .newsletter-form__note,
.newsletter-cta__card .form-status { color: inherit; opacity: .85; }
.newsletter-cta__card .btn,
.site-footer .newsletter-form .btn { --btn-bg: var(--brand-gold); --btn-bd: var(--brand-gold); --btn-fg: #1B2A22; }
.newsletter-cta__card .btn:hover,
.site-footer .newsletter-form .btn:hover { --btn-bg: #fff; --btn-bd: #fff; }
.newsletter-cta__card .newsletter-form__row { border-color: transparent; background: #fff; }
.newsletter-cta__card .newsletter-form__input { color: #1B2A22; }
.newsletter-cta__leaf { position: absolute; top: -40px; right: -40px; color: rgba(255, 255, 255, .07); transform: rotate(25deg); pointer-events: none; }
.newsletter-cta__content,
.newsletter-cta__card .newsletter-form { position: relative; }
@media (max-width: 860px) { .newsletter-cta__card { grid-template-columns: 1fr; } }

/* ---------- Articles ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); transition: transform .3s var(--ease), box-shadow .3s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-sand); }
.post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--c-leaf); }
.post-card__body { display: flex; flex: 1; flex-direction: column; gap: .6rem; padding: 1.4rem 1.5rem 1.6rem; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin: 0; color: var(--c-muted); font-size: .8rem; }
.post-card__cat { color: var(--c-accent); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.post-card__title { margin: 0; font-size: 1.35rem; line-height: 1.25; }
.post-card__title a { color: var(--c-text); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__excerpt { flex: 1; margin: 0; color: var(--c-muted); font-size: .95rem; }
.post-card__more { margin-top: .3rem; color: var(--c-primary); font-size: .9rem; }

.category-filter { margin-bottom: 2rem; }
.featured-post { display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; margin-bottom: clamp(2rem, 4vw, 3rem); border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); }
.featured-post__media { display: block; min-height: 360px; background: var(--c-sand); }
.featured-post__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.featured-post__body { display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: clamp(1.5rem, 4vw, 3rem); }
.featured-post__body .eyebrow { margin: 0; }
.featured-post__title { margin: 0; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
.featured-post__title a { color: inherit; text-decoration: none; }
.featured-post__excerpt { margin: 0; color: var(--c-muted); }
.featured-post .btn { align-self: flex-start; margin-top: .5rem; }
@media (max-width: 860px) { .featured-post { grid-template-columns: 1fr; } .featured-post__media { min-height: 0; aspect-ratio: 16 / 9; } }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--c-muted); font-size: .9rem; }

/* Single article */
.reading-progress { position: fixed; top: 0; right: 0; left: 0; z-index: 100; height: 3px; pointer-events: none; }
.admin-bar .reading-progress { top: 32px; }
.reading-progress__bar { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--c-leaf), var(--c-accent)); transform: scaleX(0); transform-origin: 0 50%; }
.post-hero { padding-top: clamp(2rem, 5vw, 3.5rem); }
.post-hero__cat { margin-bottom: .5rem; }
.post-hero__title { margin: .25rem 0 1rem; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem); }
.post-hero__lead { margin: 0 0 1.25rem; color: var(--c-muted); font-size: 1.2rem; }
.post-hero__image { margin-top: clamp(2rem, 4vw, 3rem); margin-bottom: 0; }
.post-hero__image img { display: block; width: 100%; aspect-ratio: 16 / 8; border-radius: var(--radius-lg); object-fit: cover; }
/* Photo credits: small and quiet, links keep the text colour. */
.post-hero__credit,
.gallery-credits { margin: .6rem 0 0; color: var(--c-muted); font-size: .78rem; line-height: 1.5; }
.post-hero__credit { text-align: right; }
.gallery-credits { margin-top: 2rem; text-align: center; }
.post-hero__credit a,
.gallery-credits a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 2px; }
.post-hero__credit a:hover,
.gallery-credits a:hover { color: var(--c-text); }
.post-layout { display: grid; grid-template-columns: minmax(0, var(--narrow)); justify-content: center; gap: 3rem; padding-block: clamp(2rem, 5vw, 3.5rem); }
.post-layout--sidebar { grid-template-columns: minmax(0, var(--narrow)) 300px; }
.post-layout__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
@media (max-width: 1100px) { .post-layout--sidebar { grid-template-columns: minmax(0, 1fr); } .post-layout__aside { position: static; } }
.toc { margin: 0 0 2rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--c-sand); }
.toc summary { font-weight: 600; cursor: pointer; }
.toc__list { margin: .75rem 0 0; padding-left: 1.2rem; }
.toc__list a { color: var(--c-text); }
.post-footer { display: grid; gap: 2rem; margin-top: 3rem; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding-block: 1.25rem; border-block: 1px solid var(--c-border); }
.post-share ul { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.post-share__label { font-weight: 600; }
.author-box { display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--c-sand); }
.author-box img { border-radius: 50%; }
.author-box__name { margin: 0 0 .25rem; font-family: var(--font-heading); font-size: 1.2rem; }
.author-box__bio { margin: 0; color: var(--c-muted); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation a { display: flex; flex-direction: column; gap: .25rem; height: 100%; padding: 1.25rem; border: 1px solid var(--c-border); border-radius: var(--radius); color: var(--c-text); text-decoration: none; }
.post-navigation a:hover { border-color: var(--c-primary); }
.post-navigation .nav-next { grid-column: 2; text-align: right; }
.post-nav__label { color: var(--c-muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.post-nav__title { font-family: var(--font-heading); font-size: 1.1rem; }

/* Entry content (blocks) */
.entry-content { font-size: 1.1rem; }
.entry-content > * { max-width: var(--narrow); margin-inline: auto; }
.entry-content > .alignwide { max-width: var(--container); }
.entry-content > .alignfull { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
.entry-content--wide > *,
.entry-content--wide > .alignwide { max-width: var(--container); }
.entry-content--full > * { max-width: none; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2.5rem; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
.entry-content h3 { margin-top: 2rem; font-size: 1.45rem; }
.entry-content p,
.entry-content ul,
.entry-content ol { margin-block: 0 1.35em; }
.entry-content li + li { margin-top: .4em; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin-block: 2rem; }
.entry-content figcaption,
.wp-element-caption { margin-top: .6rem; color: var(--c-muted); font-size: .88rem; text-align: center; }
.wp-block-quote,
.entry-content blockquote {
	margin-block: 2rem;
	padding: .25rem 0 .25rem 1.5rem;
	border-left: 3px solid var(--c-accent);
	font-family: var(--font-heading);
	font-size: 1.4rem;
	font-style: italic;
	line-height: 1.45;
}
.wp-block-quote p { margin: 0; }
.wp-block-quote cite { display: block; margin-top: .75rem; color: var(--c-muted); font-family: var(--font-body); font-size: .9rem; font-style: normal; }
.wp-block-quote cite::before { content: "— "; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { padding: .75rem; border-bottom: 1px solid var(--c-border); text-align: left; }
.entry-content hr,
.wp-block-separator { margin-block: 2.5rem; border: 0; border-top: 1px solid var(--c-border); }
.entry-content pre { overflow-x: auto; padding: 1rem; border-radius: var(--radius-sm); background: var(--c-sand); }
.wp-block-gallery { gap: 1rem; }

/* ---------- Article data visuals: charts, callouts, scorecards ---------- */
.entry-content table.data-table,
.data-table { margin-block: 1.75rem; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.data-table th,
.data-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--c-border); }
.data-table thead th { background: var(--c-sand); font-family: var(--font-heading); font-weight: 500; letter-spacing: .01em; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--c-primary) 4%, transparent); }
.data-table td.is-highlight,
.data-table th.is-highlight { background: color-mix(in srgb, var(--brand-gold) 14%, transparent); font-weight: 600; }
.data-table-wrap { margin-block: 1.75rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table-wrap .data-table { margin-block: 0; min-width: 480px; }
.data-table-note { margin: .6rem 0 0; color: var(--c-muted); font-size: .82rem; }

.chart { margin: 2.25rem 0; padding: 1.75rem 1.75rem 1.5rem; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); }
.chart__title { margin: 0 0 .2rem; font-family: var(--font-heading); font-size: 1.15rem; }
.chart__subtitle { margin: 0 0 1.4rem; color: var(--c-muted); font-size: .88rem; }
.chart__source { margin: 1.1rem 0 0; color: var(--c-muted); font-size: .78rem; }

.chart-bars { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.chart-bar { display: grid; grid-template-columns: minmax(80px, 26%) 1fr auto; align-items: center; gap: .75rem; }
.chart-bar__label { font-size: .9rem; color: var(--c-text); }
.chart-bar__track { position: relative; height: 14px; border-radius: 999px; background: var(--c-sand); overflow: hidden; }
.chart-bar__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--c-primary), var(--brand-gold)); transition: width 1.1s var(--ease); }
[data-reveal].is-visible .chart-bar__fill { width: var(--to, 0%); }
.chart-bar__value { min-width: 3.5em; font-family: var(--font-heading); font-variant-numeric: tabular-nums; font-size: .95rem; color: var(--c-primary); text-align: right; }
.section--dark .chart,
.chart--dark { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
.chart--dark .chart-bar__label,
.chart--dark .chart__title { color: #fff; }
.chart--dark .chart-bar__track { background: rgba(255, 255, 255, .12); }

.chart-donut { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; }
.chart-donut__ring {
	--p: 0;
	position: relative;
	width: 164px;
	height: 164px;
	flex: none;
	border-radius: 50%;
	background: conic-gradient(var(--c-primary) calc(var(--p) * 1%), var(--c-sand) 0);
	transform: scale(.82) rotate(-90deg);
	opacity: 0;
	transition: transform .9s var(--ease), opacity .9s var(--ease);
}
[data-reveal].is-visible .chart-donut__ring { transform: scale(1) rotate(-90deg); opacity: 1; }
.chart-donut__ring::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: var(--c-surface); }
.chart-donut__ring::after { content: attr(data-label); position: absolute; inset: 18px; display: grid; place-items: center; transform: rotate(90deg); font-family: var(--font-heading); font-size: 1.5rem; color: var(--c-primary); }
.chart-donut__legend { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; flex: 1; min-width: 180px; }
.chart-donut__legend li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; }
.chart-donut__swatch { width: 12px; height: 12px; flex: none; border-radius: 3px; }
.chart-donut__pct { margin-left: auto; font-family: var(--font-heading); color: var(--c-muted); font-variant-numeric: tabular-nums; }

.callout { display: flex; gap: 1rem; margin: 2rem 0; padding: 1.35rem 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--c-border); background: var(--c-sand); }
.callout__icon { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--c-surface); color: var(--c-primary); }
.callout__body { min-width: 0; }
.callout__title { margin: 0 0 .25rem; font-family: var(--font-heading); font-size: 1.02rem; }
.callout__body p { margin: 0; color: var(--c-muted); font-size: .95rem; }
.callout__body p + p { margin-top: .5rem; }
.callout--fact { background: color-mix(in srgb, var(--c-primary) 7%, var(--c-surface)); border-color: color-mix(in srgb, var(--c-primary) 20%, var(--c-border)); }
.callout--fact .callout__icon { color: var(--c-primary); }
.callout--caution { background: color-mix(in srgb, var(--brand-gold) 12%, var(--c-surface)); border-color: color-mix(in srgb, var(--brand-gold) 35%, var(--c-border)); }
.callout--caution .callout__icon { color: var(--c-accent); }
.callout--source { background: var(--c-surface); }
.callout--source .callout__body p { font-size: .85rem; }

.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 2rem 0; padding: 0; list-style: none; }
.mini-stat { padding: 1.1rem 1.25rem; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); text-align: center; }
.mini-stat__number { display: block; font-family: var(--font-heading); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); color: var(--c-primary); font-variant-numeric: tabular-nums; line-height: 1; }
.mini-stat__label { display: block; margin-top: .4rem; color: var(--c-muted); font-size: .82rem; line-height: 1.3; }

.step-list { display: grid; gap: 1rem; margin: 1.75rem 0; padding: 0; list-style: none; counter-reset: step; }
.step-list__item { position: relative; display: grid; grid-template-columns: 2.25rem 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--c-border); }
.step-list__item:last-child { padding-bottom: 0; border-bottom: 0; }
.step-list__item::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--c-primary); color: var(--c-on-primary); font-family: var(--font-heading); font-size: 1rem; }
.step-list__item h4 { margin: .1rem 0 .3rem; font-size: 1.05rem; }
.step-list__item p { margin: 0; color: var(--c-muted); font-size: .93rem; }

@media (max-width: 560px) {
	.chart-bar { grid-template-columns: 1fr; gap: .3rem; }
	.chart-bar__value { text-align: left; }
	.chart-donut { gap: 1.25rem; }
	.chart-donut__ring { width: 128px; height: 128px; }
}

.wp-block-details {
	margin: 0 0 .75rem;
	overflow: hidden;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-surface);
}
.wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 1.35rem;
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--c-primary); font-family: var(--font-body); font-size: 1.5rem; line-height: 1; transition: transform .3s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { margin: 0; padding: 0 1.35rem 1.2rem; color: var(--c-muted); }
@supports (interpolate-size: allow-keywords) {
	:root { interpolate-size: allow-keywords; }
	.wp-block-details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
	.wp-block-details[open]::details-content { height: auto; }
}

/* ---------- About ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.value-card { padding: 2rem; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); }
.value-card h3 { margin: 0 0 .5rem; font-size: 1.35rem; }
.value-card p { margin: 0; color: var(--c-muted); }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; } }
.timeline { display: grid; gap: 2rem; margin: 0; padding: 0 0 0 2rem; border-left: 2px solid var(--c-border); list-style: none; }
.timeline__item { position: relative; }
.timeline__item::before { content: ""; position: absolute; top: .5rem; left: calc(-2rem - 7px); width: 12px; height: 12px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 5px var(--c-bg); }
.timeline__year { color: var(--c-primary); font-family: var(--font-heading); font-size: 1.9rem; line-height: 1; }
.timeline__text { margin: .5rem 0 0; color: var(--c-muted); font-size: 1.05rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; text-align: center; }
.team-card__photo { display: block; width: 160px; height: 160px; margin: 0 auto 1rem; overflow: hidden; border-radius: 50%; background: var(--c-sand); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__initial { display: grid; place-items: center; height: 100%; color: var(--c-primary); font-family: var(--font-heading); font-size: 3rem; }
.team-card__name { margin: 0; font-size: 1.25rem; }
.team-card__role { margin: .25rem 0 0; color: var(--c-muted); }
.cta-band__inner { padding: clamp(2.5rem, 6vw, 4.5rem); border-radius: var(--radius-lg); background: var(--c-sand); text-align: center; }
.cta-band h2 { margin: 0 0 .5rem; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.cta-band p { margin: 0 0 1.75rem; color: var(--c-muted); }

/* ---------- Gallery page ---------- */
.gallery-filters { justify-content: center; margin-bottom: 2rem; }
.gallery-grid { margin: 0; padding: 0; list-style: none; columns: 3 260px; column-gap: 1rem; }
.gallery-grid__item { margin-bottom: 1rem; break-inside: avoid; }
.gallery-grid__item.is-hidden { display: none; }
.gallery-grid__item.is-shown { animation: fade-up .45s var(--ease); }
.gallery-grid__link { position: relative; display: block; overflow: hidden; border-radius: var(--radius); }
.gallery-grid__link img { display: block; width: 100%; height: auto; transition: transform .6s var(--ease); }
.gallery-grid__link:hover img { transform: scale(1.04); }
.gallery-grid__caption {
	position: absolute;
	inset: auto 0 0;
	padding: 2rem 1rem .9rem;
	background: linear-gradient(transparent, rgba(0, 0, 0, .6));
	color: #fff;
	font-size: .9rem;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery-grid__link:hover .gallery-grid__caption,
.gallery-grid__link:focus-visible .gallery-grid__caption { opacity: 1; transform: none; }
@media (hover: none) { .gallery-grid__caption { opacity: 1; transform: none; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: clamp(1.5rem, 4vw, 3rem); }
.contact-cards { display: grid; gap: .75rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.contact-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); }
.contact-card__icon { display: grid; flex-shrink: 0; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: color-mix(in srgb, var(--c-primary) 10%, transparent); color: var(--c-primary); }
.contact-card__label { display: block; margin-bottom: .1rem; color: var(--c-muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-card a { color: var(--c-text); font-weight: 600; text-decoration: none; }
.contact-card a:hover { color: var(--c-primary); }
.contact-layout__title { margin: 0 0 1.5rem; font-size: 1.8rem; }
.contact-layout__content { margin-top: 1.5rem; }
.social-links--large .social-link { width: 3rem; height: 3rem; }
.map-embed {
	position: relative;
	display: grid;
	place-items: center;
	align-content: center;
	gap: .5rem;
	min-height: 360px;
	overflow: hidden;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	background: repeating-linear-gradient(45deg, var(--c-sand) 0 14px, color-mix(in srgb, var(--c-sand) 70%, var(--c-bg)) 14px 28px);
	text-align: center;
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed__note { margin: 0; color: var(--c-muted); font-size: .85rem; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-search { position: relative; margin-bottom: 1.5rem; }
.faq-search .icon { position: absolute; top: 50%; left: 1.1rem; color: var(--c-muted); transform: translateY(-50%); }
.faq-search input[type="search"] { height: 3.4rem; padding-left: 3rem; border-radius: 999px; }
.faq-empty { color: var(--c-muted); text-align: center; }
.faq-content > * { max-width: none; }
.faq-contact { margin-top: 3rem; text-align: center; }
.faq-contact h2 { margin: 0 0 .5rem; font-size: 1.8rem; }
.faq-contact p { color: var(--c-muted); }

/* ---------- Brewing guide ---------- */
.brew-layout { display: grid; grid-template-columns: minmax(0, 440px) 1fr; align-items: start; gap: clamp(1.5rem, 4vw, 3rem); }
.brew-timer { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; text-align: center; }
.brew-timer__heading { margin: 0; font-size: 1.6rem; }
.brew-timer__presets { justify-content: center; }
.brew-timer__dial { position: relative; width: min(260px, 100%); aspect-ratio: 1; margin: 0 auto; }
.brew-timer__dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.brew-timer__track { fill: none; stroke: var(--c-sand); stroke-width: 12; }
.brew-timer__progress { fill: none; stroke: var(--tea, var(--c-primary)); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke .3s; }
.brew-timer__readout { position: absolute; inset: 0; display: grid; place-content: center; gap: .25rem; }
.brew-timer__time { font-family: var(--font-heading); font-size: 3.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.brew-timer__label { color: var(--c-muted); font-size: .95rem; }
.brew-timer__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0; }
.brew-timer__facts div { padding: .75rem .5rem; border-radius: var(--radius-sm); background: var(--c-sand); }
.brew-timer__facts dt { display: flex; align-items: center; justify-content: center; gap: .3rem; color: var(--c-muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.brew-timer__facts dd { margin: .25rem 0 0; font-size: .88rem; font-weight: 600; }
.brew-timer__tip { margin: 0; color: var(--c-muted); font-size: .95rem; font-style: italic; }
.brew-timer__controls { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.brew-timer.is-done .brew-timer__dial { animation: pulse 1s ease 3; }
.brew-guide h2 { font-size: 1.8rem; }
.tea-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.tea-type-card { padding: 1.4rem; border: 1px solid var(--c-border); border-top: 4px solid var(--tea); border-radius: var(--radius-lg); background: var(--c-surface); }
.tea-type-card__name { margin: 0 0 .75rem; font-size: 1.3rem; }
.tea-type-card__specs { display: grid; gap: .35rem; margin: 0 0 .75rem; padding: 0; list-style: none; font-size: .92rem; }
.tea-type-card__specs li { display: flex; align-items: center; gap: .45rem; }
.tea-type-card__specs .icon { color: var(--tea); }
.tea-type-card__tip { margin: 0; color: var(--c-muted); font-size: .88rem; }
@media (max-width: 900px) { .brew-layout { grid-template-columns: 1fr; } .brew-timer { position: static; } }

/* ---------- Empty states, 404, search ---------- */
.empty-state { display: grid; justify-items: center; gap: .5rem; padding: 3rem 1rem; text-align: center; }
.empty-state > .icon { color: var(--c-leaf); }
.empty-state h2 { margin: .5rem 0 0; }
.empty-state p { margin: 0 0 1rem; color: var(--c-muted); }
.error-404__inner { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.error-404__icon { color: var(--c-leaf); }
.error-404__title { margin: 0; font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); }
.error-404 .search-form { margin: .5rem auto; }
.error-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .5rem; }
.search-page__form { margin-bottom: 2rem; }

/* ---------- Pagination ---------- */
.navigation.pagination { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.page-numbers { display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .8rem; border: 1px solid var(--c-border); border-radius: 999px; color: var(--c-text); font-weight: 600; text-decoration: none; }
.page-numbers.current { border-color: var(--c-primary); background: var(--c-primary); color: var(--c-on-primary); }
a.page-numbers:hover { border-color: var(--c-primary); color: var(--c-primary); }
.page-numbers.dots { border: 0; }

/* ---------- Comments & widgets ---------- */
.comments-area { margin-top: 3rem; }
.comments-title,
.comment-reply-title { font-size: 1.6rem; }
.comment-list { margin: 0 0 2rem; padding: 0; list-style: none; }
.comment-list .children { padding-left: 1.5rem; list-style: none; }
.comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--c-border); }
.comment-author img { float: left; margin-right: .75rem; border-radius: 50%; }
.comment-meta { color: var(--c-muted); font-size: .85rem; }
.comment-meta a { color: inherit; }
.comment-form p { margin: 0 0 1rem; }
.comment-form label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 600; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: .5rem; }
.comment-form-cookies-consent label { font-weight: 400; }
.widget { margin-bottom: 2rem; }
.widget-title { margin: 0 0 1rem; font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: .35rem 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: rgba(244, 239, 228, .78); font-size: .95rem; }
.site-footer a { color: rgba(244, 239, 228, .88); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__band { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-footer__band-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.site-footer__band-title { margin: 0 0 .35rem; color: #fff; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.site-footer__band p { margin: 0; }
.site-footer .newsletter-form__row { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); }
.site-footer .newsletter-form__input { color: #fff; }
.site-footer .newsletter-form__input::placeholder { color: rgba(244, 239, 228, .6); }
.site-footer .newsletter-form__note,
.site-footer .form-status { color: rgba(244, 239, 228, .7); }
.site-footer__main { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.site-footer .site-title { color: #fff; }
.site-footer .site-title__mark { color: var(--brand-gold); }
.site-footer__tagline { max-width: 22rem; margin: 1rem 0 1.5rem; }
.site-footer__title { margin: 0 0 1.1rem; color: #fff; font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.footer-menu { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.contact-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: .6rem; }
.contact-list .icon { margin-top: .2rem; color: var(--brand-gold); }
.social-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.social-link { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: 50%; color: inherit; transition: background-color .2s, border-color .2s, color .2s; }
.social-link:hover { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; font-size: .85rem; }
.site-footer__copy { margin: 0; }
.legal-menu { display: flex; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.payment-icons { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.payment-icon { display: block; border-radius: 4px; }
.site-footer--minimal { border-top: 1px solid var(--c-border); background: transparent; color: var(--c-muted); }
@media (max-width: 1024px) { .site-footer__main { grid-template-columns: repeat(2, 1fr); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .site-footer__band-inner { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .site-footer__main { grid-template-columns: 1fr; } }

.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; border: 1px solid var(--c-border); background: var(--c-surface); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.icon-btn:disabled { opacity: .35; cursor: default; }
html:has(dialog[open]:modal) { overflow: hidden; }
.back-to-top:hover { background: var(--c-surface); color: var(--c-primary); }

/* ---------- Scroll reveal ---------- */
.js .has-animations [data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .8s var(--ease), transform .8s var(--ease);
	transition-delay: calc(var(--i, 0) * 80ms);
}
.js .has-animations [data-reveal].is-visible,
.no-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ---------- Motion ---------- */
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes slide-in-left { from { transform: translateX(-100%); } }
@keyframes slide-in-right { from { transform: translateX(100%); } }
@keyframes slide-out-left { to { transform: translateX(-100%); } }
@keyframes slide-out-right { to { transform: translateX(100%); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(16px); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.04); } }
@keyframes bump { 40% { transform: scale(1.35); } }

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .25s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.js .has-animations [data-reveal] { opacity: 1; transform: none; }
	.marquee__track { flex-wrap: wrap; animation: none; }
	@view-transition { navigation: none; }
}

/* ---------- Print ---------- */
@media print {
	.announcement, .site-header, .site-footer, dialog, .back-to-top, .reading-progress, .post-share, .toast-region { display: none !important; }
	body { background: #fff; color: #000; }
}
