/*
Theme Name:        Nauka Panorama
Theme URI:         https://nauka.panor.ru/
Author:            Издательский дом «Панорама»
Author URI:        https://panor.ru/
Description:       Профессиональная тема для портала научных статей и публикаций Издательского дома «Панорама». Поддерживает публикацию научных материалов, журналы ВАК, рецензируемые статьи, SEO-оптимизацию и Schema.org разметку.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       nauka-panorama
Tags:              blog, education, custom-menu, custom-logo, featured-images, sticky-post, threaded-comments, translation-ready, wide-blocks, full-width-template, block-patterns, rtl-language-support
*/

/*
 * Основные стили темы подключаются через functions.php (wp_enqueue_style).
 * Этот файл содержит только обязательный заголовок темы WordPress
 * и базовые корректировки для интеграции с WordPress.
 *
 * Полные стили находятся в:
 *   assets/css/variables.css
 *   assets/css/base.css
 *   assets/css/layout.css
 *   assets/css/index.css
 *   assets/css/article.css
 *   assets/css/editor.css
 *   assets/css/catalog.css
 */

/* WordPress Core Alignment */
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
	margin-bottom: 0.5em;
}

.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
	margin-bottom: 0.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 0.5em;
}

.alignwide {
	margin-left: calc(-8vw);
	margin-right: calc(-8vw);
	max-width: calc(100% + 16vw);
	width: calc(100% + 16vw);
}

.alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

/* WordPress Caption */
.wp-caption {
	max-width: 100%;
	margin-bottom: 1.5em;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	font-size: 0.875rem;
	color: #999aaa;
	text-align: center;
	padding: 0.5rem 0;
}

/* WordPress Gallery */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	gap: 1rem;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 100%;
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

.gallery-caption { display: block; font-size: 0.8125rem; }

/* WordPress Screen Reader Text */
.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: #f4f6f9;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
	clip: auto !important;
	clip-path: none;
	color: #1c3f6e;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* WordPress Sticky Post */
.sticky {
	display: block;
}

/* WordPress Image */
img {
	height: auto;
	max-width: 100%;
}

/* WordPress wysiwyg Editor Body */
body.wp-admin {
	cursor: auto;
}

/* Skip link */
.skip-link {
	position: absolute;
	top: -40px;
	left: 6px;
	z-index: 100000;
	padding: 8px 16px;
	background: #1c3f6e;
	color: white;
	font-size: 0.875rem;
	border-radius: 4px;
	transition: top 0.3s;
}

.skip-link:focus {
	top: 6px;
}
