/* ==========================================================================
   SL8 Management — News (page-news.php)
   Only what is unique to this page. Shared parts (hero media, labels, links,
   headings, the archive cards) come from base.css.
   Desktop rules first; phone overrides in @media (max-width: 899.98px).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero: the dusk photograph, the accent masthead over its lower right
   -------------------------------------------------------------------------- */

.sl8-news-hero {
	--sl8-hero-min: 560px;
	--sl8-hero-min-phone: 440px;
	--sl8-hero-pos: 50% 28%;
}

.sl8-news-hero__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0 40px;
}

/* The newsletter masthead grown up: a flat accent block that hangs 80px
   below the photograph, onto the next section. */
.sl8-news-masthead {
	flex: 0 1 520px;
	min-width: 0;
	margin-bottom: -80px;
	padding: 44px 40px 20px;
	background: var(--accent);
}

.sl8-news-masthead__title {
	font-size: clamp(52px, 5.6vw, 80px);
	line-height: 0.955;
}

.sl8-news-masthead__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 24px;
	margin-top: 32px;
	padding-top: 12px;
	border-top: 1.5px solid var(--ink);
}

.sl8-news-masthead__date {
	font-size: 20px;
	line-height: 28px;
	letter-spacing: -0.01em;
	font-weight: 500;
}

.sl8-news-masthead__link {
	text-decoration-thickness: 1.5px;
}

/* --------------------------------------------------------------------------
   2. Recently in the building: the ruled ledger
   -------------------------------------------------------------------------- */

/* 128px on top clears the masthead's 80px overhang */
.sl8-news-recent {
	padding: 128px 0 120px;
}

.sl8-news-ledger {
	margin-top: 64px;
	border-top: 1px solid var(--ink);
}

/* One row per newsletter (the five newest, from inc/newsletters.php): the
   month, then the lead headline, the issue's other headlines and a link to
   its PDF, then a 168 x 126 photograph from the issue. */
.sl8-news-entry {
	display: flex;
	align-items: center;
	gap: 20px 56px;
	padding: 32px 0;
	border-bottom: 1px solid var(--line);
}

.sl8-news-entry__date {
	flex: 0 0 200px;
}

.sl8-news-entry__body {
	flex: 1 1 420px;
	min-width: 0;
	max-width: 720px;
}

.sl8-news-entry__title {
	font-size: 30px;
	line-height: 38px;
	letter-spacing: -0.025em;
	font-weight: 500;
	text-wrap: balance;
}

/* the other headlines, joined with " · " */
.sl8-news-entry__others {
	margin-top: 8px;
	font-size: 15px;
	line-height: 22px;
	color: var(--stone);
}

/* "<Month YYYY> Newsletter" opens the PDF in a new tab */
.sl8-news-entry__link {
	gap: 8px;
	margin-top: 2px;
	text-underline-offset: 5px;
}

.sl8-news-entry__thumb {
	flex: none;
	display: block;
	width: 168px;
	height: 126px;
	margin-left: auto;
	object-fit: cover;
}

/* an issue with no photograph shows its first page, from the top */
.sl8-news-entry__thumb--page {
	object-position: top;
}

/* --------------------------------------------------------------------------
   3. Community newsletter: the archive band
   -------------------------------------------------------------------------- */

.sl8-news-archive {
	padding: 112px 0 120px;
}

/* --------------------------------------------------------------------------
   Phones
   -------------------------------------------------------------------------- */

@media (max-width: 899.98px) {
	/* 1. Hero: no veil on the phone artboard; the masthead runs the full
	   width and straddles the photograph's lower edge by 56px. */
	.sl8-news-hero .sl8-hero__veil {
		display: none;
	}

	.sl8-news-masthead {
		flex: 1 1 100%;
		margin-bottom: -56px;
		padding: 28px 24px 10px;
	}

	.sl8-news-masthead__title {
		font-size: 44px;
		line-height: 42px;
	}

	.sl8-news-masthead__foot {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 0;
		margin-top: 24px;
		padding-top: 10px;
	}

	.sl8-news-masthead__date {
		font-size: 18px;
		line-height: 26px;
	}

	/* 2. Ledger: the photograph (96 x 72) moves to the left; the month and
	   the text stack beside it. 112px on top clears the masthead's 56px
	   overhang. */
	.sl8-news-recent {
		padding: 112px 0 56px;
	}

	.sl8-news-ledger {
		margin-top: 32px;
	}

	.sl8-news-entry {
		display: grid;
		grid-template-columns: 96px minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		align-items: start;
		gap: 0 16px;
		padding: 22px 0 24px;
	}

	.sl8-news-entry__thumb {
		grid-column: 1;
		grid-row: 1 / span 2;
		width: 96px;
		height: 72px;
		margin-left: 0;
	}

	.sl8-news-entry__date {
		grid-column: 2;
		grid-row: 1;
	}

	.sl8-news-entry__body {
		grid-column: 2;
		grid-row: 2;
		max-width: none;
	}

	.sl8-news-entry__title {
		margin-top: 6px;
		font-size: 24px;
		line-height: 30px;
	}

	.sl8-news-entry__others {
		font-size: 14px;
		line-height: 21px;
	}

	/* 3. Archive */
	.sl8-news-archive {
		padding: 56px 0;
	}

	/* "Open PDF" keeps its 16px size on phones (owner links drop to 15px) */
	.sl8-issue__link {
		font-size: 16px;
		line-height: 22px;
	}
}
