/* ==========================================================================
   Mansfield — main stylesheet
   Tokens: --mf-* (inc/tokens.php) map onto Theme Builder --cm-* Brand Kit vars.
   Sections: reset, layout, buttons, charter + utility bar, masthead, mega menu,
   drawer, search, hero + breadcrumbs, prose, cards + lists, entry, pagination,
   footer, Theme Builder core pages, council meeting page, responsive.
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
	margin: 0;
	background: var(--mf-bg);
	color: var(--mf-text);
	font-family: var(--mf-font-body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, video, iframe, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--mf-link); text-decoration: none; }
a:hover { color: var(--mf-primary-hover); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--mf-font-display); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.mf-nav__menu li, .mf-mega__menu li, .mf-inline-menu li, .mf-footer__menu li, .mf-drawer__menu li, .mf-404__links li, .mf-attachments__list li, .mf-breadcrumbs__list li { list-style: none; }

:focus-visible { outline: 2px solid var(--mf-accent); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.mf-skip {
	position: absolute; left: 16px; top: -60px; z-index: 1000;
	background: var(--mf-text); color: var(--mf-bg);
	padding: 10px 16px; border-radius: var(--mf-radius);
}
.mf-skip:focus { top: 12px; color: var(--mf-bg); }

.mf-icon { flex: none; }

/* Layout ------------------------------------------------------------------- */
.mf-frame { background: var(--mf-bg); min-height: 100vh; display: flex; flex-direction: column; }
.mf-frame > .mf-main, .mf-frame > .tb-core-page__main { flex: 1 0 auto; }

.mf-wrap {
	width: 100%;
	max-width: var(--mf-width);
	margin-inline: auto;
	padding-inline: 16px;
}
.mf-wrap--narrow { max-width: 820px; }
@media (min-width: 768px) { .mf-wrap { padding-inline: 24px; } }

.mf-main { padding-bottom: 64px; }

.mf-kicker {
	font-family: var(--mf-font-body);
	font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--mf-primary);
}
.mf-kicker a { color: inherit; }
.mf-kicker a:hover { text-decoration: underline; }

.mf-section-title {
	font-family: var(--mf-font-body);
	font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--mf-muted);
	margin-bottom: 12px;
}

/* Buttons ------------------------------------------------------------------ */
.mf-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--mf-button-bg); color: var(--mf-button-text);
	border: 0; border-radius: var(--mf-radius);
	padding: 11px 20px;
	font-family: var(--mf-font-body); font-size: 15px; font-weight: 600; letter-spacing: .01em;
	cursor: pointer; white-space: nowrap;
	transition: background .15s ease, transform .15s ease;
}
.mf-button:hover { background: var(--mf-primary-hover); color: var(--mf-button-text); }
.mf-button--sm { padding: 8px 14px; font-size: 14px; }
.mf-button--ghost { background: transparent; color: var(--mf-primary); box-shadow: inset 0 0 0 2px currentColor; }
.mf-button--ghost:hover { background: var(--mf-surface); color: var(--mf-primary-hover); }

.mf-iconbtn {
	display: inline-flex; align-items: center; gap: 8px;
	background: none; border: 0; padding: 8px; margin: 0;
	border-radius: var(--mf-radius);
	cursor: pointer; color: var(--mf-header-text);
}
.mf-iconbtn:hover { background: var(--mf-surface); }
.mf-iconbtn__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* Charter notice + utility bar --------------------------------------------- */
.mf-charter { background: var(--mf-surface); border-bottom: 1px solid var(--mf-border); font-size: 13px; color: var(--mf-muted); }
.mf-charter .tb-site-header__notice { padding: 6px 0; text-align: center; }
.mf-charter a { text-decoration: underline; }

.mf-utility {
	background: var(--mf-primary);
	color: var(--mf-button-text);
	font-size: 14px;
}
.mf-utility a { color: inherit; }
.mf-utility a:hover { text-decoration: underline; }
.mf-utility__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.mf-utility__end { display: flex; align-items: center; gap: 16px; margin-inline-start: auto; }
.mf-inline-menu { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* Municipal Dashboard's [mmd_header_utility] markup */
.mf-utility .tb-site-header__utility { width: 100%; }
.mf-utility .tb-site-header__utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 40px; }
.mf-utility .tb-site-header__quick-links { display: flex; align-items: center; gap: 14px; }
.mf-utility .tb-site-header__quick-links-label { margin: 0; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.mf-utility .tb-site-header__quick-links-menu { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.mf-utility .tb-site-header__lang { margin-inline-start: auto; }
.mf-utility .tb-site-header__lang ul, .mf-drawer__lang ul { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.mf-utility .tb-site-header__lang a { font-weight: 600; }
.mf-utility .tb-social-links { display: flex; gap: 10px; }
/* Brand Kit social markup is nav > ul.tb-social-links__list > li; reset the list everywhere. */
.tb-social-links__list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tb-social-links__item { margin: 0; padding: 0; list-style: none; }
.tb-social-links__item::marker { content: none; }
.mf-utility .tb-social-links a { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.14); }
.mf-utility .tb-social-links a:hover { background: rgba(255,255,255,.28); text-decoration: none; }
.mf-utility .tb-social-links svg { width: 15px; height: 15px; fill: currentColor; }

/* Masthead ------------------------------------------------------------------ */
.mf-masthead {
	position: relative; z-index: 60;
	background: var(--mf-header-bg); color: var(--mf-header-text);
	border-bottom: 1px solid var(--mf-border);
}
.mf-has-sticky .mf-masthead { position: sticky; top: 0; }
.admin-bar.mf-has-sticky .mf-masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar.mf-has-sticky .mf-masthead { top: 46px; } }
.mf-masthead.is-stuck { box-shadow: 0 6px 24px rgba(0,0,0,.08); }

.mf-masthead__inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.mf-masthead__brand { flex: none; }
.mf-masthead__nav { flex: 1 1 auto; display: none; }
.mf-masthead__end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.mf-masthead__cta { display: none; }
/* Language switcher copy: hidden until the sticky masthead is pinned. */
.mf-masthead__lang { display: none; }
.mf-masthead.is-pinned .mf-masthead__lang { display: flex; align-items: center; animation: mf-fade-in .2s ease; }
.mf-masthead__lang ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mf-masthead__lang a {
	display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px;
	border: 1px solid var(--mf-border); border-radius: 999px;
	font-family: var(--mf-font-menu); font-size: 14px; font-weight: 600;
	color: var(--mf-header-text); white-space: nowrap; text-decoration: none;
}
.mf-masthead__lang a:hover { border-color: var(--mf-primary); color: var(--mf-primary); text-decoration: none; }
@keyframes mf-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mf-masthead.is-pinned .mf-masthead__lang { animation: none; } }
@media (min-width: 1024px) {
	.mf-masthead__nav { display: block; }
	.mf-masthead__cta { display: inline-flex; }
	.mf-masthead__burger { display: none; }
}

.mf-logo { margin: 0; line-height: 0; }
.mf-logo__link { display: inline-flex; align-items: center; color: inherit; }
.mf-logo__img { max-height: 64px; width: auto; }
.mf-logo--footer .mf-logo__img, .mf-logo--drawer .mf-logo__img { max-height: 56px; }
.mf-logo__text { font-family: var(--mf-font-display); font-size: 26px; line-height: 1.1; color: inherit; }
.mf-logo--footer .mf-logo__text { color: var(--mf-footer-text); }

/* Primary nav + mega menu ------------------------------------------------- */
.mf-nav__menu { display: flex; align-items: stretch; gap: 4px; }
.mf-nav__item { position: relative; display: flex; align-items: center; }
.mf-nav__link {
	display: inline-flex; align-items: center; min-height: 44px;
	padding: 6px 12px;
	font-family: var(--mf-font-menu); font-size: 16px; font-weight: 600;
	color: var(--mf-header-text);
	border-bottom: 3px solid transparent;
}
.mf-nav__item:hover > .mf-nav__link, .mf-nav__item.is-open > .mf-nav__link, .mf-nav__item.is-current > .mf-nav__link { border-bottom-color: var(--mf-primary); color: var(--mf-header-text); }
.mf-nav__toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; margin-inline-start: -6px;
	background: none; border: 0; border-radius: 50%; cursor: pointer; color: var(--mf-header-text);
	transition: transform .2s ease;
}
.mf-nav__toggle:hover { background: var(--mf-surface); }
.mf-nav__item.is-open > .mf-nav__toggle { transform: rotate(180deg); }
.mf-nav__menu--plain .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px 0; background: var(--mf-mega-bg); border: 1px solid var(--mf-border); border-radius: var(--mf-radius); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.mf-nav__menu--plain li { position: relative; }
.mf-nav__menu--plain li:hover > .sub-menu, .mf-nav__menu--plain li:focus-within > .sub-menu { display: block; }
.mf-nav__menu--plain .sub-menu a { display: block; padding: 8px 16px; color: var(--mf-text); }
.mf-nav__menu--plain .sub-menu a:hover { background: var(--mf-surface); }

/* Mega panel ----------------------------------------------------------------
   Anchored to the masthead container (not the menu item), white surface,
   brand-coloured intro column, pill links, optional aside card. */
@media (min-width: 1024px) {
	.mf-masthead__inner { position: relative; }
	.mf-nav--desktop .mf-nav__item { position: static; }
}
.mf-nav--desktop .mf-mega {
	position: absolute; top: 100%; left: 0; right: 0; z-index: 70;
	padding-top: 1px;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.mf-nav--desktop .mf-nav__item.is-open > .mf-mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mf-nav--desktop .mf-mega__inner {
	display: flex; align-items: stretch;
	background: #fff; color: var(--mf-text);
	border: 1px solid var(--mf-border); border-top: 0;
	border-radius: 0 0 14px 14px;
	box-shadow: 0 24px 56px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .06);
	overflow: hidden;
}
.mf-mega--full .mf-nav--desktop .mf-mega { left: calc(50% - 50vw); right: calc(50% - 50vw); }
.mf-mega--full .mf-nav--desktop .mf-mega__inner { border-radius: 0; padding-inline: max(0px, calc((100vw - var(--mf-width)) / 2)); }

/* Intro column */
.mf-mega__intro {
	flex: 0 0 264px;
	display: flex; flex-direction: column; gap: 12px;
	padding: 32px 28px;
	background: var(--mf-primary); color: #fff;
	background-image: linear-gradient(160deg, rgba(255,255,255,.08), rgba(0,0,0,.12));
}
.mf-mega__title { margin: 0; font-family: var(--mf-font-display); font-size: 28px; line-height: 1.15; color: #fff; }
.mf-mega__desc { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.86); }
.mf-mega__overview {
	display: inline-flex; align-items: center; gap: 8px; margin-top: auto; align-self: flex-start;
	padding: 9px 16px; border-radius: 999px;
	background: rgba(255,255,255,.14); color: #fff; font-size: 14px; font-weight: 600;
	transition: background .15s ease;
}
.mf-mega__overview svg { width: 16px; height: 16px; transition: transform .15s ease; }
.mf-mega__overview:hover { background: rgba(255,255,255,.24); color: #fff; text-decoration: none; }
.mf-mega__overview:hover svg { transform: translateX(3px); }

/* Link columns */
.mf-nav--desktop .mf-mega__col { flex: 1 1 0; padding: 28px 12px; min-width: 0; }
.mf-nav--desktop .mf-mega__intro + .mf-mega__col { padding-left: 24px; }
.mf-nav--desktop .mf-mega__col--wide { flex-grow: 2; }
.mf-nav--desktop .mf-mega__col--wide .mf-mega__menu { display: block; columns: 2; column-gap: 8px; }
.mf-nav--desktop .mf-mega__col--wide .mf-mega__menu > li { break-inside: avoid; }
/* With an aside card there's no room for a split list: keep it one column. */
.mf-nav--desktop .mf-mega__inner--aside .mf-mega__col--wide { flex-grow: 1.2; }
.mf-nav--desktop .mf-mega__inner--aside .mf-mega__col--wide .mf-mega__menu { columns: 1; }

.mf-mega__heading {
	display: flex; align-items: center; gap: 10px;
	margin: 0 0 10px; padding: 0 12px;
	font-family: var(--mf-font-body); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	color: var(--mf-primary);
}
.mf-mega__heading::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--mf-border); }
.mf-mega__logolink { display: inline-flex; margin: 0 12px 12px; }
.mf-mega__logo { max-height: 56px; width: auto; object-fit: contain; }
.mf-mega__menu { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mf-mega__menu li { margin: 0; }
.mf-mega__menu a {
	position: relative; display: flex; align-items: center; gap: 10px;
	padding: 8px 32px 8px 12px; border-radius: 8px;
	color: var(--mf-text); font-size: 15.5px; font-weight: 500; line-height: 1.35;
	transition: background .15s ease, color .15s ease;
}
.mf-mega__menu a::after {
	content: "→"; position: absolute; right: 12px; top: 50%;
	transform: translate(-4px, -50%); opacity: 0;
	color: var(--mf-primary); transition: opacity .15s ease, transform .15s ease;
}
.mf-mega__menu a:hover, .mf-mega__menu a:focus-visible { background: var(--mf-surface); color: var(--mf-primary); text-decoration: none; }
.mf-mega__menu a:hover::after, .mf-mega__menu a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.mf-mega__menu .current-menu-item > a { color: var(--mf-primary); font-weight: 600; }
.mf-mega__menu .sub-menu { padding-left: 14px; list-style: none; }
.mf-mega__menu .sub-menu a { font-weight: 400; font-size: 14.5px; }
.mf-mega__menu--thumbs a { padding-left: 8px; }
.mf-mega__thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
.mf-mega__label { flex: 1 1 auto; }
.mf-mega__col--partner .mf-mega__menu a { font-weight: 400; }

/* Aside card */
.mf-nav--desktop .mf-mega__col--aside {
	flex: 0 0 280px;
	margin: 20px 20px 20px 8px; padding: 20px;
	background: var(--mf-surface); border: 1px solid var(--mf-border); border-radius: 12px;
	display: flex; flex-direction: column;
}
.mf-mega__col--aside .mf-mega__heading { padding: 0; }
.mf-mega__col--aside .mf-mega__heading::after { display: none; }
.mf-mega__aside { flex: 1 1 auto; font-size: 15px; }
.mf-mega__cta { margin: 14px 0 0; }

/* Drawer (mobile navigation) ------------------------------------------------ */
.mf-drawer { position: fixed; inset: 0; z-index: 100; }
.mf-drawer[hidden] { display: none; }
.mf-drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); border: 0; width: 100%; cursor: pointer; }
.mf-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: min(420px, 92vw);
	display: flex; flex-direction: column; gap: 20px;
	padding: 16px 20px 32px;
	background: var(--mf-bg); color: var(--mf-text);
	overflow-y: auto;
	box-shadow: -12px 0 40px rgba(0,0,0,.2);
}
.mf-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.mf-drawer-open { overflow: hidden; }

.mf-nav--drawer .mf-nav__menu { flex-direction: column; gap: 0; border-top: 1px solid var(--mf-border); }
.mf-nav--drawer .mf-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--mf-border); }
.mf-nav--drawer .mf-nav__link { flex: 1 1 auto; padding: 12px 0; border-bottom: 0; font-size: 18px; }
.mf-nav--drawer .mf-nav__toggle { width: 40px; height: 40px; }
.mf-nav--drawer .mf-mega { display: none; width: 100%; padding: 0 0 14px; }
.mf-nav--drawer .mf-nav__item.is-open > .mf-mega { display: block; }
.mf-nav--drawer .mf-mega__inner { display: flex; flex-direction: column; gap: 18px; }
.mf-nav--drawer .mf-mega__col--aside { padding: 14px; background: var(--mf-surface); border-radius: 10px; }
.mf-nav--drawer .mf-mega__heading { padding: 0; }
.mf-nav--drawer .mf-mega__menu a { padding-left: 0; }
.mf-nav--drawer .mf-nav__menu--plain .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 8px 14px; }
.mf-nav--drawer .mf-nav__menu--plain > li > a { display: block; padding: 12px 0; font-size: 18px; font-weight: 600; color: var(--mf-text); }

.mf-drawer__quick { border-top: 1px solid var(--mf-border); padding-top: 14px; }
.mf-drawer__menu { display: flex; flex-direction: column; gap: 4px; }
.mf-drawer__menu a { display: block; padding: 6px 0; color: var(--mf-text); font-weight: 500; }
.mf-drawer__foot { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.mf-drawer__foot .mf-button { width: 100%; }

/* Search --------------------------------------------------------------------- */
.mf-search { display: flex; gap: 0; width: 100%; max-width: 640px; }
.mf-search__input {
	flex: 1 1 auto; min-width: 0;
	padding: 11px 14px;
	border: 1px solid var(--mf-border); border-right: 0; border-radius: var(--mf-radius) 0 0 var(--mf-radius);
	background: var(--mf-bg); color: var(--mf-text); font: inherit; font-size: 16px;
}
.mf-search__btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0 16px; border: 0; border-radius: 0 var(--mf-radius) var(--mf-radius) 0;
	background: var(--mf-button-bg); color: var(--mf-button-text); cursor: pointer;
}
.mf-search-bar { border-top: 1px solid var(--mf-border); background: var(--mf-surface); padding: 14px 0; }
.mf-search-bar[hidden] { display: none; }
.mf-search-bar .mf-search { margin-inline: auto; }

/* Page hero + breadcrumbs ------------------------------------------------ */
.mf-hero {
	position: relative;
	background: var(--mf-surface);
	color: var(--mf-text);
	border-bottom: 1px solid var(--mf-border);
	margin-bottom: 40px;
}
.mf-hero__inner { padding-block: 40px 44px; display: flex; flex-direction: column; gap: 10px; }
.mf-hero__title { font-size: clamp(32px, 4.5vw, 52px); max-width: 20ch; }
.mf-hero__subtitle { font-size: 18px; color: var(--mf-muted); max-width: 60ch; }
.mf-hero--image {
	background-size: cover; background-position: center;
	color: #fff; border-bottom: 0;
}
.mf-hero--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,18,.35), rgba(10,25,18,.72)); }
.mf-hero--image .mf-hero__inner { position: relative; min-height: 320px; justify-content: flex-end; padding-block: 56px 48px; }
.mf-hero--image .mf-hero__subtitle, .mf-hero--image .mf-kicker, .mf-hero--image .mf-breadcrumbs { color: rgba(255,255,255,.88); }
.mf-hero--image .mf-breadcrumbs a { color: inherit; }
.mf-hero--compact .mf-hero__inner { padding-block: 20px; }
.mf-hero--compact { margin-bottom: 24px; }
.mf-hero .mf-search { margin-top: 12px; }

.mf-breadcrumbs { font-size: 14px; color: var(--mf-muted); }
.mf-breadcrumbs__list { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.mf-breadcrumbs__item + .mf-breadcrumbs__item::before { content: "/"; margin-inline-end: 6px; opacity: .5; }
.mf-breadcrumbs a { color: inherit; }
.mf-breadcrumbs a:hover { color: var(--mf-primary); text-decoration: underline; }

/* Prose --------------------------------------------------------------------- */
.mf-prose { font-size: 18px; line-height: 1.65; }
.mf-prose > * + * { margin-top: 1.1em; }
.mf-prose h2, .mf-prose h3, .mf-prose h4 { margin-top: 1.6em; }
.mf-prose h2 { font-size: 30px; }
.mf-prose h3 { font-size: 24px; }
.mf-prose h4 { font-size: 20px; font-family: var(--mf-font-body); font-weight: 700; }
.mf-prose a { text-decoration: underline; text-underline-offset: 3px; }
.mf-prose ul, .mf-prose ol { padding-left: 1.4em; }
.mf-prose li + li { margin-top: .35em; }
.mf-prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--mf-primary); color: var(--mf-muted); font-style: italic; }
.mf-prose img { border-radius: var(--mf-radius); }
.mf-prose figure { margin: 1.4em 0; }
.mf-prose figcaption { font-size: 14px; color: var(--mf-muted); margin-top: 6px; }
.mf-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.mf-prose th, .mf-prose td { padding: 10px 12px; border-bottom: 1px solid var(--mf-border); text-align: left; vertical-align: top; }
.mf-prose th { background: var(--mf-surface); font-weight: 700; }
.mf-prose .wp-block-button__link, .mf-prose .wp-element-button { background: var(--mf-button-bg); color: var(--mf-button-text); border-radius: var(--mf-radius); text-decoration: none; }
.mf-prose .alignwide { margin-inline: calc(50% - min(50vw - 16px, 580px)); max-width: none; }
.mf-pagelinks { margin-top: 24px; font-weight: 600; }
.mf-pagelinks a { margin-left: 6px; }

/* Cards + lists -------------------------------------------------------------- */
.mf-list { display: flex; flex-direction: column; border-top: 1px solid var(--mf-border); }
.mf-card--row { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--mf-border); }
@media (min-width: 640px) { .mf-card--row { grid-template-columns: 200px 1fr; align-items: start; } }
.mf-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--mf-radius); }
.mf-card__body { display: flex; flex-direction: column; gap: 6px; }
.mf-card__title { font-size: 24px; }
.mf-card__title a { color: var(--mf-text); }
.mf-card__title a:hover { color: var(--mf-primary); text-decoration: underline; text-underline-offset: 3px; }
.mf-card__meta { font-size: 14px; color: var(--mf-muted); }
.mf-card__excerpt { color: var(--mf-muted); }
.mf-card--card { display: flex; flex-direction: column; gap: 12px; }
.mf-empty { padding: 32px 0; color: var(--mf-muted); }

/* Entries (single) ------------------------------------------------------------ */
.mf-entry__head { padding-block: 36px 24px; }
.mf-entry__head .mf-wrap { display: flex; flex-direction: column; gap: 10px; }
.mf-entry__title { font-size: clamp(32px, 4.5vw, 50px); }
.mf-entry__meta { font-size: 15px; color: var(--mf-muted); display: flex; gap: 14px; flex-wrap: wrap; }
.mf-entry__figure { margin: 0 auto 32px; }
.mf-entry__figure img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 8px; }
.mf-entry__caption { font-size: 14px; color: var(--mf-muted); margin-top: 8px; }
.mf-entry__back { margin-top: 40px; font-weight: 600; }
.mf-entry__back a { display: inline-flex; align-items: center; gap: 8px; }
.mf-entry__back .mf-icon { transform: rotate(180deg); }
.mf-entry__bylaw .mmd-bylaw { padding-inline: 0; max-width: none; }

.mf-attachments { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--mf-border); }
.mf-attachments__list { display: flex; flex-wrap: wrap; gap: 12px; }
.mf-attachments__link {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 12px 16px; border: 1px solid var(--mf-border); border-radius: var(--mf-radius);
	background: var(--mf-surface); color: var(--mf-text); font-weight: 600;
}
.mf-attachments__link:hover { border-color: var(--mf-primary); color: var(--mf-primary); }
.mf-attachments__link .mf-icon { color: var(--mf-primary); }

/* 404 ------------------------------------------------------------------------ */
.mf-404__inner { display: flex; flex-direction: column; gap: 18px; padding-block: 48px 40px; }
.mf-404__links { display: flex; flex-wrap: wrap; gap: 10px; }
.mf-404__links a { display: inline-block; padding: 8px 14px; border: 1px solid var(--mf-border); border-radius: var(--mf-radius); color: var(--mf-text); font-weight: 600; }
.mf-404__links a:hover { border-color: var(--mf-primary); color: var(--mf-primary); }

/* Pagination ------------------------------------------------------------------ */
.mf-pagination { margin-top: 32px; }
.mf-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.mf-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--mf-border); border-radius: var(--mf-radius); color: var(--mf-text); font-weight: 600;
}
.mf-pagination .page-numbers.current { background: var(--mf-primary); border-color: var(--mf-primary); color: var(--mf-button-text); }
.mf-pagination a.page-numbers:hover { border-color: var(--mf-primary); color: var(--mf-primary); }
.mf-pagination .screen-reader-text { position: absolute !important; }

/* Comments ---------------------------------------------------------------------- */
.comments-area { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--mf-border); }
.comment-list { list-style: none; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--mf-border); }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--mf-border); border-radius: var(--mf-radius); font: inherit; }
.comment-form .submit { background: var(--mf-button-bg); color: var(--mf-button-text); border: 0; border-radius: var(--mf-radius); padding: 11px 20px; font-weight: 600; cursor: pointer; }

/* Footer ------------------------------------------------------------------------ */
.mf-footer { background: var(--mf-footer-bg); color: var(--mf-footer-text); padding-block: 56px 28px; font-size: 15px; }
.mf-footer a { color: inherit; }
.mf-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mf-footer__grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 640px) { .mf-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .mf-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.mf-footer__col { display: flex; flex-direction: column; gap: 14px; }
.mf-footer__title { font-family: var(--mf-font-body); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.mf-footer__contact { font-style: normal; display: flex; flex-direction: column; gap: 8px; }
.mf-footer__row { display: inline-flex; align-items: flex-start; gap: 10px; }
.mf-footer__row .mf-icon { width: 18px; height: 18px; margin-top: 3px; opacity: .8; }
.mf-footer__hours { white-space: pre-line; line-height: 1.7; }
.mf-footer__emergency { display: inline-flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--mf-radius); background: rgba(255,255,255,.08); font-weight: 600; }
.mf-footer__emergency .mf-icon { color: #f6c65b; margin-top: 2px; }
.mf-footer__menu { display: flex; flex-direction: column; gap: 6px; }
.mf-footer__social .tb-social-links { display: flex; gap: 10px; }
.mf-footer__social .tb-social-links a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); }
.mf-footer__social .tb-social-links a:hover { background: rgba(255,255,255,.22); }
.mf-footer__social .tb-social-links svg { width: 18px; height: 18px; fill: currentColor; }
.mf-footer__base { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14px; opacity: .85; }
.mf-footer__note { flex-basis: 100%; }
.mf-footer__note p + p { margin-top: .6em; }

/* Theme Builder Core Pages inside this theme --------------------------------- */
.tb-core-page--installed .tb-core-page__main { padding-bottom: 64px; }
/* Theme Builder wraps the full-bleed hero and the inner <main> in an outer
   .tb-core-page__main; drop its padding/max-width so the hero sits flush under
   the masthead and the content column isn't padded twice. */
.tb-core-page--installed .tb-core-page__main:has(> .tb-core-page__hero) { max-width: none; padding: 0; }
.tb-core-page--installed .tb-core-page__block-title { font-family: var(--mf-font-display); font-weight: 400; letter-spacing: -0.01em; }
.tb-core-page--installed .tb-core-page__cta,
.tb-core-page--installed .tb-core-page__cta:visited {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 22px;
	background: var(--mf-button-bg); color: var(--mf-button-text);
	border-radius: var(--mf-radius);
	font-family: var(--mf-font-body); font-size: 15px; font-weight: 600; line-height: 1.2;
	text-decoration: none; white-space: nowrap;
	transition: background .15s ease, color .15s ease;
}
.tb-core-page--installed .tb-core-page__cta:hover,
.tb-core-page--installed .tb-core-page__cta:focus-visible { background: var(--mf-primary-hover); color: var(--mf-button-text); text-decoration: none; }
.tb-core-page--installed .tb-core-page__column-cta { margin: 0; }

/* Heroes with no image yet: branded gradient instead of flat slate. */
.tb-core-page--installed .tb-core-page__block--tall-hero:not([style*="background-image"]),
.tb-core-page--installed .tb-core-page__block--image-overlay:not([style*="background-image"]) {
	background-image: linear-gradient(135deg, var(--mf-primary) 0%, #1b2a3a 100%);
}

/* Audience cards (Residents / Business / Visitors): overlap the hero like the Bristol design. */
.tb-core-page--installed .tb-core-page__block--audience-cards { position: relative; z-index: 2; }
.tb-core-page--installed .tb-core-page__block--audience-cards .tb-core-page__columns--3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .tb-core-page--installed .tb-core-page__block--audience-cards .tb-core-page__columns--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tb-core-page--installed .tb-core-page__audience-card {
	display: flex; flex-direction: column; gap: 10px;
	padding: 28px;
	background: var(--mf-bg); color: var(--mf-text);
	border: 1px solid var(--mf-border); border-top: 5px solid var(--mf-primary); border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.tb-core-page--installed .tb-core-page__audience-card .tb-core-page__column-title { font-family: var(--mf-font-display); font-size: 28px; }
.tb-core-page--installed .tb-core-page__audience-card .tb-core-page__column-text { color: var(--mf-muted); flex: 1 1 auto; }
.tb-core-page--installed .tb-core-page__audience-card .tb-core-page__column-cta { margin-top: 6px; }
.tb-home-tall-hero.tb-core-page--installed .tb-core-page__hero + .tb-core-page__main .tb-core-page__block--audience-cards:first-child { margin-top: -64px; }

/* Accordion layouts (Theme Builder accordion / text-accordion) ---------------- */
.tb-core-page--installed .tb-core-page__accordion details,
.tb-core-page--installed details.tb-accordion-item {
	border: 1px solid var(--mf-border);
	border-radius: var(--mf-radius);
	background: var(--mf-bg);
	margin-bottom: 10px;
	padding: 0;
}
.tb-core-page--installed .tb-core-page__accordion summary,
.tb-core-page--installed details.tb-accordion-item > summary {
	cursor: pointer;
	list-style: none;
	padding: 16px 20px;
	font-weight: 700;
	font-family: var(--mf-font-body);
	color: var(--mf-text);
}
.tb-core-page--installed .tb-core-page__accordion summary::-webkit-details-marker,
.tb-core-page--installed details.tb-accordion-item > summary::-webkit-details-marker { display: none; }
.tb-core-page--installed .tb-core-page__accordion .tb-core-page__block-text,
.tb-core-page--installed details.tb-accordion-item .tb-core-page__block-text,
.tb-core-page--installed details.tb-accordion-item > :not(summary) {
	padding: 0 20px 18px;
	color: var(--mf-muted);
}

/* Page pattern classes (Advanced → CSS classes) ------------------------------ */
.tb-core-page--installed .mf-section .tb-core-page__block-title,
.tb-core-page--installed .tb-core-page__block.mf-section .tb-core-page__block-title {
	margin-bottom: 8px;
}
.tb-core-page--installed .mf-section .tb-core-page__block-text {
	max-width: 70ch;
	color: var(--mf-muted);
}

/* Contact cards: label / value definition lists inside columns. */
.tb-core-page--installed .mf-contact-cards .tb-core-page__column,
.tb-core-page--installed .mf-contact-cards .tb-core-page__column-text {
	background: var(--mf-surface);
	border-radius: 8px;
	padding: 20px;
}
.tb-core-page--installed .mf-contact-cards dl,
.mf-contact-list {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 16px;
	margin: 0;
}
.tb-core-page--installed .mf-contact-cards dt,
.mf-contact-list dt { font-weight: 700; color: var(--mf-muted); }
.tb-core-page--installed .mf-contact-cards dd,
.mf-contact-list dd { margin: 0; }

/* Feature rows: image beside copy. */
.tb-core-page--installed .mf-feature .tb-core-page__block-inner,
.tb-core-page--installed .tb-core-page__block.mf-feature[data-layout="image-left"] .tb-core-page__block-inner,
.tb-core-page--installed .tb-core-page__block.mf-feature[data-layout="image-right"] .tb-core-page__block-inner {
	align-items: center;
}
.tb-core-page--installed .mf-feature .tb-core-page__block-text { max-width: 60ch; }

/* Tile continuation: a second columns block that continues the previous row. */
.tb-core-page--installed .tb-core-page__block.mf-tiles--cont {
	margin-top: -12px;
}
.tb-core-page--installed .tb-core-page__block.mf-tiles--cont .tb-core-page__block-title { display: none; }
.tb-core-page--installed .mf-tiles--cont .tb-core-page__column-text {
	display: -webkit-box;
	-webkit-line-clamp: unset;
	overflow: visible;
}

/* Document link lists. */
.tb-core-page--installed .mf-doc-list .tb-core-page__block-text a,
.tb-core-page--installed .mf-doc-list ul a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	padding: 8px 0;
	border-bottom: 1px solid var(--mf-border);
	text-decoration: none;
}
.tb-core-page--installed .mf-doc-list .tb-core-page__block-text a:hover { color: var(--mf-primary); }

/* Posters / brochures after the copy. */
.tb-core-page--installed .mf-posters .tb-core-page__columns,
.tb-core-page--installed .mf-posters .tb-core-page__block-inner {
	gap: 20px;
}
.tb-core-page--installed .mf-posters .tb-core-page__column-image img,
.tb-core-page--installed .mf-posters img {
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

/* Text-only cards (taxes, fees). */
.tb-core-page--installed .mf-text-cards .tb-core-page__column {
	background: var(--mf-surface);
	border: 1px solid var(--mf-border);
	border-top: 4px solid var(--mf-primary);
	border-radius: 8px;
	padding: 22px;
}
.tb-core-page--installed .mf-text-cards .tb-core-page__column-image { display: none; }

/* Legal text: narrower measure for privacy / terms. */
.tb-core-page--installed .mf-legal .tb-core-page__block-text,
.tb-core-page--installed .mf-legal .tb-core-page__block-inner {
	max-width: 70ch;
	font-size: 16px;
	line-height: 1.7;
}

/* Staff directory jump links. */
.tb-core-page--installed .mf-staff-jump .tb-core-page__block-text a,
.tb-core-page--installed .mf-staff-jump nav a {
	display: inline-flex;
	margin: 0 8px 8px 0;
	padding: 8px 14px;
	border: 1px solid var(--mf-border);
	border-radius: 999px;
	font-weight: 600;
	color: var(--mf-text);
	text-decoration: none;
}
.tb-core-page--installed .mf-staff-jump .tb-core-page__block-text a:hover,
.tb-core-page--installed .mf-staff-jump nav a:hover {
	border-color: var(--mf-primary);
	color: var(--mf-primary);
}

/* Theme Builder embed shortcodes -------------------------------------------- */
.tb-embed--video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--mf-radius); overflow: hidden; }
.tb-embed--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tb-embed--video-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.tb-embed--video-bg iframe {
	position: absolute; top: 50%; left: 50%;
	width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.77%;
	transform: translate(-50%, -50%); border: 0;
}
.tb-embed--map { width: 100%; max-width: 100%; border: 0; border-radius: var(--mf-radius); }
.tb-embed--search { display: flex; gap: 0; max-width: 480px; }
.tb-embed__search-input {
	flex: 1 1 auto; min-width: 0; padding: 11px 14px;
	border: 1px solid var(--mf-border); border-right: 0;
	border-radius: var(--mf-radius) 0 0 var(--mf-radius);
	font: inherit;
}
.tb-embed__search-button {
	padding: 0 16px; border: 0;
	border-radius: 0 var(--mf-radius) var(--mf-radius) 0;
	background: var(--mf-button-bg); color: var(--mf-button-text);
	font-weight: 600; cursor: pointer;
}

/* Council meeting page (Municipal Dashboard body inside the theme shell) ------- */
.mf-meeting .mmd-council-meeting { padding-inline: 0; max-width: none; }

/* Print ------------------------------------------------------------------------ */
@media print {
	.mf-utility, .mf-charter, .mf-masthead__end, .mf-drawer, .mf-search-bar, .mf-footer__social, .mf-entry__back { display: none !important; }
	.mf-masthead { position: static !important; box-shadow: none; }
	a { color: inherit; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Rhythm & type (1.2.1) --------------------------------------------------------
   Roomier blocks and a stronger heading scale for the Fraunces / Public Sans
   pairing. Interior heroes are shorter than the home hero. */
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.015em; }

.tb-core-page--installed .tb-core-page__main--after-hero,
.tb-core-page--installed .tb-core-page__hero + .tb-core-page__main { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.tb-core-page--installed .tb-core-page__block { margin-bottom: clamp(3.75rem, 8vw, 6.5rem); }
.tb-core-page--installed .tb-core-page__block:last-child { margin-bottom: 0; }
.tb-core-page--installed .tb-core-page__block-inner { gap: clamp(1.5rem, 3vw, 2.25rem); }
.tb-core-page--installed .tb-core-page__block-inner--split,
.tb-core-page--installed [data-layout="image-left"] .tb-core-page__block-inner,
.tb-core-page--installed [data-layout="image-right"] .tb-core-page__block-inner { column-gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.tb-core-page--installed .tb-core-page__block-title { font-weight: 500; font-size: clamp(1.9rem, 3.2vw, 2.65rem); line-height: 1.12; margin-bottom: 1.1rem; }
.tb-core-page--installed .tb-core-page__block-text { font-size: 1.0625rem; line-height: 1.75; }
.tb-core-page--installed .tb-core-page__block-text p,
.tb-core-page--installed .tb-core-page__column-text p { margin-bottom: 1em; }
.tb-core-page--installed .tb-core-page__block-inner--columns > .tb-core-page__block-text,
.tb-core-page--installed .tb-core-page__block--text-focus .tb-core-page__block-text { max-width: 68ch; }

.tb-core-page--installed .tb-core-page__columns { gap: clamp(1.75rem, 3.5vw, 2.75rem); margin-top: .5rem; }
.tb-core-page--installed .tb-core-page__column-title { font-family: var(--mf-font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.25; margin: .9rem 0 .5rem; }
.tb-core-page--installed .tb-core-page__column-image + .tb-core-page__column-title { margin-top: 1.1rem; }
.tb-core-page--installed .tb-core-page__column:not(:has(.tb-core-page__column-image)) .tb-core-page__column-title { margin-top: 0; }
.tb-core-page--installed .tb-core-page__column-text { line-height: 1.7; color: var(--mf-muted); }
.tb-core-page--installed .tb-core-page__column-image img { border-radius: 6px; }

/* Accordion: more air per row. */
.tb-core-page--installed .tb-accordion__summary { padding-block: 1.15rem; }
.tb-core-page--installed .tb-accordion__title { font-size: 1.05rem; }

/* Heroes. Home keeps Theme Builder's 70vh; interior pages are a shade shorter. */
.tb-core-page--installed .tb-core-page__block--tall-hero .tb-core-page__block-inner--tall-hero { padding-block: clamp(4rem, 9vw, 7rem); }
.tb-core-page--installed .tb-core-page__block--tall-hero .tb-core-page__block-title { font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.04; letter-spacing: -0.025em; margin-bottom: 1.25rem; }
.tb-core-page--installed .tb-core-page__block--tall-hero .tb-core-page__block-text { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.65; max-width: 40rem; }
.tb-core-page--installed:not(.tb-home-tall-hero) .tb-core-page__block--tall-hero { min-height: clamp(420px, 60vh, 640px); }
.tb-core-page--installed .tb-core-page__block--tall-hero::before { background: linear-gradient(90deg, rgba(10, 20, 32, .72) 0%, rgba(10, 20, 32, .45) 55%, rgba(10, 20, 32, .25) 100%); }
/* Hero copy column: wide enough for a two-line title. */
.tb-core-page--installed .tb-core-page__block--page-header.tb-core-page__block--tall-hero .tb-core-page__block-body { width: min(100%, 46rem); max-width: 46rem; }
/* Columns blocks: heading + intro sit together; the grid gets the space. */
.tb-core-page--installed .tb-core-page__block-inner--columns { row-gap: 0; }
.tb-core-page--installed .tb-core-page__block-inner--columns > .tb-core-page__block-title { margin-bottom: .75rem; }
.tb-core-page--installed .tb-core-page__block-inner--columns > .tb-core-page__columns { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.tb-core-page--installed .tb-core-page__block-inner--columns > .tb-core-page__block-title + .tb-core-page__columns { margin-top: 1.25rem; }
.tb-core-page--installed .tb-core-page__column-text { color: color-mix(in srgb, var(--mf-text) 74%, transparent); }
/* A heading-less columns block continues the grid above it. */
/* (:has() can't nest, so pull the second row up; the margins collapse to the row gap.) */
.tb-core-page--installed .tb-core-page__block[data-layout^="columns"] + .tb-core-page__block[data-layout^="columns"]:not(:has(.tb-core-page__block-title)) { margin-top: calc(clamp(1.75rem, 3.5vw, 2.75rem) - clamp(3.75rem, 8vw, 6.5rem)); }
.tb-core-page--installed .tb-core-page__column-text > :last-child { margin-bottom: 0; }
.tb-core-page--installed .tb-core-page__block[data-layout^="columns"]:not(:has(.tb-core-page__block-title)) .tb-core-page__columns { margin-top: 0; }

/* Document list: [mf_documents] (inc/documents.php) ------------------------ */
.mf-docs { margin: 8px 0 0; }
.mf-docs__heading { margin: 0 0 12px; font-size: 20px; }
.mf-docs__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mf-docs__link {
	display: flex; align-items: center; gap: 16px;
	padding: 14px 18px;
	border: 1px solid var(--mf-border);
	border-left: 4px solid var(--mf-primary);
	border-radius: 8px;
	background: var(--mf-bg);
	color: var(--mf-text);
	text-decoration: none;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.mf-docs__link:hover { box-shadow: 0 8px 22px rgba(15, 30, 25, .1); transform: translateY(-1px); border-color: var(--mf-primary); }
.mf-docs__badge {
	flex: none;
	display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	width: 52px; height: 58px;
	border-radius: 6px;
	background: var(--mf-surface);
	color: var(--mf-primary);
	font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.mf-docs__badge .mf-icon { width: 22px; height: 22px; }
.mf-docs__badge--pdf { background: #fbeceb; color: #b42318; }
.mf-docs__badge--doc { background: #e8f0fb; color: #1f5fae; }
.mf-docs__badge--sheet { background: #e7f5ec; color: #1d7a45; }
.mf-docs__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mf-docs__title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.mf-docs__desc { font-size: 15px; color: var(--mf-muted); }
.mf-docs__meta { font-size: 13px; color: var(--mf-muted); letter-spacing: .02em; }
.mf-docs__go { flex: none; color: var(--mf-primary); }
.mf-docs__go .mf-icon { width: 20px; height: 20px; }
@media (max-width: 600px) {
	.mf-docs__link { padding: 12px 14px; gap: 12px; }
	.mf-docs__badge { width: 44px; height: 50px; }
	.mf-docs__go { display: none; }
}

/* ==========================================================================
   Linked column cards (1.3.2)
   TB gives a linked column (the whole card is the link) a hover shadow but
   no padding, so the shadow hugs the text. Pad it, and pull it back out with
   a matching negative margin so it lines up with unlinked siblings at rest.
   Blocks whose columns are already cards keep their own box.
   ========================================================================== */
.tb-core-page--installed .tb-core-page__block:not(.tb-core-page__block--has-column-border):not(.mf-text-cards):not(.mf-contact-cards):not(.mf-posters):not(.mf-tiles--cont) a.tb-core-page__column--linked:not(.tb-core-page__audience-card) {
	--mf-linkcard-pad: clamp(.75rem, 1.6vw, 1.25rem);
	position: relative;
	padding: var(--mf-linkcard-pad);
	margin: calc(var(--mf-linkcard-pad) * -1);
	border: 1px solid transparent;
	border-radius: 10px;
	background: transparent;
	transition: box-shadow .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.tb-core-page--installed .tb-core-page__block:not(.tb-core-page__block--has-column-border):not(.mf-text-cards):not(.mf-contact-cards):not(.mf-posters):not(.mf-tiles--cont) a.tb-core-page__column--linked:not(.tb-core-page__audience-card):is(:hover, :focus-visible) {
	z-index: 1;
	background: var(--mf-bg);
	border-color: var(--mf-border);
	box-shadow: 0 10px 28px rgba(15, 30, 25, .1);
	transform: translateY(-2px);
}
.tb-core-page--installed a.tb-core-page__column--linked:hover .tb-core-page__column-title { color: var(--mf-primary); }
@media (prefers-reduced-motion: reduce) {
	.tb-core-page--installed a.tb-core-page__column--linked { transform: none !important; }
}
