/*!
Theme Name: EveryOne
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: EveryOne
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

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

EveryOne is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

/*--------------------------------------------------------------
# Content lists & tables (site-wide)
--------------------------------------------------------------*/

/* ----- Lists: .page-text, .page-content, .page-section, article (excludes .menu, .footer-menu) ----- */
.page-text ul,
.page-content ul,
.page-section ul,
article ul,
.page-text-content ul,
.contacts-content ul:not(.footer-menu),
.cont-info ul {
	list-style: none !important;
	padding-left: 0 !important;
	margin: 1em 0 1.25em;
}

.page-text ul li,
.page-content ul li,
.page-section ul li,
article ul li,
.page-text-content ul li,
.contacts-content ul:not(.footer-menu) li,
.cont-info ul li {
	position: relative;
	padding-left: 1.75em;
	margin-bottom: 0.5em;
	line-height: 1.6;
}

.page-text ul li::before,
.page-content ul li::before,
.page-section ul li::before,
article ul li::before,
.page-text-content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #1d6fff;
	box-shadow: 0 0 0 2px rgba(29, 111, 255, 0.35);
}

.page-text ul li a,
.page-content ul li a,
.page-section ul li a,
article ul li a {
	text-decoration: none;
}

.page-text ul li a:hover,
.page-content ul li a:hover,
.page-section ul li a:hover,
article ul li a:hover {
	text-decoration: underline;
}

/* Numbered lists */
.page-text ol,
.page-content ol,
.page-section ol,
article ol,
.page-text-content ol {
	list-style: none !important;
	padding-left: 0 !important;
	margin: 1em 0 1.25em;
	counter-reset: item;
}

.page-text ol li,
.page-content ol li,
.page-section ol li,
article ol li,
.page-text-content ol li {
	position: relative;
	padding-left: 2.25em;
	margin-bottom: 0.5em;
	line-height: 1.6;
	counter-increment: item;
}

.page-text ol li::before,
.page-content ol li::before,
.page-section ol li::before,
article ol li::before,
.page-text-content ol li::before {
	content: counter(item) ".";
	position: absolute;
	left: 0;
	font-weight: 600;
	color: #1d6fff;
	min-width: 1.5em;
}

/* ----- Content tables (all pages) ----- */
.page-text table,
.page-content table,
.page-section table,
article table,
.responsible-gambling table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 0.95rem;
	line-height: 1.5;
	background: rgba(15, 23, 42, 0.6);
	border: 1px solid rgba(29, 111, 255, 0.25);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Таблицы .responsible-gambling — светлый фон, чёрный текст для читаемости */
.responsible-gambling table {
	background: #ffffff !important;
	color: #000000 !important;
	border: 1px solid #dcdcdc;
}

.page-text table thead,
.page-content table thead,
.page-section table thead,
article table thead,
.responsible-gambling table thead {
	background: linear-gradient(135deg, rgba(29, 111, 255, 0.35) 0%, rgba(0, 194, 255, 0.2) 100%);
}

.page-text table th,
.page-content table th,
.page-section table th,
article table th,
.responsible-gambling table th {
	padding: 14px 18px;
	text-align: left;
	font-weight: 600;
	color: #f1f5f9;
	border-bottom: 2px solid rgba(29, 111, 255, 0.5);
}

/* Таблицы .responsible-gambling — светлый фон, чёрный текст */
.responsible-gambling table thead th {
	background: #f4f6f8 !important;
	color: #000000 !important;
	border-bottom: 1px solid #dcdcdc;
}

.responsible-gambling table th {
	color: #000000 !important;
}

.page-text table td,
.page-content table td,
.page-section table td,
article table td,
.responsible-gambling table td {
	padding: 12px 18px;
	border-bottom: 1px solid rgba(226, 232, 240, 0.12);
	color: #000000 !important;
	vertical-align: top;
}

.responsible-gambling table td {
	color: #000000 !important;
	border-bottom: 1px solid #e2e8f0;
}

.responsible-gambling table tbody tr:nth-child(even) {
	background: #fafafa;
}

.responsible-gambling table tbody tr:hover {
	background: #f0f4f8;
}

.page-text table tbody tr:last-child td,
.page-content table tbody tr:last-child td,
.page-section table tbody tr:last-child td,
article table tbody tr:last-child td,
.responsible-gambling table tbody tr:last-child td {
	border-bottom: none;
}

.page-text table tbody tr:nth-child(even),
.page-content table tbody tr:nth-child(even),
.page-section table tbody tr:nth-child(even),
article table tbody tr:nth-child(even),
.responsible-gambling table tbody tr:nth-child(even) {
	background: rgba(29, 111, 255, 0.06);
}

.page-text table tbody tr:hover,
.page-content table tbody tr:hover,
.page-section table tbody tr:hover,
article table tbody tr:hover,
.responsible-gambling table tbody tr:hover {
	background: rgba(29, 111, 255, 0.12);
}

.page-text table a,
.page-content table a,
.page-section table a,
article table a,
.responsible-gambling table a {
	color: #7dd3fc;
	text-decoration: none;
}

.responsible-gambling table a {
	color: #0066cc !important;
	text-decoration: underline;
}

.page-text table a:hover,
.page-content table a:hover,
.page-section table a:hover,
article table a:hover,
.responsible-gambling table a:hover {
	text-decoration: underline;
	color: #bae6fd;
}

.responsible-gambling table a:hover {
	color: #004499;
}

/* Mobile: table as cards with data-label */
@media (max-width: 768px) {
	.page-text table,
	.page-content table,
	.page-section table,
	article table,
	.responsible-gambling table {
		display: block;
		background: transparent;
		border: none;
		box-shadow: none;
	}

	.page-text table thead,
	.page-content table thead,
	.page-section table thead,
	article table thead,
	.responsible-gambling table thead {
		display: none;
	}

	.page-text table tbody,
	.page-content table tbody,
	.page-section table tbody,
	article table tbody,
	.responsible-gambling table tbody {
		display: block;
	}

	.page-text table tr,
	.page-content table tr,
	.page-section table tr,
	article table tr,
	.responsible-gambling table tr {
		display: block;
		margin-bottom: 1rem;
		padding: 1rem;
		background: rgba(15, 23, 42, 0.8);
		border: 1px solid rgba(29, 111, 255, 0.25);
		border-radius: 10px;
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
	}

	.responsible-gambling table tr {
		background: #ffffff;
		border: 1px solid #dcdcdc;
		color: #000000;
	}

	.page-text table td,
	.page-content table td,
	.page-section table td,
	article table td,
	.responsible-gambling table td {
		display: block;
		border: none;
		padding: 6px 0 8px;
	}

	.responsible-gambling table td {
		color: #000000;
	}

	.page-text table td::before,
	.page-content table td::before,
	.page-section table td::before,
	article table td::before,
	.responsible-gambling table td::before {
		content: attr(data-label);
		display: block;
		font-weight: 600;
		margin-bottom: 4px;
		color: #93c5fd;
		font-size: 0.85em;
	}

	.responsible-gambling table td::before {
		color: #000000;
	}

	.page-text table td:first-child,
	.page-content table td:first-child,
	.page-section table td:first-child,
	article table td:first-child {
		padding-top: 0;
	}
}