/*
Theme Name: MWV Twenty Twenty-Five Child
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Description: Standard MWV child theme for municipal websites using Twenty Twenty-Five.
Author: MWV
Template: twentytwentyfive
Version: 1.0.0
Text Domain: twentytwentyfive-child
*/

/* Site-specific styles go below this line. */

.barrington-quick-label,
.barrington-quick-label a {
    color: #A72B2A;
}

/* Barrington homepage – Quick-access icon rollovers */

.barrington-quick-item .barrington-quick-icon img {
    transition: transform 0.2s ease, filter 0.2s ease;
}

.barrington-quick-item:hover .barrington-quick-icon img,
.barrington-quick-item:focus-within .barrington-quick-icon img {
    transform: scale(1.08);
    filter: brightness(0.75);
}

@media (prefers-reduced-motion: reduce) {
    .barrington-quick-item .barrington-quick-icon img {
        transition: none;
    }
}

/* Barrington homepage: equal-height news cards */

.barrington-latest-news .wp-block-post-template {
    align-items: stretch;
}

.barrington-latest-news .wp-block-post {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    height: 100%;
}

/* Section sidebar: room for focus outlines inside the scrolling sidebar (wide screens) */
@media (min-width: 782px) {
	.wp-block-columns > .section-sidebar {
		padding: 4px;
		margin: -4px;
	}
}


/* Content tables (imported pages) */
.entry-content table {
	width: 100% !important;
	border-collapse: collapse;
	margin-block: 1.5rem;
	font-size: 0.875em;
	line-height: 1.45;
}
.entry-content table th,
.entry-content table td {
	padding: 0.75rem 1rem;
	vertical-align: top !important;
	text-align: left;
	border-top: 1px solid #e2dfdf;
	overflow-wrap: normal;
	word-break: normal;
}
.entry-content table th,
.entry-content table thead td {
	font-weight: 600;
}
.entry-content table tr:nth-child(odd) > td {
	background: #f4f2f2;
}
.entry-content table td > :first-child {
	margin-top: 0;
}
.entry-content table td > :last-child {
	margin-bottom: 0;
}
.entry-content table td p {
	margin: 0.5rem 0 0;
}
.entry-content table ul {
	margin: 0;
	padding-left: 1.1rem;
}
@media (max-width: 781px) {
	.entry-content table {
		display: block;
		overflow-x: auto;
	}
}

/* Breadcrumbs: light grey bar */
.wp-block-breadcrumbs {
	background: #f4f2f2;
	padding: 0.6rem 1rem;
	margin-bottom: 1.5rem;
	font-size: 0.9em;
}

/* Profiles (councillors, staff): photo beside text, stacks on phones */
.profile {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 1.5rem 2rem;
	align-items: start;
	background: #f4f2f2;
	border: 1px solid #e2dfdf;
	padding: 1.5rem;
	margin-block: 1.5rem;
}
.profile > p:empty,
.profile > br {
	display: none;
}
.profile-photo {
	margin: 0;
}
.profile-photo img {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
}
.profile-text > :first-child {
	margin-top: 0;
}
.profile-text h2 {
	font-family: inherit;
	font-size: 1.2rem;
	font-style: italic;
	font-weight: 400;
}
@media (max-width: 600px) {
	.profile {
		grid-template-columns: minmax(0, 300px);
	}
}

ul.tile-grid {
	list-style: none;
	padding: 0;
}
ul.tile-grid li {
	margin: 0;
}

/* Tile grid: linked image tiles in even rows (e.g. election links) */
.tile-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 160px));
	gap: 1rem;
	justify-content: center;
	list-style: none;
	padding: 0;
	margin-block: 1.5rem;
}
.tile-grid li {
	margin: 0;
}
.tile-grid a,
.tile-grid img {
	display: block;
}
.tile-grid img {
	width: 100% !important;
	height: auto !important;
}
@media (max-width: 600px) {
	.tile-grid {
		grid-template-columns: repeat(2, minmax(0, 160px));
	}
}

/* Images in page content never wider than their column */
.entry-content img {
	max-width: 100%;
	height: auto;
}


/* Align the header utility row with the logo row */
header.wp-block-template-part .wp-block-columns {
	width: 100%;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
}

/* Header social icons */
header.wp-block-template-part .wp-block-social-links {
	display: flex;
	justify-content: flex-start;
	gap: 14px;
	margin: 0;
	padding: 0 0 0 32px;
}

header.wp-block-template-part .wp-block-social-links .wp-social-link {
	color: #fff !important;
	background-color: transparent !important;
	border: 0;
	border-radius: 0;
}

.general {margin: 40px 0 0 0;}

header.wp-block-template-part .wp-block-social-links .wp-social-link a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
	color: inherit !important;
}

header.wp-block-template-part .wp-block-social-links svg {
	width: 30px !important;
	height: 30px !important;
	fill: currentColor;
}

header.wp-block-template-part .wp-block-social-links a:hover {
	opacity: 0.75;
}

header.wp-block-template-part .wp-block-social-links a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Mobile */
@media (max-width: 781px) {
	header.wp-block-template-part .wp-block-social-links {
		padding-left: 0;
	}
}


/* Top-right phone number and links */
header.wp-block-template-part .header-contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 12px 32px;
	margin: 0;
	color: #fff;
	font-size: 16px;
	line-height: 1.5;
}

header.wp-block-template-part .header-contact strong {
	font-weight: 400;
}

header.wp-block-template-part .header-contact a {
	color: #fff;
	text-decoration: none;
}

header.wp-block-template-part .header-contact a:hover,
header.wp-block-template-part .header-contact a:focus-visible {
	text-decoration: underline;
}

/* Font Awesome Free phone icon */
header.wp-block-template-part .header-contact > strong:first-child::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 10px;
	vertical-align: -1px;
	background: currentColor;
	-webkit-mask: url("https://raw.githubusercontent.com/FortAwesome/Font-Awesome/6.x/svgs/solid/phone.svg") center / contain no-repeat;
	mask: url("https://raw.githubusercontent.com/FortAwesome/Font-Awesome/6.x/svgs/solid/phone.svg") center / contain no-repeat;
}

@media (max-width: 781px) {
	header.wp-block-template-part .header-contact {
		justify-content: flex-start;
		gap: 10px 20px;
	}
}

/* Google search beneath the top-right links */
header.wp-block-template-part #cgs {
	width: 100%;
	max-width: 480px;
	margin: 18px 0 0 auto;
	box-sizing: border-box;
}

form.gsc-search-box {
    max-width: 652px;
    font-size: 14px;
    margin: 0 0 0 25px !important;
}

header.wp-block-template-part #cgs .gsc-control-searchbox-only {
	width: 100%;
}

@media (max-width: 781px) {
	header.wp-block-template-part #cgs {
		max-width: 100%;
	}
}

/* Remove top padding from the logo and navigation row */
header.wp-block-template-part .wp-block-group.alignwide.is-content-justification-space-between {
	padding-top: 0 !important;
}

/* Desktop header navigation */
@media (min-width: 782px) {

	/* Main menu links */
	header.wp-block-template-part .wp-block-navigation {
		font-size: 17px;
	}

	header.wp-block-template-part .wp-block-navigation
	.wp-block-navigation-item__content {
		text-decoration: none;
	}

	/* Main menu hover and active colour */
	header.wp-block-template-part .wp-block-navigation
	.wp-block-navigation__container > .wp-block-navigation-item:hover,
	header.wp-block-template-part .wp-block-navigation
	.wp-block-navigation__container > .current-menu-item {
		color: #ef4044;
	}

	/* Dropdown panels */
	header.wp-block-template-part .wp-block-navigation
	.wp-block-navigation__submenu-container {
		width: 380px !important;
		min-width: 380px !important;
		padding: 0 !important;
		gap: 0;
		background: #fff !important;
		color: #444 !important;
		border: 1px solid #ddd;
		box-shadow: none;
	}

	/* Dropdown items */
	header.wp-block-template-part .wp-block-navigation
	.wp-block-navigation__submenu-container > .wp-block-navigation-item {
		width: 100%;
		margin: 0;
		padding: 0;
	}

	header.wp-block-template-part .wp-block-navigation
	.wp-block-navigation__submenu-container
	.wp-block-navigation-item__content {
		flex: 1;
		padding: 6px 12px !important;
		font-size: 20px;
		line-height: 1.1;
		color: inherit !important;
	}

	/* Red dropdown hover and keyboard focus */
	header.wp-block-template-part .wp-block-navigation
	.wp-block-navigation__submenu-container > .wp-block-navigation-item:hover,
	header.wp-block-template-part .wp-block-navigation
	.wp-block-navigation__submenu-container > .wp-block-navigation-item:focus-within {
		background: #a52a2d;
		color: #fff !important;
	}

	/* Space for submenu arrows */
	header.wp-block-template-part .wp-block-navigation
	.wp-block-navigation__submenu-container
	.wp-block-navigation-submenu__toggle {
		margin-right: 12px;
		color: inherit;
	}

	/* Nested dropdowns open to the right */
	header.wp-block-template-part .wp-block-navigation
	.wp-block-navigation__submenu-container
	.wp-block-navigation__submenu-container {
		top: -1px !important;
		left: 100% !important;
		right: auto !important;
	}
}

@media (min-width: 782px) {
	header.wp-block-template-part .wp-block-navigation
	.wp-block-navigation__container > .wp-block-navigation-item {
		color: #ff9ea0;
	}

	header.wp-block-template-part .wp-block-navigation
	.wp-block-navigation__container > .wp-block-navigation-item > button {
		color: #fff !important;
	}

	/* Highlight the current section, hover, and keyboard focus */
	header.wp-block-template-part .wp-block-navigation
	.wp-block-navigation__container > .wp-block-navigation-item:is(
		:hover,
		:focus-within,
		.current-menu-item,
		.current-menu-parent,
		.current-menu-ancestor
	) > a,
	header.wp-block-template-part .wp-block-navigation
	.wp-block-navigation__container > .wp-block-navigation-item:has(
		a[aria-current="page"]
	) > a {
		color: #ff9ea0 !important;
	}
}

@media (min-width: 782px) {

	/* Normal top-level text */
	header.wp-block-template-part .wp-block-navigation
	.wp-block-navigation__container > .wp-block-navigation-item
	> a > .wp-block-navigation-item__label {
		color: #fff !important;
	}

	/* Hover, keyboard focus, and current section */
	header.wp-block-template-part .wp-block-navigation
	.wp-block-navigation__container > .wp-block-navigation-item:is(
		:hover,
		:focus-within,
		.current-menu-item,
		.current-menu-parent,
		.current-menu-ancestor
	) > a > .wp-block-navigation-item__label,
	header.wp-block-template-part .wp-block-navigation
	.wp-block-navigation__container > .wp-block-navigation-item:has(
		a[aria-current="page"]
	) > a > .wp-block-navigation-item__label {
		color: #ff9ea0 !important;
	}
}

/* Keep the Quick Links columns closer together */
.footer-quick-links {
	width: 100%;
	max-width: 520px;
	gap: 32px !important;
}

/* Footer social icons */
.footer-social {
	display: flex;
	justify-content: flex-start;
	gap: 18px;
	margin-top: 28px !important;
	padding: 0;
	justify-content: center;
	width: 100%;
    max-width: 520px;
}

.footer-social .wp-social-link {
	background: transparent !important;
	color: #fff !important;
	border-radius: 0;
}

.footer-social .wp-social-link a {
	padding: 6px;
	color: inherit !important;
}

.footer-social svg {
	width: 30px;
	height: 30px;
	fill: currentColor;
}

.footer-social a:hover {
	opacity: 0.75;
}

.footer-social a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Position the lobster badge within the whole footer */
.footer-artwork {
	position: relative;
	isolation: isolate;
}

.footer-artwork::after {
	content: "";
	position: absolute;
	right: 30px;
	bottom: 30px;
	width: 300px;
	height: 310px;
	max-width: 70%;
	background: url("/wp-content/uploads/2026/10/footer-lobster.png")
		center / contain no-repeat;
	pointer-events: none;
	z-index: -1;
}

/* Bring the Quick Links columns closer together */
.footer-quick-area .footer-quick-links {
	width: 100%;
	max-width: 520px;
	gap: 32px !important;
}

/* Centre the icons beneath both link columns */
.footer-quick-area .footer-social {
	display: flex;
	justify-content: center !important;
	width: 100%;
	max-width: 520px;
	gap: 18px;
	margin: 28px 0 0 !important;
	padding: 0;
}

/* White icons without coloured circles */
.footer-quick-area .footer-social .wp-social-link {
	color: #fff !important;
	background: transparent !important;
	border-radius: 0;
}

.footer-quick-area .footer-social .wp-social-link a {
	padding: 6px;
	color: inherit !important;
}

.footer-quick-area .footer-social svg {
	width: 30px;
	height: 30px;
	fill: currentColor;
}


/* Home Page Icon Grid */
.barrington-quick-grid {margin: 70px 0 !important;}