/* Page Builder Theme: the few styles theme.json can't express. Kept small on purpose. */

/* Accessibility: visible focus everywhere, and respect "reduce motion". */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Header (a Page Builder section with these classes; see parts/) ---------- */
.pbt-header {
	background: var(--wp--preset--color--base);
	transition: padding 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.pbt-header .pbb-section__inner { gap: var(--wp--preset--spacing--20); }
.pbt-header .pbb-columns { gap: var(--wp--preset--spacing--40); }
.pbt-header .pbb-arrange-row { gap: var(--wp--preset--spacing--40); }

/* Sticky header: the template part wrapper sticks, so the whole header stays on top. */
.wp-site-blocks > header.wp-block-template-part:has(.pbt-header--sticky) {
	position: sticky;
	top: 0;
	z-index: 50;
}
body.admin-bar .wp-site-blocks > header.wp-block-template-part:has(.pbt-header--sticky) { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .wp-site-blocks > header.wp-block-template-part:has(.pbt-header--sticky) { top: 46px; }
}
@media (max-width: 600px) {
	body.admin-bar .wp-site-blocks > header.wp-block-template-part:has(.pbt-header--sticky) { top: 0; }
}
/* Shrinks with a soft shadow once the page scrolls (set by assets/theme.js). */
.pbt-scrolled .pbt-header.pbt-header--sticky {
	padding-block: var(--wp--preset--spacing--20);
	box-shadow: 0 1px 0 var(--wp--preset--color--border), 0 6px 20px rgb(15 23 42 / 6%);
}

/* See-through header over the first section; turns solid on scroll. */
.wp-site-blocks > header.wp-block-template-part:has(.pbt-header--transparent) {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 50;
}
body.admin-bar .wp-site-blocks > header.wp-block-template-part:has(.pbt-header--transparent) { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .wp-site-blocks > header.wp-block-template-part:has(.pbt-header--transparent) { top: 46px; }
}
.pbt-header.pbt-header--transparent { background: transparent; color: var(--wp--preset--color--base); }
.pbt-scrolled .pbt-header.pbt-header--transparent { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); box-shadow: 0 6px 20px rgb(15 23 42 / 8%); }
/* While editing, the see-through header sits in the flow on a dark background so it stays readable. */
.pbb-canvas .pbt-header.pbt-header--transparent, .editor-styles-wrapper .pbt-header.pbt-header--transparent { background: var(--wp--preset--color--dark); }
.pbb-canvas .wp-site-blocks > header.wp-block-template-part:has(.pbt-header--transparent) { position: relative; top: 0; }

@media (max-width: 600px) {
	.pbt-header .pbb-logo__name { font-size: var(--wp--preset--font-size--medium); }
}

/* ---------- Main ---------- */
.pbt-main { margin-block-start: 0; }
.pbt-main--padded { padding-block: var(--wp--preset--spacing--60); }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- Footer (a Page Builder section with these classes; see parts/) ---------- */
.pbt-footer { font-size: var(--wp--preset--font-size--small); }
.pbt-footer a:not(.pbb-button) { color: inherit; }
.pbt-footer a:not(.pbb-button):hover { color: var(--wp--preset--color--accent); }
.pbt-footer .pbt-footer__title { text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
.pbt-footer .pbb-menu__list a { padding-block: 0.15rem; font-weight: 400; }
.pbt-footer .pbt-footer__bottom {
	padding-block-start: var(--wp--preset--spacing--40);
	border-top: 1px solid rgb(255 255 255 / 15%);
	opacity: 0.85;
}
.pbt-footer--simple .pbt-footer__bottom { padding: 0; border: 0; }
/* ---------- Posts ---------- */
.pbt-meta { gap: var(--wp--preset--spacing--30); color: var(--wp--preset--color--contrast-2); font-size: var(--wp--preset--font-size--small); }
.pbt-rounded img { border-radius: var(--wp--custom--radius--medium); }
.pbt-card { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--20); }
.pbt-card__title { font-size: var(--wp--preset--font-size--large); margin-block-start: var(--wp--preset--spacing--20); }
.pbt-card__title a { color: inherit; text-decoration: none; }
.pbt-card__title a:hover { color: var(--wp--preset--color--primary); }
.pbt-card .wp-block-post-date { color: var(--wp--preset--color--contrast-2); font-size: var(--wp--preset--font-size--small); }
.pbt-404 { text-align: start; }
