/* ==========================================================================
   Mzansi Writers Design
   Site colours: charcoal #27272A (main), ink #16181A, blue #257BC1 (accent)
   Styling only. No content is changed.
   ========================================================================== */

body.mwd {
	--mw-charcoal: #27272a;
	--mw-ink: #16181a;
	--mw-blue: #257bc1;
	--mw-blue-dark: #2270b0;
	--mw-blue-soft: #eef4fa;
	--mw-bg: #f4f4f5;
	--mw-card: #ffffff;
	--mw-border: #e4e4e7;
	--mw-text: #3f3f46;
	--mw-muted: #71717a;
	--mw-radius: 14px;
	--mw-shadow: 0 1px 2px rgba(22, 24, 26, .04), 0 8px 24px rgba(22, 24, 26, .05);
	--mw-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mw-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	background: var(--mw-bg);
	color: var(--mw-text);
	font-family: var(--mw-body);
	-webkit-font-smoothing: antialiased;
}

body.mwd #page,
body.mwd .cm-content {
	background: transparent;
}

body.mwd .cm-container {
	max-width: 1200px;
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */
.mwd-topbar {
	background: #16181a;
	color: #e4e4e7;
	font-family: "Inter", system-ui, sans-serif;
	font-size: 13px;
	line-height: 1.4;
}

.mwd-topbar__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 9px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.mwd-topbar__tagline {
	margin: 0 !important;
	padding: 0;
	font-weight: 500;
	color: #e4e4e7;
	font-size: 13px;
}

.mwd-topbar__wa {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #ffffff !important;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
}

.mwd-topbar__wa svg { color: #25d366; }
.mwd-topbar__wa:hover span { text-decoration: underline; }

/* The tagline now sits in the top bar. */
body.mwd .cm-site-description {
	display: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
body.mwd .cm-header-1 {
	background: #ffffff;
	padding: 20px 0;
	border-bottom: 0;
}

body.mwd .cm-header-1 .cm-row {
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

body.mwd .cm-header-col-1,
body.mwd .cm-header-col-2 {
	float: none;
	width: auto;
	padding: 0;
	margin: 0;
}

body.mwd .cm-site-title {
	margin: 0;
	padding: 0;
	font-family: var(--mw-head);
	font-size: 30px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

body.mwd .cm-site-title a {
	color: var(--mw-ink);
	text-decoration: none;
}

body.mwd .cm-site-title .mwd-accent {
	color: var(--mw-blue);
	position: relative;
	display: inline-block;
}

body.mwd .cm-site-title .mwd-accent::after {
	content: "";
	position: absolute;
	left: 2%;
	right: -2%;
	bottom: -7px;
	height: 7px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 C 35 2, 85 2, 118 5' fill='none' stroke='%2327272a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* Search */
body.mwd #header-right-sidebar .widget { margin: 0; padding: 0; }

body.mwd .advgb-search-bar-inner {
	width: 380px !important;
	max-width: 100%;
	display: flex;
	align-items: stretch;
	gap: 8px;
}

body.mwd .advgb-search-bar {
	flex: 1;
	display: flex;
	align-items: center;
	background: var(--mw-bg);
	border: 1px solid var(--mw-border) !important;
	border-radius: 10px !important;
	padding: 0 12px;
}

body.mwd .advgb-search-bar-icon { color: var(--mw-muted); display: flex; }

body.mwd .advgb-search-bar-input {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: var(--mw-body);
	font-size: 14px;
	padding: 11px 8px !important;
	width: 100%;
	color: var(--mw-ink);
}

body.mwd .advgb-search-bar-button {
	background: var(--mw-blue) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 10px !important;
	font-family: var(--mw-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	padding: 0 18px !important;
	height: 100%;
	min-height: 42px;
	cursor: pointer;
	transition: background .15s ease;
}

body.mwd .advgb-search-bar-button:hover { background: var(--mw-blue-dark) !important; box-shadow: none !important; }

/* --------------------------------------------------------------------------
   Main navigation (charcoal bar, the site's main colour)
   -------------------------------------------------------------------------- */
body.mwd .cm-header-2,
body.mwd #cm-primary-nav {
	background: var(--mw-charcoal);
	border-top: 3px solid var(--mw-blue);
	border-bottom: 0;
	box-shadow: none;
}

body.mwd #cm-primary-nav .cm-row { align-items: center; }

@media (min-width: 769px) {
	body.mwd #cm-primary-nav ul#menu-main-menu {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0;
		padding: 4px 0;
	}
}

body.mwd #cm-primary-nav ul#menu-main-menu > li {
	float: none;
	margin: 0;
	padding: 0;
	background: transparent;
}

body.mwd #cm-primary-nav ul#menu-main-menu > li > a {
	font-family: var(--mw-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: none;
	color: #f4f4f5;
	padding: 11px 13px;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	transition: background .15s ease, color .15s ease;
	position: relative;
}

body.mwd #cm-primary-nav ul#menu-main-menu > li:hover > a,
body.mwd #cm-primary-nav ul#menu-main-menu > li > a:focus {
	background: rgba(255, 255, 255, .08);
	color: #ffffff;
}

body.mwd #cm-primary-nav ul#menu-main-menu > li.current-menu-item > a,
body.mwd #cm-primary-nav ul#menu-main-menu > li.current-menu-ancestor > a,
body.mwd #cm-primary-nav ul#menu-main-menu > li.current_page_item > a {
	background: transparent;
	color: #ffffff;
}

body.mwd #cm-primary-nav ul#menu-main-menu > li.current-menu-item > a::after,
body.mwd #cm-primary-nav ul#menu-main-menu > li.current-menu-ancestor > a::after,
body.mwd #cm-primary-nav ul#menu-main-menu > li.current_page_item > a::after {
	content: "";
	position: absolute;
	left: 13px;
	right: 13px;
	bottom: 3px;
	height: 3px;
	border-radius: 3px;
	background: var(--mw-blue);
}

/* The old cyan pill item now matches the rest of the menu. */
body.mwd #cm-primary-nav ul#menu-main-menu > li.highlighted-menu {
	background: transparent !important;
	border-radius: 0 !important;
}

body.mwd #cm-primary-nav li.highlighted-menu > a {
	background: transparent !important;
	border-radius: 8px !important;
	color: #f4f4f5 !important;
}

body.mwd #cm-primary-nav .cm-submenu-toggle svg,
body.mwd #cm-primary-nav .cm-submenu-toggle { fill: #a1a1aa; color: #a1a1aa; }

/* Dropdowns */
body.mwd #cm-primary-nav .sub-menu {
	background: #ffffff;
	border: 1px solid var(--mw-border);
	border-top: 3px solid var(--mw-blue);
	border-radius: 0 0 12px 12px;
	box-shadow: 0 16px 40px rgba(22, 24, 26, .14);
	padding: 6px;
	min-width: 260px;
}

body.mwd #cm-primary-nav .sub-menu li { border: 0; }

body.mwd #cm-primary-nav .sub-menu li a {
	color: var(--mw-ink);
	font-family: var(--mw-body);
	font-size: 14px;
	font-weight: 500;
	text-transform: none;
	padding: 9px 12px;
	border-radius: 8px;
	border: 0;
}

body.mwd #cm-primary-nav .sub-menu li:hover > a {
	background: var(--mw-blue-soft);
	color: var(--mw-blue);
}

body.mwd #cm-primary-nav .sub-menu .sub-menu { border-radius: 12px; top: -6px; }

/* Mobile menu */
body.mwd .cm-menu-toggle { color: #fff; fill: #fff; }
body.mwd .cm-menu-toggle svg { fill: #fff; }

@media (max-width: 768px) {
	body.mwd #cm-primary-nav ul#menu-main-menu { padding: 6px 0 10px; }
	body.mwd #cm-primary-nav ul#menu-main-menu > li > a { display: block; border-radius: 0; padding: 12px 16px; }
	body.mwd #cm-primary-nav .sub-menu { box-shadow: none; border: 0; border-radius: 0; background: #1f1f22; padding: 0; }
	body.mwd #cm-primary-nav .sub-menu li a { color: #e4e4e7; padding-left: 28px; border-radius: 0; }
	body.mwd #cm-primary-nav .sub-menu li:hover > a { background: rgba(255, 255, 255, .06); color: #fff; }
	body.mwd #cm-primary-nav ul#menu-main-menu > li.current-menu-item > a::after { display: none; }
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
body.mwd .cm-content {
	padding-top: 36px;
	padding-bottom: 56px;
}

body.mwd #cm-primary article,
body.mwd .cm-posts article {
	background: var(--mw-card);
	border: 1px solid var(--mw-border);
	border-radius: var(--mw-radius);
	box-shadow: var(--mw-shadow);
	padding: 36px 40px;
	margin-bottom: 24px;
	overflow: visible;
}

/* When the article has been split into cards, the cards carry the look. */
body.mwd #cm-primary article.mwd-sectioned {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}

body.mwd #cm-primary article.mwd-sectioned .cm-post-content,
body.mwd #cm-primary article.mwd-sectioned .cm-entry-summary {
	padding: 0;
	margin: 0;
	background: transparent;
}

.mwd-section {
	background: #ffffff;
	border: 1px solid #e4e4e7;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(22, 24, 26, .04), 0 8px 24px rgba(22, 24, 26, .05);
	padding: 34px 40px;
	margin: 0 0 22px;
}

.mwd-section > :last-child { margin-bottom: 0 !important; }
.mwd-section--blank { display: none; }

/* Intro card */
.mwd-section--intro {
	border-top: 4px solid #27272a;
}

/* Homepage hero */
body.mwd .mwd-hero {
	position: relative;
	overflow: hidden;
	border-top: 0;
	background:
		radial-gradient(circle at 100% 0, rgba(37, 123, 193, .10), transparent 42%),
		linear-gradient(135deg, #ffffff 0%, #f7f7f8 60%, #eef4fa 100%);
	padding: 48px 48px 40px;
}

body.mwd .mwd-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 5px;
	background: linear-gradient(90deg, #27272a 0 70%, #257bc1 70% 100%);
}

body.mwd.home #cm-primary article .cm-entry-header .cm-entry-title,
body.mwd .mwd-hero .cm-entry-header .cm-entry-title {
	font-family: var(--mw-head);
	font-size: 13px !important;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mw-blue);
	margin: 0 0 14px;
	padding: 0;
	border: 0;
}

body.mwd .mwd-hero .cm-entry-header .cm-entry-title::after { display: none; }

body.mwd .mwd-hero h1 {
	font-size: clamp(32px, 4.4vw, 48px);
	line-height: 1.1;
	max-width: 26ch;
	margin-bottom: 22px;
}

body.mwd .mwd-hero p { font-size: 17px; }

/* Sidebar column */
body.mwd .cm-secondary { padding-top: 0; }

/* --------------------------------------------------------------------------
   Typography inside content
   -------------------------------------------------------------------------- */
body.mwd .cm-entry-summary,
body.mwd .cm-entry-summary p,
body.mwd .cm-entry-summary li,
body.mwd .cm-entry-summary td {
	font-family: var(--mw-body);
	font-size: 16px;
	line-height: 1.8;
	color: var(--mw-text);
}

body.mwd .cm-entry-summary p { margin: 0 0 18px; }

/* Some service pages carry their own <style> that centres text; keep it left-aligned. */
body.mwd .cm-entry-summary p:not(.has-text-align-center):not(.has-text-align-right),
body.mwd .cm-entry-summary li,
body.mwd .cm-entry-summary h1:not(.has-text-align-center),
body.mwd .cm-entry-summary h2:not(.has-text-align-center),
body.mwd .cm-entry-summary h3:not(.has-text-align-center),
body.mwd .cm-entry-summary .container,
body.mwd .cm-entry-summary .contact-container,
body.mwd .cm-entry-summary .faq-container {
	text-align: left;
}

/* ColorMag wraps headings in .block-title with its own underline. */
body.mwd .cm-entry-summary .block-title {
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

body.mwd .cm-entry-summary strong,
body.mwd .cm-entry-summary b { color: var(--mw-ink); font-weight: 700; }

body.mwd .cm-entry-title,
body.mwd .cm-entry-summary h1,
body.mwd .cm-entry-summary h2,
body.mwd .cm-entry-summary h3,
body.mwd .cm-entry-summary h4,
body.mwd .cm-entry-summary h5,
body.mwd .cm-entry-summary h6,
body.mwd .cm-secondary h2,
body.mwd .cm-secondary h3 {
	font-family: var(--mw-head);
	color: var(--mw-ink);
	letter-spacing: -0.015em;
}

/* Page / post title */
body.mwd #cm-primary .cm-entry-header .cm-entry-title {
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 18px;
	padding: 0;
	text-align: left;
}

body.mwd .cm-entry-summary h1 {
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 18px;
}

body.mwd .cm-entry-summary h2 {
	font-size: clamp(23px, 2.4vw, 28px);
	font-weight: 800;
	line-height: 1.25;
	margin: 6px 0 22px;
	padding: 0 0 14px;
	position: relative;
	text-align: left;
}

body.mwd .cm-entry-summary h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 44px;
	height: 3px;
	border-radius: 3px;
	background: var(--mw-blue);
}

body.mwd .cm-entry-summary h3 {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	margin: 26px 0 12px;
}

body.mwd .cm-entry-summary h4 { font-size: 17px; font-weight: 700; margin: 22px 0 10px; }

body.mwd .cm-entry-summary h2 strong,
body.mwd .cm-entry-summary h3 strong { font-weight: inherit; color: inherit; }

/* Links */
body.mwd .cm-entry-summary a {
	color: var(--mw-blue);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

body.mwd .cm-entry-summary a:hover { color: var(--mw-blue-dark); }

/* Lists */
body.mwd .cm-entry-summary ul:not([class*="toc"]):not(.wp-block-latest-posts):not(.contact-list) {
	list-style: none;
	padding-left: 0;
	margin: 0 0 20px;
}

body.mwd .cm-entry-summary ul:not([class*="toc"]):not(.wp-block-latest-posts):not(.contact-list) > li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 8px;
}

body.mwd .cm-entry-summary ul:not([class*="toc"]):not(.wp-block-latest-posts):not(.contact-list) > li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .55em;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--mw-blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-4.9' fill='none' stroke='%23257bc1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 12px 12px;
}

body.mwd .cm-entry-summary ol { padding-left: 22px; margin: 0 0 20px; }
body.mwd .cm-entry-summary ol > li { margin-bottom: 8px; padding-left: 4px; }
body.mwd .cm-entry-summary ol > li::marker { color: var(--mw-blue); font-weight: 700; }

/* Images */
body.mwd .cm-entry-summary img { border-radius: 10px; }
body.mwd .cm-entry-summary img.emoji { border-radius: 0; }
body.mwd .cm-entry-summary figure { margin: 6px 0 24px; }
body.mwd .cm-entry-summary figcaption { font-size: 13px; color: var(--mw-muted); }

/* Separators */
body.mwd .cm-entry-summary hr,
body.mwd .cm-entry-summary .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--mw-border);
	margin: 28px 0;
	opacity: 1;
}

/* Tables */
body.mwd .cm-entry-summary .wp-block-table,
body.mwd .cm-entry-summary table {
	margin: 0 0 24px;
}

body.mwd .cm-entry-summary table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--mw-border);
	border-radius: 12px;
	overflow: hidden;
	font-size: 15px;
}

body.mwd .cm-entry-summary table th,
body.mwd .cm-entry-summary table thead td {
	background: var(--mw-charcoal);
	color: #fff;
	font-family: var(--mw-head);
	font-weight: 700;
	text-align: left;
}

body.mwd .cm-entry-summary table th,
body.mwd .cm-entry-summary table td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--mw-border);
	vertical-align: top;
	line-height: 1.6;
}

body.mwd .cm-entry-summary table tr:last-child td { border-bottom: 0; }
body.mwd .cm-entry-summary table tbody tr:nth-child(even) td { background: #fafafa; }

/* Quotes */
body.mwd .cm-entry-summary blockquote {
	border-left: 4px solid var(--mw-blue);
	background: var(--mw-blue-soft);
	border-radius: 0 12px 12px 0;
	padding: 18px 22px;
	margin: 0 0 22px;
	font-style: normal;
}

/* Buttons */
body.mwd .wp-block-button__link,
body.mwd .cm-entry-summary .wp-element-button,
body.mwd .cm-entry-button,
body.mwd .cm-entry-summary input[type="submit"],
body.mwd .cm-entry-summary button[type="submit"] {
	background: var(--mw-blue);
	color: #fff !important;
	border: 0;
	border-radius: 10px;
	font-family: var(--mw-body);
	font-weight: 600;
	font-size: 15px;
	padding: 12px 22px;
	text-decoration: none !important;
	transition: background .15s ease, transform .15s ease;
}

body.mwd .wp-block-button__link:hover,
body.mwd .cm-entry-button:hover { background: var(--mw-blue-dark); transform: translateY(-1px); }

/* Blog posts written with inline Georgia styles: use the site fonts. */
body.mwd .cm-entry-summary [style*="Georgia"] {
	font-family: var(--mw-body) !important;
}

body.mwd .cm-entry-summary div[style*="padding:20px"][style*="border-radius:12px"] {
	padding: 0 !important;
	background: transparent !important;
}

body.mwd .cm-entry-summary h2[style],
body.mwd .cm-entry-summary h3[style] {
	font-family: var(--mw-head) !important;
	color: var(--mw-ink) !important;
	border-bottom: 0 !important;
}

body.mwd .cm-entry-summary h2[style] { padding-bottom: 14px !important; }

body.mwd .cm-entry-summary strong[style*="1F3864"] { color: var(--mw-ink) !important; }

/* Table of contents (Easy TOC) */
body.mwd #ez-toc-container {
	background: var(--mw-bg);
	border: 1px solid var(--mw-border);
	border-radius: 12px;
	box-shadow: none;
	padding: 16px 20px;
	margin: 6px 0 24px;
	width: 100%;
}

body.mwd #ez-toc-container .ez-toc-title {
	font-family: var(--mw-head);
	font-weight: 700;
	color: var(--mw-ink);
}

body.mwd #ez-toc-container a { color: var(--mw-text); text-decoration: none; }
body.mwd #ez-toc-container a:hover { color: var(--mw-blue); }

/* --------------------------------------------------------------------------
   Custom HTML boxes used on service pages (benefits, contact, FAQ)
   -------------------------------------------------------------------------- */
body.mwd .cm-entry-summary .container { max-width: 100%; padding: 0; margin: 0; text-align: left; background: transparent; box-shadow: none; }

body.mwd .cm-entry-summary .benefits {
	display: grid !important;
	flex-wrap: initial;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
	margin: 18px 0 6px;
	padding: 0;
}

body.mwd .cm-entry-summary .benefit-box {
	background: var(--mw-bg);
	border: 1px solid var(--mw-border);
	border-left: 4px solid var(--mw-blue);
	border-radius: 12px;
	box-shadow: none;
	padding: 16px 18px !important;
	margin: 0 !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	flex: none !important;
	text-align: left;
}

body.mwd .cm-entry-summary .benefit-box p { margin: 0; font-size: 15px; line-height: 1.6; }

body.mwd .cm-entry-summary .contact-container {
	max-width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
	border: 0;
	text-align: left;
}

body.mwd .cm-entry-summary .contact-list {
	list-style: none;
	padding: 0;
	margin: 0 0 18px;
	display: grid;
	gap: 8px;
}

body.mwd .cm-entry-summary .contact-list li {
	background: var(--mw-bg);
	border-radius: 10px;
	padding: 10px 14px;
	margin: 0;
	font-size: 15px;
}

body.mwd .cm-entry-summary .contact-info {
	font-weight: 600;
	color: var(--mw-ink);
}

body.mwd .cm-entry-summary .whatsapp-btn,
body.mwd .cm-entry-summary a[href*="wa.me"].whatsapp-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #25d366;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 15px;
	padding: 12px 22px;
	border-radius: 999px;
	margin: 4px 0 20px;
	box-shadow: 0 6px 16px rgba(37, 211, 102, .25);
	transition: transform .15s ease, box-shadow .15s ease;
}

body.mwd .cm-entry-summary .whatsapp-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(37, 211, 102, .3); }

body.mwd .cm-entry-summary .form-container {
	background: var(--mw-bg);
	border: 1px solid var(--mw-border);
	border-radius: 12px;
	padding: 20px 22px;
	margin: 8px 0 0;
}

/* FAQ */
body.mwd .cm-entry-summary .faq-container {
	max-width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
	border: 0;
}

body.mwd .cm-entry-summary .faq-title { text-align: left; }

body.mwd .cm-entry-summary .faq-item {
	border: 1px solid var(--mw-border);
	border-radius: 12px;
	margin: 0 0 10px;
	background: #fff;
	overflow: hidden;
	box-shadow: none;
}

body.mwd .cm-entry-summary .faq-question {
	position: relative;
	cursor: pointer;
	background: #fff;
	color: var(--mw-ink);
	font-family: var(--mw-head);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.45;
	padding: 16px 52px 16px 20px;
	border: 0;
	margin: 0;
	transition: background .15s ease;
}

body.mwd .cm-entry-summary .faq-question:hover { background: #fafafa; }

body.mwd .cm-entry-summary .faq-question::after {
	content: "";
	position: absolute;
	right: 20px;
	top: 50%;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--mw-blue);
	border-bottom: 2px solid var(--mw-blue);
	transform: translateY(-70%) rotate(45deg);
}

body.mwd .cm-entry-summary .faq-answer {
	background: var(--mw-bg);
	color: var(--mw-text);
	font-size: 15px;
	line-height: 1.75;
	padding: 14px 20px 16px;
	border-top: 1px solid var(--mw-border);
	margin: 0;
}

/* HubSpot forms inside content and sidebar */
body.mwd .hbspt-form .hs-input {
	border: 1px solid var(--mw-border) !important;
	border-radius: 10px !important;
	padding: 10px 12px !important;
	font-family: var(--mw-body);
}

body.mwd .hbspt-form .hs-button {
	background: var(--mw-blue) !important;
	border: 0 !important;
	border-radius: 10px !important;
	font-family: var(--mw-body);
	font-weight: 600 !important;
	padding: 12px 22px !important;
}

/* --------------------------------------------------------------------------
   Single posts: category label, meta
   -------------------------------------------------------------------------- */
body.mwd .cm-entry-header-meta { margin: 0 0 12px; }

body.mwd .cm-post-categories a {
	display: inline-block;
	background: var(--mw-blue-soft);
	color: var(--mw-blue) !important;
	font-family: var(--mw-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 999px;
	text-decoration: none;
	border: 0;
}

body.mwd .cm-post-categories a[href*="/category/blog/"] {
	background: var(--mw-charcoal);
	color: #fff !important;
}

body.mwd .cm-below-entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 13px;
	color: var(--mw-muted);
	padding: 0 0 18px;
	margin: 0 0 22px;
	border-bottom: 1px solid var(--mw-border);
}

body.mwd .cm-below-entry-meta a { color: var(--mw-muted); text-decoration: none; }
body.mwd .cm-below-entry-meta svg { fill: var(--mw-muted); }

/* Example paper pages get a slim blue top edge, blog posts a charcoal one. */
body.mwd.mwd-kind-paper .mwd-section--intro { border-top-color: var(--mw-blue); }

/* --------------------------------------------------------------------------
   Archives (category pages such as /category/example-papers/)
   -------------------------------------------------------------------------- */
body.mwd .cm-page-header,
body.mwd .page-header {
	background: var(--mw-charcoal);
	border-radius: var(--mw-radius);
	padding: 26px 32px;
	margin: 0 0 24px;
	border: 0;
}

body.mwd .cm-page-header .cm-page-title,
body.mwd .page-header .page-title,
body.mwd .cm-page-header h1 {
	font-family: var(--mw-head);
	font-weight: 800;
	font-size: clamp(24px, 3vw, 32px);
	color: #fff;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

body.mwd .cm-page-header .cm-page-title span,
body.mwd .page-header .page-title span { background: transparent; color: #fff; padding: 0; }

body.mwd .cm-page-header .taxonomy-description,
body.mwd .cm-page-header .archive-description { color: #d4d4d8; margin-top: 8px; }

body.mwd:not(.wp-singular):not(.single):not(.page) #cm-primary .cm-posts article {
	padding: 24px 26px;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

body.mwd:not(.wp-singular):not(.single):not(.page) #cm-primary .cm-posts article:hover {
	border-color: #d4d4d8;
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(22, 24, 26, .05), 0 14px 30px rgba(22, 24, 26, .08);
}

body.mwd:not(.wp-singular):not(.single):not(.page) #cm-primary .cm-posts article .cm-post-content { padding: 0; }
body.mwd:not(.wp-singular):not(.single):not(.page) #cm-primary .cm-posts article .cm-entry-header { margin: 0 0 10px; }

body.mwd:not(.wp-singular):not(.single):not(.page) #cm-primary .cm-posts article .cm-entry-header .cm-entry-title,
body.mwd:not(.wp-singular):not(.single):not(.page) #cm-primary .cm-posts article .cm-entry-title a {
	margin: 0 0 8px;
	line-height: 1.35 !important;
	font-family: var(--mw-head);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--mw-ink);
	text-decoration: none;
}

body.mwd:not(.wp-singular):not(.single):not(.page) #cm-primary .cm-posts article .cm-entry-title a:hover { color: var(--mw-blue); }

body.mwd:not(.wp-singular):not(.single):not(.page) #cm-primary .cm-posts article .cm-entry-summary p { font-size: 15px; line-height: 1.7; }

body.mwd .cm-entry-button,
body.mwd a.cm-entry-button {
	display: inline-block;
	font-size: 14px;
	padding: 10px 18px;
}

body.mwd .cm-entry-button span { color: #fff; }

/* Pagination */
body.mwd .navigation .nav-links a,
body.mwd .navigation .nav-links span,
body.mwd .default-wp-page a,
body.mwd .page-numbers {
	border-radius: 10px;
	border: 1px solid var(--mw-border);
	background: #fff;
	color: var(--mw-ink);
	font-weight: 600;
}

body.mwd .page-numbers.current {
	background: var(--mw-charcoal);
	border-color: var(--mw-charcoal);
	color: #fff;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
body.mwd #cm-secondary .widget,
body.mwd .cm-secondary .widget {
	background: #fff;
	border: 1px solid var(--mw-border);
	border-radius: var(--mw-radius);
	box-shadow: var(--mw-shadow);
	padding: 22px 24px;
	margin: 0 0 20px;
}

/* A heading-only widget joins the widget under it to form one card. */
body.mwd #cm-secondary .widget:has(> .wp-block-heading:only-child),
body.mwd #cm-secondary .widget:has(> h2:only-child),
body.mwd #cm-secondary .widget:has(> .block-title:only-child) {
	border-bottom: 0;
	border-radius: var(--mw-radius) var(--mw-radius) 0 0;
	box-shadow: none;
	padding-bottom: 0;
	margin-bottom: 0;
	border-top: 4px solid var(--mw-charcoal);
}

body.mwd #cm-secondary .widget:has(> .wp-block-heading:only-child) + .widget,
body.mwd #cm-secondary .widget:has(> h2:only-child) + .widget,
body.mwd #cm-secondary .widget:has(> .block-title:only-child) + .widget {
	border-top: 0;
	border-radius: 0 0 var(--mw-radius) var(--mw-radius);
	padding-top: 6px;
}

/* "Example Papers" list + "See More" link read as one card */
body.mwd #cm-secondary .widget_recent_entries:has(+ .widget_text) {
	border-radius: 0;
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 4px;
	box-shadow: none;
}

body.mwd #cm-secondary .widget_recent_entries + .widget_text {
	border-top: 0;
	border-radius: 0 0 var(--mw-radius) var(--mw-radius);
	padding-top: 8px;
}

body.mwd .cm-secondary .wp-block-heading,
body.mwd .cm-secondary .widget-title,
body.mwd .cm-secondary .widget h2 {
	font-family: var(--mw-head);
	font-size: 18px;
	font-weight: 800;
	color: var(--mw-ink);
	background: transparent;
	border: 0;
	padding: 0 0 14px;
	margin: 0;
	text-align: left;
	position: relative;
	display: block;
	background-image: none !important;
	box-shadow: none !important;
	border-bottom: 0 !important;
}

body.mwd .cm-secondary .block-title,
body.mwd #cm-secondary .block-title {
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

body.mwd .cm-secondary .wp-block-heading::before,
body.mwd .cm-secondary .widget-title::before { display: none; }

body.mwd .cm-secondary .wp-block-heading span,
body.mwd .cm-secondary .widget-title span,
body.mwd .cm-secondary .wp-block-heading strong {
	background: transparent !important;
	color: var(--mw-ink) !important;
	padding: 0 !important;
	font-weight: 800;
}

body.mwd .cm-secondary .wp-block-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 4px;
	width: 36px;
	height: 3px;
	border-radius: 3px;
	background: var(--mw-blue);
}

body.mwd .cm-secondary .wp-block-latest-posts {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.mwd .cm-secondary .wp-block-latest-posts li {
	position: relative;
	padding: 12px 0 12px 30px;
	margin: 0;
	border-bottom: 1px solid #f0f0f1;
	text-align: left;
}

body.mwd .cm-secondary .wp-block-latest-posts li:last-child { border-bottom: 0; }

body.mwd .cm-secondary .wp-block-latest-posts li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 14px;
	width: 20px;
	height: 20px;
	border-radius: 6px;
	background: var(--mw-blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23257bc1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E") no-repeat center / 13px 13px;
}

body.mwd .cm-secondary .wp-block-latest-posts__post-title {
	color: var(--mw-ink);
	font-family: var(--mw-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
}

body.mwd .cm-secondary .wp-block-latest-posts__post-title:hover { color: var(--mw-blue); }

body.mwd .cm-secondary .widget_text p,
body.mwd .cm-secondary .widget p { margin: 0; text-align: left; }

body.mwd .cm-secondary .widget_text a {
	color: var(--mw-blue);
	font-size: 14px;
	text-decoration: none;
}

body.mwd .cm-secondary .widget_text a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
body.mwd .cm-footer,
body.mwd .cm-footer-bar {
	background: #16181a;
	border-top: 3px solid var(--mw-blue);
}

body.mwd .cm-footer-bar { border-top: 0; padding: 26px 0; }

body.mwd .cm-footer-bar .copyright,
body.mwd .cm-footer-bar .copyright span {
	color: #a1a1aa;
	font-family: var(--mw-body);
	font-size: 13px;
	line-height: 1.8;
}

body.mwd .cm-footer-bar .copyright a,
body.mwd .cm-footer-bar .copyright a span { color: #ffffff; text-decoration: none; }
body.mwd .cm-footer-bar .copyright a:hover span { color: #8fc1ea; }

body.mwd #scroll-up {
	background: var(--mw-charcoal);
	border-radius: 10px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	body.mwd .advgb-search-bar-inner { width: 320px !important; }
}

@media (max-width: 768px) {
	.mwd-topbar__inner { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 16px; }
	.mwd-topbar__tagline { font-size: 12px; }

	body.mwd .cm-header-1 { padding: 14px 0; }
	body.mwd .cm-header-1 .cm-row { flex-direction: column; align-items: flex-start; }
	body.mwd .cm-site-title { font-size: 26px; }
	body.mwd .advgb-search-bar-inner { width: 100% !important; }
	body.mwd .cm-header-col-2,
	body.mwd #header-right-sidebar,
	body.mwd .advgb-search-bar-wrapper { width: 100%; }

	body.mwd .cm-content { padding-top: 20px; }
	body.mwd #cm-primary,
	body.mwd #cm-secondary { padding-left: 0; padding-right: 0; box-sizing: border-box; max-width: 100%; }

	body.mwd #cm-primary article,
	body.mwd:not(.wp-singular):not(.single):not(.page) #cm-primary .cm-posts article { padding: 22px 20px; }

	.mwd-section { padding: 24px 20px; border-radius: 12px; }
	body.mwd .mwd-hero { padding: 32px 22px 26px; }

	body.mwd .cm-entry-summary,
	body.mwd .cm-entry-summary p,
	body.mwd .cm-entry-summary li { font-size: 15.5px; }

	body.mwd .cm-entry-summary table { display: block; overflow-x: auto; }
}
