/*
Theme Name: Mentalist Theme (Ollie Child)
Theme URI: https://olliewp.com
Description: A custom child theme for Ollie.
Author: Carrie Dils
Author URI: https://carriedils.com
Template: ollie
Version: 1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oc
*/

/* Links */
a:where(:not(.wp-element-button)) {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
	transition: color 0.2s ease;
}


/* Footer links */

footer.wp-block-template-part a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--primary-alt);
	text-decoration: none;
}


/* Jump links */

/* Opt in to smooth scrolling only when no reduced-motion preference is set, so
	the motion-safe default also covers browsers that report no preference. */
@media (prefers-reduced-motion: no-preference) {

	:root {
		scroll-behavior: smooth;
	}
}

/* Clear the sticky header (101px at desktop) so jump targets are not hidden
	beneath it. Uses scroll-margin rather than scroll-padding because core
	already sets scroll-padding-top on :root for the admin bar. */
:target {
	scroll-margin-top: 6rem;
}

/* Back to top */
.back-to-top {
	bottom: var(--wp--preset--spacing--medium);
	position: fixed;
	right: var(--wp--preset--spacing--medium);
	z-index: 10;
}


/* Mobile Menu Toggle */

.wp-block-navigation__responsive-container-close, .wp-block-navigation__responsive-container-open {
	border-radius: 0;
	padding: 7.75px;
}

/* Footer */
@media (max-width: 781px) {

	footer.wp-block-template-part .wp-block-site-logo {
		display: flex;
		justify-content: center;
	}
}
