/* =========================================================
   TNE ACCESS EXPERIENCE
   Age declaration + native WordPress account access
   ========================================================= */

/* ---------- 18+ declaration ---------- */

/* Cache-safe gate visibility. The gate is visible by default until the
   browser confirms a prior 18+ acceptance cookie. */
html.tne-age-gate-accepted .tne-age-gate-overlay,
html.tne-age-gate-accepted .tne-age-gate-wrapper {
	display: none !important;
}

html.tne-age-gate-pending,
html.tne-age-gate-pending body {
	overflow: hidden !important;
}

.tne-age-gate-overlay {
	position: fixed;
	inset: 0;
	z-index: 999997;
	background: rgba(4, 4, 6, 0.82);
	backdrop-filter: blur(14px) saturate(0.75);
	-webkit-backdrop-filter: blur(14px) saturate(0.75);
}

.tne-age-gate-wrapper {
	position: fixed;
	inset: 0;
	z-index: 999998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.tne-age-gate {
	position: relative;
	width: min(620px, 100%);
	padding: 46px;
	border: 1px solid rgba(214, 179, 106, 0.20);
	border-radius: 26px;
	background:
		radial-gradient(circle at 8% 4%, rgba(151, 22, 58, 0.18), transparent 36%),
		linear-gradient(145deg, rgba(25, 20, 25, 0.98), rgba(10, 12, 17, 0.99));
	box-shadow: 0 36px 100px rgba(0, 0, 0, 0.66);
	color: #f7f3f5;
	box-sizing: border-box;
}

.tne-age-gate-kicker {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	margin: 0 0 28px;
	color: #c9c0c6;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.tne-age-gate-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: 999px;
	background: rgba(255,255,255,0.045);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0;
	box-sizing: border-box;
}

.tne-age-gate h2 {
	margin: 0 0 18px;
	color: #fff;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(42px, 7vw, 64px);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.035em;
}

.tne-age-gate-copy {
	max-width: 500px;
	margin: 0;
	color: #c7bec4;
	font-size: 18px;
	line-height: 1.65;
}

.tne-age-gate-copy strong {
	color: #f3edf1;
	font-weight: 700;
}

.tne-age-gate-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 32px;
}

.tne-age-gate-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 22px;
	border-radius: 16px;
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	transition: transform .18s ease, border-color .18s ease, background .18s ease;
	box-sizing: border-box;
}

.tne-age-gate-action:hover {
	transform: translateY(-1px);
}

.tne-age-gate-enter {
	border: 1px solid rgba(255, 117, 145, 0.34);
	background: linear-gradient(180deg, #c31946 0%, #981133 100%);
	color: #fff;
	box-shadow: 0 14px 34px rgba(157, 16, 51, 0.25);
}

.tne-age-gate-leave {
	border: 1px solid rgba(255,255,255,0.17);
	background: rgba(255,255,255,0.025);
	color: #f5eff3;
}

.tne-age-gate-note {
	margin: 18px 0 0;
	color: #817780;
	font-size: 12px;
	line-height: 1.5;
}

body.tne-age-gate-open {
	overflow: hidden !important;
}

/* Nothing should float above the age declaration. */
html.tne-age-gate-pending .tne-floating-admin-contact,
body.tne-age-gate-open .tne-floating-admin-contact {
	display: none !important;
}

/* Neutralise the parent theme's legacy age-gate rules when our template is active. */
.tne-age-gate-wrapper.tosdisclaimer-wrapper,
.tne-age-gate-overlay.tosdisclaimer-overlay {
	width: auto;
	height: auto;
	margin: 0;
}

/* ---------- WordPress login ---------- */

body.login {
	min-height: 100vh;
	background:
		radial-gradient(circle at 12% 10%, rgba(143, 18, 53, 0.22), transparent 34%),
		radial-gradient(circle at 92% 100%, rgba(57, 65, 99, 0.15), transparent 32%),
		#09090b !important;
}

body.login #login {
	width: min(470px, calc(100% - 32px)) !important;
	padding: 36px 0 42px !important;
}

body.login .wp-login-logo {
	margin: 0 0 18px !important;
}

body.login .wp-login-logo a {
	height: 76px !important;
}

body.login .tne-login-intro {
	margin: 0 0 24px;
	text-align: left;
}

body.login .tne-login-eyebrow {
	display: block;
	margin-bottom: 10px;
	color: #d8b85f;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
}

body.login .tne-login-intro h1 {
	margin: 0 0 10px !important;
	color: #fff !important;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
	font-size: 40px !important;
	font-weight: 780 !important;
	line-height: 1.05 !important;
	letter-spacing: -0.035em !important;
	text-align: left !important;
}

body.login .tne-login-intro p {
	margin: 0;
	color: #aca2a9;
	font-size: 16px;
	line-height: 1.55;
}

body.login form {
	margin-top: 0 !important;
	padding: 28px !important;
	border: 1px solid rgba(255,255,255,0.09) !important;
	border-radius: 22px !important;
	background:
		linear-gradient(145deg, rgba(28, 23, 28, 0.98), rgba(16, 16, 20, 0.99)) !important;
	box-shadow: 0 28px 70px rgba(0,0,0,.48) !important;
}

body.login form .input,
body.login input[type='text'],
body.login input[type='email'],
body.login input[type='password'] {
	height: 54px !important;
	margin-top: 8px !important;
	border: 1px solid rgba(255,255,255,.13) !important;
	border-radius: 13px !important;
	background: #111218 !important;
	color: #fff !important;
	font-size: 16px !important;
	box-shadow: none !important;
}

body.login label {
	color: #d5ccd1 !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	letter-spacing: .07em;
	text-transform: uppercase;
}

body.login .forgetmenot label {
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0;
	text-transform: none;
}

body.login #wp-submit {
	height: 52px !important;
	border-radius: 14px !important;
	background: linear-gradient(180deg, #c31946 0%, #981133 100%) !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	box-shadow: 0 13px 28px rgba(151,17,51,.24) !important;
}

body.login #nav,
body.login #backtoblog {
	color: #8f858c !important;
}

body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-page-link a {
	color: #a99fa6 !important;
}

body.login #nav a:hover,
body.login #backtoblog a:hover,
body.login .privacy-policy-page-link a:hover {
	color: #e3c673 !important;
}

body.login .message,
body.login #login_error,
body.login .success {
	margin: 0 0 18px !important;
	padding: 16px 18px !important;
	border: 1px solid rgba(255, 104, 124, .22) !important;
	border-left: 4px solid #ff687c !important;
	border-radius: 14px !important;
	background: #17171d !important;
	color: #d8cfd4 !important;
	box-shadow: none !important;
}

@media screen and (max-width: 600px) {
	/*
	 * Keep the declaration visually balanced inside the usable mobile
	 * viewport instead of pinning it to the bottom like a large sheet.
	 */
	.tne-age-gate-wrapper {
		align-items: center;
		justify-content: center;
		padding:
			max(14px, env(safe-area-inset-top))
			12px
			max(14px, env(safe-area-inset-bottom));
	}

	.tne-age-gate {
		width: 100%;
		max-width: 440px;
		max-height: calc(100dvh - 28px);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 28px 20px 22px;
		border-radius: 22px;
		text-align: center;
	}

	.tne-age-gate-kicker {
		justify-content: center;
		margin-bottom: 18px;
		font-size: 11px;
	}

	.tne-age-gate-badge {
		min-width: 48px;
		height: 36px;
	}

	.tne-age-gate h2 {
		margin-bottom: 14px;
		font-size: clamp(36px, 10vw, 42px);
		line-height: 1;
	}

	.tne-age-gate-copy {
		max-width: 360px;
		margin-inline: auto;
		font-size: 15px;
		line-height: 1.55;
	}

	.tne-age-gate-actions {
		grid-template-columns: 1fr;
		gap: 10px;
		margin-top: 24px;
	}

	.tne-age-gate-action {
		min-height: 52px;
		border-radius: 15px;
	}

	.tne-age-gate-note {
		margin-top: 16px;
		font-size: 11px;
		line-height: 1.45;
	}

	body.login #login {
		width: calc(100% - 24px) !important;
		padding-top: 24px !important;
	}

	body.login .tne-login-intro h1 {
		font-size: 34px !important;
	}

	body.login form {
		padding: 22px 18px !important;
		border-radius: 18px !important;
	}
}
