/* News Panel — app shell UI (password gate styles live in news-gate.css) */

body.page-template-page-news-panel,
body.page-template-page-news-panel-php {
	margin: 0;
	background: #e8ebe9;
}

body.page-template-page-news-panel .minimal-content,
body.page-template-page-news-panel-php #ht-news-panel {
	min-height: 100vh;
}

.ht-np {
	--np-bg: #e8ebe9;
	--np-sidebar: #1c2421;
	--np-sidebar-text: #c5cec9;
	--np-sidebar-active: #ffffff;
	--np-accent: #2f6f5e;
	--np-accent-hover: #265a4c;
	--np-surface: #ffffff;
	--np-border: #d5dbd7;
	--np-text: #1a211e;
	--np-muted: #5c6b64;
	--np-radius: 10px;
	--np-sidebar-w: 240px;
	--np-font: "Segoe UI", system-ui, -apple-system, sans-serif;

	font-family: var(--np-font);
	color: var(--np-text);
	min-height: 100vh;
	background: var(--np-bg);
}

.ht-np-app {
	display: flex;
	min-height: 100vh;
}

.ht-np-app[hidden] {
	display: none;
}

.ht-np-sidebar {
	width: var(--np-sidebar-w);
	flex-shrink: 0;
	background: var(--np-sidebar);
	color: var(--np-sidebar-text);
	display: flex;
	flex-direction: column;
	padding: 24px 14px;
	box-sizing: border-box;
}

.ht-np-sidebar__brand {
	padding: 4px 12px 28px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--np-sidebar-active);
	opacity: 0.9;
}

.ht-np-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.ht-np-nav__item {
	display: block;
	width: 100%;
	text-align: left;
	border: 0;
	background: transparent;
	color: inherit;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.ht-np-nav__item:hover {
	background: rgba(255, 255, 255, 0.06);
	color: var(--np-sidebar-active);
}

.ht-np-nav__item.is-active {
	background: rgba(255, 255, 255, 0.12);
	color: var(--np-sidebar-active);
}

.ht-np-sidebar__logout {
	margin-top: auto;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: transparent;
	color: var(--np-sidebar-text);
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 0.875rem;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.ht-np-sidebar__logout:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.ht-np-main {
	flex: 1;
	min-width: 0;
	padding: 36px 40px;
	box-sizing: border-box;
}

.ht-np-section[hidden] {
	display: none;
}

.ht-np-section__header {
	margin-bottom: 28px;
}

.ht-np-section__title {
	margin: 0 0 8px;
	font-size: 1.6rem;
	font-weight: 650;
	letter-spacing: -0.02em;
}

.ht-np-section__desc {
	margin: 0;
	color: var(--np-muted);
	font-size: 0.98rem;
	max-width: 46rem;
}

.ht-np-section__topics {
	margin: 10px 0 0;
	color: var(--np-text);
	font-size: 0.9rem;
	font-weight: 600;
}

.ht-np-placeholder {
	background: var(--np-surface);
	border: 1px dashed var(--np-border);
	border-radius: var(--np-radius);
	padding: 48px 24px;
	text-align: center;
	color: var(--np-muted);
	font-size: 0.95rem;
}

/* —— Create news form —— */
.ht-np-form {
	background: var(--np-surface);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius);
	padding: 24px;
	margin-bottom: 32px;
}

.ht-np-form__row {
	margin-bottom: 18px;
}

.ht-np-form__label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.9rem;
	font-weight: 600;
}

.ht-np-form__label span {
	color: #b42318;
}

.ht-np-form__input,
.ht-np-form__textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--np-border);
	border-radius: 8px;
	padding: 12px 14px;
	font: inherit;
	color: var(--np-text);
	background: #f7f8f7;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ht-np-form__textarea {
	resize: vertical;
	min-height: 88px;
	line-height: 1.5;
}

.ht-np-form__textarea--lg {
	min-height: 180px;
}

.ht-np-form__input:focus,
.ht-np-form__textarea:focus {
	border-color: var(--np-accent);
	box-shadow: 0 0 0 3px rgba(47, 111, 94, 0.16);
	background: #fff;
}

.ht-np-form__file {
	display: block;
	width: 100%;
	font-size: 0.9rem;
}

.ht-np-form__hint {
	margin: 8px 0 0;
	font-size: 0.8125rem;
	color: var(--np-muted);
}

.ht-np-upload__preview {
	margin-top: 12px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.ht-np-upload__preview img {
	width: 160px;
	max-width: 40%;
	height: auto;
	border-radius: 8px;
	border: 1px solid var(--np-border);
	display: block;
	object-fit: cover;
	aspect-ratio: 16 / 10;
}

.ht-np-upload__clear {
	border: 1px solid var(--np-border);
	background: #fff;
	border-radius: 8px;
	padding: 8px 12px;
	font: inherit;
	font-size: 0.85rem;
	cursor: pointer;
}

.ht-np-form__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 8px;
}

.ht-np-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-radius: 8px;
	border: 1px solid transparent;
	padding: 11px 18px;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.2;
}

.ht-np-btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

.ht-np-btn--primary {
	background: var(--np-accent);
	color: #fff;
}

.ht-np-btn--primary:hover:not(:disabled) {
	background: var(--np-accent-hover);
}

.ht-np-btn--ghost {
	background: #fff;
	border-color: var(--np-border);
	color: var(--np-text);
}

.ht-np-btn--ghost:hover {
	border-color: #b7c2bd;
}

.ht-np-btn--danger {
	background: #fff;
	border-color: #f0b4ae;
	color: #b42318;
}

.ht-np-btn--danger:hover {
	background: #fff5f4;
}

.ht-np-form__status {
	font-size: 0.9rem;
	color: var(--np-muted);
}

.ht-np-form__status.is-success {
	color: var(--np-accent);
}

.ht-np-form__status.is-error {
	color: #b42318;
}

.ht-np-form__status.is-pending {
	color: var(--np-muted);
}

.ht-np-section__desc a {
	color: var(--np-accent);
}

/* —— Published list —— */
.ht-np-list-wrap__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.ht-np-list-wrap__title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 650;
}

.ht-np-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ht-np-list__empty {
	background: var(--np-surface);
	border: 1px dashed var(--np-border);
	border-radius: var(--np-radius);
	padding: 28px 18px;
	text-align: center;
	color: var(--np-muted);
}

.ht-np-list__item {
	display: flex;
	gap: 16px;
	background: var(--np-surface);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius);
	padding: 14px;
}

.ht-np-list__thumb {
	width: 112px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
	background: #d9efed;
}

.ht-np-list__thumb--empty {
	background:
		linear-gradient(135deg, rgba(47, 111, 94, 0.85), rgba(2, 179, 173, 0.7));
}

.ht-np-list__content {
	min-width: 0;
	flex: 1;
}

.ht-np-list__title {
	margin: 0 0 6px;
	font-size: 1rem;
	line-height: 1.35;
}

.ht-np-list__meta {
	margin: 0 0 12px;
	font-size: 0.8125rem;
	color: var(--np-muted);
}

.ht-np-list__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ht-np-list__actions .ht-np-btn {
	padding: 8px 12px;
	font-size: 0.85rem;
}

@media (max-width: 768px) {
	.ht-np-app {
		flex-direction: column;
	}

	.ht-np-sidebar {
		width: 100%;
		padding: 16px;
	}

	.ht-np-nav {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 6px;
	}

	.ht-np-nav__item {
		flex: 1 1 auto;
		text-align: center;
		padding: 10px 12px;
		font-size: 0.875rem;
	}

	.ht-np-sidebar__logout {
		margin-top: 12px;
	}

	.ht-np-main {
		padding: 24px 16px;
	}

	.ht-np-list__item {
		flex-direction: column;
	}

	.ht-np-list__thumb {
		width: 100%;
		height: 140px;
	}
}

/* —— Inbox: scraped drafts as public-style cards —— */
.ht-np-filters {
	display: flex;
	gap: 8px;
	margin: -8px 0 22px;
}

.ht-np-filter {
	border: 1px solid var(--np-border);
	background: #fff;
	color: var(--np-muted);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 0.88rem;
	cursor: pointer;
}

.ht-np-filter.is-active {
	background: var(--np-sidebar);
	border-color: var(--np-sidebar);
	color: #fff;
}

.ht-np-filter span {
	display: inline-block;
	min-width: 1.2em;
	margin-left: 4px;
	opacity: 0.85;
}

.ht-np-card-status {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #2f6f5e;
}

.ht-np-card-status--draft {
	color: #8a6a2a;
}

.ht-np-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
}

.ht-np-inbox-grid {
	margin-bottom: 0;
}

.ht-np-card-title {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: #1a211e;
	text-align: left;
	cursor: pointer;
}

.ht-np-card-title:hover {
	color: #02b3ad;
}

button.ht-news-card__media {
	width: 100%;
	padding: 0;
	border: 0;
	cursor: pointer;
	font: inherit;
}

button.ht-news-card__more {
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
	font: inherit;
	text-align: left;
}

.ht-np-card-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	margin-top: auto;
}

.ht-np-card-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-bottom: 10px;
}

.ht-np-card-meta .ht-news-card__date {
	margin-bottom: 0;
}

.ht-np-card-topic {
	font-size: 0.68rem;
}

.ht-np-card-actions .ht-news-card__more {
	margin-top: 0;
}

.ht-np-card-actions > .ht-np-btn {
	width: 100%;
}

.ht-np-card-actions__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 36px;
}

.ht-np-card-actions .ht-np-btn {
	padding: 8px 14px;
	font-size: 0.85rem;
}

.ht-np-preview {
	max-width: 920px;
}

.ht-np-preview[hidden] {
	display: none;
}

.ht-np-preview .ht-news-back {
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
	font: inherit;
	margin-bottom: 16px;
}

.ht-np-langs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 16px;
}

.ht-np-langs__btn {
	border: 1px solid var(--np-border);
	background: #fff;
	color: var(--np-muted);
	border-radius: 999px;
	padding: 5px 10px;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
}

.ht-np-langs__btn.is-active {
	background: var(--np-accent);
	border-color: var(--np-accent);
	color: #fff;
}

.ht-np-preview__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

.ht-np-search {
	flex: 1;
	min-width: 180px;
	border: 1px solid var(--np-border);
	border-radius: 8px;
	padding: 10px 12px;
	font: inherit;
	background: #fff;
}

.ht-np-prop-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ht-np-prop {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 14px;
	background: var(--np-surface);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius);
	overflow: hidden;
	padding: 0 14px 0 0;
	align-items: center;
}

.ht-np-prop__img,
.ht-np-prop__ph {
	width: 140px;
	height: 96px;
	object-fit: cover;
	background: #dce5e1;
	display: block;
}

.ht-np-prop__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 12px 0;
}

.ht-np-prop__meta {
	color: var(--np-muted);
	font-size: 0.85rem;
}

@media (max-width: 640px) {
	.ht-np-prop {
		grid-template-columns: 1fr;
		padding: 0 0 12px;
	}

	.ht-np-prop__img,
	.ht-np-prop__ph {
		width: 100%;
		height: 140px;
	}

	.ht-np-prop__body {
		padding: 0 14px;
	}
}
