/* Shared password gate for private news areas */

.ht-np-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ht-np-gate {
	--np-accent: #2f6f5e;
	--np-accent-hover: #265a4c;
	--np-surface: #ffffff;
	--np-border: #d5dbd7;
	--np-text: #1a211e;
	--np-muted: #5c6b64;
	--np-danger: #b42318;
	--np-font: "Segoe UI", system-ui, -apple-system, sans-serif;

	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: var(--np-font);
}

.ht-np-gate[hidden] {
	display: none;
}

.ht-np-gate__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 22, 20, 0.72);
	backdrop-filter: blur(4px);
}

.ht-np-gate__modal {
	position: relative;
	width: 100%;
	max-width: 360px;
	background: var(--np-surface);
	border-radius: 14px;
	padding: 32px 28px 28px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
	animation: ht-np-fade-in 0.25s ease;
	color: var(--np-text);
}

@keyframes ht-np-fade-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ht-np-gate__title {
	margin: 0 0 8px;
	font-size: 1.35rem;
	font-weight: 650;
	letter-spacing: -0.02em;
	color: var(--np-text);
}

.ht-np-gate__hint {
	margin: 0 0 20px;
	font-size: 0.95rem;
	color: var(--np-muted);
}

.ht-np-gate__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ht-np-gate__input {
	width: 100%;
	box-sizing: border-box;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--np-border);
	border-radius: 8px;
	font-size: 1rem;
	letter-spacing: 0.12em;
	background: #f7f8f7;
	color: var(--np-text);
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ht-np-gate__input:focus {
	border-color: var(--np-accent);
	box-shadow: 0 0 0 3px rgba(47, 111, 94, 0.18);
	background: #fff;
}

.ht-np-gate__input.is-invalid {
	border-color: var(--np-danger);
	box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.ht-np-gate__error {
	margin: 0;
	font-size: 0.875rem;
	color: var(--np-danger);
}

.ht-np-gate__btn {
	height: 46px;
	border: 0;
	border-radius: 8px;
	background: var(--np-accent);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ht-np-gate__btn:hover {
	background: var(--np-accent-hover);
}

.ht-np-gate__btn:active {
	transform: translateY(1px);
}

/* Hide protected content until unlocked */
#ht-private-content[hidden],
#ht-np-app[hidden] {
	display: none !important;
}

body.ht-news-locked .ht-news-archive,
body.ht-news-locked .ht-news-single {
	min-height: 40vh;
}
