/* CathInfo Captcha — simple guest human-verification gate */

/* Challenge page: get the panel to the top of the viewport. Push the
   challenge above the guest notice and any following content, and drop
   the ad + wishlist box on this action — none of it belongs before the
   human check. */
body.action_cathinfo_captcha section.content {
	display: flex !important;
	flex-direction: column;
}

body.action_cathinfo_captcha .cathinfo_captcha {
	order: -1;
	margin-top: 0.75rem;
}

/* Wide layout would still sit beside the RTBI column; keep the panel full-width. */
body.action_cathinfo_captcha section.content > .cathinfo_captcha {
	max-width: 40rem;
	width: 100%;
	align-self: center;
}

body.action_cathinfo_captcha #cathinfo_header_news,
body.action_cathinfo_captcha section.content > ins.adsbygoogle,
body.action_cathinfo_captcha section.content > script + ins.adsbygoogle {
	display: none !important;
}

.cathinfo_captcha {
	margin: 0 auto;
	max-width: 34rem;
	padding: 0 1rem;
}

.cathinfo_captcha_panel {
	padding: 1.75rem 1.75rem 1.5rem;
	background: linear-gradient(180deg, #f7fbff 0%, #eaf2fa 100%);
	border: 2px solid #c9d8e8;
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(30, 77, 123, 0.18);
	text-align: center;
}

.cathinfo_captcha_heading {
	margin-bottom: 1rem;
}

.cathinfo_captcha_title {
	margin: 0 0 0.35rem;
	font-size: 1.5rem;
	font-weight: 800;
	color: #1e4d7b;
}

.cathinfo_captcha_text {
	margin: 0 0 1.25rem;
	font-size: 0.98rem;
	line-height: 1.5;
	color: #33475c;
}

.cathinfo_captcha_question {
	margin: 0 0 1.1rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: #16233a;
}

.cathinfo_captcha_field {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	justify-content: center;
	align-items: center;
	margin: 0;
}

.cathinfo_captcha_field label {
	margin: 0 0.25rem 0 0;
	font-weight: 700;
	color: #33475c;
}

.cathinfo_captcha_field input[type="text"] {
	width: min(9rem, 70vw);
	padding: 0.55rem 0.7rem;
	font-size: 1.05rem;
	text-align: center;
	border: 2px solid #9db9cf;
	border-radius: 8px;
	background: #fff;
	color: #16233a;
}

.cathinfo_captcha_field input[type="text"]:focus {
	outline: none;
	border-color: #1e4d7b;
	box-shadow: 0 0 0 3px rgba(30, 77, 123, 0.18);
}

/* The AdminLTE/Bootstrap admin skin ships button rules that fix height and
   line-height on every <button> (e.g. height: 33.6px; line-height: 33.6px),
   which clips our two-line-height text at the bottom. Force our own metrics
   with !important — the theme sets them as defaults, not opt-ins. */
.cathinfo_captcha_submit {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: auto !important;
	min-height: 0 !important;
	line-height: 1.2 !important;
	box-sizing: border-box !important;
	padding: 0.75rem 2.2rem !important;
	margin: 0 !important;
	font-family: inherit !important;
	font-size: 1.05rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.01em !important;
	color: #fff !important;
	background: linear-gradient(180deg, #2f6ca8 0%, #1e4d7b 100%) !important;
	border: 1px solid #163a5c !important;
	border-radius: 999px !important;
	text-shadow: none !important;
	box-shadow: 0 3px 10px rgba(22, 58, 92, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
	cursor: pointer !important;
	text-transform: none !important;
	transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
	appearance: auto;
}

.cathinfo_captcha_submit::before {
	content: '\2713' !important;
	display: inline-block;
	margin-right: 0.55rem;
	font-size: 0.95em;
	font-weight: 900;
	transform: translateY(-0.03em);
}

.cathinfo_captcha_submit:hover,
.cathinfo_captcha_submit:focus {
	background: linear-gradient(180deg, #377bbf 0%, #256090 100%) !important;
	border-color: #163a5c !important;
	color: #fff !important;
	box-shadow: 0 5px 14px rgba(22, 58, 92, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
	transform: translateY(-1px);
}

.cathinfo_captcha_submit:active {
	background: linear-gradient(180deg, #1e4d7b 0%, #163a5c 100%) !important;
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(22, 58, 92, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.cathinfo_captcha_submit:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(30, 77, 123, 0.45);
}

@media (max-width: 480px) {
	.cathinfo_captcha_submit {
		width: 100%;
	}
}

.cathinfo_captcha_honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cathinfo_captcha_error {
	margin: 1rem 0 0;
	padding: 0.6rem 0.8rem;
	font-size: 0.92rem;
	font-weight: 700;
	color: #8f1d12;
	background: #fdecea;
	border: 1px solid #f3b7b0;
	border-radius: 8px;
}
