/**
 * WCAG 2.1 enhancements (baseline toward Level AA, May 2026)
 * Load after colors/orange.css so focus and contrast overrides apply.
 */

body {
	position: relative;
}

/* --- 2.4.1 Bypass blocks --- */
.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 10000;
	padding: 12px 20px;
	background: #111;
	color: #fff !important;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	border-radius: 0 0 6px 6px;
}
.skip-link:focus {
	top: 0;
	outline: 3px solid #ff6633;
	outline-offset: 3px;
}

/* --- 2.4.7 Focus visible --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.general_button:focus-visible,
.summary:focus-visible {
	outline: 3px solid #ff6633;
	outline-offset: 2px;
}

/* --- Footer / muted text contrast (toward ~4.5:1 on #333 / #393939) --- */
#footer .block_footer_about,
#footer .block_footer_about p,
#footer .block_footer_about a.link {
	color: #cfcfcf !important;
}
#footer .block_footer_about p b {
	color: #eaeaea !important;
}
.block_copyrights p,
.block_copyrights a.link {
	color: #dcdcdc !important;
}

/* Form validation state */
.field.errored input,
.field.errored textarea,
.textarea.errored textarea {
	border-color: #c62828 !important;
	box-shadow: 0 0 0 1px #c62828 inset;
}
.form-error-banner {
	display: none;
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	background: #3d1313;
	border: 1px solid #c62828;
	color: #ffcdd2;
	border-radius: 2px;
}
.form-error-banner[aria-hidden="false"] {
	display: block;
}
.textarea.errored {
	border: 1px solid #f2d3ce;
	box-shadow: 0 0 0 1px #c62828 inset;
}
.form-status-msg:not(:empty) {
	margin-bottom: 0.85rem;
	color: #1b5e20;
	font-weight: 700;
	line-height: 1.35;
}


.block_to_top a {
	min-width: 44px;
	min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* --- Visually hidden, available to SR --- */
.sr-only,
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.block_latest_projects h2.projects-section-title {
	margin-left: 1px;
	padding-bottom: 25px;
	font-size: 16px;
	line-height: 1em;
}
.block_latest_projects .tags a:link,
.block_latest_projects .tags a:visited {
	color: #9a3412;
	text-decoration: underline;
}
.block_latest_projects .tags a:hover,
.block_latest_projects .tags a:focus {
	color: #7c2d12;
}

/* About: second page title uses h2 for single-h1 outline */
.block_title h2.page-subtitle-heading {
	padding-bottom: 0;
	font-size: 24px;
	color: #777;
	font-weight: lighter;
	margin: 0;
	line-height: inherit;
}
@media screen and (max-width: 949px), (orientation: portrait) {
	.block_title h2.page-subtitle-heading {
		line-height: normal;
		font-size: 15px;
	}
	/* Bottom bar: centered in theme; explicit left + beat global `p { text-align: justify }` */
	#footer .section_bottom .inner,
	#footer .section_bottom .block_copyrights,
	#footer .section_bottom .block_copyrights p,
	#footer .section_bottom .block_copyrights a.link {
		text-align: left !important;
	}
	/* Carousel is static-only at this breakpoint — hide pause/resume (see style.css .oneByOne1) */
	.slider-accessible-controls {
		display: none !important;
	}
}

/* Latest projects: outline h2 -> h3 without visual change */
.block_latest_projects .project .description h3.project_title {
	margin: 0;
	padding: 0;
	font-size: 13px;
	line-height: inherit;
	font-weight: bold;
}
.block_latest_projects .project .description h3.project_title a {
	line-height: 1em;
	font-size: 13px;
	color: #333;
}
.block_latest_projects .project .description h3.project_title a:hover {
	text-decoration: none;
}

/* Hero slideshow: pause/resume (WCAG 2.2.2) */
.slider-accessible-controls {
	clear: both;
	padding: 12px 16px 18px;
	text-align: center;
}
.slider-accessible-controls[hidden] {
	display: none !important;
}
.slider-control-btn {
	min-height: 44px;
	min-width: 10rem;
	padding: 10px 18px;
	margin: 6px;
	font-size: 15px;
	font-weight: 700;
	font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #fff;
	background-color: #111111;
	border: 2px solid #333333;
	border-radius: 4px;
	cursor: pointer;
}
.slider-control-btn:hover {
	background-color: #333333;
}
.slider-control-btn:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
	box-shadow: 0 0 0 5px #111111;
}
.slider-control-btn[hidden] {
	display: none !important;
}
