/*
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: 7.1
Requires PHP: 7.3
Version: 1.6.5
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) 2026 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"]):not([type="radio"]),
select,
textarea,
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wp-block-post-comments-form textarea {
	color: var(--wp--preset--color--main);
	border-radius: 5px;
	border: solid 1px color-mix(in srgb, var(--wp--preset--color--tertiary) 100%, var(--wp--preset--color--main) 20%);
	padding: .5em 1em;
	font-size: var(--wp--preset--font-size--small);
	background-color: #fff;
	box-shadow: 
		0 1px 2px rgba(0, 0, 0, 0.02),
		0 0.5px 1px rgba(0, 0, 0, 0.04);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline-color: var(--wp--preset--color--main);
	outline-offset: 1px;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

select {
	-webkit-appearance: none;
	appearance: none;
	background: var(--wp--preset--color--base) url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItY2hldnJvbi1kb3duIj48cG9seWxpbmUgcG9pbnRzPSI2IDkgMTIgMTUgMTggOSI+PC9wb2x5bGluZT48L3N2Zz4=) no-repeat;
    background-size: 16px;
    background-position: calc(100% - 12px) 50%;
	padding-right: 2.2em;
}

label {
	width: 100%;
	display: block;
}

::placeholder {
	color: var(--wp--preset--color--secondary);
	opacity: 0.75;
}

/* Helper styles
---------------------------------------------------------------------------- */

a.more-link {
	display: block;
}

/* Inline code */
*:not(.wp-block-code) > code {
	background-color: var(--wp--preset--color--tertiary);
	padding: 3px 5px;
	position: relative;
	border-radius: 3px;
}

.wp-block-categories {
	position: relative;
}

/* 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;
}

/* Sticky header */

body:not(.wp-admin) header:has(>.is-position-sticky) {
	position: sticky;
	top: calc( 0px + var( --wp-admin--admin-bar--height, 0px ) );
	z-index: 100;
}

/* Account for admin bar on mobile */

@media (max-width: 600px) {
	header:has(>.is-position-sticky) {
		top: 0;
	}
}

/* Partial sticky header: when one row inside the header is sticky, dissolve
   the header wrappers so that row can stick on its own while rows above
   scroll away. Wrapper styling won't render while dissolved. */

body:not(.wp-admin) header.wp-block-template-part:has(> .wp-block-group > .is-position-sticky):not(:has(> .is-position-sticky)),
body:not(.wp-admin) header.wp-block-template-part:has(> .wp-block-group > .is-position-sticky):not(:has(> .is-position-sticky)) > .wp-block-group {
	display: contents;
}

/* Cancel alignfull negative margins — the dissolved wrapper's compensating
   padding no longer renders. */

body:not(.wp-admin) header.wp-block-template-part:has(> .wp-block-group > .is-position-sticky):not(:has(> .is-position-sticky)) > .wp-block-group > .alignfull {
	margin-left: 0;
	margin-right: 0;
}

body:not(.wp-admin) header.wp-block-template-part:has(> .wp-block-group > .is-position-sticky) .is-position-sticky {
	z-index: 100;
}

/* Mobile helper classes */

@media (max-width: 781px) {
	.ollie-hide-on-mobile {
		display: none;
	}

	.ollie-unstick-mobile {
		position: static;
	}

	header:has(>.ollie-unstick-mobile) {
		position: static;
	}
}

/* Table
--------------------------------------------- */

.wp-block-table table {
	background: var(--wp--preset--color--base);
	border-radius: 5px;
	border: solid 1px var(--wp--preset--color--border-light);
	font-size: var(--wp--preset--font-size--x-small);
}
.wp-block-table.is-style-stripes {
	border-bottom: none;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: var(--wp--preset--color--tertiary);
}

.wp-block-table td, 
.wp-block-table th,
.wp-block-table thead {
	border: none;
	border-bottom: solid 1px color-mix(in srgb, var(--wp--preset--color--border-light) 50%, var(--wp--preset--color--base) 5%);
}

.wp-block-table th,
.wp-block-table tfoot {
	text-align: left;
	background-color: color-mix(in srgb, var(--wp--preset--color--tertiary) 75%, var(--wp--preset--color--base) 5%);
}

.wp-block-table td, 
.wp-block-table th {
	padding: .8em 1em;
}

.wp-block-table tfoot {
	border-top: solid 1px var(--wp--preset--color--border-light);
}

.wp-block-table tfoot td {
	border-bottom: none;
}

/* Custom Logoped-Odi Styles (Свинаренко А.И.)
--------------------------------------------- */

.logoped-card {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.logoped-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(29, 78, 216, 0.12);
}

.logoped-exercise-box {
	border-left: 4px solid var(--wp--preset--color--primary);
	background: var(--wp--preset--color--base);
	padding: 1.25rem 1.5rem;
	border-radius: 0.75rem;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.logoped-tip-box {
	border-left: 4px solid #10b981;
	background: #ecfdf5;
	padding: 1.25rem 1.5rem;
	border-radius: 0.75rem;
}

.logoped-warning-box {
	border-left: 4px solid #d97706;
	background: #fffbeb;
	padding: 1.25rem 1.5rem;
	border-radius: 0.75rem;
}

.wp-block-gallery.logoped-cert-gallery {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px !important;
}

.wp-block-gallery.logoped-cert-gallery.columns-1 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.wp-block-gallery.logoped-cert-gallery.columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wp-block-gallery.logoped-cert-gallery.columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wp-block-gallery.logoped-cert-gallery.columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wp-block-gallery.logoped-cert-gallery.columns-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.wp-block-gallery.logoped-cert-gallery.columns-6 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.wp-block-gallery.logoped-cert-gallery figure.wp-block-image:not(#individual-image) {
	width: 100% !important;
	max-width: 100% !important;
	aspect-ratio: 4 / 3;
	margin: 0 !important;
	overflow: hidden;
	border-radius: 0.5rem;
	border: 1px solid var(--wp--preset--color--border-light);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
	background-color: #ffffff;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.wp-block-gallery.logoped-cert-gallery figure.wp-block-image:not(#individual-image):hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 8px 20px rgba(29, 78, 216, 0.14);
}

.wp-block-gallery.logoped-cert-gallery figure.wp-block-image:not(#individual-image) > a,
.wp-block-gallery.logoped-cert-gallery figure.wp-block-image:not(#individual-image) > div:not(.components-drop-zone) {
	width: 100% !important;
	height: 100% !important;
}

.wp-block-gallery.logoped-cert-gallery figure.wp-block-image:not(#individual-image) img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	flex: none !important;
	object-fit: contain !important;
	object-position: center center;
	padding: 8px;
	background-color: #ffffff;
	border: 0;
	border-radius: 0;
}

@media (max-width: 900px) {
	.wp-block-gallery.logoped-cert-gallery,
	.wp-block-gallery.logoped-cert-gallery[class*="columns-"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.wp-block-gallery.logoped-cert-gallery,
	.wp-block-gallery.logoped-cert-gallery[class*="columns-"] {
		grid-template-columns: 1fr;
	}
}

/* Lightbox: show full uncropped portrait & landscape certificates on click */
.wp-lightbox-overlay .scrim {
	background-color: #ffffff !important;
	opacity: 0.97 !important;
}

.wp-lightbox-overlay .lightbox-image-container {
	width: calc(100vw - 140px) !important;
	height: calc(100vh - 64px) !important;
	overflow: visible !important;
}

.wp-lightbox-overlay.zoom.active .lightbox-image-container {
	animation: turn-on-visibility 0.25s ease !important;
}

.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container {
	animation: turn-off-visibility 0.2s ease forwards !important;
}

.wp-lightbox-overlay .wp-block-image img {
	min-width: 0 !important;
	min-height: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
}

@media (max-width: 959px) {
	.wp-lightbox-overlay .lightbox-image-container {
		width: calc(100vw - 32px) !important;
		height: calc(100vh - 120px) !important;
	}
}

/* Official Telegram Post Widget container
   Fixes Chromium cross-origin iframe dark/grey backdrop bug caused by
   Telegram's widget-frame.css declaring `:root { color-scheme: light dark; }` */
.logoped-telegram-widget {
	width: 100%;
	max-width: 100%;
	min-height: 220px;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: 14px;
	background: var(--wp--preset--color--tertiary);
	padding: 12px;
}

.logoped-telegram-widget iframe,
iframe[id^="telegram-post-"] {
	display: block;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 auto !important;
	color-scheme: light dark;
	background-color: transparent !important;
}

/* UX/UI Polish: Checkmark lists, equal-height cards, pricing banner, phones, archives, tables, mobile header */
ul.wp-block-list.is-style-list-check li,
ul.wp-block-list.is-style-list-check-circle li {
	padding-left: 1.65rem;
}

ul.wp-block-list.is-style-list-check li::before {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}

.wp-block-columns:has(.logoped-card) > .wp-block-column {
	display: flex;
	flex-direction: column;
}

.logoped-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.logoped-price-banner {
	gap: 1rem 1.5rem;
}

.logoped-price-banner p {
	margin: 0;
}

@media (min-width: 900px) {
	.logoped-price-banner {
		flex-wrap: nowrap !important;
	}

	.logoped-price-banner .wp-block-buttons {
		flex-shrink: 0;
	}
}

.archive .wp-block-post-template:has(> li:only-child) {
	grid-template-columns: minmax(0, 640px);
	justify-content: center;
}

a[href^="tel:"] {
	white-space: nowrap;
}

.wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
	.wp-block-table.is-style-stripes::before {
		content: "← Прокрутите таблицу вбок →";
		display: block;
		font-size: 0.78rem;
		color: var(--wp--preset--color--secondary);
		margin-bottom: 6px;
		text-align: right;
	}

	.wp-block-table td,
	.wp-block-table th {
		padding: 0.6em 0.7em;
		font-size: 0.85rem;
	}
}

@media (max-width: 781px) {
	header .wp-block-group.alignfull {
		padding-top: 0.85rem !important;
		padding-bottom: 0.85rem !important;
	}

	header .wp-block-site-title {
		font-size: 1rem !important;
		line-height: 1.25 !important;
	}

	header .wp-block-site-title + p {
		font-size: 0.75rem !important;
	}

	header .wp-block-group.alignwide > .wp-block-group:last-child {
		width: 100%;
		justify-content: space-between;
		margin-top: 0.25rem;
	}
}

/* Avito & Site Reviews section */
.logoped-reviews-section {
	border-top: 1px solid var(--wp--preset--color--border-light, #e2e8f0);
	border-bottom: 1px solid var(--wp--preset--color--border-light, #e2e8f0);
	scroll-margin-top: 2rem;
}

.logoped-reviews-rating-pill {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.45rem;
	margin: 0.5rem 0 0 !important;
	padding: 0.4rem 0.9rem;
	background: #ffffff;
	border: 1px solid var(--wp--preset--color--border-light, #e2e8f0);
	border-radius: 999px;
	color: var(--wp--preset--color--secondary, #475569);
	line-height: 1.4;
}

.logoped-reviews-rating-pill strong {
	color: var(--wp--preset--color--main, #1e293b);
}

.logoped-reviews-stars-inline {
	color: #f59e0b;
	letter-spacing: 0.08em;
	font-size: 1rem;
	line-height: 1;
}

.logoped-reviews-section .shortcode-site-reviews,
.logoped-reviews-section .glsr {
	width: 100%;
	max-width: 100%;
}

.logoped-reviews-section .glsr-reviews-wrap {
	display: grid;
	gap: 2rem;
}

.logoped-reviews-section .glsr-reviews {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	align-items: stretch;
}

.logoped-reviews-section .glsr-default .glsr-review {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto 1fr auto;
	column-gap: 0.75rem;
	row-gap: 0.9rem;
	align-items: center;
	height: 100%;
	padding: 1.5rem;
	background: #ffffff;
	border: 1px solid var(--wp--preset--color--border-light, #e2e8f0);
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.logoped-reviews-section .glsr-default .glsr-review:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
	border-color: var(--wp--preset--color--primary-alt, #dbeafe);
}

.logoped-reviews-section .glsr-default .glsr-review-rating {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
	--glsr-review-star: 1.125rem;
}

.logoped-reviews-section .glsr-default .glsr-review-date {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
	color: var(--wp--preset--color--secondary, #475569);
	font-size: 0.8125rem;
	font-weight: 500;
}

.logoped-reviews-section .glsr-default .glsr-review-content {
	grid-column: 1 / -1;
	grid-row: 2;
	align-self: start;
	color: var(--wp--preset--color--main, #1e293b);
	font-size: 0.95rem;
	line-height: 1.65;
}

.logoped-reviews-section .glsr-default .glsr-review-content p {
	margin-bottom: 0.65rem;
}

.logoped-reviews-section .glsr-default .glsr-review::before {
	content: "";
	grid-column: 1 / -1;
	grid-row: 3;
	align-self: stretch;
	border-top: 1px solid var(--wp--preset--color--border-light, #e2e8f0);
	pointer-events: none;
}

.logoped-reviews-section .glsr-default .glsr-review-author {
	grid-column: 1;
	grid-row: 3;
	align-self: center;
	margin-top: 0.85rem;
	color: var(--wp--preset--color--main, #1e293b);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
}

.logoped-reviews-section .glsr-default .glsr-review-verified {
	grid-column: 2;
	grid-row: 3;
	align-self: center;
	justify-self: end;
	padding: 0.25rem 0.65rem;
	margin-top: 0.85rem;
	background: #ecfdf5;
	border: 1px solid #bbf7d0;
	border-radius: 999px;
	color: #047857;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
}

.logoped-reviews-section .glsr-default .glsr-review-verified svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.logoped-reviews-section .glsr-default .glsr-pagination.glsr-ajax-loadmore {
	display: flex;
	justify-content: center;
}

.logoped-reviews-section .glsr-default .glsr-pagination .wp-block-buttons {
	justify-content: center;
}

.logoped-reviews-section .glsr-default button.glsr-button-loadmore {
	background-color: var(--wp--preset--color--primary, #1d4ed8);
	color: var(--wp--preset--color--base, #ffffff);
	border: none;
	border-radius: 8px;
	padding: 0.8rem 1.75rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.logoped-reviews-section .glsr-default button.glsr-button-loadmore:hover {
	background-color: var(--wp--preset--color--primary-alt-accent, #1e3a8a);
	transform: translateY(-1px);
}

@media (max-width: 959px) {
	.logoped-reviews-section .glsr-reviews {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 639px) {
	.logoped-reviews-header {
		flex-direction: column;
		align-items: flex-start !important;
		gap: 0.9rem;
	}

	.logoped-reviews-rating-pill {
		border-radius: 12px;
		padding: 0.45rem 0.75rem;
		font-size: 0.8125rem !important;
	}

	.logoped-reviews-section .glsr-reviews {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}

	.logoped-reviews-section .glsr-default .glsr-review {
		padding: 1.25rem;
	}
}

/* Cookie & Yandex.Metrika notification banner */
.logoped-cookie-notice[hidden] {
	display: none !important;
}

.logoped-cookie-notice {
	position: fixed;
	left: 1.25rem;
	right: auto;
	bottom: 1.25rem;
	z-index: 9999;
	max-width: min(560px, calc(100% - 2.5rem));
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 1.25rem;
	background: #ffffff;
	border: 1px solid var(--wp--preset--color--border-light, #e2e8f0);
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.logoped-cookie-notice__text {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--wp--preset--color--secondary, #475569);
}

.logoped-cookie-notice__text a {
	color: var(--wp--preset--color--primary, #1d4ed8);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.logoped-cookie-notice__btn {
	flex-shrink: 0;
	background-color: var(--wp--preset--color--primary, #1d4ed8);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 0.6rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.logoped-cookie-notice__btn:hover {
	background-color: var(--wp--preset--color--primary-alt-accent, #1e3a8a);
}

@media (max-width: 639px) {
	.logoped-cookie-notice {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
		left: 0.75rem;
		right: 0.75rem;
		bottom: 0.75rem;
		max-width: none;
		padding: 0.9rem 1rem;
	}

	.logoped-cookie-notice__btn {
		width: 100%;
		text-align: center;
	}
}

.wp-block-post-content a {
	overflow-wrap: anywhere;
}

@media (max-width: 480px) {
	h1.wp-block-post-title {
		font-size: clamp(1.45rem, 6.2vw, 1.875rem);
	}
}

/* Full-width standalone images inside single articles */
.single .wp-block-post-content > figure.wp-block-image {
	width: 100%;
	margin-top: var(--wp--preset--spacing--medium);
	margin-bottom: var(--wp--preset--spacing--medium);
}

.single .wp-block-post-content > figure.wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.single .wp-block-post-content > figure.wp-block-image figcaption {
	margin-top: 0.65rem;
	text-align: center;
	font-size: 0.875rem;
	color: var(--wp--preset--color--secondary);
}




