/*
Theme Name: KUA Theme
Theme URI: https://kualumni.org/
Author: Mitch Canter | WebDevStudios
Author URI: https://webdevstudios.com
Description: Site for KUA Alumni Association. Built with Ollie WordPress Theme.
Tags: blog, portfolio, entertainment, grid-layout, one-column, two-columns, three-columns, four-columns, block-patterns, block-styles, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, full-width-template, rtl-language-support, style-variations, template-editing, theme-options, translation-ready, wide-blocks
Tested up to: 6.7.1
Requires PHP: 7.3
Version: 1.4.8
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ollie

Ollie WordPress Theme, (C) 2025 Mike McAlister.
Ollie is distributed under the terms of the GNU GPL.
*/

/* CSS Reset
---------------------------------------------------------------------------- */

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

html {
	box-sizing: border-box;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: auto;
}

b,
strong {
	font-weight: var(--wp--custom--font-weight--semi-bold);
}

ol,
ul {
	padding: 0;
}

ol:where(:not([class*="wp-block"])),
ol:where(.wp-block-list),
ul:where(:not([class*="wp-block"])),
ul:where(.wp-block-list) {
	padding-inline-start: var(--wp--preset--spacing--medium);
}

div[class*="wp-block-"] figcaption {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--x-small);
	margin-bottom: 0;
	margin-top: 20px;
	text-align: center;
}

img,
figure {
	max-width: 100%;
	height: auto;
}

/* Temporary fix for text-decoration-thickness in Firefox */
@-moz-document url-prefix() {
	a {
		text-decoration-thickness: .1rem !important;
	}
}

/* Standardize form styling
--------------------------------------------- */

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

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
	appearance: none;
}

input:not([type="submit"]),
select,
textarea,
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form textarea {
	color: var(--wp--preset--color--main);
	border-radius: 5px;
	border: solid 1px var(--wp--preset--color--border-light);
	padding: .5em 1em;
	font-size: var(--wp--preset--font-size--small);
	background-color: #fff;
}

input:focus-visible,
textarea:focus-visible {
	outline-color: var(--wp--preset--color--primary);
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

label {
	width: 100%;
	display: block;
}

::placeholder {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.75;
}

/* Helper styles
---------------------------------------------------------------------------- */

a.more-link {
	display: block;
}

/* Inline code */
*:not(.wp-block-code) > code {
	background-color: var(--wp--preset--color--tertiary);
	font-weight: var(--wp--custom--font-weight--medium);;
	padding: 3px 5px;
	position: relative;
	border-radius: 3px;
}

.wp-block-categories {
	position: relative;
}

/* Adjust terms at bottom of posts */
.single .wp-block-group .wp-block-post-terms,
.blog .wp-block-group .wp-block-post-terms {
	// margin-bottom: -8px !important;
}

/* Remove margin on term description on archive pages */
.wp-block-term-description p:last-child {
	margin-bottom: 0;
}

/* Remove last separator on post list */
.remove-border-and-padding .wp-block-post-template li:last-child .wp-block-separator {
	display: none;
}

/* Hide post meta div if no tags assigned */
.single .wp-block-group:has(> .post-meta:empty) {
	display: none;
}

.wp-block-group:empty:has(+ .comment-respond) {
	display: none;
}

.row-logos > figure {
	flex-shrink: 1 !important;
}

@media (max-width: 781px) {
	.ollie-hide-on-mobile {
		display: none;
	}

	.ollie-unstick-mobile {
		position: static;
	}
}

/* KUA Website Overrides */
img.custom-logo{
	width: 100%;
    height: auto;
}

/* Related posts */
.yarpp-related-block {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;

	.yarpp-thumbnails-horizontal {
		display: flex;
		flex-direction: column;
		gap: 1rem;
		justify-content: center;
		text-align: center;


		@media (min-width: 48rem) {
			flex-direction: row;
			gap: 2rem;
			align-items: center;
			justify-content: space-around;
		}

		.yarpp-thumbnail {
			border: none;
			margin: .25rem auto;
			img {
				width: 100%;
				object-fit: cover;
			}
		}

		.yarpp-thumbnail-title {
			text-align: center;
			margin-top: var(--wp--preset--spacing--40);
		}
	}
}

.related-posts-group:not(:has(.wp-block-kua-kua-related-posts)) {
	display: none;
}

/* Sticky Sidebar */
.site-sidebar {
	position: sticky;
	top: 32px;
}

.single .breadcrumb_last {
	display: none !important;
}

.yoast-breadcrumbs > span {
	color: transparent;
	font-size: 0;
	width: 0;
}

.yoast-breadcrumbs span:has(a):not(:last-child) {
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--base);
}

.yoast-breadcrumbs span:has(a):not(:last-child)::after {
	content: ' >';
	margin: 0 0.25em;
	color: inherit;
	font-size: inherit;
}

.yoast-breadcrumbs span:has(a):has(+ .breadcrumb_last)::after {
	content: none;
}


@media (max-width: 1024px) {
	.wp-block-columns:has(.site-sidebar)>.wp-block-column {
		flex-basis: 100% !important;
	}

	.wp-block-columns:has(.site-sidebar) {
		flex-wrap: wrap !important;
	}
}

.post-loop-home .wp-block-columns .wp-block-column:nth-child(n+2) .wp-block-post-featured-image {
	height: 168px;
	overflow: hidden;
}

.single-post .reading-time-block span {
	display: none;
}

header .homepage-bottom-menu li .wp-block-outermost-mega-menu__toggle {
	padding-bottom: 12px;
}
