/**
 * 0.5 Base - a barely-warm off-white instead of flat #fff, so white cards
 * and photos have something to sit on instead of blending into the page.
 */

body {
	background: #faf9f6;
}

/**
 * 0.6 Breadcrumbs - shown above the page title on every non-front page.
 */

.mekom-breadcrumbs {
	padding-top: 20px;
}

.mekom-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 12px;
	color: #9a9a9a;
}

.mekom-breadcrumbs li {
	display: flex;
	align-items: center;
	gap: 6px;
}

.mekom-breadcrumbs li:not(:last-child)::after {
	content: "/";
	color: #d0cabf;
}

.mekom-breadcrumbs a {
	color: #6b6b6b;
	text-decoration: none;
}

.mekom-breadcrumbs a:hover,
.mekom-breadcrumbs a:focus-visible {
	color: #d81f1f;
	text-decoration: underline;
}

.mekom-breadcrumbs [aria-current="page"] {
	color: #6b6b6b;
}

/**
 * 1.0 Accessibility helpers
 */

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

.skip-link {
	top: -100px;
	left: 0;
	z-index: 100000;
	position: absolute;
	padding: 12px 16px;
	background: #1a1a1a;
	color: #fff;
	text-decoration: none;
}

.skip-link:focus {
	top: 0;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
}

/**
 * 1.5 Container - shared width constraint used by the header AND by page
 * content / blocks (catalog grid, etc.), so nothing spans the raw viewport
 * width with no sensible maximum.
 */

.container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 16px;
}

/**
 * 2.0 Site header
 */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: #fff;
	border-bottom: 1px solid #e3e3e3;
}

/**
 * 2.1 Top row: logo (centered) / icons (mobile) / search
 *
 * Mobile is a 2-column, 2-row grid: logo + icon stack share row 1, the
 * collapsible search panel spans row 2 under them. Desktop collapses back
 * to a single row with the search form always visible on the right.
 */

.header-top {
	display: grid;
	grid-template-columns: 1fr 40px;
	grid-template-rows: auto auto;
	align-items: center;
	gap: 8px 16px;
}

.site-logo {
	grid-column: 1;
	grid-row: 1;
	text-align: center;
}

.header-icons {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.site-logo a {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.site-logo img {
	display: block;
	height: 72px;
	width: auto;
	margin: 0 auto;
}

@media ( min-width: 768px ) {
	.header-top {
		grid-template-columns: 1fr auto 1fr;
		grid-template-rows: auto;
	}

	.site-logo {
		grid-column: 2;
		grid-row: 1;
	}

	/*
	 * The burger toggle stays visible (and functional) all the way up to
	 * the 1280px breakpoint where the full nav bar takes over - it only
	 * moves from the mobile 2-column layout into its own slot here, it
	 * must NOT disappear at 768px while the desktop nav still doesn't
	 * show until 1280px (that gap left tablets with no way to open the
	 * menu at all).
	 */
	.header-icons {
		grid-column: 1;
		grid-row: 1;
		flex-direction: row;
		justify-self: start;
	}

	.header-search {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
	}

	.site-logo img {
		height: 96px;
	}
}

@media ( min-width: 1280px ) {
	.header-icons {
		display: none;
	}
}

/**
 * 2.2 Search
 */

.header-search {
	grid-column: 1 / -1;
	grid-row: 2;
	display: none;
}

.header-search.is-open {
	display: block;
}

@media ( min-width: 768px ) {
	.header-search {
		display: flex;
		justify-self: end;
	}

	.header-search.is-open {
		display: flex;
	}
}

.search-form {
	display: flex;
	align-items: center;
	background: #f4f4f4;
	border: 1px solid #e3e3e3;
}

@media ( max-width: 767px ) {
	.search-form {
		width: 100%;
	}

	.search-field {
		width: auto;
		flex: 1;
	}
}

.search-field {
	width: 160px;
	padding: 8px 10px;
	border: 0;
	background: transparent;
	font-size: 13px;
	outline: none;
}

.search-submit {
	display: flex;
	padding: 0 10px;
	border: 0;
	background: transparent;
	color: #6b6b6b;
	cursor: pointer;
}

.search-submit:hover,
.search-submit:focus-visible {
	color: #d81f1f;
}

/**
 * 2.3 Primary navigation - full-width row under the logo/search row
 */

.main-navigation {
	display: none;
}

.main-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	column-gap: 24px;
	row-gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.main-menu a {
	color: inherit;
	text-decoration: none;
}

.main-menu a:hover,
.main-menu a:focus-visible {
	color: #d81f1f;
}

.main-menu .current-menu-item > a {
	color: #d81f1f;
}

@media ( min-width: 1280px ) {
	.main-navigation {
		display: block;
	}
}

/**
 * 2.4 Header icon buttons - search toggle + burger, same size, stacked
 */

.search-toggle,
.menu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #1a1a1a;
	cursor: pointer;
}

.search-toggle:hover,
.search-toggle:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible {
	color: #d81f1f;
	outline: 2px solid #d81f1f;
	outline-offset: 2px;
}

.menu-toggle {
	flex-direction: column;
	gap: 5px;
}

.menu-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
}

.mobile-menu {
	display: none;
	border-top: 1px solid #e3e3e3;
	padding: 8px 16px;
}

.mobile-menu.is-open {
	display: block;
}

.mobile-menu-list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mobile-menu-list a {
	display: block;
	padding: 10px 0;
	border-bottom: 1px solid #e3e3e3;
	color: inherit;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 13px;
}

.mobile-menu-list li:last-child a {
	border-bottom: 0;
}

@media ( min-width: 1280px ) {
	.menu-toggle {
		display: none;
	}

	.mobile-menu {
		display: none !important;
	}
}
