/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html, body {
	margin: 0;
	padding: 0;
}

body {
	background: var(--color-bg);
	overflow-x: hidden;
	transition: background-color 0.2s ease, color 0.2s ease;
}

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

button, input, textarea, select {
	font-family: inherit;
}

button {
	cursor: pointer;
}

/* Hide scrollbars on horizontally-scrolling rails, keep them keyboard/functionally scrollable */
.mv-scroll-x {
	display: flex;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.mv-scroll-x::-webkit-scrollbar {
	display: none;
}

/* ==========================================================================
   Site shell — mobile-first, matches prototype's 430px single column,
   then opens up to a contained magazine layout on larger screens.
   ========================================================================== */

.mv-site {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.mv-section {
	padding: 24px var(--gutter) 0;
}

.mv-section--flush-top {
	padding-top: 0;
}

/* Two-column layout: main content + desktop sidebar */
.mv-layout {
	display: block;
}

.mv-main-column {
	max-width: var(--container-max);
	margin: 0 auto;
}

@media (min-width: 1024px) {
	.mv-has-sidebar .mv-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 40px;
		align-items: start;
		max-width: var(--container-max);
		margin: 0 auto;
		padding: 0 var(--gutter);
	}

	.mv-has-sidebar .mv-main-column {
		max-width: 640px;
	}

	.mv-sidebar {
		position: sticky;
		top: calc(var(--header-h) + 20px);
	}
}

.mv-sidebar {
	display: none;
}

@media (min-width: 1024px) {
	.mv-sidebar {
		display: block;
	}
}

/* ==========================================================================
   Grids
   ========================================================================== */

.mv-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

@media (min-width: 700px) {
	.mv-grid-2 {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

@media (min-width: 1024px) {
	.mv-no-sidebar .mv-grid-2 {
		grid-template-columns: repeat(4, 1fr);
	}
}

.mv-cat-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

@media (min-width: 700px) {
	.mv-cat-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.mv-cat-grid {
		grid-template-columns: repeat(6, 1fr);
	}
}

.mv-footer-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px 16px;
}

@media (min-width: 700px) {
	.mv-footer-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ==========================================================================
   Section header row ("Explore" / "See All →")
   ========================================================================== */

.mv-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	gap: 12px;
}

.mv-section-head h2 {
	margin-bottom: 2px;
}

.mv-see-all {
	font-size: 12px;
	font-weight: 700;
	color: var(--color-accent);
	white-space: nowrap;
	flex-shrink: 0;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.mv-divider {
	height: 1px;
	background: var(--color-border-soft);
	margin: 24px var(--gutter) 0;
}

.mv-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
}

.mv-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	background: var(--color-surface);
	color: var(--color-text);
	padding: 12px 18px;
	border-radius: var(--radius-sm);
	font-weight: 700;
}

.mv-skip-link:focus {
	left: 12px;
	top: 12px;
}
