/* ============================================================
   SavoiaTV — shared content styles (grids, post cards, blog,
   single Post, ordinary Page)
   ------------------------------------------------------------
   Dark SavoiaTV presentation for standard WordPress content, plus
   the card-grid and post-card components shared with the homepage.
   Uses the tokens from style.css. Loaded on the front page, the
   Posts index, single Posts, and ordinary Pages.
   ============================================================ */

/* ------------------------------------------------------------
   Shared responsive card grid (homepage sections + blog index)
   ------------------------------------------------------------ */
.stv-home__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
	gap: var(--stv-space-md);
}

.stv-home__grid--wide {
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}

@media (min-width: 700px) {
	.stv-home__grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
		gap: var(--stv-space-lg);
	}
	.stv-home__grid--wide {
		grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	}
}

/* ------------------------------------------------------------
   Post card (normal Posts) — extends the shared .stv-card
   ------------------------------------------------------------ */
.stv-card__eyebrow {
	margin: 0 0 0.15rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--stv-color-gold); /* restrained gold label */
}

.stv-card--post .stv-card__excerpt {
	margin: 0.35rem 0 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--stv-color-silver);
}

/* ------------------------------------------------------------
   Blog index
   ------------------------------------------------------------ */
.stv-blog__header {
	margin-bottom: var(--stv-space-lg);
	padding-bottom: var(--stv-space-md);
	border-bottom: 1px solid var(--stv-color-gold-soft);
}

.stv-blog__title {
	margin: 0;
	color: var(--stv-color-heading);
}

.stv-blog__empty {
	color: var(--stv-color-muted);
}

/* ------------------------------------------------------------
   Single Post / ordinary Page — readable dark article
   ------------------------------------------------------------ */
.stv-entry {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	color: var(--stv-color-text);
}

.stv-entry__header {
	margin-bottom: var(--stv-space-md);
}

.stv-entry__title {
	margin: 0 0 var(--stv-space-sm);
	color: var(--stv-color-heading);
	line-height: 1.15;
}

.stv-entry__meta {
	margin: 0;
	font-size: 0.9rem;
	color: var(--stv-color-muted);
}

.stv-entry__meta a {
	color: var(--stv-color-silver);
	text-decoration: none;
}

.stv-entry__meta a:hover,
.stv-entry__meta a:focus {
	color: var(--stv-color-blue-hover);
	text-decoration: underline;
}

.stv-entry__featured {
	margin: 0 0 var(--stv-space-lg);
}

.stv-entry__featured-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--stv-radius);
	border: 1px solid var(--stv-color-border);
}

/* Body copy — highly legible */
.stv-entry__content {
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--stv-color-text);
}

.stv-entry__content > * {
	margin-top: 0;
	margin-bottom: 1.25em;
}

.stv-entry__content h2,
.stv-entry__content h3,
.stv-entry__content h4 {
	color: var(--stv-color-heading);
	line-height: 1.25;
	margin-top: 1.6em;
}

.stv-entry__content a {
	color: var(--stv-color-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.stv-entry__content a:hover,
.stv-entry__content a:focus {
	color: var(--stv-color-blue-hover);
}

.stv-entry__content blockquote {
	margin: 1.5em 0;
	padding: 0.5em 1.25em;
	border-left: 3px solid var(--stv-color-gold); /* restrained gold accent */
	background-color: var(--stv-color-surface);
	border-radius: 0 var(--stv-radius-sm) var(--stv-radius-sm) 0;
	color: var(--stv-color-silver);
}

.stv-entry__content ul,
.stv-entry__content ol {
	padding-left: 1.4em;
}

.stv-entry__content li {
	margin-bottom: 0.4em;
}

.stv-entry__content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--stv-radius-sm);
}

.stv-entry__content figure {
	margin: 1.5em 0;
}

.stv-entry__content figcaption,
.stv-entry__content .wp-caption-text {
	margin-top: 0.5em;
	font-size: 0.85rem;
	color: var(--stv-color-muted);
	text-align: center;
}

/* Embedded media (oEmbed / iframes) stays responsive */
.stv-entry__content .wp-block-embed__wrapper iframe,
.stv-entry__content iframe,
.stv-entry__content video,
.stv-entry__content embed,
.stv-entry__content object {
	max-width: 100%;
}

.stv-entry__content pre,
.stv-entry__content code {
	background-color: var(--stv-color-surface);
	color: var(--stv-color-silver);
	border-radius: var(--stv-radius-sm);
}

.stv-entry__content pre {
	padding: var(--stv-space-md);
	overflow-x: auto;
}

.stv-entry__footer {
	margin-top: var(--stv-space-lg);
	padding-top: var(--stv-space-md);
	border-top: 1px solid var(--stv-color-border);
	font-size: 0.85rem;
	color: var(--stv-color-muted);
}

.stv-entry__tags a {
	color: var(--stv-color-silver);
}

/* ------------------------------------------------------------
   Previous / next post navigation
   ------------------------------------------------------------ */
.stv-postnav {
	max-width: 760px;
	margin: var(--stv-space-lg) auto 0;
	display: flex;
	justify-content: space-between;
	gap: var(--stv-space-md);
}

.stv-postnav a {
	color: var(--stv-color-silver);
	text-decoration: none;
}

.stv-postnav a:hover,
.stv-postnav a:focus {
	color: var(--stv-color-blue-hover);
}

.stv-postnav__label {
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--stv-color-gold);
}

/* ------------------------------------------------------------
   Comments — keep legible on the dark background (no white-on-white)
   ------------------------------------------------------------ */
.stv-comments {
	max-width: 760px;
	margin: var(--stv-space-xl) auto 0;
	color: var(--stv-color-text);
}

.stv-comments .comment-body {
	padding: var(--stv-space-md);
	background-color: var(--stv-color-surface);
	border: 1px solid var(--stv-color-border);
	border-radius: var(--stv-radius);
	margin-bottom: var(--stv-space-md);
}

.stv-comments a {
	color: var(--stv-color-blue);
}

.stv-comments input[type="text"],
.stv-comments input[type="email"],
.stv-comments input[type="url"],
.stv-comments textarea {
	max-width: 100%;
	box-sizing: border-box;
	background-color: var(--stv-color-surface);
	color: var(--stv-color-text);
	border: 1px solid var(--stv-color-border-strong);
	border-radius: var(--stv-radius-sm);
	padding: 0.6rem 0.8rem;
}

.stv-comments .comment-reply-title,
.stv-comments .comments-title {
	color: var(--stv-color-heading);
}
