/*
Theme Name: Hello Brigade
Author: Brigade Themes
Author URI: https://profiles.wordpress.org/brigadethemes/
Description: Hello Brigade is a lightweight, accessible classic theme built on the Dinox design system. A complete Theme Options panel in the Customizer controls the layout (full width or boxed, content and wide widths), the header (layout, logo size, sticky or transparent, colors, mobile menu), the footer (columns, colors, copyright, social links), typography, ten brand colors, the blog, single posts, pages, archives, accessibility and performance, and every color and font choice also applies in the block editor. It uses the standard template hierarchy, menus and widgets, and includes 23 block patterns. Urbanist is bundled with the theme, so no external requests are made.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hello-brigade
Tags: blog, portfolio, one-column, two-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, block-patterns, block-styles, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, theme-options, accessibility-ready

Hello Brigade WordPress Theme, (C) 2026 Brigade Themes.
Hello Brigade is distributed under the terms of the GNU GPL.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1. Design tokens
2. Base
3. Accessibility
4. Layout
5. Header and navigation
6. Page headers
7. Post lists
8. Single posts and pages
9. Block content and alignment
10. Comments
11. Forms and buttons
12. Widgets and sidebar
13. Footer
14. Pagination
15. Block styles
16. Media and WordPress classes
17. Reduced motion
18. Theme options
--------------------------------------------------------------*/

/* 1. Design tokens
----------------------------------------------------------------
Colors, font sizes and spacing come from theme.json (--wp--preset--*), which is
the single source of the Dinox tokens. These add the layout values. */
:root {
	--hello-brigade-gutter: var(--wp--style--root--padding-left, 1.5rem);
	--hello-brigade-header-height: 72px;
	--hello-brigade-logo-width: 160px;
	--hello-brigade-footer-columns: 3;
	--hello-brigade-columns: 3;
	--hello-brigade-content: var(--wp--style--global--content-size, 720px);
	--hello-brigade-wide: var(--wp--style--global--wide-size, 1200px);
	--hello-brigade-radius: 6px;
	--hello-brigade-field-border: #8a8e91;
	--hello-brigade-header-break: 900px;
}

/* 2. Base
-------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	overflow-wrap: break-word;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img,
video,
iframe,
embed,
object {
	max-width: 100%;
}

img,
video {
	height: auto;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover,
a:focus {
	text-decoration-thickness: 2px;
}

p,
ul,
ol,
dl,
blockquote,
pre,
table,
figure {
	margin-block: 0 var(--wp--preset--spacing--30);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30);
}

pre {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--hello-brigade-radius);
	font-family: var(--wp--preset--font-family--monospace);
	font-size: var(--wp--preset--font-size--small);
	max-width: 100%;
	overflow-wrap: anywhere;
	padding: var(--wp--preset--spacing--30);
	white-space: pre-wrap;
}

code,
kbd,
tt,
var {
	font-family: var(--wp--preset--font-family--monospace);
	font-size: 0.9em;
}

hr {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--border);
	margin-block: var(--wp--preset--spacing--50);
}

table {
	border-collapse: collapse;
	width: 100%;
}

th,
td {
	border: 1px solid var(--wp--preset--color--border);
	padding: 0.5rem 0.75rem;
	text-align: start;
}

th {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

blockquote {
	border-inline-start: 3px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--large);
	margin-inline: 0;
	padding-inline-start: var(--wp--preset--spacing--40);
}

blockquote cite {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	font-weight: 600;
}

::selection {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--contrast);
}

/* 3. Accessibility
-------------------------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.screen-reader-text:focus-within {
	background-color: var(--wp--preset--color--base);
	border-radius: var(--hello-brigade-radius);
	box-shadow: var(--wp--preset--shadow--md);
	clip-path: none;
	color: var(--wp--preset--color--contrast);
	display: block;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	height: auto;
	inset-block-start: 0.5rem;
	inset-inline-start: 0.5rem;
	line-height: normal;
	padding: 1rem 1.5rem;
	text-decoration: none;
	width: auto;
	z-index: 100000;
}

#primary[tabindex="-1"]:focus {
	outline: 0;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}

/* 4. Layout
-------------------------------------------------------------- */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site > .site-content,
.site > .site-main {
	flex: 1 0 auto;
}

.container {
	margin-inline: auto;
	max-width: calc(var(--hello-brigade-wide) + 2 * var(--hello-brigade-gutter));
	padding-inline: var(--hello-brigade-gutter);
	width: 100%;
}

.container--content {
	max-width: calc(var(--hello-brigade-content) + 2 * var(--hello-brigade-gutter));
}

.site-content {
	display: grid;
	gap: var(--wp--preset--spacing--60);
	grid-template-columns: minmax(0, 1fr);
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}

.site-main--full {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}

.site-main--canvas {
	padding-block: 0;
}

/* Single posts and archives without a sidebar read best at content width. */
.no-sidebar.single .site-main {
	margin-inline: auto;
	max-width: var(--hello-brigade-content);
	width: 100%;
}

@media (min-width: 1024px) {

	.has-sidebar .site-content {
		grid-template-columns: minmax(0, 1fr) 18rem;
	}

	.has-sidebar.sidebar-left .site-content {
		grid-template-columns: 18rem minmax(0, 1fr);
	}

	.has-sidebar.sidebar-left .widget-area {
		grid-row: 1;
	}
}

/* 5. Header and navigation
-------------------------------------------------------------- */
.site-header {
	background-color: var(--hello-brigade-header-bg, var(--wp--preset--color--base));
	color: var(--hello-brigade-header-text, var(--wp--preset--color--body));
	border-bottom: 1px solid var(--wp--preset--color--border);
	position: relative;
	z-index: 10;
}

.site-header__inner {
	align-items: center;
	display: flex;
	gap: var(--wp--preset--spacing--40);
	justify-content: space-between;
	min-height: var(--hello-brigade-header-height);
	padding-block: var(--wp--preset--spacing--20);
}

.site-branding {
	align-items: center;
	display: flex;
	gap: var(--wp--preset--spacing--30);
	min-width: 0;
}

.custom-logo-link {
	display: block;
	line-height: 0;
}

.custom-logo {
	height: auto;
	max-height: calc(var(--hello-brigade-header-height) - 1rem);
	max-width: var(--hello-brigade-logo-width);
	width: auto;
}

.site-title {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0;
}

.site-title a {
	color: var(--hello-brigade-header-text, var(--wp--preset--color--contrast));
	text-decoration: none;
}

.site-title a:hover,
.site-title a:focus {
	text-decoration: underline;
}

.site-description {
	color: var(--hello-brigade-header-text, var(--wp--preset--color--body));
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
}

.primary-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-navigation a {
	color: var(--hello-brigade-header-link, var(--wp--preset--color--contrast));
	display: block;
	font-weight: 500;
	padding-block: 0.625rem;
	text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation a:focus {
	text-decoration: underline;
}

.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a,
.primary-navigation a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--primary);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.4em;
}

.menu-toggle,
.submenu-toggle {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: var(--hello-brigade-radius);
	color: var(--hello-brigade-header-link, var(--wp--preset--color--contrast));
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	justify-content: center;
	padding: 0;
}

.menu-toggle {
	font-weight: 500;
	gap: 0.5rem;
	min-height: 44px;
	min-width: 44px;
	padding-inline: 0.5rem;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-menu {
	display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

.submenu-toggle {
	height: 44px;
	width: 44px;
}

.submenu-toggle .icon {
	transition: transform 0.2s ease;
}

.submenu-toggle[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

.primary-navigation li {
	position: relative;
}

/* Small screens: the menu collapses behind the button once JavaScript runs. */
@media (max-width: 899px) {

	.site-header__inner {
		flex-wrap: wrap;
	}

	.no-js .menu-toggle {
		display: none;
	}

	.no-js .primary-navigation,
	.primary-navigation.is-open {
		flex-basis: 100%;
	}

	.js .primary-menu-wrap {
		display: none;
	}

	.js .primary-navigation.is-open .primary-menu-wrap {
		display: block;
	}

	.js .primary-navigation.is-open {
		order: 3;
	}

	.site-header__inner > .primary-navigation {
		margin-inline-start: auto;
	}

	.primary-navigation.is-open,
	.no-js .primary-navigation {
		margin-inline-start: 0;
	}

	.primary-menu-wrap {
		border-top: 1px solid var(--wp--preset--color--border);
		margin-top: var(--wp--preset--spacing--30);
		padding-top: var(--wp--preset--spacing--20);
	}

	.primary-navigation li {
		align-items: center;
		display: flex;
		flex-wrap: wrap;
	}

	.primary-navigation li > a {
		flex: 1;
		font-size: var(--wp--preset--font-size--large);
	}

	.primary-navigation .sub-menu,
	.primary-navigation .children {
		display: none;
		flex-basis: 100%;
		padding-inline-start: var(--wp--preset--spacing--40);
	}

	.primary-navigation .is-open > .sub-menu,
	.no-js .primary-navigation .sub-menu {
		display: block;
	}
}

/* Large screens: a horizontal menu with dropdowns. */
@media (min-width: 900px) {

	.menu-toggle {
		display: none;
	}

	.primary-navigation .menu,
	.primary-navigation .menu-fallback > ul {
		align-items: center;
		display: flex;
		flex-wrap: wrap;
		gap: 0 var(--wp--preset--spacing--40);
		justify-content: flex-end;
	}

	.primary-navigation .menu > li {
		align-items: center;
		display: flex;
	}

	.primary-navigation .menu > .menu-item-has-children > a {
		padding-inline-end: 0;
	}

	.primary-navigation .submenu-toggle {
		height: 32px;
		width: 28px;
	}

	.primary-navigation .sub-menu {
		background: var(--wp--preset--color--base);
		border: 1px solid var(--wp--preset--color--border);
		border-radius: var(--hello-brigade-radius);
		box-shadow: var(--wp--preset--shadow--md);
		inset-block-start: 100%;
		inset-inline-start: -0.75rem;
		display: none;
		min-width: 14rem;
		padding: 0.5rem;
		position: absolute;
		z-index: 20;
	}

	/* The menu sits at the right, so the last dropdowns and nested ones open towards the left. */
	.primary-navigation .menu > li:nth-last-child(-n+2) > .sub-menu {
		inset-inline-end: -0.75rem;
		inset-inline-start: auto;
	}

	.primary-navigation .sub-menu li {
		align-items: center;
		display: flex;
	}

	.primary-navigation .sub-menu a {
		flex: 1;
		padding: 0.5rem 0.75rem;
	}

	.primary-navigation .sub-menu .sub-menu {
		inset-block-start: -0.5rem;
		inset-inline-end: 100%;
		inset-inline-start: auto;
	}

	.primary-navigation li:hover > .sub-menu,
	.primary-navigation li:focus-within > .sub-menu,
	.primary-navigation li.is-open > .sub-menu {
		display: block;
	}

	.header-layout-centered .site-header__inner {
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
		padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--20);
	}

	.header-layout-centered .site-branding {
		flex-direction: column;
		text-align: center;
	}

	.header-layout-centered .primary-navigation .menu,
	.header-layout-centered .primary-navigation .menu-fallback > ul {
		justify-content: center;
	}
}

/* 6. Page headers
-------------------------------------------------------------- */
.page-header {
	margin-bottom: var(--wp--preset--spacing--50);
	max-width: var(--hello-brigade-content);
}

.page-title,
.entry-title {
	margin-block: 0;
}

.page-title {
	font-size: var(--wp--preset--font-size--xxx-large);
}

.eyebrow,
.archive-prefix,
.entry-categories,
.sticky-label,
.author-bio__label {
	color: var(--wp--preset--color--primary-strong);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.08em;
	margin: 0 0 var(--wp--preset--spacing--20);
	text-transform: uppercase;
}

.archive-prefix {
	display: block;
}

.entry-categories a {
	color: inherit;
	text-decoration: none;
}

.entry-categories a:hover,
.entry-categories a:focus {
	text-decoration: underline;
}

.archive-description,
.search-count {
	font-size: var(--wp--preset--font-size--large);
	margin-top: var(--wp--preset--spacing--30);
}

.archive-description > :last-child {
	margin-bottom: 0;
}

.author-header {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--40);
	max-width: none;
}

.author-header__avatar {
	border-radius: 999px;
}

.author-header__text {
	flex: 1 1 18rem;
}

.lead {
	font-size: var(--wp--preset--font-size--large);
}

/* 7. Post lists
-------------------------------------------------------------- */
.post-list--grid {
	display: grid;
	gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
	grid-template-columns: minmax(0, 1fr);
}

.post-list--columns-2 { --hello-brigade-columns: 2; }
.post-list--columns-3 { --hello-brigade-columns: 3; }
.post-list--columns-4 { --hello-brigade-columns: 4; }

@media (min-width: 640px) {

	.post-list--grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {

	.post-list--grid {
		grid-template-columns: repeat(var(--hello-brigade-columns), minmax(0, 1fr));
	}

	/* Next to the sidebar there is room for at most three columns. */
	.has-sidebar .post-list--columns-4 {
		--hello-brigade-columns: 3;
	}
}

@media (min-width: 1024px) and (max-width: 1279px) {

	.has-sidebar .post-list--grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.entry-card {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
}

.entry-card__body > * + * {
	margin-top: var(--wp--preset--spacing--20);
}

.entry-card .entry-categories {
	margin: 0;
}

.entry-card .entry-title {
	font-size: var(--wp--preset--font-size--x-large);
}

.entry-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus {
	color: var(--wp--preset--color--primary-strong);
	text-decoration: underline;
}

.entry-summary p {
	margin: 0;
}

.post-thumbnail {
	border-radius: var(--hello-brigade-radius);
	display: block;
	margin: 0;
	overflow: hidden;
}

.post-thumbnail img {
	display: block;
	width: 100%;
}

a.post-thumbnail img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.4s ease;
}

a.post-thumbnail:hover img {
	transform: scale(1.03);
}

.post-list--list .entry-card {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-bottom: var(--wp--preset--spacing--50);
}

.post-list--list {
	display: grid;
	gap: var(--wp--preset--spacing--50);
}

@media (min-width: 640px) {

	.post-list--list .entry-card.has-post-thumbnail {
		align-items: center;
		display: grid;
		gap: var(--wp--preset--spacing--50);
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	}

	.post-list--list a.post-thumbnail img {
		aspect-ratio: 4 / 3;
	}
}

.entry-meta {
	color: var(--wp--preset--color--body);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wp--preset--font-size--small);
	gap: 0.25rem 0.75rem;
}

.entry-meta > span + span::before {
	content: "\00b7";
	margin-inline-end: 0.75rem;
}

.entry-meta a {
	color: inherit;
	display: inline-block;
	min-height: 24px;
	padding-block: 0.125rem;
	text-decoration: none;
}

.entry-meta a:hover,
.entry-meta a:focus {
	color: var(--wp--preset--color--contrast);
	text-decoration: underline;
}

.entry-meta .author a {
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
}

.updated:not(.published) {
	display: none;
}

.sticky-label {
	display: inline-block;
}

.sticky .entry-title::after {
	color: var(--wp--preset--color--primary-strong);
	content: "\2605";
	font-size: 0.6em;
	margin-inline-start: 0.4em;
	vertical-align: middle;
}

/* 8. Single posts and pages
-------------------------------------------------------------- */
.single .entry-header {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--50);
}

.single .entry-header .entry-categories {
	margin: 0;
}

.single .post-thumbnail {
	margin-bottom: var(--wp--preset--spacing--50);
}

.page .entry-header {
	margin-bottom: var(--wp--preset--spacing--50);
}

.page .container--wide .post-thumbnail {
	margin-bottom: var(--wp--preset--spacing--50);
}

.entry-footer {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--50);
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tag-list a,
.tagcloud a,
.wp-block-tag-cloud a {
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	display: inline-block;
	font-size: var(--wp--preset--font-size--small) !important;
	line-height: 1.4;
	padding: 0.3em 0.85em;
	text-decoration: none;
}

.tag-list a:hover,
.tag-list a:focus,
.tagcloud a:hover,
.tagcloud a:focus,
.wp-block-tag-cloud a:hover,
.wp-block-tag-cloud a:focus {
	background-color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.edit-link {
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
}

.author-bio {
	align-items: flex-start;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--hello-brigade-radius);
	box-shadow: var(--wp--preset--shadow--sm);
	display: flex;
	gap: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--50);
}

.author-bio__avatar {
	border-radius: 999px;
	flex-shrink: 0;
}

.author-bio__label {
	margin-bottom: 0.25rem;
}

.author-bio__name {
	font-size: var(--wp--preset--font-size--large);
	margin: 0;
}

.author-bio__name a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.author-bio__name a:hover,
.author-bio__name a:focus {
	text-decoration: underline;
}

.author-bio__description {
	margin-top: var(--wp--preset--spacing--20);
}

.author-bio__description > :last-child {
	margin-bottom: 0;
}

.post-navigation {
	border-top: 1px solid var(--wp--preset--color--border);
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--40);
}

.post-navigation .nav-links {
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

@media (min-width: 640px) {

	.post-navigation .nav-links {
		grid-template-columns: 1fr 1fr;
	}

	.post-navigation .nav-next {
		grid-column: 2;
		text-align: end;
	}
}

.post-navigation a {
	display: block;
	text-decoration: none;
}

.post-navigation .nav-subtitle {
	color: var(--wp--preset--color--body);
	display: block;
	font-size: var(--wp--preset--font-size--small);
}

.post-navigation .nav-title {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.post-navigation a:hover .nav-title,
.post-navigation a:focus .nav-title {
	text-decoration: underline;
}

.page-links {
	clear: both;
	margin-top: var(--wp--preset--spacing--40);
}

.page-links a,
.page-links > span:not(:first-child) {
	display: inline-block;
	margin-inline-start: 0.5rem;
	min-width: 2rem;
	text-align: center;
}

.attachment-parent {
	color: var(--wp--preset--color--body);
	font-size: var(--wp--preset--font-size--small);
}

/* 9. Block content and alignment
----------------------------------------------------------------
Posts sit in a content-width column. Pages run full width: their blocks are
centred at content width, wide blocks reach the wide size and full-width
blocks reach the screen edges. */
.entry-content::after {
	clear: both;
	content: "";
	display: table;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content--page > * {
	margin-inline: auto;
	max-width: min(var(--hello-brigade-content), calc(100% - 2 * var(--hello-brigade-gutter)));
}

.entry-content--page > .alignwide {
	max-width: min(var(--hello-brigade-wide), calc(100% - 2 * var(--hello-brigade-gutter)));
}

.entry-content--page > .alignfull {
	max-width: none;
	width: 100%;
}

.entry-content--page > .alignleft,
.entry-content--page > .alignright {
	max-width: calc(50% - var(--hello-brigade-gutter));
}

.entry-content--page > .alignleft {
	margin-inline-start: max(var(--hello-brigade-gutter), calc((100% - var(--hello-brigade-content)) / 2));
}

.entry-content--page > .alignright {
	margin-inline-end: max(var(--hello-brigade-gutter), calc((100% - var(--hello-brigade-content)) / 2));
}

/* Inside the posts column, wide and full blocks simply fill the column. */
.single .entry-content .alignwide,
.single .entry-content .alignfull {
	margin-inline: 0;
	max-width: 100%;
	width: 100%;
}

/* Full-width sections from patterns keep their own vertical rhythm. */
.entry-content--page > .alignfull + .alignfull {
	margin-top: 0;
}

.site-main--canvas .entry-content--page > .alignfull:first-child {
	margin-top: 0;
}

.site-main--canvas .entry-content--page > .alignfull:last-child {
	margin-bottom: 0;
}

.alignleft {
	float: left;
	margin-inline-end: var(--wp--preset--spacing--40);
}

.alignright {
	float: right;
	margin-inline-start: var(--wp--preset--spacing--40);
}

.aligncenter {
	clear: both;
	display: block;
	margin-inline: auto;
}

/* 10. Comments
-------------------------------------------------------------- */
.comments-area {
	border-top: 1px solid var(--wp--preset--color--border);
	margin-top: var(--wp--preset--spacing--60);
	padding-top: var(--wp--preset--spacing--50);
}

.comments-title,
.comment-reply-title {
	font-size: var(--wp--preset--font-size--x-large);
	margin-top: 0;
}

.comment-list,
.comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	border-inline-start: 1px solid var(--wp--preset--color--border);
	margin-inline-start: var(--wp--preset--spacing--20);
	padding-inline-start: var(--wp--preset--spacing--40);
}

.comment-body {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-block: var(--wp--preset--spacing--40);
}

.comment-meta {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin-bottom: var(--wp--preset--spacing--20);
}

.comment-author {
	align-items: center;
	display: flex;
	gap: 0.75rem;
}

.comment-author .avatar {
	border-radius: 999px;
}

.comment-author .fn {
	color: var(--wp--preset--color--contrast);
	font-style: normal;
	font-weight: 600;
}

.comment-author .fn a {
	color: inherit;
}

.comment-author .says {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

.comment-metadata {
	font-size: var(--wp--preset--font-size--small);
}

.comment-metadata a {
	color: var(--wp--preset--color--body);
	display: inline-block;
	min-height: 24px;
	padding-block: 0.125rem;
}

.comment-metadata .edit-link {
	display: inline;
	margin-inline-start: 0.5rem;
}

.comment-content > :last-child {
	margin-bottom: 0;
}

.reply {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	margin-top: var(--wp--preset--spacing--20);
}

.reply a {
	display: inline-block;
	min-height: 24px;
	padding-block: 0.125rem;
}

.bypostauthor > .comment-body {
	border-inline-start: 3px solid var(--wp--preset--color--primary);
	padding-inline-start: var(--wp--preset--spacing--30);
}

.comment-awaiting-moderation {
	font-size: var(--wp--preset--font-size--small);
	font-style: italic;
}

.comment-respond {
	margin-top: var(--wp--preset--spacing--50);
}

.comment-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	margin-block: var(--wp--preset--spacing--30);
}

.no-comments {
	font-weight: 500;
}

/* 11. Forms and buttons
-------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--hello-brigade-field-border);
	border-radius: var(--hello-brigade-radius);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	max-width: 100%;
	padding: 0.75rem 1rem;
}

textarea {
	width: 100%;
}

label {
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
}

.button,
button[type="submit"],
input[type="submit"],
input[type="button"],
input[type="reset"] {
	background-color: var(--wp--preset--color--primary-strong);
	border: 0;
	border-radius: var(--hello-brigade-radius);
	color: var(--wp--preset--color--base);
	cursor: pointer;
	display: inline-block;
	font: inherit;
	font-weight: 500;
	line-height: 1.25;
	padding: 1rem 1.5rem;
	text-decoration: none;
}

.button:hover,
.button:focus,
button[type="submit"]:hover,
button[type="submit"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.search-form {
	margin-bottom: var(--wp--preset--spacing--40);
	max-width: 36rem;
}

.search-form__label {
	display: block;
	margin-bottom: 0.25rem;
}

.search-form__row {
	display: flex;
	gap: 0.5rem;
}

.search-form .search-field {
	flex: 1;
	min-width: 0;
}

.search-form .search-submit {
	padding-block: 0.75rem;
}

.comment-form label {
	display: block;
	margin-bottom: 0.25rem;
}

.comment-form input:not([type="submit"]):not([type="checkbox"]) {
	width: 100%;
}

.comment-form .comment-form-cookies-consent {
	align-items: flex-start;
	display: flex;
	gap: 0.5rem;
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
}

.required {
	color: var(--wp--preset--color--primary-strong);
}

/* 12. Widgets and sidebar
-------------------------------------------------------------- */
.widget-area {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	align-content: start;
}

.widget {
	min-width: 0;
}

.widget-title,
.widget h2 {
	font-size: var(--wp--preset--font-size--large);
	margin-top: 0;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-block: 0.5rem;
}

.widget li li {
	border: 0;
	padding-inline-start: var(--wp--preset--spacing--30);
}

/* Links in widget lists stand alone, so they need no underline; links in text keep theirs. */
.widget li a {
	text-decoration: none;
}

.widget li a:hover,
.widget li a:focus {
	text-decoration: underline;
}

.widget select {
	width: 100%;
}

.tagcloud,
.widget .wp-block-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.widget_calendar table {
	text-align: center;
}

/* 13. Footer
-------------------------------------------------------------- */
.site-footer {
	background-color: var(--hello-brigade-footer-bg, var(--wp--preset--color--surface));
	color: var(--hello-brigade-footer-text, var(--wp--preset--color--body));
	border-top: 1px solid var(--wp--preset--color--border);
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
}

.footer-widgets {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	grid-template-columns: minmax(0, 1fr);
	margin-bottom: var(--wp--preset--spacing--50);
}

.site-footer .widget li {
	border-color: var(--wp--preset--color--border);
}

.site-info {
	align-items: center;
	border-top: 1px solid var(--wp--preset--color--border);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wp--preset--font-size--small);
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	justify-content: space-between;
	padding-top: var(--wp--preset--spacing--40);
}

.footer-widgets:empty + .site-info,
.site-footer .container > .site-info:first-child {
	border-top: 0;
	padding-top: 0;
}

.site-info p {
	margin: 0;
}

.site-info__name a {
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
	text-decoration: none;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem var(--wp--preset--spacing--40);
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu a {
	color: var(--hello-brigade-footer-link, var(--wp--preset--color--contrast));
	display: inline-block;
	padding-block: 0.25rem;
	text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus {
	text-decoration: underline;
}

/* 14. Pagination
-------------------------------------------------------------- */
.pagination {
	margin-top: var(--wp--preset--spacing--60);
}

.pagination .nav-links {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pagination .page-numbers {
	border-radius: var(--hello-brigade-radius);
	display: inline-block;
	font-weight: 500;
	min-width: 2.75rem;
	padding: 0.625rem 0.75rem;
	text-align: center;
	text-decoration: none;
}

.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus {
	background-color: var(--wp--preset--color--surface);
	text-decoration: underline;
}

.pagination .page-numbers.current {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.pagination .next {
	margin-inline-start: auto;
}

/* 15. Block styles
----------------------------------------------------------------
Styles registered in inc/block-styles.php, shared with the block patterns. */
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	background-color: transparent;
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
	color: var(--wp--preset--color--contrast);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1px solid currentcolor;
	padding: calc(1rem - 1px) calc(1.5rem - 1px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.is-style-hello-brigade-checklist {
	list-style: none;
	padding-inline-start: 0;
}

.is-style-hello-brigade-checklist li {
	padding-inline-start: 1.75em;
	position: relative;
}

.is-style-hello-brigade-checklist li + li {
	margin-top: 0.5em;
}

.is-style-hello-brigade-checklist li::before {
	border-block-end: 2px solid var(--wp--preset--color--primary-strong);
	border-inline-end: 2px solid var(--wp--preset--color--primary-strong);
	content: "";
	height: 0.7em;
	inset-block-start: 0.3em;
	inset-inline-start: 0.35em;
	position: absolute;
	transform: rotate(45deg);
	width: 0.35em;
}

.is-style-hello-brigade-pill a {
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	display: inline-block;
	font-size: var(--wp--preset--font-size--small) !important;
	line-height: 1.4;
	margin-block: 0.15em;
	padding: 0.3em 0.85em;
	text-decoration: none;
}

.wp-block-group.is-style-hello-brigade-icon-badge {
	align-items: center;
	display: flex;
	flex-shrink: 0;
	height: 3.5rem;
	justify-content: center;
	padding: 0;
	width: 3.5rem;
}

.wp-block-group.is-style-hello-brigade-icon-badge .wp-block-image {
	margin: 0;
}

.wp-block-group.is-style-hello-brigade-icon-badge img {
	display: block;
	height: 1.5rem;
	width: 1.5rem;
}

.wp-block-details summary {
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	padding-block: 0.25rem;
}

.wp-block-details > :not(summary) {
	margin-top: var(--wp--preset--spacing--20);
}

.wp-block-quote.is-style-plain {
	border: 0;
	margin: 0;
	padding: 0;
}

.wp-block-quote.is-style-plain cite {
	color: var(--wp--preset--color--contrast);
	display: block;
	margin-top: var(--wp--preset--spacing--30);
}

.hello-brigade-price-period {
	color: var(--wp--preset--color--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	letter-spacing: 0;
}

.hello-brigade-plan-featured {
	border-color: var(--wp--preset--color--primary) !important;
	border-width: 2px !important;
	box-shadow: var(--wp--preset--shadow--md) !important;
}

.hello-brigade-post-row {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.is-style-hello-brigade-inverse .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
	color: var(--wp--preset--color--base);
}

.is-style-hello-brigade-inverse .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.is-style-hello-brigade-inverse .wp-block-button.is-style-outline > .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.is-style-hello-brigade-inverse .is-style-hello-brigade-checklist li::before {
	border-color: var(--wp--preset--color--secondary);
}

.is-style-hello-brigade-inverse *:focus-visible {
	outline-color: var(--wp--preset--color--base);
}

.wp-block-post-featured-image img {
	height: auto;
}

.wp-block-post-featured-image a {
	border-radius: inherit;
	display: block;
	overflow: hidden;
}

.wp-block-query-pagination .page-numbers {
	border-radius: var(--hello-brigade-radius);
	display: inline-block;
	min-width: 2.5rem;
	padding: 0.5rem 0.75rem;
	text-align: center;
	text-decoration: none;
}

.wp-block-query-pagination .page-numbers.current {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.wp-block-search__input {
	border-color: var(--hello-brigade-field-border);
	border-radius: var(--hello-brigade-radius);
	padding: 0.75rem 1rem;
}

.wp-block-search__button-inside .wp-block-search__inside-wrapper {
	border-color: var(--hello-brigade-field-border);
	border-radius: var(--hello-brigade-radius);
}

.wp-block-search__button-inside .wp-block-search__input {
	border: 0;
}

/* 16. Media and WordPress classes
-------------------------------------------------------------- */
.wp-caption {
	margin-bottom: var(--wp--preset--spacing--30);
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-inline: auto;
}

.wp-caption-text,
.gallery-caption,
figcaption {
	color: var(--wp--preset--color--body);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	margin-top: 0.5em;
}

.gallery {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	grid-template-columns: repeat(var(--hello-brigade-gallery-columns, 3), minmax(0, 1fr));
	margin-bottom: var(--wp--preset--spacing--40);
}

.gallery-columns-1 { --hello-brigade-gallery-columns: 1; }
.gallery-columns-2 { --hello-brigade-gallery-columns: 2; }
.gallery-columns-4 { --hello-brigade-gallery-columns: 4; }
.gallery-columns-5 { --hello-brigade-gallery-columns: 5; }
.gallery-columns-6 { --hello-brigade-gallery-columns: 6; }
.gallery-columns-7 { --hello-brigade-gallery-columns: 7; }
.gallery-columns-8 { --hello-brigade-gallery-columns: 8; }
.gallery-columns-9 { --hello-brigade-gallery-columns: 9; }

@media (max-width: 599px) {

	.gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.gallery-item {
	margin: 0;
}

.gallery-item img {
	display: block;
}

.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper::before {
	padding-top: 56.25%;
}

/* 17. Reduced motion
-------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition: none !important;
	}
}

/* 18. Theme options
----------------------------------------------------------------
Classes and custom properties set from Customizer > Theme Options
(see inc/template-functions.php and inc/dynamic-styles.php). */

#page:focus {
	outline: 0;
}

/* Header image (Customizer > Header Image) */
.site-header-image img {
	display: block;
	height: clamp(10rem, 25vw, 30rem);
	object-fit: cover;
	width: 100%;
}

/* General: boxed layout */
body.site-layout-boxed {
	background-color: var(--wp--preset--color--surface);
}

.site-layout-boxed .site {
	background-color: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--md);
	margin-inline: auto;
	max-width: calc(var(--hello-brigade-wide) + 2 * var(--hello-brigade-gutter) + 4rem);
}

/* General: breadcrumbs */
.breadcrumbs {
	font-size: var(--wp--preset--font-size--small);
	padding-top: var(--wp--preset--spacing--30);
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.breadcrumbs li + li::before {
	color: var(--wp--preset--color--body);
	content: "/";
	margin-inline-end: 0.5rem;
}

.breadcrumbs a {
	display: inline-block;
	min-height: 24px;
	padding-block: 0.125rem;
}

.breadcrumbs [aria-current="page"] {
	color: var(--wp--preset--color--contrast);
}

.breadcrumbs + .site-content,
.breadcrumbs + .site-main {
	padding-top: var(--wp--preset--spacing--40);
}

/* General: back to top */
.back-to-top {
	align-items: center;
	background-color: var(--wp--preset--color--contrast);
	border-radius: 999px;
	bottom: var(--wp--preset--spacing--40);
	box-shadow: var(--wp--preset--shadow--md);
	color: var(--wp--preset--color--base);
	display: flex;
	height: 44px;
	inset-inline-end: var(--wp--preset--spacing--40);
	justify-content: center;
	position: fixed;
	transition: opacity 0.2s ease, visibility 0.2s;
	width: 44px;
	z-index: 20;
}

.back-to-top:hover,
.back-to-top:focus {
	background-color: var(--wp--preset--color--primary-strong);
	color: var(--wp--preset--color--base);
}

.js .back-to-top:not(.is-visible) {
	opacity: 0;
	visibility: hidden;
}

/* Header: menu alignment */
@media (min-width: 900px) {

	.nav-alignment-left:not(.header-layout-centered) .site-header__inner {
		justify-content: flex-start;
	}

	.nav-alignment-left:not(.header-layout-centered) .primary-navigation {
		margin-inline-start: var(--wp--preset--spacing--40);
	}

	.nav-alignment-left:not(.header-layout-centered) .primary-navigation .menu,
	.nav-alignment-left:not(.header-layout-centered) .primary-navigation .menu-fallback > ul {
		justify-content: flex-start;
	}

	.nav-alignment-center:not(.header-layout-centered) .primary-navigation {
		flex: 1;
	}

	.nav-alignment-center:not(.header-layout-centered) .primary-navigation .menu,
	.nav-alignment-center:not(.header-layout-centered) .primary-navigation .menu-fallback > ul {
		justify-content: center;
	}

	.nav-alignment-left:not(.header-layout-centered) .primary-navigation .menu > li:nth-last-child(-n+2) > .sub-menu,
	.nav-alignment-center:not(.header-layout-centered) .primary-navigation .menu > li:nth-last-child(-n+2) > .sub-menu {
		inset-inline-end: auto;
		inset-inline-start: -0.75rem;
	}
}

/* Header: sticky and transparent */
.site {
	position: relative;
}

.has-sticky-header .site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	transition: box-shadow 0.2s ease;
}

.has-sticky-header .site-header.is-scrolled {
	box-shadow: var(--wp--preset--shadow--md);
}

.has-transparent-header .site-header {
	background-color: transparent;
	border-bottom-color: transparent;
	inset-inline: 0;
	position: absolute;
	top: var(--wp-admin--admin-bar--height, 0px);
}

.has-transparent-header.has-sticky-header .site-header {
	position: fixed;
}

.has-transparent-header .site-header.is-scrolled {
	background-color: var(--hello-brigade-header-bg, var(--wp--preset--color--base));
	border-bottom-color: var(--wp--preset--color--border);
}

/* The first section runs under the transparent header; its content starts below the header. */
.has-transparent-header .site-main--canvas .entry-content--page > :first-child {
	padding-top: calc(var(--hello-brigade-header-height) + var(--wp--preset--spacing--60)) !important;
}

.has-transparent-header .site-content,
.has-transparent-header .site-main--full:not(.site-main--canvas) {
	padding-top: calc(var(--hello-brigade-header-height) + var(--wp--preset--spacing--60));
}

/* Header: off-canvas mobile menu */
@media (max-width: 899px) {

	.js .mobile-menu-offcanvas .primary-menu-wrap {
		background-color: var(--hello-brigade-header-bg, var(--wp--preset--color--base));
		border-top: 0;
		box-shadow: var(--wp--preset--shadow--lg);
		display: block;
		inset-block: 0;
		inset-inline-end: 0;
		margin: 0;
		overflow-y: auto;
		padding: calc(var(--hello-brigade-header-height) + var(--wp--preset--spacing--20)) var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
		position: fixed;
		transform: translateX(100%);
		/* Hidden only after the slide-out finishes. */
		transition: transform 0.25s ease, visibility 0s linear 0.25s;
		visibility: hidden;
		width: min(22rem, 85vw);
		z-index: 30;
	}

	.js[dir="rtl"] .mobile-menu-offcanvas .primary-menu-wrap {
		transform: translateX(-100%);
	}

	/* Visible at once when opening, so focus can move into the panel right away. */
	.js .mobile-menu-offcanvas .primary-navigation.is-open .primary-menu-wrap {
		transform: none;
		transition: transform 0.25s ease, visibility 0s;
		visibility: visible;
	}

	.js .mobile-menu-offcanvas .primary-navigation.is-open {
		flex-basis: auto;
		margin-inline-start: auto;
		order: initial;
	}

	.js .mobile-menu-offcanvas .primary-navigation.is-open::before {
		background-color: rgba(11, 18, 24, 0.5);
		content: "";
		inset: 0;
		position: fixed;
		z-index: 29;
	}

	.js .mobile-menu-offcanvas .menu-toggle {
		position: relative;
		z-index: 31;
	}
}

/* Footer: layouts, columns and colors */
@media (min-width: 640px) {

	.footer-widgets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {

	.footer-widgets {
		grid-template-columns: repeat(var(--hello-brigade-footer-columns), minmax(0, 1fr));
	}
}

.footer-widgets:has(> :only-child) {
	grid-template-columns: minmax(0, 1fr);
}

.site-footer a {
	color: var(--hello-brigade-footer-link, var(--wp--preset--color--primary-strong));
}

.site-footer .widget-title,
.site-footer h2 {
	color: var(--hello-brigade-footer-text, var(--wp--preset--color--contrast));
}

.site-info__copyright {
	color: var(--hello-brigade-footer-text, var(--wp--preset--color--contrast));
}

.footer-layout-centered .footer-widgets,
.footer-layout-centered .site-info {
	justify-items: center;
	text-align: center;
}

.footer-layout-centered .site-info {
	flex-direction: column;
	justify-content: center;
}

.footer-layout-centered .footer-menu,
.footer-layout-centered .social-links {
	justify-content: center;
}

/* Footer: social links */
.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer .social-links a {
	align-items: center;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	color: var(--hello-brigade-footer-link, var(--wp--preset--color--contrast));
	display: inline-flex;
	height: 44px;
	justify-content: center;
	width: 44px;
}

.site-footer .social-links a:hover,
.site-footer .social-links a:focus {
	background-color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.social-links svg {
	fill: currentcolor;
	height: 20px;
	width: 20px;
}

/* Blog: older and newer posts links */
.posts-navigation {
	margin-top: var(--wp--preset--spacing--60);
}

.posts-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30);
	justify-content: space-between;
}

.posts-navigation .nav-next {
	margin-inline-start: auto;
}

.posts-navigation a {
	display: inline-block;
	font-weight: 500;
	padding-block: 0.5rem;
}

/* Single post: related posts */
.related-posts {
	border-top: 1px solid var(--wp--preset--color--border);
	margin-top: var(--wp--preset--spacing--60);
	padding-top: var(--wp--preset--spacing--50);
}

.related-posts__title {
	font-size: var(--wp--preset--font-size--x-large);
	margin-top: 0;
}

.related-posts .post-list--grid {
	grid-template-columns: repeat(auto-fill, minmax(min(12rem, 100%), 1fr));
}

.related-posts .entry-title {
	font-size: var(--wp--preset--font-size--large);
}

/* Pages: wide content and the sidebar layout */
.page-content-wide .entry-content--page > :not(.alignfull):not(.alignleft):not(.alignright) {
	max-width: min(var(--hello-brigade-wide), calc(100% - 2 * var(--hello-brigade-gutter)));
}

.has-sidebar.page .entry-header,
.has-sidebar.page .page-thumbnail {
	margin-bottom: var(--wp--preset--spacing--40);
}

/* Accessibility: higher contrast */
body.high-contrast {
	--wp--preset--color--body: #3b3e41;
	--wp--preset--color--border: #8a8e91;
}

.high-contrast .primary-navigation a,
.high-contrast .footer-menu a,
.high-contrast .entry-title a,
.high-contrast .widget li a,
.high-contrast .entry-meta a,
.high-contrast .entry-categories a {
	text-decoration: underline;
}

/* Accessibility: enhanced focus outline */
.focus-style-enhanced :focus-visible {
	box-shadow: 0 0 0 6px var(--wp--preset--color--base);
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 3px;
}

/* Accessibility: submenus open on click only (needs JavaScript) */
@media (min-width: 900px) {

	.js .submenu-trigger-click .primary-navigation li:hover > .sub-menu,
	.js .submenu-trigger-click .primary-navigation li:focus-within > .sub-menu {
		display: none;
	}

	.js .submenu-trigger-click .primary-navigation li.is-open > .sub-menu {
		display: block;
	}
}

/* Accessibility and performance: reduced motion, no animations */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after,
.no-animations *,
.no-animations *::before,
.no-animations *::after {
	animation-duration: 0.01ms !important;
	animation-iteration-count: 1 !important;
	scroll-behavior: auto !important;
	transition: none !important;
}

.no-animations a.post-thumbnail:hover img,
.reduce-motion a.post-thumbnail:hover img {
	transform: none;
}
