/* ==========================================================================
   Post footnote — per-category RSS + subscribe + social (single posts only).
   Sits in the typed-footer slot: italic intro above the entry-footer's
   bordered zone. Uses theme tokens so light/dark both inherit correctly.
   ========================================================================== */

.post-footnote {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--color-divider);
	font-family: var(--font-body);
}

.post-footnote .fn-intro,
.post-footnote .fn-rss {
	color: var(--color-text-muted);
	margin: 0 0 0.75em;
}

.post-footnote .fn-icon svg,
.post-footnote .fn-icon img {
	width: 1.1em;
	height: 1.1em;
	vertical-align: -0.18em;
}

/* Subscribe block — quiet card, one accent. Airy internal padding and a
   consistent vertical rhythm (v1.3.1 P3 — the v1.3.0 card hugged the left
   edge and felt cramped). */
.fn-subscribe {
	margin: 2rem 0;
	padding: 1.75rem 2rem 1.5rem;
	background: var(--color-surface-2);
	border-radius: var(--radius-md);
}

@media (max-width: 600px) {
	.fn-subscribe {
		padding: 1.25rem 1.25rem 1rem;
	}
}

.fn-subscribe-head {
	font-family: var(--font-body);
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0 0 0.4em;
}

.fn-subscribe-body {
	color: var(--color-text-muted);
	font-size: 0.95rem;
	line-height: 1.55;
	margin: 0 0 1.1em;
	max-width: 34rem;
}

.fn-subscribe-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.fn-subscribe-form input[type="email"] {
	flex: 1 1 14rem;
	min-width: 0;
	padding: 0.55em 0.9em;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	color: var(--color-text);
	font: inherit;
}

.fn-subscribe-form input[type="email"]:focus-visible,
.fn-subscribe-form button:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.fn-subscribe-form button {
	padding: 0.55em 1.3em;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--color-primary);
	color: var(--color-text-inverse);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.fn-subscribe-form button:hover {
	background: var(--color-primary-hover);
}

.fn-subscribe-form button[disabled] {
	opacity: 0.6;
	cursor: wait;
}

/* Honeypot: visually removed, still in the DOM for bots. */
.fn-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* interaction-only: zero footprint unless CF actually challenges; when it
   does, it sits below the button, full row. */
.fn-subscribe-form .cf-turnstile {
	flex-basis: 100%;
	margin: 0;
}

.fn-subscribe-form .cf-turnstile:has(iframe) {
	margin: 0.5rem 0;
}

.fn-msg {
	flex-basis: 100%;
	margin: 0.25rem 0 0;
	font-size: 0.9rem;
}

.fn-msg:empty,
.fn-msg[hidden] {
	display: none;
}

.fn-msg--ok {
	color: var(--color-primary);
}

.fn-msg--err {
	color: var(--color-text-muted);
}

.fn-fine {
	flex-basis: 100%;
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--color-text-faint);
	max-width: 34rem;
}

/* Social row: the About-page card solution (.social-links/.social-list/
   .social-link) is styled in style.css and reused here as-is. Only the
   in-footnote spacing is nudged so the section sits right under the subscribe
   card without an over-large gap (v1.3.2). */
.post-footnote .social-links {
	margin-top: 2rem;
}
