/*
Theme Name: Skaitvo News
Theme URI: https://skaitvo.lt/
Author: Skaitvo
Description: Лёгкая новостная тема на литовском языке для Skaitvo.lt. Заголовки и тексты новостей — из основного редактора WordPress, меню — расположение ltmenu, обычные ссылки /название-записи/. Без рекламы и сторонних кодов. Основана на теме Kartnic.
Version: 1.1.4
Requires at least: 6.2
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: skaitvo-news
*/

/*--------------------------------------------------------------
# Reset
--------------------------------------------------------------*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
	border: 0;
	margin: 0;
	padding: 0;
}

ol,
ul {
	list-style: none;
}

a {
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a img {
	border: 0;
}

.widget {
	background-color: rgb(255, 255, 255);
	padding: 10px;
	margin-bottom: 10px;
}

.widget ul li {
	list-style-type: none;
	position: relative;
	margin-bottom: .5em;
}

#content-area,
.post-site-main article,
.mobile-drop-navigation,
.page-title,
.sub-menu,
.site,
.site-info,
#cont-site article {
	background-color: rgb(255, 255, 255);
}

.nav-links {
	margin-bottom: 10px;
	background-color: rgb(255, 255, 255);
}

.inside-header,
.inside-site-info,
#content {
	margin-left: auto;
	margin-right: auto;
	max-width: 1200px;
	padding-left: 0px;
	padding-right: 0px;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/

body {
	background-color: rgb(240, 240, 244);
}

body,
button,
input,
select,
textarea {
	font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	font-weight: normal;
	text-transform: none;
	font-size: 17px;
	line-height: 1.5;
}

p {
	margin-bottom: 1.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: inherit;
	font-style: inherit;
	font-weight: inherit;
}

blockquote {
	border-left: 5px solid rgba(0, 0, 0, 0.05);
	padding: 20px;
	font-size: 1.2em;
	font-style: italic;
	margin: 0 0 1.5em;
	position: relative;
}

blockquote p:last-child {
	margin: 0;
}

/* ===== Таблицы ===== */

table {
	width: 100%;
	margin: 0 0 1.5em;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 15px;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}

/* обёртка (её добавляет yn_wrap_tables() в functions.php; Gutenberg даёт figure.wp-block-table) */
.table-wrap,
.wp-block-table {
	margin: 1.5em 0;
	overflow-x: auto;
	background: #fff;
	border: 1px solid #e3e0ea;
	border-radius: 8px;
}

.table-wrap table,
.wp-block-table table {
	margin: 0;
}

.wp-block-table figcaption {
	padding: 10px 16px;
	font-size: 14px;
	color: #666;
	text-align: center;
	border-top: 1px solid #ece9f1;
}

caption {
	padding: 12px 16px;
	font-weight: 600;
	text-align: left;
	border-bottom: 1px solid #ece9f1;
}

th,
td {
	padding: 10px 16px;
	text-align: left;
	vertical-align: top;
	border-top: 1px solid #ece9f1;
	overflow-wrap: break-word;
}

th {
	font-weight: 600;
	background: #f6f3fa;
}

.has-text-align-center {
	text-align: center;
}

.has-text-align-right {
	text-align: right;
}

/* верхняя линия первой строки не нужна: её рисует рамка обёртки */
thead:first-of-type > tr:first-child > *,
tbody:first-of-type > tr:first-child > * {
	border-top: 0;
}

/* строка заголовков (отдельным правилом: старые браузеры без :has() пропустят только его) */
thead th {
	border-bottom: 2px solid #d8cde8;
}

tr:first-child:not(:has(> td)) > th {
	border-bottom: 2px solid #d8cde8;
}

tfoot th,
tfoot td {
	font-weight: 600;
	background: #f6f3fa;
	border-top: 2px solid #d8cde8;
}

@media (hover: hover) {
	tbody tr:hover > td {
		background: #f3eefa;
	}
}

@media (max-width: 768px) {
	table {
		font-size: 14px;
	}

	/* короткие значения («256 MB», «BPI-R4 Pro») не рвутся на строки: узкая таблица просто прокручивается */
	th,
	td {
		min-width: 5.5em;
		padding: 8px 12px;
	}
}

hr {
	border: 0;
	height: 1px;
	margin-bottom: 40px;
	margin-top: 40px;
}

.entry-title {
	font-family: Arial;
	font-weight: 600;
	text-transform: none;
}

h1 {
	font-size: 30px;
	font-style: normal;
	margin-bottom: 20px;
	line-height: 1.2em;
	font-weight: 600;
	text-transform: none;
}

h2 {
	font-size: 19px;
	margin-bottom: 20px;
	line-height: 1.2em;
	font-weight: 500;
	text-transform: none;
}

h3 {
	font-size: 17px;
	margin-bottom: 20px;
	line-height: 1.2em;
	font-weight: 500;
	text-transform: none;
}

h4,
h5,
h6 {
	margin-bottom: 20px;
}

ul,
ol {
	text-decoration: none;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

figure {
	margin: 0;
}

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

.wp-block-archives li,
.wp-block-categories li {
	list-style: none;
}

.wp-caption {
	max-width: 100%;
	text-align: center;
	margin: 1.5em 0;
}

.wp-caption-text {
	margin-top: 0.5em;
	font-size: 0.9em;
	color: #6c757d;
}

.gallery-caption {
	margin-top: 0.5em;
	font-size: 0.9em;
	color: #6c757d;
}

.alignright {
	float: right;
	margin-left: 1.5em;
}

.alignleft {
	float: left;
	margin-right: 1.5em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

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

.screen-reader-text:focus {
	background-color: #eee;
	clip: auto !important;
	clip-path: none;
	color: #444;
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/

button,
input,
select,
textarea {
	font-size: 100%;
	margin: 0;
	vertical-align: middle;
}

button,
input[type="reset"],
input[type="submit"] {
	border: 1px solid rgb(0, 0, 0);
	background: #000000;
	cursor: pointer;
	-webkit-appearance: button;
	padding: 10px 20px;
	color: #ffffff;
}

input[type="checkbox"],
input[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

input[type="search"] {
	-webkit-appearance: textfield;
	box-sizing: content-box;
}

input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
	background: #FAFAFA;
	color: #666;
	border: 1px solid #ccc;
	border-radius: 0px;
	padding: 10px 15px;
	box-sizing: border-box;
	max-width: 100%;
}

textarea {
	overflow: auto;
	vertical-align: top;
	width: 100%;
}

input[type="file"] {
	max-width: 100%;
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Links
--------------------------------------------------------------*/

a:focus,
button:focus {
	outline: 2px solid #000;
	outline-offset: 2px;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/

.main-navigation {
	z-index: 100;
	padding: 0;
	clear: both;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation a {
	display: block;
	text-decoration: none;
	font-weight: 400;
	text-transform: none;
}

.main-navigation li {
	position: relative;
}

.feather-search {
	height: 1em;
	width: 1em;
	position: relative;
}

/* Hide sub-menus by default */
.mobile-drop-navigation .sub-menu {
	display: none;
}

/* Кнопка-стрелка подменю в мобильном меню (создаётся в js/menu.js) */
button.toggle-button {
	flex: none;
	cursor: pointer;
	padding: 8px 10px;
	font-size: 12px;
	line-height: 20px;
	color: #551a8b;
	background: none;
	border: 0;
}

/* Submenu */
.main-navigation ul ul {
	display: none;
	box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
	position: absolute;
	top: 100%;
	opacity: 0;
	z-index: 99999;
	width: auto;
	padding: 10px;
	text-align: left;
	transition: opacity 200ms ease-in-out, height 200ms ease-in-out;
	pointer-events: none;
	height: 0;
	overflow: hidden;
}

/* Show submenu on hover and focus */
.main-navigation:not(.toggled) ul li:hover > ul,
.main-navigation:not(.toggled) ul li:focus-within > ul {
	display: block;
	left: 0;
	top: 100%;
	opacity: 1;
	pointer-events: auto;
	height: auto;
	overflow: visible;
}

/* Nested submenu */
.main-navigation ul ul ul {
	top: 100%;
	left: 0;
}

/* Add arrow icon for submenu */
.main-navigation li.menu-item-has-children > a::after {
	margin-left: 5px;
	font-size: 12px;
	color: #000;
}

/* Adjust arrow for nested submenus */
.main-navigation li.menu-item-has-children ul li.menu-item-has-children > a::after {
	content: '▼';
	margin-left: 5px;
	font-size: 12px;
	color: #000;
}

/*--------------------------------------------------------------
## Sidebar Navigation
--------------------------------------------------------------*/

.middle-right-bottom {
	margin-top: 10px;
	list-style: none;
}

/* две колонки — от 900px; уже — одна колонка, сайдбар под текстом */
@media (min-width: 900px) {
	.site-content {
		display: flex;
		gap: 10px;
		width: 100%;
	}
	.sidebar-right .middle-right-bottom {
		flex: 1 1 30%;
		max-width: 30%;
		order: 2;
	}
	.sidebar-right .content-area {
		flex: 1 1 70%;
		max-width: 70%;
		order: 1;
	}
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

#mobile-nav li a,
#mobile-nav-right li a {
	display: block;
	text-align: left;
	padding: 0px 15px;
	text-decoration: none;
}

.inside-header {
	display: flex;
	align-items: center;
	position: relative;
	padding: 0px 20px 0px 20px;
}

.site-branding .main-title {
	margin: 0;
	font-size: 20px;
	line-height: 1.2em;
	word-wrap: break-word;
	font-weight: 700;
	text-transform: none;
}

.site-header {
	padding: 10px 0px 10px 0px;
	align-items: center;
	line-height: 40px;
}

.site-logo {
	display: inline-block;
	max-width: 100%;
}

.site-branding-container {
	display: inline-flex;
	align-items: center;
	text-align: left;
	flex-shrink: 1;
}

.site-branding-container img {
	margin-right: 1em;
}

/*--------------------------------------------------------------
# Content Layout
--------------------------------------------------------------*/

.post {
	margin: 10px 0px;
}

.page-title {
	font-size: 26px;
	margin-bottom: 10px;
	padding: 20px;
}

.site-content-area {
	word-wrap: break-word;
	margin-top: 10px;
}

#cont-site article {
	margin-bottom: 10px;
}

/*--------------------------------------------------------------
# Post Content
--------------------------------------------------------------*/

.sticky {
	display: block;
}

.inside-article {
	margin: 10px 0px;
	padding: 10px;
}

.inside-article article {
	margin-bottom: 10px;
}

.site-content,
.entry-header {
	word-wrap: break-word;
}

.entry-meta {
	line-height: 1.5;
}

footer.entry-meta {
	margin-top: 2em;
}

#content-area {
	margin: 10px 0;
	padding: 10px;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.inside-site-info {
	text-align: center;
	font-size: 15px;
	padding: 20px 0px;
}

.sr-form {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.2);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
	backdrop-filter: blur(3px);
	transition: opacity 500ms ease;
}

.main-navigation {
	display: flex;
}

.mobile-main-navigation {
	display: none;
}

@media (max-width: 768px) {
	.main-navigation {
		display: none;
	}
	.mobile-main-navigation {
		display: flex;
		margin-left: auto;
	}
	.mobile-drop-navigation {
		padding-left: 20px;
		padding-right: 20px;
		line-height: 60px;
	}
	.mobile-drop-navigation li {
		list-style: none;
	}
	.hide {
		display: block !important;
	}
}

.mobile-drop-navigation {
	display: none;
}

.menu-bar-items {
	display: flex;
}

/* Keep the search form hidden by default */
.search-form {
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

/* When open, show the search form */
.search-form.open {
	display: block;
	opacity: 1;
}

.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: #000;
	padding: 8px;
	z-index: 100;
}

.skip-link:focus {
	top: 0;
}

.nav-links {
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
	padding: 20px;
}

.pagination {
	text-align: center;
	margin: 20px 0;
}

.pagination a,
.pagination span {
	display: inline-block;
	padding: 8px 12px;
	margin: 0 5px;
	border: 1px solid #ccc;
	border-radius: 5px;
	text-decoration: none;
	color: #333;
	background-color: #f9f9f9;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover {
	background-color: #000;
	color: #fff;
}

.pagination .current {
	background-color: #000;
	color: #fff;
	border-color: #000;
}

button.mobile-menu-toggle {
	border: 0px;
	background: none;
	color: #551a8b;
}

.mobile-toggle-inner {
	display: flex;
	align-items: center;
	line-height: 1;
}

button.search-button {
	background: none;
	border: 0;
	color: #551a8b;
	font: inherit;
	line-height: 1;
	padding: 0 6px;
}

.mobile-menu-toggle {
	padding: 0px;
	margin-left: 10px;
}

.post-image {
	text-align: center;
	justify-content: center;
	align-items: center;
}

.post-image img {
	margin: 0 auto;
}

hr {
	border: none;
	border-top: 1px solid #000;
	height: 0;
	margin: 10px 0;
}

/* Убираем отступы для заголовка */
.entry-header.custom-header {
	display: block;
	margin-bottom: 7px;
}

/* Контейнер для текста */
.custom-entry-content .entry-text {
	flex: 1;
}

/* Контейнер списка постов */
.post-list {
	display: flex;
	flex-direction: column;
}

/* Каждый пост в списке */
.post-item {
	border-bottom: 1px solid #ddd;
}

/* Контейнер для изображения и текста */
.custom-entry-content {
	display: flex;
}

/* Контейнер для текста */
.entry-text {
	flex: 1;
}

/* Заголовок поста */
.entry-title {
	margin-bottom: 3px;
	font-size: 18px;
	line-height: 1.2;
}

/* Описание поста */
.entry-text p {
	margin-top: 0;
	margin-bottom: 0;
	color: #333;
}

.post-image img {
	border-radius: 5px;
}

/* ===== Новости в сайдбаре ===== */

.widget-heading {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 12px;
	color: #222;
}

.sidebar-news-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.news-item {
	border-bottom: 1px solid #eee;
}

.news-item:last-child {
	border-bottom: 0;
}

.news-item a {
	text-decoration: none;
}

.news-item a:hover {
	text-decoration: underline;
}

.news-date {
	display: block;
}

/* ===== Страница новости ===== */

.news-content {
	font-size: 17px;
	line-height: 1.7;
	color: #222;
	overflow-wrap: anywhere;
}

.news-content p {
	margin: 0 0 1.2em;
}

.news-content h2 {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	margin: 1.6em 0 .6em;
}

.news-content h3 {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	margin: 1.4em 0 .5em;
}

.news-content code {
	font-family: Consolas, Menlo, Monaco, "Courier New", monospace;
	font-size: .9em;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	padding: 1px 6px;
	word-break: break-word;
}

.news-content pre {
	background: #f3f4f6;
	border-radius: 6px;
	padding: 12px 14px;
	overflow-x: auto;
	margin: 0 0 1.2em;
}

.news-content pre code {
	background: none;
	border: 0;
	padding: 0;
}

.news-figure {
	margin: 1.4em 0;
	padding: 0;
}

.news-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

/* ===== Сайдбар: иконки заголовков и компактные новости ===== */

.widget-heading {
	display: flex;
	align-items: center;
	gap: 8px;
}

.widget-icon {
	flex: 0 0 auto;
	color: #555;
}

.sidebar-news-list .news-item {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 6px 0;
}

.sidebar-news-list .news-date {
	order: -1;
	flex: 0 0 auto;
	margin: 0;
	padding: 1px 7px;
	font-size: 12px;
	line-height: 1.5;
	color: #555;
	white-space: nowrap;
	border: 1px solid #ccc;
	border-radius: 10px;
}

.sidebar-news-list .news-item a {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

/*--------------------------------------------------------------
# Skaitvo News: заголовки категорий, карточки
--------------------------------------------------------------*/

.page-header {
	margin-bottom: 16px;
}

.archive-description {
	margin: 8px 0 0;
	font-size: 16px;
	line-height: 1.6;
	color: #444;
}

.archive-description p {
	margin: 0 0 .6em;
}

.post-item .entry-text .news-date {
	display: block;
	margin: 2px 0 6px;
	font-size: 13px;
	color: #6b6b6b;
}

.entry-header .entry-meta .news-date {
	display: inline-block;
	margin-top: 4px;
	font-size: 14px;
	color: #6b6b6b;
}

.html-sitemap ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.html-sitemap ul li {
	width: calc(25% - 20px);
}

.html-sitemap ul li a {
	font-size: 14px;
	color: #333;
	text-decoration: none;
}

.html-sitemap ul li a:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
	.html-sitemap ul li {
		width: calc(50% - 20px);
	}
}

@media (max-width: 480px) {
	.html-sitemap ul li {
		width: 100%;
	}
}

/*--------------------------------------------------------------
# Правки: меню, карточки, hr
--------------------------------------------------------------*/

/* Меню — в один ряд по центру */
.main-navigation {
	align-items: center;
}

.main-navigation .main-menu {
	display: flex;
	align-items: center;
	gap: 2px;
}

.main-navigation .main-menu > li {
	float: none;
}

.main-navigation .main-menu a,
#mobile-nav a,
#mobile-nav-right a {
	padding: 0 12px;
	line-height: 36px;
	border-radius: 6px;
}

.main-navigation .main-menu a:hover,
.main-navigation .main-menu a:focus,
.main-navigation .main-menu li.yn-current > a,
#mobile-nav a:hover,
#mobile-nav-right a:hover,
#mobile-nav li.yn-current > a,
#mobile-nav-right li.yn-current > a {
	background-color: #ebebeb;
	text-decoration: none;
}

/* Карточки на главной, в категориях и поиске: без hover-эффектов на ссылках */
.post-item a:hover,
.post-item a:focus {
	text-decoration: none;
}

/* Картинка в карточке: 132×66 */
.post-item .custom-entry-content {
	align-items: flex-start;
	gap: 16px;
}

.post-item .custom-entry-content .post-image {
	flex: 0 0 132px;
	width: 132px;
	height: auto;
	margin: 0;
}

.post-item .custom-entry-content .post-image img {
	display: block;
	width: 100%;
	height: 66px;
	object-fit: cover;
}

@media (max-width: 600px) {
	.post-item .custom-entry-content {
		flex-direction: column;
		gap: 10px;
	}
	.post-item .custom-entry-content .post-image {
		flex: none;
		width: 100%;
	}
	.post-item .custom-entry-content .post-image img {
		height: auto;
		aspect-ratio: 2 / 1;
	}
}

/* Линии над заголовком новости и после текста */
.inside-article hr.news-hr {
	height: 1px;
	margin: 16px 0;
	background-color: #ddd;
	border: 0;
}

/* Линия под меню */
hr.header-hr {
	height: 1px;
	margin: 0;
	background-color: #ddd;
	border: 0;
}

/*--------------------------------------------------------------
# Мобильная шапка
--------------------------------------------------------------*/

@media (max-width: 768px) {
	/* Мобильная шапка: поиск, версия для слабовидящих и меню в одну линию */
	.mobile-main-navigation .menu-bar-items {
		display: flex;
		align-items: center;
		flex-wrap: nowrap;
		gap: 6px;
	}
	.mobile-main-navigation .a11y-controls,
	.mobile-main-navigation .mobile-menu-toggle,
	.mobile-main-navigation .search-button {
		margin: 0;
	}

	.mobile-main-navigation .search-button,
	.mobile-main-navigation .mobile-menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 34px;
		height: 34px;
	}
	.mobile-main-navigation .search-button .icon-search,
	.mobile-main-navigation .mobile-toggle-inner {
		display: flex;
		align-items: center;
		line-height: 1;
	}
	
}

/*--------------------------------------------------------------
# Версия для слабовидящих: A− / A+
--------------------------------------------------------------*/

.a11y-controls {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-left: 10px;
}

.a11y-btn {
	height: 36px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 36px;
	color: inherit;
	background: none;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

.a11y-btn:hover:not(:disabled),
.a11y-btn:focus-visible {
	background-color: #ebebeb;
}

.a11y-btn:disabled {
	opacity: .35;
	cursor: default;
}

html[data-a11y-font="1"] body {
	zoom: 1.25;
}

html[data-a11y-font="2"] body {
	zoom: 1.5;
}

html[data-a11y-font="3"] body {
	zoom: 1.75;
}

/*--------------------------------------------------------------
# Без эффектов выделения ссылок в списках (главная, категории, поиск)
--------------------------------------------------------------*/

a,
button {
	-webkit-tap-highlight-color: transparent;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
	outline: none;
}

.post-item a:hover,
.post-item a:focus,
.post-item a:active {
	text-decoration: none;
}

/* рамка фокуса при навигации с клавиатуры остаётся; при клике мышью её скрывает общее правило a:focus:not(:focus-visible) */
.post-item a:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.pagination a:hover {
	color: #333;
	background-color: #f9f9f9;
}

/*--------------------------------------------------------------
# Все ссылки одного цвета (включая посещённые, наведение и нажатие)
--------------------------------------------------------------*/

body a,
body a:link,
body a:visited,
body a:hover,
body a:focus,
body a:active {
	color: #551a8b !important;
}

/* Первоисточник под первым абзацем */
.news-source {
	word-break: break-all;
}

/* Счётчик LiveInternet (88×15) — в самом низу подвала по центру */
.site-counter {
	margin-top: 12px;
	line-height: 0;
}

.site-counter a {
	display: inline-block;
}

/* размер задан явно: общее правило img { height: auto } растягивало стартовую картинку 1×1 до 88×88 и страница дёргалась */
.site-counter img {
	display: block;
	width: 88px;
	height: 15px;
}

/* Ссылки в подвале */
.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 20px;
	margin: 8px 0 0;
}

/*--------------------------------------------------------------
# Компактная карточка (−25%) и строка под заголовком новости
--------------------------------------------------------------*/

.post-list {
	gap: 4px;
}

.post-item {
	padding: 4px 10px;
}

.post-item .custom-entry-content {
	gap: 12px;
}

.post-item .entry-title {
	margin-bottom: 2px;
	font-size: 17px;
	line-height: 1.25;
}

.post-item .entry-title .news-date {
	display: inline;
	margin: 0 8px 0 0;
	font-size: 13px;
	font-weight: 400;
	color: #6b6b6b;
	white-space: nowrap;
}

.post-item .entry-text p {
	font-size: 15px;
	line-height: 1.4;
}

.entry-header .entry-meta .news-source {
	word-break: break-all;
}

.sidebar-news-list .news-date {
	white-space: nowrap;
}

/* Текст о сайте в подвале */
.footer-text {
	max-width: 720px;
	margin: 6px auto 0;
	font-size: 14px;
	line-height: 1.5;
	color: #555;
	text-align: center;
}

/* 404: заголовок блока последних публикаций */
.not-found-latest {
	font-size: 22px;
}

/*--------------------------------------------------------------
# Шапка: одна строка — логотип, широкое меню, A−/A+, поиск
--------------------------------------------------------------*/

.inside-header {
	flex-wrap: nowrap;
	max-width: 1480px;
	padding-left: 20px;
	padding-right: 20px;
}

.main-navigation {
	margin-top: 0;
}

.main-navigation .main-menu {
	gap: 0;
}

.main-navigation .main-menu > li > a {
	white-space: nowrap;
}

.header-tools {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
}

.header-tools .a11y-controls {
	margin-left: 6px;
	gap: 0;
}

.header-tools .search-button {
	margin-left: 4px;
	padding: 0 6px;
}

.a11y-btn {
	min-width: 30px;
	padding: 0 5px;
}


@media (max-width: 768px) {
	.header-tools {
		display: none;
	}
}

/*--------------------------------------------------------------
# Страница 404
--------------------------------------------------------------*/

.nf-block {
	text-align: center;
}

.nf-code {
	font-weight: 800;
	line-height: 1;
	color: #e2e2e2;
}

.nf-title {
	line-height: 1.25;
}

.nf-text {
	color: #555;
}

.nf-search {
	display: flex;
	gap: 8px;
	max-width: 460px;
}

.nf-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	font: inherit;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 8px;
}

.nf-search button {
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: #222;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.nf-home {
	display: inline-block;
	border-radius: 6px;
	background-color: #ebebeb;
	text-decoration: none;
}

/*--------------------------------------------------------------
# Блок «время / автор / первоисточник»
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Строка под заголовком: время, автор, первоисточник — отдельные фрагменты
--------------------------------------------------------------*/

.entry-header .entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	background: none;
	border-radius: 0;
	font-size: 14px;
	color: #222;
}

.entry-header .entry-meta .news-date,
.entry-header .entry-meta .news-source {
	display: inline-block;
	margin: 0;
	padding: 5px 12px;
	font-size: 14px;
	line-height: 1.4;
	color: #222;
	background-color: #f3f3f3;
	border-radius: 6px;
}

/*--------------------------------------------------------------
# Страница 404: компактнее
--------------------------------------------------------------*/

.nf-block {
	padding: 14px 16px 8px;
}

.nf-code {
	font-size: 56px;
	letter-spacing: 3px;
}

.nf-title {
	margin: 2px 0 6px;
	font-size: 22px;
}

.nf-text {
	margin: 0 0 12px;
	font-size: 15px;
}

.nf-search {
	margin: 0 auto 10px;
}

.nf-search input[type="search"],
.nf-search button {
	padding: 8px 14px;
}

.nf-home {
	padding: 6px 16px;
}

.not-found-latest {
	margin: 14px 0 8px;
}

/*--------------------------------------------------------------
# Меню в одну строку + пункт «ещё» для того, что не помещается
--------------------------------------------------------------*/

.main-navigation {
	flex: 1 1 0;
	min-width: 0;
	margin-left: 16px;
}

.main-navigation.yn-fit {
	overflow: visible;
}

.main-navigation .main-menu {
	flex-wrap: nowrap;
	justify-content: flex-end;
}

.main-navigation .main-menu > li {
	flex: 0 0 auto;
}

.main-navigation .yn-more > ul {
	left: auto;
	right: 0;
	min-width: 190px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
}

.main-navigation .yn-more > ul li {
	display: block;
	float: none;
	width: 100%;
}

.main-navigation .yn-more > ul a {
	display: block;
	white-space: nowrap;
}

.main-navigation .yn-more:focus-within > ul {
	display: block;
	opacity: 1;
	pointer-events: auto;
	height: auto;
	overflow: visible;
}

.main-navigation .main-menu {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
}

/*--------------------------------------------------------------
# Меню компактнее, без стрелок; подпись к картинке; отступы подвала
--------------------------------------------------------------*/

.main-navigation li.menu-item-has-children > a::after {
	content: none;
}

.main-navigation .main-menu a {
	padding: 0 7px;
	font-size: 14px;
}

.news-figure figcaption.news-image-credit {
	line-height: 1.4;
	color: #666;
}

.inside-site-info {
	box-sizing: border-box;
	padding-left: 16px;
	padding-right: 16px;
}

/* Подпись автора изображения: крупнее и ближе к тексту */
.news-figure {
	margin-bottom: 0.5em;
}

.news-figure figcaption.news-image-credit {
	margin: 4px 0 0;
	font-size: 15px;
}

/* Ссылка на похожую новость внутри текста */
.news-content .news-related {
	margin: 14px 0;
	padding: 8px 12px;
	font-weight: 600;
	background-color: #f3f3f3;
	border-left: 3px solid #551a8b;
	border-radius: 0 6px 6px 0;
}

/* Инструменты в шапке: ближе к меню */
.header-tools {
	margin-left: 2px;
}

/* Логотип в шапке: большой файл не должен раздувать шапку */
.site-branding .site-logo {
	width: auto;
	max-height: 44px;
}

/* Картинки в карточках — строго одного размера (132×66, обрезка по центру).
   Раньше .post-image был flex-контейнером, и ссылка сжималась по ширине картинки,
   поэтому width:100% не работал и картинки получались разной ширины. */
.post-item .custom-entry-content .post-image {
	display: block;
	flex: 0 0 132px;
	width: 132px;
	height: 66px;
	overflow: hidden;
	border-radius: 5px;
}

.post-item .custom-entry-content .post-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.post-item .custom-entry-content .post-image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

@media (max-width: 600px) {
	.post-item .custom-entry-content .post-image {
		flex: none;
		width: 100%;
		height: auto;
		aspect-ratio: 2 / 1;
	}
}

/*--------------------------------------------------------------
# Ссылки в текстах новостей — примерно на 20% жирнее обычного текста
# (только внутри .news-content, на всех языках).
# font-weight 500 работает в системных шрифтах macOS, iOS и Android; в Segoe UI (Windows)
# веса 500 нет, поэтому добавлен тонкий контур -webkit-text-stroke, чтобы утолщение
# было видно везде. Блок «похожая новость» (.news-related) и заголовки h2/h3 остаются как были.
--------------------------------------------------------------*/

.news-content a {
	font-weight: 500;
	-webkit-text-stroke: 0.25px currentColor;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.news-content .news-related a,
.news-content h2 a,
.news-content h3 a {
	font-weight: inherit;
	-webkit-text-stroke: 0;
	text-decoration: none;
}

/*--------------------------------------------------------------
# Списки и цитаты в тексте новостей (только внутри .news-content)
# Маркеры ul — цветные точки, нумерация ol — цветные кружки с цифрой
# (учитываются start и reversed), цитата — карточка с акцентной линией и кавычкой.
# Размеры в em: всё масштабируется вместе с текстом (в том числе кнопками A− / A+).
--------------------------------------------------------------*/

.news-content ul,
.news-content ol {
	margin: 0 0 1.4em;
	padding: 0;
	list-style: none;
}

.news-content li {
	position: relative;
	margin: 0 0 .6em;
	padding-left: 1.9em;
}

.news-content li:last-child {
	margin-bottom: 0;
}

.news-content li p {
	margin: 0 0 .5em;
}

.news-content li p:last-child {
	margin-bottom: 0;
}

.news-content li > ul,
.news-content li > ol {
	margin: .6em 0 0;
}

/* Маркированный список */
.news-content ul > li::before {
	content: "";
	position: absolute;
	left: .3em;
	top: .62em;
	width: .5em;
	height: .5em;
	border-radius: 50%;
	background: #3b5bdb;
	box-shadow: 0 0 0 .2em rgba(59, 91, 219, .14);
}

/* Вложенный маркированный список: пустые кружки */
.news-content ul ul > li::before {
	background: transparent;
	box-shadow: none;
	border: 2px solid #3b5bdb;
	width: .42em;
	height: .42em;
	top: .66em;
}

/* Нумерованный список */
.news-content ol > li {
	padding-left: 2.6em;
	min-height: 1.8em;
}

.news-content ol > li::before {
	content: counter(list-item);
	position: absolute;
	left: 0;
	top: .08em;
	box-sizing: border-box;
	width: 2em;
	height: 2em;
	border-radius: 50%;
	background: #eef2ff;
	color: #3b5bdb;
	font-size: .82em;
	font-weight: 700;
	line-height: 2em;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

/* Обратная нумерация (<ol reversed>): кружки с цифрой в браузерах считают её нестабильно,
   поэтому здесь используются обычные маркеры списка, только в акцентном цвете */
.news-content ol[reversed] {
	list-style: decimal;
	padding-left: 1.9em;
}

.news-content ol[reversed] > li {
	padding-left: .35em;
	min-height: 0;
}

.news-content ol[reversed] > li::before {
	content: none;
}

.news-content ol[reversed] > li::marker {
	color: #3b5bdb;
	font-weight: 700;
}

/* Цитата */
.news-content blockquote {
	position: relative;
	margin: 1.7em 0;
	padding: 1.15em 1.5em 1.15em 3.6em;
	background: #f5f7ff;
	border: 0;
	border-left: 4px solid #3b5bdb;
	border-radius: 0 12px 12px 0;
	font-size: 1.04em;
	font-style: italic;
	line-height: 1.65;
	color: #2b2f45;
}

.news-content blockquote::before {
	content: "\201E";
	position: absolute;
	left: .22em;
	top: .02em;
	font: 700 3.6em/1 Georgia, "Times New Roman", serif;
	font-style: normal;
	color: #3b5bdb;
	opacity: .35;
	pointer-events: none;
}

.news-content blockquote p {
	margin: 0 0 .8em;
}

.news-content blockquote p:last-child,
.news-content blockquote > :last-child {
	margin-bottom: 0;
}

/* Автор цитаты: <cite> или <footer> в конце */
.news-content blockquote > cite,
.news-content blockquote > footer {
	display: block;
	margin-top: .8em;
	font-size: .84em;
	font-style: normal;
	font-weight: 600;
	color: #5b6280;
}

.news-content blockquote > cite::before,
.news-content blockquote > footer::before {
	content: "\2014\00a0";
}

.news-content blockquote footer cite {
	display: inline;
	margin: 0;
	font-size: inherit;
	font-style: normal;
}

@media (max-width: 600px) {
	.news-content blockquote {
		margin-left: 0;
		margin-right: 0;
		padding: 1em 1em 1em 2.9em;
	}

	.news-content blockquote::before {
		font-size: 3em;
		left: .2em;
	}
}

/* Подвал: разрешение на копирование материалов */
.footer-copy {
	font-size: 13px;
	color: #555;
}

/*--------------------------------------------------------------
# Метки достоверности (Oficialu / Gandas / Nutekinimas / Išleista / Atnaujinimas / Palyginimas / Apžvalga / Anonsas)
--------------------------------------------------------------*/

.news-badge {
	display: inline-block;
	padding: 2px 9px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .03em;
	text-transform: uppercase;
	white-space: nowrap;
	border-radius: 999px;
}

.news-badge.is-official {
	background: #e3f6ea;
	color: #17653a;
}

.news-badge.is-rumor {
	background: #fff1da;
	color: #8a5200;
}

.news-badge.is-leak {
	background: #fde6e6;
	color: #a42424;
}

/* Релиз — синяя, обновление — фиолетовая, сравнение — бирюзовая, обзор — серо-синяя, анонс — розовая
   (контраст текста к фону не ниже 6,5:1) */
.news-badge.is-release {
	background: #e4efff;
	color: #1d4f91;
}

.news-badge.is-update {
	background: #f0e9fb;
	color: #5a2a99;
}

.news-badge.is-comparison {
	background: #dcf3f2;
	color: #0b5559;
}

.news-badge.is-review {
	background: #e9ecf1;
	color: #3b4658;
}

.news-badge.is-announce {
	background: #fde8f2;
	color: #9a1b57;
}

/* В карточке списка: перед временем в заголовке */
.post-item .entry-title .news-badge {
	margin: 0 8px 0 0;
	vertical-align: 1px;
}

/* Под заголовком новости: в одной строке с временем и источником */
.entry-header .entry-meta .news-badge {
	padding: 5px 12px;
	font-size: 13px;
	border-radius: 6px;
}

/*--------------------------------------------------------------
# Кнопки под заголовком новости: «Klausyti», «Stabdyti», «Dalintis»
--------------------------------------------------------------*/

.news-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 6px 0 0;
}

.news-action {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 5px 12px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: #222;
	background: #f3f3f3;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

.news-action:hover {
	background: #e8ebfa;
}

.news-action:focus-visible {
	outline: 2px solid #3b5bdb;
	outline-offset: 2px;
}

.news-action svg {
	flex: none;
}

.news-action.is-active {
	background: #3b5bdb;
	color: #fff;
}

.news-action[hidden] {
	display: none;
}

/*--------------------------------------------------------------
# Полоса прогресса чтения (создаётся js/article.js)
--------------------------------------------------------------*/

.yn-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 99990;
	pointer-events: none;
}

.yn-progress-bar {
	height: 100%;
	background: #3b5bdb;
	transform: scaleX(0);
	transform-origin: 0 50%;
	will-change: transform;
}

body.admin-bar .yn-progress {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .yn-progress {
		top: 46px;
	}
}

/*--------------------------------------------------------------
# Хронология сюжета под текстом новости
--------------------------------------------------------------*/

.news-story {
	margin: 1.8em 0 .6em;
	padding: 16px 18px 4px;
	background: #f6f7fc;
	border-radius: 12px;
}

.news-story-title {
	margin: 0 0 14px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.news-story-title span {
	font-weight: 400;
	color: #5b6280;
}

.news-story-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.news-story-list li {
	position: relative;
	margin: 0;
	padding: 0 0 16px 26px;
	line-height: 1.4;
}

.news-story-list li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: .3em;
	box-sizing: border-box;
	width: 12px;
	height: 12px;
	background: #fff;
	border: 2px solid #aab4e6;
	border-radius: 50%;
	z-index: 1;
}

.news-story-list li::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 1.2em;
	bottom: -.2em;
	width: 2px;
	background: #d9deef;
}

.news-story-list li:last-child::after {
	display: none;
}

.news-story-list li.is-current::before {
	background: #3b5bdb;
	border-color: #3b5bdb;
	box-shadow: 0 0 0 4px rgba(59, 91, 219, .18);
}

.news-story-list time {
	display: block;
	margin-bottom: 2px;
	font-size: 13px;
	color: #6b7280;
}

.news-story-list a,
.news-story-list strong {
	font-size: 16px;
	font-weight: 500;
}

.news-story-list strong {
	font-weight: 700;
}

.news-story-now {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	font-size: 12px;
	color: #3b5bdb;
	background: #e8ebfa;
	border-radius: 999px;
	white-space: nowrap;
}

/*--------------------------------------------------------------
# Мобильное меню в две колонки (первая половина пунктов слева, вторая справа)
--------------------------------------------------------------*/

.mobile-menu-cols {
	display: flex;
	align-items: flex-start;
	gap: 0 12px;
	padding-bottom: 12px;
}

.mobile-menu-cols > ul {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 0;
}

/* в узкой колонке название может занять две строки: у пунктов есть вертикальные отступы */
#mobile-nav li a,
#mobile-nav-right li a {
	padding: 8px 12px;
	line-height: 20px;
	overflow-wrap: break-word;
}

/* ссылка пункта слева, стрелка подменю справа; название при необходимости переносится рядом со стрелкой, подменю — на всю ширину ниже */
#mobile-nav li.menu-item-has-children,
#mobile-nav-right li.menu-item-has-children {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}

#mobile-nav li.menu-item-has-children > a,
#mobile-nav-right li.menu-item-has-children > a {
	flex: 1 1 0;
	min-width: 0;
}

#mobile-nav li.menu-item-has-children > .sub-menu,
#mobile-nav-right li.menu-item-has-children > .sub-menu {
	flex: 0 0 100%;
}

.mobile-menu-cols .sub-menu {
	margin: 0;
	padding-left: 8px;
}

/*--------------------------------------------------------------
# Строка под заголовком в один ряд: метка, время, ссылка на источник
# Метка и время не сжимаются, домен источника при нехватке места обрезается «…»;
# на узких экранах подпись «Šaltinis:» скрывается, остаётся домен.
--------------------------------------------------------------*/

.entry-header .entry-meta {
	flex-wrap: nowrap;
	min-width: 0;
}

.entry-header .entry-meta .news-badge,
.entry-header .entry-meta .news-date {
	flex: none;
	white-space: nowrap;
}

.entry-header .entry-meta .news-source {
	display: inline-flex;
	gap: .35em;
	flex: 0 1 auto;
	min-width: 0;
	white-space: nowrap;
	word-break: normal;
}

.entry-header .entry-meta .news-source-label {
	flex: none;
}

.entry-header .entry-meta .news-source a {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 480px) {
	.entry-header .entry-meta {
		gap: 5px;
	}

	.entry-header .entry-meta .news-badge,
	.entry-header .entry-meta .news-date,
	.entry-header .entry-meta .news-source {
		padding: 4px 8px;
		font-size: 13px;
	}

	.entry-header .entry-meta .news-source-label {
		display: none;
	}
}

/* самые узкие экраны (320–360 px): чуть мельче, чтобы в одном ряду осталось место для домена */
@media (max-width: 360px) {
	.entry-header .entry-meta {
		gap: 4px;
	}

	.entry-header .entry-meta .news-badge,
	.entry-header .entry-meta .news-date,
	.entry-header .entry-meta .news-source {
		padding: 4px 6px;
		font-size: 12px;
	}

	.entry-header .entry-meta .news-source {
		min-width: 34px;
	}
}

/* Ряд кнопок: «Klausyti» под заголовком скрыт, пока нет литовского голоса; «Dalintis» под текстом */
.news-actions[hidden] {
	display: none;
}

.news-share {
	margin: 18px 0 0;
}

/* Картинки внутри текста с подписью «Autorius: …» (как у главной картинки) */
.news-content .news-figure img,
.news-content .wp-block-image img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.news-content figcaption.news-image-credit {
	margin: 4px 0 0;
	font-size: 15px;
	line-height: 1.4;
	color: #666;
	text-align: left;
}

/*--------------------------------------------------------------
# Исправления по результатам аудита (версия 1.1.0)
--------------------------------------------------------------*/

/* Видео и вставки в тексте новости: не шире колонки (стили блоков WordPress в теме отключены) */
.news-content iframe,
.news-content video,
.news-content embed,
.news-content object {
	max-width: 100%;
}

.news-content iframe[src*="youtube"],
.news-content iframe[src*="youtu.be"],
.news-content iframe[src*="vimeo"] {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}

.news-content .wp-block-embed {
	margin: 1.4em 0;
}

.news-content .wp-block-embed__wrapper {
	position: relative;
	max-width: 100%;
}

.news-content .wp-has-aspect-ratio .wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.news-content .wp-embed-aspect-21-9 .wp-block-embed__wrapper { aspect-ratio: 21 / 9; }
.news-content .wp-embed-aspect-18-9 .wp-block-embed__wrapper { aspect-ratio: 18 / 9; }
.news-content .wp-embed-aspect-16-9 .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.news-content .wp-embed-aspect-4-3 .wp-block-embed__wrapper { aspect-ratio: 4 / 3; }
.news-content .wp-embed-aspect-1-1 .wp-block-embed__wrapper { aspect-ratio: 1 / 1; }
.news-content .wp-embed-aspect-9-16 .wp-block-embed__wrapper { aspect-ratio: 9 / 16; }

/* Галерея и подписи блоков WordPress */
.news-content .wp-block-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 1.4em 0;
}

.news-content .wp-block-gallery > .wp-block-image {
	flex: 1 1 calc(50% - 10px);
	min-width: 0;
	margin: 0;
}

.news-content .wp-block-gallery.columns-3 > .wp-block-image,
.news-content .wp-block-gallery.columns-4 > .wp-block-image {
	flex-basis: calc(33.333% - 10px);
}

.news-content .wp-block-image figcaption,
.news-content .wp-element-caption {
	margin: 4px 0 0;
	font-size: 15px;
	line-height: 1.4;
	color: #666;
}

/* Сайдбар: длинные слова не вылезают за колонку; дата-метка при нехватке места уходит над заголовком */
.middle-right-bottom {
	min-width: 0;
}

.sidebar-news-list .news-item {
	flex-wrap: wrap;
}

.sidebar-news-list .news-item a {
	flex: 1 1 8em;
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Прокручиваемая таблица доступна с клавиатуры (tabindex ставит js/a11y.js) */
.table-wrap:focus-visible {
	outline: 2px solid #3b5bdb;
	outline-offset: 2px;
}

/* Блок #content получает фокус по ссылке «Pereiti prie turinio» — рамка вокруг всей страницы не нужна */
#content[tabindex="-1"]:focus {
	outline: none;
}

/* Название сайта в узкой шапке сжимается с «…», а не выталкивает кнопки за экран */
.site-branding-container,
.site-branding {
	min-width: 0;
}

.site-branding .main-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Версия для слабовидящих на телефоне: увеличивается текст страницы, а шапка и открытое меню остаются обычного размера —
   иначе кнопки A−/A+ и меню выходят за край экрана и становятся недоступны */
@media (max-width: 768px) {
	html[data-a11y-font="1"] .site-header,
	html[data-a11y-font="1"] .mobile-drop-navigation {
		zoom: 0.8;
	}

	html[data-a11y-font="2"] .site-header,
	html[data-a11y-font="2"] .mobile-drop-navigation {
		zoom: 0.6667;
	}

	html[data-a11y-font="3"] .site-header,
	html[data-a11y-font="3"] .mobile-drop-navigation {
		zoom: 0.5714;
	}
}

/* Крупный шрифт: строка «метка / время / источник» может переноситься */
html[data-a11y-font="2"] .entry-header .entry-meta,
html[data-a11y-font="3"] .entry-header .entry-meta {
	flex-wrap: wrap;
}
