/* ==========================================================================
   Valident Basic — Base Theme Styles
   ========================================================================== */

/* Reset
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, figure, blockquote {
	margin: 0;
	padding: 0;
}

img,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--vb-color-highlight, inherit);
	text-decoration: none;
}

/* Content links need underline for WCAG 1.4.1 distinguishability */
.entry-content a,
.site-main p a,
.site-main li a,
.vb-container a:not(.wp-block-button__link) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.entry-content a:hover,
.site-main p a:hover,
.site-main li a:hover,
.vb-container a:hover {
	text-decoration-thickness: 2px;
}

ul, ol {
	list-style: none;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
}

/* Base Typography
   ========================================================================== */

html {
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: var(--vb-font-body);
	color: var(--vb-color-body);
	line-height: 1.6;
	background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--vb-font-heading);
	color: var(--vb-color-heading);
	line-height: 1.3;
	font-weight: 700;
}

h1 { font-size: 2.5rem; margin-bottom: 0.75em; }
h2 { font-size: 2rem; margin-bottom: 0.5em; }
h3 { font-size: 1.5rem; margin-bottom: 0.5em; }
h4 { font-size: 1.25rem; margin-bottom: 0.5em; }
h5 { font-size: 1.125rem; margin-bottom: 0.5em; }
h6 { font-size: 1rem; margin-bottom: 0.5em; }

p {
	margin-bottom: 1em;
}

p:last-child {
	margin-bottom: 0;
}

a:hover {
	text-decoration: underline;
}

strong, b {
	font-weight: 700;
}

/* Layout
   ========================================================================== */

.container {
	width: 100%;
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.content-area {
	padding-top: 40px;
	padding-bottom: 60px;
}

/* WordPress Core
   ========================================================================== */

.alignwide {
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
}

.alignfull {
	width: 100%;
	max-width: 100%;
}

.aligncenter {
	text-align: center;
}

.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1em;
}

/* Accessibility
   ========================================================================== */

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.skip-link:focus {
	z-index: 100001;
}

/* Focus Visible — WCAG 2.4.7 / 2.4.13 */
:focus-visible {
	outline: 2px solid var(--vb-color-highlight, #2563eb);
	outline-offset: 2px;
}

/* Reduced Motion — WCAG 2.3.3 */
@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;
	}
}

/* Forced Colors / High Contrast mode */
@media (forced-colors: active) {
	:focus-visible {
		outline: 2px solid LinkText;
	}
}

/* Back to Top
   ========================================================================== */

.back-to-top {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--vb-color-highlight, #2563eb);
	color: #ffffff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
	z-index: 90;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.back-to-top:hover {
	filter: brightness(0.85);
}

.back-to-top svg {
	width: 20px;
	height: 20px;
}

/* Responsive
   ========================================================================== */

@media (max-width: 768px) {
	h1 { font-size: 2rem; }
	h2 { font-size: 1.5rem; }
	h3 { font-size: 1.25rem; }

	.content-area {
		padding-top: 24px;
		padding-bottom: 40px;
	}

	.container {
		padding-left: 16px;
		padding-right: 16px;
	}
}
