/* =====================================================================
   Morbi Master — main stylesheet
   Mobile-first. Gujarati-first typography. CSS custom property tokens.
   ===================================================================== */

/* ---- Fonts (front end; theme.json registers the same faces for the editor) ---- */
@font-face {
	font-family: "Mukta Vaani";
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/mukta-vaani-700.woff2") format("woff2");
}
@font-face {
	font-family: "Mukta Vaani";
	font-weight: 800;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/mukta-vaani-800.woff2") format("woff2");
}
@font-face {
	font-family: "Noto Sans Gujarati";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/noto-sans-gujarati-400.woff2") format("woff2");
}
@font-face {
	font-family: "Noto Sans Gujarati";
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/noto-sans-gujarati-600.woff2") format("woff2");
}

/* ---- Tokens ---- */
:root {
	--mm-primary: #b01e2e;
	--mm-primary-dark: #8c1624;
	--mm-accent: #e8a020;
	--mm-ink: #1a1a2b;
	--mm-text: #2b2b3a;
	--mm-muted: #6b6b7a;
	--mm-bg: #fcfbf8;
	--mm-surface: #ffffff;
	--mm-border: #e6e2da;
	--mm-on-primary: #ffffff;

	--mm-town-morbi: #b01e2e;
	--mm-town-wankaner: #0e7c7b;
	--mm-town-tankara: #3d5a99;
	--mm-town-maliya: #2e7d32;
	--mm-town-halvad: #6a4fa3;
	--mm-town-default: #41414f;

	--mm-font-heading: "Mukta Vaani", "Noto Sans Gujarati", "Shruti", sans-serif;
	--mm-font-body: "Noto Sans Gujarati", "Shruti", sans-serif;

	--mm-space-1: 4px;
	--mm-space-2: 8px;
	--mm-space-3: 12px;
	--mm-space-4: 16px;
	--mm-space-5: 24px;
	--mm-space-6: 32px;
	--mm-space-7: 48px;
	--mm-space-8: 64px;

	--mm-radius: 16px;
	--mm-radius-sm: 10px;
	--mm-shadow: 0 2px 6px rgb(26 26 43 / 0.05), 0 10px 30px rgb(26 26 43 / 0.07);
	--mm-shadow-hover: 0 6px 14px rgb(26 26 43 / 0.1), 0 18px 44px rgb(26 26 43 / 0.12);
	--mm-container: 1200px;
}

[data-theme="dark"] {
	--mm-primary: #e05565;
	--mm-primary-dark: #c43c4c;
	--mm-accent: #f0b14a;
	--mm-ink: #f2f2f7;
	--mm-text: #d8d8e2;
	--mm-muted: #9a9aab;
	--mm-bg: #14141c;
	--mm-surface: #1e1e29;
	--mm-border: #32323f;
	--mm-shadow: 0 1px 3px rgb(0 0 0 / 0.4);
}

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

body {
	margin: 0;
	background: var(--mm-bg);
	color: var(--mm-text);
	font-family: var(--mm-font-body);
	font-size: 1.0625rem;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration: none;
}

a:hover,
a:focus-visible {
	color: var(--mm-primary);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--mm-font-heading);
	font-weight: 700;
	line-height: 1.35;
	color: var(--mm-ink);
	margin: 0 0 var(--mm-space-3);
	overflow-wrap: break-word;
}

:focus-visible {
	outline: 2px solid var(--mm-primary);
	outline-offset: 2px;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}

.mm-skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	z-index: 100;
	left: var(--mm-space-3);
	top: var(--mm-space-3);
	background: var(--mm-surface);
	color: var(--mm-primary);
	padding: var(--mm-space-2) var(--mm-space-4);
	border-radius: var(--mm-radius);
	box-shadow: var(--mm-shadow);
}

.mm-container {
	max-width: var(--mm-container);
	margin-inline: auto;
	padding-inline: var(--mm-space-4);
}

/* ---- Top bar ---- */
.mm-topbar {
	background: var(--mm-ink);
	color: #cfcfda;
	font-size: 0.8125rem;
}

[data-theme="dark"] .mm-topbar {
	background: #0d0d13;
}

.mm-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--mm-space-4);
	min-height: 36px;
}

.mm-topbar__actions {
	display: flex;
	align-items: center;
	gap: var(--mm-space-4);
}

.mm-social {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-space-3);
	list-style: none;
	margin: 0;
	padding: 0;
}

.mm-social--top {
	display: none;
}

@media (min-width: 768px) {
	.mm-social--top {
		display: flex;
	}
}

.mm-dark-toggle {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	padding: var(--mm-space-2);
	display: inline-flex;
}

[data-theme="dark"] .mm-dark-toggle__moon,
:root:not([data-theme="dark"]) .mm-dark-toggle__sun {
	display: none;
}

/* ---- Masthead ---- */
.mm-masthead {
	background: var(--mm-surface);
	border-bottom: 1px solid var(--mm-border);
}

.mm-masthead__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: var(--mm-space-4);
}

.mm-branding__title {
	font-family: var(--mm-font-heading);
	font-weight: 800;
	font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
	color: var(--mm-primary);
	line-height: 1.2;
}

.mm-branding__tagline {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--mm-muted);
}

.custom-logo {
	max-height: 72px;
	width: auto;
}

/* ---- Nav: modern pill chips on a clean surface, sticky on scroll ---- */
.mm-nav {
	position: sticky;
	top: 0;
	z-index: 40;
	background: color-mix(in srgb, var(--mm-surface) 88%, transparent);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--mm-border);
}

/* Clear the WP admin bar when logged in */
.admin-bar .mm-nav {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .mm-nav {
		top: 46px;
	}
}

.mm-nav__list {
	list-style: none;
	margin: 0;
	padding: var(--mm-space-2) 0;
	display: flex;
	gap: var(--mm-space-2);
}

.mm-nav__list a {
	display: block;
	color: var(--mm-ink);
	font-family: var(--mm-font-heading);
	font-weight: 700;
	font-size: 1rem;
	padding: 8px 18px;
	border-radius: 999px;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.15s, color 0.15s;
}

.mm-nav__list a:hover,
.mm-nav__list a:focus-visible {
	background: var(--mm-bg);
	color: var(--mm-primary);
}

.mm-nav__list .current-menu-item > a,
.mm-nav__list .current-cat > a,
.mm-nav__list .current_page_item > a {
	background: var(--mm-primary);
	color: var(--mm-on-primary);
}

/* Mobile: app-style swipeable category bar */
@media (max-width: 767px) {
	.mm-nav {
		box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
	}

	.mm-nav .mm-container {
		padding-inline: 0;
	}

	.mm-nav__list {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-inline: var(--mm-space-2);
	}

	.mm-nav__list::-webkit-scrollbar {
		display: none;
	}

	.mm-nav__list a {
		min-height: 48px;
		display: flex;
		align-items: center;
	}
}

@media (min-width: 768px) {
	.mm-nav__list {
		flex-wrap: wrap;
	}
}

/* ---- Breaking ticker ---- */
.mm-ticker {
	display: flex;
	align-items: stretch;
	background: var(--mm-surface);
	border-bottom: 1px solid var(--mm-border);
	overflow: hidden;
}

.mm-ticker__label {
	flex: none;
	display: flex;
	align-items: center;
	background: var(--mm-primary);
	color: var(--mm-on-primary);
	font-family: var(--mm-font-heading);
	font-weight: 800;
	font-size: 0.875rem;
	padding-inline: var(--mm-space-4);
	position: relative;
	z-index: 1;
}

.mm-ticker__label::after {
	content: "";
	position: absolute;
	inset-block: 0;
	right: -10px;
	border-block: 21px solid transparent;
	border-left: 10px solid var(--mm-primary);
	border-block-width: 50%;
}

.mm-ticker__viewport {
	flex: 1;
	overflow: hidden;
	display: flex;
	align-items: center;
	/* Keep headlines clear of the label arrow and fade them at both edges */
	padding-inline-start: 22px;
	mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 28px), transparent 100%);
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 28px), transparent 100%);
}

.mm-ticker__belt {
	display: flex;
	flex: none;
	min-width: 200%;
	animation: mm-scroll var(--mm-ticker-duration, 40s) linear infinite;
}

.mm-ticker__belt:hover,
.mm-ticker__belt:focus-within {
	animation-play-state: paused;
}

.mm-ticker__track {
	display: flex;
	flex: none;
	min-width: 50%;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Duplicated track (aria-hidden in markup) shouldn't be selectable */
.mm-ticker__track[aria-hidden="true"] {
	user-select: none;
}

.mm-ticker__track li {
	flex: none;
	padding: var(--mm-space-2) var(--mm-space-5);
	white-space: nowrap;
	position: relative;
	font-weight: 600;
	font-size: 0.9375rem;
}

.mm-ticker__track li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--mm-accent);
	transform: translateY(-50%);
}

@keyframes mm-scroll {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mm-ticker__belt {
		animation: none;
	}

	.mm-ticker__track + .mm-ticker__track {
		display: none;
	}
}

/* ---- Layout ---- */
.mm-main {
	padding-block: var(--mm-space-5) var(--mm-space-7);
}

.mm-layout {
	display: grid;
	gap: var(--mm-space-6);
}

@media (min-width: 1024px) {
	.mm-layout {
		grid-template-columns: minmax(0, 1fr) 320px;
	}

	.mm-layout--single-col {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---- Cards ---- */
.mm-card {
	background: var(--mm-surface);
	border-radius: var(--mm-radius);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mm-card__media {
	display: block;
	overflow: hidden;
}

.mm-card__media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.mm-card:hover .mm-card__media img {
	transform: scale(1.04);
}

.mm-card__body {
	padding: var(--mm-space-3) 0;
}

.mm-card__title {
	margin: 0 0 var(--mm-space-1);
	font-size: 1.05rem;
}

.mm-card__title a:hover {
	color: var(--mm-primary);
}

.mm-card__excerpt {
	margin: var(--mm-space-2) 0;
	color: var(--mm-muted);
	font-size: 0.9375rem;
}

/* Lead story: magazine-style overlay — headline on a gradient scrim */
.mm-card--lead {
	position: relative;
	box-shadow: var(--mm-shadow);
}

.mm-card--lead:hover {
	transform: translateY(-3px);
	box-shadow: var(--mm-shadow-hover);
}

.mm-card--lead .mm-card__media img,
.mm-card--lead .mm-card__media--placeholder {
	aspect-ratio: 16 / 10;
}

.mm-card--lead .mm-card__body {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: var(--mm-space-6) var(--mm-space-5) var(--mm-space-4);
	background: linear-gradient(to top, rgb(10 10 18 / 0.92) 0%, rgb(10 10 18 / 0.55) 60%, transparent 100%);
}

.mm-card--lead .mm-card__title {
	font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2rem);
	line-height: 1.3;
}

.mm-card--lead .mm-card__title a {
	color: #fff;
}

.mm-card--lead .mm-card__excerpt {
	color: rgb(255 255 255 / 0.8);
	display: none;
}

.mm-card--lead .mm-meta {
	color: rgb(255 255 255 / 0.75);
}

@media (min-width: 600px) {
	.mm-card--lead .mm-card__excerpt {
		display: block;
	}
}

.mm-card--medium {
	box-shadow: var(--mm-shadow);
}

.mm-card--medium:hover {
	transform: translateY(-3px);
	box-shadow: var(--mm-shadow-hover);
}

.mm-card--medium .mm-card__body {
	padding: var(--mm-space-3) var(--mm-space-4) var(--mm-space-4);
}

.mm-card--list {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: var(--mm-space-3);
	background: none;
	border-radius: 0;
	align-items: start;
}

.mm-card--list .mm-card__media {
	border-radius: var(--mm-radius-sm);
}

.mm-card--list .mm-card__media img {
	aspect-ratio: 16 / 10;
	border-radius: var(--mm-radius-sm);
}

.mm-card--list .mm-card__body {
	padding: 0;
}

.mm-card--list .mm-card__title {
	font-size: 0.95rem;
	line-height: 1.45;
}

.mm-card--medium .mm-card__title {
	font-size: 1.2rem;
}

/* ---- Meta / badges ---- */
.mm-meta {
	display: flex;
	align-items: center;
	gap: var(--mm-space-2);
	font-size: 0.78rem;
	color: var(--mm-muted);
}

.mm-meta__time {
	white-space: nowrap;
}

/* Posts without a featured image get a branded placeholder instead of empty space */
.mm-card__media--placeholder {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--mm-primary) 0%, var(--mm-primary-dark) 60%, var(--mm-ink) 100%);
}

.mm-card__media--placeholder span {
	font-family: var(--mm-font-heading);
	font-weight: 800;
	font-size: clamp(2rem, 6vw, 3.5rem);
	color: rgb(255 255 255 / 0.35);
	user-select: none;
}

.mm-card--list .mm-card__media--placeholder {
	aspect-ratio: 16 / 10;
	border-radius: var(--mm-radius);
}

.mm-card--list .mm-card__media--placeholder span {
	font-size: 1.5rem;
}

.mm-badge {
	display: inline-block;
	font-family: var(--mm-font-heading);
	font-weight: 700;
	font-size: 0.72rem;
	line-height: 1;
	color: #fff;
	background: var(--mm-town-default);
	padding: 4px 8px;
	border-radius: 999px;
}

.mm-badge:hover,
.mm-badge:focus-visible {
	color: #fff;
	opacity: 0.9;
}

.mm-town--morbi .mm-badge,
.mm-badge.mm-town--morbi { background: var(--mm-town-morbi); }
.mm-town--wankaner .mm-badge,
.mm-badge.mm-town--wankaner { background: var(--mm-town-wankaner); }
.mm-town--tankara .mm-badge,
.mm-badge.mm-town--tankara { background: var(--mm-town-tankara); }
.mm-town--maliya .mm-badge,
.mm-badge.mm-town--maliya { background: var(--mm-town-maliya); }
.mm-town--halvad .mm-badge,
.mm-badge.mm-town--halvad { background: var(--mm-town-halvad); }

/* ---- Hero ---- */
.mm-hero {
	display: grid;
	gap: var(--mm-space-5);
	align-items: start;
	margin-bottom: var(--mm-space-7);
}

.mm-hero__secondary {
	display: grid;
	gap: var(--mm-space-4);
	align-content: start;
}

@media (min-width: 768px) {
	.mm-hero {
		grid-template-columns: 2fr 1fr;
	}
}

/* ---- Homepage sections ---- */
.mm-section {
	margin-bottom: var(--mm-space-7);
}

/* Modern section header: rounded accent bar + bold title, pill "more" link */
.mm-section {
	--mm-section-accent: var(--mm-town-default);
}

.mm-section--town.mm-town--morbi { --mm-section-accent: var(--mm-town-morbi); }
.mm-section--town.mm-town--wankaner { --mm-section-accent: var(--mm-town-wankaner); }
.mm-section--town.mm-town--tankara { --mm-section-accent: var(--mm-town-tankara); }
.mm-section--town.mm-town--maliya { --mm-section-accent: var(--mm-town-maliya); }
.mm-section--town.mm-town--halvad { --mm-section-accent: var(--mm-town-halvad); }

.mm-section__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--mm-space-4);
	font-size: 1.45rem;
	margin-bottom: var(--mm-space-4);
}

.mm-section__title span {
	display: inline-flex;
	align-items: center;
	gap: var(--mm-space-3);
}

.mm-section__title span::before {
	content: "";
	width: 7px;
	height: 1.3em;
	border-radius: 999px;
	background: var(--mm-section-accent);
}

.mm-section__more {
	font-family: var(--mm-font-body);
	font-weight: 600;
	font-size: 0.84rem;
	color: var(--mm-section-accent);
	background: var(--mm-surface);
	border: 1px solid var(--mm-border);
	border-radius: 999px;
	padding: 6px 16px;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}

.mm-section__more:hover,
.mm-section__more:focus-visible {
	background: var(--mm-section-accent);
	color: #fff;
}

.mm-section__grid {
	display: grid;
	gap: var(--mm-space-5);
	align-items: start;
}

.mm-section__list {
	display: grid;
	gap: var(--mm-space-4);
	align-content: start;
}

@media (min-width: 768px) {
	.mm-section__grid {
		grid-template-columns: 1.2fr 1fr;
	}
}

/* ---- Trending ---- */
.mm-trending {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--mm-space-4);
}

@media (min-width: 768px) {
	.mm-trending {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	}
}

.mm-trending__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--mm-space-3);
	align-items: start;
}

.mm-trending__num,
.mm-trending-list__num {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: var(--mm-radius-sm);
	background: color-mix(in srgb, var(--mm-accent) 16%, transparent);
	font-family: var(--mm-font-heading);
	font-weight: 800;
	font-size: 1.4rem;
	line-height: 1;
	color: var(--mm-accent);
}

.mm-trending__link {
	font-family: var(--mm-font-heading);
	font-weight: 700;
	line-height: 1.4;
}

.mm-trending-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--mm-space-3);
}

.mm-trending-list li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--mm-space-3);
	align-items: start;
}

.mm-trending-list__num {
	width: 34px;
	height: 34px;
	font-size: 1.05rem;
}

/* ---- Video ---- */
.mm-section--video {
	background: var(--mm-ink);
	border-radius: var(--mm-radius);
	padding: var(--mm-space-5);
}

.mm-section--video .mm-section__title {
	color: #fff;
	border-color: var(--mm-accent);
}

.mm-section--video .mm-section__title span {
	color: #fff;
}

.mm-video-grid {
	display: grid;
	gap: var(--mm-space-4);
}

@media (min-width: 600px) {
	.mm-video-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.mm-video-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.mm-video-card__title {
	font-size: 0.95rem;
	margin-top: var(--mm-space-2);
}

.mm-video-card__title a {
	color: #e8e8f0;
}

.mm-yt {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	border-radius: var(--mm-radius);
	overflow: hidden;
	cursor: pointer;
	background: #000;
}

.mm-yt img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.85;
}

.mm-yt__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
}

.mm-yt__play svg {
	filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.4));
	transition: transform 0.2s;
}

.mm-yt:hover .mm-yt__play svg {
	transform: scale(1.1);
}

.mm-yt--playing iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.mm-yt-wrap {
	margin: var(--mm-space-5) 0;
}

/* ---- Article ---- */
.mm-article {
	background: var(--mm-surface);
	border-radius: var(--mm-radius);
	padding: var(--mm-space-5);
	box-shadow: var(--mm-shadow);
}

.mm-article__title {
	font-size: clamp(1.5rem, 1.2rem + 1.8vw, 2.25rem);
	margin-top: var(--mm-space-3);
}

.mm-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-space-3);
	color: var(--mm-muted);
	font-size: 0.875rem;
	margin-bottom: var(--mm-space-4);
}

.mm-article__thumb {
	margin: var(--mm-space-4) calc(-1 * var(--mm-space-5));
}

.mm-article__thumb figcaption {
	font-size: 0.8125rem;
	color: var(--mm-muted);
	padding: var(--mm-space-2) var(--mm-space-5) 0;
}

.mm-entry-content {
	font-size: 1.125rem;
	max-width: 720px;
}

.mm-entry-content > * {
	margin-block: var(--mm-space-4);
}

.mm-entry-content a {
	color: var(--mm-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mm-pullquote,
.mm-entry-content blockquote {
	border-left: 4px solid var(--mm-accent);
	margin-inline: 0;
	padding: var(--mm-space-3) var(--mm-space-4);
	background: var(--mm-bg);
	font-family: var(--mm-font-heading);
	font-size: 1.2em;
}

.mm-highlight-box {
	border: 1px solid var(--mm-border);
	border-top: 4px solid var(--mm-primary);
	border-radius: var(--mm-radius);
	padding: var(--mm-space-4);
	background: var(--mm-bg);
}

.mm-article__footer {
	border-top: 1px solid var(--mm-border);
	margin-top: var(--mm-space-5);
	padding-top: var(--mm-space-4);
}

.mm-article__tags a {
	display: inline-block;
	font-size: 0.8125rem;
	background: var(--mm-bg);
	border: 1px solid var(--mm-border);
	border-radius: 999px;
	padding: 3px 12px;
	margin: 0 var(--mm-space-1) var(--mm-space-2) 0;
}

.mm-related {
	margin-top: var(--mm-space-6);
}

.mm-related__grid {
	display: grid;
	gap: var(--mm-space-4);
}

@media (min-width: 600px) {
	.mm-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---- Share ---- */
.mm-share {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-space-2);
	margin-block: var(--mm-space-4);
}

.mm-share__btn {
	display: inline-flex;
	align-items: center;
	gap: var(--mm-space-2);
	font-size: 0.8125rem;
	font-weight: 600;
	border: 1px solid var(--mm-border);
	border-radius: 999px;
	padding: 7px 14px;
	background: var(--mm-surface);
	color: var(--mm-text);
	cursor: pointer;
}

.mm-share__btn--whatsapp {
	background: #1faa53;
	border-color: #1faa53;
	color: #fff;
	font-size: 0.9rem;
	padding: 9px 18px;
}

.mm-share__btn--whatsapp:hover,
.mm-share__btn--whatsapp:focus-visible {
	background: #178a43;
	color: #fff;
}

.mm-share__btn--copy.is-copied {
	border-color: var(--mm-accent);
	color: var(--mm-accent);
}

/* Mobile article share: floating WhatsApp button above the app bar */
.mm-share--sticky {
	display: none;
}

@media (max-width: 767px) {
	.mm-share--sticky {
		display: block;
		position: fixed;
		right: var(--mm-space-4);
		bottom: calc(64px + env(safe-area-inset-bottom) + var(--mm-space-3));
		z-index: 50;
		margin: 0;
	}

	.mm-share--sticky .mm-share__btn {
		display: none;
	}

	.mm-share--sticky .mm-share__btn--whatsapp {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 56px;
		height: 56px;
		padding: 0;
		border-radius: 50%;
		box-shadow: 0 4px 16px rgb(0 0 0 / 0.3);
	}

	.mm-share--sticky .mm-share__btn--whatsapp svg {
		width: 26px;
		height: 26px;
	}

	.mm-share--sticky .mm-share__btn--whatsapp span {
		display: none;
	}
}

/* ---- Mobile bottom app bar ---- */
.mm-appbar {
	display: none;
}

@media (max-width: 767px) {
	.mm-appbar {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 60;
		height: calc(64px + env(safe-area-inset-bottom));
		padding-bottom: env(safe-area-inset-bottom);
		background: color-mix(in srgb, var(--mm-surface) 82%, transparent);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
		border-top: 1px solid var(--mm-border);
		box-shadow: 0 -2px 16px rgb(0 0 0 / 0.1);
	}

	.mm-appbar__item {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		border: 0;
		background: none;
		color: var(--mm-muted);
		font-family: var(--mm-font-body);
		font-size: 0.6875rem;
		font-weight: 600;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
		user-select: none;
	}

	.mm-appbar__item:active {
		color: var(--mm-primary);
		transform: scale(0.94);
	}

	.mm-appbar__item[aria-current="page"] {
		color: var(--mm-primary);
	}

	/* Reserve space so content never hides behind the app bar */
	body {
		padding-bottom: calc(64px + env(safe-area-inset-bottom));
	}

	.mm-footer {
		margin-bottom: 0;
	}

	/* Compact top chrome on mobile */
	.mm-topbar__inner {
		min-height: 32px;
	}

	.mm-masthead__inner {
		padding-block: var(--mm-space-3);
	}

	.custom-logo {
		max-height: 52px;
	}
}

/* ---- Archive band: gradient hero strip ---- */
.mm-archive-band {
	--mm-band: var(--mm-town-default);
	background: linear-gradient(120deg, var(--mm-band) 0%, color-mix(in srgb, var(--mm-band) 65%, #0a0a12) 100%);
	color: #fff;
	padding-block: var(--mm-space-6);
	margin-bottom: var(--mm-space-5);
}

.mm-archive-band.mm-town--morbi { --mm-band: var(--mm-town-morbi); }
.mm-archive-band.mm-town--wankaner { --mm-band: var(--mm-town-wankaner); }
.mm-archive-band.mm-town--tankara { --mm-band: var(--mm-town-tankara); }
.mm-archive-band.mm-town--maliya { --mm-band: var(--mm-town-maliya); }
.mm-archive-band.mm-town--halvad { --mm-band: var(--mm-town-halvad); }

.mm-archive-band__title {
	color: #fff;
	margin: 0;
	font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
}

.mm-archive-band__desc {
	margin-top: var(--mm-space-2);
	opacity: 0.9;
	font-size: 0.9375rem;
}

/* ---- Post lists ---- */
.mm-post-list {
	display: grid;
	gap: var(--mm-space-5);
}

@media (min-width: 600px) {
	.mm-post-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---- Pagination ---- */
.mm-pagination {
	margin-top: var(--mm-space-6);
}

.mm-pagination ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-space-2);
	margin: 0;
	padding: 0;
}

.mm-pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	text-align: center;
	padding: 7px 12px;
	border: 1px solid var(--mm-border);
	border-radius: var(--mm-radius);
	background: var(--mm-surface);
	font-weight: 600;
}

.mm-pagination .page-numbers.current {
	background: var(--mm-primary);
	border-color: var(--mm-primary);
	color: #fff;
}

/* ---- Widgets / sidebar ---- */
.mm-widget {
	background: var(--mm-surface);
	border: 1px solid var(--mm-border);
	border-radius: var(--mm-radius);
	padding: var(--mm-space-4);
	margin-bottom: var(--mm-space-5);
}

.mm-widget__title {
	font-size: 1.1rem;
	border-bottom: 2px solid var(--mm-primary);
	padding-bottom: var(--mm-space-2);
	margin-bottom: var(--mm-space-3);
}

/* ---- Ads ---- */
.mm-ad {
	text-align: center;
	margin-block: var(--mm-space-5);
	min-height: 90px;
}

.mm-ad__label {
	display: block;
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mm-muted);
	margin-bottom: var(--mm-space-1);
}

.mm-ad .mm-widget {
	border: 0;
	padding: 0;
	margin: 0;
	background: none;
}

/* ---- Search form ---- */
.mm-search-form {
	display: flex;
	gap: var(--mm-space-2);
	margin-block: var(--mm-space-4);
}

.mm-search-form__field {
	flex: 1;
	font: inherit;
	padding: 10px 14px;
	border: 1px solid var(--mm-border);
	border-radius: var(--mm-radius);
	background: var(--mm-surface);
	color: var(--mm-text);
}

.mm-search-form__submit {
	font: inherit;
	font-weight: 600;
	padding: 10px 20px;
	border: 0;
	border-radius: var(--mm-radius);
	background: var(--mm-primary);
	color: #fff;
	cursor: pointer;
}

/* ---- 404 ---- */
.mm-404 {
	text-align: center;
	padding-block: var(--mm-space-7);
}

.mm-404__code {
	font-family: var(--mm-font-heading);
	font-weight: 800;
	font-size: 5rem;
	line-height: 1;
	color: var(--mm-primary);
	margin: 0;
}

/* ---- Comments ---- */
.mm-comments {
	margin-top: var(--mm-space-6);
	background: var(--mm-surface);
	border-radius: var(--mm-radius);
	padding: var(--mm-space-5);
}

.mm-comments__list {
	list-style: none;
	padding: 0;
}

.mm-comments .comment {
	border-bottom: 1px solid var(--mm-border);
	padding-block: var(--mm-space-4);
}

.mm-comments .avatar {
	border-radius: 50%;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	font: inherit;
	padding: 10px 14px;
	border: 1px solid var(--mm-border);
	border-radius: var(--mm-radius);
	background: var(--mm-bg);
	color: var(--mm-text);
}

.comment-form .submit {
	font: inherit;
	font-weight: 600;
	padding: 10px 24px;
	border: 0;
	border-radius: var(--mm-radius);
	background: var(--mm-primary);
	color: #fff;
	cursor: pointer;
}

/* ---- Page ---- */
.mm-page {
	background: var(--mm-surface);
	border-radius: var(--mm-radius);
	padding: var(--mm-space-5);
	box-shadow: var(--mm-shadow);
}

/* ---- Footer ---- */
.mm-footer {
	background: var(--mm-ink);
	color: #b9b9c8;
	margin-top: var(--mm-space-8);
	padding-block: var(--mm-space-6) var(--mm-space-5);
	font-size: 0.9rem;
}

[data-theme="dark"] .mm-footer {
	background: #0d0d13;
}

.mm-footer a {
	color: #e3e3ee;
}

.mm-footer a:hover {
	color: var(--mm-accent);
}

.mm-footer__columns {
	display: grid;
	gap: var(--mm-space-5);
	margin-bottom: var(--mm-space-5);
}

@media (min-width: 768px) {
	.mm-footer__columns {
		grid-template-columns: repeat(3, 1fr);
	}
}

.mm-footer .mm-widget {
	background: none;
	border: 0;
	padding: 0;
}

.mm-footer .mm-widget__title {
	color: #fff;
	border-color: var(--mm-accent);
}

.mm-social--footer {
	justify-content: center;
	margin-bottom: var(--mm-space-4);
}

.mm-footer__bottom {
	border-top: 1px solid rgb(255 255 255 / 0.1);
	padding-top: var(--mm-space-4);
	text-align: center;
}

.mm-footer__legacy {
	font-family: var(--mm-font-heading);
	color: var(--mm-accent);
	margin: 0 0 var(--mm-space-1);
}

.mm-footer__copyright {
	margin: 0;
	font-size: 0.8125rem;
}

/* ---- Misc states ---- */
.mm-none {
	padding-block: var(--mm-space-6);
}
