/*
 * WordPress and Bootstrap compatibility layer.
 *
 * Selectors in this file intentionally retain platform-owned names. It supplies
 * theme typography and palette defaults, normalizes Bootstrap controls, and
 * supports standard WordPress media, widget, alignment, and accessibility
 * output.
 */

/*
 * Root metrics provide a predictable rem baseline in both editor and frontend
 * markup.
 */
html,
.wp-site-blocks {
	font-size: 16px;
	line-height: 1.9;
}

html {
	overflow-y: scroll;
}

/*
 * Document typography uses locally bundled Poppins weights registered in
 * base.css.
 */
body {
	color: var(--wp--custom--color--text);
	font-family: Poppins, sans-serif;
	font-size: 1.125rem;
	font-kerning: normal;
	font-variant-ligatures: common-ligatures;
	font-weight: 300;
	line-height: 1.9;
	text-rendering: optimizelegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/*
 * Font Awesome 7 uses this custom property to size non-fixed-width glyphs
 * naturally.
 */
body :is(.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands, .fa-classic):not(.fa-fw):not(.fa-width-fixed) {
	--fa-width: auto;
}

/* Bootstrap semantic color utilities consume the active theme palette. */
.text-primary,
.text-secondary {
	color: var(--wp--preset--color--scouting-blauw) !important;
}

.bg-primary {
	background-color: var(--wp--preset--color--scouting-blauw) !important;
}

.text-success {
	color: var(--scouting-nederland-main-color, var(--wp--preset--color--scouting-groen)) !important;
}

.bg-success {
	background-color: var(--scouting-nederland-main-color, var(--wp--preset--color--scouting-groen)) !important;
}

.text-danger {
	color: var(--wp--custom--color--danger) !important;
}

.bg-danger {
	background-color: var(--wp--custom--color--danger) !important;
}

a.text-success:focus,
a.text-success:hover {
	color: var(--wp--preset--color--scouting-blauw) !important;
}

/*
 * Global heading scale; component owners can refine geometry inside their
 * namespace.
 */
h1,
.h1 {
	margin: 0.67em 0;
	color: var(--scouting-nederland-main-color, var(--wp--preset--color--scouting-groen));
	font-family: "Roboto Slab", serif;
	font-size: 2.8125rem;
	line-height: 1;
}

h2,
.h2 {
	margin: 0.67em 0;
	font-family: "Roboto Slab", serif;
	font-size: 2rem;
	line-height: 1;
}

h3,
.h3 {
	margin: 0.67em 0;
	font-family: "Roboto Slab", serif;
	font-size: 1.5rem;
	line-height: 1;
}

/*
 * Links inherit the selected support color and preserve visible underline
 * affordance.
 */
a {
	color: var(--scouting-nederland-support-color, var(--wp--preset--color--scouting-blauw));
	text-decoration: underline;
	text-decoration-skip-ink: auto;
}

a:hover {
	color: var(--wp--custom--color--link-hover);
}

/*
 * Intrinsic media sizing prevents images from overflowing responsive
 * containers.
 */
img {
	max-width: 100%;
	height: auto;
}

ul li {
	list-style-position: inside;
}

/* Bootstrap navigation normalization used by the custom header component. */
.navbar-expand-lg {
	justify-content: flex-end;
}

.navbar-brand {
	position: relative;
	padding: 0;
	color: var(--wp--custom--color--navbar-text);
}

.btn-close,
.form-control,
.form-select,
.navbar-toggler,
.page-link {
	border-radius: 0.25rem;
}

.form-control,
.form-select {
	border-color: var(--wp--custom--color--bootstrap-border);
}

.offcanvas-header .btn-close {
	margin: -0.5rem -0.5rem -0.5rem 0;
}

.offcanvas-header {
	justify-content: space-between;
}

.pagination {
	--bs-pagination-border-radius: 0.25rem;
}

.page-link {
	font-size: inherit;
	line-height: inherit;
}

.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .show > .nav-link {
	outline: 0;
}

@media only screen and (min-width: 992px) {

	.dropdown-item {
		margin-bottom: 10px;
	}
}

/*
 * Shared Bootstrap button geometry; semantic color modifiers live in
 * buttons.css.
 */
.btn {
	padding: 12px 30px;
	border-radius: 50px;
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
	cursor: pointer;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn::after {
	position: relative;
	display: inline-block;
	width: 0.8em;
	height: 0.8em;
	margin-left: 20px;
	border-width: 2px 2px 0 0;
	border-style: solid;
	content: "";
	transform: rotate(45deg);
	transition: margin 0.3s ease;
	vertical-align: top;
}

.btn-primary,
.btn-primary:hover {
	border-color: var(--wp--preset--color--scouting-blauw);
	background-color: var(--wp--preset--color--scouting-blauw);
}

.btn-secondary,
.btn-secondary:hover {
	border-color: var(--wp--preset--color--zwart);
	background-color: var(--wp--preset--color--zwart);
}

.btn-primary:hover::after,
.btn:hover::after {
	margin-right: -10px;
	margin-left: 30px;
}

/* Legacy Bootstrap badge compatibility retained for authored content. */
.badge-info {
	padding: 0.5rem;
	color: #444;
	background-color: var(--wp--custom--color--surface-muted);
}

/* Standard WordPress widget rhythm. */
.widget {
	margin-bottom: 1.5rem;
}

.widget ul {
	padding-left: 1.2rem;
}

/* WordPress caption and alignment classes are public platform contracts. */
.wp-caption,
.gallery-caption {
	max-width: 100%;
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.alignleft {
	float: left;
	margin-right: 1rem;
}

.alignright {
	float: right;
	margin-left: 1rem;
}

/* Visually hidden content remains available to assistive technology. */
.screen-reader-text {
	position: absolute;
	left: -9999px;
}

/*
 * Featured and entry-content media remain fluid inside user-authored content.
 */
.post-thumbnail img,
.entry-content img {
	max-width: 100%;
	height: auto;
}

/*
 * Recommended WordPress post and caption classes remain available to authored
 * content.
 */
.sticky {
	position: relative;
}

.bypostauthor {
	position: relative;
}

.comment.bypostauthor {
	border-left: 4px solid var(--scouting-nederland-main-color, var(--wp--preset--color--scouting-groen));
}

.wp-caption-text {
	display: block;
	margin-top: 0.5rem;
	color: #5f6b66;
	font-size: 0.9rem;
	line-height: 1.5;
}

/*
 * Native classic-theme comments use core markup and theme-owned visual rhythm.
 */
.scouting-nederland-comments {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 2px solid rgb(from var(--wp--preset--color--scouting-groen) r g b / 0.18);
}

.scouting-nederland-comments-title,
.scouting-nederland-comment-reply-title {
	margin: 0 0 1.25rem;
	color: var(--scouting-nederland-main-color, var(--wp--preset--color--scouting-groen));
	font-family: "Roboto Slab", Georgia, serif;
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1.2;
}

.scouting-nederland-comment-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.scouting-nederland-comment-list .comment-body {
	margin: 0 0 1.25rem;
	padding: 1.25rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
}

.scouting-nederland-comment-list .comment-meta {
	margin-bottom: 0.75rem;
	font-size: 0.9rem;
}

.scouting-nederland-comment-list .comment-author {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-weight: 700;
}

.scouting-nederland-comment-list .comment-author .avatar {
	border-radius: 50%;
}

.scouting-nederland-comment-list .comment-metadata {
	margin-top: 0.35rem;
	color: #5f6b66;
	font-size: 0.8rem;
}

.scouting-nederland-comment-list .children {
	margin: 0 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.scouting-nederland-comments .comment-respond {
	margin-top: 2rem;
}

.scouting-nederland-comments :is(input[type="email"], input[type="text"], input[type="url"], textarea) {
	width: 100%;
	margin-top: 0.4rem;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--wp--custom--color--bootstrap-border);
	border-radius: 3px;
	background: #fff;
	font: inherit;
}

.scouting-nederland-comments textarea {
	min-height: 10rem;
	resize: vertical;
}

.scouting-nederland-comments .submit {
	min-height: 42px;
	padding: 0.55rem 1.1rem;
	border: 0;
	border-radius: 999px;
	background: var(--scouting-nederland-main-color, var(--wp--preset--color--scouting-groen));
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
}

.scouting-nederland-comments .submit:hover,
.scouting-nederland-comments .submit:focus-visible {
	background: var(--scouting-nederland-support-color, var(--wp--preset--color--scouting-blauw));
}
