/* Pan con Política Ads 0.1.3
   Site chrome + ad slots. Modeled on a tight political news well
   (logo + colored nav, aligned lead, right rail, solid footer). */

:root {
	--pcp-navy: #1b2a4a;
	--pcp-navy-deep: #121a2e;
	--pcp-red: #c4122f;
	--pcp-cream: #f6f3ee;
	--pcp-ink: #1a1a1a;
	--pcp-muted: #5a5a5a;
	--pcp-line: #e2ddd6;
	--pcp-well: 1180px;
	--pcp-gutter: 24px;
	--pcp-sidebar: 300px;
}

/* ------------------------------------------------------------------
   Page shell: centered ~1180px white well on a deep navy ground.
   ------------------------------------------------------------------ */

body {
	background: var(--pcp-navy-deep) !important;
	color: var(--pcp-ink) !important;
	font-weight: 400 !important;
	font-size: 1.0625rem !important;
	line-height: 1.5 !important;
	letter-spacing: 0 !important;
}

.wp-site-blocks {
	box-sizing: border-box;
	max-width: var(--pcp-well);
	margin: 0 auto;
	background: #fff;
	box-shadow: 0 0 32px rgba(0, 0, 0, 0.35);
	--wp--style--root--padding-left: var(--pcp-gutter);
	--wp--style--root--padding-right: var(--pcp-gutter);
}

/* ------------------------------------------------------------------
   Header: logo on the left, navy nav bar under it, red accent.
   Live: header.wp-block-template-part > .alignfull >
     .has-global-padding > .alignwide.is-nowrap.is-layout-flex
       > .wp-block-site-logo + (nav + search)
   ------------------------------------------------------------------ */

header.wp-block-template-part {
	box-sizing: border-box;
	background: #fff;
	padding: 0;
	border-bottom: 0;
}

header.wp-block-template-part .has-global-padding {
	padding-left: 0;
	padding-right: 0;
}

header.wp-block-template-part .alignfull,
header.wp-block-template-part .alignwide {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: 100%;
	width: 100%;
}

header.wp-block-template-part .wp-block-group.alignwide.is-layout-flex {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	flex-wrap: wrap !important;
	align-items: center;
	justify-content: space-between;
	gap: 0;
	padding: 14px var(--pcp-gutter) 0 !important;
}

header.wp-block-template-part .wp-block-group.alignwide.is-layout-flex::after {
	content: "Miami-Dade political news and gossip";
	order: 2;
	flex: 1 1 auto;
	margin-left: 24px;
	padding-bottom: 12px;
	align-self: center;
	text-align: right;
	color: var(--pcp-navy);
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

header.wp-block-template-part .wp-block-site-logo,
header.wp-block-template-part .wp-block-site-logo.is-default-size {
	order: 1;
	flex: 0 0 360px;
	width: 360px;
	max-width: 360px;
	min-width: 0;
	padding-bottom: 12px;
}

header.wp-block-template-part .wp-block-site-logo a,
header.wp-block-template-part .wp-block-site-logo img.custom-logo,
header.wp-block-template-part .wp-block-site-logo.is-default-size img {
	display: block;
	width: 360px !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: none !important;
}

header.wp-block-template-part .wp-block-group.is-content-justification-right {
	order: 3;
	flex: 1 1 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-width: 0;
	background: var(--pcp-navy);
	color: #fff;
	margin-left: calc(var(--pcp-gutter) * -1);
	margin-right: calc(var(--pcp-gutter) * -1);
	width: calc(100% + (var(--pcp-gutter) * 2));
	padding: 0 var(--pcp-gutter);
	min-height: 44px;
	border-top: 3px solid var(--pcp-red);
	box-sizing: border-box;
}

header.wp-block-template-part .wp-block-navigation,
header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content,
header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__label {
	color: #fff !important;
	font-size: 0.82rem;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
}

header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0.7rem 0.45rem;
}

header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content:hover,
header.wp-block-template-part .wp-block-navigation .current-menu-item .wp-block-navigation-item__content,
header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content:hover .wp-block-navigation-item__label,
header.wp-block-template-part .wp-block-navigation .current-menu-item .wp-block-navigation-item__label {
	color: #ffd7dc !important;
	text-decoration: none !important;
}

header.wp-block-template-part .wp-block-search {
	margin-left: 0.25rem !important;
}

header.wp-block-template-part .wp-block-search__button {
	background: transparent !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0.5rem !important;
	margin: 0 !important;
	min-width: 36px;
	min-height: 36px;
}

header.wp-block-template-part .wp-block-search__button svg {
	fill: currentColor;
}

header.wp-block-template-part .wp-block-navigation__responsive-container-open {
	color: #fff;
}

@media (max-width: 1199px) {
	header.wp-block-template-part .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
		color: #fff;
		padding: 0.5rem 0;
	}

	header.wp-block-template-part .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open {
		display: flex !important;
	}

	header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
	header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__label {
		color: var(--pcp-navy) !important;
	}
}

@media (max-width: 767px) {
	header.wp-block-template-part .wp-block-group.alignwide.is-layout-flex {
		padding: 10px 16px 0 !important;
	}

	header.wp-block-template-part .wp-block-group.alignwide.is-layout-flex::after {
		display: none;
	}

	header.wp-block-template-part .wp-block-site-logo,
	header.wp-block-template-part .wp-block-site-logo.is-default-size {
		flex-basis: 220px;
		width: 220px;
		max-width: 220px;
		padding-bottom: 8px;
	}

	header.wp-block-template-part .wp-block-site-logo a,
	header.wp-block-template-part .wp-block-site-logo img.custom-logo,
	header.wp-block-template-part .wp-block-site-logo.is-default-size img {
		width: 220px !important;
	}

	header.wp-block-template-part .wp-block-group.is-content-justification-right {
		margin-left: -16px;
		margin-right: -16px;
		width: calc(100% + 32px);
		padding: 0 16px;
		min-height: 40px;
	}

	body {
		background: #fff !important;
	}

	.wp-site-blocks {
		box-shadow: none;
		max-width: 100%;
	}
}

/* ------------------------------------------------------------------
   Vertical rhythm + typography
   ------------------------------------------------------------------ */

.wp-site-blocks > main,
.wp-site-blocks > .pcp-ads-slot--header + main,
.wp-site-blocks > .pcp-ads-slot--header + .wp-block-group {
	margin-top: 16px !important;
}

.pcp-ads-slot--header {
	width: 100%;
	margin: 0 auto;
	padding: 12px var(--pcp-gutter) 0;
	box-sizing: border-box;
	background: #fff;
}

.wp-site-blocks > main [style*="padding-top:var(--wp--preset--spacing--60)"] {
	padding-top: 0 !important;
}

.wp-site-blocks > main [style*="padding-bottom:var(--wp--preset--spacing--60)"] {
	padding-bottom: 16px !important;
}

.wp-site-blocks .wp-block-post-title,
.wp-site-blocks main > .wp-block-heading,
.wp-site-blocks h1,
.wp-site-blocks h2,
.wp-site-blocks h3 {
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--pcp-ink);
}

.wp-site-blocks main .wp-block-group:empty,
.wp-site-blocks main .wp-block-group:not(:has(*)) {
	display: none;
}

/* ------------------------------------------------------------------
   News + single: one shared left edge in the main column.
   "Latest News" (constrained 645px) and the lead image were centered
   in the column, while margin:0 !important on the title/date pulled
   them to the main's left padding. Flatten the column to 100% width
   and only set vertical margins on the title and date.
   ------------------------------------------------------------------ */

body.home .wp-site-blocks > main,
body.blog .wp-site-blocks > main,
body.single .wp-site-blocks > main,
body.page .wp-site-blocks > main {
	padding-left: var(--pcp-gutter) !important;
	padding-right: var(--pcp-gutter) !important;
}

body.home .wp-site-blocks > main .has-global-padding,
body.blog .wp-site-blocks > main .has-global-padding,
body.single .wp-site-blocks > main .has-global-padding,
body.page .wp-site-blocks > main .has-global-padding {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.home .wp-site-blocks > main .alignfull,
body.blog .wp-site-blocks > main .alignfull,
body.single .wp-site-blocks > main .alignfull,
body.page .wp-site-blocks > main .alignfull {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: 100%;
	width: 100%;
}

body.home .wp-site-blocks > main.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.blog .wp-site-blocks > main.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.single .wp-site-blocks > main.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.home .wp-block-post-template .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.blog .wp-block-post-template .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.single .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* ------------------------------------------------------------------
   News page (body.home / body.blog, URL /): lead + thumbnail cards.
   ------------------------------------------------------------------ */

body.home main > .wp-block-heading,
body.blog main > .wp-block-heading {
	margin-block-start: 0 !important;
	margin-block-end: 12px !important;
	font-size: 0.78rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pcp-red) !important;
	line-height: 1.2;
}

body.home .wp-block-query > .wp-block-group:has(.wp-block-query-no-results),
body.blog .wp-block-query > .wp-block-group:has(.wp-block-query-no-results) {
	padding-top: 0 !important;
	padding-bottom: 8px !important;
}

body.home .wp-block-query > .wp-block-group:empty,
body.blog .wp-block-query > .wp-block-group:empty,
body.home .wp-block-query > .wp-block-group:not(:has(*)),
body.blog .wp-block-query > .wp-block-group:not(:has(*)) {
	display: none;
}

.pcp-news-empty,
body.home .wp-block-query-no-results,
body.blog .wp-block-query-no-results {
	margin: 0;
	padding: 0;
}

.pcp-news-empty p,
body.home .wp-block-query-no-results p,
body.blog .wp-block-query-no-results p {
	margin: 0;
	max-width: 36em;
	font-size: 1.05em;
	line-height: 1.45;
	color: var(--pcp-muted);
}

body.home .wp-block-query > .wp-block-post-template,
body.blog .wp-block-query > .wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 24px;
	row-gap: 24px;
}

body.home .wp-block-query > .wp-block-post-template > .wp-block-post:first-child,
body.blog .wp-block-query > .wp-block-post-template > .wp-block-post:first-child {
	grid-column: 1 / -1;
}

body.home .wp-block-post-template .wp-block-post,
body.blog .wp-block-post-template .wp-block-post {
	margin: 0;
	padding: 0;
	border: 0;
}

body.home .wp-block-post-template .wp-block-post > .wp-block-group,
body.blog .wp-block-post-template .wp-block-post > .wp-block-group {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.home .wp-block-post-template .wp-block-post-content,
body.blog .wp-block-post-template .wp-block-post-content {
	display: none;
}

body.home .wp-block-post-template .wp-block-post-featured-image,
body.blog .wp-block-post-template .wp-block-post-featured-image {
	margin: 0 0 10px;
}

body.home .wp-block-post-template .wp-block-post-featured-image a,
body.blog .wp-block-post-template .wp-block-post-featured-image a {
	display: block;
	line-height: 0;
}

/* Inline theme style is aspect-ratio:3/2, which cropped the 1280x720 (16:9)
   A3 art on the left. Force 16:9 and center so a native 16:9 file is uncropped. */
body.home .wp-block-post-template .wp-block-post-featured-image img,
body.blog .wp-block-post-template .wp-block-post-featured-image img,
body.single .wp-block-post-featured-image img {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 9 !important;
	object-fit: cover !important;
	object-position: center center !important;
}

body.home .wp-block-query > .wp-block-post-template > .wp-block-post:first-child .wp-block-post-title,
body.blog .wp-block-query > .wp-block-post-template > .wp-block-post:first-child .wp-block-post-title {
	margin-top: 0 !important;
	margin-bottom: 6px !important;
	margin-left: 0;
	margin-right: 0;
	font-size: clamp(1.7rem, 2.4vw, 2.25rem);
	line-height: 1.15;
	font-weight: 800;
}

body.home .wp-block-query > .wp-block-post-template > .wp-block-post:not(:first-child) .wp-block-post-title,
body.blog .wp-block-query > .wp-block-post-template > .wp-block-post:not(:first-child) .wp-block-post-title {
	margin-top: 0 !important;
	margin-bottom: 4px !important;
	margin-left: 0;
	margin-right: 0;
	font-size: 1.15rem;
	line-height: 1.25;
	font-weight: 700;
}

body.home .wp-block-post-template .wp-block-post-title a,
body.blog .wp-block-post-template .wp-block-post-title a {
	text-decoration: none;
	color: inherit;
}

body.home .wp-block-post-template .wp-block-post-title a:hover,
body.blog .wp-block-post-template .wp-block-post-title a:hover {
	color: var(--pcp-red);
	text-decoration: none;
}

body.home .wp-block-post-template .wp-block-post-date,
body.blog .wp-block-post-template .wp-block-post-date {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	margin-left: 0;
	margin-right: 0;
	font-size: 0.8rem;
	line-height: 1.3;
	color: var(--pcp-muted);
}

body.home .wp-block-query > .wp-block-post-template > .wp-block-post:first-child .pcp-lead-excerpt,
body.blog .wp-block-query > .wp-block-post-template > .wp-block-post:first-child .pcp-lead-excerpt {
	margin: 8px 0 0;
	padding: 0;
	max-width: 42em;
	font-size: 1.08rem;
	line-height: 1.45;
	color: #333;
	font-weight: 400;
}

@media (max-width: 767px) {
	.pcp-ads-slot--header {
		padding: 10px 16px 0;
	}

	body.home .wp-site-blocks > main,
	body.blog .wp-site-blocks > main,
	body.single .wp-site-blocks > main,
	body.page .wp-site-blocks > main {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	body.home .wp-block-query > .wp-block-post-template,
	body.blog .wp-block-query > .wp-block-post-template {
		grid-template-columns: 1fr;
		column-gap: 0;
		row-gap: 16px;
	}

	body.home .wp-block-query > .wp-block-post-template > .wp-block-post:first-child .wp-block-post-title,
	body.blog .wp-block-query > .wp-block-post-template > .wp-block-post:first-child .wp-block-post-title {
		font-size: 1.45rem;
	}

	.wp-site-blocks > main,
	.wp-site-blocks > .pcp-ads-slot--header + main {
		margin-top: 12px !important;
	}
}

/* Single story: featured image tight under the headline, same column. */
body.single .wp-block-post-title {
	margin-block-start: 0 !important;
	margin-block-end: 12px !important;
	margin-left: 0;
	margin-right: 0;
	font-size: clamp(1.7rem, 2.4vw, 2.35rem);
	font-weight: 800;
}

body.single .wp-block-post-featured-image {
	margin: 0 0 12px;
}

body.single .wp-block-post-featured-image + .wp-block-group {
	margin-bottom: 16px !important;
	gap: 0.35rem;
	font-size: 0.9rem;
	color: var(--pcp-muted);
}

body.single .wp-block-post-content {
	font-size: 1.0625rem;
	line-height: 1.55;
}

body.single .wp-block-comments {
	margin-top: 28px !important;
	margin-bottom: 16px !important;
}

/* ------------------------------------------------------------------
   Ad units (shared)
   ------------------------------------------------------------------ */

.pcp-ads-slot {
	box-sizing: border-box;
	margin-inline: auto;
	max-width: 100%;
	text-align: center;
}

.pcp-ads-label {
	margin: 0 0 0.35rem;
	padding: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.6875rem;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b6b6b;
	font-weight: 500;
}

.pcp-ads-unit {
	margin-inline: auto;
	max-width: 100%;
}

.pcp-ads-item {
	display: none;
	margin-inline: auto;
	max-width: 100%;
}

.pcp-ads-item.is-default,
.pcp-ads-unit.is-ready .pcp-ads-item.is-active {
	display: block;
}

.pcp-ads-unit.is-ready .pcp-ads-item {
	display: none;
}

.pcp-ads-unit.is-ready .pcp-ads-item.is-active {
	display: block;
}

.pcp-ads-slot a {
	display: inline-block;
	max-width: 100%;
	line-height: 0;
	text-decoration: none;
}

.pcp-ads-slot img {
	display: block;
	margin-inline: auto;
	max-width: 100%;
	height: auto;
	border: 0;
	vertical-align: top;
}

.pcp-ads-slot__desktop,
.pcp-ads-slot__mobile {
	margin-inline: auto;
	max-width: 100%;
}

.pcp-ads-slot__mobile {
	display: none;
}

.pcp-ads-slot.is-empty,
.pcp-ads-slot__desktop.is-empty,
.pcp-ads-slot__mobile.is-empty,
.pcp-ads-unit.is-empty {
	display: none;
}

@media (max-width: 767px) {
	.pcp-ads-slot--header .pcp-ads-slot__desktop {
		display: none;
	}

	.pcp-ads-slot--header .pcp-ads-slot__mobile {
		display: block;
	}

	.pcp-ads-slot--header .pcp-ads-slot__mobile.is-empty {
		display: none;
	}
}

@media (min-width: 768px) {
	.pcp-ads-slot--header .pcp-ads-slot__desktop {
		display: block;
	}

	.pcp-ads-slot--header .pcp-ads-slot__mobile {
		display: none;
	}

	.pcp-ads-slot--header .pcp-ads-slot__desktop.is-empty {
		display: none;
	}
}

/* ------------------------------------------------------------------
   Sidebar: sticky 300x600 + Latest list from 1024px up.
   768–1023: 300x600 under the content. Under 768: 300x250 under content.
   ------------------------------------------------------------------ */

.pcp-ads-slot--sidebar {
	margin: 16px auto 8px;
	padding: 0 var(--pcp-gutter);
	box-sizing: border-box;
	text-align: left;
}

.pcp-latest {
	margin-top: 20px;
	text-align: left;
	border: 1px solid var(--pcp-line);
	background: #fff;
}

.pcp-latest__title {
	margin: 0 !important;
	padding: 8px 12px;
	background: var(--pcp-red);
	color: #fff !important;
	font-size: 0.8rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.2;
}

.pcp-latest__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pcp-latest__item {
	margin: 0;
	padding: 10px 12px;
	border-top: 1px solid var(--pcp-line);
}

.pcp-latest__item a {
	display: block;
	line-height: 1.3 !important;
	font-size: 0.95rem;
	font-weight: 650;
	color: var(--pcp-ink);
	text-decoration: none;
}

.pcp-latest__item a:hover {
	color: var(--pcp-red);
}

.pcp-latest__date {
	display: block;
	margin-top: 3px;
	font-size: 0.75rem;
	color: var(--pcp-muted);
	line-height: 1.3;
}

@media (min-width: 768px) and (max-width: 1023px) {
	.pcp-ads-slot--sidebar .pcp-ads-slot__desktop {
		display: block;
	}

	.pcp-ads-slot--sidebar .pcp-ads-slot__mobile {
		display: none;
	}

	.pcp-ads-slot--sidebar .pcp-ads-slot__desktop.is-empty {
		display: none;
	}
}

@media (max-width: 767px) {
	.pcp-ads-slot--sidebar {
		padding: 0 16px;
		margin: 16px auto 12px;
	}

	.pcp-ads-slot--sidebar .pcp-ads-slot__desktop {
		display: none;
	}

	.pcp-ads-slot--sidebar .pcp-ads-slot__mobile {
		display: block;
	}

	.pcp-ads-slot--sidebar .pcp-ads-slot__mobile.is-empty {
		display: none;
	}
}

@media (min-width: 1024px) {
	.wp-site-blocks:has(> .pcp-ads-slot--sidebar) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) var(--pcp-sidebar);
		column-gap: var(--pcp-gutter);
		box-sizing: border-box;
	}

	.wp-site-blocks:has(> .pcp-ads-slot--sidebar) > header.wp-block-template-part,
	.wp-site-blocks:has(> .pcp-ads-slot--sidebar) > .pcp-ads-slot--header,
	.wp-site-blocks:has(> .pcp-ads-slot--sidebar) > footer.wp-block-template-part {
		grid-column: 1 / -1;
	}

	.wp-site-blocks:has(> .pcp-ads-slot--sidebar) > main {
		grid-column: 1;
		min-width: 0;
		padding-right: 0 !important;
	}

	.wp-site-blocks:has(> .pcp-ads-slot--sidebar) > .pcp-ads-slot--sidebar {
		grid-column: 2;
		align-self: start;
		position: sticky;
		top: 16px;
		width: var(--pcp-sidebar);
		justify-self: start;
		margin: 16px 0 24px;
		padding: 0 var(--pcp-gutter) 0 0;
		box-sizing: content-box;
	}

	.admin-bar .wp-site-blocks:has(> .pcp-ads-slot--sidebar) > .pcp-ads-slot--sidebar {
		top: 48px;
	}

	.pcp-ads-slot--sidebar .pcp-ads-slot__desktop {
		display: block;
	}

	.pcp-ads-slot--sidebar .pcp-ads-slot__mobile {
		display: none;
	}

	.pcp-ads-slot--sidebar .pcp-ads-slot__desktop.is-empty {
		display: none;
	}
}

/* ------------------------------------------------------------------
   Solid footer
   ------------------------------------------------------------------ */

footer.wp-block-template-part {
	background: var(--pcp-navy);
	color: #f3f5f8;
	margin-top: 8px;
}

footer.wp-block-template-part > .wp-block-group,
footer.wp-block-template-part > .wp-block-group.has-global-padding {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 18px var(--pcp-gutter) 16px !important;
	box-sizing: border-box;
}

footer.wp-block-template-part > .wp-block-group > .wp-block-group.alignwide,
footer.wp-block-template-part > .wp-block-group > .is-layout-flex {
	flex: 1 1 auto;
	display: flex !important;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 20px;
	min-width: 0;
	margin: 0 !important;
	width: auto;
	max-width: none !important;
}

footer.wp-block-template-part .wp-block-image {
	margin: 0 !important;
	flex: 0 0 auto;
}

footer.wp-block-template-part .wp-block-image img {
	width: 56px !important;
	height: 56px !important;
	object-fit: cover;
	border-radius: 50%;
}

footer.wp-block-template-part .wp-block-navigation {
	flex: 1 1 auto;
	min-width: 0;
}

footer.wp-block-template-part .wp-block-navigation__container,
footer.wp-block-template-part .wp-block-navigation {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0;
}

footer.wp-block-template-part .wp-block-navigation-item__content {
	padding: 0.25rem 0.7rem 0.25rem 0 !important;
}

/* Contact / Anonymous Tip sit on the same link row as the nav. */
footer.wp-block-template-part > .wp-block-group > p.has-small-font-size:has(a) {
	flex: 0 1 auto;
	margin: 0 !important;
	padding: 0;
	white-space: nowrap;
}

/* Copyright on its own row, left-aligned to the same gutter. */
footer.wp-block-template-part > .wp-block-group > p.has-small-font-size:not(:has(a)) {
	flex: 1 1 100%;
	width: 100%;
	max-width: 100% !important;
	margin: 0 !important;
	padding-top: 10px;
	border-top: 1px solid rgba(243, 245, 248, 0.18);
	text-align: left;
}

footer.wp-block-template-part,
footer.wp-block-template-part p,
footer.wp-block-template-part li,
footer.wp-block-template-part span,
footer.wp-block-template-part .wp-block-navigation,
footer.wp-block-template-part .wp-block-navigation-item__content,
footer.wp-block-template-part .wp-block-navigation-item__label,
footer.wp-block-template-part a {
	color: #f3f5f8 !important;
	text-decoration: none;
	font-size: 0.9rem;
	line-height: 1.3;
}

footer.wp-block-template-part a:hover {
	color: #ffd7dc !important;
}

@media (max-width: 767px) {
	footer.wp-block-template-part > .wp-block-group,
	footer.wp-block-template-part > .wp-block-group.has-global-padding {
		padding: 16px 16px 14px !important;
	}

	footer.wp-block-template-part > .wp-block-group > .wp-block-group.alignwide,
	footer.wp-block-template-part > .wp-block-group > .is-layout-flex {
		flex: 1 1 100%;
		flex-wrap: wrap;
		gap: 12px;
	}

	footer.wp-block-template-part > .wp-block-group > p.has-small-font-size:has(a) {
		white-space: normal;
	}
}
