/*
Theme Name: OceanWP Child
Theme URI: https://tok-show.ru
Description: Child theme for tok-show.ru customizations on top of OceanWP.
Author: Codex
Template: oceanwp
Version: 1.0.0
Text Domain: oceanwp-child
*/

/*
 * Fail-safe for the forum CTA modal:
 * on some devices/browsers the modal root becomes visible but the
 * `is-visible` class does not land in time, leaving only the dark overlay.
 * When the modal is open (hidden attribute removed), force the dialog itself
 * to be visible as well.
 */
.tsfs-forum-modal:not([hidden]) .tsfs-forum-modal__dialog {
	transform: translateY(0);
	opacity: 1;
}

.tok-show-forum-surface .page-header,
.tok-show-forum-surface .page-header-background-image,
.tok-show-forum-surface .centered-page-header,
.tok-show-forum-surface .background-image-page-header,
.tok-show-forum-surface .site-breadcrumbs,
.tok-show-forum-surface #site-header,
.tok-show-forum-surface #searchform-header-replace {
	display: none !important;
}

.tok-show-forum-surface {
	background: #f3efe6;
}

.tok-show-forum-surface #wrap,
.tok-show-forum-surface #main,
.tok-show-forum-surface #content-wrap,
.tok-show-forum-surface .content-area,
.tok-show-forum-surface #primary {
	background: #fff;
}

.tok-show-forum-surface #main {
	padding-top: 0;
	padding-bottom: 120px;
}

.tok-show-forum-surface .transparent-header #wrap,
.tok-show-forum-surface .has-transparent-header #wrap {
	padding-top: 0 !important;
}

.tok-show-forum-surface .tsfs-forum-masthead-wrap {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 18px 16px 0;
	background: linear-gradient(180deg, rgba(243, 239, 230, 0.96), rgba(243, 239, 230, 0.72) 72%, rgba(243, 239, 230, 0));
	backdrop-filter: blur(10px);
}

.tok-show-forum-surface .tsfs-forum-masthead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: min(1240px, 100%);
	margin: 0 auto;
	padding: 16px 20px;
	border: 1px solid #d7d0c3;
	background: rgba(255, 252, 246, 0.94);
	box-shadow: 0 12px 30px rgba(24, 22, 19, 0.06);
}

.tok-show-forum-surface .tsfs-forum-masthead__brand {
	display: grid;
	gap: 4px;
	min-width: 0;
	color: #1f1f1f;
	text-decoration: none;
}

.tok-show-forum-surface .tsfs-forum-masthead__eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #746d63;
}

.tok-show-forum-surface .tsfs-forum-masthead__title {
	max-width: 20ch;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
}

.tok-show-forum-surface .tsfs-forum-masthead__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.tok-show-forum-surface .tsfs-forum-masthead__link,
.tok-show-forum-surface .tsfs-forum-masthead__search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 9px 14px;
	border: 1px solid #d7d0c3;
	background: #f5efe2;
	color: #1f1f1f;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.tok-show-forum-surface .tsfs-forum-masthead__search {
	background: #1f2229;
	border-color: #1f2229;
	color: #fff;
}

.tok-show-forum-surface .tsfs-forum-masthead__link.is-active,
.tok-show-forum-surface .tsfs-forum-masthead__link:hover,
.tok-show-forum-surface .tsfs-forum-masthead__search:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(24, 22, 19, 0.08);
}

.tok-show-forum-surface .tsfs-forum-masthead__link.is-active {
	background: #ece5d6;
}

.tok-show-forum-surface .container,
.tok-show-forum-surface .tsfs-section,
.tok-show-forum-surface .tsfs-hero {
	max-width: 1240px;
}

.tok-show-forum-surface .centerfoot {
	width: 100%;
	margin: 0;
	background: #181818;
}

.tok-show-forum-surface .centerfoot .container,
.tok-show-forum-surface .centerfoot .conk {
	max-width: 1160px;
	margin: 0 auto;
}

.tok-show-forum-surface .tsfs-forum-modal__launcher {
	right: 16px;
	bottom: 16px;
	min-height: 52px;
	padding: 12px 18px;
	font-size: 12px;
}

@media (max-width: 1024px) {
	.tok-show-forum-surface .tsfs-forum-masthead__title {
		font-size: 22px;
	}
}

@media (max-width: 768px) {
	.tok-show-forum-surface .tsfs-forum-masthead-wrap {
		padding: 6px 6px 0;
	}

	.tok-show-forum-surface .tsfs-forum-masthead {
		padding: 10px;
		gap: 10px;
		flex-direction: column;
		align-items: flex-start;
	}

	.tok-show-forum-surface .tsfs-forum-masthead__eyebrow {
		font-size: 12px;
		letter-spacing: 0.16em;
	}

	.tok-show-forum-surface .tsfs-forum-masthead__title {
		max-width: 16ch;
		font-size: 18px;
		line-height: 1.08;
	}

	.tok-show-forum-surface .tsfs-forum-masthead__nav {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
		gap: 6px;
	}

	.tok-show-forum-surface .tsfs-forum-masthead__link,
	.tok-show-forum-surface .tsfs-forum-masthead__search {
		width: auto;
		min-height: 44px;
		padding: 9px 12px;
		font-size: 12px;
		letter-spacing: 0.05em;
		flex: 0 0 auto;
	}

	.tok-show-forum-surface .tsfs-forum-modal__launcher {
		left: auto;
		right: 10px;
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		width: auto;
		max-width: calc(100vw - 20px);
		min-height: 46px;
		padding: 11px 16px;
		border-radius: 999px;
		font-size: 12px;
		box-shadow: 0 10px 24px rgba(18, 18, 18, 0.24);
	}
}
