/* ==========================================================================
   MMA Reskin 2026 — github.com/vivwebsolutions/mma, branch reskin2026
   Tracking: issue #1190 (parent). Loaded after css/global.css.
   Organized by sub-issue so each section can be reviewed/reverted independently.

   Values come from css/reskin-tokens.css (loaded immediately before this
   file — see functions/theme.php). Phase 0 (#1225) was a PURE substitution:
   every var() below resolves to the exact literal it replaced. Where a
   shipped value has no exact token (44px, 11px, 28px, 16px, #f0f0f0,
   #8a8a8a, #6b6b6b, #d5d5d5, #000, #db0009, rgba(0,0,0,.25), …) the literal
   is deliberately LEFT IN PLACE — rounding onto the scale is Phase 2, not
   Phase 0, and it must not hide inside a token rename.
   ========================================================================== */

/* --------------------------------------------------------------------------
   #1191 — Typography: Lexend body, retire Rubik, fix small-text legibility
   -------------------------------------------------------------------------- */

body {
	/* 29px stays a literal: --lh-body (1.61) is 28.98px, not 29px. */
	/* #1207: weight is --fw-body (350 sitewide since 2026-09-15 — Kalman
	   still read 400 as bold after the ink + measure pass). Ink off pure
	   #000 (2026-08-30). */
	font: var(--fw-body) var(--fs-400)/29px var(--font-body);
	color: #1a1a1a;
}

/* #1207 (deployed as default 2026-08-30): cap the long-form reading
   measure at 720px (~70ch at 18px). Text blocks only — cards, grids,
   tables and media keep the full column. Two shapes carry long-form
   copy: WPBakery text blocks on pages, and bare elements directly in
   .single-content on news/advocacy singles. */
#page2-cont .col-md-9 .wpb_text_column,
.col-md-9.single-content > p,
.col-md-9.single-content > ul,
.col-md-9.single-content > ol,
.col-md-9.single-content > h2,
.col-md-9.single-content > h3,
.col-md-9.single-content > h4,
.col-md-9.single-content > blockquote {
	max-width: 720px;
}

/* #1341: a page whose content opens with a heading got global.css's 60px
   heading top margin on top of #page2-cont's 50px — 110px of blank under
   the title band. The FIRST heading in the main column (nothing before it
   at any wrapper depth WPBakery adds) loses its top margin; headings
   further down keep their 60px. Scoped to the plain page templates: on
   efs, press-releases and add-listing-new the first heading already sits
   at 0. */
:is(body.page-template-page-with-left-sidebar, body.page-template-page-without-sidebar, body.page-template-advocacy-template)
	:is(#page2-cont > .row > .table-header-on-tablet, #page2-cont > .row > .col-md-12)
	:is(h1, h2, h3, h4, h5, h6):first-child:not(:is(#page2-cont > .row > .table-header-on-tablet, #page2-cont > .row > .col-md-12) :not(:first-child) *) {
	margin-top: 0;
}

/* #1207: the long-form-only 350 block that lived here is gone — 350 is
   now the body default via --fw-body (2026-09-15). */

/* Slider Revolution (v7) writes each static layer's font-family/weight
   inline from the slide settings — the one place on the site the tokens
   could not reach. The slide settings on d2mma now say Newsreader/Lexend
   (2026-09-15), but these !important rules are what make the hero follow
   the tokens, and so the font lab: headline layer = display serif, copy
   layer = body, button = body at semi. Scoped to the static slide so
   per-slide layers keep whatever the slide author set. */
sr7-module .sr7-staticslide h1.sr7-layer {
	font-family: var(--font-display) !important;
	font-weight: var(--fw-display) !important;
}
sr7-module .sr7-staticslide span.sr7-layer {
	font-family: var(--font-body) !important;
	font-weight: var(--fw-body) !important;
}
sr7-module .sr7-staticslide a.sr7-btn {
	font-family: var(--font-body) !important;
	font-weight: var(--fw-semi) !important;
}

/* Rubik retired — only 2 rules used it, both here */
.matown-sidebar-widget button.vc_btn3 {
	font-family: var(--font-body);
}
.matown-sidebar-widget h3 {
	font-family: var(--font-body);
}

/* Small-text legibility pass — the actual "period is too small" fix.
   Same selectors as global.css, loaded after it, so these win outright. */

body > footer .copyright .row.copy {
	font-size: var(--fs-100);
	line-height: 18px;
}
body > footer .row.copy > [class^=col]:first-child {
	font-size: var(--fs-100);
	line-height: 24px;
}
#copy-firm-name {
	font-size: var(--fs-100) !important;
}
#page_head .breadcrumbs,
#page_head #breadcrumbs {
	/* Kalman 2026-08-30: "breadcrumbs could remain small and less
	   emphasized" — 13px, quiet. The scrim stays: it is the WCAG floor
	   on gradient/photo bars (#1192), just smaller now. */
	font-size: var(--fs-100);
	/* Breadcrumb legibility on the section-gradient bars (Kalman,
	   2026-08-28): the trail sat directly on the gradients, where no flat
	   gray can pass WCAG AA (mid-amber zones fail even for white). The
	   scrim guarantees the ground: worst-case 5.19:1 for the #d0d0d0
	   trail, 8:1+ for the white current item. */
	display: inline-block;
	background: rgba(0, 0, 0, .5);
	border-radius: var(--radius-sm);
	padding: 3px var(--space-3);
	line-height: 24px;
	margin-top: 44px;
}
/* De-emphasize the current item: global.css gives it a 4px red underline
   and bold white (with !important on one plugin's markup) — the trail
   should whisper, not shout. Current stays a step brighter than the
   #d0d0d0 trail for orientation, nothing more. The light title-bar demo
   options (C/I) re-declare their own colors after this file and still
   win. */
#page_head .breadcrumbs [property=itemListElement] > span[property=name],
#page_head #breadcrumbs .breadcrumb_last,
#page_head #breadcrumbs > span > a:last-child {
	border-bottom: none !important;
	font-weight: var(--fw-regular) !important;
	color: #f2f2f2 !important;
}
#page_head .breadcrumbs a,
#page_head #breadcrumbs a {
	color: var(--color-text-on-dark-muted);
}
#page_head .post_meta .post_date .month {
	font-size: var(--fs-200);
}
#page_head .post_meta .post_date .year {
	font-size: var(--fs-100);
}
#page_head .post_meta .post-categories {
	font-size: var(--fs-100);
}
body > header #searchform input::placeholder {
	font-size: var(--fs-100);
}
.wp-caption .wp-caption-text {
	font-size: var(--fs-100);
	line-height: 18px;
}

/* --------------------------------------------------------------------------
   #1192 / #1213 — Inner page header system: one section theme per content
   area. Same H1 / .post_meta / breadcrumb markup underneath — this only
   themes the background. Fine-noise texture (SVG feTurbulence, no external
   asset) layered under a dark overlay gradient so white title text reads.

   #1213 moved the accent pair off #page_head and onto <body>, so a section
   accent reaches the sidebar, cards, links and CTAs instead of being
   trapped inside the title bar. Two things about the scoping are
   load-bearing and were measured, not assumed (115-URL sweep, 2026-08-30):

   1. The rules match BOTH body.section--* and #page_head.page-head--*.
      ~20 templates hardcode the page-head class and it does not always
      agree with the body class that mma_page_head_theme() computes:
      /about-mma/press-releases/ is page-head--news on a default body, and
      /webinars/ is page-head--resources on a default body. Painting the
      title bar from the body class alone would flatten both.
   2. --section-head-image is set ONLY in the #page_head-scoped rules,
      never on <body>. Some templates render #page_head with no section
      class at all while the body still has one — /?s=budget comes out
      section--advocacy because get_post_type() sees the first result — and
      a body-scoped image would leak a gradient onto those bars.

   -------------------------------------------------------------------------- */

body.section--advocacy,
#page_head.page-head--advocacy {
	--color-accent: var(--c-accent-advocacy);
	--color-accent-dark: var(--c-accent-advocacy-dark);
}
body.section--resources,
#page_head.page-head--resources {
	--color-accent: var(--c-accent-resources);
	--color-accent-dark: var(--c-accent-resources-dark);
}
body.section--members,
#page_head.page-head--members {
	--color-accent: var(--c-accent-members);
	--color-accent-dark: var(--c-accent-members-dark);
}
body.section--news,
#page_head.page-head--news {
	--color-accent: var(--c-accent-news);
	--color-accent-dark: var(--c-accent-news-dark);
}
body.section--events,
#page_head.page-head--events {
	--color-accent: var(--c-accent-events);
	--color-accent-dark: var(--c-accent-events-dark);
}
body.section--marketplace,
#page_head.page-head--marketplace {
	--color-accent: var(--c-accent-marketplace);
	--color-accent-dark: var(--c-accent-marketplace-dark);
}
/* Default needs no accent rule — :root already holds the pair. */

/* The section gradient, composed ONCE, replacing the accent hexes that used
   to be written a second time inside each of seven gradient literals.

   It is declared here rather than in the token file on purpose: var() inside
   a custom property is substituted where that property is DECLARED, not
   where it is read, so composing it in :root would bake in :root's default
   #8a8a8a and inherit that literal into every section. On this selector list
   --color-accent already holds the section's own value, and each section's
   own --section-gradient-origin (set below) is picked up from the same
   element, so one declaration reproduces all six bars exactly.

   Sections that do not carry a page-head--* class deliberately do not match:
   --section-gradient stays undefined for them and the #page_head rule below
   falls back to `none`, which is what an unthemed title bar has always been. */
#page_head.page-head--advocacy,
#page_head.page-head--resources,
#page_head.page-head--members,
#page_head.page-head--news,
#page_head.page-head--events,
#page_head.page-head--marketplace {
	--section-gradient: radial-gradient(130% 160% at var(--section-gradient-origin),
		var(--color-accent) 0%, var(--color-accent-dark) 40%, var(--c-neutral-900) 85%);
}

/* ONE background rule for the title bar, replacing seven. Each section
   contributes only its decorative overlay layer and its gradient origin. */
#page_head {
	position: relative;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-color: var(--color-bg-inverse);
	background-image: var(--section-texture, none), var(--section-gradient, none);
}

/* Advocacy — amber/gold: policy, action, Beacon Hill */
#page_head.page-head--advocacy {
	--section-texture: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px);
}
/* Resources — deep blue: reference material, trust */
#page_head.page-head--resources {
	--section-gradient-origin: 0% 100%;
	--section-texture: repeating-linear-gradient(150deg, rgba(255,255,255,.04) 0 1px, transparent 1px 16px);
}
/* Members — coral/rose: people, communities */
#page_head.page-head--members {
	--section-gradient-origin: 100% 100%;
	--section-texture:
		radial-gradient(3px 3px at 20% 30%, rgba(255,255,255,.12), transparent),
		radial-gradient(3px 3px at 70% 60%, rgba(255,255,255,.1), transparent),
		radial-gradient(3px 3px at 45% 85%, rgba(255,255,255,.1), transparent);
}
/* News — charcoal/steel: press, current events */
#page_head.page-head--news {
	--section-gradient-origin: 0% 0%;
	--section-texture: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 10px);
}
/* Events — teal/green: Connect 351, conferences */
#page_head.page-head--events {
	--section-texture: repeating-radial-gradient(circle at 90% 10%, rgba(255,255,255,.06) 0 2px, transparent 2px 20px);
}
/* Marketplace — plum/violet: business listings, Municipal Marketplace */
#page_head.page-head--marketplace {
	--section-gradient-origin: 0% 0%;
	--section-texture: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 2px, transparent 2px 15px);
}

/* single-listing.php sets its own .listing-head modifier alongside our theme class;
   keep its no-post_meta-padding override intact — nothing to change here. */

#page_head::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: var(--z-base);
	opacity: .5;
	mix-blend-mode: overlay;
	pointer-events: none;
	background-image: var(--texture-noise);
}
#page_head > .container {
	position: relative;
	z-index: var(--z-raised);
}

/* --------------------------------------------------------------------------
   #1193 — Sidebar navigation refresh (#sidebar-left widget list)
   Same links, same order, same nav_menu widget markup — real hierarchy
   instead of a bare underline. Matches the existing selectors in global.css
   at equal specificity so this (loaded after) wins outright.
   -------------------------------------------------------------------------- */

#sidebar-left .menu > li {
	margin-bottom: 2px;
}
#sidebar-left .menu > li > a {
	border-bottom: none;
	border-radius: var(--radius-sm);
	padding: 11px 14px;
	transition: background-color var(--duration-1) ease, color var(--duration-1) ease;
}
#sidebar-left .menu > li > a:hover {
	background: #f0f0f0;
	color: var(--color-text);
}
#sidebar-left .menu > li.current-menu-item > a {
	background: var(--color-brand-tint);
	color: var(--color-brand-on-tint);
	font-weight: var(--fw-bold);
	border-radius: var(--radius-sm);
}
#sidebar-left .menu-item-has-children:after {
	top: 13px;
	right: 14px;
}
#sidebar-left ul.sub-menu li a {
	padding: 7px 0 7px 28px;
	border-radius: var(--radius-xs);
}
#sidebar-left ul.sub-menu li a:hover {
	background: #f0f0f0;
}
#sidebar-left ul.sub-menu li.current-menu-item > a {
	color: var(--color-brand);
}
#sidebar-left h2,
.widget_resource .widget-title {
	font-family: var(--font-display);
	font-size: var(--fs-600);
	line-height: 28px;
	font-weight: var(--fw-display);
}

/* --------------------------------------------------------------------------
   #1194 — Nav & mega-menu refresh
   -------------------------------------------------------------------------- */

/* Utility bar: was two menus split left/right across the full width above
   the logo. Flexbox pulls both into one right-aligned group instead — no
   markup change needed, the two wp_nav_menu() calls stay exactly as they are. */
@media only screen and (min-width: 768px) {
	body > header #top_bar .container {
		display: flex;
		justify-content: flex-end;
		align-items: stretch;
	}
	body > header #top_bar ul.menu#menu-top-bar-left,
	body > header #top_bar ul.menu#menu-top-bar-right {
		float: none;
	}
}

/* Main nav: lighten the heavy solid-fill hover/active block, add an
   underline-style active indicator instead, tighten letter-spacing. */
body > header #main_menu > li.menu-item > a.menu-link {
	font-family: var(--font-body);
	font-weight: var(--fw-medium);
	letter-spacing: var(--tracking-tight);
}
body > header #main_menu > li.menu-item > a.menu-link:hover,
body > header #main_menu > li:hover > a.menu-link {
	background: var(--color-brand-tint);
	color: var(--color-brand-on-tint);
}
/* Current page wears the hover treatment, not a solid red block (Kalman
   2026-08-31: "could you make the active page style more like the current
   hover for that current main menu level? I dont want the red for current
   anymore"). The filled red bar was the loudest thing in the header and it
   fought the floated seal for attention. Tint + brand text is quieter and
   still unmistakably "you are here" -- note this makes current and hover
   render identically, which is deliberate: uncomment the box-shadow to give
   the current item a standing underline that a hover doesn't have. */
body > header #main_menu > li.menu-item.current-menu-item > a.menu-link,
body > header #main_menu > li.menu-item.current-menu-ancestor > a.menu-link,
body > header #main_menu > li.menu-item.current-page-ancestor > a.menu-link {
	background: var(--color-brand-tint);
	color: var(--color-brand-on-tint);
	/* box-shadow: inset 0 -3px 0 var(--color-brand); */
}

/* Mega-menu / flyout dropdowns: soften the shadow, add breathing room,
   restyle the sub-menu link rows. Same panels, same links.
   The shadow stays a literal: --shadow-lg is the agreed NEW value
   (rgba(16,24,32,.25)); adopting it is a Phase 2 value change, not Phase 0. */
body > header #main_menu > li.menu-megamenu > ul.sub-menu,
body > header #main_menu > li.menu-flyout ul.sub-menu {
	box-shadow: 0 16px 32px -12px rgba(0, 0, 0, .25);
	border-top: 3px solid var(--color-brand);
}
body > header #main_menu > li.menu-megamenu > ul.sub-menu {
	padding: 28px 0 var(--space-8);
}
/* Column headings (raw-HTML h3s, e.g. "Featured Resources", "Advocacy by
   Type") still carry global.css's legacy 35px top margin written for the
   old zero-padding panel — stacking with the padding above nearly doubles
   the gap above the columns. Zero it only where the heading leads a column. */
body > header #main_menu > li.menu-megamenu ul.sub-menu h3:first-child {
	margin-top: var(--space-0);
}
body > header #main_menu ul.sub-menu li.menu-item a.menu-link {
	font-family: var(--font-body);
	font-weight: var(--fw-medium);
	text-transform: none;
	font-size: var(--fs-200);
	line-height: 32px;
	border-left-width: 3px;
	transition: color var(--duration-1) ease, border-color var(--duration-1) ease;
}
body > header #main_menu ul.sub-menu li.menu-item a.menu-link:hover {
	border-left-color: var(--color-brand);
}
/* "See full resource library" / "Learn about our advocacy work" — plain
   text links with no dedicated styling, easy to miss as just another
   list item. Match the "See all news" CTA already used in the News
   mega-menu (.btn, global.css) instead of inventing a new button style. */
body > header #main_menu > li.menu-megamenu ul.sub-menu a.res-menu-link {
	display: inline-block;
	margin-top: 10px;
	padding: var(--space-0) var(--space-6);
	border: 1px solid #000;
	color: #000;
	line-height: 33px;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 14px;
	font-weight: var(--fw-semi);
	white-space: nowrap;
	transition: all ease var(--duration-2);
}
/* #db0009 is global.css's typo-level red variant, kept byte-identical here
   so the CTA still matches the .btn it was copied from. It gets no token —
   it maps to --color-brand when .btn itself is rewritten. */
body > header #main_menu > li.menu-megamenu ul.sub-menu a.res-menu-link:hover {
	color: var(--color-text-inverse);
	background-color: #db0009;
	border-color: #db0009;
}
/* Two-column mega-menu panels (Advocacy #9717, Resources): list content
   never fills a full 50%-width Bootstrap column, leaving a dead gap between
   "Featured Resources"/"Resources by Category" (and Advocacy's equivalent)
   while the panel edges sit flush against the 15px column gutter. Centering
   the pair with a fixed gap moves that leftover width to the edges instead.
   Scoped to these two menu items only — Members' mega-menu uses a
   different, 5-column grid and isn't affected. */
body > header #main_menu > li#menu-item-9717.menu-megamenu > ul.sub-menu {
	/* Default panel is width:100% of the whole nav row (global.css) — sized
	   for the old edge-to-edge 50/50 columns. Two short lists don't need
	   that much room; left uncapped, centering them just relocates the dead
	   space to one giant void on the right instead of removing it. */
	width: auto;
	/* 680px clipped the widest category line ("Public Works, Transportation
	   and Public Utilities") at the panel edge — worse under the mega demo
	   variants that add panel padding. 760 fits the widest line + 64px
	   column gap + panel padding with margin to spare (verified on real
	   hover, 2026-08-30). */
	max-width: 760px;
	/* With natural column widths (max-width:none below) the content fills
	   the shrink-to-fit panel exactly — the old edge inset was centering
	   slack from the 50%-capped columns. Real padding restores it. */
	padding-left: var(--space-10);
	padding-right: var(--space-10);
}
body > header #main_menu > li#menu-item-9717.menu-megamenu > ul.sub-menu .row,
body > header #main_menu > li.mega-small-cont.menu-megamenu > ul.sub-menu .row {
	display: flex;
	justify-content: center;
	gap: var(--space-16);
}
body > header #main_menu > li#menu-item-9717.menu-megamenu > ul.sub-menu .row > .col-md-6,
body > header #main_menu > li.mega-small-cont.menu-megamenu > ul.sub-menu .row > .col-md-6 {
	flex: 0 1 auto;
	width: auto;
	/* Bootstrap's max-width:50% survives width:auto and caps each column at
	   half the row — the nowrap category links then paint past the panel's
	   white ground onto the dark hero ("Public Works…Utilities" clip,
	   Kalman 2026-08-30). Lift the cap so columns take natural width;
	   the panel's own 760px cap above still bounds the pair. */
	max-width: none;
	padding: var(--space-0);
}

body > header #main_menu > li.menu-flyout .menu-item-sumenu_title {
	font-family: var(--font-body);
	font-weight: var(--fw-semi);
	font-size: var(--fs-100);
	letter-spacing: var(--tracking-caps);
	color: var(--color-brand);
}

/* --------------------------------------------------------------------------
   #1198 — Logo overlap into top bar
   #1194 freed up the left side of the top bar by right-aligning the utility
   menu. Mirror the existing downward bleed already established on #logo
   (global.css: margin-bottom: -40px into the search-form row) but upward
   into that now-open space. Desktop only — #logo is hidden below 768px in
   favor of #logo_mobile inside the fixed top bar, and #logo's z-index:10000
   (global.css) already puts it above #top_bar's flat #eee background.
   -------------------------------------------------------------------------- */
@media only screen and (min-width: 768px) {
	body > header #logo {
		margin-top: -45px;
	}
	/* Search form's 32px top margin was tuned for the old flush-logo layout;
	   tighten it now that the logo bleeds up further, so the row above the
	   nav doesn't read as oversized. */
	body > header #searchform {
		margin-top: var(--space-5);
	}
}

/* --------------------------------------------------------------------------
   #1195 — Footer visual refresh
   Same 3-tier layout (logo/info, nav, copyright) — typography and spacing
   only. Copyright row's small-text fix already lives in the #1191 section
   above; this covers the logo/info row and the nav row above it.
   -------------------------------------------------------------------------- */
body > footer .row.main {
	padding: 44px 0;
}
body > footer #info {
	font-family: var(--font-body);
	font-weight: var(--fw-regular);
	font-size: var(--fs-200);
	line-height: 20px;
}
/* Desktop only: under 768px global.css stacks the items full-width and
   resets this margin; overriding it there pushed each item 32px past the
   screen edge (sideways scroll on phones, audit 2026-10-11). */
@media only screen and (min-width: 768px) {
	body > footer #info li + li {
		margin-left: var(--space-8);
	}
}
body > footer #menu-footer {
	margin-top: var(--space-2);
	padding-top: var(--space-6);
	border-top: 1px solid rgba(255, 255, 255, .1);
}
body > footer #menu-footer li a {
	font-family: var(--font-body);
	font-weight: var(--fw-medium);
	letter-spacing: var(--tracking-wide);
	transition: color var(--duration-1) ease;
}
body > footer #menu-footer li a:hover {
	color: var(--color-brand);
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   #1196 — Homepage visual pass
   Scope note: the homepage hero is a Slider Revolution module whose slide
   backgrounds are pre-designed image assets (text/CTA baked into the image
   itself, not live DOM) — not something a theme CSS pass can restyle.
   The one genuinely CSS-addressable "hero-adjacent" element is the flat
   navy feature banner above it ("Navigating the Storm..." on the homepage
   at time of writing, but content-editable — hence styling by the row's
   stable `.news-report-row` "Extra class name", not the auto-generated
   `.vc_custom_<timestamp>` class WPBakery regenerates on every save).
   Same gradient + fine-noise texture system as #page_head, in the
   resources-blue tone (reference/analysis content). Button is already
   WPBakery's global outline/danger style, consistent site-wide as-is.
   -------------------------------------------------------------------------- */
section:has(> .container .news-report-row) {
	position: relative;
	overflow: hidden;
	background-color: var(--color-bg-inverse) !important;
	background-image:
		repeating-linear-gradient(150deg, rgba(255,255,255,.04) 0 1px, transparent 1px 16px),
		radial-gradient(130% 160% at 0% 0%, var(--c-accent-resources) 0%, var(--c-accent-resources-dark) 40%, var(--c-neutral-900) 85%) !important;
}
section:has(> .container .news-report-row)::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: var(--z-base);
	opacity: .5;
	mix-blend-mode: overlay;
	pointer-events: none;
	background-image: var(--texture-noise);
}
section:has(> .container .news-report-row) > .container {
	position: relative;
	z-index: var(--z-raised);
}

/* "Voice of cities & towns" static hero slide (Slider Revolution, layer
   id SR7_2_1-20 at time of writing — targeted by SR's own stable
   `.sr7-staticslide-high`/`.sr7-btn` classes instead, since layer ids can
   change if the slide is re-saved in the SR editor). SR writes every
   layer's type/color/spacing as inline styles from its own admin UI, so
   these need !important to win — same reason the subhead was still on
   Prompt (SR layer styles are independent of the theme's font enqueue,
   so the #1191 swap never reached them) and the button was a plain
   white outline instead of the site's button style. */
.sr7-staticslide-high span[data-type="text"] {
	font-family: var(--font-body) !important;
}
.sr7-staticslide-high .sr7-btn {
	font-family: var(--font-body) !important;
	font-weight: var(--fw-bold) !important;
	text-transform: none !important;
	border-color: var(--c-red-300) !important;
	color: var(--c-red-300) !important;
	background: transparent !important;
	transition: background-color var(--duration-1) ease, color var(--duration-1) ease;
}
.sr7-staticslide-high .sr7-btn:hover {
	background: var(--c-red-300) !important;
	color: var(--color-text-inverse) !important;
}

/* --------------------------------------------------------------------------
   #1200 — Homepage "Ask us anything" search band
   Shortcode markup (functions/vc_shortcodes/home-ask-search.php) ships with
   no styling of its own — was rendering as an unstyled native input/button.
   Same search-field visual language as the header search box, just larger,
   since this band exists specifically to make the capability noticeable.
   -------------------------------------------------------------------------- */
/* #1217 — the band owned no bottom spacing of its own, and the featured-news
   row immediately below it carries global.css:2787 `.hbp-sec{margin-top:-60px}`
   (pre-dates the reskin), so the row pulled itself up past the band's 44px
   bottom padding and the search input overlapped the first news thumbnail by
   16px — identically at 1440 and at 390, since that rule is not in a media
   query. Measured: input bottom 1061, news row top 1045 (desktop);
   920 / 904 (mobile).

   Padding cannot fix it — extra padding moves the band and the row down
   together and the -60px gap survives. Margin can: adjoining sibling margins
   collapse, so a positive margin-bottom here nets against the row's negative
   margin-top. Written as a calc so the compensation is named rather than
   baked into a magic 100: 60px cancels the pull-up, and one scale step is
   the gap that actually ships. If .hbp-sec's negative margin goes away in
   the Phase 2 spacing reset, drop the 60px term with it. */
#home-ask-search {
	padding: var(--space-10) 0 44px;
	margin-bottom: calc(60px + var(--space-10));
}
.home-ask-search {
	text-align: center;
}
.home-ask-search-heading {
	margin: 0 0 6px;
}
.home-ask-search-subhead {
	margin: 0 0 var(--space-6);
	font-size: var(--fs-300);
	color: #6b6b6b;
}
.home-ask-searchform {
	display: flex;
	max-width: 560px;
	margin: 0 auto;
}
.home-ask-search-input {
	flex: 1;
	height: 52px;
	padding: 0 18px;
	border: 1px solid #d5d5d5;
	border-right: none;
	background: var(--color-bg-surface);
	font: var(--fw-regular) 16px/1 var(--font-body);
	color: var(--color-text-heading);
}
.home-ask-search-input::placeholder {
	color: #8a8a8a;
}
.home-ask-search-btn {
	flex: 0 0 auto;
	width: 60px;
	height: 52px;
	border: 1px solid var(--color-brand);
	background: var(--color-brand);
	color: var(--color-text-inverse);
	font-size: var(--fs-400);
	cursor: pointer;
	transition: background-color var(--duration-1) ease, border-color var(--duration-1) ease;
}
.home-ask-search-btn:hover {
	background: var(--color-brand-hover);
	border-color: var(--color-brand-hover);
}

/* --------------------------------------------------------------------------
   #1208 — News list cards, deployed as default (Kalman 2026-08-30: "News
   cards need a refresh"; horizontal direction locked on the issue).
   Scope: .category_post_loop lists (/news/, category loops). The row's
   whole content sits inside one <a>, so the flex shell goes there. This
   also out-specifies the legacy `.single_news_wrapper * { font-size: 12px }`
   universal (the title is an h3 rendering at 12px without it).
   -------------------------------------------------------------------------- */
.category_post_loop .single_news_wrapper {
	min-height: 0;
	padding: var(--space-5) var(--space-4);
	background: none;
	border-bottom: 1px solid var(--c-neutral-300);
	transition: background-color var(--duration-1) var(--ease);
}
.category_post_loop .single_news_wrapper:hover {
	background: var(--c-neutral-50);
}
.category_post_loop .single_news_wrapper > a {
	/* global.css absolutely positions this anchor as a full-row click
	   overlay; in the flex shell it must be the in-flow row itself. */
	position: static;
	display: flex;
	gap: var(--space-6);
	align-items: flex-start;
}
.category_post_loop .single_news_wrapper .news_thumbnail {
	flex: 0 0 176px;
	width: auto;
	height: auto;
}
.category_post_loop .single_news_wrapper .news_thumbnail img {
	display: block;
	width: 176px;
	height: 110px;
	max-width: none;
	object-fit: cover;
	border-radius: var(--radius-md);
}
.category_post_loop .single_news_wrapper .news_meta_wrapper {
	float: none;
	width: auto;
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
}
.category_post_loop .single_news_wrapper h3.news_title {
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: var(--fw-semi);
	line-height: 1.35;
	color: var(--color-text-heading);
	margin: 0 0 6px;
	text-transform: none;
}
.category_post_loop .single_news_wrapper:hover h3.news_title {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.category_post_loop .single_news_wrapper .news_meta_info {
	font-size: var(--fs-100);
	font-weight: var(--fw-regular);
	letter-spacing: 0;
	text-transform: none;
	color: var(--c-neutral-600);
	line-height: 1.5;
}
@media (max-width: 640px) {
	.category_post_loop .single_news_wrapper > a { gap: var(--space-4); }
	.category_post_loop .single_news_wrapper .news_thumbnail { flex-basis: 104px; }
	.category_post_loop .single_news_wrapper .news_thumbnail img { width: 104px; height: 70px; border-radius: var(--radius-sm); }
	.category_post_loop .single_news_wrapper h3.news_title { font-size: 16px; }
	/* global.css's phone rules (#page2-cont h3 { margin: 30px 0 15px } and
	   a 10px title padding, meant for the old stacked card) left a tall gap
	   beside the thumbnail (audit 2026-10-11). The id matches theirs. */
	#page2-cont .category_post_loop .single_news_wrapper h3.news_title,
	.category_post_loop .single_news_wrapper .news_meta_wrapper h3.news_title { margin: 0 0 6px; padding: 0; }
}

/* --------------------------------------------------------------------------
   #1207/#1227 — .check-list bullets rode a dead font (Kalman 2026-08-30:
   "why is this font so thin and small?"): global.css sets them to
   16px/300 'Prompt' — a family that is never loaded on the front end
   (typography audit, dead-font list), so they rendered as a thin
   fallback two sizes under body copy. Put them on the body type.
   -------------------------------------------------------------------------- */
.check-list ul li {
	font-family: var(--font-body);
	font-size: var(--fs-400);
	line-height: 29px;
	margin-bottom: var(--space-4);
}

/* --------------------------------------------------------------------------
   #1201/#1230 — Title bar floats left with the logo; breadcrumbs dock to
   the band's bottom edge.

   Kalman 2026-09-01: "now that the MMA logo slid to float left it feels
   like the page titles also could float left... and I think the
   breadcrumbs along with it" + "really liking the breadcrumbs stuck to
   the bottom of the title area and smaller and with a black background...
   similar as before but accessible contrast".

   Picked from the title-area lab (?tlfloat=gutter + ?tlcrumb=tab, see
   css/title-lab.css) after comparing three float stops on
   /resources/municipal-services/. Measured left edges at 1440px:

     before   logo 56 · rule 165 · text 199 · crumb 180
     after    logo 56 · rule  56 · text  90 · crumb  56

   The rejected stop is worth recording: aligning the title TEXT to the
   logo edge (rule hanging 34px outside it) reads better at desk width but
   breaks at the 24px gutter step — at 800px the rule and the crumb tab
   both land at x=0, flush against the viewport edge. Measured, not
   predicted.

   PAIRED WITH THE HEADER FLOAT. The 56px line is the header's own gutter,
   which today only exists under logo variant D (?logo=d in
   reskin-2026-demo.css — Kalman's pick, and the local default since
   2026-08-31). This section ships the gutter token itself so the two can
   never drift apart, but the pairing is the point: if the D header is
   ever dropped, drop this section with it. A floated title bar under a
   centred logo is worse than either alone.

   Body content deliberately does NOT follow (Kalman: "in most cases
   no...but tbd"). The content column stays on the 1140px measure, so the
   band reads as its own full-bleed layer the way the header does.
   -------------------------------------------------------------------------- */

/* The header gutter as a real token rather than a demo-only one. Same
   steps as reskin-2026-demo.css declares on body.logo-demo-d, which still
   wins on specificity where it applies — these two must stay identical. */
@media only screen and (min-width: 768px) {
	:root { --mma-hdr-gutter: 24px; }
}
@media only screen and (min-width: 992px) {
	:root { --mma-hdr-gutter: 40px; }
}
@media only screen and (min-width: 1400px) {
	:root { --mma-hdr-gutter: 56px; }
}

@media only screen and (min-width: 768px) {
	/* Full-bleed on the gutter — the same override the D header applies to
	   its own .container, so the two containers are the same shape. */
	#page_head > .container {
		max-width: none;
		width: 100%;
		margin-left: 0;
		margin-right: 0;
		padding-left: var(--mma-hdr-gutter, 24px);
		padding-right: var(--mma-hdr-gutter, 24px);
	}

	/* Three different markup shapes sit under #page_head and they do NOT
	   currently line up with each other:
	     a) col inside .row          — row's -15px cancels the col's 15px
	     b) col as a direct child of .container (taxonomy-*.php closes the
	        .row before the breadcrumb col) — picks up the container's 15px
	        AND its own, landing 15px right of the title rule
	     c) no row or col at all (single-press_release.php, single-event.php
	        put .post_meta and #breadcrumbs straight in the container)
	   Zeroing the row margin and the direct-child col padding puts a) and
	   b) on the same line, which incidentally fixes the long-standing 15px
	   breadcrumb indent on every taxonomy archive. c) needs nothing — it
	   already sits on the container's padding edge. */
	#page_head > .container > .row {
		margin-left: 0;
		margin-right: 0;
	}
	#page_head > .container > .row > [class*="col-"],
	#page_head > .container > [class*="col-"] {
		padding-left: 0;
	}
}

/* Docked breadcrumb tab. #page_head already has no bottom padding and the
   trail is already its last child, so the pill was flush with the band's
   bottom edge — but its rounded bottom corners read as floating. Squaring
   them off is what makes it a tab growing out of the band into the
   content area below.

   Height comes down 30px -> 25px via line-height and padding, NOT via
   font-size: --fs-100 (13px) is this system's documented legibility
   floor, and the whole reason Kalman likes this treatment is that it
   finally passes contrast. Shrinking the type to look smaller would spend
   exactly what the change just bought. */
#page_head .breadcrumbs,
#page_head #breadcrumbs,
#page_head #breadcrumbs.selectman-bread {
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
	padding: 3px var(--space-3) 4px;
	line-height: 18px;
	margin-top: 30px;
}

/* global.css:2520 hides the trail's inner <span> under 480px but leaves
   #breadcrumbs itself in the flow — which was already an empty scrim pill
   on phones, and reads as a stub tab now that the bottom corners are
   square. Hide the element, not its contents.

   (A :has() test for "contains no visible link" does not work here: the
   links are still in the DOM, it is their wrapping <span> that is
   hidden.) */
@media (max-width: 480px) {
	#page_head #breadcrumbs,
	#page_head .breadcrumbs {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   #1201 — Cap the title measure now that the band is full-bleed.

   Kalman 2026-09-01: "the new titles need to break when it would be very
   wide — similar to the older titles", on
   /administration-awards-fishing-wetlands-conservation-grants/.

   Regression from the float above, and a real one. The band used to be a
   centred 1140px .container, which incidentally capped the H1's measure.
   Going full-bleed removed that cap, so on the news template — where
   .post_meta indents the title another 75px past the date rail — the line
   grew from 1035px to 1253px, measured. At 50px that is ~53 characters a
   line, well past where a display line stops being readable, and it is why
   the page reads worse than production.

   Two caps, whichever is smaller. 21em is the characters-per-line limit
   (~42 characters) and is what keeps small and mid-size titles sane. 1040px
   is the absolute ceiling, and it is the live site's own measured line
   (1035px on this page) — without it the em cap grows with the type and
   stops biting exactly where it is needed: at the 74px hero size, 21em is
   1554px, wider than the band, i.e. no cap at all.

   The deck line needs its own cap for the same reason and cannot share
   this one: at 14px, 21em would be 294px. It gets a ch measure instead.
   -------------------------------------------------------------------------- */
@media only screen and (min-width: 768px) {
	#page_head h1,
	#page_head #page2_title1 {
		max-width: min(21em, 1040px);
	}
	#page_head #page2_title2 {
		max-width: 68ch;
	}
}

/* ==========================================================================
   Header: float the main menu hard right                        (2026-09-01)

   Kalman: "we want the menu to float right" — and "About MMA ... looks
   broken", which turned out to be the same header, two separate faults.

   1. THE NAV SAT MID-HEADER. The row is [.desk-logo][.col-md-9.col-lg-8],
      and the reskin collapses .desk-logo to width 0 because it positions the
      logo itself. Nothing widened the nav column to take the freed space, so
      it stayed pinned at Bootstrap's `flex: 0 0 66.667%` and ended at x=1048
      while the header row ran to 1544 — ~500px of dead air, with the search
      icon stranded out at 1508. Letting the column grow puts the menu at
      821->1488, 20px off the search icon. The column already has
      `justify-content: flex-end`, so nothing else is needed to right-align.

      !important because Bootstrap's .col-lg-8 lives in a media query in the
      minified global.css and a plain specificity win did not take.

   2. "ABOUT MMA" WRAPPED TO A SECOND ROW at every width below 1920 —
      pre-existing, and reproducible with the Events panel off. #mob-menu-w
      is `flex: 0 1 auto` and settles at 556px while the six items need 667px,
      so the last one wraps. Verified one row at 1280/1366/1440/1600/1680/1920
      with the ul still inside its column.

   3. THE WIDE MEGA PANELS ARE HELD AT THEIR OLD WIDTH. Members, Advocacy,
      Resources and Events span the nav column (`left: 0; right: 0`), so
      widening it would have silently restyled three panels nobody asked to
      change. Capped at the 992px they were, and right-aligned under the menu
      via `margin-left: auto` — which works because they are over-constrained
      absolute boxes. Remove the cap if the wider panels are wanted.
   ========================================================================== */
@media (min-width: 1024px) { /* was 992: matches the desktop header (reskin-header.css), so 992-1023 keeps the tablet header */
	body > header .row > .col-md-9.col-lg-8 {
		flex: 1 1 auto !important;
		max-width: none !important;
	}

	#mob-menu-w { flex: 0 0 auto; }
	#main_menu { white-space: nowrap; }
	/* ...but only for the top-level row. `white-space` INHERITS, so the
	   nowrap above reached every panel and stopped their copy wrapping —
	   "Who is a member" ran off in one line. Reset it at the panel boundary. */
	#main_menu .sub-menu { white-space: normal; }

	/* NO WIDTH CAP HERE — deliberately. Capping the wide panels back to their
	   old 992px looked conservative but made the Members panel worse: the
	   mega-lab injects a ~330px search rail into it, and at 992px that leaves
	   the authored VC columns so little room they collapse — "Our members are
	   the local governments of Massachusetts" wrapping one word per line, and
	   the "Member Communities" heading spilling into the next column. That
	   squeeze is pre-existing at 992px; letting the panels take the width the
	   floated nav freed up is what fixes it. The Events panel constrains its
	   OWN grid instead (see css/events-menu.css), because only its middle
	   column has a natural maximum. */
}

/* --------------------------------------------------------------------------
   Community profile: the members band behind the top of the page.

   single-community.php has no #page_head, so the profile sat on the flat grey
   canvas while every other section page opens on its band. This paints the
   members gradient (same recipe as #page_head.page-head--members, composed
   here because --section-gradient only exists on #page_head) behind the
   Show all / Previous / Next row and the top ~200px of the two cards, which
   then overlap its bottom edge — the CCM hub's community page, which Kalman
   pointed to on 2026-09-16. The ::before sits at z-index:-1 inside the
   wrapper's own stacking context (z-index:0), so it paints above the canvas
   and below the cards. The wrapper already spans the page edge to edge, so
   the band takes its full width: the earlier 100vw counted the desktop
   scrollbar and pushed the page into a ~17px horizontal scroll.
   The three buttons go white-on-band.
   -------------------------------------------------------------------------- */
body.single-community #single-community-w { position: relative; z-index: 0; }
body.single-community #single-community-w::before {
	content: '';
	position: absolute;
	z-index: -1;
	top: 0;
	left: 0;
	width: 100%;
	height: 330px;
	pointer-events: none;
	background-color: var(--c-neutral-900);
	background-image:
		radial-gradient(3px 3px at 20% 30%, rgba(255,255,255,.12), transparent),
		radial-gradient(3px 3px at 70% 60%, rgba(255,255,255,.1), transparent),
		radial-gradient(3px 3px at 45% 85%, rgba(255,255,255,.1), transparent),
		radial-gradient(130% 160% at 100% 100%, var(--c-accent-members) 0%, var(--c-accent-members-dark) 40%, var(--c-neutral-900) 85%);
}
body.single-community #community-prev-next-w a { color: #fff; border-color: rgba(255,255,255,.75); background: transparent; }
body.single-community #community-prev-next-w a:hover,
body.single-community #community-prev-next-w a:focus-visible { background: #fff; color: var(--c-accent-members-dark); border-color: #fff; }
@media (max-width: 767px) {
	/* the cards stack under 768px; the band still covers the buttons and the top of the first card */
	body.single-community #single-community-w::before { height: 260px; }
}

/* WPBakery outline buttons ("read more" under section intros, e.g.
   /members/mayors/). They shipped as a 2px square box in Arial — the
   <button> never inherited the body font. Kalman, 2026-10-02: "that read
   more button ... I find ugly ... could have a thinner outline". 1px,
   small radius, Lexend. The hover fill is WPBakery's inline JS and is
   left alone. */
body .vc_btn3.vc_btn3-style-outline-custom,
body .vc_btn3.vc_btn3-style-outline {
	border-width: 1px;
	border-radius: 6px;
	padding: 9px 18px;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: .01em;
}

/* --------------------------------------------------------------------------
   Member landing pages (Mayors, Managers, Select Boards, Councillors…): the
   "Upcoming Events / Featured Resources / Other Features" columns. Kalman,
   2026-10-06: "this is a MESS after font application". The three columns
   had three title styles (16px sans, 20px serif, 18px sans), fixed 125px
   rows that cut long titles off, and a button wider than its column.
   One title style, rows sized to their content, buttons on one baseline.
   -------------------------------------------------------------------------- */
.upcoming-event-box .mma-heading {
	height: 100%;
	min-height: 0;
	margin-bottom: 0;
	padding-bottom: 2px;
}
.upcoming-event-box .mma-heading h1 { margin: 0 0 4px; }
.upcoming-event-box .mma-heading p { margin: 0; }
/* The red bar stops 12px short of the dotted rule under the headings, so
   the two lines don't meet in a corner (reviewed 2026-11-28). */
.upcoming-event-box .mma-heading { height: calc(100% - 12px); }
/* "No items found" (empty Upcoming Events) starts where the neighbouring
   columns' first item does, instead of sitting on the dotted rule. */
.selectman-posts.other-features > center { padding-top: 14px; }

.selectman-posts.other-features {
	display: flex;
	flex-direction: column;
}
.selectman-posts.other-features :is(.mma-box_posts li, .wpb_content_element ul li, .column_resources_wrapper) {
	height: auto !important;
	min-height: 0;
	overflow: visible;
	padding: 14px 0 !important;
	margin: 0 !important;
}
.selectman-posts.other-features :is(.mma-box_posts li, .wpb_content_element ul li, .column_resources_wrapper):first-child,
.selectman-posts.other-features .resource-block-top + .column_resources_wrapper {
	padding-top: 0 !important;
}
.selectman-posts.other-features .mma-box_posts li::after { display: none; }
.selectman-posts.other-features .mma-box_posts li + li { border-top: 0; }
.selectman-posts.other-features .mma-box_posts li:not(:last-child) { border-bottom: 1px dotted #8b8b8b; }
.selectman-posts.other-features :is(.mma-box_posts li a, .wpb_content_element ul li a, .resource_title) {
	font-family: var(--font-body);
	font-weight: 500 !important;
	font-size: 16px;
	line-height: 1.35 !important;
	letter-spacing: 0;
	color: #1b1b1b !important;
	margin: 0;
}
.selectman-posts.other-features :is(.mma-box_posts li a, .wpb_content_element ul li a):hover,
.selectman-posts.other-features .column_resources_wrapper a:hover .resource_title {
	color: var(--color-accent-dark, #db0009) !important;
}
.selectman-posts.other-features :is(.mma-box_posts .date, .resource-cat) {
	display: block;
	margin: 0 0 4px;
	font-size: var(--fs-100);
	font-weight: 400;
	line-height: 1.4;
	color: #5f6670;
}
/* The button paragraph is the column's last block: push it to the bottom
   so the three buttons line up, and let a long label wrap inside the
   column instead of running past it. */
.selectman-posts.other-features > .wpb_text_column:last-child { margin-top: auto; }
.selectman-posts.other-features .btn {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	font-size: var(--fs-100);
	letter-spacing: .04em;
	line-height: 1.3;
	text-align: center;
	white-space: normal;
}

/* ==========================================================================
   Title band + section colour — graduated from the demo layer 2026-10-10
   (was ?band=3 + ?palette=navy, the d2mma no-param default since 2026-10-06:
   Kalman, "this is the header we want to put across the whole site (for
   now)"). Image-free plan-grid band in the section pair; every section's
   pair is navy. Classes added on every host by functions/reskin-2026.php.
   Same specificity as the demo selectors (body.class #page_head).
   ========================================================================== */
body.reskin-titleband #page_head::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

/* 3 · Plan grid — a fine drafting grid that fades in toward the right.
   Civic / planning / infrastructure. */
body.reskin-titleband #page_head {
	background-color: var(--color-accent-dark);
	background-image: linear-gradient(110deg, var(--color-accent-dark) 30%, var(--color-accent) 100%);
}
body.reskin-titleband #page_head::after {
	background-image:
		linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px),
		linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
		linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
	background-size: 112px 112px, 112px 112px, 28px 28px, 28px 28px;
	background-position: -1px -1px;
	-webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 85%);
	mask-image: linear-gradient(90deg, transparent 25%, #000 85%);
}
body.reskin-titleband #page_head::before { opacity: .35; }

body.reskin-navy {
	--mma-navy: #2d5577;
	--mma-navy-lift: #4a7aa6;
}
body.reskin-navy,
body.reskin-navy #page_head {
	--color-accent: var(--mma-navy-lift);
	--color-accent-dark: var(--mma-navy);
}

/* ==========================================================================
   Faces named outside the theme's CSS (audit 2026-10-11). Prompt, Playfair
   Display, Roboto and Rubik no longer load, so anything still asking for
   them by name falls back to a system face.
   - WP Grid Builder writes each card's fonts into its generated sheet
     (uploads/wpgb/grids/*.css, set per card in the plugin) — Roboto on the
     Connect 351 speaker and staff cards. One body-type step above its
     .wp-grid-builder .wpgb-card-N .wpgb-block-N selectors.
   - Homepage "Gallery" heading: page-level custom CSS stored with the
     content (#cal-gal-col .mma-heading h1 { font: bold 24px/32px
     'Playfair Display' }).
   ========================================================================== */
body .wp-grid-builder .wpgb-card [class*="wpgb-block-"] {
	font-family: var(--font-body);
}
body #cal-gal-col .mma-heading h1 {
	font-family: var(--font-display);
	font-weight: var(--fw-display);
}

/* Community profile tables on phones (audit 2026-10-11): Lexend sets wider
   than Prompt, and the auto-width .comm-table grew 6px past a 375px screen
   on long values ("Select Board – Town Meeting"). Fix the width; let long
   values wrap. Up to 991px (#1346): at 768-991 the profile is two 384px
   columns and the right-hand table ran 27px past the screen. */
@media only screen and (max-width: 991px) {
	#single-community-w .comm-table {
		width: 100%;
		table-layout: fixed;
	}
	#single-community-w .comm-table th,
	#single-community-w .comm-table td {
		/* Hyphenate first ("Admin-istrator"); break mid-word only as a last
		   resort — "anywhere" split "Administrato / r" (#1346). */
		hyphens: auto;
		overflow-wrap: break-word;
	}
	/* At 375-390px both "Incorporation" and "Administrator" have to fit
	   whole: 48% for labels and tighter cell padding (was 10px / 18px). */
	#single-community-w .comm-table td { padding: 10px 6px; }
	#single-community-w .comm-table td:first-child { width: 48%; padding-left: 12px; }
	#single-community-w .comm-table td:nth-child(2) { width: auto; }
}

/* ── #1346 design update fixes ─────────────────────────────────────── */

/* Date badge on advocacy / press-release singles. global.css pulls the day
   up 10px into the month; Newsreader's taller digits then ride over "JUN".
   And the notch under the badge was drawn in the OLD band colour (#1b1b1b),
   which reads as a dark shadow on the navy band — it is now cut out of the
   badge itself, so the band shows through. News singles (story layout,
   body.st-on) restyle the date as a text line and are left alone. */
body:not(.st-on) #page_head .post_meta .post_date {
	padding-bottom: 16px;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 10px), 0 100%);
}
body:not(.st-on) #page_head .post_meta .post_date:after { display: none; }
body:not(.st-on) #page_head .post_meta .post_date .date {
	margin: 2px 0 4px;
	line-height: 36px;
}

/* /resources/ section headings ("Featured Resources"): global.css's phone
   rule sets 26px type on a 26px line, so two-line headings touch. */
.resource-block-title { line-height: 1.15; }
@media (max-width: 767px) {
	/* The red rule down each resource block, with its 32px indent, ate a
	   tenth of a phone screen and did not line up with the band's bar. */
	.resource-block:not(.resource-column) {
		border-left: 0;
		padding-left: 0;
	}
}

/* /local-government-101/: the two-column town list is a flex item, and a
   flex item never shrinks below its content by default, so at 768-991 it ran
   16px past the screen. */
#town-council-towns > div > ul { min-width: 0; }

/* Card meta lines on phones (resource cards, news/category list items):
   "Community Engagement | Webinar | Free | Publication Date: …" wrapped
   with a "|" left hanging at the line end, an indented second line, and
   dates split mid-value ("JUN / 12, 2026"). On phones the items wrap as
   whole units with a gap instead of dividers (#1346, option A). The
   author byline is long and may still wrap inside itself. */
@media (max-width: 767px) {
	.resource_meta_info,
	.single_news_wrapper .news_meta_info {
		display: flex;
		flex-wrap: wrap;
		gap: 4px 16px;
		line-height: 1.4;
		top: 0;
	}
	.resource_meta_info span,
	.single_news_wrapper .news_meta_info span {
		border-right: 0;
		padding: 0;
	}
	/* Short values stay whole; categories and bylines may wrap inside. */
	.resource_meta_info .resource-date,
	.resource_meta_info .resource-free-or-paid,
	.single_news_wrapper .news_meta_info .news_date { white-space: nowrap; }
}

/* /advocacy/ "Featured Content" (#1346): the list items had no box at all
   — the /news/ white card is switched off on this template because its
   page ground stays white. Same hairline card and hover as /news/, which
   reads on white too. */
body.page-template-advocacy-template .single_news_wrapper.advocacy-grid {
	background: #fff;
	border: 1px solid #dfe3e7;
	border-radius: 10px;
	margin-bottom: 12px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
body.page-template-advocacy-template .single_news_wrapper.advocacy-grid:hover,
body.page-template-advocacy-template .single_news_wrapper.advocacy-grid:focus-within {
	border-color: #9aa2ad;
	box-shadow: 0 0 0 1px #9aa2ad, 0 8px 22px rgba(0, 0, 0, .08);
}
/* global.css lays the link over the card absolutely and fixes the card at
   130px, so long titles ran out of the box. Here the link is in the flow:
   the card is as tall as its text, and the inset sits on the text block. */
body.page-template-advocacy-template .single_news_wrapper.advocacy-grid {
	min-height: 0;
	padding: 0; /* global.css adds 15px on phones on top of the inner inset */
}
body.page-template-advocacy-template .single_news_wrapper.advocacy-grid > a {
	position: static;
}
body.page-template-advocacy-template .single_news_wrapper.advocacy-grid .news_meta_wrapper {
	padding: 18px !important; /* global.css phone rule is !important */
}
/* Even inset top and bottom: no extra 10px on the inner block, and the
   phone rule #page2-cont h3 { margin: 30px 0 15px } off the title. */
body.page-template-advocacy-template .single_news_wrapper.advocacy-grid .news_meta_wrapper-inner {
	padding: 0;
}
body.page-template-advocacy-template #page2-cont .single_news_wrapper.advocacy-grid h3.news_title {
	margin: 0 0 8px;
	padding: 0;
}
/* Meta items wrap as whole units, no "|" left hanging at a line end. */
body.page-template-advocacy-template .single_news_wrapper.advocacy-grid .news_meta_info {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	top: 0;
}
body.page-template-advocacy-template .single_news_wrapper.advocacy-grid .news_meta_info span {
	border-right: 0;
	padding: 0;
}
/* A date never splits across lines ("FEB 18, / 2026"). */
.single_news_wrapper .news_meta_info .news_date { white-space: nowrap; }

/* /resources/ on phones (#1346): under 480px the two link columns stack,
   and each kept its 30px top and bottom padding — a 60px hole in the
   middle of one list. */
@media (max-width: 480px) {
	.subcat-col:empty { display: none; }
	.subcat-col + .subcat-col { padding-top: 0; }
	.subcat-col:has(+ .subcat-col:not(:empty)) { padding-bottom: 0; }
}

/* Schedule event pages (/efs/…, #1346): the template puts the content
   straight into a .row, whose -15px margins cancel the container's gutter
   — text touched the screen edges on phones. */
.single-efs .container > .row { margin-left: 0; margin-right: 0; }

/* 404 page body (#1346): a line of help, a search box, the main sections. */
.mma-404 {
	max-width: 720px;
	padding: 40px 0 70px;
}
.mma-404-lead {
	margin: 0 0 24px;
	font-size: 18px;
	line-height: 1.6;
}
.mma-404-search {
	display: flex;
	gap: 10px;
	margin: 0 0 32px;
}
.mma-404-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	padding: 0 14px;
	border: 1px solid #b9c0c8;
	border-radius: 6px;
	background: #fff;
	font: inherit;
}
.mma-404-search button {
	flex: 0 0 auto;
	height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 6px;
	background: var(--color-accent, #1f3a5f);
	color: #fff;
	font: 600 15px/1 var(--font-body);
	text-transform: uppercase;
	letter-spacing: .04em;
	cursor: pointer;
}
.mma-404-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mma-404-links li { margin: 0; padding: 0; }
.mma-404-links li::before { content: none; }
.mma-404-links a {
	display: inline-block;
	padding: 10px 16px;
	border: 1px solid #dfe3e7;
	border-radius: 999px;
	background: #fff;
	color: #1a1a1a;
	font-weight: 500;
	text-decoration: none;
}
.mma-404-links a:hover,
.mma-404-links a:focus-visible {
	border-color: #9aa2ad;
	box-shadow: 0 0 0 1px #9aa2ad;
}
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Desktop pages whose last block sat on the footer (#1346): the events
   calendar, the webinars "See More" button, a short page ending on its
   rail card (Careers), and the Marketplace member/business cards. Brings
   them to the ~45px most pages already end with. */
@media (min-width: 992px) {
	#event-w,
	.webinars-w { padding-bottom: 45px; }
	body.sbl-on:not(.search) #sidebar-left,
	body.sbl-on:not(.search) #sidebar { margin-bottom: 40px; }
	.mm-two-sections { margin-bottom: 30px; }
}

/* Title band without a date badge (event singles): global.css keeps the
   75px slot the badge would sit in, so the title floated 75px in with
   nothing beside it — squeezed to the right on phones (#1346). */
#page_head .post_meta:not(:has(.post_date)) { padding-left: 0; }

/* Resource card dates stay on one line at every width (#1346: desktop
   webinar cards wrapped "Publication Date: Dec 09, / 2025"). */
.resource_meta_info .resource-date { white-space: nowrap; }

/* Wider screens keep the "|" dividers, but a narrow card still wraps the
   meta line ("Free |" hanging at a line end, the date starting 14px in on
   the next line). Each item draws its divider on the left instead, and the
   15px strip left of the box is clipped, which hides the divider and padding
   of whichever item starts a line. Phones: the rule above (no dividers). */
@media (min-width: 768px) {
	.resource_meta_info {
		display: flex;
		flex-wrap: wrap;
		row-gap: 4px;
		line-height: 1.4;
		margin-left: -15px;
		clip-path: inset(0 0 0 15px);
	}
	.resource_meta_info span,
	.resource_meta_info span:first-child {
		border-right: 0;
		border-left: 1px solid #afafaf;
		padding: 0 14px;
	}
	.resource_meta_info .resource-free-or-paid { white-space: nowrap; }
}

/* Tablets (768-991px): global.css turns the content row into display:table
   (to move the sidebar below the content), and a table is only as wide as
   its content, so the cards stopped ~30-70px short of the right edge while
   the left side kept the container's gutter. Full width and the same 15px
   gutter on both sides. */
@media (min-width: 768px) and (max-width: 991px) {
	#page2-cont .row.table-display-on-tablet {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}

/* Phones: the resource card's square thumbnail sat alone on its own row with
   empty space to its right and a wide gap above the title. A 72px square
   beside the title instead; excerpt and meta run full width below. The
   images are square (every featured image is 1:1, the type icons too), so a
   wide crop would cut them. The meta wrapper is display:contents so its
   title can share the thumbnail's row. */
@media (max-width: 767px) {
	.single_resources_wrapper > a {
		display: grid;
		grid-template-columns: 72px minmax(0, 1fr);
		column-gap: 14px;
		align-items: center;
		text-decoration: none;
	}
	.single_resources_wrapper .resource_meta_wrapper { display: contents; }
	.single_resources_wrapper .resources_thumbnail {
		grid-column: 1;
		grid-row: 1;
		width: 72px;
		height: 72px;
		margin: 0;
		float: none;
	}
	.single_resources_wrapper .resources_thumbnail img {
		width: 72px;
		height: 72px;
		object-fit: cover;
	}
	.single_resources_wrapper .resource_title { grid-column: 2; grid-row: 1; margin: 0; }
	.single_resources_wrapper .resource-text { grid-column: 1 / -1; margin-top: 12px; }
	.single_resources_wrapper .resource_meta_info { grid-column: 1 / -1; }
	.single_resources_wrapper .clr { display: none; }
}

/* Photo galleries — Responsive Lightbox "basic grid" (/advocacy/ and three
   COVID-era news posts). The plugin sizes items as 25/33/50/100% of the row
   while the images are 150x150 crops, so each one sat small in a wide empty
   cell (#1346). An even grid of square tiles instead: as many 128px+ columns
   as fit, at most ~1.2x the crop size, so the thumbnails stay sharp.
   The plugin writes its widths under #rl-gallery-container-N; the ID inside
   :is() only lifts this selector over that one, the attribute part matches
   every gallery on the page. */
.rl-gallery-container:is(#rl-gallery-container-1, [id^="rl-gallery-container-"]) .rl-basicgrid-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
	gap: 8px;
	margin: 0 0 30px;
}
.rl-gallery-container:is(#rl-gallery-container-1, [id^="rl-gallery-container-"]) .rl-basicgrid-gallery::after {
	display: none;
}
.rl-gallery-container:is(#rl-gallery-container-1, [id^="rl-gallery-container-"]) .rl-basicgrid-gallery .rl-gallery-item {
	width: auto;
	margin: 0;
}
.rl-gallery-container:is(#rl-gallery-container-1, [id^="rl-gallery-container-"]) .rl-gallery-link {
	display: block;
	border-radius: 6px;
	overflow: hidden;
}
.rl-gallery-container:is(#rl-gallery-container-1, [id^="rl-gallery-container-"]) .rl-gallery-item img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform .2s ease;
}
.rl-gallery-container:is(#rl-gallery-container-1, [id^="rl-gallery-container-"]) .rl-gallery-link:hover img {
	transform: scale(1.04);
}

/* #1347 — "Only in <category>" tick under the resource rail's search box.
   global.css sizes every input in #searchform as the text field and sets the
   form's font-size to 0, so the tick box and its label need their own rules. */
#sidebar > li.widget_search #searchform .search-scope {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.35;
	text-align: left;
	color: var(--color-text-muted);
	cursor: pointer;
}
#sidebar > li.widget_search #searchform .search-scope input {
	display: block;
	flex: none;
	width: 16px;
	height: 16px;
	margin: 0;
	padding: 0;
	border: 0;
	accent-color: var(--color-brand);
}

/* --------------------------------------------------------------------------
   Community "i" tooltip icons: a bigger tap target on touch screens.
   The glyph stays 14-16px; an invisible ::after (Font Awesome draws the glyph
   in ::before) extends the hit area to ~40px, since a tap on a pseudo-element
   lands on the icon itself. Community profile, home page directory,
   /all-directory-data/ table headers and dates.
   -------------------------------------------------------------------------- */
@media (pointer: coarse) {
	/* .section-info is already position:absolute (community.css) */
	.compare-info,
	.comm-block-title i,
	.th-info,
	.date-info { position: relative; }
	.compare-info::after,
	.section-info::after,
	.comm-block-title i::after,
	.th-info::after,
	.date-info::after {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		width: 40px;
		height: 40px;
		transform: translate(-50%, -50%);
	}
}
