/*
Theme Name: Ollie
Theme URI: olliewp.com
Author: Mike McAlister
Author URI: mikemcalister.com
Description: Launch a blazing-fast, pixel-perfect website with the Ollie WordPress block theme! Ollie features over 50 beautiful pattern designs, 7 full-page pattern layouts, and a fully-customizable design system with Global Styles. Ollie integrates seamlessly with all of the powerful new WordPress editor features, giving you the most lightweight and powerful website builder on the planet — no expensive page builder plugin required! ✶ Full demo: https://demo.olliewp.com ✶
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: antialiased;
}

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;
	}
}

/************************/
/* Marco Custom classes */
.wp-block-latest-posts li {
	margin-bottom: 15px;
}

.wp-block-categories {
	list-style: inside;
}

.wp-block-categories li {
	margin-bottom: 7px;
}

.wp-block-categories li::marker {
	content: "›  ";
	color: var(--wp--preset--color--secondary);
}

.wp-block-categories li a {
	margin-left: 10px;
}

.wp-block-search__button { 
	background-color: var(--wp--preset--color--primary); 
	text-decoration: none;
}

.wp-block-search__button:hover { 
	background-color: #596ACA; 
}

.wp-block-button__link {
	background-color: var(--wp--preset--color--primary); 
	text-decoration: none;
}

.wp-block-button__link:hover {
	background-color: #596ACA;
}

code {
	background-color: var(--wp--preset--color--primary-accent) !important; 
}

@media (max-width: 780px) {
	.angularity-footer {
    	display: flex;
    	flex-direction: column;
    	justify-content: center;
    	align-items: center;
	}
}

@media (max-width: 420px) {
	.custom-logo-link img{
    	width: 248px;
		height: auto;
	}
}

.navigation-position-angularity {
	padding-top: 30px;
}

.footer-position-angularity {
	padding-top: 50px;
}

hr {
	border: 2px solid var(--wp--preset--color--primary) !important;
}

.wp-block-kevinbatdorf-code-block-pro {
	border: solid 1px #C8C8C8;
	border-radius: 4px;
    padding: 1px;
}

.wp-block-kevinbatdorf-code-block-pro svg {
	color: var(--wp--preset--color--primary);
}

@media only screen and (max-width: 599px) {
    .wp-block-navigation__responsive-container-close, .wp-block-navigation__responsive-container-open {
        background: var(--wp--preset--color--secondary);
        color: var(--wp--preset--color--base);
		border-radius: 50%;
        width: 40px;
        height: 40px;
        padding: 8px 7px;
    }
	
	.wp-block-post-featured-image {
  		height: auto !important;
	}
	
	.wp-block-post-featured-image a {
  		height: auto !important;
	}
	
	.wp-block-post-featured-image .attachment-post-thumbnail {
  		display: block;
  		height: auto !important; 
	}
}

.taxonomy-category a {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	padding: 5px 12px;
    border-radius: 32px;
	font-size: 13px;
	margin-right: 5px;
}

.taxonomy-category a:hover {
	background-color: #596ACA;
}

h2.wp-block-post-title a:hover {
  text-decoration: unset;
}

.wp-block-comment-edit-link a {
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  padding: 5px 20px; 
  color: var(--wp--preset--color--secondary);
  text-decoration: none; 
  border: none; 
  border-radius: 4px; 
  transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out; 
  cursor: pointer; 
}

.wp-block-comment-edit-link a:hover {
  background-color: rgba(255, 64, 129, 0.05);
}

.wp-block-comment-edit-link a:active {
  background-color: rgba(255, 64, 129, 0.26);
}

.wp-block-comment-edit-link a:focus {
  background-color: rgba(255, 64, 129, 0.26);
}

.wp-block-comment-reply-link a {
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  padding: 5px 20px; 
  color: var(--wp--preset--color--secondary);
  text-decoration: none; 
  border: none; 
  border-radius: 4px; 
  transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out; 
  cursor: pointer; 
}

.wp-block-comment-reply-link a:hover {
  background-color: rgba(255, 64, 129, 0.05);
}

.wp-block-comment-reply-link a:active {
  background-color: rgba(255, 64, 129, 0.26);
}

.wp-block-comment-reply-link a:focus {
  background-color: rgba(255, 64, 129, 0.26);
}

ul.wp-block-latest-posts__list li {
  margin: 23px 0;
}

ul.wp-block-latest-posts__list a {
  text-decoration: none;
  padding-left: 1px;
}

.wp-block-categories li {
  margin: 15px 0;
}

.wp-block-categories a {
  text-decoration: none;
}

.wp-block-categories a:hover {
  text-decoration: none;
}
