/*
Theme Name: TV Guide Magazine
Author: TV Guide Magazine
Version: 1.0
Description: Bold newsstand-style redesign of tvguidemagazine.com. Modern HTML5, fully responsive, no jQuery.
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tvguide
*/

:root {
	--red: #de182a;
	--red-dark: #b8121f;
	--black: #0e0e10;
	--ink: #1c1c1f;
	--gray: #6b6b70;
	--line: #e6e2dc;
	--paper: #faf8f4;
	--white: #fff;
	--yellow: #ffd200;
	--font-display: "Anton", "Arial Narrow", sans-serif;
	--font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
	--container: 1160px;
	--shadow-cover: 0 10px 30px rgba(14, 14, 16, 0.25), 0 2px 8px rgba(14, 14, 16, 0.18);
}

/* ---------- Reset / base ---------- */

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); }
a:hover { color: var(--red-dark); }

h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; }

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--red);
	color: #fff;
	padding: 10px 16px;
	z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.88rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 12px 26px;
	border-radius: 4px;
	border: 2px solid transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn svg { flex-shrink: 0; }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-outline-inverse { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-inverse:hover { background: #fff; color: var(--black); }

/* ---------- Header ---------- */

.site-header {
	background: var(--black);
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header .container {
	display: flex;
	align-items: center;
	gap: 32px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.site-logo { flex-shrink: 0; display: block; }
.site-logo img { width: auto; height: 86px; }

/* Header subscribe ad (320x50 house ad, edited via Site Options → Header Ad). */
.header-ad {
	flex-shrink: 0;
	margin-left: auto;
}
.header-ad img {
	display: block;
	width: 320px;
	height: 50px;
	border: 0;
}

/* The ad stays through tablet widths; only true mobile drops it. */
@media (max-width: 700px) {
	.header-ad { display: none; }
}

.site-nav { flex: 1; }

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.site-nav li { white-space: nowrap; }

.site-nav a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	text-decoration: none;
	font-size: 0.98rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	padding: 1px 0;
	border-bottom: 2px solid transparent;
}

.site-nav a svg { flex-shrink: 0; }

.site-nav a:hover,
.site-nav .active > a {
	color: #fff;
	border-bottom-color: var(--red);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

/* When the header ad is hidden, the buttons take back the right edge. */
@media (max-width: 700px) {
	.header-actions { margin-left: auto; }
}

.btn-subscribe,
.btn-gift {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.88rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	padding: 12px 24px;
	border-radius: 4px;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-subscribe svg,
.btn-gift svg { flex-shrink: 0; }

.btn-subscribe {
	background: var(--yellow);
	border: 2px solid var(--yellow);
	color: var(--black);
}
.btn-subscribe:hover {
	background: var(--red);
	border-color: var(--red);
	color: var(--white);
}

.btn-gift {
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.65);
	color: #fff;
}
.btn-gift:hover {
	background: #fff;
	border-color: #fff;
	color: var(--black);
}

.nav-toggle {
	display: none;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 8px;
}

.nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: #fff;
	margin: 5px 0;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero (latest issue) ---------- */

.issue-hero {
	position: relative;
	background: var(--black);
	color: #fff;
	overflow: hidden;
	padding: 64px 0 calc(64px + 4.5vw);
	/* Slanted bottom edge, a la the issue microsites. */
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4.5vw), 0 100%);
}

/* Ambient backdrop: the issue's own cover art, blown up, blurred and
   darkened, so the hero takes on each week's cover palette. */
.hero-backdrop {
	position: absolute;
	inset: -80px;
	background-size: cover;
	background-position: center 25%;
	filter: blur(56px) brightness(0.62) saturate(1.35);
	transform: scale(1.1);
}

/* Legibility scrim; fades from the black header into the artwork. */
.issue-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(14, 14, 16, 0.8) 0%,
		rgba(14, 14, 16, 0.2) 45%,
		rgba(14, 14, 16, 0.35) 100%
	);
}

.issue-hero .container {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(260px, 380px) minmax(0, 540px);
	gap: 64px;
	align-items: center;
	justify-content: center;
}

.issue-hero .cover {
	transform: rotate(-2.5deg);
	transition: transform 0.25s ease;
	box-shadow: var(--shadow-cover);
	border-radius: 3px;
	overflow: hidden;
	justify-self: center;
}
.issue-hero .cover:hover { transform: rotate(0deg) scale(1.02); }
.issue-hero .cover img { width: 100%; }

.eyebrow {
	display: inline-block;
	background: var(--red);
	color: #fff;
	font-weight: 700;
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 3px;
	margin-bottom: 22px;
}

/* On the hero the newsstands label drops the chip: left-aligned, no
   background, each line only as wide as its text. Leads with "Current Issue",
   then the newsstands date — all the same style. */
.issue-hero .eyebrow {
	background: none;
	padding: 0;
	border-radius: 0;
	text-align: left;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.72);
}

.issue-hero h1 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.6rem, 6vw, 4.6rem);
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-wrap: pretty;
	margin: 0 0 18px;
}

.issue-hero h1 a { color: #fff; text-decoration: none; }
.issue-hero h1 a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 4px; text-underline-offset: 8px; }

.issue-hero .dek {
	font-size: 1.15rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.85);
	max-width: 540px;
	margin-bottom: 30px;
	text-wrap: pretty;
}
.issue-hero .dek p { margin: 0 0 0.6em; }

.issue-hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Subscribe bar (intro-rate promo, under the hero) ---------- */

/* The bar tucks up under the hero so the black diagonal flows straight into
   the red: it's pulled into the hero's slanted notch and sits a layer behind,
   so the clipped hero paints over the bar's flat top edge. */
.subscribe-bar {
	position: relative;
	z-index: 0;
	margin-top: -4.5vw;
	background: var(--red);
	color: #fff;
}
.issue-hero { z-index: 1; }

.subscribe-bar .container {
	display: grid;
	/* Both columns hug their content and the pair centers, so the pitch and
	   flipper sit as one balanced unit (matching the archive callout) rather
	   than the right-aligned text leaving a void on the left. */
	grid-template-columns: auto minmax(0, 540px);
	justify-content: center;
	gap: 56px;
	align-items: center;
	/* Clear the slanted overlap before content starts. */
	padding-top: calc(4.5vw + 38px);
	padding-bottom: 46px;
}

/* Flipper: the offer page's promo slides stacked in one cell, crossfading. */
.subscribe-flipper {
	position: relative;
	justify-self: center;
	width: 100%;
	max-width: 540px;
	/* Side gutters the arrows sit in, so they never crowd the artwork. */
	padding: 0 58px;
}
.flipper-stage {
	display: grid;
}
.flip-slide {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	transform: scale(0.97);
	transition: opacity 0.5s ease, transform 0.5s ease;
}
.flip-slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}
.flip-slide img { width: 100%; height: auto; aspect-ratio: 770 / 551; object-fit: cover; }
.flip-caption {
	margin-top: 12px;
	text-align: center;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	color: #fff;
}

/* Ghost circular nav, just outside the flipper on each side. */
.flip-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
	z-index: 2;
}
.flip-arrow:hover { background: rgba(255, 255, 255, 0.32); }
.flip-prev { left: 0; }
.flip-next { right: 0; }

.subscribe-pitch { text-align: right; }

.rate-kicker {
	font-size: 1rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.95);
	margin: 0 0 10px;
	text-wrap: balance;
}

.rate-head {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2rem, 4.6vw, 3.2rem);
	line-height: 1.02;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--yellow);
	margin: 0 0 12px;
}
.rate-line {
	font-size: clamp(1.2rem, 2.3vw, 1.7rem);
	font-weight: 600;
	margin: 0 0 24px;
}
.rate-was { text-decoration: line-through; opacity: 0.7; margin: 0 0.2em; }
.rate-now { color: var(--yellow); font-weight: 800; font-size: 1.12em; margin-right: 0.1em; }
/* Same treatment as the footer band's button: white on the red field. */
.subscribe-bar .btn { background: #fff; color: var(--red); }
.subscribe-bar .btn:hover { background: var(--black); color: #fff; }

/* ---------- Special Collector's Issues (featured + minis) ---------- */

/* The first special (menu order) gets the full treatment on the right —
   big tilted cover, blurb, Order Now — and the rest are compact minis in
   a two-up grid on the left. */
.specials-layout {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 64px;
	align-items: center;
}

.specials-layout.is-featured-only {
	grid-template-columns: 1fr;
	justify-items: center;
}

.specials-minis {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px 24px;
}

/* Five or more minis: go three-across so the column stays roughly the
   featured edition's height instead of towering past it. */
.specials-minis:has(> :nth-child(5)) {
	grid-template-columns: repeat(3, 1fr);
	gap: 26px 20px;
}

.mini-special {
	display: block;
}

.mini-special .cover {
	display: block;
	box-shadow: 0 4px 14px rgba(14, 14, 16, 0.18);
	border-radius: 3px;
	overflow: hidden;
	outline: 3px solid transparent;
	outline-offset: 3px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, outline-color 0.2s ease;
}

.mini-special:hover .cover,
.mini-special.is-active .cover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-cover);
}

.mini-special.is-active .cover { outline-color: var(--red); }

.mini-special .cover img { width: 100%; display: block; }

/* The full panels stack in a single grid cell and crossfade as the
   showcase cycles (the tallest panel sets the height). */
.specials-stage { display: grid; }

.featured-special {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: minmax(200px, 290px) 1fr;
	gap: 44px;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.45s ease, visibility 0.45s;
}

.featured-special.is-active {
	opacity: 1;
	visibility: visible;
}

.featured-special .cover {
	display: block;
	transform: rotate(2deg);
	transition: transform 0.25s ease;
	box-shadow: var(--shadow-cover);
	border-radius: 3px;
	overflow: hidden;
}
.featured-special .cover:hover { transform: rotate(0deg) scale(1.02); }
.featured-special .cover img { width: 100%; display: block; }

.featured-special h3 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(1.8rem, 3vw, 2.7rem);
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-wrap: pretty;
	margin: 0 0 14px;
}

.featured-special h3 a { color: var(--ink); text-decoration: none; }
.featured-special h3 a:hover { color: var(--red); }

.featured-special .dek {
	font-size: 1rem;
	line-height: 1.65;
	color: var(--gray);
	max-width: 440px;
	margin-bottom: 24px;
}
.featured-special .dek p { margin: 0 0 0.6em; }

/* ---------- Section headings ---------- */

.section-head {
	display: flex;
	align-items: baseline;
	gap: 18px;
	margin: 56px 0 30px;
}

.section-head h2 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.8rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	margin: 0;
	white-space: nowrap;
}

.section-head::after {
	content: "";
	flex: 1;
	height: 4px;
	background: var(--red);
	align-self: center;
}

/* ---------- Issue grid ---------- */

.issue-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 40px 28px;
	padding-bottom: 24px;
	transition: transform 0.24s ease, opacity 0.24s ease;
}

/* Ajax page changes slide the grid out one way and in from the other
   (direction follows the arrow clicked); .slide-stage suppresses the
   transition while JS repositions the freshly swapped covers. */
.issue-grid.slide-exit-left { transform: translateX(-44px); opacity: 0; }
.issue-grid.slide-exit-right { transform: translateX(44px); opacity: 0; }
.issue-grid.slide-stage { transition: none; }

.issue-card a {
	text-decoration: none;
	color: var(--ink);
	display: block;
}

.issue-card .cover {
	box-shadow: 0 4px 14px rgba(14, 14, 16, 0.18);
	border-radius: 3px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.issue-card a:hover .cover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-cover);
}

.issue-card .cover img { width: 100%; }

.issue-card .date {
	display: block;
	color: var(--red);
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 14px 0 4px;
}

.issue-card .card-title {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
}

.issue-card a:hover .card-title { color: var(--red); }

/* ---------- Pagination ---------- */

/* Arrows + "X of Y" counter. */
.pagination {
	margin: 24px 0 64px;
}

.pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	text-decoration: none;
}

.pagination a.page-numbers:hover {
	background: var(--red);
	border-color: var(--red);
	color: #fff;
}

.pagination .page-numbers.disabled {
	opacity: 0.35;
}

.pagination .page-counter {
	min-width: 88px;
	text-align: center;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}

/* Ajax pagination scrolls back to the grid heading on page swap. */
.section-head { scroll-margin-top: 24px; }

/* Legacy content blocks (core block CSS is dequeued; these few lines
   cover the paragraph/image/table/list blocks that exist in old posts). */
.body figure,
.page-body figure { margin: 0 0 1.5em; }
.body .aligncenter,
.page-body .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-block-image img { height: auto; max-width: 100%; }
.wp-block-table table,
.body table,
.page-body table {
	border-collapse: collapse;
	width: 100%;
	margin: 0 0 1.5em;
}
.body table td, .body table th,
.page-body table td, .page-body table th {
	border: 1px solid var(--line);
	padding: 8px 12px;
	text-align: left;
}

/* ---------- Single issue ---------- */

.single-issue { padding: 56px 0 32px; }

.single-issue .layout {
	display: grid;
	grid-template-columns: minmax(240px, 340px) 1fr;
	gap: 56px;
	align-items: start;
}

.single-issue .cover {
	box-shadow: var(--shadow-cover);
	border-radius: 3px;
	overflow: hidden;
	position: sticky;
	top: 96px;
}

.single-issue h1 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	text-transform: uppercase;
	margin: 14px 0 20px;
}

.single-issue .body { font-size: 1.08rem; max-width: 660px; }

.also-in {
	margin-top: 36px;
	padding: 26px 30px;
	background: #fff;
	border: 1px solid var(--line);
	border-left: 5px solid var(--red);
	border-radius: 4px;
	max-width: 660px;
}

.also-in .label {
	display: block;
	font-family: var(--font-display);
	font-size: 1.1rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.also-in ul { margin: 0; padding-left: 20px; }
.also-in li { margin-bottom: 6px; }

.single-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Recent issues rail ---------- */

.recent-rail { padding-bottom: 40px; }

.recent-rail .issue-grid {
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 28px 22px;
}

/* ---------- Static pages, search, archive ---------- */

.page-content,
.results-content {
	padding: 56px 24px 64px;
}

/* Center the page column (title + body) once, instead of per child. */
.page-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }

.page-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2rem, 4.5vw, 3rem);
	text-transform: uppercase;
}

.page-title span { color: var(--red); }

.page-body { font-size: 1.05rem; }

.not-found-block { text-align: center; padding: 90px 24px 110px; }

.not-found-block .code {
	font-family: var(--font-display);
	font-size: clamp(5rem, 14vw, 9rem);
	color: var(--red);
	line-height: 1;
	margin: 0;
}

.search-form-inline {
	display: flex;
	max-width: 460px;
	margin: 26px auto 0;
	border: 2px solid var(--ink);
	border-radius: 4px;
	overflow: hidden;
}

.results-content .search-form-inline { margin: 26px 0 0; }

.search-form-inline input[type="search"] {
	flex: 1;
	border: 0;
	font: inherit;
	padding: 12px 16px;
	outline-offset: -2px;
}

.search-form-inline button {
	border: 0;
	background: var(--red);
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 12px 22px;
	cursor: pointer;
}
.search-form-inline button:hover { background: var(--red-dark); }

/* ---------- Iframe template ---------- */

.iframe-page iframe { width: 1px; min-width: 100%; border: 0; }

/* ---------- Cover Archive callout (the "time machine") ---------- */

.archive-callout {
	background: var(--black);
	color: #fff;
	/* Slanted top edge (parallel to the hero's bottom cut) so the paper
	   meets the black on a diagonal like the rest of the page; the bottom
	   stays square. */
	clip-path: polygon(0 4.5vw, 100% 0, 100% 100%, 0 100%);
	/* Bottom padding leaves room for the red band's slanted top edge;
	   the negative bottom margin pulls whatever follows (the subscribe
	   band) up over it, so its diagonal cut reveals black, not paper. */
	padding: calc(72px + 4.5vw) 0 calc(72px + 4.5vw);
	margin-bottom: calc(-4.5vw - 1px);
	/* Paper breathing room below the issue grid. */
	margin-top: 56px;
	overflow: hidden;
}

.archive-callout .container {
	display: grid;
	/* Both columns hug their content so the pair pulls toward center. */
	grid-template-columns: auto auto;
	justify-content: center;
	gap: 72px;
	align-items: center;
}

.archive-callout h2 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.4rem, 5vw, 4.2rem);
	line-height: 1.05;
	text-transform: uppercase;
	margin: 0 0 18px;
}

.archive-callout-text > p:not(.eyebrow) {
	font-size: 1.1rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.85);
	max-width: 460px;
	margin: 0 0 30px;
}

.archive-callout-cover {
	position: relative;
	justify-self: center;
}

.archive-cover-stack {
	position: relative;
	display: block;
	width: min(410px, 72vw);
	aspect-ratio: 426 / 620;
	transform: rotate(2deg);
}

/* Covers are stacked and crossfaded; widths vary slightly between the
   digest-size decades and the full-size era, so each image centers in
   the stack (the letterboxing disappears against the black). */
.archive-cover {
	position: absolute;
	inset: 0;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.9s ease;
}
.archive-cover.is-active { opacity: 1; }

.archive-cover img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 3px;
	box-shadow: var(--shadow-cover);
}

.archive-year {
	position: absolute;
	left: -26px;
	bottom: 34px;
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2rem, 3.5vw, 2.8rem);
	line-height: 1;
	font-variant-numeric: tabular-nums;
	background: var(--red);
	color: #fff;
	padding: 8px 18px 6px;
	border-radius: 3px;
	transform: rotate(-4deg);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

@media (max-width: 860px) {
	.archive-callout .container {
		grid-template-columns: 1fr;
		gap: 44px;
		text-align: center;
	}
	.archive-callout-text > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
	.archive-cover-stack { width: min(280px, 72vw); }
	.archive-year { left: -16px; }
}

/* ---------- Subscribe band ---------- */

.subscribe-band {
	background: var(--red);
	color: #fff;
	padding: calc(44px + 4.5vw) 0 52px;
	text-align: center;
	/* Slanted top edge mirroring the hero's cut. */
	clip-path: polygon(0 0, 100% 4.5vw, 100% 100%, 0 100%);
}

.subscribe-band h2 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	text-transform: uppercase;
	margin-bottom: 8px;
}

.subscribe-band p {
	margin: 0 auto 24px;
	max-width: 520px;
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.92);
	text-wrap: balance;
}

.band-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
}

.subscribe-band .btn { background: #fff; color: var(--red); }
.subscribe-band .btn:hover { background: var(--black); color: #fff; }

.subscribe-band .btn-ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.8);
	color: #fff;
	cursor: pointer;
}
.subscribe-band .btn-ghost:hover {
	background: var(--black);
	border-color: var(--black);
	color: #fff;
}

/* ---------- Video modal ---------- */

.video-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.video-modal[hidden] { display: none; }

.video-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(14, 14, 16, 0.88);
}

.video-modal-dialog {
	position: relative;
	width: min(960px, 100%);
}

.video-modal-frame {
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.video-modal-frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.video-modal-close {
	position: absolute;
	top: -46px;
	right: 0;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.video-modal-close:hover {
	background: var(--red);
	border-color: var(--red);
}

/* ---------- Digital editions row (first row of the footer) ---------- */

.site-footer .digital-editions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 18px 44px;
	padding-bottom: 30px;
	margin-bottom: 36px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.digital-editions h2 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.1rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	margin: 0;
}

.digital-editions ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px 38px;
}

.digital-editions img {
	/* All marks share this height; relative sizing lives in the PNGs
	   themselves (kindle-unlimited and magzter carry transparent canvas
	   padding so their wide/blocky marks draw smaller than the row). */
	height: 30px;
	width: auto;
	/* Ghost-white marks: grayscale + invert turns dark artwork white and
	   white image backgrounds black; screen blending then drops those black
	   boxes out against the footer. */
	filter: grayscale(1) invert(1) brightness(0.8);
	mix-blend-mode: screen;
	transition: filter 0.15s ease;
}

.digital-editions a:hover img {
	filter: grayscale(1) invert(1) brightness(1.15);
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--black);
	color: rgba(255, 255, 255, 0.75);
	padding: 48px 0 36px;
	font-size: 0.88rem;
}

.site-footer .container {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 36px;
}

.site-footer .footer-logo-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 40px;
}

.site-footer .footer-logo img { height: 240px; width: auto; }

@media (max-width: 640px) {
	.site-footer .footer-logo img { height: 150px; }
}

.footer-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
	text-wrap: balance;
}

.footer-menu li {
	display: inline-block;
	margin: 4px 12px;
}

.footer-menu a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.footer-menu a:hover { color: #fff; }

.footer-menu .footer-menu-subscribe a { color: var(--yellow); }
.footer-menu .footer-menu-subscribe a:hover { color: var(--yellow); }

.footer-info {
	flex: 1;
	min-width: 240px;
	text-align: center;
}
.footer-info a { color: #fff; }
.footer-content {
	margin-top: 18px;
	font-size: 0.8rem;
	opacity: 0.7;
}

.social-links {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 22px;
}

.social-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	color: #fff;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.social-links a:hover {
	background: var(--red);
	border-color: var(--red);
	color: #fff;
}

.footer-bottom {
	width: 100%;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 20px;
	margin-top: 10px;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.5);
}

/* ---------- Responsive ---------- */

/* Compact header: the 320px ad shares the row with logo, nav, and
   buttons down to true mobile, so everything slims down together. */
@media (max-width: 1120px) {
	.site-header .container { gap: 16px; }

	.btn-subscribe,
	.btn-gift { padding: 10px 14px; font-size: 0.78rem; gap: 7px; }
	.btn-gift span { display: none; }
	.btn-gift { padding: 10px 11px; }
}

/* The promo's two-column pairing needs room for the pitch beside the
   540px flipper; below this it stacks (flipper over centered pitch). */
@media (max-width: 1100px) {
	.subscribe-bar .container {
		grid-template-columns: 1fr;
		gap: 30px;
		text-align: center;
		padding-top: calc(5vw + 28px);
	}
	.subscribe-pitch { display: flex; flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 960px) {
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--black);
		padding: 12px 24px 24px;
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
	}

	.nav-open .site-nav { display: block; }

	.site-nav ul { flex-direction: column; gap: 2px; }
	.site-nav a {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 11px 0;
		font-size: 0.95rem;
	}

	.nav-toggle { display: block; }
	.site-logo img { height: 72px; }

	.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 800px) {
	.issue-hero { padding: 44px 0 calc(48px + 5vw); }

	.issue-hero .container {
		grid-template-columns: 1fr;
		gap: 36px;
		text-align: center;
	}

	.issue-hero .cover { max-width: 300px; }
	.issue-hero .eyebrow { text-align: center; }
	/* Excerpt reads left-aligned even while the rest of the hero centers on narrow screens. */
	.issue-hero .dek { text-align: left; }
	.issue-hero .actions { justify-content: center; }

	.specials-layout { grid-template-columns: 1fr; gap: 48px; }
	/* Featured edition leads on one-column screens. */
	.specials-stage { order: -1; }

	.single-issue .layout { grid-template-columns: 1fr; gap: 36px; }
	.single-issue .cover { position: static; max-width: 320px; margin: 0 auto; }

	.issue-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 30px 18px; }
}

@media (max-width: 640px) {
	.site-logo img { height: 62px; }
}

@media (max-width: 560px) {
	.issue-grid { grid-template-columns: repeat(2, 1fr); }

	/* No room for gutters on phones — drop them and overlay the buttons on
	   the slide edges, darkened for contrast over the artwork. */
	.subscribe-flipper { max-width: 100%; padding: 0; }
	.flip-prev { left: 8px; }
	.flip-next { right: 8px; }
	.flip-arrow { background: rgba(0, 0, 0, 0.4); }
	.flip-arrow:hover { background: rgba(0, 0, 0, 0.55); }

	.featured-special {
		grid-template-columns: 1fr;
		gap: 28px;
		text-align: center;
	}
	.featured-special .cover { max-width: 260px; margin: 0 auto; }
	.featured-special .dek { margin-left: auto; margin-right: auto; }

	.specials-minis,
	.specials-minis:has(> :nth-child(5)) { grid-template-columns: repeat(2, 1fr); }
}
