/*
Theme Name: MBB Pilot
Theme URI: https://milesbeyondborders.com
Author: Miles Beyond Borders (built and maintained with Buddy)
Description: Pilot block theme for the AI-managed rebuild of milesbeyondborders.com. Design lives in this repository (theme.json, templates, parts) so every change is a reviewable code change, never a drag-and-drop edit. Version 0.2.0 matches the live Showit design: cream background, Fraunces display headings, League Spartan nav and labels, Inter body, navy bands.
Version: 0.3.66
Requires at least: 6.4
Tested up to: 6.9
Text Domain: mbb-pilot
*/

/* Eyebrow label used across the live design: small caps, sky blue, tracked out. */
.mbb-eyebrow {
	font-family: "League Spartan", "Arial Narrow", sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #38B6FF;
	margin-bottom: 0.75rem;
}
.mbb-eyebrow-navy { color: #0E6BA8; }

/* Hero headline treatment: "Travel Rich." sky, "Spend Smart." navy. */
.mbb-hero-title { line-height: 1.02; letter-spacing: -0.01em; }
.mbb-hero-title .sky { color: #38B6FF; display: block; }
.mbb-hero-title .navy { color: #1A2B3C; display: block; }

/* Navy welcome-bonus card on card pages. */
.mbb-bonus-card {
	background: #1A2B3C;
	color: #FFFFFF;
	border-radius: 14px;
	padding: 1.75rem 2rem;
}
.mbb-bonus-card .label {
	font-family: "League Spartan", sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #BEDDFD;
}
.mbb-bonus-card .amount {
	font-family: "Fraunces", Georgia, serif;
	font-size: 2.4rem;
	font-weight: 600;
	line-height: 1.1;
	margin: 0.35rem 0;
}

/* Navy stats band on card pages. */
.mbb-stats-band { background: #1A2B3C; color: #FFFFFF; }
.mbb-stats-band .label {
	font-family: "League Spartan", sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #BEDDFD;
	text-align: center;
}
.mbb-stats-band .value {
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.55rem;
	font-weight: 600;
	text-align: center;
	color: #FFFFFF;
}

/* Header: white band, navy wordmark. */
.mbb-site-header { background: #FFFFFF; border-bottom: 1px solid #EDE6D6; }
.mbb-wordmark {
	font-family: "League Spartan", sans-serif;
	font-weight: 800;
	font-size: 1.3rem;
	line-height: 1.05;
	letter-spacing: 0.02em;
	color: #1A2B3C;
	text-transform: uppercase;
}
.mbb-wordmark .accent { color: #38B6FF; }

/* Round author / about photos. */
.mbb-round-photo img { border-radius: 50%; object-fit: cover; }

/* Social counts row on the homepage. */
.mbb-social-count {
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.6rem;
	font-weight: 600;
	color: #1A2B3C;
	text-align: center;
}
.mbb-social-name {
	font-family: "League Spartan", sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #0E6BA8;
	text-align: center;
}

/* ---- Redesign v0.3.0: cleaner layout system ---- */
.mbb-card {
	background: #FFFFFF;
	border: 1px solid #E7DFCE;
	border-radius: 16px;
	padding: 1.5rem;
	box-shadow: 0 1px 3px rgba(26, 43, 60, 0.06);
}
.mbb-card h3 { margin-top: 0.5rem; }
.mbb-card .mbb-card-link {
	font-family: "League Spartan", sans-serif;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.85rem;
}
.mbb-post-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
	list-style: none;
	padding: 0;
}
@media (max-width: 900px) {
	.mbb-post-grid .wp-block-post-template { grid-template-columns: 1fr; }
}
.mbb-post-grid .wp-block-post-featured-image img {
	border-radius: 14px;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
}
.mbb-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.mbb-section-cream { background: #FAF6EE; }

/* ---- Redesign fixes v0.3.2 (Advait's desktop review, 2026-11-18) ---- */
/* Navy bands sit contained with soft corners, never edge to edge. */
.mbb-band {
	border-radius: 20px;
	padding: 2.75rem 2.25rem;
}
/* Blog grid and blog index titles: modest size, navy, never giant blue. */
.mbb-post-grid .wp-block-post-title,
.wp-block-query .wp-block-post-title {
	font-size: 1.3rem;
	line-height: 1.3;
}
.mbb-post-grid .wp-block-post-title a,
.wp-block-query .wp-block-post-title a {
	color: #1A2B3C;
	text-decoration: none;
}
.mbb-post-grid .wp-block-post-excerpt,
.wp-block-query .wp-block-post-excerpt {
	font-size: 0.95rem;
	color: #4A5868;
}
/* Hero: plain white, centered, text never touches the edges. */
.mbb-hero-clean {
	padding-top: 3.5rem;
	padding-bottom: 3rem;
}

/* Quick-nav pill buttons on the homepage (v0.3.3) */
.mbb-quicknav .wp-block-button__link {
	background: #FFFFFF;
	color: #1A2B3C;
	border: 1.5px solid #1A2B3C;
	border-radius: 999px;
	padding: 0.6rem 1.5rem;
	font-weight: 600;
}
.mbb-quicknav .wp-block-button__link:hover {
	background: #1A2B3C;
	color: #FFFFFF;
}

/* Mobile menu overlay design (v0.3.4): padded, left-aligned, divided rows */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem 1.25rem 2.5rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 2.5rem;
	align-items: flex-start;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
	gap: 0;
	width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 1rem 0.25rem;
	font-size: 1.05rem;
	text-align: left;
	border-bottom: 1px solid #E8EEF4;
}

/* Mobile menu padding fix (v0.3.5): core overrides the overlay container
   padding, so the inset lives on the inner container and links instead. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	padding-left: 1.25rem !important;
	padding-right: 1.25rem !important;
	box-sizing: border-box;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-left: 0.25rem;
	padding-right: 0.25rem;
}

/* Mobile type scale (v0.3.6): Cloud9 runs small type (13-16px text,
   ~32px headlines). Keep mobile headlines and buttons modest. */
@media (max-width: 680px) {
	.mbb-hero-title {
		font-size: 2rem !important;
		line-height: 1.15;
	}
	.mbb-hero-clean .has-large-font-size {
		font-size: 1.05rem !important;
	}
	h2.wp-block-heading {
		font-size: 1.6rem !important;
	}
	.wp-block-post-title {
		font-size: 1.9rem !important;
	}
	.wp-block-button__link {
		font-size: 0.95rem;
		padding: 0.55rem 1.2rem;
	}
	.mbb-quicknav .wp-block-button__link {
		font-size: 0.9rem;
		padding: 0.5rem 1.1rem;
	}
}

/* Transfer widgets device split (v0.3.7): Showit serves the desktop
   widget on desktop and the mobile widget on phones. WordPress loads
   both scripts, so split them by width. Also fix the desktop tracker's
   box sizing: its width:100% plus side padding overflowed the right
   edge and cut the cards off on phones. */
.mbb-tracker {
	box-sizing: border-box;
}
@media (max-width: 680px) {
	.mbb-tracker,
	.mbc {
		display: none !important;
	}
}
@media (min-width: 681px) {
	.mbm,
	.mbcm {
		display: none !important;
	}
}

/* Tighter hero + smaller icon buttons (v0.3.9, Advait's mobile review) */
.mbb-hero-clean {
	padding-top: 2.5rem;
	padding-bottom: 1rem;
}
.wp-block-buttons.mbb-quicknav {
	gap: 0.5rem;
}
.mbb-quicknav .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.85rem;
	padding: 0.45rem 1rem;
}
.mbb-quicknav .wp-block-button__link::before {
	content: "";
	width: 15px;
	height: 15px;
	flex: none;
	background: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}
.mbb-quicknav .wp-block-button:nth-child(1) .wp-block-button__link::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E");
}
.mbb-quicknav .wp-block-button:nth-child(2) .wp-block-button__link::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='5' x2='5' y2='19'/%3E%3Ccircle cx='6.5' cy='6.5' r='2.5'/%3E%3Ccircle cx='17.5' cy='17.5' r='2.5'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='5' x2='5' y2='19'/%3E%3Ccircle cx='6.5' cy='6.5' r='2.5'/%3E%3Ccircle cx='17.5' cy='17.5' r='2.5'/%3E%3C/svg%3E");
}
.mbb-quicknav .wp-block-button:nth-child(3) .wp-block-button__link::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E");
}
.mbb-quicknav .wp-block-button:nth-child(4) .wp-block-button__link::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cline x1='8' y1='7' x2='16' y2='7'/%3E%3Cline x1='8' y1='12' x2='8.01' y2='12'/%3E%3Cline x1='12' y1='12' x2='12.01' y2='12'/%3E%3Cline x1='16' y1='12' x2='16.01' y2='12'/%3E%3Cline x1='8' y1='16' x2='8.01' y2='16'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3Cline x1='16' y1='16' x2='16.01' y2='16'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cline x1='8' y1='7' x2='16' y2='7'/%3E%3Cline x1='8' y1='12' x2='8.01' y2='12'/%3E%3Cline x1='12' y1='12' x2='12.01' y2='12'/%3E%3Cline x1='16' y1='12' x2='16.01' y2='12'/%3E%3Cline x1='8' y1='16' x2='8.01' y2='16'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3Cline x1='16' y1='16' x2='16.01' y2='16'/%3E%3C/svg%3E");
}
.mbb-quicknav .wp-block-button__link:hover {
	background: #EEF7FC;
	color: #1A2B3C;
}

/* Homepage post rows on mobile (v0.3.10): thin rows like cloud9club,
   small square thumb, title and date only, no excerpt. */
.mbb-post-grid .wp-block-post-date {
	font-size: 0.82rem;
	color: #71869A;
}
@media (max-width: 680px) {
	.mbb-post-grid .wp-block-post-template {
		gap: 0.25rem;
	}
	.mbb-post-grid .wp-block-post-template > li {
		display: grid;
		grid-template-columns: 92px 1fr;
		grid-template-areas: "img title" "img date";
		column-gap: 0.8rem;
		row-gap: 0.15rem;
		align-items: start;
		padding: 0.65rem 0;
		border-bottom: 1px solid #E8EEF4;
	}
	.mbb-post-grid .wp-block-post-featured-image {
		grid-area: img;
		margin: 0;
	}
	.mbb-post-grid .wp-block-post-featured-image img {
		aspect-ratio: 1 / 1;
		height: 92px;
		border-radius: 10px;
	}
	.mbb-post-grid .wp-block-post-title {
		grid-area: title;
		font-size: 1rem;
		margin: 0;
	}
	.mbb-post-grid .wp-block-post-date {
		grid-area: date;
	}
	.mbb-post-grid .wp-block-post-excerpt {
		display: none;
	}
}

/* Mobile post rows: force the small title size (v0.3.11). The theme.json
   post-title block style (display preset) was overriding the v0.3.10
   size, so titles wrapped to 7 lines and rows ballooned. Clamp titles
   to 3 lines so rows stay thin like the reference. */
@media (max-width: 680px) {
	.mbb-post-grid .wp-block-post-title {
		font-size: 1rem !important;
		line-height: 1.3;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.mbb-post-grid .wp-block-post-template > li {
		align-items: center;
	}
}

/* Mobile post rows: clamp the title LINK itself (v0.3.12). WordPress
   renders the title link as inline-block, which defeats line-clamp on
   the heading; clamping the link plus a hard max-height on the heading
   keeps every row thin. */
@media (max-width: 680px) {
	.mbb-post-grid .wp-block-post-title {
		max-height: 3.9em;
		overflow: hidden;
	}
	.mbb-post-grid .wp-block-post-title a {
		display: -webkit-box !important;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
}

/* Post disclosure under the featured image (v0.3.13), copied from the
   live site, plus smaller post text on phones (25% down, Advait). */
.mbb-disclosure {
	font-size: 0.8rem;
	color: #71869A;
	margin-bottom: 1.25rem;
}
@media (max-width: 680px) {
	body.single-post .wp-block-post-title {
		font-size: 1.43rem !important;
	}
	body.single-post .wp-block-post-content {
		font-size: 0.8rem;
		line-height: 1.65;
	}
	body.single-post .wp-block-post-content h2 {
		font-size: 1.45rem;
	}
	body.single-post .wp-block-post-content h3 {
		font-size: 1.15rem;
	}
	body.single-post .wp-block-post-content h4 {
		font-size: 0.98rem;
	}
}

/* Table of contents (v0.3.14): cream box under the featured image,
   built by js/toc.js from the post's H2s. Plus the mobile post font
   raised 10% from the v0.3.13 reduction (it landed a touch small). */
.mbb-toc {
	background: #FAF6EE;
	border: 1px solid #E7DFCE;
	border-radius: 14px;
	padding: 0.9rem 1.25rem 1rem;
	margin-bottom: 1.25rem;
}
.mbb-toc-toggle {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	background: none;
	border: 0;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--spartan);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.02em;
	color: #1A2B3C;
	padding: 0.1rem 0;
}
.mbb-toc-chevron {
	transition: transform 0.2s ease;
}
.mbb-toc.is-collapsed .mbb-toc-chevron {
	transform: rotate(-90deg);
}
.mbb-toc.is-collapsed .mbb-toc-list {
	display: none;
}
.mbb-toc-list ul {
	list-style: none;
	margin: 0.6rem 0 0;
	padding: 0;
}
.mbb-toc-list li {
	margin: 0.45rem 0;
}
.mbb-toc-list a {
	color: #0E6BA8;
	text-decoration: none;
	font-size: 0.95rem;
}
.mbb-toc-list a:hover {
	text-decoration: underline;
}
.wp-block-post-content h2 {
	scroll-margin-top: 90px;
}
@media (max-width: 680px) {
	body.single-post .wp-block-post-title {
		font-size: 1.57rem !important;
	}
	body.single-post .wp-block-post-content {
		font-size: 0.88rem;
	}
	body.single-post .wp-block-post-content h2 {
		font-size: 1.6rem;
	}
	body.single-post .wp-block-post-content h3 {
		font-size: 1.27rem;
	}
	body.single-post .wp-block-post-content h4 {
		font-size: 1.08rem;
	}
}

/* TOC polish (v0.3.15): smooth expand/collapse via the grid-rows
   technique (replaces the display:none snap), tighter list spacing. */
.mbb-toc-list {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows 0.35s ease, opacity 0.3s ease;
}
.mbb-toc-list > ul {
	overflow: hidden;
	min-height: 0;
	margin-top: 0.5rem;
}
.mbb-toc.is-collapsed .mbb-toc-list {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
}
.mbb-toc-list li {
	margin: 0.16rem 0;
	line-height: 1.35;
}
.mbb-toc-chevron {
	transition: transform 0.35s ease;
}

/* TOC header centering + link style (v0.3.16): the collapsed list was
   leaving residual space under the header, pushing the title to the
   top of the box; zero it when collapsed. Links go black, underlined. */
.mbb-toc {
	padding-top: 0.85rem;
	padding-bottom: 0.85rem;
}
.mbb-toc-toggle {
	line-height: 1.2;
}
.mbb-toc.is-collapsed .mbb-toc-list > ul {
	margin-top: 0;
}
.mbb-toc-list a {
	color: #1A2B3C;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* In-post links (v0.3.17, Advait): bold, underlined, brand light blue,
   like the reference he sent. Scoped to post body content so menus,
   buttons, the TOC, and the disclosure keep their own styles. */
.wp-block-post-content a:not(.wp-block-button__link) {
	color: #38B6FF;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.wp-block-post-content [data-mbb-card] a,
.wp-block-post-content .mbb-inline-card a {
	color: inherit;
	font-weight: inherit;
	text-decoration: inherit;
}

/* airier post text (v0.3.18): line height up slightly on post pages,
   paragraphs were reading dense. */
body.single-post .wp-block-post-content {
	line-height: 1.7;
}
@media (max-width: 680px) {
	body.single-post .wp-block-post-content {
		line-height: 1.78;
	}
}

/* Keep Learning cards (v0.3.19): heading with a rule, then a snap-scroll
   row of post cards (cover, title, date), Cloud9-style, MBB colors. */
.mbb-keep-learning {
	max-width: 820px;
	margin: 2.5rem auto 0;
	padding: 0 1.25rem;
}
.mbb-kl-head {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.1rem;
}
.mbb-kl-head h2 {
	font-family: "Fraunces", serif;
	font-weight: 700;
	color: #1A2B3C;
	font-size: 1.6rem;
	margin: 0;
	white-space: nowrap;
}
.mbb-kl-rule {
	flex: 1;
	height: 2px;
	background: #BEDDFD;
	border-radius: 2px;
}
.mbb-kl-row {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 0.5rem;
	-webkit-overflow-scrolling: touch;
}
.mbb-kl-card {
	flex: 0 0 78%;
	max-width: 340px;
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid #E7DFCE;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	box-shadow: 0 1px 4px rgba(26, 43, 60, 0.06);
}
@media (min-width: 681px) {
	.mbb-kl-card { flex-basis: 31.5%; }
}
.mbb-kl-img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}
.mbb-kl-img-empty {
	background: #BEDDFD;
}
.mbb-kl-body {
	display: block;
	padding: 0.85rem 1rem 1rem;
}
.mbb-kl-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-family: "DM Sans", sans-serif;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.35;
	color: #1A2B3C;
}
.mbb-kl-date {
	display: block;
	margin-top: 0.45rem;
	font-size: 0.82rem;
	color: #5B7186;
}

/* Next Stop rows (v0.3.21): related posts become thin horizontal rows,
   thumb left, title and date right, hairline under each. Replaces the
   v0.3.19 scroll-card look. */
.mbb-kl-row {
	display: block;
	overflow: visible;
	padding-bottom: 0;
}
.mbb-kl-card {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	max-width: none;
	background: transparent;
	border: none;
	border-bottom: 1px solid #EFE9DA;
	border-radius: 0;
	box-shadow: none;
	padding: 0.7rem 0;
}
.mbb-kl-card:last-child {
	border-bottom: none;
}
.mbb-kl-img {
	width: 92px;
	height: 92px;
	flex: 0 0 92px;
	aspect-ratio: auto;
	border-radius: 10px;
}
.mbb-kl-body {
	padding: 0;
}
.mbb-kl-title {
	font-size: 1.02rem;
}
.mbb-kl-card:hover .mbb-kl-title {
	color: #0E6BA8;
}

/* Next Stop strip (v0.3.22): the horizontal rows become one swipeable
   strip, each item keeps its thumb-left layout but sits side by side,
   so the whole section is one row tall instead of six stacked rows. */
.mbb-kl-row {
	display: flex;
	gap: 0.8rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 0.4rem;
	scrollbar-width: none;
}
.mbb-kl-row::-webkit-scrollbar {
	display: none;
}
.mbb-kl-card {
	flex: 0 0 84%;
	max-width: 330px;
	scroll-snap-align: start;
	border: 1px solid #EFE9DA;
	border-radius: 12px;
	padding: 0.6rem;
	background: #fff;
}
@media (min-width: 681px) {
	.mbb-kl-card { flex-basis: 47%; }
}
.mbb-kl-img {
	width: 76px;
	height: 76px;
	flex: 0 0 76px;
}
.mbb-kl-title {
	font-size: 0.98rem;
}

/* Container spacing cleanup (v0.3.23): the imported HTML containers
   carry their own big vertical margins, and posts stack 20px+ spacer
   blocks around them, so gaps doubled and tripled up. The theme now
   owns the spacing: spacers shrink to a sliver, spacers touching an
   HTML block vanish (the block gap separates it), style-only HTML
   blocks take no space, and containers lose their built-in margins. */
.wp-block-post-content .wp-block-spacer {
	height: 14px !important;
}
.wp-block-post-content .wp-block-spacer:has(+ .wp-block-html),
.wp-block-post-content .wp-block-html + .wp-block-spacer {
	display: none;
}
.wp-block-post-content .wp-block-html:has(> style:only-child) {
	display: none !important;
}
.wp-block-post-content > style {
	display: none;
}
.wp-block-post-content .wp-block-html > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* FAQ accordion (v0.3.23): one look for every post, built by js/faq.js
   from whatever format the post carries. Smooth grid-rows slide, the
   same technique as the table of contents. Answers stay in the HTML. */
.mbb-acc {
	margin-top: 0.25rem;
}
.mbb-acc-item {
	background: #FAF6EE;
	border: 1px solid #E7DFCE;
	border-radius: 12px;
	margin-bottom: 0.6rem;
	overflow: hidden;
}
.mbb-acc-head {
	appearance: none;
	background: none;
	border: none;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 14px 16px;
	font-family: "DM Sans", sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.4;
	text-align: left;
	color: #1A2B3C;
	cursor: pointer;
}
.mbb-acc-head::after {
	content: "+";
	flex: none;
	color: #0E6BA8;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1;
	transition: transform 0.35s ease;
}
.mbb-acc-item.is-open .mbb-acc-head::after {
	transform: rotate(45deg);
}
.mbb-acc-panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s ease;
}
.mbb-acc-item.is-open .mbb-acc-panel {
	grid-template-rows: 1fr;
}
.mbb-acc-inner {
	overflow: hidden;
	min-height: 0;
	padding: 0 16px;
}
.mbb-acc-inner > *:first-child {
	margin-top: 0;
}
.mbb-acc-inner > *:last-child {
	margin-bottom: 14px;
}

/* In-post links, corrected (v0.3.25, Advait): the TEXT is bold black;
   the blue lives in a thick underline under it. */
.wp-block-post-content a:not(.wp-block-button__link) {
	color: #1A2B3C;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: #38B6FF;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* One spacing system (v0.3.26): Advait flagged gaps around containers
   and tables as all over the place, some stacked double, some nearly
   zero (the FAQ title sat on its first box). From here the block gap
   is the ONLY spacing inside a post: spacer blocks are removed from
   the flow entirely (each one added its own gap on top of the block
   gap), H2 section breaks get one larger standard step, and the FAQ
   accordion takes the standard gap instead of its own small one. */
.wp-block-post-content .wp-block-spacer {
	display: none !important;
}
.wp-block-post-content > h2 {
	margin-top: 2.2rem !important;
}
.mbb-acc {
	margin-top: 1.1rem;
}

/* Containers carry the standard gap themselves (v0.3.27): the full
   check found the junctions still asymmetric (Hilton buy-points box
   crushed above, Venture comparison container crushed below) because
   those boxes sit inside HTML blocks whose wrapper margins do not
   behave like ordinary blocks. Every known top-level container class,
   when it is the direct content of an HTML block, now gets the same
   1.1rem above and below; sibling margins collapse, so this matches
   the standard block gap instead of stacking on it. Nested elements
   keep the zeroed margins from v0.3.23, so table internals are
   untouched. */
.wp-block-post-content .wp-block-html > .mbb-aot,
.wp-block-post-content .wp-block-html > .mbb-credit-table-wrap,
.wp-block-post-content .wp-block-html > .mbb-cost-table-wrap,
.wp-block-post-content .wp-block-html > .mbb-mini-card,
.wp-block-post-content .wp-block-html > .mbb-rove-cta,
.wp-block-post-content .wp-block-html > .mbb-inline-card,
.wp-block-post-content .wp-block-html > .mbb-ink-card,
.wp-block-post-content .wp-block-html > .mbb-masterclass,
.wp-block-post-content .wp-block-html > .mbb-savewise-box,
.wp-block-post-content .wp-block-html > .mbb-hyatt-overview,
.wp-block-post-content .wp-block-html > .mbb-calc-wrap,
.wp-block-post-content .wp-block-html > .mbb-banner,
.wp-block-post-content .wp-block-html > .mbb-cta,
.wp-block-post-content .wp-block-html > .mbb-credit,
.wp-block-post-content [data-mbb-card] {
	margin-top: 1.1rem !important;
	margin-bottom: 1.1rem !important;
}

/* Same containers, any nesting depth (v0.3.28): the Hilton buy-points
   mini-card still sat ~10px under the paragraph above it on v0.3.27
   because it is not a direct child of its HTML block, so the scoped
   rule never matched. The standard gap now applies to these container
   classes wherever they sit in the post flow. */
.wp-block-post-content .mbb-aot,
.wp-block-post-content .mbb-credit-table-wrap,
.wp-block-post-content .mbb-cost-table-wrap,
.wp-block-post-content .mbb-mini-card,
.wp-block-post-content .mbb-rove-cta,
.wp-block-post-content .mbb-inline-card,
.wp-block-post-content .mbb-ink-card,
.wp-block-post-content .mbb-masterclass,
.wp-block-post-content .mbb-savewise-box,
.wp-block-post-content .mbb-hyatt-overview,
.wp-block-post-content .mbb-calc-wrap,
.wp-block-post-content .mbb-banner,
.wp-block-post-content .mbb-cta,
.wp-block-post-content .mbb-credit {
	margin-top: 1.1rem !important;
	margin-bottom: 1.1rem !important;
}

/* Mobile table readability (v0.3.29): older posts carry embedded table
   styles that drop cell text to 8px and captions to 7px on phones.
   Lift offer-table cells to 14px and captions to 11px on mobile only;
   desktop rendering is unchanged. Specificity beats the embedded
   single-class !important rules. */
@media (max-width: 680px) {
	.wp-block-post-content .mbb-aot__th,
	.wp-block-post-content .mbb-aot__td {
		font-size: 14px !important;
	}
	.wp-block-post-content .mbb-aot__cap {
		font-size: 11px !important;
	}
}

/* ---- v0.3.30: blog index, category archives, search results ---- */
/* Formatted, contained layout: compact horizontal rows, filter pills, search. */
.mbb-blog-wrap {
	max-width: 1080px;
	margin: 0 auto;
	padding: 2rem 1.25rem 3rem;
	box-sizing: border-box;
	width: 100%;
}
.mbb-blog-title,
.mbb-blog-wrap .wp-block-query-title {
	font-family: "League Spartan", sans-serif;
	font-size: 2rem;
	line-height: 1.15;
	color: #1A2B3C;
	margin: 0 0 1.1rem;
}
.mbb-blog-search { max-width: 520px; margin: 0 0 1rem; }
.mbb-blog-search .wp-block-search__inside-wrapper {
	border: 1px solid #C9D6E2;
	border-radius: 999px;
	background: #FFFFFF;
	padding: 4px;
}
.mbb-blog-search .wp-block-search__input {
	border: 0;
	background: transparent;
	font-size: 0.95rem;
	padding: 0.45rem 0.9rem;
}
.mbb-blog-search .wp-block-search__button {
	background: #0E6BA8;
	color: #FFFFFF;
	border: 0;
	border-radius: 999px;
	font-family: "League Spartan", sans-serif;
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.03em;
	padding: 0.5rem 1.1rem;
	margin-left: 0;
}
.mbb-blog-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
}
.mbb-pill {
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 16px;
	border: 1px solid #C9D6E2;
	border-radius: 999px;
	background: #FAF6EE;
	color: #1A2B3C;
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1;
}
.mbb-pill:hover { border-color: #0E6BA8; color: #0E6BA8; }
body.blog .mbb-pill-all,
body.category-guides .mbb-pill-guides,
body.category-credit-cards .mbb-pill-credit-cards,
body.category-learn .mbb-pill-learn,
body.category-flight-review .mbb-pill-flight-review,
body.category-hotels .mbb-pill-hotels {
	background: #1A2B3C;
	border-color: #1A2B3C;
	color: #FAF6EE;
}
.mbb-blog-list .wp-block-post-template {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
}
.mbb-blog-list .wp-block-post-template > li {
	border-bottom: 1px solid #E7DFCE;
	padding: 1.1rem 0;
	margin: 0;
}
.mbb-blog-row { display: flex; gap: 1.1rem; align-items: flex-start; }
.mbb-blog-thumb { flex: 0 0 200px; margin: 0; }
.mbb-blog-thumb img {
	width: 200px;
	height: 125px;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}
.mbb-blog-row-text { flex: 1 1 auto; min-width: 0; }
.mbb-blog-list .wp-block-post-title {
	font-size: 1.18rem;
	line-height: 1.3;
	margin: 0 0 0.3rem;
}
.mbb-blog-list .wp-block-post-title a { color: #1A2B3C; text-decoration: none; }
.mbb-blog-list .wp-block-post-date {
	font-size: 0.8rem;
	color: #7A8699;
	margin: 0 0 0.35rem;
}
.mbb-blog-list .wp-block-post-excerpt p {
	font-size: 0.92rem;
	line-height: 1.55;
	color: #4A5868;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mbb-blog-pagination { margin-top: 2rem; gap: 0.4rem; }
.mbb-blog-pagination .wp-block-query-pagination-numbers {
	display: inline-flex;
	gap: 0.4rem;
	align-items: center;
}
.mbb-blog-pagination .page-numbers,
.mbb-blog-pagination .wp-block-query-pagination-previous,
.mbb-blog-pagination .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border: 1px solid #C9D6E2;
	border-radius: 999px;
	background: #FFFFFF;
	color: #1A2B3C;
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 600;
	box-sizing: border-box;
}
.mbb-blog-pagination .page-numbers.current {
	background: #1A2B3C;
	border-color: #1A2B3C;
	color: #FAF6EE;
}
@media (max-width: 680px) {
	.mbb-blog-wrap { padding-top: 1.4rem; }
	.mbb-blog-title,
	.mbb-blog-wrap .wp-block-query-title { font-size: 1.6rem; }
	.mbb-blog-search { max-width: none; }
	.mbb-blog-thumb { flex-basis: 92px; }
	.mbb-blog-thumb img { width: 92px; height: 92px; border-radius: 10px; }
	.mbb-blog-list .wp-block-post-title { font-size: 1rem; }
	.mbb-blog-list .wp-block-post-excerpt { display: none; }
	.mbb-blog-row { gap: 0.85rem; }
}

/* ---- v0.3.31: homepage grid cards align at the top ---- */
/* The first card sat higher than the other two. Top-align the grid items,
   zero stray item margins, and make the image figure a fixed 16/10 box the
   image fills, so every card starts at the same height on desktop. */
.mbb-post-grid .wp-block-post-template { align-items: start; }
@media (min-width: 681px) {
	.mbb-post-grid .wp-block-post-template > li {
		margin: 0;
		padding: 0;
		display: flex;
		flex-direction: column;
	}
	.mbb-post-grid .wp-block-post-featured-image {
		margin: 0 0 1rem;
		aspect-ratio: 16 / 10;
		overflow: hidden;
		border-radius: 14px;
	}
	.mbb-post-grid .wp-block-post-featured-image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
	}
}

/* ---- v0.3.32: menu hover animation ---- */
/* Nav links animate like in-post links: bold black with a thick light
   blue underline that sweeps in from the left on hover/focus. */
.mbb-site-header .wp-block-navigation-item__content {
	position: relative;
	transition: color 0.2s ease;
}
.mbb-site-header .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -3px;
	height: 4px;
	border-radius: 2px;
	background: #38B6FF;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.25s ease;
}
.mbb-site-header .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
.mbb-site-header .wp-block-navigation-item:focus-within > .wp-block-navigation-item__content {
	color: #1A2B3C;
	font-weight: 700;
}
.mbb-site-header .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.mbb-site-header .wp-block-navigation-item:focus-within > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}
/* Resources dropdown: fade and rise smoothly instead of popping in.
   Desktop scope only; the mobile overlay menu keeps its own behaviour. */
@media (min-width: 783px) {
	.mbb-site-header .wp-block-navigation__submenu-container {
		border: 1px solid #E7DFCE;
		border-radius: 12px;
		box-shadow: 0 12px 32px rgba(26, 43, 60, 0.12);
		padding: 0.4rem;
		min-width: 250px;
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
		transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
	}
	.mbb-site-header .wp-block-navigation-item.has-child:hover > .wp-block-navigation__submenu-container,
	.mbb-site-header .wp-block-navigation-item.has-child:focus-within > .wp-block-navigation__submenu-container {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		transition: opacity 0.22s ease, transform 0.22s ease;
	}
	.mbb-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		border-radius: 8px;
		padding: 0.45rem 0.7rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	.mbb-site-header .wp-block-navigation-item__content::after,
	.mbb-site-header .wp-block-navigation__submenu-container {
		transition: none;
	}
}

/* ---- v0.3.33: blog rows on mobile match the homepage rows ---- */
/* The v0.3.30 1rem title rule lost to the theme.json post-title preset
   (same fight as v0.3.11 on the homepage grid), so titles rendered huge
   on phones. Mirror the homepage mobile row treatment exactly. */
@media (max-width: 680px) {
	.mbb-blog-list .wp-block-post-title {
		font-size: 1rem !important;
		line-height: 1.3;
		max-height: 3.9em;
		overflow: hidden;
		margin: 0 0 0.25rem;
	}
	.mbb-blog-list .wp-block-post-title a {
		display: -webkit-box !important;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.mbb-blog-list .wp-block-post-date { font-size: 0.78rem; }
	.mbb-blog-list .wp-block-post-template > li { padding: 0.85rem 0; }
}

/* ---- v0.3.35: slimmer hero and intro band on mobile ---- */
/* Hero loses the email form (content change) and its type drops a step;
   the navy intro band keeps all its content in far less vertical space:
   smaller photo, tighter padding, smaller headline and body text. */
@media (max-width: 680px) {
	.mbb-hero-clean { padding-top: 1.75rem; padding-bottom: 0.5rem; }
	.mbb-hero-title { font-size: 1.65rem !important; line-height: 1.12; }
	.mbb-hero-clean .has-large-font-size { font-size: 1rem !important; line-height: 1.55; }
	.mbb-hero-cta { margin-top: 1.1rem; }
	.mbb-band { padding: 1.5rem 1.2rem; border-radius: 16px; }
	.mbb-band .wp-block-columns { gap: 0.9rem; }
	.mbb-band .mbb-round-photo { margin: 0; }
	.mbb-band .mbb-round-photo img { width: 104px; height: 104px; }
	.mbb-band .mbb-eyebrow { font-size: 0.78rem; margin-bottom: 0; }
	.mbb-band h2.wp-block-heading { font-size: 1.45rem !important; line-height: 1.25; margin: 0.35rem 0 0.55rem; }
	.mbb-band p { font-size: 0.98rem; line-height: 1.6; }
}

/* ---- v0.3.36: social stats side by side on mobile ---- */
/* The Find me elsewhere counts stacked into a long column on phones.
   Keep them in one row of four with compact type instead. */
@media (max-width: 680px) {
	body .wp-block-columns:has(> .wp-block-column .mbb-social-count) {
		flex-wrap: nowrap;
		gap: 0.4rem;
	}
	body .wp-block-columns:has(> .wp-block-column .mbb-social-count) > .wp-block-column {
		flex-basis: 0 !important;
		flex-grow: 1;
		min-width: 0;
	}
	.mbb-social-count { font-size: 1.25rem; margin: 0 0 0.2rem; }
	.mbb-social-name { font-size: 0.58rem; letter-spacing: 0.06em; margin: 0; }
}

/* ---- v0.3.37: breathing room between pill emoji and label ---- */
.mbb-pill .mbb-pill-emoji { margin-right: 0.45rem; }

/* ---- v0.3.38: video featured image links to YouTube with a play badge ---- */
.mbb-video-thumb { position: relative; display: block; }
.mbb-video-thumb img { display: block; }
.mbb-video-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: rgba(26, 43, 60, .85); box-shadow: 0 6px 24px rgba(26, 43, 60, .35); transition: transform .2s ease, background-color .2s ease; pointer-events: none; }
.mbb-video-play::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-38%, -50%); border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.mbb-video-thumb:hover .mbb-video-play { transform: scale(1.07); background-color: #0E6BA8; }
@media (prefers-reduced-motion: reduce) { .mbb-video-play { transition: none; } }

/* ---- v0.3.39 + v0.3.40: card pages on mobile ----
   Advait 2026-11-20, two rounds. Round 1: the disclaimer bar and the stats
   band read as hard-edged slabs on a phone, and page body copy is too big.
   Round 2: the hero offer container and card image are too large next to the
   Learn More button; the button should be bigger, more prominent and
   centered; body text smaller again with tighter line height; the stats
   band box is too roomy for its text, so the box shrinks while its values
   grow slightly. Mobile only; desktop is unchanged. The font rule sits on
   the content container so plain paragraphs and list items inherit the
   smaller size while preset-sized elements (.amount, .label, .value,
   has-small-font-size) keep their own sizes. */
@media (max-width: 680px) {
	body.page .wp-block-post-content > .wp-block-group.has-background:first-child { border-radius: 14px; padding-left: 1rem; padding-right: 1rem; }
	body.page .wp-block-post-content { font-size: 0.92rem; line-height: 1.55; }
	body.page .mbb-bonus-card { padding: 1.2rem 1.25rem; }
	body.page .mbb-bonus-card .amount { font-size: 1.9rem; }
	body.page .wp-block-post-content > .wp-block-columns .wp-block-image { max-width: 84%; margin-left: auto; margin-right: auto; }
	body.page .wp-block-post-content .wp-block-buttons { justify-content: center; }
	body.page .wp-block-post-content .wp-block-button__link { font-size: 1.05rem; padding: 0.85rem 2.1rem; }
	body.page .mbb-stats-band { border-radius: 14px; padding-top: 1.1rem !important; padding-bottom: 1.1rem !important; }
	body.page .mbb-stats-band .wp-block-columns { gap: 0.5rem; }
	body.page .mbb-stats-band p { margin-top: 0.15rem; margin-bottom: 0.15rem; }
	body.page .mbb-stats-band .label { font-size: 0.8rem; }
	body.page .mbb-stats-band .value { font-size: 1.7rem; }
}

/* ---- v0.3.41: top announcement bar ----
   Navy promo bar above the header on every page, mobile and desktop.
   js/topbar.js rotates the messages and builds the card offer lines from
   cards.json, so the amounts track the card sheet like every other card
   surface on the site. */
.mbb-topbar { background: #1A2B3C; color: #FFFFFF; }
.mbb-topbar-item { max-width: 1180px; margin: 0 auto; padding: 0.55rem 1rem; text-align: center; font-size: 0.88rem; line-height: 1.35; transition: opacity .45s ease; }
.mbb-topbar-item.is-fading { opacity: 0; }
.mbb-topbar-cta { color: #38B6FF; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; margin-left: 0.4rem; }
.mbb-topbar-cta:hover { color: #BEDDFD; }
@media (max-width: 680px) {
	.mbb-topbar-item { font-size: 0.8rem; padding: 0.5rem 0.75rem; }
}
@media (prefers-reduced-motion: reduce) { .mbb-topbar-item { transition: none; } }

/* ---- v0.3.43: homepage desktop proportions (Advait's desktop review, 2026-11-20) ----
   The hero headline stays as is; the subhead and the hero CTA shrink. The
   intro band's photo finally centers vertically: core columns CSS pins
   align-items to normal !important, which silently defeats the block's
   are-vertically-aligned-center class, so the band needs its own
   !important rule. Both navy bands get tighter padding, and the social
   stats grow slightly inside a narrower, centered row with less air
   around the section. Desktop only; the mobile scale is unchanged. */
@media (min-width: 681px) {
	.mbb-hero-clean .has-large-font-size { font-size: 1.15rem !important; line-height: 1.55; }
	.mbb-hero-cta .wp-block-button__link { font-size: 1rem !important; padding: 0.7rem 1.6rem; }
	.mbb-band { padding-top: 2rem; padding-bottom: 2rem; }
	.mbb-band .wp-block-columns.are-vertically-aligned-center { align-items: center !important; }
	.mbb-band .mbb-round-photo img { width: 250px; height: 250px; display: block; margin-left: auto; margin-right: auto; }
	.mbb-social-count { font-size: 1.9rem; }
	.mbb-section:has(.mbb-social-count) { padding-top: 2.25rem; padding-bottom: 2.25rem; }
	body .wp-block-columns:has(> .wp-block-column .mbb-social-count) { max-width: 780px; margin-left: auto; margin-right: auto; }
}

/* ---- v0.3.45: desktop single-post layout with sidebar (Advait, 2026-11-20) ----
   Desktop only (1024px and up): the post spreads into a wide shell with
   the article in a main column and a 320px right sidebar carrying Top
   Card Picks (filled from cards.json by js/sidebar-picks.js, so the
   offers stay centrally controlled) and a compact Keep Learning list.
   The bottom Next Stop row hides on desktop because the sidebar carries
   the related posts. Post body type drops a step on desktop. Below
   1024px the layout is unchanged; the shell width just reproduces the
   old 820px measure. */
.mbb-post-shell { max-width: 860px; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; box-sizing: border-box; }
.mbb-post-sidebar { display: none; }
.mbb-post-main .mbb-keep-learning { padding-left: 0; padding-right: 0; }
@media (min-width: 1024px) {
	.mbb-post-shell { max-width: 1180px; }
	.mbb-post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.75rem; align-items: start; }
	.mbb-post-sidebar { display: block; }
	body.single-post .wp-block-post-content { font-size: 0.97rem; }
	body.single-post .wp-block-post-content h2 { font-size: 1.5rem; }
	body.single-post .wp-block-post-content h3 { font-size: 1.22rem; }
	.mbb-post-main .mbb-keep-learning { display: none; }
	.mbb-picks-heading { font-family: "Fraunces", Georgia, serif; font-size: 1.35rem; margin: 0 0 1rem; }
	.mbb-pick { background: #FFFFFF; border: 1px solid #E3EAF1; border-radius: 14px; padding: 0.8rem; margin-bottom: 0.8rem; }
	.mbb-pick-link { display: flex; gap: 0.8rem; align-items: center; text-decoration: none; color: #1A2B3C; }
	.mbb-pick-img { width: 86px; height: auto; border-radius: 8px; flex: none; }
	.mbb-pick-body { display: flex; flex-direction: column; gap: 0.12rem; }
	.mbb-pick-name { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 0.98rem; line-height: 1.25; }
	.mbb-pick-offer { font-size: 0.88rem; font-weight: 700; color: #0E6BA8; }
	.mbb-pick-cond { font-size: 0.78rem; color: #5A6B7C; }
	.mbb-pick-cta { font-size: 0.8rem; font-weight: 700; color: #0E6BA8; margin-top: 0.25rem; }
	.mbb-kl-side { margin-top: 2.25rem; }
	.mbb-kl-side-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.6rem; }
	.mbb-kl-side-head h2 { font-family: "Fraunces", Georgia, serif; font-weight: 700; color: #1A2B3C; font-size: 1.35rem; margin: 0; white-space: nowrap; }
	.mbb-kl-side-card { display: flex; gap: 0.75rem; align-items: center; text-decoration: none; color: #1A2B3C; padding: 0.6rem 0; border-bottom: 1px solid #EDF1F5; }
	.mbb-kl-side-img { width: 84px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
	.mbb-kl-side-title { font-size: 0.92rem; font-weight: 600; line-height: 1.35; }
}

/* ---- v0.3.47: desktop hover lift (Advait, 2026-11-20) ----
   Card containers and the sidebar items gently raise on hover: a small
   lift with a deeper shadow. Desktop pointers only; reduced-motion
   readers get no movement. The sidebar related-posts section is titled
   "Next Stop", the same name the bottom row already used. */
@media (min-width: 1024px) and (hover: hover) {
	.mbb-card-widget .mbbc-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
	.mbb-card-widget:hover .mbbc-card { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(23, 40, 58, 0.16); }
	.mbb-pick { transition: transform 0.25s ease, box-shadow 0.25s ease; }
	.mbb-pick:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(23, 40, 58, 0.13); }
	.mbb-kl-side-card { border-radius: 10px; transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease; }
	.mbb-kl-side-card:hover { transform: translateY(-2px); background: #FFFFFF; box-shadow: 0 10px 22px rgba(23, 40, 58, 0.12); }
}
@media (prefers-reduced-motion: reduce) {
	.mbb-card-widget .mbbc-card, .mbb-pick, .mbb-kl-side-card { transition: none; }
}

/* ---- v0.3.48: post hero above the columns, TOC shut by default (Advait, 2026-11-20) ----
   The post title and featured image moved out of the main column into a
   full-width hero above the two-column layout, front and center. The
   sidebar (Top Card Picks and Next Stop) now starts lower, level with
   the table of contents and article body, instead of up beside the
   title. On desktop the hero title centers over the image. The TOC
   starts collapsed on every screen (js/toc.js and the template's
   is-collapsed class); the header still toggles it open. */
@media (min-width: 1024px) {
	.mbb-post-hero .wp-block-post-title { text-align: center; max-width: 920px; margin-left: auto; margin-right: auto; }
	.mbb-post-hero .wp-block-post-featured-image img { width: 100%; }
}

/* ---- v0.3.49: footer disclosure on mobile (Advait, 2026-11-20) ----
   The footer group had no horizontal padding, so on phones the
   Advertiser Disclosure (and the copyright line under it) ran edge to
   edge. Mobile only: the footer content gets 1.25rem of side padding
   and the disclosure text centers. Desktop footer is unchanged. */
@media (max-width: 680px) {
	footer.wp-block-template-part > .wp-block-group { padding-left: 1.25rem; padding-right: 1.25rem; }
	#advertiser-disclosure { text-align: center; }
}

/* ---- v0.3.50: homepage buttons on mobile (Advait, 2026-11-20) ----
   The v0.3.40 card-page rule (body.page .wp-block-button__link at
   1.05rem with 0.85rem 2.1rem padding, written for the card pages'
   Learn More buttons) also catches the homepage, because the homepage
   is a page too, and it inflated the hero CTA and the quicknav pills.
   Scope the correction to body.home so card pages keep their larger
   Learn More buttons. Pills land around 32px tall, the CTA around
   40px, matching the ~34px pill target from the redesign spec. */
@media (max-width: 680px) {
	body.home .wp-block-post-content .wp-block-button__link { font-size: 0.92rem; padding: 0.55rem 1.3rem; }
	body.home .wp-block-post-content .mbb-quicknav .wp-block-button__link { font-size: 0.8rem; padding: 0.35rem 0.85rem; gap: 0.35rem; }
	body.home .wp-block-post-content .mbb-quicknav .wp-block-button__link::before { width: 12px; height: 12px; }
	body.home .wp-block-post-content .wp-block-buttons.mbb-quicknav { gap: 0.4rem; }
}

/* ---- v0.3.51: Join the Club button in the nav (Advait, 2026-11-20) ----
   The live site's menu carries a blue Join the Club CTA. The staging
   nav gets the same item (a normal menu item linking to Skool), and
   this styles any nav link to skool.com as the filled blue button, in
   the desktop header row and inside the mobile menu overlay. */
.wp-block-navigation .wp-block-navigation-item__content[href*="skool.com"] {
	background: #0E6BA8;
	color: #FFFFFF !important;
	border-radius: 999px;
	padding: 0.5rem 1.15rem;
	font-weight: 600;
}
.wp-block-navigation .wp-block-navigation-item__content[href*="skool.com"]:hover {
	background: #1A2B3C;
	color: #FFFFFF !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:has(> .wp-block-navigation-item__content[href*="skool.com"]) {
	margin-top: 1.25rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[href*="skool.com"] {
	display: inline-block;
	width: auto;
	text-align: center;
	padding: 0.65rem 1.5rem;
	font-size: 1rem;
	border-bottom: none;
}

/* ---- v0.3.52: Join the Club button hover on desktop (Advait, 2026-11-20) ----
   The v0.3.32 sweep underline is wrong on the filled pill button. On
   desktop the button drops the underline and instead rises on hover,
   the same lift as the sidebar cards and picks (v0.3.47). */
@media (min-width: 1024px) and (hover: hover) {
	.mbb-site-header .wp-block-navigation-item__content[href*="skool.com"] {
		transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
	}
	.mbb-site-header .wp-block-navigation-item__content[href*="skool.com"]::after {
		content: none;
	}
	.mbb-site-header .wp-block-navigation-item:hover > .wp-block-navigation-item__content[href*="skool.com"],
	.mbb-site-header .wp-block-navigation-item:focus-within > .wp-block-navigation-item__content[href*="skool.com"] {
		transform: translateY(-3px);
		box-shadow: 0 6px 14px rgba(26, 43, 60, 0.18);
		font-weight: 600;
	}
}
@media (prefers-reduced-motion: reduce) {
	.mbb-site-header .wp-block-navigation-item__content[href*="skool.com"] {
		transition: none;
	}
	.mbb-site-header .wp-block-navigation-item:hover > .wp-block-navigation-item__content[href*="skool.com"] {
		transform: none;
	}
}

/* ---- v0.3.53: smaller desktop post hero image (Advait, 2026-11-20) ----
   The v0.3.48 full-width hero made the featured image huge on desktop
   post pages. Cap it at 820px, centered, on desktop only. The template
   also moves the affiliate disclosure above the table of contents. */
@media (min-width: 1024px) {
	.mbb-post-hero .wp-block-post-featured-image {
		max-width: 820px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* v0.3.54: 7px corner rounding on featured images (post hero, post grids,
   and the Next Stop thumbnails in the sidebar and below the post). */
.wp-block-post-featured-image img {
	border-radius: 7px;
}
.mbb-kl-img img,
.mbb-kl-side-img img {
	border-radius: 7px;
}

/* v0.3.55: mobile card picks. Below desktop width the sidebar is hidden,
   and the full in-post card containers are too large, so single posts get
   a compact horizontally scrollable "My Card Picks" strip after the intro
   (inserted by a the_content filter in functions.php, filled by
   sidebar-picks.js from the same cards.json) and the in-post containers
   are hidden. Desktop is unchanged. */
.mbb-mobile-picks {
	display: none;
}
@media (max-width: 1023px) {
	.mbb-post-main [data-mbb-card] {
		display: none !important;
	}
	.mbb-mobile-picks {
		display: block;
		margin: 1.75rem 0;
	}
	.mbb-mobile-picks-heading {
		font-family: "Fraunces", Georgia, serif;
		font-size: 1.2rem;
		color: #1A2B3C;
		margin: 0 0 0.7rem;
	}
	.mbb-mobile-picks-row {
		display: flex;
		gap: 0.75rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding: 0.1rem 0.1rem 0.6rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}
	.mbb-mobile-picks .mbb-pick {
		flex: 0 0 172px;
		margin-bottom: 0;
		scroll-snap-align: start;
		border-radius: 12px;
	}
	.mbb-mobile-picks .mbb-pick-link {
		flex-direction: column;
		align-items: stretch;
		gap: 0.55rem;
	}
	.mbb-mobile-picks .mbb-pick-img {
		width: 100%;
		height: auto;
		border-radius: 7px;
	}
	.mbb-mobile-picks .mbb-pick-name {
		font-size: 0.9rem;
	}
	.mbb-mobile-picks .mbb-pick-offer {
		font-size: 0.84rem;
	}
	.mbb-mobile-picks .mbb-pick-cond {
		font-size: 0.74rem;
	}
}

/* v0.3.57: make the mobile picks strip read clearly (Advait, 2026-11-20).
   The base .mbb-pick styles live in the desktop-only media query, so on
   mobile the tiles had no internal layout and the in-post link treatment
   (bold black text, thick blue underline) turned the whole tile into one
   underlined blob. Define the tile fully here, beat the post-content link
   rule on specificity, turn Learn more into a real button, widen the
   tiles so the next one peeks in from the right edge, and add a Swipe
   hint next to the heading so the scroll is obvious. */
@media (max-width: 1023px) {
	.mbb-mobile-picks-head {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 1rem;
		margin-bottom: 0.7rem;
	}
	.mbb-mobile-picks-heading {
		margin: 0;
	}
	.mbb-mobile-picks-hint {
		font-size: 0.78rem;
		font-weight: 600;
		color: #0E6BA8;
		white-space: nowrap;
	}
	.mbb-mobile-picks .mbb-pick {
		flex-basis: 235px;
		background: #FFFFFF;
		border: 1px solid #E3EAF1;
		border-radius: 14px;
		padding: 0.8rem;
		box-sizing: border-box;
	}
	.wp-block-post-content .mbb-mobile-picks .mbb-pick-link {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0.6rem;
		color: #1A2B3C;
		font-weight: 400;
		text-decoration: none;
	}
	.mbb-mobile-picks .mbb-pick-body {
		display: flex;
		flex-direction: column;
		gap: 0.28rem;
	}
	.mbb-mobile-picks .mbb-pick-name {
		font-family: "Fraunces", Georgia, serif;
		font-weight: 600;
		font-size: 0.95rem;
		line-height: 1.3;
		color: #1A2B3C;
	}
	.mbb-mobile-picks .mbb-pick-offer {
		font-size: 0.88rem;
		font-weight: 700;
		color: #0E6BA8;
		line-height: 1.3;
	}
	.mbb-mobile-picks .mbb-pick-cond {
		font-size: 0.76rem;
		font-weight: 400;
		color: #5A6B7C;
		line-height: 1.35;
	}
	.mbb-mobile-picks .mbb-pick-cta {
		display: inline-block;
		align-self: flex-start;
		background: #0E6BA8;
		color: #FFFFFF;
		font-size: 0.8rem;
		font-weight: 700;
		line-height: 1.2;
		padding: 0.5rem 1.05rem;
		border-radius: 999px;
		margin-top: 0.4rem;
	}
}

/* ---- v0.3.59: mobile post rows, content vertically centred ---- */
/* Advait (2026-11-21): on the homepage mobile list the thumb and title
   sat low in each row, close to the divider below and far from the one
   above. Two causes: WordPress flow-layout block-gap margins land on the
   row items (extra space at the top of each row), and the row grid still
   carried a phantom second row for the date area even on rows with no
   date, which skewed the vertical balance. Fix: zero the row margins,
   and for rows without a date collapse the grid to a single row so
   align-items: center centres thumb and title exactly between the
   dividers. Dated rows (blog index) keep their two-row layout. */
@media (max-width: 680px) {
	.mbb-post-grid .wp-block-post-template > li {
		margin: 0 !important;
		align-items: center;
	}
	.mbb-post-grid .wp-block-post-template > li:not(:has(.wp-block-post-date)) {
		grid-template-areas: "img title";
		grid-template-rows: auto;
	}
}

/* v0.3.60: header logo image sizing + footer links */
.wp-block-site-logo img { max-height: 56px; width: auto; }
@media (max-width: 680px) { .wp-block-site-logo img { max-height: 46px; } }
.mbb-site-footer a { color: #BEDDFD; }

/* v0.3.61: About page pieces (stats band, polaroid grid, belief numbers, story lede) */
.mbb-about-stats { background: #1A2B3C; border-radius: 14px; padding: 1.6rem 1.25rem; }
.mbb-about-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; text-align: center; }
@media (min-width: 1024px) { .mbb-about-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.mbb-about-stats .value { font-family: Fraunces, serif; font-size: 2.3rem; line-height: 1.1; color: #FAF6EE; margin: 0; }
.mbb-about-stats .label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #BEDDFD; margin: 0.3rem 0 0; }
.mbb-polaroid-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.mbb-polaroid-grid figure { margin: 0; }
.mbb-polaroid-grid img { width: 100%; height: auto; display: block; }
@media (min-width: 1024px) { .mbb-polaroid-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } .mbb-polaroid-grid > *:nth-child(5) { grid-column: 2 / 3; } }
.mbb-belief-num { font-family: Fraunces, serif; font-size: 2.6rem; line-height: 1; color: #0E6BA8; margin: 0 0 0.2rem; }
.mbb-belief-title { font-family: Fraunces, serif; font-size: 1.4rem; line-height: 1.25; color: #1A2B3C; margin: 0 0 0.4rem; }
.mbb-lede { font-family: Fraunces, serif; font-style: italic; font-size: 1.18rem; line-height: 1.5; color: #1A2B3C; }

/* v0.3.62: About page tweaks per Advait (smaller rectangular main photo, 4 polaroids on mobile, space before rule numbers) */
.mbb-about-photo { max-width: 540px; margin-left: auto; margin-right: auto; }
.mbb-about-photo img { border-radius: 7px; width: 100%; height: auto; }
@media (max-width: 1023px) { .mbb-polaroid-grid > *:nth-child(5) { display: none; } }
.mbb-belief-num { margin-top: 1.9rem; }

/* v0.3.63: breathing room between the header and a page's opening eyebrow (About, Privacy) */
body.page .wp-block-post-content > p.mbb-eyebrow:first-child { margin-top: 2.75rem; }
@media (max-width: 680px) { body.page .wp-block-post-content > p.mbb-eyebrow:first-child { margin-top: 2rem; } }

/* v0.3.64: footer disclosure side padding on desktop too (was mobile-only in v0.3.49) */
@media (min-width: 681px) { footer.wp-block-template-part > .wp-block-group { padding-left: 1.5rem; padding-right: 1.5rem; } }

/* v0.3.66: calmer card tiles (Advait: too bold and loud). Text weights drop so the View offer CTA is the clear draw. Overrides the card widget's injected styles for both the /cards grid (#mbb-cards) and in-post containers (.mbb-card-widget). */
body #mbb-cards .mbbc-name, body .mbb-card-widget .mbbc-name { font-weight: 600 !important; font-size: 18px; }
body #mbb-cards .mbbc-pts, body .mbb-card-widget .mbbc-pts { font-weight: 600 !important; font-size: 20px; }
body #mbb-cards .mbbc-acc-sum, body .mbb-card-widget .mbbc-acc-sum { font-weight: 600 !important; }
body #mbb-cards .mbbc-lab, body .mbb-card-widget .mbbc-lab { font-weight: 700 !important; }
body #mbb-cards .mbbc-review, body .mbb-card-widget .mbbc-review { font-weight: 600 !important; }
body #mbb-cards .mbbc-card, body .mbb-card-widget .mbbc-card { box-shadow: 0 4px 18px rgba(23,40,58,.06); }
