/* NoisyVolt Home: tiles styled like synth module panels.
   Works with Twenty Twenty-One (light and dark mode) and most other themes. */

:root {
	--nv-orange: #d9822b; /* VCO */
	--nv-blue: #2e7397;   /* VCF */
	--nv-red: #b5384a;    /* ENV */
	--nv-green: #5b8a3a;  /* VCA */
	--nv-ink: #3b2a1e;    /* walnut case */
	--nv-tile-bg: rgba(255, 255, 255, 0.6);
	--nv-tile-line: rgba(0, 0, 0, 0.12);
}

.is-dark-theme {
	--nv-tile-bg: rgba(255, 255, 255, 0.05);
	--nv-tile-line: rgba(255, 255, 255, 0.16);
	--nv-ink: #6b4e36;
}

/* Hide the "Home" page title on the front page; the hero image carries the name. */
body.home.page .entry-header {
	display: none;
}

.nv-hero img {
	display: block;
	width: 100%;
	height: auto;
}

/* Rows and tiles */
.wp-block-columns.nv-row {
	gap: 1.5rem;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}

.nv-tile {
	background: var(--nv-tile-bg);
	border: 1px solid var(--nv-tile-line);
	border-radius: 6px;
	padding: 1.25rem 1.5rem 1.5rem;
	min-width: 0;
}

.wp-block-group.nv-tile--wide {
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}

.nv-tile > * + * {
	margin-top: 0.9rem;
}

/* Module-style labels */
.nv-tile .wp-block-heading.nv-label {
	display: inline-block;
	margin: 0 0 0.5rem;
	padding: 0.3em 0.9em;
	border-radius: 3px;
	color: #fff;
	font-size: 0.8rem !important;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.nv-orange { background: var(--nv-orange); }
.nv-blue   { background: var(--nv-blue); }
.nv-red    { background: var(--nv-red); }
.nv-green  { background: var(--nv-green); }
.nv-ink    { background: var(--nv-ink); }

/* Welcome tile avatar */
.nv-avatar {
	float: right;
	width: 96px;
	margin: 0 0 0.75rem 1rem !important;
}

.nv-avatar img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
}

/* Preview lists */
.nv-preview {
	display: grid;
	gap: 1rem;
}

.nv-preview--grid {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
}

.nv-item {
	min-width: 0;
}

.nv-preview:not(.nv-preview--grid) .nv-item + .nv-item {
	border-top: 1px solid var(--nv-tile-line);
	padding-top: 1rem;
}

.nv-item__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 0.6rem;
}

.nv-tile .nv-item__title {
	font-size: 1.15rem !important;
	line-height: 1.3;
	margin: 0;
}

.nv-item__title a {
	text-decoration: none;
}

.nv-item__title a:hover,
.nv-item__title a:focus {
	text-decoration: underline;
}

.nv-item__date {
	margin: 0.2rem 0 0;
	font-size: 0.85rem;
	opacity: 0.7;
}

.nv-item__excerpt {
	margin: 0.35rem 0 0;
	font-size: 0.95rem;
}

.nv-item__content {
	margin-top: 0.6rem;
}

.nv-item__content iframe {
	max-width: 100%;
	border-radius: 12px;
}

.nv-more {
	margin-top: 1rem;
	font-size: 0.95rem;
	font-weight: 600;
}

.nv-kicker {
	margin-bottom: 0;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.75;
}

.nv-now ul {
	padding-left: 1.1rem;
	margin: 0;
}

.nv-now li + li {
	margin-top: 0.5rem;
}

.nv-sections {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.nv-sections a {
	display: inline-block;
	padding: 0.3rem 0.75rem;
	border: 1px solid var(--nv-tile-line);
	border-radius: 999px;
	text-decoration: none;
}

.nv-count {
	font-size: 0.8rem;
	opacity: 0.6;
}

.nv-notice {
	font-style: italic;
	opacity: 0.7;
}

.nv-footnote {
	text-align: center;
	font-size: 0.85rem;
	opacity: 0.65;
}

@media (max-width: 781px) {
	.nv-tile {
		padding: 1rem 1.1rem 1.25rem;
	}
}
