/**
 * Blog content polish + post-end sections.
 * Colors mirror the theme.json palette.
 */

/* -------------------------------------------------------------------------
 * Lists inside post content
 * ------------------------------------------------------------------------- */

.wp-block-post-content ul,
.wp-block-post-content ol {
	margin: 28px 0;
	padding-left: 1.4em;
}

.wp-block-post-content li {
	margin-top: 12px;
	padding-left: 6px;
}

.wp-block-post-content li:first-child {
	margin-top: 0;
}

.wp-block-post-content li > ul,
.wp-block-post-content li > ol {
	margin: 12px 0 0;
}

.wp-block-post-content ul ul {
	list-style-type: circle;
}

.wp-block-post-content ul ul ul {
	list-style-type: square;
}

.wp-block-post-content li::marker {
	color: #E4B66A; /* primary gold */
	font-weight: 600;
}

/* -------------------------------------------------------------------------
 * Newsletter card (end of single posts + homepage)
 * ------------------------------------------------------------------------- */

.blg-newsletter {
	background: #0D1526; /* card navy */
	border: 1px solid #1E2740; /* line */
	border-radius: 16px;
	padding: 48px 40px;
	margin: 72px auto 0;
	max-width: 720px;
	box-sizing: border-box;
}

.blg-newsletter__eyebrow {
	font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: #E4B66A; /* primary gold */
	margin: 0 0 16px;
}

.blg-newsletter__title {
	font-size: 28px;
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin: 0 0 12px;
}

.blg-newsletter__accent {
	font-family: "Instrument Serif", Georgia, serif;
	font-style: italic;
	font-weight: 400;
	color: #E4B66A;
}

.blg-newsletter__sub {
	color: #939FB2; /* muted */
	margin: 0 0 28px;
}

.blg-newsletter__form {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.blg-newsletter__form input[type="email"] {
	flex: 1 1 240px;
	background: #0A0F1E; /* base navy */
	border: 1px solid #1E2740;
	border-radius: 8px;
	color: #F1EDE4;
	font-size: 15px;
	padding: 12px 16px;
	outline: none;
	transition: border-color 0.15s ease;
}

.blg-newsletter__form input[type="email"]::placeholder {
	color: #939FB2;
	opacity: 0.6;
}

.blg-newsletter__form input[type="email"]:focus {
	border-color: #E4B66A;
}

.blg-newsletter__form button,
.blg-newsletter__form input[type="submit"] {
	background: #E4B66A;
	color: #12141A;
	border: none;
	border-radius: 8px;
	font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 12px 24px;
	cursor: pointer;
	transition: background 0.15s ease;
	white-space: nowrap;
}

.blg-newsletter__form button:hover,
.blg-newsletter__form input[type="submit"]:hover {
	background: rgba(228, 182, 106, 0.85);
}

.blg-newsletter__micro {
	font-size: 13px;
	color: #939FB2;
	opacity: 0.8;
	margin: 16px 0 0;
}

/* WPForms inside the newsletter card: full-width fields, page font, white labels */
.blg-newsletter .wpforms-container {
	margin: 0;
	max-width: none;
}

.blg-newsletter .wpforms-container .wpforms-field {
	padding: 0;
	margin: 0 0 22px;
}

/* Main labels (Name, Email) — white, page font */
.blg-newsletter .wpforms-container .wpforms-field-label {
	display: block;
	font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #F1EDE4;
	margin: 0 0 10px;
}

.blg-newsletter .wpforms-container .wpforms-required-label {
	color: #E4B66A;
}

/* Sublabels (First, Last) — white, page font */
.blg-newsletter .wpforms-container .wpforms-field-sublabel {
	display: block;
	font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
	font-size: 12px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0.02em;
	color: #F1EDE4;
	opacity: 0.75;
	margin: 6px 0 0;
}

/* All inputs: broad, dark, page font */
.blg-newsletter .wpforms-container input[type="text"],
.blg-newsletter .wpforms-container input[type="email"],
.blg-newsletter .wpforms-container input[type="name"] {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
	background: #0A0F1E;
	border: 1px solid #1E2740;
	border-radius: 8px;
	color: #F1EDE4;
	font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
	font-size: 15px;
	padding: 13px 16px;
	outline: none;
	transition: border-color 0.15s ease;
}

.blg-newsletter .wpforms-container input::placeholder {
	color: #939FB2;
	opacity: 0.6;
}

.blg-newsletter .wpforms-container input[type="text"]:focus,
.blg-newsletter .wpforms-container input[type="email"]:focus {
	border-color: #E4B66A;
}

/* Name field: First and Last side by side */
.blg-newsletter .wpforms-container .wpforms-field-name .wpforms-field-row {
	display: flex;
	gap: 16px;
}

.blg-newsletter .wpforms-container .wpforms-field-name .wpforms-field-row-block {
	flex: 1 1 0;
	margin: 0;
	padding: 0;
	max-width: none;
}

@media (max-width: 520px) {
	.blg-newsletter .wpforms-container .wpforms-field-name .wpforms-field-row {
		flex-direction: column;
		gap: 12px;
	}
}

.blg-newsletter .wpforms-container .wpforms-submit-container {
	margin: 4px 0 0;
	padding: 0;
}

.blg-newsletter .wpforms-container button[type="submit"],
.blg-newsletter .wpforms-container .wpforms-submit {
	background: #E4B66A !important;
	color: #12141A !important;
	border: none;
	border-radius: 8px;
	font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 13px 32px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.blg-newsletter .wpforms-container button[type="submit"]:hover,
.blg-newsletter .wpforms-container .wpforms-submit:hover {
	background: rgba(228, 182, 106, 0.85) !important;
}

/* Validation messages readable on dark */
.blg-newsletter .wpforms-container .wpforms-error {
	color: #F87171;
}

/* -------------------------------------------------------------------------
 * Related posts ("Keep going") — end of single posts
 * ------------------------------------------------------------------------- */

.blg-related {
	margin: 64px auto 0;
	max-width: 1152px;
}

.blg-related__eyebrow {
	font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: #E4B66A;
	margin: 0 0 24px;
}

.blg-related__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 768px) {
	.blg-related__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.blg-related__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #0D1526;
	border: 1px solid #1E2740;
	border-radius: 16px;
	padding: 24px;
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.blg-related__card:hover {
	border-color: rgba(228, 182, 106, 0.45);
	transform: translateY(-2px);
}

.blg-related__tag {
	font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #E4B66A;
}

.blg-related__title {
	font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: #F1EDE4;
}

.blg-related__card:hover .blg-related__title {
	color: #E4B66A;
}

.blg-related__date {
	font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
	color: #939FB2;
}

/* Homepage placement: the wrapper section already provides spacing */
.blg-newsletter-home .blg-newsletter {
	margin-top: 0;
}
