/*
Theme Name: Vestnik
Theme URI: https://example.com/vestnik
Author: Your Name
Author URI: https://example.com
Description: Vestnik ("newspaper" in Bulgarian) is a fast, editorial block theme built for news and magazine publishers. It ships fully bilingual out of the box, with complete English and Bulgarian (bg_BG) translations, locally-hosted variable fonts, a breaking-news pattern, and an editorial grid built entirely from theme.json v3 — no hardcoded styles.
Tags: news, blog, one-column, three-columns, grid-layout, block-patterns, full-site-editing, custom-colors, custom-menu, editor-style, featured-images, full-width-template, rtl-language-support, threaded-comments, translation-ready
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vestnik

Vestnik is distributed under the terms of the GNU GPL v2 or later.
Bundled fonts (Playfair Display, Inter) are licensed under the SIL Open Font
License, 1.1 — see assets/fonts/OFL-*.txt for full license text.

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/*
Global styles and settings live in theme.json — this file intentionally stays
minimal. Only structural rules that theme.json cannot express (font-face
fallback safety, print styles, screen-reader utility classes) belong here.
*/

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--wp--preset--color--paper, #ffffff);
	color: var(--wp--preset--color--ink, #1a1a1a);
	clip: auto !important;
	clip-path: none;
	display: block;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 12px 16px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Breaking-news ticker: a small marquee-style loop with no JS dependency */
.vestnik-ticker__track {
	display: inline-block;
	padding-left: 100%;
	animation: vestnik-ticker 28s linear infinite;
	font-size: clamp(8px, 2vw, 10px);
}

.vestnik-ticker:hover .vestnik-ticker__track {
	animation-play-state: paused;
}

@keyframes vestnik-ticker {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-100%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.vestnik-ticker__track {
		animation: none;
		padding-left: 0;
	}
}

/* Sticky masthead so returning to the top of a long article is one tap away */
.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background-color: var(--wp--preset--color--paper);
}

/* Article/section cards used by the news-grid, post-list, and archive-grid patterns */
.vestnik-card {
	height: 100%;
}

.vestnik-card .wp-block-post-featured-image {
	margin-bottom: var(--wp--preset--spacing--20, 0.75rem);
}

.vestnik-card .wp-block-post-featured-image img {
	display: block;
	width: 100%;
}

/* Category pill list (core/categories block output) */
ul.vestnik-category-pills,
ul.vestnik-footer-categories {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--10, 0.5rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.vestnik-footer-categories {
	flex-direction: column;
	gap: var(--wp--preset--spacing--10, 0.5rem);
}

.vestnik-category-pills li a {
	display: inline-block;
	padding: 0.4em 0.9em;
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}

.vestnik-category-pills li a:hover {
	background-color: var(--wp--preset--color--headline-red);
	border-color: var(--wp--preset--color--headline-red);
	color: var(--wp--preset--color--paper);
}

.vestnik-footer-categories a {
	color: var(--wp--preset--color--paper);
	opacity: 0.8;
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
}

.vestnik-footer-categories a:hover {
	opacity: 1;
	text-decoration: underline;
}

/* Hero: keep the headline column comfortably centered on very wide screens */
.vestnik-hero .wp-block-post-template {
	margin: 0 auto;
}

@media print {
	.wp-block-navigation,
	.vestnik-ticker,
	.wp-block-template-part[data-area="header"] form,
	.wp-block-post-comments-form {
		display: none !important;
	}
}
