/*
 * MHC Main: the header, footer and shared pieces.
 * Article, archive and card styling is TheIssue's own (app.css); this file only
 * draws what replaced TheIssue's header and footer. Square corners, no pills.
 */
/* Full-width sections are 100vw wide, and 100vw counts the vertical scrollbar, so on computers that show
   scrollbars the page ends up a few pixels too wide and gets a sideways scrollbar. Clip it. (Not "hidden":
   that would stop the sticky menu from sticking. Both elements are needed for the browser to honour it.) */
@supports (overflow: clip) {
	html, body { overflow-x: clip; }
}
:root {
	/* The brand palette, in order of importance. Use only these, plus black, grey and white. */
	--mh-deep-brown: #1a0d05; /* saturated brown at about 10% HSV brightness */
	--mh-brown: #a06b3e;  /* 1  primary: buttons, tags, small headings, footer */
	--mh-teal: #126788;   /* 2  secondary: links, years, active states, bands */
	--mh-aqua: #35a2af;   /* 3  highlights: borders, markers, dots */
	--mh-cream: #f8f5e8;  /* 4  soft backgrounds */
	--mh-sage: #6a7f6d;   /* 5  calm accent: WhatsApp card, success */
	/* Neutrals */
	--mh-ink: #111111;
	--mh-grey: #4a4a4a;
	--mh-muted: #6b6b6b;
	--mh-line: #e9e9e9;
	--mh-paper: #ffffff;
	/* Hover and pressed shades: the brand colour mixed with black. */
	--mh-brown-dk: color-mix(in srgb, var(--mh-brown) 80%, #000);
	--mh-teal-dk: color-mix(in srgb, var(--mh-teal) 80%, #000);
	--mh-wrap: 79.375rem; /* the theme's .row width, so new sections line up with article and archive pages */
}

.mh-wrap { max-width: var(--mh-wrap); margin: 0 auto; padding: 0 .9375rem; width: 100%; box-sizing: border-box; }

/* One button for the new pieces (the theme's own .btn is untouched elsewhere). */
.mh-btn {
	display: inline-block; padding: 13px 22px; border: 0; cursor: pointer;
	background: var(--mh-brown); color: #fff; text-decoration: none;
	font-size: 12px; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
	transition: background .15s;
}
.mh-btn:hover { background: var(--mh-brown-dk); color: #fff; }
.mh-btn--teal { background: var(--mh-teal); }
.mh-btn--teal:hover { background: var(--mh-teal-dk); }
.mh-btn--ghost { background: transparent; border: 2px solid currentColor; padding: 11px 20px; }
.mh-btn--ghost:hover { background: rgba(255,255,255,.14); color: inherit; }
.mh-btn--sm { padding: 10px 14px; font-size: 11px; }

/* ------------------------------------------------------------ top strip */
.mh-strip { background: var(--mh-deep-brown); color: #d6d6d6; font-size: 12px; }
.mh-strip .mh-wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.mh-strip strong { color: #fff; font-weight: 600; }
.mh-strip__hijri::before { content: " \00b7  "; white-space: pre; }
.mh-strip__date { white-space: nowrap; }
.mh-strip__links { display: flex; gap: 20px; }
.mh-strip a { color: #d6d6d6; text-decoration: none; }
.mh-strip a:hover { color: #fff; }

/* --------------------------------------------------------------- header */
/* Two rows. Row 1: social icons (left), logo (centre), Sign in + Go Pro (right).
   Row 2: only the menu, centred, under a thin line. No search icon on wide screens. */
.mh-header { position: relative; z-index: 61; background: #fff; }
.mh-header__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 92px; padding-top: 16px; padding-bottom: 16px; }
.mh-header__left { display: flex; align-items: center; gap: 16px; justify-self: start; }
.mh-header__logo { justify-self: center; }
.mh-header .logo-holder { flex: none; width: auto; margin: 0; }
/* !important: the old Theme Options write a fixed logo height into the page. */
.mh-header .logo-holder img { height: 54px !important; width: auto !important; max-width: none; display: block; }
.mh-header .mobile-toggle-holder { display: none; }
.mh-header__social .thb-social-links-container { margin: 0; }
/* The icons sit on the same centre line as the logo and the buttons: a single non-wrapping row,
   centred both ways, as tall as the buttons. */
.mh-header__social { display: flex; align-items: center; }
.mh-header__social ul, .mh-header__social .thb-social-links-container { display: flex; align-items: center; align-content: center; gap: 4px; flex-wrap: nowrap; height: 36.4px; }
/* Each icon sits in a wrapper that fills the row's height; centre the icon inside it. */
/* !important: TheIssue's own rules for this icon row (padding, a 20px bottom margin, a 30px minimum width) are more specific. */
.mh-header .mh-header__social .thb-social-links-container .thb-social-link-wrap { display: flex; align-items: center; align-self: stretch; height: 100%; margin: 0 !important; padding: 0 !important; width: auto; flex: none; }
.mh-header .mh-header__social .thb-social-links-container .thb-social-link { align-self: center; width: 26px; min-width: 0 !important; justify-content: center; }
/* Compact: the icons are 26px apart (they were 50px). The first one's glyph lines up with the edge of the content. */
.mh-header__social .thb-social-links-container { gap: 0; margin-left: -8px; }

.mh-header__tools { display: flex; align-items: stretch; justify-content: flex-end; gap: 10px; justify-self: end; }
.mh-header__tools .secondary-area { display: flex; align-items: stretch; gap: 10px; }
/* Sign in: an outlined button (MHC Core puts it here); the search icon beside it is hidden. */
.mh-header__tools .thb-search-holder { display: none; }
.mh-header__tools .mhc-write-link { display: none; } /* "Write for us" lives in the strip above */
.mh-header__tools .mhc-account-link { display: inline-flex; align-items: center; padding: 9px 18px; border: 1px solid var(--mh-ink); background: transparent; color: var(--mh-ink); font-size: 12px; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.mh-header__tools .mhc-account-link { border-radius: 3px; }
.mh-header__tools .mhc-account-link:hover { background: var(--mh-ink); color: #fff; }
/* Signed in: rounded reader photo or blue initial, with a quiet name and plan beside it. */
.mh-header__tools .mhc-account-link.is-signed-in,
.mh-header__tools .mhc-account-link.is-signed-in:hover,
.mh-header__tools .mhc-account-link.is-signed-in:focus-visible { padding: 0; border: 0; background: transparent; }
.mh-header__tools .mhc-account-link.is-signed-in .mhc-account-link__initials,
.mh-header__tools .mhc-account-link.is-signed-in .mhc-account-link__photo { width: 36px; height: 36px; font-size: 14px; letter-spacing: 0; }
.mh-header__tools .mhc-account-link--header.is-signed-in,
.mh-header__tools .mhc-account-link--header.is-signed-in:hover,
.mh-header__tools .mhc-account-link--header.is-signed-in:focus-visible { gap: 9px; padding: 6px 8px; border: 1px solid var(--mh-line); border-radius: 4px; background: transparent; box-sizing: border-box; text-align: right; }
.mh-header__tools .mhc-account-link--header .mhc-account-link__initials,
.mh-header__tools .mhc-account-link--header .mhc-account-link__photo { border-radius: 3px; }
.mh-header__tools .mhc-account-link__identity { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; text-align: right; }
.mh-header__tools .mhc-account-link__name { max-width: 150px; overflow: hidden; color: var(--mh-ink); font: 500 12px/1.35 "Sinkin Sans",Georgia; letter-spacing: 0; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.mh-header__tools .mhc-account-link__plan { color: var(--mh-muted,#767267); font: 400 10px/1.3 "Sinkin Sans",Georgia; letter-spacing: .035em; text-transform: none; white-space: nowrap; }
.mh-header__tools .mhc-account-link--header.is-signed-in:hover .mhc-account-link__name,
.mh-header__tools .mhc-account-link--header.is-signed-in:focus-visible .mhc-account-link__name { color: var(--mh-ink) !important; }
.mh-header__tools .mhc-account-link--header.is-signed-in:hover .mhc-account-link__plan,
.mh-header__tools .mhc-account-link--header.is-signed-in:focus-visible .mhc-account-link__plan { color: var(--mh-muted,#767267) !important; }
.mh-header__tools .mhc-profile-menu { position: relative; display: inline-flex; align-items: center; }
@media(min-width:1051px){
	.mh-header__tools .mhc-account-link--header{margin-right:0;}
}
.mh-header__tools .mhc-profile-menu__panel[hidden] { display: none !important; }
.mh-header__tools .mhc-profile-menu__panel { position: absolute; z-index: 120; top: calc(100% + 12px); right: 0; display: flex; width: 210px; flex-direction: column; padding: 7px; border: 1px solid var(--mh-line); border-radius: 4px; background: #fff; box-shadow: 0 10px 28px rgba(28,22,16,.16); }
.mh-header__tools .mhc-profile-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 13px; border: 0; border-radius: 2px; background: transparent; color: var(--mh-ink); font: 500 12px/1.4 "Sinkin Sans",Georgia; letter-spacing: 0; text-align: left; text-decoration: none; text-transform: none; cursor: pointer; }
.mh-header__tools .mhc-profile-menu__item:hover,
.mh-header__tools .mhc-profile-menu__item:focus-visible { background: var(--mh-cream); color: var(--mh-brown); }
.mh-header__tools .mhc-profile-menu__signout { margin-top: 5px; border-top: 1px solid var(--mh-line); border-radius: 0; padding-top: 14px; }
.mh-header__tools .mhc-profile-menu__signout .mhc-me-ico { display: inline-flex; align-items: center; }
.mh-gopro { display: inline-flex; align-items: center; padding-top: 11px; padding-bottom: 11px; border: 1px solid var(--mh-brown); }

.mh-navbar { position: relative; z-index: 60; background: #fff; border-bottom: 1px solid var(--mh-line); }
.mh-navbar__inner { border-top: 1px solid var(--mh-line); display: flex; justify-content: center; min-height: 54px; }
.mh-navbar .full-menu { display: flex; justify-content: center; }
.mh-navbar .full-menu .thb-full-menu { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; margin: 0; }
.mh-navbar .full-menu .thb-full-menu > li { margin-left: 0; }
.mh-navbar .full-menu .thb-full-menu > li + li { margin-left: 34px; }
.mh-navbar .full-menu .thb-full-menu > li > a { white-space: nowrap; }

@media (min-width: 1051px) {
	/* Only the menu row stays on screen while scrolling (not on articles, which have their own bar). */
	body:not(.single-post) .mh-navbar { position: relative; }
}
@media (max-width: 1050px) {
	.mh-navbar { display: none; }
	.mh-header { border-bottom: 1px solid var(--mh-line); }
	.mh-header__top { grid-template-columns: 1fr auto 1fr; min-height: 64px; padding-top: 10px; padding-bottom: 10px; gap: 12px; }
	.mh-header .mobile-toggle-holder { display: block; }
	.mh-header__social { display: none; }
	.mh-header .logo-holder img { height: 38px !important; }
	/* On a phone the search icon stays: it is the only way to search. */
	.mh-header__tools .thb-search-holder { display: block; }
	.mh-strip__links { display: none; }
}
@media (max-width: 560px) {
	/* One line: the date, and the one link that fits beside it. */
	.mh-strip__hijri { display: none; }
	.mh-strip__links { display: flex; }
	.mh-strip__links a:not(:last-child) { display: none; }
	.mh-gopro { display: none; }
	.mh-header .logo-holder img { height: 32px !important; }
}
/* Very narrow phones have no room beside the date. */
@media (max-width: 359px) {
	.mh-strip__links { display: none; }
}

/* Phone tabs share the shell's typography, square edges and brand colours.
   Plain links preserve the site's search and account flows without extra JS. */
.mh-mobile-nav { display: none; }
@media screen and (max-width: 767px) {
	:root { --mh-mobile-nav-height: calc(68px + env(safe-area-inset-bottom, 0px)); }
	html { scroll-padding-bottom: calc(var(--mh-mobile-nav-height) + 16px); }
	/* A spacer after the complete page also keeps the last footer links reachable. */
	#wrapper::after { content: ""; display: block; height: var(--mh-mobile-nav-height); }
	.mh-mobile-nav {
		display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
		position: fixed; inset: auto 0 0; z-index: 160;
		box-sizing: border-box; min-height: var(--mh-mobile-nav-height);
		padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
		background: var(--mh-paper); border-top: 1px solid var(--mh-line);
		box-shadow: 0 -3px 16px rgba(26, 13, 5, .055);
	}
	.mh-mobile-nav__link {
		position: relative; display: flex; flex-direction: column;
		align-items: center; justify-content: center; gap: 6px;
		min-width: 0; min-height: 67px; padding: 8px 4px; box-sizing: border-box;
		color: var(--mh-grey); text-decoration: none;
		font: 500 10px/1.3 "Sinkin Sans", sans-serif; letter-spacing: 0;
		-webkit-tap-highlight-color: transparent;
	}
	.mh-mobile-nav__icon { flex: none; }
	.mh-mobile-nav__link.is-current { color: var(--mh-teal); background: var(--mh-cream); font-weight: 600; }
	.mh-mobile-nav__link.is-current::before {
		content: ""; position: absolute; top: -1px; left: calc(50% - 12px);
		width: 24px; height: 2px; background: var(--mh-brown);
	}
	.mh-mobile-nav__link:active { background: var(--mh-cream); color: var(--mh-teal); }
	.mh-mobile-nav__link:focus-visible { outline: 2px solid var(--mh-teal); outline-offset: -4px; }
	body #scroll_to_top.style2.active { bottom: calc(var(--mh-mobile-nav-height) + 15px); }
	body .thb-cookie-bar {
		bottom: calc(var(--mh-mobile-nav-height) + 15px);
		/* Keep its initial hidden position below the viewport after raising it.
		   The existing cookie animation sets an inline transform when opened. */
		transform: translateY(calc(100% + var(--mh-mobile-nav-height) + 30px));
	}
	body .thb-cookie-bar:not([style]),
	body .thb-cookie-bar[style*="opacity: 0"] { pointer-events: none; }
}

/* --------------------------------------------------------------- footer */
/* Three quiet rows: brand and social, navigation, then the legal line. */
.mh-footer { background: var(--mh-deep-brown); color: var(--mh-cream); padding: 0; font-size: 14px; position: relative; }
.mh-footer a { color: var(--mh-cream); text-decoration: none; }
.mh-footer a:hover { color: #fff; }
.mh-footer a:focus-visible { outline: 2px solid var(--mh-cream); outline-offset: 5px; }
.mh-footer__brand-row { display: flex; align-items: center; gap: 32px; padding: 36px 0; border-bottom: 1px solid rgba(248,245,232,.2); }
.mh-footer__logo { display: inline-flex; flex: 0 0 auto; }
.mh-footer__logo img { display: block; width: 230px; max-width: 100%; height: auto; max-height: 60px; object-fit: contain; object-position: left; margin: 0; }
.mh-footer__social { flex: 0 0 auto; margin-left: auto; }
.mh-footer .mh-footer__social .thb-social-links-container { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.mh-footer .mh-footer__social .thb-social-link-wrap { margin: 0; padding: 0; }
.mh-footer .mh-footer__social .thb-social-link { display: inline-flex; justify-content: center; align-items: center; width: 36px; min-width: 36px; height: 36px; padding: 0; border: 1px solid rgba(248,245,232,.25); border-radius: 0; color: var(--mh-cream); background: transparent; transition: background .2s, border-color .2s; }
.mh-footer .mh-footer__social .thb-social-link:hover, .mh-footer .mh-footer__social .thb-social-link:focus-visible { background: #fff; border-color: #fff; color: var(--mh-ink); }
.mh-footer .mh-footer__social .thb-social-link i { color: inherit; font-size: 15px; }
.mh-footer .mh-footer__social .thb-social-label { display: none; }
.mh-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(var(--cols, 3), minmax(0, 1fr)); gap: 36px 56px; align-items: start; padding-top: 40px; padding-bottom: 40px; }
.mh-footer__about { max-width: 310px; }
.mh-footer .widget { margin: 0 0 16px; }
.mh-footer .widget:last-child { margin-bottom: 0; }
.mh-footer .widget p { font-family: inherit; font-size: 13px; line-height: 1.8; color: rgba(248,245,232,.72); margin: 0; }
.mh-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.mh-footer .widget li { padding: 4px 0; }
.mh-footer__h { margin: 0 0 16px; padding: 0; font-size: 15px; line-height: 1.5; letter-spacing: 0; text-transform: none; font-weight: 600; color: #fff; }
.mh-footer__col ul { list-style: none; margin: 0; padding: 0; }
.mh-footer__col li { margin: 0; padding: 0; }
.mh-footer__col li a { display: inline-block; padding: 5px 0; font-size: 14px; line-height: 1.6; color: rgba(248,245,232,.8); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: color .2s, text-decoration-color .2s; }
.mh-footer__col li a:hover { color: #fff; text-decoration-color: rgba(248,245,232,.6); }
.mh-footer__copy { padding: 0 0 24px; color: rgba(248,245,232,.65); font-size: 12px; }
.mh-footer__copy-row { display: flex; justify-content: center; align-items: center; gap: 16px 32px; flex-wrap: wrap; position: relative; padding-top: 24px; }
.mh-footer__copy-row::before { content: ""; position: absolute; top: 0; left: .9375rem; right: .9375rem; border-top: 1px solid rgba(248,245,232,.2); }
.mh-footer__copyright { text-align: center; }
.mh-footer__copyright p { margin: 0; font-size: inherit; color: inherit; }
.mh-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; list-style: none; margin: 0; padding: 24px 0; border-top: 1px solid rgba(248,245,232,.2); }
.mh-footer__legal a { font-size: 13px; color: rgba(248,245,232,.8); }
.mh-footer__legal a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1000px) {
	.mh-footer__brand-row { flex-wrap: wrap; gap: 20px; }
	.mh-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
	.mh-footer__about { grid-column: 1 / -1; max-width: 620px; }
}
@media (max-width: 600px) {
	.mh-footer__brand-row { flex-direction: column; align-items: center; padding: 28px 0; gap: 18px; }
	.mh-footer__logo img { width: 210px; object-position: center; }
	.mh-footer__social { margin-left: 0; }
	.mh-footer .mh-footer__social .thb-social-links-container { justify-content: center; }
	.mh-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; padding-top: 28px; padding-bottom: 28px; }
	.mh-footer__copy-row { flex-direction: column; align-items: center; gap: 14px; }
	.mh-footer__legal { gap: 10px 20px; }
}

/* ---------------------------------------------------- page-level blocks */
.mh-topics { padding: 48px 0; }
.mh-topics--shaded { background: #f8f8f8; }
.mh-narrow { max-width: var(--mh-wrap); margin: 0 auto; padding: 40px .9375rem; box-sizing: border-box; }
.mh-narrow--center { text-align: center; }
.mh-narrow--center img { height: auto; max-width: 100%; }

/* ------------------------------------------- editor colour classes (brand) */
.has-mh-teal-color { color: var(--mh-teal); } .has-mh-teal-background-color { background-color: var(--mh-teal); }
.has-mh-aqua-color { color: var(--mh-aqua); } .has-mh-aqua-background-color { background-color: var(--mh-aqua); }
.has-mh-cream-color { color: var(--mh-cream); } .has-mh-cream-background-color { background-color: var(--mh-cream); }
.has-mh-sage-color { color: var(--mh-sage); } .has-mh-sage-background-color { background-color: var(--mh-sage); }
.has-mh-ink-color { color: var(--mh-ink); } .has-mh-ink-background-color { background-color: var(--mh-ink); }
.has-mh-white-color { color: #fff; } .has-mh-white-background-color { background-color: #fff; }

/* The WhatsApp channel card (MHC Core) in the brand's sage. */
.mhc-wa-channel a.mhc-wa-channel__btn { background: var(--mh-ink); color: #fff; transition: background .2s; }
.mhc-wa-channel a.mhc-wa-channel__btn:hover { background: var(--wa-green, #25d366); color: #fff; }

/* ------------------------------------------- home story strip: readability */
/* A faint dark veil over the pictures (darker at the bottom, where the titles sit).
   A second, extra veil fades in over the strip while a column is hovered. Browsers
   cannot animate a gradient's colours, so the extra veil is its own layer and it is
   its opacity that eases. */
.thb-post-background-style3 .post-background-gallery::after,
.thb-post-background-style3 .post-background-gallery::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
}
.thb-post-background-style3 .post-background-gallery::after {
	z-index: 1;
	background: linear-gradient(to top, rgba(0,0,0,.38) 0%, rgba(0,0,0,.14) 55%, rgba(0,0,0,.05) 100%);
}
.thb-post-background-style3 .post-background-gallery::before {
	z-index: 2; opacity: 0;
	background: linear-gradient(to top, rgba(0,0,0,.2) 0%, rgba(0,0,0,.16) 55%, rgba(0,0,0,.1) 100%);
	transition: opacity .9s cubic-bezier(.4,0,.2,1);
}
.thb-post-background-style3:has(.thb-carousel .columns:hover) .post-background-gallery::before { opacity: 1; }
.thb-post-background-style3 .post-overflow-content { text-shadow: 0 1px 8px rgba(0,0,0,.35); }

/* Smoother movement on hover: the title block glides up, "Read More" fades in just after,
   and the picture swap (app.min.js) cross-fades over 0.8s with an ease-in-out. */
.thb-post-background-style3 .post.featured-overflow .post-overflow-content {
	transition: transform .7s cubic-bezier(.22,1,.36,1);
	will-change: transform;
}
@media (hover: hover) {
	.thb-post-background-style3 .featured-read-more { opacity: 0; transition: opacity .5s ease .15s; }
	.thb-post-background-style3 .post:hover .featured-read-more { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.thb-post-background-style3 .post.featured-overflow .post-overflow-content,
	.thb-post-background-style3 .featured-read-more,
	.thb-post-background-style3 .post-background-gallery::before { transition: none; }
}

/* ------------------------------------------------------------ mega menu */
/* Hover (or keyboard focus) on a menu item with a panel opens it full width under the menu row:
   it eases in, the page behind dims, and moving to the next item cross-fades to its panel.
   Inside a panel with tabs, pointing at a tab in the left rail swaps what is shown on the right.
   The markup is made by inc/mega-menu.php. */
.mh-mega { display: none; }
@media (min-width: 1051px) {
	.mh-navbar .full-menu .thb-full-menu > li.mh-has-mega { position: static; }
	.mh-navbar .full-menu .thb-full-menu > li.mh-has-mega > a:after { transition: transform .35s cubic-bezier(.22,1,.36,1); }
	.mh-navbar .full-menu .thb-full-menu > li.mh-has-mega.is-open > a:after { transform: rotate(180deg); }

	.mh-mega {
		display: block; position: absolute; left: 0; right: 0; top: 100%; z-index: 70; overflow: hidden;
		background: #fff; box-shadow: 0 30px 50px rgba(0,0,0,.1);
		opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none; text-align: left;
		transition: opacity .35s cubic-bezier(.22,1,.36,1) .08s, transform .45s cubic-bezier(.22,1,.36,1) .08s, visibility 0s linear .45s;
	}
	li.mh-has-mega.is-open > .mh-mega {
		opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s, 0s, 0s;
	}
	/* The page behind dims while a panel is open. */
	.mh-navbar::after {
		content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; z-index: 59;
		background: rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: opacity .4s ease;
	}
	.mh-navbar:has(li.mh-has-mega.is-open)::after { opacity: 1; }

	.mh-mega { white-space: normal; font-size: 14px; line-height: 1.4; }
	.mh-mega a { text-decoration: none; white-space: normal; }
	/* The items fill the whole height of the menu row, so there is no dead gap between an item and its panel. */
	.mh-navbar__inner { align-items: stretch; }
	.mh-navbar .full-menu { align-items: stretch; }
	.mh-navbar .full-menu .thb-full-menu { align-items: stretch; }
	.mh-navbar .full-menu .thb-full-menu > li { display: flex; align-items: stretch; }
	.mh-navbar .full-menu .thb-full-menu > li > a { display: flex; align-items: center; }
	.mh-mega b { font-weight: 600; }

	/* --- Panel with a rail of tabs (left) and what the tab shows (right) --- */
	.mh-mega__inner { display: grid; grid-template-columns: 300px minmax(0, 1fr); padding-top: 0; padding-bottom: 0; }
	.mh-mega--wide-rail .mh-mega__inner { grid-template-columns: 520px minmax(0, 1fr); }
	.mh-mega--wide-rail .mh-mega__tab .mh-chev { display: none; }
	/* No padding underneath: the rows run to the bottom edge, and fill the rail's height if the pane beside it is taller. */
	.mh-mega__rail { position: relative; display: flex; flex-direction: column; background: var(--mh-teal); color: #fff; padding: 16px 0 0; }
	.mh-mega__rail::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 100vw; background: var(--mh-teal); }
	.mh-mega__rail .mh-mega__railtitle { display: block; padding: 0 22px 10px; color: #fff; }
	.mh-mega__tabs { flex: 1; display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.09); }
	/* Many tabs: two columns, filled down the first and then the second, so the panel stays short. */
	.mh-mega--wide-rail .mh-mega__tabs { flex: 1; display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 5), 1fr); grid-template-columns: 1fr 1fr; }
	.mh-mega--wide-rail .mh-mega__tabs { background: linear-gradient(rgba(255,255,255,.09), rgba(255,255,255,.09)) 50% 0 / 1px 100% no-repeat; }
	.mh-mega__tabs li { display: flex; flex: 1 1 auto; margin: 0; padding: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
	.mh-mega__tab { position: relative; display: flex; flex: 1; min-height: 46px; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 14px 6px 22px; color: #fff; transition: background .25s ease, color .25s ease, padding .35s cubic-bezier(.22,1,.36,1); }
	.mh-mega__tab::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--mh-aqua); transform: scaleY(0); transition: transform .35s cubic-bezier(.22,1,.36,1); }
	.mh-mega__tabtext { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
	.mh-mega__tabtext b { font-size: 13px; line-height: 1.25; font-weight: 600; }
	.mh-mega__tabtext small { font-size: 10.5px; line-height: 1.2; color: rgba(255,255,255,.72); letter-spacing: .02em; }
	.mh-mega .mh-chev { flex: none; color: var(--mh-muted); transition: transform .35s cubic-bezier(.22,1,.36,1), color .25s ease; }
	.mh-mega__tab:hover { background: rgba(255,255,255,.12); color: #fff; }
	.mh-mega__rail .mh-chev { color: rgba(255,255,255,.7); }
	.mh-mega__tab.is-active, .mh-mega__tab.is-active:hover { background: #fff; color: var(--mh-ink); padding-left: 28px; }
	.mh-mega__tab.is-active .mh-mega__tabtext small { color: var(--mh-muted); }
	.mh-mega__tab.is-active::before { transform: scaleY(1); }
	.mh-mega__tab.is-active .mh-chev { color: var(--mh-teal); transform: translateX(3px); }

	/* The panes sit on top of each other; the one you point at fades in. */
	.mh-mega__panes { display: grid; padding: 20px 0 20px 32px; min-height: 240px; }
	.mh-mega__pane {
		grid-area: 1 / 1; display: grid; grid-template-columns: minmax(230px, 290px) minmax(0, 1fr); gap: 0 36px; align-content: start;
		opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none;
		transition: opacity .3s ease, transform .4s cubic-bezier(.22,1,.36,1), visibility 0s linear .4s;
	}
	/* inherit, not visible/auto: a closed panel must stay unreachable for the pointer, active pane or not. */
	.mh-mega__pane.is-active { opacity: 1; visibility: inherit; transform: none; pointer-events: inherit; transition-delay: .06s, .06s, 0s; }
	.mh-mega__intro { padding-right: 36px; border-right: 1px solid var(--mh-line); }
	.mh-mega__intro h3 { font-size: 18px; line-height: 1.2; margin: 5px 0 8px; font-weight: 700; text-transform: none; letter-spacing: -.01em; }
	.mh-mega__intro p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.5; color: var(--mh-grey); margin: 0 0 14px; }
	.mh-mega__actions { display: flex; flex-wrap: wrap; gap: 8px; }
	/* The Explore button keeps its standard small size; its label stays white in every state
	   (TheIssue's link hover colour must not paint it brown on brown). */
	.mh-mega .mh-btn, .mh-mega .mh-btn:hover, .mh-mega .mh-btn:focus { color: #fff; }
	.mh-mega .mh-btn:hover { background: var(--mh-brown-dk); }
	.mh-mini { display: inline-block; padding: 6px 9px; border: 1px solid var(--mh-line); font-size: 11px; font-weight: 600; color: var(--mh-ink); transition: border-color .2s, color .2s; }
	.mh-mini:hover { border-color: var(--mh-teal); color: var(--mh-teal); }

	/* The newest stories of a category: titles only, in two columns, with dividers. */
	.mh-mega__titles ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--mh-line); }
	.mh-mega__titles li { margin: 0; padding: 0; border-bottom: 1px solid var(--mh-line); }
	.mh-mega__titles a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; color: var(--mh-ink); transition: color .2s, padding .35s cubic-bezier(.22,1,.36,1); }
	.mh-mega__titles a span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; line-height: 1.35; font-weight: 600; }
	.mh-mega__titles a:hover { color: var(--mh-brown); padding-left: 6px; }
	.mh-mega__titles a:hover .mh-chev { color: var(--mh-brown); transform: translateX(3px); }
	.mh-mega__cards { display: grid; gap: 20px; align-content: start; }
	.mh-mega__cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mh-mega__cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.mh-mega__empty { grid-column: 1 / -1; color: var(--mh-muted); font-family: Georgia, serif; margin: 0; align-self: center; }
	.mh-mcard { display: block; color: var(--mh-ink); }
	.mh-mcard__pic { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--mh-cream); margin-bottom: 10px; }
	.mh-mcard--profile .mh-mcard__pic { aspect-ratio: 1 / 1; }
	.mh-mcard__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: 0; transform: scale(1.04); transition: opacity .5s ease, transform .8s cubic-bezier(.22,1,.36,1); }
	.mh-mcard__pic img[src] { opacity: 1; }
	.mh-mcard:hover .mh-mcard__pic img { transform: scale(1.06); }
	.mh-mcard__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 13px; line-height: 1.35; font-weight: 600; transition: color .2s; }
	.mh-mcard:hover .mh-mcard__title { color: var(--mh-brown); }
	.mh-mcard__meta { display: block; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mh-muted); }

	/* The strip along the bottom of a tabbed panel. */
	.mh-mega__foot { border-top: 1px solid var(--mh-line); background: #fff; }
	.mh-mega__footinner { display: flex; gap: 28px; justify-content: flex-end; padding-top: 0; padding-bottom: 0; }
	.mh-mega__foot a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 0; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mh-teal); transition: color .2s; }
	.mh-mega__foot a:hover { color: var(--mh-brown); }
	.mh-mega__foot a .mh-chev { transition: transform .3s cubic-bezier(.22,1,.36,1); }
	.mh-mega__foot a:hover .mh-chev { transform: translateX(4px); }

	/* --- Panel with a simple list of links and dividers --- */
	.mh-mega--links .mh-mega__inner { display: block; padding-top: 28px; padding-bottom: 34px; }
	.mh-mega__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--mh-line); }
	.mh-mega__list li { margin: 0; padding: 0; border-bottom: 1px solid var(--mh-line); }
	.mh-mega__list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; color: var(--mh-ink); transition: color .2s, padding .35s cubic-bezier(.22,1,.36,1); }
	.mh-mega__list a span { display: flex; flex-direction: column; gap: 3px; }
	.mh-mega__list b { font-size: 14.5px; }
	.mh-mega__list small { font-size: 12px; color: var(--mh-muted); }
	.mh-mega__list a:hover { color: var(--mh-brown); padding-left: 8px; }
	/* Links under a link (a third level): smaller, indented, each with its own faint divider. */
	.mh-mega__list { align-items: start; }
	.mh-mega__list li.has-sub { padding-bottom: 6px; }
	.mh-mega__list li.has-sub > a { padding-bottom: 12px; }
	.mh-mega__sub { list-style: none; margin: 0; padding: 0 0 6px 14px; border-left: 2px solid var(--mh-aqua); }
	.mh-mega__sub li { margin: 0; padding: 0; border-bottom: 1px solid var(--mh-line); }
	.mh-mega__sub li:last-child { border-bottom: 0; }
	/* A level inside a level: tucked in, quieter, a thinner line. */
	.mh-mega__sub .mh-mega__sub { margin: 0 0 4px; padding: 0 0 0 12px; border-left: 1px solid var(--mh-aqua); }
	.mh-mega__sub .mh-mega__sub a { padding: 7px 0; font-size: 12.5px; }
	.mh-mega__sub .mh-mega__sub .mh-mega__sub a { font-size: 12px; color: var(--mh-muted); }
	.mh-mega__sub li:has(> .mh-mega__sub) > a { padding-bottom: 6px; }
	.mh-mega__sub a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 13px; font-weight: 500; color: var(--mh-grey); transition: color .2s, padding .35s cubic-bezier(.22,1,.36,1); }
	.mh-mega__sub a:hover { color: var(--mh-brown); padding-left: 6px; }
	.mh-mega__sub a:hover .mh-chev { transform: translateX(4px); color: var(--mh-brown); }
	.mh-mega__list a:hover .mh-chev { transform: translateX(4px); color: var(--mh-brown); }
}
@media (min-width: 1051px) and (max-width: 1250px) {
	.mh-mega__inner { grid-template-columns: 250px minmax(0, 1fr); }
	.mh-mega--wide-rail .mh-mega__inner { grid-template-columns: 440px minmax(0, 1fr); }
	.mh-mega__pane { grid-template-columns: minmax(200px, 240px) minmax(0, 1fr); gap: 0 26px; }
	.mh-mega__intro { padding-right: 26px; }
	.mh-mega__panes { padding-left: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	.mh-mega, .mh-mega__pane, .mh-mega__tab, .mh-mega__tab::before, .mh-mcard__pic img, .mh-navbar::after { transition: none !important; }
}

/* ------------------------------------------------ buttons: optical centring */
/* Sinkin Sans capitals do not sit in the middle of their line, and where they sit depends on the
   font's own metrics, so no fixed offset is right everywhere. The label is trimmed to the height
   of its capitals (text-box) and the padding is the old padding plus half of what was trimmed
   ((1lh - 1cap) / 2), so there is the same space above and below the letters and the button keeps
   its size. Browsers without text-box get the label nudged down a little instead. */
@supports (text-box: trim-both cap alphabetic) and (padding: 1cap) {
	.mh-btn { text-box: trim-both cap alphabetic; padding-block: calc(13px + (1lh - 1cap) / 2); }
	.mh-btn--sm { padding-block: calc(10px + (1lh - 1cap) / 2); }
	.mh-btn--ghost { padding-block: calc(11px + (1lh - 1cap) / 2); }
	/* Go Pro: a flex link with its label in a span (trimmed), so it matches Sign in exactly. */
	.mh-gopro { text-box: none; padding-block: calc(10px + (1lh - 1cap) / 2); }
	.mh-gopro span { text-box: trim-both cap alphabetic; }
	/* Sign in: the label is a span inside a flex link, so the span is trimmed and the link carries the padding. */
	.mh-header__tools .mhc-account-link__text { text-box: trim-both cap alphabetic; }
	.mh-header__tools .mhc-account-link { padding-block: calc(10px + (1lh - 1cap) / 2); }
}
@supports not ((text-box: trim-both cap alphabetic) and (padding: 1cap)) {
	.mh-btn { padding-top: calc(13px + .1em); padding-bottom: calc(13px - .1em); }
	.mh-btn--sm { padding-top: calc(10px + .1em); padding-bottom: calc(10px - .1em); }
	.mh-gopro { padding-top: calc(11px + .1em); padding-bottom: calc(11px - .1em); }
	.mh-header__tools .mhc-account-link { padding-top: calc(10px + .1em); padding-bottom: calc(10px - .1em); }
}

/* Sign in on hover: black button, plain white label (nothing from the theme's link colours). */
.mh-header__tools .mhc-account-link:hover,
.mh-header__tools .mhc-account-link:focus-visible { background: var(--mh-ink); border-color: var(--mh-ink); color: #fff !important; }
.mh-header__tools .mhc-account-link:hover *,
.mh-header__tools .mhc-account-link:focus-visible * { color: #fff !important; }

/* ------------------------------------- top strip and panel footer link: optical centring */
/* Same method as the buttons: the text is trimmed to the height of its capitals and centred, so
   the space above and below the letters is equal (Sinkin Sans capitals sit high in their line). */
.mh-strip .mh-wrap { align-items: center; }
@supports (text-box: trim-both cap alphabetic) and (padding: 1cap) {
	.mh-strip__date, .mh-strip__links a { text-box: trim-both cap alphabetic; }
	.mh-mega__foot a span { text-box: trim-both cap alphabetic; }
	.mh-mega__foot a { padding-block: calc(9px + (1lh - 1cap) / 2); }
}
@supports not ((text-box: trim-both cap alphabetic) and (padding: 1cap)) {
	.mh-strip__date, .mh-strip__links a { position: relative; top: .1em; }
	.mh-mega__foot a { padding-top: calc(9px + .1em); padding-bottom: calc(9px - .1em); }
}

/* ------------------------------------------------------------ phone and tablet header */
/* Exactly the height the old theme's mobile header had: 51px = 10px padding + a 30px row + 10px padding
   + the 1px line underneath. The row is as tall as the logo (30px), so the burger and the icons are
   fitted inside it. Burger on the left, logo in the middle, plain icons on the right (account, search),
   all on one centre line, no borders. Placed last so it wins over the wide-screen button styles. */
@media (max-width: 1050px) {
	.mh-header__top { min-height: 0; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
	.mh-header__logo { display: flex; align-items: center; line-height: 0; } /* a flex box has no text strut under the logo (it added 7px) */
	.mh-header .logo-holder { padding: 0; }
	.mh-header .logo-holder img { height: 30px !important; }
	.mh-header__left { height: 30px; align-items: center; }
	.mh-header .mobile-toggle-holder { display: inline-flex; align-items: center; height: 30px; }
	.mh-header__tools { align-items: center; gap: 4px; margin-right: -1rem; }
	.mh-header__tools .secondary-area { align-items: center; gap: 4px; }
	.mh-gopro { display: none; } /* the old mobile header had no button here; Go Pro is in the slide-in menu's reach on the plans page */

	/* Account: just the icon, no outline, no fill. */
	.mh-header__tools .mhc-account-link,
	.mh-header__tools .mhc-account-link:hover,
	.mh-header__tools .mhc-account-link:focus-visible {
		display: inline-flex; align-items: center; justify-content: center;
		width: 30px; height: 30px; padding: 0 !important; border: 0 !important;
		background: transparent !important; color: var(--mh-ink) !important;
	}
	.mh-header__tools .mhc-account-link:hover *, .mh-header__tools .mhc-account-link:focus-visible * { color: var(--mh-ink) !important; }
	.mh-header__tools .mhc-account-link .mhc-account-link__text { display: none !important; }
	.mh-header__tools .mhc-account-link__identity { display: none !important; }
	/* Signed in: a square the size of the icon box beside it, never squeezed. */
	.mh-header__tools .mhc-account-link.is-signed-in .mhc-account-link__initials,
	.mh-header__tools .mhc-account-link.is-signed-in .mhc-account-link__photo { width: 30px; height: 30px; flex: none; font-size: 13px; }
	.mh-header__tools .mhc-account-link .mhc-account-link__icon { display: inline-flex !important; }

	/* Search has a light frame; the mobile profile stays as the avatar alone. */
	.mh-header__tools .thb-search-holder { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 30px; height: 30px; margin: 0; padding: 0; border: 1px solid #e6e3de; border-radius: 3px; background: transparent; }
	.mh-header__tools .mhc-account-link--header.is-signed-in,
	.mh-header__tools .mhc-account-link--header.is-signed-in:hover,
	.mh-header__tools .mhc-account-link--header.is-signed-in:focus-visible { width: 30px; height: 30px; padding: 0 !important; border: 0 !important; border-radius: 0; }
}
@media (max-width: 700px) {
	.mh-gopro { display: none; }
}

/* ------------------------------------------------------------ mobile drawer */
/* The slide-in menu for phones and tablets: teal, white text, no pictures, compact rows, sections that open
   one at a time, and a body that scrolls when the list is taller than the screen. Markup: inc/mobile-drawer.php. */
.mh-drawer, .mh-drawer-backdrop { display: none; }
@media all {
	.mh-drawer-backdrop {
		display: block; position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,.45);
		opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
	}
	/* Full screen: it fades in and glides down a little. (The dim layer behind is not needed.) */
	.mh-drawer-backdrop { display: none !important; }
	.mh-drawer {
		display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 9999;
		width: 100%; background: var(--mh-teal); color: #fff;
		transform: translateY(-14px); opacity: 0; visibility: hidden;
		transition: opacity .3s ease, transform .45s cubic-bezier(.22,1,.36,1), visibility 0s linear .45s;
	}
	/* Below the WordPress toolbar when someone is signed in (46px on a phone, 32px on a wider screen). */
	.admin-bar .mh-drawer { top: 46px; }
	.admin-bar .mh-drawer-backdrop { top: 46px; }
	html.mh-drawer-open { overflow: hidden; }
	html.mh-drawer-open .mh-drawer-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }
	html.mh-drawer-open .mh-drawer { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }

	/* Same height as the header: logo and a close button. */
	.mh-drawer__bar { flex: none; display: flex; align-items: center; justify-content: space-between; height: 51px; padding: 0 8px 0 15px; border-bottom: 1px solid rgba(255,255,255,.1); }
	.mh-drawer__body > * { max-width: 640px; margin-left: auto; margin-right: auto; }
	.mh-drawer__body > .mh-drawer__search { margin-left: auto; margin-right: auto; width: calc(100% - 30px); }
	.mh-drawer__logo { display: flex; align-items: center; line-height: 0; }
	.mh-drawer__logo img { height: 28px; width: auto; display: block; }
	.mh-drawer__close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: transparent; color: #fff; cursor: pointer; }

	/* Everything below the bar scrolls. */
	.mh-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }

	.mh-drawer__search { position: relative; margin: 12px 15px 8px; }
	.mh-drawer__search input[type="search"] { width: 100%; height: 38px; padding: 0 40px 0 12px; margin: 0; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 14px; text-transform: none; letter-spacing: 0; border-radius: 0; box-shadow: none; }
	.mh-drawer__search input[type="search"]::placeholder { color: rgba(255,255,255,.7); text-transform: none; }
	.mh-drawer__search input[type="search"]:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.14); }
	.mh-drawer__search button { position: absolute; right: 0; top: 0; width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: #fff; cursor: pointer; }

	/* The menu: rows 44px, faint dividers. */
	.mh-drawer__menu, .mh-drawer__list { list-style: none; margin: 0; padding: 0; }
	.mh-drawer__item { margin: 0; border-top: 1px solid rgba(255,255,255,.1); }
	.mh-drawer__item:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
	.mh-drawer__toggle, .mh-drawer__link {
		display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 0 15px;
		border: 0; background: transparent; color: #fff; text-align: left; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; cursor: pointer; text-decoration: none;
	}
	.mh-drawer__toggle .mh-chev { flex: none; color: rgba(255,255,255,.75); transition: transform .35s cubic-bezier(.22,1,.36,1); }
	.mh-drawer__item.is-open > .mh-drawer__toggle { background: rgba(255,255,255,.1); box-shadow: inset 3px 0 0 var(--mh-aqua); }
	.mh-drawer__item.is-open > .mh-drawer__toggle .mh-chev { transform: rotate(90deg); color: #fff; }

	/* A section opens by growing from nothing: white, like the selected row of the big menu. */
	.mh-drawer__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.22,1,.36,1); background: #fff; }
	.mh-drawer__item.is-open > .mh-drawer__panel { grid-template-rows: 1fr; }
	.mh-drawer__panelinner { overflow: hidden; min-height: 0; }
	.mh-drawer__all { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; border-bottom: 1px solid var(--mh-line); color: var(--mh-teal); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
	.mh-drawer__list li { margin: 0; border-bottom: 1px solid var(--mh-line); }
	.mh-drawer__list li:last-child { border-bottom: 0; }
	.mh-drawer__panelinner > .mh-drawer__list > li:last-child { border-bottom: 0; }
	.mh-drawer__list a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 15px; color: var(--mh-ink); font-size: 14px; font-weight: 500; line-height: 1.3; text-decoration: none; text-transform: none; letter-spacing: 0; }
	.mh-drawer__list a:active { background: var(--mh-cream); }
	.mh-drawer__list small { flex: none; font-size: 11px; color: var(--mh-muted); letter-spacing: .02em; }
	/* Links nested under a link: indented, quieter, with the aqua line. */
	.mh-drawer__list .mh-drawer__list { margin: 0 0 6px 15px; border-left: 2px solid var(--mh-aqua); }
	.mh-drawer__list .mh-drawer__list a { padding: 8px 12px; font-size: 13px; color: var(--mh-grey); }
	.mh-drawer__list li.is-foot > a { color: var(--mh-teal); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

	.mh-drawer__actions { display: flex; gap: 8px; margin: 14px 15px 0; }
	.mh-drawer__actions a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 40px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
	.mh-drawer__signin { border: 1px solid #fff; color: #fff; }
	.mh-drawer__signin .mhc-account-link__icon { display: none !important; }
	.mh-drawer__signin .mhc-account-link__text { display: inline !important; }
	/* In the open drawer use a clear text link, without repeating the header avatar. */
	.mh-drawer__signin.is-signed-in { gap: 0; padding: 0 8px; font-size: 11px; letter-spacing: .06em; }
	.mh-drawer__signin.is-signed-in .mhc-account-link__initials,
	.mh-drawer__signin.is-signed-in .mhc-account-link__photo { display: none !important; }
	.mh-drawer__signin.is-signed-in::after { content: "My account"; white-space: nowrap; }
	.mh-drawer__pro { background: var(--mh-brown); color: #fff; border: 1px solid var(--mh-brown); }

	.mh-drawer__social { margin: 12px 15px 0; }
	.mh-drawer__social .thb-social-links-container { display: flex; align-items: center; gap: 0; margin-left: -8px; }
	.mh-drawer__social .thb-social-link-wrap { margin: 0 !important; padding: 0 !important; }
	.mh-drawer__social .thb-social-link { width: 36px; min-width: 0 !important; justify-content: center; color: #fff; }
	.mh-drawer__social i { color: #fff; }
}
@media (min-width: 783px) and (max-width: 1050px) { .admin-bar .mh-drawer, .admin-bar .mh-drawer-backdrop { top: 32px; } }
@media (prefers-reduced-motion: reduce) {
	.mh-drawer, .mh-drawer-backdrop, .mh-drawer__panel, .mh-drawer__toggle .mh-chev { transition: none !important; }
}

/* ------------------------------------------ mobile drawer: contrast and centring */
@media all {
	/* White labels on the teal in every state: the theme's brown link hover must not reach them. */
	.mh-drawer .mh-drawer__link, .mh-drawer .mh-drawer__link:hover, .mh-drawer .mh-drawer__link:focus, .mh-drawer .mh-drawer__link:active, .mh-drawer .mh-drawer__link:visited,
	.mh-drawer .mh-drawer__toggle, .mh-drawer .mh-drawer__toggle:hover, .mh-drawer .mh-drawer__toggle:focus, .mh-drawer .mh-drawer__toggle:active { color: #fff !important; }
	.mh-drawer .mh-drawer__link:hover, .mh-drawer .mh-drawer__link:active, .mh-drawer .mh-drawer__toggle:hover { background: rgba(255,255,255,.1); }
	.mh-drawer .mh-drawer__signin, .mh-drawer .mh-drawer__signin:hover, .mh-drawer .mh-drawer__signin *, .mh-drawer .mh-drawer__pro, .mh-drawer .mh-drawer__pro:hover { color: #fff !important; }
	/* On the white panels: dark text, and a brand colour (not the theme's) for the pressed row. */
	.mh-drawer .mh-drawer__list a, .mh-drawer .mh-drawer__list a:hover, .mh-drawer .mh-drawer__list a:active { color: var(--mh-ink); }
	.mh-drawer .mh-drawer__list .mh-drawer__list a, .mh-drawer .mh-drawer__list .mh-drawer__list a:hover { color: var(--mh-grey); }
	.mh-drawer .mh-drawer__list li.is-foot > a, .mh-drawer .mh-drawer__all, .mh-drawer .mh-drawer__all:hover { color: var(--mh-teal); }
	.mh-drawer .mh-drawer__list small { color: var(--mh-muted); }
}

/* Equal space above and below the letters (Sinkin Sans capitals sit high in their line): the labels are
   trimmed to their capital height and centred in the row. */
@supports (text-box: trim-both cap alphabetic) {
	@media all {
		.mh-drawer__toggle > span, .mh-drawer__link > span, .mh-drawer__all > span,
		.mh-drawer__list a > span, .mh-drawer__list a > small, .mh-drawer__pro > span, .mh-drawer__signin .mhc-account-link__text { text-box: trim-both cap alphabetic; }
		.mh-drawer__list a { align-items: center; padding-block: calc(9px + (1lh - 1cap) / 2); }
		.mh-drawer__all { padding-block: calc(10px + (1lh - 1cap) / 2); }
		.mh-drawer__actions a { text-box: none; }
	}
}
@supports not (text-box: trim-both cap alphabetic) {
	@media all {
		.mh-drawer__toggle, .mh-drawer__link { padding-top: .1em; }
	}
}

/* ------------------------------------------ mobile drawer: roomier spacing */
/* The menu is full screen now, so the rows get more room: 24px at the sides (was 15px) and taller rows. */
@media all {
	.mh-drawer__bar { padding-left: 24px; padding-right: 14px; height: 56px; }
	.mh-drawer__search { margin: 18px 24px 14px; }
	.mh-drawer__body > .mh-drawer__search { width: calc(100% - 48px); }
	.mh-drawer__search input[type="search"] { height: 46px; }
	.mh-drawer__search button { height: 46px; width: 46px; }
	.mh-drawer .mh-drawer__toggle, .mh-drawer .mh-drawer__link { min-height: 58px; padding: 0 24px; }
	.mh-drawer__all { padding-inline: 24px; }
	.mh-drawer__list a { padding-inline: 24px; }
	.mh-drawer__list .mh-drawer__list { margin-left: 24px; }
	.mh-drawer__list .mh-drawer__list a { padding-inline: 16px; }
	.mh-drawer__body > .mh-drawer__actions { margin: 26px auto 0; width: calc(100% - 48px); gap: 12px; justify-content: center; }
	.mh-drawer__actions a { min-height: 48px; border-radius: 3px; }
	.mh-drawer__body > .mh-drawer__social { margin: 22px auto 0; width: calc(100% - 48px); }
	.mh-drawer__social .thb-social-links-container { justify-content: center; margin: 0; }
	.mh-drawer__body { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
}
@supports (text-box: trim-both cap alphabetic) {
	@media all {
		.mh-drawer__list a { padding-block: calc(14px + (1lh - 1cap) / 2); }
		.mh-drawer__list .mh-drawer__list a { padding-block: calc(11px + (1lh - 1cap) / 2); }
		.mh-drawer__all { padding-block: calc(14px + (1lh - 1cap) / 2); }
	}
}

/* ---------------------------------------------- mobile drawer: light version */
/* The full-screen menu is light: white page, dark text, cream for the selected section, teal and brown as accents.
   The colours are these few variables, so another look (brown, teal again) is a change of four lines. */
@media all {
	.mh-drawer {
		--dr-bg: #fff;                                                    /* the screen */
		--dr-ink: var(--mh-ink);                                          /* text */
		--dr-line: var(--mh-line);                                        /* dividers */
		--dr-soft: var(--mh-cream);         /* selected section, open panel */
		--dr-accent: var(--mh-teal);
		background: var(--dr-bg); color: var(--dr-ink);
	}
	.mh-drawer__bar { border-bottom-color: var(--dr-line); }
	.mh-drawer__close { color: var(--dr-ink); }

	.mh-drawer__search input[type="search"] { border-color: var(--dr-line); background: var(--dr-soft); color: var(--dr-ink); }
	.mh-drawer__search input[type="search"]::placeholder { color: var(--mh-muted); }
	.mh-drawer__search input[type="search"]:focus { border-color: var(--dr-accent); background: #fff; }
	.mh-drawer__search button { color: var(--dr-ink); }

	.mh-drawer__item { border-top-color: var(--dr-line); }
	.mh-drawer__item:last-child { border-bottom-color: var(--dr-line); }
	.mh-drawer .mh-drawer__link, .mh-drawer .mh-drawer__link:hover, .mh-drawer .mh-drawer__link:focus, .mh-drawer .mh-drawer__link:active, .mh-drawer .mh-drawer__link:visited,
	.mh-drawer .mh-drawer__toggle, .mh-drawer .mh-drawer__toggle:hover, .mh-drawer .mh-drawer__toggle:focus, .mh-drawer .mh-drawer__toggle:active { color: var(--dr-ink) !important; }
	.mh-drawer .mh-drawer__link:hover, .mh-drawer .mh-drawer__link:active, .mh-drawer .mh-drawer__toggle:hover { background: var(--dr-soft); }
	.mh-drawer__toggle .mh-chev { color: var(--mh-muted); }
	.mh-drawer__item.is-open > .mh-drawer__toggle { background: var(--dr-soft); box-shadow: inset 3px 0 0 var(--mh-aqua); }
	.mh-drawer__item.is-open > .mh-drawer__toggle .mh-chev { color: var(--dr-accent); }

	.mh-drawer__panel { background: var(--dr-soft); }
	.mh-drawer__all { border-bottom-color: var(--dr-line); }
	.mh-drawer__list li { border-bottom-color: var(--dr-line); }
	.mh-drawer__list a:active { background: var(--mh-cream); }

	.mh-drawer .mh-drawer__signin, .mh-drawer .mh-drawer__signin:hover, .mh-drawer .mh-drawer__signin * { color: var(--dr-ink) !important; border-color: var(--dr-ink); }
	.mh-drawer .mh-drawer__signin { border: 1px solid var(--dr-ink); }
	.mh-drawer .mh-drawer__pro, .mh-drawer .mh-drawer__pro:hover { color: #fff !important; }
	.mh-drawer__social .thb-social-link, .mh-drawer__social i { color: var(--dr-ink); }
}

/* The "Children" stepper on the Kids plan card (Plans page and home): [ - 1 + ] in one thin frame, the same height as the button. */
.mhc-plan .mhc-plan__places { display: inline-flex; align-items: stretch; justify-content: center; gap: 0; width: max-content; height: 40px; margin: 0 0 10px; padding: 0; border: 1px solid var(--mh-line); background: #fff; font-size: 14px; }
.mhc-plan .mhc-plan__places button { box-sizing: border-box; width: 38px; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--mh-ink); font-size: 18px; font-weight: 600; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.mhc-plan .mhc-plan__places button:hover { background: var(--mh-ink); color: #fff; }
.mhc-plan .mhc-plan__places input[type="number"] { box-sizing: border-box; width: 40px; height: auto; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--mh-line); border-right: 1px solid var(--mh-line); border-radius: 0; background: #fff; color: var(--mh-ink); font-size: 14px; font-weight: 700; line-height: 1; text-align: center; text-transform: none; letter-spacing: 0; box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.mhc-plan .mhc-plan__places input[type="number"]::-webkit-outer-spin-button, .mhc-plan .mhc-plan__places input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* The small "Pro includes" line above a plan's list (Plans page; the home page restyles it). */
.mhc-plan__includes-label { margin: 22px 0 -8px; font-size: 12px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--mh-ink); }

/* A solid brand colour and cream edge keep this control visible over any section. */
.fixed-article .fixed-title-holder{min-width:0;flex:1;}
body .header.fixed.fixed-article .fixed-title-holder>span{font-size:10px;line-height:14px;}
.fixed-article .fixed-article-title{min-width:0;}
.fixed-article .fixed-article-account{flex:none;margin-left:20px;display:flex;align-items:center;}
/* The light/dark switch in the sticky bar is the same size and look as the account card beside it, with a gap between them. */
.fixed-article .fixed-article-account .mhc-appearance-toggle--sticky{flex:0 0 40px;width:40px;min-width:40px;height:40px;margin:0 10px 0 0;border:1px solid #e9e9e9;border-radius:3px;background:#fff;color:#111}
.fixed-article .fixed-article-account .mhc-appearance-toggle--sticky:hover{background:#f8f5e8;border-color:#e2ddd3}
html[data-mhc-theme="dark"] .fixed-article .fixed-article-account .mhc-appearance-toggle--sticky,html[data-mhc-theme="dark"] .fixed-article .mhc-account-link--sticky{background:#282620;border-color:#3d3930;color:#eee9df}
html[data-mhc-theme="dark"] .fixed-article .fixed-article-account .mhc-appearance-toggle--sticky:hover{background:#322f27;border-color:#4a463b}
.fixed-article .mhc-account-link--sticky{margin:0;display:inline-flex;align-items:center;gap:8px;height:40px;min-height:0;box-sizing:border-box;padding:4px 6px;border:1px solid var(--mh-line);border-radius:3px;background:#fff;color:var(--mh-ink);font:400 11px/1.3 "Sinkin Sans",sans-serif;letter-spacing:0;text-transform:none;}
.fixed-article .mhc-account-link__identity{display:flex;flex-direction:column;gap:2px;text-align:right;min-width:0;}
.fixed-article .mhc-account-link__name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:500;}
.fixed-article .mhc-account-link__plan{font-size:9px;color:var(--mh-muted,#767267);white-space:nowrap;}
.fixed-article .mhc-account-link__photo,.fixed-article .mhc-account-link__initials{width:28px;height:28px;flex:none;border-radius:3px;object-fit:cover;}
.fixed-article .mhc-account-link__initials{display:flex;align-items:center;justify-content:center;background:var(--mh-teal);color:#fff;font-size:13px;font-weight:600;}
.fixed-article .mhc-account-link--sticky:hover{border-color:var(--mh-brown);background:var(--mh-cream);}
.fixed-article .mhc-account-link--sticky:focus-visible{outline:2px solid var(--mh-teal);outline-offset:2px;}
/* Sign In shares the header's outlined style, with a centred label and compact,
   symmetrical padding. Keep the reader identity's separate sizing above. */
.fixed-article .mhc-account-link--sticky:not(.is-signed-in){justify-content:center;height:36px;padding:8px 16px;border-color:var(--mh-ink);background:transparent;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;}
.fixed-article .mhc-account-link--sticky:not(.is-signed-in) .mhc-account-link__text{font:inherit;letter-spacing:inherit;color:inherit;}
.fixed-article .mhc-account-link--sticky:not(.is-signed-in):hover,
.fixed-article .mhc-account-link--sticky:not(.is-signed-in):focus-visible{border-color:var(--mh-ink);background:var(--mh-ink);color:#fff;}
@supports (text-box: trim-both cap alphabetic){
	.fixed-article .mhc-account-link--sticky:not(.is-signed-in) .mhc-account-link__text{text-box:trim-both cap alphabetic;}
}
#scroll_to_top.style2 {
	width: 44px; height: 44px; border: 2px solid var(--mh-cream); border-radius: 3px;
	background: var(--mh-teal); color: #fff;
	box-shadow: 0 2px 10px rgba(0,0,0,.2);
	transition: background .2s, border-color .2s, bottom .2s, opacity .2s;
}
#scroll_to_top.style2 i { color: inherit; }
#scroll_to_top.style2:hover, #scroll_to_top.style2:focus-visible {
	background: var(--mh-brown); border-color: var(--mh-cream); color: #fff;
}
#scroll_to_top.style2:focus-visible { outline: 2px solid var(--mh-teal); outline-offset: 3px; }
#scroll_to_top.style2:active { background: var(--mh-cream); border-color: var(--mh-brown); color: var(--mh-ink); }
@media (prefers-reduced-motion: reduce) { #scroll_to_top.style2 { transition: none; } }

/* One outer container for standard pages, archives, articles and MHC reference pages.
   Columns provide the same 15px content gutter as .mh-wrap. Nested grids keep
   their own margins; expanded banners and full-width sections stay full width. */
.row { max-width: var(--mh-wrap); }
.row:not(.expanded):not(.full-width-row) { padding-left: 0; padding-right: 0; }
.mhc.row, .mhc.mhc-full.row { max-width: var(--mh-wrap); }

/* Give the reading column the remaining space between the two article rails. */
@media (min-width: 1024px) {
	.post-detail-row .article-container:has(> .sidebar) { gap: 32px; }
	.post-detail-row .article-container:has(> .sidebar) > .sidebar { margin-left: 0; margin-right: 0; }
	.post-detail-row .article-container:has(> .sidebar) > .post-content-wrapper {
		flex: 1; min-width: 0; max-width: none; padding-left: 0; padding-right: 0;
	}
	.post-detail-row .article-container:has(> .sidebar) .thb-post-share-container { max-width: none; width: 100%; }
	.post-detail-row .article-container:has(> .sidebar) .thb-fixed-container { flex-shrink: 0; }
	.post-detail-row .article-container:has(> .sidebar) .post-content-container { flex: 1; min-width: 0; max-width: none; }
	.post-detail.thb-post-share-style1 .thb-fixed-container { width: 190px; }
	.post-detail.thb-post-share-style1 .thb-fixed-container .thb-fixed-top,
	.post-detail.thb-post-share-style1 .thb-fixed-container .thb-fixed-bottom { width: 190px; padding-right: 32px; }
	.rtl .post-detail.thb-post-share-style1 .thb-fixed-container .thb-fixed-top,
	.rtl .post-detail.thb-post-share-style1 .thb-fixed-container .thb-fixed-bottom { padding-right: 0; padding-left: 32px; }
}

.mhc-search-form .mh-search-scope { flex: 0 0 170px; width: 170px; height: 48px; margin: 0; border: 1px solid var(--mh-line); border-radius: 0; background-color: #fff; font-size: 12px; color: var(--mh-grey); }
.mh-search-term { display: block; padding: 24px; border: 1px solid var(--mh-line); color: var(--mh-ink); }
.mh-search-term:hover { border-color: var(--mh-teal); color: var(--mh-teal); }
.mh-search-term h3 { font-size: 20px; margin: 0 0 10px; }
.mh-search-term p { font-family: Georgia, serif; font-size: 15px; margin: 0; color: var(--mh-grey); }
@media (max-width: 600px) { .mhc-search-form .mh-search-scope { flex: 1 1 auto; width: auto; } }

/* Optional site-wide announcement; colours follow the shared brand palette. */
.mh-announcement{background:var(--mh-cream);color:var(--mh-ink);border-bottom:1px solid var(--mh-brown);font-family:"Sinkin Sans",Georgia;font-size:12px;line-height:1.7}
.mh-announcement .mh-wrap{display:flex;align-items:center;justify-content:center;gap:10px 24px;padding-block:12px}
.mh-announcement p{font:inherit;margin:0;overflow-wrap:anywhere}
.mh-announcement a{color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px;flex-shrink:0}
.mh-announcement a:hover{color:var(--mh-brown)}
@media(max-width:600px){.mh-announcement .mh-wrap{flex-direction:column;gap:4px;text-align:center}.mh-announcement a{max-width:100%;overflow-wrap:anywhere}}

/* The same menu also opens from the desktop article hamburger. */
@media(min-width:783px){.admin-bar .mh-drawer{top:32px;}}

/* Phone actions live in the bottom tabs; fit the membership button into
   the existing 30px header row without changing the logo or bar height. */
@media screen and (max-width: 767px) {
	.mh-header__tools { margin-right: 0; }
	.mh-header__tools .secondary-area,
	.mh-header__tools .mhc-profile-menu,
	.mh-header__tools .mhc-account-link { display: none; }
	.mh-header__tools .mh-gopro {
		display: inline-flex; align-items: center; justify-content: center;
		box-sizing: border-box; height: 30px; min-height: 0;
		padding: 0 8px; border-radius: 3px;
		font-size: 9px; line-height: 1.2; letter-spacing: .03em;
		white-space: nowrap;
	}
	.mh-header__tools .mh-gopro:focus-visible { outline: 2px solid var(--mh-teal); outline-offset: 2px; }
}
