/* ==========================================================================
   Segal Communications — Newsletter ("The Beacon")
   Child theme: /assets/css/newsletter.css (enqueued by newsletter-cpt.php
   on the Newsletter archive, single issues, and the Newsletter editor).

   Swap the two brand values for the matching Blocksy palette variables
   once confirmed, e.g. var(--theme-palette-color-1).
   ========================================================================== */

:root {
	--bcn-blue:   #0b5a9c;  /* Beacon / Segal blue  */
	--bcn-orange: #e2770f;  /* Beacon orange: bars and stripes only */
	--bcn-orange-text: #a85300; /* darker orange for small text (passes 4.5:1) */
	--bcn-rule:   1px solid var(--bcn-blue);
}

/* --------------------------------------------------------------------------
   Archive  (/newsletter/)
   Blocksy: Customizer > Post Types > Newsletters > Archive
   Layout: Simple or Classic, 1 column. Card elements in this order:
   Post Meta (date only) · Title · Excerpt · Read More. Featured image off.
   -------------------------------------------------------------------------- */

.post-type-archive-newsletter .entries {
	max-width: 820px;
	margin-inline: auto;
}

.post-type-archive-newsletter .entry-card {
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	padding: 2rem 0;
	border-top: var(--bcn-rule);
}

/* Date as an orange eyebrow: "THE BEACON · SEPTEMBER 2026" */
.post-type-archive-newsletter .entry-card .entry-meta {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bcn-orange-text);
	margin-bottom: 0.5rem;
}
.post-type-archive-newsletter .entry-card .entry-meta::before {
	content: "The Beacon · ";
}

.post-type-archive-newsletter .entry-card .entry-title {
	font-size: clamp(1.25rem, 2.2vw, 1.6rem);
	line-height: 1.25;
	margin-bottom: 0.6rem;
}
.post-type-archive-newsletter .entry-card .entry-title a {
	color: inherit;
}
.post-type-archive-newsletter .entry-card .entry-title a:hover {
	color: var(--bcn-blue);
}

/* "In this issue" line (the Excerpt field) */
.post-type-archive-newsletter .entry-card .entry-excerpt {
	color: #555;
	font-size: 0.95rem;
}
.post-type-archive-newsletter .entry-card .entry-excerpt p::before {
	content: "In this issue: ";
	font-weight: 600;
	color: #222;
}

/* Read More rendered as a text link */
.post-type-archive-newsletter .entry-card .entry-button {
	background: none;
	border: 0;
	padding: 0;
	min-height: 0;
	color: var(--bcn-blue);
	font-weight: 600;
	text-decoration: none;
}
.post-type-archive-newsletter .entry-card .entry-button::after {
	content: " →";
}

/* Latest issue (first card on page 1 only) gets the featured panel */
.post-type-archive-newsletter:not(.paged) .entries > .entry-card:first-child {
	border-top: 6px solid var(--bcn-orange);
	background: #f3f7fb;
	padding: 2.25rem 2rem;
	margin-bottom: 1rem;
}
.post-type-archive-newsletter:not(.paged) .entries > .entry-card:first-child .entry-meta::before {
	content: "Latest issue · ";
}
.post-type-archive-newsletter:not(.paged) .entries > .entry-card:first-child .entry-title {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
}

/* --------------------------------------------------------------------------
   Archive hero (Content Block hooked before the archive loop)
   -------------------------------------------------------------------------- */

.bcn-hero {
	max-width: 820px;
	margin: 0 auto 2.5rem;
	text-align: center;
}
.bcn-hero .bcn-banner img {
	width: 100%;
	height: auto;
	display: block;
}
.bcn-hero .wp-block-buttons {
	justify-content: center;
}
.bcn-hero .bcn-hero-intro {
	font-size: 1.1rem;
	margin: 1.5rem auto 1rem;
	max-width: 36em;
}

/* --------------------------------------------------------------------------
   Single issue  (/newsletter/{slug}/)
   Blocksy: Customizer > Post Types > Newsletters > Single
   Content area: Narrow (~760px). Hide author box, related posts, comments.
   -------------------------------------------------------------------------- */

.single-newsletter .bcn-section {
	margin-block: 2.5rem;
}

.bcn-rule.wp-block-separator {
	border: 0;
	border-top: var(--bcn-rule);
	opacity: 1;
	margin-block: 3rem;
	width: 100%;
}

.bcn-dek {
	color: var(--bcn-blue);
	font-weight: 700;
	margin-top: -0.25rem;
	margin-bottom: 2rem;
}

.bcn-eyebrow {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bcn-blue);
	margin-bottom: 1rem;
}

/* Algorithm Update / Trend Watch items */
/* Extra .wp-block-group so this beats the site's Additional CSS rule
   ".wp-block-group .wp-block-media-text { margin: auto }" (≥1000px). */
.wp-block-group .bcn-item.wp-block-media-text {
	margin: 0 auto 2.5rem;
	gap: 0;
}
.wp-block-group .bcn-item.wp-block-media-text:last-child {
	margin-bottom: 0;
}
.bcn-item .wp-block-media-text__content {
	padding: 0 0 0 2rem;
}
.bcn-item h3 {
	color: var(--bcn-orange-text);
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
}
.bcn-item .wp-block-media-text__media img {
	border-radius: 4px;
}
@media (max-width: 600px) {
	.bcn-item .wp-block-media-text__content {
		padding: 1rem 0 0;
	}
}

/* Feature gallery */
.bcn-gallery.wp-block-gallery {
	gap: 4px;
	margin-top: 1.5rem;
}

/* From the Blog card */
.bcn-blog-card.wp-block-media-text {
	background: #f3f7fb;
}
.bcn-blog-card .wp-block-media-text__content {
	padding: 1.5rem 2rem;
}
.bcn-more a {
	color: var(--bcn-blue);
	font-weight: 600;
	text-decoration: none;
}

/* Content calendar */
.bcn-dates {
	list-style: none;
	padding-left: 0;
	columns: 2;
	column-gap: 2.5rem;
}
.bcn-dates li {
	padding: 0.45rem 0;
	border-bottom: 1px solid #e3e8ee;
	break-inside: avoid;
}
.bcn-dates strong {
	color: var(--bcn-blue);
	display: inline-block;
	min-width: 6.5em;
}
@media (max-width: 600px) {
	.bcn-dates { columns: 1; }
}

/* Subscribe CTA (Content Block hooked after single content) */
.bcn-subscribe {
	box-sizing: border-box;
	width: min(var(--theme-narrow-container-max-width, 750px), calc(100% - 32px));
	margin: 3.5rem auto 4.5rem;
	padding: 2.25rem 2rem;
	text-align: center;
	background: var(--bcn-blue);
	color: #fff;
	border-bottom: 6px solid var(--bcn-orange);
}
.bcn-subscribe h2,
.bcn-subscribe p {
	color: #fff;
}
.bcn-subscribe .wp-block-button__link {
	background: #fff;
	color: var(--bcn-blue);
	font-weight: 700;
}