/*
Theme Name: Konzum Editorial
Theme URI: https://konzumuo.cz/
Author: Webpublicator
Description: Responzivní šablona COOP Konzum vytvořená podle návrhu Google Stitch.
Version: 1.6.6
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: konzum-editorial
*/

:root {
	--primary: #45b9e7;
	--header-bg: rgba(69, 185, 231, .97);
	--primary-dark: #006685;
	--primary-deep: #004d65;
	--secondary: #fcca0c;
	--secondary-text: #5b4700;
	--ink: #171c1f;
	--muted: #536068;
	--surface: #f6fafe;
	--surface-low: #f0f4f8;
	--surface-high: #e4e9ec;
	--white: #fff;
	--radius: 24px;
	--radius-lg: 48px;
	--shadow: 0 12px 24px rgba(23, 28, 31, .07);
	--container: 1440px;
	--header-height: 80px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--surface);
	color: var(--ink);
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2 { word-spacing: .07em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.narrow { max-width: 860px; }
.icon { width: 24px; height: 24px; display: inline-block; flex: 0 0 auto; }
.eyebrow { display: block; margin-bottom: 10px; color: var(--primary-dark); font-size: .75rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.section-title { margin: 0; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.12; letter-spacing: 0; }
.section-copy { color: var(--muted); font-size: 1.08rem; }
.editorial-shadow { box-shadow: var(--shadow); }

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 13px 28px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--primary-dark), var(--primary));
	color: var(--white);
	font-weight: 800;
	transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.button-secondary { background: var(--secondary); color: var(--secondary-text); }
.button-dark { background: var(--ink); color: var(--white); }
.button-light { background: var(--white); color: var(--ink); }

/* Header */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	background: var(--header-bg);
	box-shadow: 0 4px 18px rgba(0, 75, 101, .14);
	backdrop-filter: blur(18px);
}
.header-inner {
	min-height: 80px;
	display: grid;
	grid-template-columns: minmax(140px, 210px) 1fr minmax(120px, 210px);
	align-items: center;
	gap: 16px 20px;
}
.header-logo { min-width: 0; }
.brand, .custom-logo-link { display: inline-flex; align-items: center; width: max-content; color: var(--white); font-size: 1.24rem; font-weight: 800; letter-spacing: 0; }
.brand-star { align-self: flex-start; margin: -6px -2px 0 0; color: var(--secondary); font-size: 1.25rem; }
.brand-image, .custom-logo { width: auto; height: 48px; max-width: min(220px, 42vw); object-fit: contain; }
.brand-svg-link { display: inline-flex; align-items: center; line-height: 0; }
.brand-svg-link svg { display: block; width: auto; height: 48px; max-width: min(220px, 42vw); }
.primary-nav { justify-self: center; min-width: 0; }
.primary-nav ul, .footer-nav ul {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(8px, 1.2vw, 22px);
	padding: 0;
	margin: 0;
	list-style: none;
}
.primary-nav li { position: relative; }
.primary-nav a {
	display: block;
	padding: 24px 0 20px;
	border-bottom: 3px solid transparent;
	color: rgba(255,255,255,.82);
	font-size: clamp(.72rem, .88vw, .84rem);
	font-weight: 700;
	line-height: 1.2;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { border-bottom-color: var(--white); color: var(--white); }
.primary-nav.has-mega-menu > .mega-menu { flex-wrap: wrap; justify-content: center; }
.primary-nav .mega-panel {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--header-height);
	z-index: 99;
	display: none;
	padding: 0;
	border-top: 1px solid rgba(255,255,255,.2);
	background: var(--header-bg);
	box-shadow: 0 12px 28px rgba(0, 75, 101, .16);
	backdrop-filter: blur(18px);
}
.primary-nav .has-mega.is-mega-open > .mega-panel,
.primary-nav .has-mega:focus-within > .mega-panel { display: block; }
.primary-nav .mega-panel .container {
	width: min(calc(100% - 48px), var(--container));
	margin-inline: auto;
}
.primary-nav .mega-columns {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 28px 40px;
	padding: 24px 0 28px;
	margin: 0;
	list-style: none;
	text-align: left;
}
.primary-nav .mega-columns > li {
	flex: 0 1 200px;
	min-width: 0;
	max-width: 240px;
}
.primary-nav .mega-columns > li > a {
	padding: 0 0 10px;
	border: 0;
	border-bottom: 1px solid rgba(255,255,255,.22);
	color: var(--white);
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .02em;
	line-height: 1.35;
	text-align: left;
}
.primary-nav .mega-columns > li > a:hover { background: transparent; color: var(--white); opacity: .92; }
.primary-nav .mega-sub {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	padding: 10px 0 0;
	margin: 0;
	list-style: none;
	text-align: left;
}
.primary-nav .mega-sub a {
	padding: 7px 0;
	border: 0;
	color: rgba(255,255,255,.88);
	font-size: .8rem;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	white-space: normal;
}
.primary-nav .mega-sub a:hover { color: var(--white); background: transparent; }
.primary-nav .sub-menu {
	position: absolute;
	top: calc(100% - 8px);
	left: -22px;
	display: none;
	min-width: 230px;
	gap: 0;
	padding: 12px;
	border-radius: 16px;
	background: var(--primary-dark);
	box-shadow: var(--shadow);
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { padding: 10px 12px; border: 0; border-radius: 8px; white-space: nowrap; }
.primary-nav .sub-menu a:hover { background: rgba(255,255,255,.1); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--white);
}
.icon-button:hover { background: rgba(255,255,255,.12); }
.icon-button.is-light { background: var(--white); color: var(--primary-dark); box-shadow: var(--shadow); }
.menu-toggle { display: none; }
.search-panel { position: fixed; inset: var(--header-height) 0 auto; z-index: 99; padding: 22px 0; background: rgba(246,250,254,.98); box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .25s ease; }
.search-panel.is-open { transform: translateY(0); }
.search-panel form { display: flex; gap: 12px; }
.search-panel input { flex: 1; min-width: 0; padding: 16px 20px; border: 0; border-radius: 999px; background: var(--surface-high); }

.site-main { padding-top: var(--header-height); }

/* Home */
.hero { padding: 32px 0 72px; }
.hero-frame { position: relative; min-height: min(620px, calc(100vh - 145px)); overflow: hidden; border-radius: 30px; background: var(--surface-low); box-shadow: var(--shadow); }
.hero-frame > picture, .hero-frame > picture img { width: 100%; height: 100%; }
.hero-frame > picture img { position: absolute; inset: 0; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; display: flex; align-items: center; padding: clamp(38px, 7vw, 110px); background: linear-gradient(90deg, rgba(0,0,0,.68), rgba(0,0,0,.25) 55%, transparent 80%); }
.hero-copy { max-width: 720px; color: var(--white); }
.pill { display: inline-block; padding: 7px 15px; border-radius: 999px; background: var(--primary); color: var(--white); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 780px; margin: 22px 0 26px; font-size: clamp(2.4rem, 4.2vw, 4.2rem); line-height: 1.08; letter-spacing: 0; }
.hero p { max-width: 610px; margin: 0 0 34px; color: rgba(255,255,255,.92); font-size: clamp(1rem, 1.5vw, 1.25rem); }

.leaflets { padding: 34px 0 92px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 42px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-dark); font-weight: 800; }
.leaflet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.leaflet-card { position: relative; min-height: 280px; overflow: hidden; padding: 38px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); transition: transform .25s ease; }
.leaflet-card.leaflet-style-yellow,
.leaflet-card:first-child:not([class*="leaflet-style-"]) { background: var(--secondary); color: var(--secondary-text); }
.leaflet-card.leaflet-style-gray,
.leaflet-card:nth-child(3):not([class*="leaflet-style-"]) { background: var(--surface-high); }
.leaflet-card.leaflet-style-white { background: var(--white); }
.leaflet-card:hover { transform: translateY(-7px); }
.leaflet-card h3 { margin: 5px 0; font-size: 2rem; line-height: 1.1; }
.leaflet-card p { margin: 0 0 34px; color: var(--muted); font-size: .9rem; }
.leaflet-card.leaflet-style-yellow p,
.leaflet-card:first-child:not([class*="leaflet-style-"]) p { color: var(--secondary-text); }
.leaflet-card .button {
	position: relative;
	z-index: 1;
	background: var(--primary-dark);
	color: #fff;
}
.leaflet-card .button:hover,
.leaflet-card .button:focus-visible {
	background: var(--primary-deep);
	color: #fff;
}
.leaflet-mark { position: absolute; right: 10px; bottom: -18px; font-size: 4.8rem; font-weight: 800; opacity: .06; }
.leaflet-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; }
.leaflet-filter {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 8px 18px;
	border-radius: 999px;
	background: var(--white);
	border: 1px solid var(--surface-high);
	color: var(--muted);
	font-size: .9rem;
	font-weight: 700;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.leaflet-filter:hover,
.leaflet-filter.is-active {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--white);
}

/* PDF viewer (jako časopis Pekařství Sázava) */
body.konzum-letak-pdf-body { overflow: hidden; }
body.konzum-letak-pdf-body .search-panel,
body.konzum-letak-pdf-body .site-footer,
body.konzum-letak-pdf-body .site-header { display: none; }

/* Čtečka vyplňuje celé okno nezávisle na layoutu šablony. */
.konzum-letak-pdf-view {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	background: #dfe8ee;
	box-sizing: border-box;
}
body.admin-bar .konzum-letak-pdf-view { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .konzum-letak-pdf-view { top: 46px; }
}
.konzum-letak-pdf-bar {
	padding-block: 18px;
	background: var(--white);
	border-bottom: 1px solid var(--surface-high);
	flex-shrink: 0;
}
.konzum-letak-pdf-bar__inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 20px;
}
.konzum-letak-pdf-bar__back {
	color: var(--primary-dark);
	font-weight: 700;
}
.konzum-letak-pdf-bar__back:hover { text-decoration: underline; }
.konzum-letak-pdf-bar__title {
	margin: 0;
	flex: 1 1 12rem;
	font-size: 1.05rem;
	font-weight: 700;
	text-align: center;
	min-width: 0;
	line-height: 1.3;
}
.konzum-letak-pdf-bar__dl { flex-shrink: 0; min-height: 44px; padding: 10px 20px; font-size: .9rem; }
.konzum-letak-dflip,
.konzum-letak-reader {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	min-width: 0;
	width: 100%;
	background: #dfe8ee;
}
.konzum-letak-reader__toolbar {
	flex-shrink: 0;
	padding: 8px 12px 6px;
	background: var(--white);
	border-bottom: 1px solid var(--surface-high);
}
.konzum-letak-reader__toolbar-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 12px;
}
.konzum-letak-reader__hint {
	margin: 0;
	padding: 4px 12px 8px;
	text-align: center;
	font-size: 12px;
	line-height: 1.35;
	color: var(--muted);
}
@media (max-width: 767px) {
	.konzum-letak-reader__hint { display: none; }
}
.konzum-letak-reader__zoom {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.konzum-letak-reader__zoom-label {
	min-width: 3.25rem;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
}
.konzum-letak-reader__zoom-btn {
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border-radius: 10px;
	border: 1px solid var(--surface-high);
	background: var(--white);
	color: var(--ink);
	font-size: 18px;
	line-height: 1;
	font-weight: 700;
	cursor: pointer;
}
.konzum-letak-reader__zoom-btn:hover,
.konzum-letak-reader__zoom-btn:focus-visible {
	border-color: var(--primary);
	background: #eef8fc;
}
.konzum-letak-reader__zoom-btn--reset { font-size: 12px; padding: 0 10px; }
.konzum-letak-reader__counter {
	margin: 0;
	min-width: 9rem;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
}
.konzum-letak-reader__nav {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: var(--primary-dark);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow);
}
.konzum-letak-reader__nav:hover:not(:disabled),
.konzum-letak-reader__nav:focus-visible:not(:disabled) {
	background: var(--primary-deep);
}
.konzum-letak-reader__nav:disabled { opacity: .35; cursor: not-allowed; }
.konzum-letak-reader__stage {
	flex: 1 1 auto;
	min-height: 0;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 10px 12px;
	overflow: auto;
	scrollbar-gutter: stable;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-x pan-y pinch-zoom;
}
.konzum-letak-reader__pages {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 16px;
	flex-wrap: nowrap;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}
.konzum-letak-reader__canvas {
	display: block;
	max-width: 100%;
	height: auto;
	box-shadow: 0 8px 32px rgba(23, 28, 31, .12);
	border-radius: 4px;
	background: #fff;
}
.konzum-letak-reader__canvas--second.is-hidden { display: none; }
.konzum-letak-reader__err {
	padding: 24px 16px;
	text-align: center;
	max-width: 36rem;
	margin: 0 auto;
}

.member-promo { padding: 50px 0 100px; }
.member-card { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; overflow: hidden; padding: clamp(42px, 7vw, 96px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.member-card::after { content: ""; position: absolute; inset: 0 0 0 55%; background: #fff8df; transform: skewX(-10deg) translateX(12%); }
.member-copy, .membership-visual { position: relative; z-index: 1; }
.member-copy h2 { margin: 20px 0 26px; font-size: clamp(2.2rem, 3.4vw, 3.2rem); line-height: 1.12; letter-spacing: 0; }
.member-copy h2 span { color: var(--primary); }
.member-copy p { max-width: 590px; margin-bottom: 32px; color: var(--muted); font-size: 1.15rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 13px; }
.membership-visual { display: flex; justify-content: center; }
.membership-card {
	position: relative;
	width: min(100%, 470px);
	aspect-ratio: 1.58;
	padding: 35px;
	border-radius: 26px;
	background: linear-gradient(135deg, var(--primary-dark), var(--primary) 72%, #8edcf8);
	color: var(--white);
	box-shadow: 0 25px 50px rgba(0,102,133,.24);
	transform: rotate(3deg);
}
.membership-card::after { content: ""; position: absolute; inset: auto -20px -20px auto; width: 130px; height: 130px; border-radius: 50%; background: var(--secondary); opacity: .92; }
.membership-card strong { display: block; font-size: 2rem; }
.membership-card small { display: block; margin-top: 80px; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; }

.recommendation { padding: 70px 0 120px; }
.recommendation-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(50px, 8vw, 120px); }
.recommendation-image { position: relative; }
.recommendation-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 30px; box-shadow: var(--shadow); }
.origin-badge { position: absolute; right: -28px; bottom: -35px; padding: 30px; border-radius: var(--radius); background: var(--secondary); color: var(--secondary-text); box-shadow: var(--shadow); text-align: center; }
.origin-badge strong { display: block; font-size: 2.7rem; line-height: 1; }
.recommendation-copy h2 { margin: 14px 0 30px; font-size: clamp(2.2rem, 3.4vw, 3.2rem); line-height: 1.12; letter-spacing: 0; }
.recommendation-copy p { max-width: 650px; color: var(--muted); font-size: 1.15rem; }
.price-row { display: flex; align-items: center; gap: 34px; margin-top: 36px; }
.price strong { display: block; font-size: 2rem; }
.price small { color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.world { padding: 100px 0; background: var(--surface-low); }
.world-heading { margin-bottom: 55px; text-align: center; }
.world-heading::after { content: ""; display: block; width: 78px; height: 5px; margin: 25px auto 0; border-radius: 99px; background: var(--primary); }
.world-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.world-card { display: flex; min-height: 190px; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 28px; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: var(--shadow); text-align: center; transition: background .25s, color .25s, transform .25s; }
.world-card .icon { width: 44px; height: 44px; color: var(--primary-dark); }
.world-card strong { font-size: 1.08rem; }
.world-card:hover { transform: translateY(-5px); background: var(--primary); color: var(--white); }
.world-card:hover .icon { color: var(--white); }

.newsletter-wrap { padding: 90px 0; }
.newsletter { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; overflow: hidden; padding: clamp(38px, 6vw, 76px); border-radius: var(--radius-lg); background: var(--primary); color: var(--white); box-shadow: var(--shadow); }
.newsletter::before { content: ""; position: absolute; inset: -50% -10% auto auto; width: 600px; height: 600px; border-radius: 50%; background: rgba(255,255,255,.08); }
.newsletter > * { position: relative; }
.newsletter h2 { margin: 0 0 14px; font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1.14; letter-spacing: 0; }
.newsletter p { margin: 0; color: rgba(255,255,255,.82); }
.newsletter-form { display: flex; padding: 6px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow); }
.newsletter-form input { flex: 1; min-width: 0; padding: 15px 20px; border: 0; outline: 0; background: transparent; }
.newsletter-note { margin: 13px 20px 0 !important; font-size: .72rem; }
.form-message { margin-bottom: 15px; padding: 12px 18px; border-radius: 12px; background: rgba(255,255,255,.18); font-weight: 700; }

/* Common pages */
.page-hero { padding: 90px 0 65px; }
.page-hero h1 { margin: 0 0 18px; font-size: clamp(2.6rem, 4.5vw, 4.2rem); line-height: 1.08; letter-spacing: 0; }
.page-hero p { max-width: 770px; margin: 0; color: var(--muted); font-size: 1.15rem; }
.content-page { padding: 80px 0 120px; }
.content-page article { padding: clamp(30px, 5vw, 65px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.content-page h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1.1; }
.content-page a { color: var(--primary-dark); text-decoration: underline; }

/* Recipes */
.recipes-page { padding: 80px 0 110px; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 32px; }
.recipe-card-media { display: block; aspect-ratio: 4/5; overflow: hidden; margin-bottom: 20px; border-radius: 18px; background: var(--surface-high); }
.recipe-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.recipe-card:hover .recipe-card-media img { transform: scale(1.035); }
.recipe-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--primary-dark); font-size: 1.4rem; font-weight: 800; }
.recipe-card h2 { margin: 0 0 8px; font-size: 1.28rem; line-height: 1.25; }
.recipe-card p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Member login */
.member-page { padding: 75px 0 110px; }
.member-hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 90px; margin-bottom: 80px; }
.member-hero h1 { margin: 15px 0 20px; color: var(--primary); font-size: clamp(2.6rem, 4.5vw, 4.2rem); line-height: 1.08; letter-spacing: 0; }
.member-hero p { max-width: 690px; color: var(--muted); font-size: 1.2rem; }
.member-hero img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 50px 24px 64px 30px; box-shadow: var(--shadow); }
.member-login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.member-login-grid.member-login-only { grid-template-columns: minmax(320px, 640px); justify-content: center; }
.member-info { padding: 38px; border-radius: var(--radius); background: var(--surface-low); }
.member-info h2 { margin-top: 0; }
.member-info p { color: var(--muted); }
.member-login { padding: clamp(30px, 5vw, 52px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.member-login h2 { margin: 0 0 30px; }
.field { margin-bottom: 23px; }
.field label { display: block; margin-bottom: 7px; font-size: .84rem; font-weight: 700; }
.field input { width: 100%; padding: 16px 18px; border: 0; border-bottom: 2px solid transparent; border-radius: 12px; outline: 0; background: var(--surface-high); }
.field input:focus { border-bottom-color: var(--primary); background: var(--white); box-shadow: 0 0 0 3px rgba(69,185,231,.14); }
.login-status { min-height: 25px; margin-top: 16px; color: var(--primary-dark); font-size: .9rem; font-weight: 700; text-align: center; }

/* Support */
.support-hero { padding: 80px 0 100px; background: var(--white); }
.support-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 80px; }
.support-grid h1 { margin: 0 0 28px; color: var(--primary); font-size: clamp(2.5rem, 4.5vw, 4.2rem); line-height: 1.09; letter-spacing: 0; }
.support-grid p { color: var(--muted); font-size: 1.1rem; }
.drop-cap::first-letter { float: left; padding: 5px 10px 0 0; color: var(--ink); font-size: 4.3rem; font-weight: 800; line-height: .8; }
.support-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 48px; box-shadow: var(--shadow); }

/* Stores */
.stores-layout { display: grid; grid-template-columns: minmax(400px, 42%) 1fr; min-height: calc(100vh - var(--header-height)); }
.stores-sidebar { max-height: calc(100vh - var(--header-height)); overflow-y: auto; padding: 42px clamp(22px, 4vw, 55px); background: var(--surface); }
.stores-sidebar h1 { margin: 0 0 24px; font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1; }
.store-search { position: relative; margin-bottom: 26px; }
.store-search .icon { position: absolute; left: 17px; top: 50%; color: var(--muted); transform: translateY(-50%); }
.store-search input { width: 100%; padding: 16px 20px 16px 52px; border: 0; border-radius: 999px; outline: 0; background: var(--surface-high); }
.store-list { display: grid; gap: 15px; }
.store-card { padding: 24px; border: 0; border-radius: 20px; background: var(--white); box-shadow: none; text-align: left; transition: transform .2s, box-shadow .2s; }
.store-card:hover, .store-card.is-active { transform: translateY(-3px); box-shadow: var(--shadow); }
.store-card.is-active { box-shadow: inset 5px 0 var(--primary), var(--shadow); }
.store-card-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.store-card h2 { margin: 0 0 8px; font-size: 1.15rem; }
.store-card p { display: flex; gap: 8px; align-items: center; margin: 4px 0; color: var(--muted); font-size: .86rem; }
.store-card p .icon { width: 17px; height: 17px; }
.store-label { padding: 5px 10px; border-radius: 999px; background: var(--secondary); color: var(--secondary-text); font-size: .62rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.map-panel { position: sticky; top: var(--header-height); height: calc(100vh - var(--header-height)); overflow: hidden; background: #dff4ef; }
.map-panel iframe { width: 100%; height: 100%; border: 0; }
.map-fallback { display: flex; height: 100%; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.stores-intro { margin: 0 0 24px; max-width: 42ch; }
.store-hours { font-weight: 600; }
.map-overlay-card {
	position: absolute;
	left: 28px;
	bottom: 28px;
	width: min(340px, calc(100% - 56px));
	padding: 24px;
	border-radius: 20px;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(16px);
	box-shadow: var(--shadow);
}
.map-overlay-card .eyebrow { margin-bottom: 6px; }
.map-overlay-card strong { display: block; margin-bottom: 6px; font-size: 1.2rem; }
.map-overlay-card p { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }
.map-overlay-card .button { width: 100%; }

.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 20px 0 70px; }
.benefit-card { padding: 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.benefit-card .icon { width: 34px; height: 34px; margin-bottom: 18px; color: var(--primary-dark); }
.benefit-card h2 { margin: 0 0 10px; font-size: 1.2rem; }
.benefit-card p { margin: 0; color: var(--muted); }
.member-cta-grid { margin-top: 20px; }
.contact-grid { margin: 0; }
.contact-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: transparent; box-shadow: none; }

/* ACF page builder */
.builder-section { position: relative; }
.hero-frame-no-image { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.hero-frame-no-image .hero-overlay { background: transparent; }
.builder-text-image { padding: 90px 0 110px; }
.builder-text-image .image-right .recommendation-image { order: 2; }
.builder-text-image .image-right .recommendation-copy { order: 1; }
.builder-text-image .recommendation-copy .button-row { margin-top: 30px; }
.builder-rich-text { color: var(--muted); font-size: 1.05rem; }
.builder-rich-text > :first-child { margin-top: 0; }
.builder-rich-text > :last-child { margin-bottom: 0; }
.builder-rich-text a { color: var(--primary-dark); text-decoration: underline; }
.builder-intro { max-width: 720px; margin: 20px auto 0; }
.builder-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 22px;
}
.builder-card { display: block; transition: transform .2s ease, box-shadow .2s ease; }
.builder-card:hover { transform: translateY(-4px); box-shadow: 0 18px 32px rgba(23, 28, 31, .1); }
.builder-card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.builder-rich-section { padding: 90px 0; }
.builder-rich-section .section-title { margin-bottom: 30px; }
.builder-bg-light { background: var(--surface-low); }
.builder-bg-white { background: var(--white); }
.builder-bg-blue { background: var(--primary); color: var(--white); }
.builder-bg-blue .eyebrow, .builder-bg-blue .builder-rich-text { color: rgba(255,255,255,.88); }
.builder-bg-blue .builder-rich-text a { color: var(--white); }
.builder-cta { padding: 70px 0; }
.builder-cta-inner { grid-template-columns: 1fr auto; }
.builder-cta-inner > .button { position: relative; white-space: nowrap; }

/* Footer */
.site-footer { padding: 80px 0 35px; background: var(--white); }
.footer-main { display: grid; grid-template-columns: 260px 1fr 180px; align-items: center; gap: 30px; }
.footer-brand p { margin: 10px 0 0; color: #8a969d; font-size: .75rem; }
.footer-brand .brand { padding: 0; border-radius: 0; background: transparent; color: var(--white); font-size: 1rem; }
.footer-brand .brand-image { height: 42px; }
.footer-nav { justify-self: center; }
.footer-nav a { color: #7f8c95; font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.footer-nav a:hover { color: var(--primary-dark); }
.footer-contact { justify-self: end; color: var(--primary-dark); font-size: .88rem; font-weight: 700; }
.footer-legal { margin-top: 50px; color: #bac4ca; font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-align: center; text-transform: uppercase; }

@media (max-width: 1100px) {
	.header-inner { grid-template-columns: 1fr auto; }
	.primary-nav {
		position: fixed;
		inset: var(--header-height) 0 auto;
		display: none;
		padding: 18px 24px 28px;
		background: var(--primary-dark);
		max-height: calc(100vh - var(--header-height));
		overflow-y: auto;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav a { padding: 13px 0; border: 0; }
	.primary-nav .mega-panel {
		position: static;
		display: none;
		border: 0;
		box-shadow: none;
		background: transparent;
		backdrop-filter: none;
	}
	.primary-nav .has-mega.is-mega-open > .mega-panel { display: block; }
	.primary-nav .has-mega:focus-within > .mega-panel { display: none; }
	.primary-nav .has-mega.is-mega-open:focus-within > .mega-panel { display: block; }
	.primary-nav .mega-panel .container { width: 100%; padding: 0; }
	.primary-nav .mega-columns {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0 0 8px 18px;
	}
	.primary-nav .mega-columns > li {
		flex: 1 1 auto;
		max-width: none;
	}
	.primary-nav .mega-columns > li > a {
		padding: 9px 0 6px;
		border: 0;
		font-size: .82rem;
	}
	.primary-nav .mega-sub { padding: 0 0 0 14px; }
	.primary-nav .mega-sub a { padding: 7px 0; font-size: .78rem; }
	.primary-nav .sub-menu { position: static; display: block; padding: 0 0 0 18px; background: transparent; box-shadow: none; }
	.primary-nav .sub-menu a { padding: 9px 0; font-size: .82rem; }
	.menu-toggle { display: inline-flex; }
	.header-actions { grid-column: 2; grid-row: 1; }
	.leaflet-grid { grid-template-columns: 1fr 1fr; }
	.leaflet-card:last-child { grid-column: 1 / -1; }
	.world-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-main { grid-template-columns: 1fr; text-align: center; }
	.footer-brand, .footer-nav, .footer-contact { justify-self: center; }
	.footer-brand .brand, .footer-brand .custom-logo-link { margin-inline: auto; }
	.support-grid { gap: 45px; }
}

@media (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
	.container { width: min(calc(100% - 32px), var(--container)); }
	.header-inner { min-height: 72px; }
	.header-actions .user-link { display: none; }
	.hero { padding-top: 16px; }
	.hero-frame { min-height: 610px; border-radius: 22px; }
	.hero-overlay { align-items: end; padding: 35px 26px 55px; background: linear-gradient(0deg, rgba(0,0,0,.78), rgba(0,0,0,.08) 85%); }
	.hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
	.page-hero h1, .member-hero h1, .support-grid h1 { font-size: clamp(2.3rem, 9vw, 3rem); }
	.section-heading { align-items: start; }
	.leaflet-grid, .member-card, .recommendation-grid, .newsletter, .member-hero, .member-login-grid, .support-grid, .benefits-grid { grid-template-columns: 1fr; }
	.map-overlay-card { left: 16px; right: 16px; bottom: 16px; width: auto; }
	.leaflet-card:last-child { grid-column: auto; }
	.member-card { gap: 45px; }
	.member-card::after { inset: 58% 0 0; transform: skewY(-7deg); }
	.membership-card { max-width: 400px; }
	.recommendation-image { margin-right: 20px; }
	.origin-badge { right: -20px; padding: 23px; }
	.world-grid { gap: 14px; }
	.world-card { min-height: 145px; padding: 18px 10px; }
	.newsletter { gap: 35px; }
	.recipe-grid { grid-template-columns: 1fr 1fr; gap: 45px 20px; }
	.member-hero { gap: 40px; }
	.member-hero img { max-height: 480px; }
	.stores-layout { grid-template-columns: 1fr; }
	.stores-sidebar { max-height: none; overflow: visible; }
	.map-panel { position: relative; top: 0; height: 520px; }
	.footer-nav ul { flex-wrap: wrap; justify-content: center; gap: 18px 26px; }
}

@media (max-width: 520px) {
	.brand { font-size: 1.05rem; }
	.icon-button { width: 39px; height: 39px; }
	.hero-frame { min-height: 560px; }
	.hero-overlay { padding: 30px 22px 42px; }
	.hero h1 { margin: 17px 0; }
	.leaflets { padding-bottom: 55px; }
	.section-heading { display: block; }
	.section-heading .text-link { margin-top: 18px; }
	.leaflet-grid, .recipe-grid { grid-template-columns: 1fr; }
	.member-card { padding: 35px 24px; border-radius: 28px; }
	.member-copy h2 { font-size: 2.4rem; }
	.membership-card { padding: 25px; }
	.membership-card small { margin-top: 45px; }
	.recommendation { padding-top: 35px; }
	.recommendation-copy h2 { font-size: 2.4rem; }
	.price-row { align-items: start; flex-direction: column; }
	.world { padding: 70px 0; }
	.world-card { min-height: 130px; }
	.world-card .icon { width: 35px; height: 35px; }
	.newsletter-wrap { padding: 60px 0; }
	.newsletter { padding: 35px 22px; border-radius: 28px; }
	.newsletter-form { flex-direction: column; border-radius: 22px; background: transparent; box-shadow: none; }
	.newsletter-form input { border-radius: 999px; background: var(--white); }
	.page-hero { padding-top: 60px; }
	.member-page { padding-top: 50px; }
	.support-hero { padding-top: 55px; }
	.support-grid img { border-radius: 28px; }
	.stores-sidebar { padding-inline: 16px; }
	.store-card-head { display: block; }
	.store-label { display: inline-block; margin-bottom: 8px; }
	.site-footer { padding-top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

