/* Do not use Blocksy --theme-* variables here. Use --adil-* variables scoped to this section only, so Customizer color changes never affect this component. */

/* ---------------------------------------------------------
   News archive (posts page + category/tag/date/author archives).
   Blocksy renders this with its own templates, so every color below
   used to come from Customizer --theme-* variables. They are pinned
   to the values the Customizer was producing (palette 3/4/6/8 and
   link 1/2), so nothing changes visually today. The exception is
   .entry-meta, which uses the muted #8B939E as requested.

   Variables are defined on the archive's own <main>, never :root.
   Selectors carry body + main + class/attr specificity, so they beat
   Blocksy's generated "[data-prefix] .hero-section[data-type]" rules
   without needing !important.
   --------------------------------------------------------- */
body:is(.blog, .archive) main {
	--adil-bg: #000000;          /* page background (was palette 8) */
	--adil-hero-bg: #0E0E0E;     /* "Labs ... NEWS" hero bar (was palette 6) */
	--adil-card-bg: #000000;     /* post cards (was palette 8) */
	--adil-heading: #FFFFFF;     /* titles (was palette 4) */
	--adil-text: #D2D7DC;        /* body/excerpt text (was palette 3) */
	--adil-muted: #8B939E;       /* .entry-meta category/date line */
	--adil-accent: #95BF47;      /* links + hover (was palette 1/2) */

	background-color: var(--adil-bg);
	color: var(--adil-text);
}

/* ---- Top bar / hero ("Labs ... NEWS") ---- */
body:is(.blog, .archive) main .hero-section[data-type="type-2"] {
	background-color: var(--adil-hero-bg);
	color: var(--adil-text);
}
body:is(.blog, .archive) main .hero-section :is(.page-title, h1, .ct-title-label) {
	color: var(--adil-heading);
}
body:is(.blog, .archive) main .hero-section :is(.page-description, .ct-breadcrumbs) {
	color: var(--adil-text);
}
body:is(.blog, .archive) main .hero-section a {
	color: inherit;
}
body:is(.blog, .archive) main .hero-section a:hover {
	color: var(--adil-accent);
}

/* ---- Post cards ---- */
body:is(.blog, .archive) main .entries .entry-card {
	background-color: var(--adil-card-bg);
}
body:is(.blog, .archive) main .entries .entry-title,
body:is(.blog, .archive) main .entries .entry-title a {
	color: var(--adil-heading);
}
body:is(.blog, .archive) main .entries .entry-title a:hover {
	color: var(--adil-accent);
}
body:is(.blog, .archive) main .entries .entry-excerpt {
	color: var(--adil-text);
}

/* .entry-meta: Blocksy core sets color: var(--theme-text-color) and
   re-points --theme-link-initial-color at it. Pin both the text and
   its links. */
body:is(.blog, .archive) main .entry-meta {
	color: var(--adil-muted);
}
body:is(.blog, .archive) main .entry-meta li:not([data-type="pill"]) a {
	color: var(--adil-muted);
}
body:is(.blog, .archive) main .entry-meta li:not([data-type="pill"]) a:hover {
	color: var(--adil-accent);
}
/* Pill-style category links use Blocksy's button variables. Pin those too
   (button bg #95BF47 / text #FFFFFF in the Customizer). */
body:is(.blog, .archive) main .entry-meta [data-type="pill"] a,
body:is(.blog, .archive) main .entry-meta [data-type="pill"] a:hover {
	background-color: var(--adil-accent);
	color: #FFFFFF;
}
