/*
 * Mary H. Weir Public Library — page & post content
 *
 * How the blocks staff use look on ordinary Pages and news Posts: headings,
 * text, lists, buttons, images, tables, FAQs (Details block), quotes, and the
 * "Callout" group style. Loaded on the site AND inside the block editor
 * (add_editor_style), so it only uses WordPress preset variables, which exist
 * in both places.
 *
 * Everything is scoped to .wp-block-post-content: the box that holds what
 * staff write. Hand-coded parts of the site are unaffected.
 */

/* ---------- Page frame (front end only) ---------- */
.mhw-page {
	max-width: 1200px; margin: 0 auto; padding: 44px 24px 64px;
	box-sizing: border-box;
}
/* A comfortable reading width for text; Wide/Full blocks may use the whole row. */
.mhw-page .wp-block-post-content > * { max-width: 720px; }
.mhw-page .wp-block-post-content > .alignwide,
.mhw-page .wp-block-post-content > .alignfull,
.mhw-page.is-full-width .wp-block-post-content > * { max-width: none; }
.mhw-page .wp-block-post-content > :first-child { margin-top: 0; }

/* ---------- Text ---------- */
.wp-block-post-content {
	font-size: 18px;
	line-height: 1.7;
	color: var(--wp--preset--color--text-dark);
}
.wp-block-post-content p { margin: 0 0 1.1em; }
.wp-block-post-content p:last-child { margin-bottom: 0; }

.wp-block-post-content :where(h2, h3, h4, h5) {
	font-family: var(--wp--preset--font-family--heading);
	color: var(--wp--preset--color--river-navy);
	font-weight: 700;
	/* Anchor links (e.g. /print-technology/#printing-copying) land below the sticky
	   header, with room to spare for the header shrinking as the page scrolls. */
	scroll-margin-top: 180px;
}
.wp-block-post-content h2 {
	font-size: 26px; line-height: 1.3;
	margin: 1.9em 0 0.7em;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--wp--preset--color--slag-gray);
}
.wp-block-post-content h3 { font-size: 21px; line-height: 1.35; margin: 1.6em 0 0.5em; }
.wp-block-post-content h4 { font-size: 18px; line-height: 1.4; margin: 1.4em 0 0.4em; }
.wp-block-post-content h5 {
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px; letter-spacing: 0.6px; text-transform: uppercase;
	color: var(--wp--preset--color--burnished-dark);
	margin: 1.4em 0 0.4em;
}
.wp-block-post-content [id] { scroll-margin-top: 180px; }
@media (max-width: 767px) {
	.wp-block-post-content :where(h2, h3, h4, h5), .wp-block-post-content [id] { scroll-margin-top: 90px; }
}

/* Links inside text are underlined so they're recognizable without color. */
.wp-block-post-content :where(p, li, td, figcaption, summary + *) a {
	color: var(--wp--preset--color--burnished-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
.wp-block-post-content :where(p, li, td, figcaption) a:hover { color: var(--wp--preset--color--river-navy); }

.wp-block-post-content :where(ul, ol):not(.wp-block-social-links) { margin: 0 0 1.2em; padding-left: 1.4em; }
.wp-block-post-content li { margin-bottom: 0.4em; }
.wp-block-post-content li::marker { color: var(--wp--preset--color--burnished-dark); }
.wp-block-post-content :where(ul, ol) :where(ul, ol) { margin: 0.4em 0 0; }

.wp-block-post-content strong { font-weight: 700; }
.wp-block-post-content .has-small-font-size { line-height: 1.6; }

/* ---------- Buttons ---------- */
.wp-block-post-content .wp-block-buttons { margin: 1.4em 0; gap: 12px; }
.wp-block-post-content .wp-block-button__link {
	background: var(--wp--preset--color--river-navy);
	color: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--river-navy);
	border-radius: 4px;
	padding: 11px 22px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px; font-weight: 700; line-height: 1.3;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.wp-block-post-content .wp-block-button__link:hover {
	background: var(--wp--preset--color--mill-forest);
	border-color: var(--wp--preset--color--mill-forest);
	color: var(--wp--preset--color--white);
}
.wp-block-post-content .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--river-navy);
}
.wp-block-post-content .is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--river-navy);
	border-color: var(--wp--preset--color--river-navy);
	color: var(--wp--preset--color--white);
}

/* ---------- Images ---------- */
.wp-block-post-content .wp-block-image { margin: 1.6em 0; }
.wp-block-post-content .wp-block-image img { border-radius: 4px; height: auto; }
/* A resized image (a set width, e.g. a portrait photo at 350px): the figure
   shrinks to the image, so the caption wraps to the image's width instead of
   running across the page. Centered images stay centered. */
.wp-block-post-content .wp-block-image.is-resized {
	display: grid; grid-template-columns: min-content; justify-content: start;
	max-width: 720px;
}
.wp-block-post-content .wp-block-image.is-resized.aligncenter { justify-content: center; margin-left: 0 !important; margin-right: 0 !important; } /* centered in the text column, not the page */
.wp-block-post-content .wp-block-image.is-resized img { max-width: min(100vw - 48px, 720px); }
.wp-block-post-content figcaption,
.wp-block-post-content .wp-element-caption {
	font-size: 14px; line-height: 1.5;
	color: var(--wp--preset--color--text-muted);
	margin-top: 8px; text-align: left;
}

/* ---------- Quote ---------- */
.wp-block-post-content .wp-block-quote {
	margin: 1.6em 0; padding: 4px 0 4px 22px;
	border-left: 4px solid var(--wp--preset--color--burnished-amber);
}
.wp-block-post-content .wp-block-quote p {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic; font-size: 20px; line-height: 1.55;
	color: var(--wp--preset--color--river-navy);
}
.wp-block-post-content .wp-block-quote cite {
	display: block; margin-top: 8px;
	font-size: 14px; font-style: normal; color: var(--wp--preset--color--text-muted);
}

/* ---------- Separator ---------- */
.wp-block-post-content hr.wp-block-separator {
	border: 0; border-top: 1px solid var(--wp--preset--color--slag-gray);
	margin: 2.2em 0; opacity: 1;
}

/* ---------- Tables ---------- */
.wp-block-post-content .wp-block-table { margin: 1.6em 0; overflow-x: auto; }
.wp-block-post-content .wp-block-table table {
	width: 100%; border-collapse: collapse;
	font-size: 16px; line-height: 1.5;
	background: var(--wp--preset--color--white);
}
.wp-block-post-content .wp-block-table :where(th, td) {
	border: 1px solid var(--wp--preset--color--slag-gray);
	padding: 10px 14px; text-align: left; vertical-align: top;
}
.wp-block-post-content .wp-block-table thead {
	border-bottom: 0;
}
.wp-block-post-content .wp-block-table thead th {
	background: var(--wp--preset--color--river-navy);
	border-color: var(--wp--preset--color--river-navy);
	color: var(--wp--preset--color--white);
	font-weight: 700;
}
.wp-block-post-content .wp-block-table tbody tr:nth-child(even) td { background: rgba(24, 48, 89, 0.035); }
/* Long email addresses and web links may wrap, so tables fit on small phones. */
.wp-block-post-content .wp-block-table td a { overflow-wrap: anywhere; }
.wp-block-post-content .wp-block-table figcaption { margin-top: 8px; }
/* "Simple rows" style: no grid, just dividing lines — good for hours, fees, etc. */
.wp-block-post-content .wp-block-table.is-style-mhw-simple table { background: transparent; }
.wp-block-post-content .wp-block-table.is-style-mhw-simple :where(th, td) {
	border: 0; border-bottom: 1px solid var(--wp--preset--color--slag-gray);
	padding: 10px 14px 10px 0;
}
.wp-block-post-content .wp-block-table.is-style-mhw-simple tbody tr:nth-child(even) td { background: transparent; }
.wp-block-post-content .wp-block-table.is-style-mhw-simple thead th {
	background: transparent; color: var(--wp--preset--color--river-navy);
	border-bottom: 2px solid var(--wp--preset--color--river-navy);
}

/* Opening hours table ([mhw_hours]) */
.wp-block-post-content .mhw-hours-table th { font-weight: 700; color: var(--wp--preset--color--text-dark); width: 40%; }
.wp-block-post-content .mhw-hours-table tr.is-closed :where(th, td) { color: var(--wp--preset--color--text-muted); }
.wp-block-post-content .mhw-hours-notice { border-left-color: var(--wp--preset--color--burnished-amber); }

/* ---------- FAQs (Details block) ---------- */
.wp-block-post-content .wp-block-details {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--slag-gray);
	border-radius: 4px;
	margin: 0 0 10px;
	padding: 0;
}
.wp-block-post-content .wp-block-details + :not(.wp-block-details) { margin-top: 1.6em; }
.wp-block-post-content .wp-block-details summary {
	position: relative;
	list-style: none;
	cursor: pointer;
	padding: 14px 48px 14px 18px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700; font-size: 18px; line-height: 1.4;
	color: var(--wp--preset--color--river-navy);
}
.wp-block-post-content .wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-post-content .wp-block-details summary::after {
	content: ""; position: absolute; right: 20px; top: 50%;
	width: 8px; height: 8px; margin-top: -6px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); transition: transform 0.2s ease;
}
.wp-block-post-content .wp-block-details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.wp-block-post-content .wp-block-details summary:hover { color: var(--wp--preset--color--burnished-dark); }
.wp-block-post-content .wp-block-details summary:focus-visible { outline: 2px solid var(--wp--preset--color--river-navy); outline-offset: -2px; }
.wp-block-post-content .wp-block-details > :not(summary) { margin-left: 18px; margin-right: 18px; }
.wp-block-post-content .wp-block-details > :not(summary):last-child { margin-bottom: 16px; }
.wp-block-post-content .wp-block-details > summary + * { margin-top: 0; }

/* ---------- Callout (Group block → Styles → Callout) ---------- */
.wp-block-post-content .wp-block-group.is-style-mhw-callout {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--slag-gray);
	border-left: 4px solid var(--wp--preset--color--mill-forest);
	border-radius: 4px;
	padding: 20px 24px;
	margin: 1.6em 0;
	box-shadow: 0 4px 20px rgba(24, 48, 89, 0.04);
}
.wp-block-post-content .is-style-mhw-callout > :first-child { margin-top: 0; }
.wp-block-post-content .is-style-mhw-callout > :last-child { margin-bottom: 0; }
.wp-block-post-content .is-style-mhw-callout :where(h2, h3, h4) { border: 0; padding: 0; margin-top: 0; font-size: 20px; }

/* ---------- Menu panel (Group → Styles → Menu), e.g. the Schools page menus ---------- */
.wp-block-post-content .wp-block-group.is-style-mhw-menu {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--slag-gray);
	border-top: 4px solid var(--wp--preset--color--burnished-amber);
	border-radius: 4px;
	padding: 4px 28px;
	margin: 1.4em 0 1.8em;
	box-shadow: 0 4px 20px rgba(24, 48, 89, 0.05);
}
.wp-block-post-content .is-style-mhw-menu > .mhw-menu-section {
	display: grid;
	grid-template-columns: 170px 1fr;
	gap: 0 28px;
	padding: 22px 0;
	margin: 0;
}
.wp-block-post-content .is-style-mhw-menu > .mhw-menu-section + .mhw-menu-section {
	border-top: 1px solid var(--wp--preset--color--slag-gray);
}
.wp-block-post-content .is-style-mhw-menu .mhw-menu-section > :where(h3, h4) {
	margin: 2px 0 0; padding: 0; border: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px; font-weight: 800; line-height: 1.4;
	letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--wp--preset--color--burnished-dark);
}
.wp-block-post-content .is-style-mhw-menu > .mhw-menu-section,
.wp-block-post-content .is-style-mhw-menu .mhw-menu-section > * {
	margin-left: 0 !important; margin-right: 0 !important; max-width: none; text-align: left;
}
.wp-block-post-content .is-style-mhw-menu .mhw-menu-section > ul {
	list-style: none; margin: 0; padding: 0;
}
.wp-block-post-content .is-style-mhw-menu .mhw-menu-section li { margin: 0; padding: 0; }
.wp-block-post-content .is-style-mhw-menu .mhw-menu-section li + li { margin-top: 14px; }
.wp-block-post-content .is-style-mhw-menu .mhw-menu-section li > strong:first-child {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 18px; line-height: 1.35;
	color: var(--wp--preset--color--river-navy);
	margin-bottom: 2px;
}
@media (max-width: 700px) {
	.wp-block-post-content .wp-block-group.is-style-mhw-menu { padding: 2px 18px; }
	.wp-block-post-content .is-style-mhw-menu > .mhw-menu-section { grid-template-columns: 1fr; padding: 18px 0; }
	.wp-block-post-content .is-style-mhw-menu .mhw-menu-section > :where(h3, h4) { margin-bottom: 10px; }
}

/* ---------- "On this page" jump links (Paragraph → Styles → On this page) ---------- */
.wp-block-post-content p.is-style-mhw-jump-links {
	font-size: 15px; line-height: 1.9;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--slag-gray);
	border-radius: 4px;
	padding: 12px 18px;
	margin: 0 0 1.6em;
	box-sizing: border-box;
	color: var(--wp--preset--color--text-muted);
}
.wp-block-post-content p.is-style-mhw-jump-links strong { color: var(--wp--preset--color--river-navy); margin-right: 4px; }
.wp-block-post-content p.is-style-mhw-jump-links a {
	color: var(--wp--preset--color--river-navy);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.wp-block-post-content p.is-style-mhw-jump-links a:hover { color: var(--wp--preset--color--burnished-dark); text-decoration: underline; }

/* ---------- Columns & groups with a background colour ---------- */
.wp-block-post-content .wp-block-columns { gap: 28px; margin: 1.6em 0; }
.wp-block-post-content .wp-block-column > :first-child { margin-top: 0; }
.wp-block-post-content .wp-block-group.has-background { padding: 24px 28px; border-radius: 4px; }

/* ---------- Embeds (videos, maps) ---------- */
.wp-block-post-content .wp-block-embed { margin: 1.6em 0; }
.wp-block-post-content .wp-block-embed iframe { max-width: 100%; border-radius: 4px; }

/* ---------- Phones ---------- */
@media (max-width: 600px) {
	.mhw-page { padding-top: 32px; }
	.wp-block-post-content h2 { font-size: 23px; }
	.wp-block-post-content h3 { font-size: 19px; }
	.wp-block-post-content .wp-block-columns { gap: 0; }
	.page-title-band h1 { font-size: 32px; }
}

/* A Callout that fills a column: side-by-side boxes come out the same height. */
.wp-block-post-content .wp-block-column > .is-style-mhw-callout:only-child {
	height: 100%; box-sizing: border-box; margin: 0;
	display: flex; flex-direction: column; align-items: stretch;
}
.wp-block-post-content .wp-block-column > .is-style-mhw-callout:only-child > * { margin-left: 0 !important; margin-right: 0 !important; }
.wp-block-post-content .wp-block-column > .is-style-mhw-callout:only-child > .wp-block-buttons:last-child { margin-top: auto; padding-top: 8px; margin-bottom: 0; }
@media (max-width: 781px) {
	.wp-block-post-content .wp-block-columns { gap: 20px; }
}

/* ---------- Searchable tables (Table → Styles → Searchable; script: mhw-tables.js) ---------- */
.wp-block-post-content .mhw-table-tools {
	display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px;
	margin: 1.6em 0 0;
}
.wp-block-post-content .mhw-table-tools + .wp-block-table { margin-top: 12px; }
.wp-block-post-content .mhw-table-field { display: flex; flex-direction: column; gap: 4px; }
.wp-block-post-content .mhw-table-field.is-search { flex: 1 1 260px; }
.wp-block-post-content .mhw-table-field label { font-size: 14px; font-weight: 700; color: var(--wp--preset--color--text-dark); }
.wp-block-post-content .mhw-table-field :where(input, select) {
	font: inherit; font-size: 16px; line-height: 1.4;
	padding: 9px 12px; min-height: 44px; box-sizing: border-box;
	color: var(--wp--preset--color--text-dark);
	background: var(--wp--preset--color--white);
	border: 1px solid #94a3b8; border-radius: 4px;
}
.wp-block-post-content .mhw-table-field input { width: 100%; }
.wp-block-post-content .mhw-table-field :where(input, select):focus {
	outline: 2px solid var(--wp--preset--color--river-navy); outline-offset: 1px; border-color: var(--wp--preset--color--river-navy);
}
.wp-block-post-content .mhw-table-status {
	flex-basis: 100%; margin: 0 !important;
	font-size: 14px; color: var(--wp--preset--color--text-muted);
}
.wp-block-post-content .wp-block-table th .mhw-sort {
	all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
	font-weight: 700; color: inherit;
}
.wp-block-post-content .wp-block-table th .mhw-sort:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.wp-block-post-content .mhw-sort-icon {
	width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
	border-top: 5px solid currentColor; opacity: 0.35;
}
.wp-block-post-content th[aria-sort] .mhw-sort-icon { opacity: 1; }
.wp-block-post-content th[aria-sort="ascending"] .mhw-sort-icon { border-top: 0; border-bottom: 5px solid currentColor; }
.wp-block-post-content .mhw-table-empty td { color: var(--wp--preset--color--text-muted); font-style: italic; }

/* ---------- Child-page cards ([mhw_subpages], e.g. job openings) ---------- */
.wp-block-post-content .mhw-subpages { margin: 1.4em 0; }
.wp-block-post-content .mhw-subpages .news-item-title { margin: 0 0 6px !important; padding: 0; border: 0; }
.wp-block-post-content .mhw-subpages .news-item-excerpt { margin: 0 0 10px; }
.wp-block-post-content .mhw-subpages-more { margin: 0; font-size: 15px; font-weight: 700; }
.wp-block-post-content .mhw-subpages-more a { color: var(--wp--preset--color--river-navy); text-decoration: none; }
.wp-block-post-content .mhw-subpages-more a:hover { color: var(--wp--preset--color--burnished-dark); text-decoration: underline; }
.wp-block-post-content .mhw-subpages-empty {
	background: var(--wp--preset--color--white); border: 1px dashed var(--wp--preset--color--slag-gray);
	border-radius: 4px; padding: 16px 20px; color: var(--wp--preset--color--text-muted);
}
/* Phones: each row of a Searchable table becomes a small labelled card. */
@media (max-width: 600px) {
	.wp-block-post-content .wp-block-table.is-style-mhw-searchable.has-labels { overflow: visible; }
	.wp-block-post-content .is-style-mhw-searchable.has-labels table,
	.wp-block-post-content .is-style-mhw-searchable.has-labels tbody,
	.wp-block-post-content .is-style-mhw-searchable.has-labels tr,
	.wp-block-post-content .is-style-mhw-searchable.has-labels td { display: block; width: 100%; box-sizing: border-box; }
	.wp-block-post-content .is-style-mhw-searchable.has-labels table { background: transparent; }
	.wp-block-post-content .is-style-mhw-searchable.has-labels thead {
		position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
	}
	.wp-block-post-content .is-style-mhw-searchable.has-labels tbody tr:not([hidden]) {
		background: var(--wp--preset--color--white);
		border: 1px solid var(--wp--preset--color--slag-gray); border-radius: 4px;
		margin: 0 0 10px; padding: 8px 14px;
	}
	.wp-block-post-content .is-style-mhw-searchable.has-labels tr[hidden] { display: none; }
	.wp-block-post-content .is-style-mhw-searchable.has-labels tbody tr:nth-child(even) td { background: transparent; }
	.wp-block-post-content .is-style-mhw-searchable.has-labels td {
		border: 0; padding: 4px 0;
		display: grid; grid-template-columns: 7.5em 1fr; gap: 10px;
	}
	.wp-block-post-content .is-style-mhw-searchable.has-labels td::before {
		content: attr(data-label); font-size: 13px; font-weight: 700; color: var(--wp--preset--color--text-muted);
		padding-top: 2px;
	}
	.wp-block-post-content .is-style-mhw-searchable.has-labels .mhw-table-empty td { display: block; }
	.wp-block-post-content .is-style-mhw-searchable.has-labels .mhw-table-empty td::before { content: none; }
}

/* A link that fills a whole cell of a Searchable table (set by mhw-tables.js): a small outline button. */
.wp-block-post-content .wp-block-table a.mhw-cell-button {
	display: inline-block; padding: 5px 14px; border: 2px solid var(--wp--preset--color--river-navy); border-radius: 4px;
	color: var(--wp--preset--color--river-navy); background: var(--wp--preset--color--white);
	font-size: 14px; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap; overflow-wrap: normal; max-width: 100%;
}
.wp-block-post-content .wp-block-table a.mhw-cell-button:hover,
.wp-block-post-content .wp-block-table a.mhw-cell-button:focus-visible {
	background: var(--wp--preset--color--river-navy); color: var(--wp--preset--color--white);
}
@media (max-width: 600px) {
	.wp-block-post-content .is-style-mhw-searchable.has-labels td a.mhw-cell-button { justify-self: start; white-space: normal; }
}

/* ---------------------------------------------------------------
   List style "Link cards" (section landing pages): each item is a card.
   Its first link is the title, and the whole card is clickable.
   --------------------------------------------------------------- */
.wp-block-post-content ul.is-style-mhw-link-cards,
.editor-styles-wrapper ul.is-style-mhw-link-cards {
	list-style: none; padding: 0; margin: 0 0 2em;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px;
}
.wp-block-post-content ul.is-style-mhw-link-cards > li,
.editor-styles-wrapper ul.is-style-mhw-link-cards > li {
	position: relative; margin: 0; padding: 16px 18px 18px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--slag-gray); border-top: 3px solid var(--wp--preset--color--river-navy);
	border-radius: 4px;
	font-size: 15.5px; line-height: 1.5; color: var(--wp--preset--color--text-muted);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.wp-block-post-content ul.is-style-mhw-link-cards > li > a:first-child,
.editor-styles-wrapper ul.is-style-mhw-link-cards > li > a:first-child {
	display: inline-block; margin-bottom: 4px;
	font-family: var(--wp--preset--font-family--heading); font-size: 19px; font-weight: 700; line-height: 1.3;
	color: var(--wp--preset--color--river-navy); text-decoration: none;
}
/* Stretch the title link over the whole card (front end only). */
.wp-block-post-content ul.is-style-mhw-link-cards > li > a:first-child::after { content: ""; position: absolute; inset: 0; }
.wp-block-post-content ul.is-style-mhw-link-cards > li:hover {
	border-color: var(--wp--preset--color--river-navy); box-shadow: 0 6px 18px rgba(24, 48, 89, 0.10);
}
.wp-block-post-content ul.is-style-mhw-link-cards > li:hover > a:first-child { color: var(--wp--preset--color--burnished-dark); text-decoration: underline; }
.wp-block-post-content ul.is-style-mhw-link-cards > li:focus-within { outline: 3px solid rgba(24, 48, 89, 0.3); outline-offset: 2px; }
.wp-block-post-content ul.is-style-mhw-link-cards > li > a:first-child:focus-visible { outline: none; }

/* Website search box ("Page not found" page) */
.mhw-site-search { margin: 0 0 1.2em; }
.mhw-site-search label { display: block; font-weight: 700; margin: 0 0 6px; color: var(--wp--preset--color--text-dark); }
.mhw-site-search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mhw-site-search input[type="search"] {
	flex: 1 1 240px; min-width: 0; font: inherit; font-size: 16px;
	padding: 11px 14px; border: 1px solid var(--wp--preset--color--slag-gray); border-radius: 4px; background: #fff;
}
.mhw-site-search input[type="search"]:focus { outline: 3px solid rgba(24, 48, 89, 0.25); border-color: var(--wp--preset--color--river-navy); }
.mhw-site-search button { cursor: pointer; border: 0; }

/* ---------- Embedded calendars, documents and videos (wp:html <div class="mhw-embed …"><iframe …></div>) ---------- */
.wp-block-post-content .mhw-embed { margin: 1.2em 0 1.6em; max-width: 1000px; }
.wp-block-post-content .mhw-embed iframe {
	display: block; width: 100%; border: 1px solid var(--wp--preset--color--slag-gray); border-radius: 6px;
	background: var(--wp--preset--color--white);
}
.wp-block-post-content .mhw-embed.is-video iframe { height: auto; aspect-ratio: 16 / 9; }
.wp-block-post-content .mhw-embed.is-calendar iframe { height: 640px; }
.wp-block-post-content .mhw-embed.is-document iframe { height: 900px; }
@media (max-width: 600px) {
	.wp-block-post-content .mhw-embed.is-calendar iframe { height: 520px; }
	.wp-block-post-content .mhw-embed.is-document iframe { height: 620px; }
}
.wp-block-post-content .mhw-embed-caption { font-size: 15px; color: var(--wp--preset--color--text-muted); margin-top: 6px; }

/* Color key, e.g. for a calendar: <span class="mhw-swatch" style="--swatch:#4285f4"></span> */
.wp-block-post-content .mhw-swatch {
	display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 8px; vertical-align: -1px;
	background: var(--swatch, #999); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* Password-protected pages: the password box */
.wp-block-post-content .post-password-form {
	max-width: 520px; padding: 24px; margin: 0 0 2em;
	background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--slag-gray); border-radius: 8px;
}
.wp-block-post-content .post-password-form p:first-child { margin-bottom: 14px; }
.wp-block-post-content .post-password-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 16px; }
.wp-block-post-content .post-password-form input[type="password"] {
	font: inherit; font-size: 16px; padding: 10px 12px; min-height: 44px; box-sizing: border-box; width: 100%;
	border: 1px solid #94a3b8; border-radius: 4px; font-weight: 400;
}
.wp-block-post-content .post-password-form input[type="password"]:focus { outline: 2px solid var(--wp--preset--color--river-navy); outline-offset: 1px; }
.wp-block-post-content .post-password-form input[type="submit"] {
	margin-top: 12px; font: inherit; font-size: 16px; font-weight: 700; min-height: 44px; padding: 10px 24px; cursor: pointer;
	border: 0; border-radius: 4px; background: var(--wp--preset--color--river-navy); color: var(--wp--preset--color--white);
}
.wp-block-post-content .post-password-form input[type="submit"]:focus-visible { outline: 3px solid var(--wp--preset--color--burnished-amber); outline-offset: 2px; }
.wp-block-post-content ul.mhw-legend { list-style: none; padding: 0; margin: 0.6em 0 1em; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 16px; }
.wp-block-post-content ul.mhw-legend li { margin: 0; }

/* ---------- Meeting Rooms table ([mhw_rooms_table]): a room that can't be requested right now ---------- */
.wp-block-post-content .mhw-room-status {
	display: inline-block; margin-top: 4px;
	font-size: 14px; font-weight: 700; line-height: 1.4;
	color: var(--wp--preset--color--burnished-dark);
}
.wp-block-post-content .mhw-rooms-table tr.is-unavailable td:not(:first-child) { color: var(--wp--preset--color--text-muted); }
.wp-block-post-content .mhw-room-note { font-size: 14px; line-height: 1.4; color: var(--wp--preset--color--text-muted); }

/* ---------- About: "How we're governed" logos (ul.mhw-affiliations in a Custom HTML block) ---------- */
.wp-block-post-content ul.mhw-affiliations {
	list-style: none; padding: 0; margin: 1.2em 0 1.8em;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.wp-block-post-content .mhw-affiliation {
	margin: 0; padding: 20px 22px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--slag-gray); border-radius: 6px;
}
.mhw-affiliation-logo { height: 80px; display: flex; align-items: center; margin-bottom: 14px; }
.mhw-affiliation-logo img { display: block; max-height: 80px; width: auto; max-width: 100%; height: auto; }
.mhw-affiliation-logo picture { display: contents; }
.wp-block-post-content .mhw-affiliation h3 { font-size: 19px; margin: 0 0 6px; }
.wp-block-post-content .mhw-affiliation p { font-size: 15px; line-height: 1.55; margin: 0 0 8px; }
.wp-block-post-content .mhw-affiliation p:last-child { margin: 0; font-weight: 700; }

/* Staff-only "Refresh events now" line (inc/events.php) */
.wp-block-post-content .mhw-staff-refresh {
	font-size: 14px; padding: 8px 12px; margin: 0 0 1.2em;
	background: var(--wp--preset--color--vellum-cream);
	border: 1px dashed var(--wp--preset--color--burnished-dark); border-radius: 4px;
}

/* Small icons before a heading: add the class mhw-icon-cost or mhw-icon-time
   (Heading block -> Advanced -> Additional CSS class). */
.wp-block-post-content .wp-block-heading:is(.mhw-icon-cost, .mhw-icon-time) { display: flex; align-items: center; gap: 10px; }
.wp-block-post-content .wp-block-heading:is(.mhw-icon-cost, .mhw-icon-time)::before {
	content: ""; flex: 0 0 auto; width: 1.15em; height: 1.15em;
	background-color: var(--wp--preset--color--burnished-dark);
	-webkit-mask: var(--mhw-icon) center / contain no-repeat; mask: var(--mhw-icon) center / contain no-repeat;
}
.wp-block-post-content .mhw-icon-cost { --mhw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M14.8 9.2c-.5-1-1.6-1.6-2.8-1.6-1.6 0-2.8.9-2.8 2.2 0 3 5.8 1.6 5.8 4.6 0 1.3-1.3 2.2-3 2.2-1.3 0-2.5-.6-3-1.7M12 5.8v1.8M12 16.6v1.8'/%3E%3C/svg%3E"); }
.wp-block-post-content .mhw-icon-time { --mhw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 6.5V12l3.5 2.2'/%3E%3C/svg%3E"); }
